@capyclaw/offline-ddr0 0.0.0-stage → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +441 -2
- package/client/client.js +603 -0
- package/cordis.patch.yml +13 -0
- package/docs/STORAGE-MIGRATION.md +136 -0
- package/lib/atomic.mjs +40 -0
- package/lib/http-cache.mjs +42 -0
- package/lib/inbox.mjs +64 -0
- package/lib/media.mjs +242 -0
- package/lib/migrate-json.mjs +101 -0
- package/lib/mirror-index.mjs +105 -0
- package/lib/mirror.mjs +123 -0
- package/lib/proxy.mjs +188 -0
- package/lib/remote.mjs +158 -0
- package/lib/render.mjs +93 -0
- package/lib/repository.mjs +71 -0
- package/lib/store.mjs +610 -0
- package/lib/surface.mjs +74 -0
- package/lib/sync-ui.mjs +108 -0
- package/lib/sync.mjs +433 -0
- package/lib/wire.mjs +211 -0
- package/lib/workstore-repository.mjs +316 -0
- package/lib/workstore.mjs +338 -0
- package/mirror/files/00001.html +2045 -0
- package/mirror/files/00002.json +1 -0
- package/mirror/files/00003.json +1 -0
- package/mirror/files/00004.json +1 -0
- package/mirror/files/00005.json +1 -0
- package/mirror/files/00006.json +1 -0
- package/mirror/files/00007.json +1 -0
- package/mirror/files/00008.json +1 -0
- package/mirror/files/00009.json +1 -0
- package/mirror/files/00010.json +1 -0
- package/mirror/files/00011.json +1 -0
- package/mirror/files/00012.json +1 -0
- package/mirror/files/00013.json +1 -0
- package/mirror/files/00014.json +1 -0
- package/mirror/files/00015.json +1 -0
- package/mirror/files/00016.json +1 -0
- package/mirror/files/00017.json +1 -0
- package/mirror/files/00018.json +1 -0
- package/mirror/files/00019.json +1 -0
- package/mirror/files/00020.json +1 -0
- package/mirror/files/00021.json +1 -0
- package/mirror/files/00022.json +1 -0
- package/mirror/files/00023.js +205 -0
- package/mirror/files/00024.json +1 -0
- package/mirror/files/00025.json +1 -0
- package/mirror/files/00026.json +1 -0
- package/mirror/files/00027.js +51 -0
- package/mirror/files/00028.json +1 -0
- package/mirror/files/00029.json +1 -0
- package/mirror/files/00030.json +1 -0
- package/mirror/files/00031.json +1 -0
- package/mirror/files/00032.json +1 -0
- package/mirror/files/00033.json +1 -0
- package/mirror/files/00034.json +1 -0
- package/mirror/files/00035.json +1 -0
- package/mirror/files/00036.json +1 -0
- package/mirror/files/00037.json +1 -0
- package/mirror/files/00038.json +1 -0
- package/mirror/files/00039.json +1 -0
- package/mirror/files/00040.js +2311 -0
- package/mirror/files/00041.json +1 -0
- package/mirror/files/00042.json +1 -0
- package/mirror/files/00043.json +1 -0
- package/mirror/files/00044.json +1 -0
- package/mirror/files/00045.js +575 -0
- package/mirror/files/00046.json +1 -0
- package/mirror/files/00047.js +575 -0
- package/mirror/files/00048.js +575 -0
- package/mirror/files/00049.json +1 -0
- package/mirror/files/00050.json +1 -0
- package/mirror/files/00051.json +1 -0
- package/mirror/files/00052.json +1 -0
- package/mirror/files/00053.js +575 -0
- package/mirror/files/00054.json +1 -0
- package/mirror/files/00055.json +1 -0
- package/mirror/files/00056.js +575 -0
- package/mirror/files/00057.json +1 -0
- package/mirror/files/00058.json +1 -0
- package/mirror/files/00059.js +360 -0
- package/mirror/files/00060.json +1 -0
- package/mirror/files/00061.json +1 -0
- package/mirror/files/00062.json +1 -0
- package/mirror/files/00063.json +1 -0
- package/mirror/files/00064.json +1 -0
- package/mirror/files/00065.js +144 -0
- package/mirror/files/00066.js +7 -0
- package/mirror/files/00067.json +1 -0
- package/mirror/files/00068.json +1 -0
- package/mirror/files/00069.json +1 -0
- package/mirror/files/00070.json +1 -0
- package/mirror/files/00071.json +1 -0
- package/mirror/files/00072.json +1 -0
- package/mirror/files/00073.js +1 -0
- package/mirror/files/00074.json +1 -0
- package/mirror/files/00075.json +1 -0
- package/mirror/files/00076.json +1 -0
- package/mirror/files/00077.js +45 -0
- package/mirror/files/00078.js +1348 -0
- package/mirror/files/00079.json +1 -0
- package/mirror/files/00080.json +1 -0
- package/mirror/files/00081.js +1 -0
- package/mirror/files/00082.json +1 -0
- package/mirror/files/00083.json +1 -0
- package/mirror/files/00084.js +7 -0
- package/mirror/files/00085.json +1 -0
- package/mirror/files/00086.json +1 -0
- package/mirror/files/00087.js +7 -0
- package/mirror/files/00088.json +1 -0
- package/mirror/files/00089.json +1 -0
- package/mirror/files/00090.js +7 -0
- package/mirror/files/00091.json +1 -0
- package/mirror/files/00092.json +1 -0
- package/mirror/files/00093.js +102 -0
- package/mirror/files/00094.json +1 -0
- package/mirror/files/00095.json +1 -0
- package/mirror/files/00096.json +1 -0
- package/mirror/files/00097.json +1 -0
- package/mirror/files/00098.json +1 -0
- package/mirror/files/00099.json +1 -0
- package/mirror/files/00100.json +1 -0
- package/mirror/files/00101.js +102 -0
- package/mirror/files/00102.json +1 -0
- package/mirror/files/00103.json +1 -0
- package/mirror/files/00104.json +1 -0
- package/mirror/files/00105.json +1 -0
- package/mirror/files/00106.json +1 -0
- package/mirror/files/00107.js +110 -0
- package/mirror/files/00108.json +1 -0
- package/mirror/files/00109.json +1 -0
- package/mirror/files/00110.json +1 -0
- package/mirror/files/00111.json +1 -0
- package/mirror/files/00112.json +1 -0
- package/mirror/files/00113.json +1 -0
- package/mirror/files/00114.json +1 -0
- package/mirror/files/00115.json +1 -0
- package/mirror/files/00116.json +1 -0
- package/mirror/files/00117.json +1 -0
- package/mirror/files/00118.json +1 -0
- package/mirror/files/00119.json +1 -0
- package/mirror/files/00120.json +1 -0
- package/mirror/files/00121.json +1 -0
- package/mirror/files/00122.json +1 -0
- package/mirror/files/00123.json +1 -0
- package/mirror/files/00124.json +1 -0
- package/mirror/files/00125.json +1 -0
- package/mirror/files/00126.json +1 -0
- package/mirror/files/00127.json +1 -0
- package/mirror/files/00128.json +1 -0
- package/mirror/files/00129.json +1 -0
- package/mirror/files/00130.json +1 -0
- package/mirror/files/00131.json +1 -0
- package/mirror/files/00132.js +110 -0
- package/mirror/files/00133.json +1 -0
- package/mirror/files/00134.json +1 -0
- package/mirror/files/00135.json +1 -0
- package/mirror/files/00136.json +1 -0
- package/mirror/files/00137.js +26 -0
- package/mirror/files/00138.json +1 -0
- package/mirror/files/00139.json +1 -0
- package/mirror/files/00140.json +1 -0
- package/mirror/files/00141.json +1 -0
- package/mirror/files/00142.json +1 -0
- package/mirror/files/00143.json +1 -0
- package/mirror/files/00144.js +26 -0
- package/mirror/files/00145.json +1 -0
- package/mirror/files/00146.json +1 -0
- package/mirror/files/00147.js +29 -0
- package/mirror/files/00148.json +1 -0
- package/mirror/files/00149.json +1 -0
- package/mirror/files/00150.js +23 -0
- package/mirror/files/00151.json +1 -0
- package/mirror/files/00152.json +1 -0
- package/mirror/files/00153.js +719 -0
- package/mirror/files/00154.js +9575 -0
- package/mirror/files/00155.js +108 -0
- package/mirror/files/00156.js +379 -0
- package/mirror/files/00157.js +48 -0
- package/mirror/files/00158.json +16 -0
- package/mirror/manifest.json +1582 -0
- package/node_modules/@capyclaw/asset-service/README.md +48 -0
- package/node_modules/@capyclaw/asset-service/cordis.patch.yml +4 -0
- package/node_modules/@capyclaw/asset-service/dsh-suite.json +29 -0
- package/node_modules/@capyclaw/asset-service/lib/host.mjs +14 -0
- package/node_modules/@capyclaw/asset-service/package.json +59 -0
- package/node_modules/@capyclaw/asset-service/src/index.mjs +223 -0
- package/node_modules/@capyclaw/foundation/README.md +51 -0
- package/node_modules/@capyclaw/foundation/abi/bridge.mjs +86 -0
- package/node_modules/@capyclaw/foundation/abi/errors.mjs +63 -0
- package/node_modules/@capyclaw/foundation/abi/index.mjs +35 -0
- package/node_modules/@capyclaw/foundation/abi/kinds.mjs +271 -0
- package/node_modules/@capyclaw/foundation/abi/loader.mjs +345 -0
- package/node_modules/@capyclaw/foundation/abi/schema.mjs +98 -0
- package/node_modules/@capyclaw/foundation/abi/spec.mjs +255 -0
- package/node_modules/@capyclaw/foundation/abi/validate.mjs +24 -0
- package/node_modules/@capyclaw/foundation/abi/version.mjs +82 -0
- package/node_modules/@capyclaw/foundation/cordis.patch.yml +5 -0
- package/node_modules/@capyclaw/foundation/kit/index.mjs +6 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/client-panel.mjs +98 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/host-event.mjs +35 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/http-router.mjs +69 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/lifecycle-hook.mjs +55 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/own-server.mjs +113 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/raw.mjs +68 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/runtime-driver.mjs +113 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/service-provider.mjs +77 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/skill-provider.mjs +56 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/tool-provider.mjs +50 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/ui-panel.mjs +64 -0
- package/node_modules/@capyclaw/foundation/lib/ctx-service.mjs +42 -0
- package/node_modules/@capyclaw/foundation/lib/host/caps.mjs +34 -0
- package/node_modules/@capyclaw/foundation/lib/host/contract.mjs +85 -0
- package/node_modules/@capyclaw/foundation/lib/host/dsh.mjs +50 -0
- package/node_modules/@capyclaw/foundation/lib/host/memory.mjs +160 -0
- package/node_modules/@capyclaw/foundation/lib/host.mjs +23 -0
- package/node_modules/@capyclaw/foundation/lib/kernel.mjs +185 -0
- package/node_modules/@capyclaw/foundation/lib/skill/scan.mjs +87 -0
- package/node_modules/@capyclaw/foundation/lib/subsystems/events.mjs +60 -0
- package/node_modules/@capyclaw/foundation/lib/subsystems/log.mjs +51 -0
- package/node_modules/@capyclaw/foundation/lib/subsystems/net.mjs +188 -0
- package/node_modules/@capyclaw/foundation/package.json +53 -0
- package/node_modules/@capyclaw/foundation/runtime/index.mjs +20 -0
- package/node_modules/@capyclaw/plugin-kit/INTEGRATION.md +100 -0
- package/node_modules/@capyclaw/plugin-kit/README.md +70 -0
- package/node_modules/@capyclaw/plugin-kit/bin/sync.mjs +103 -0
- package/node_modules/@capyclaw/plugin-kit/package.json +69 -0
- package/node_modules/@capyclaw/plugin-kit/src/cli.mjs +56 -0
- package/node_modules/@capyclaw/plugin-kit/src/config.mjs +142 -0
- package/node_modules/@capyclaw/plugin-kit/src/editor/heartbeat-worker.js +129 -0
- package/node_modules/@capyclaw/plugin-kit/src/editor/lease.mjs +139 -0
- package/node_modules/@capyclaw/plugin-kit/src/editor/shadow.mjs +219 -0
- package/node_modules/@capyclaw/plugin-kit/src/editor/transport.js +13 -0
- package/node_modules/@capyclaw/plugin-kit/src/index.mjs +13 -0
- package/node_modules/@capyclaw/plugin-kit/src/pack.mjs +230 -0
- package/node_modules/@capyclaw/plugin-kit/src/runtime/context.mjs +128 -0
- package/node_modules/@capyclaw/plugin-kit/src/self-contained.mjs +307 -0
- package/node_modules/@capyclaw/plugin-kit/src/service/api.mjs +45 -0
- package/node_modules/@capyclaw/plugin-kit/src/service/http.mjs +113 -0
- package/node_modules/@capyclaw/plugin-kit/src/service/mcp-http.mjs +150 -0
- package/node_modules/@capyclaw/plugin-kit/src/service/server.mjs +131 -0
- package/node_modules/@capyclaw/plugin-kit/src/skills/provider.mjs +82 -0
- package/node_modules/@capyclaw/plugin-kit/src/store/blob-store.mjs +109 -0
- package/node_modules/@capyclaw/plugin-kit/src/store/content-store.mjs +17 -0
- package/node_modules/@capyclaw/plugin-kit/src/store/journal-store.mjs +89 -0
- package/node_modules/@capyclaw/plugin-kit/src/tools/result.mjs +57 -0
- package/node_modules/@capyclaw/plugin-kit/src/tools/validate.mjs +150 -0
- package/node_modules/@capyclaw/plugin-kit/src/tuning.mjs +82 -0
- package/node_modules/@capyclaw/plugin-kit/src/util/fs-lock.mjs +132 -0
- package/node_modules/@capyclaw/plugin-kit/src/util/http.mjs +130 -0
- package/node_modules/@capyclaw/plugin-kit/src/workspace/manager.mjs +656 -0
- package/node_modules/@capyclaw/plugin-kit/src/zip.mjs +181 -0
- package/node_modules/@capyclaw/service-host/README.md +86 -0
- package/node_modules/@capyclaw/service-host/cordis.patch.yml +4 -0
- package/node_modules/@capyclaw/service-host/dsh-suite.json +29 -0
- package/node_modules/@capyclaw/service-host/lib/host.mjs +22 -0
- package/node_modules/@capyclaw/service-host/package.json +60 -0
- package/node_modules/@capyclaw/service-host/src/index.mjs +571 -0
- package/node_modules/@capyclaw/service-host/src/tuning.mjs +63 -0
- package/node_modules/@capyclaw/suite-kit/README.md +238 -0
- package/node_modules/@capyclaw/suite-kit/bin/dsh-domain.mjs +98 -0
- package/node_modules/@capyclaw/suite-kit/bin/dsh-suite.mjs +174 -0
- package/node_modules/@capyclaw/suite-kit/client/embed.js +35 -0
- package/node_modules/@capyclaw/suite-kit/domain.schema.json +129 -0
- package/node_modules/@capyclaw/suite-kit/package.json +54 -0
- package/node_modules/@capyclaw/suite-kit/src/activation-registry.mjs +184 -0
- package/node_modules/@capyclaw/suite-kit/src/artifacts.mjs +131 -0
- package/node_modules/@capyclaw/suite-kit/src/capability.mjs +181 -0
- package/node_modules/@capyclaw/suite-kit/src/compose.mjs +201 -0
- package/node_modules/@capyclaw/suite-kit/src/domain.mjs +138 -0
- package/node_modules/@capyclaw/suite-kit/src/embed.mjs +81 -0
- package/node_modules/@capyclaw/suite-kit/src/index.mjs +10 -0
- package/node_modules/@capyclaw/suite-kit/src/manifest.mjs +263 -0
- package/node_modules/@capyclaw/suite-kit/src/orchestration.mjs +100 -0
- package/node_modules/@capyclaw/suite-kit/src/profile.mjs +584 -0
- package/node_modules/@capyclaw/suite-kit/src/surface.mjs +28 -0
- package/node_modules/@capyclaw/suite-kit/suite.schema.json +112 -0
- package/node_modules/@capyclaw/work-store/README.md +83 -0
- package/node_modules/@capyclaw/work-store/STANDARD.md +257 -0
- package/node_modules/@capyclaw/work-store/cordis.patch.yml +3 -0
- package/node_modules/@capyclaw/work-store/dsh-suite.json +26 -0
- package/node_modules/@capyclaw/work-store/icon.svg +7 -0
- package/node_modules/@capyclaw/work-store/lib/host.mjs +21 -0
- package/node_modules/@capyclaw/work-store/package.json +68 -0
- package/node_modules/@capyclaw/work-store/src/backend.mjs +89 -0
- package/node_modules/@capyclaw/work-store/src/db.mjs +199 -0
- package/node_modules/@capyclaw/work-store/src/envelope.mjs +132 -0
- package/node_modules/@capyclaw/work-store/src/index.mjs +570 -0
- package/node_modules/@capyclaw/work-store/src/interop.mjs +70 -0
- package/node_modules/@capyclaw/work-store/src/refs.mjs +99 -0
- package/node_modules/@capyclaw/work-store/src/routes.mjs +135 -0
- package/package.json +82 -4
- package/plugin.mjs +636 -0
- package/static/index.html +2068 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @caps flow-kit,work-caps
|
|
3
|
+
* PPT 演示文档装饰器套件(PPTist 定制只读放映版)——
|
|
4
|
+
* META view.decorator 渲染套件:ctx.viewDoc(view.source 分节原文,
|
|
5
|
+
* JSON)解析为幻灯片数据(.pptist 导出 / {slides} / 裸数组三形兼容),
|
|
6
|
+
* 标准容器内只读放映。flow-kit = 装饰器目标形状闸通行标记(v1 借道,
|
|
7
|
+
* 家族化后泛化);work-caps = 组件本体豁免(自带播放器 UI)。
|
|
8
|
+
* 上游引擎:PPTist v2.0.0 @ 6907580c(pipipi-pikachu/
|
|
9
|
+
* PPTist,AGPL-3.0,https://github.com/pipipi-pikachu/PPTist)
|
|
10
|
+
*/
|
|
11
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.setAttribute("id","ppt-doc-suite-style"),t.appendChild(document.createTextNode(`@charset "UTF-8";svg[data-v-03d31e82]{overflow:visible;position:absolute;z-index:2;top:0;left:0}svg[data-v-50f1146c]{overflow:visible;position:absolute;z-index:2;top:0;left:0}svg[data-v-f119be6e]{overflow:visible;position:absolute;z-index:2;top:0;left:0}.base-element-image[data-v-2a432e53]{position:absolute}.rotate-wrapper[data-v-2a432e53]{width:100%;height:100%}.element-content[data-v-2a432e53]{width:100%;height:100%;position:relative}.element-content .image-content[data-v-2a432e53]{width:100%;height:100%;overflow:hidden;position:relative}.element-content img[data-v-2a432e53]{position:absolute}.color-mask[data-v-2a432e53]{position:absolute;top:0;right:0;bottom:0;left:0}svg[data-v-38db66b1]{overflow:visible;position:absolute;top:0;left:0}.base-element-text[data-v-957b65f1]{position:absolute}.rotate-wrapper[data-v-957b65f1]{width:100%;height:100%}.element-content[data-v-957b65f1]{position:relative;line-height:1.5;word-break:break-word;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}.element-content .text[data-v-957b65f1]{position:relative}.element-content .text.thumbnail[data-v-957b65f1]{pointer-events:none}.base-element-shape[data-v-5a023f41]{position:absolute}.rotate-wrapper[data-v-5a023f41]{width:100%;height:100%}.element-content[data-v-5a023f41]{width:100%;height:100%;position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}.element-content svg[data-v-5a023f41]{transform-origin:0 0;overflow:visible;display:block}.shape-text[data-v-5a023f41]{display:flex;flex-direction:column;line-height:1.5;word-break:break-word;position:absolute;top:0;right:0;bottom:0;left:0}.shape-text.top[data-v-5a023f41]{justify-content:flex-start}.shape-text.middle[data-v-5a023f41]{justify-content:center}.shape-text.bottom[data-v-5a023f41]{justify-content:flex-end}.base-element-line[data-v-ca5f345d]{position:absolute}.element-content[data-v-ca5f345d]{width:100%;height:100%;position:relative}.element-content svg[data-v-ca5f345d]{transform-origin:0 0;overflow:visible}.chart[data-v-84b6a43a]{width:100%;height:100%}.base-element-chart[data-v-cdab124a]{position:absolute}.base-element-chart.is-thumbnail[data-v-cdab124a]{pointer-events:none}.rotate-wrapper[data-v-cdab124a],.element-content[data-v-cdab124a]{width:100%;height:100%}.static-table[data-v-c09e0e36]{position:relative;-webkit-user-select:none;user-select:none}table[data-v-c09e0e36]{width:100%;position:relative;table-layout:fixed;border-collapse:collapse;border-spacing:0;border:0;word-wrap:break-word;-webkit-user-select:none;user-select:none;--themeColor: $themeColor;--subThemeColor1: $themeColor;--subThemeColor2: $themeColor}table.theme[data-v-c09e0e36]{background-color:#fff}table.theme tr:nth-child(2n) .cell[data-v-c09e0e36]{background-color:var(--subThemeColor1)}table.theme tr:nth-child(odd) .cell[data-v-c09e0e36]{background-color:var(--subThemeColor2)}table.theme.row-header tr:first-child .cell[data-v-c09e0e36]{background-color:var(--themeColor)}table.theme.row-footer tr:last-child .cell[data-v-c09e0e36]{background-color:var(--themeColor)}table.theme.col-header tr .cell[data-v-c09e0e36]:first-child{background-color:var(--themeColor)}table.theme.col-footer tr .cell[data-v-c09e0e36]:last-child{background-color:var(--themeColor)}table .cell[data-v-c09e0e36]{position:relative;white-space:normal;word-wrap:break-word;vertical-align:middle;background-clip:padding-box}table .cell-text[data-v-c09e0e36]{white-space:pre-wrap;padding:5px;line-height:1.5;display:flex;flex-direction:column;align-items:stretch}table .cell-text[data-v-c09e0e36] p{margin:0}table .cell-text[data-v-c09e0e36] p:after{content:""}table .cell-text-content[data-v-c09e0e36]{min-width:0}.base-element-table[data-v-d4fe75cb]{position:absolute}.rotate-wrapper[data-v-d4fe75cb]{width:100%;height:100%}.element-content[data-v-d4fe75cb]{width:100%;height:100%;position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}.base-element-latex[data-v-311e9d67]{position:absolute}.rotate-wrapper[data-v-311e9d67]{width:100%;height:100%}.element-content[data-v-311e9d67]{width:100%;height:100%;position:relative}.element-content svg[data-v-311e9d67]{transform-origin:0 0;overflow:visible}.video-player[data-v-cee71123]{position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;line-height:1;transform-origin:0 0}.video-player.hide-controller[data-v-cee71123]{cursor:none}.video-player.hide-controller .controller-mask[data-v-cee71123],.video-player.hide-controller .controller[data-v-cee71123]{opacity:0;transform:translateY(100%)}.video-wrap[data-v-cee71123]{width:100%;height:100%;position:relative;background:#000;font-size:0}.video-wrap .bg-canvas[data-v-cee71123]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1;transform:scale(1.1);filter:blur(25px) brightness(.7)}.video-wrap .video[data-v-cee71123]{width:100%;height:100%;position:relative;z-index:2}.video-wrap .load-error[data-v-cee71123]{position:absolute;left:0;right:0;top:0;bottom:0;z-index:3;font-size:15px;color:#fff;pointer-events:none;display:flex;justify-content:center;align-items:center}.controller-mask[data-v-cee71123]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==) repeat-x bottom;height:98px;width:100%;position:absolute;bottom:0;z-index:1000;transition:all .3s ease}.controller[data-v-cee71123]{position:absolute;bottom:0;left:0;right:0;z-index:1000;height:41px;padding:0 20px;-webkit-user-select:none;user-select:none;transition:all .3s ease}.controller .bar-wrap[data-v-cee71123]{padding:5px 0;cursor:pointer;position:absolute;bottom:33px;width:calc(100% - 40px);height:3px}.controller .bar-wrap:hover .bar .played .thumb[data-v-cee71123]{transform:scale(1)}.controller .bar-wrap .bar-time[data-v-cee71123]{position:absolute;left:0;top:-20px;border-radius:4px;padding:5px 7px;background-color:#0000009e;color:#fff;font-size:12px;text-align:center;opacity:1;transition:opacity .1s ease-in-out;word-wrap:normal;word-break:normal;z-index:2;pointer-events:none}.controller .bar-wrap .bar-time.hidden[data-v-cee71123]{opacity:0}.controller .bar-wrap .bar[data-v-cee71123]{position:relative;height:3px;width:100%;background:#fff3;cursor:pointer}.controller .bar-wrap .bar .loaded[data-v-cee71123]{position:absolute;left:0;top:0;bottom:0;background:#fff6;height:3px;transition:all .5s ease;will-change:width}.controller .bar-wrap .bar .played[data-v-cee71123]{position:absolute;left:0;top:0;bottom:0;height:3px;will-change:width;background-color:#fff}.controller .bar-wrap .bar .played .thumb[data-v-cee71123]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .icons[data-v-cee71123]{height:38px;position:absolute;bottom:0;display:flex;align-items:center}.controller .icons.icons-right[data-v-cee71123]{right:15px}.controller .icons .time[data-v-cee71123]{line-height:38px;color:#eee;text-shadow:0 0 2px rgba(0,0,0,.5);vertical-align:middle;font-size:13px;cursor:default}.controller .icons .icon[data-v-cee71123]{width:40px;height:100%;position:relative;cursor:pointer;display:flex;align-items:center;font-size:20px}.controller .icons .icon.play-icon[data-v-cee71123]{font-size:26px}.controller .icons .icon .icon-content[data-v-cee71123]{transition:all .2s ease-in-out;opacity:.8;color:#fff}.controller .icons .icon.loop-icon[data-v-cee71123]{font-size:12px}.controller .icons .icon.loop-icon .icon-content[data-v-cee71123]{opacity:.5}.controller .icons .icon.speed-icon[data-v-cee71123]{font-size:12px;position:relative}.controller .icons .icon .speed-menu[data-v-cee71123]{width:70px;position:absolute;bottom:30px;left:-23px;background-color:#22211b;padding:5px 0;color:#ddd}.controller .icons .icon .speed-menu .speed-menu-item[data-v-cee71123]{padding:8px 0;text-align:center}.controller .icons .icon .speed-menu .speed-menu-item[data-v-cee71123]:hover{background-color:#393833;color:#fff}.controller .icons .icon .speed-menu .speed-menu-item.active[data-v-cee71123]{font-weight:700;color:#fff}.controller .icons .icon.active .icon-content[data-v-cee71123],.controller .icons .icon:hover .icon-content[data-v-cee71123]{opacity:1}.controller .icons .volume[data-v-cee71123]{height:100%;position:relative;cursor:pointer;display:flex;align-items:center}.controller .icons .volume:hover .volume-bar-wrap .volume-bar[data-v-cee71123]{width:45px}.controller .icons .volume:hover .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-cee71123]{transform:scale(1)}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar[data-v-cee71123]{width:45px}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-cee71123]{transform:scale(1)}.controller .icons .volume-bar-wrap[data-v-cee71123]{display:inline-block;margin:0 15px 0 -5px;vertical-align:middle;height:100%}.controller .icons .volume-bar[data-v-cee71123]{position:relative;top:17px;width:0;height:3px;background:#aaa;transition:all .3s ease-in-out}.controller .icons .volume-bar .volume-bar-inner[data-v-cee71123]{position:absolute;bottom:0;left:0;height:100%;transition:all .1s ease;will-change:width;background-color:#fff}.controller .icons .volume-bar .volume-bar-inner .thumb[data-v-cee71123]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .icons .loop[data-v-cee71123]{display:inline-block;height:100%}.bezel[data-v-cee71123]{position:absolute;left:0;right:0;top:0;bottom:0;font-size:22px;color:#fff;pointer-events:none;z-index:3}.bezel .bezel-icon[data-v-cee71123]{position:absolute;top:50%;left:50%;margin:-26px 0 0 -26px;height:52px;width:52px;padding:12px;display:flex;justify-content:center;align-items:center;background:#00000080;border-radius:50%;opacity:0;pointer-events:none;font-size:40px}.bezel .bezel-icon.bezel-transition[data-v-cee71123]{animation:bezel-hide-cee71123 .5s linear}@keyframes bezel-hide-cee71123{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.screen-element-video[data-v-c97c1d3a]{position:absolute}.rotate-wrapper[data-v-c97c1d3a],.element-content[data-v-c97c1d3a]{width:100%;height:100%}.message[data-v-bfd00cce]{max-width:600px}.message+.message[data-v-bfd00cce]{margin-top:15px}.message-container[data-v-bfd00cce]{min-width:50px;display:flex;align-items:center;padding:10px;font-size:13px;overflow:hidden;border-radius:2px;box-shadow:0 1px 8px #00000026;background:#fff;pointer-events:all;position:relative}.message-container .icons[data-v-bfd00cce]{display:flex;align-items:center;margin-right:10px}.message-container .icons .loading-icon[data-v-bfd00cce]{animation:loading-icon-spin-bfd00cce 1s linear infinite}.message-container .title[data-v-bfd00cce]{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-container .content[data-v-bfd00cce]{width:100%}.message-container .description[data-v-bfd00cce]{line-height:1.5;color:#41464b}.message-container .title+.description[data-v-bfd00cce]{margin-top:5px}.message-container .control[data-v-bfd00cce]{position:relative;height:100%;margin-left:10px}.message-container .close-btn[data-v-bfd00cce]{font-size:15px;color:#666;display:flex;align-items:center;cursor:pointer}.message-container .close-btn[data-v-bfd00cce]:hover{color:#d14424}.message-fade-enter-active[data-v-bfd00cce]{animation:message-fade-in-down-bfd00cce .3s}.message-fade-leave-active[data-v-bfd00cce]{animation:message-fade-out-bfd00cce .3s}@keyframes message-fade-in-down-bfd00cce{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes message-fade-out-bfd00cce{0%{opacity:1;margin-top:0}to{opacity:0;margin-top:-45px}}@keyframes loading-icon-spin-bfd00cce{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.audio-player[data-v-df601eb3]{width:280px;height:50px;position:relative;-webkit-user-select:none;user-select:none;line-height:1;transform-origin:0 0;background:#000}.controller[data-v-df601eb3]{position:absolute;bottom:0;left:0;right:0;height:41px;padding:0 20px;-webkit-user-select:none;user-select:none;transition:all .3s ease}.controller .bar-wrap[data-v-df601eb3]{padding:5px 0;cursor:pointer;position:absolute;bottom:35px;width:calc(100% - 40px);height:3px}.controller .bar-wrap:hover .bar .played .thumb[data-v-df601eb3]{transform:scale(1)}.controller .bar-wrap .bar-time[data-v-df601eb3]{position:absolute;left:0;top:-20px;border-radius:4px;padding:5px 7px;background-color:#0000009e;color:#fff;font-size:12px;text-align:center;opacity:1;transition:opacity .1s ease-in-out;word-wrap:normal;word-break:normal;z-index:2;pointer-events:none}.controller .bar-wrap .bar-time.hidden[data-v-df601eb3]{opacity:0}.controller .bar-wrap .bar[data-v-df601eb3]{position:relative;height:3px;width:100%;background:#fff3;cursor:pointer}.controller .bar-wrap .bar .loaded[data-v-df601eb3]{position:absolute;left:0;top:0;bottom:0;background:#fff6;height:3px;transition:all .5s ease;will-change:width}.controller .bar-wrap .bar .played[data-v-df601eb3]{position:absolute;left:0;top:0;bottom:0;height:3px;will-change:width;background-color:#fff}.controller .bar-wrap .bar .played .thumb[data-v-df601eb3]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .icons[data-v-df601eb3]{height:38px;position:absolute;bottom:0;left:14px;display:flex;align-items:center}.controller .icons .icon[data-v-df601eb3]{width:36px;height:100%;position:relative;cursor:pointer;display:flex;align-items:center;font-size:20px}.controller .icons .icon.play-icon[data-v-df601eb3]{font-size:26px}.controller .icons .icon .icon-content[data-v-df601eb3]{transition:all .2s ease-in-out;opacity:.8;color:#fff}.controller .icons .icon.active .icon-content[data-v-df601eb3],.controller .icons .icon:hover .icon-content[data-v-df601eb3]{opacity:1}.controller .icons .volume[data-v-df601eb3]{height:100%;position:relative;cursor:pointer;display:flex;align-items:center}.controller .icons .volume:hover .volume-bar-wrap .volume-bar[data-v-df601eb3]{width:45px}.controller .icons .volume:hover .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-df601eb3]{transform:scale(1)}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar[data-v-df601eb3]{width:45px}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-df601eb3]{transform:scale(1)}.controller .icons .volume-bar-wrap[data-v-df601eb3]{display:inline-block;margin:0 15px 0 -5px;vertical-align:middle;height:100%}.controller .icons .volume-bar[data-v-df601eb3]{position:relative;top:17px;width:0;height:3px;background:#aaa;transition:all .3s ease-in-out}.controller .icons .volume-bar .volume-bar-inner[data-v-df601eb3]{position:absolute;bottom:0;left:0;height:100%;transition:all .1s ease;will-change:width;background-color:#fff}.controller .icons .volume-bar .volume-bar-inner .thumb[data-v-df601eb3]{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;transform:scale(0);background-color:#fff}.controller .time[data-v-df601eb3]{height:38px;position:absolute;right:20px;bottom:0;display:flex;align-items:center;line-height:38px;color:#eee;text-shadow:0 0 2px rgba(0,0,0,.5);vertical-align:middle;font-size:13px;cursor:default}.controller .time .ptime[data-v-df601eb3]{margin-right:2px}.controller .time .dtime[data-v-df601eb3]{margin-left:2px}.screen-element-audio[data-v-ef700f13]{position:absolute}.rotate-wrapper[data-v-ef700f13]{width:100%;height:100%}.element-content[data-v-ef700f13]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.element-content:hover .audio-player[data-v-ef700f13]{display:block}.audio-icon[data-v-ef700f13]{cursor:pointer}.audio-player[data-v-ef700f13]{position:absolute;display:none}.link[data-v-b43c7d05]{cursor:pointer}.screen-slide[data-v-e7898104]{position:absolute;top:0;left:0;transform-origin:0 0;overflow:hidden}.background[data-v-e7898104]{width:100%;height:100%;background-position:center;position:absolute}@keyframes circle-2f7a39f5{0%{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(75% at 50% 50%)}}@keyframes diamond-2f7a39f5{0%{clip-path:polygon(50% 50%,50% 50%,50% 50%,50% 50%)}to{clip-path:polygon(50% -50%,150% 50%,50% 150%,-50% 50%)}}@keyframes revealX-2f7a39f5{0%{clip-path:inset(0 50%)}to{clip-path:inset(0)}}@keyframes revealY-2f7a39f5{0%{clip-path:inset(50% 0)}to{clip-path:inset(0)}}.screen-slide-list[data-v-2f7a39f5]{background:#1d1d1d;position:relative;width:100%;height:100%}.slide-item[data-v-2f7a39f5]{position:absolute;top:0;left:0;width:100%;height:100%}.slide-item[data-v-2f7a39f5]:not(.last,.next){z-index:-1}.slide-item.current[data-v-2f7a39f5]{z-index:2}.slide-item.hide[data-v-2f7a39f5]{opacity:0}.slide-item.turning-mode-no.before[data-v-2f7a39f5]{transform:translateY(-100%)}.slide-item.turning-mode-no.after[data-v-2f7a39f5]{transform:translateY(100%)}.slide-item.turning-mode-fade[data-v-2f7a39f5]{transition:opacity .75s}.slide-item.turning-mode-fade.before[data-v-2f7a39f5],.slide-item.turning-mode-fade.after[data-v-2f7a39f5]{pointer-events:none;opacity:0}.slide-item.turning-mode-slideX[data-v-2f7a39f5]{transition:transform .35s}.slide-item.turning-mode-slideX.before[data-v-2f7a39f5]{transform:translate(-100%)}.slide-item.turning-mode-slideX.after[data-v-2f7a39f5]{transform:translate(100%)}.slide-item.turning-mode-slideY[data-v-2f7a39f5]{transition:transform .35s}.slide-item.turning-mode-slideY.before[data-v-2f7a39f5]{transform:translateY(-100%)}.slide-item.turning-mode-slideY.after[data-v-2f7a39f5]{transform:translateY(100%)}.slide-item.turning-mode-slideX3D[data-v-2f7a39f5]{transition:transform .5s}.slide-item.turning-mode-slideX3D.before[data-v-2f7a39f5]{transform:translate(-100%) scale(.5)}.slide-item.turning-mode-slideX3D.after[data-v-2f7a39f5]{transform:translate(100%) scale(.5)}.slide-item.turning-mode-slideY3D[data-v-2f7a39f5]{transition:transform .5s}.slide-item.turning-mode-slideY3D.before[data-v-2f7a39f5]{transform:translateY(-100%) scale(.5)}.slide-item.turning-mode-slideY3D.after[data-v-2f7a39f5]{transform:translateY(100%) scale(.5)}.slide-item.turning-mode-rotate[data-v-2f7a39f5]{transition:transform .5s;transform-origin:0 0}.slide-item.turning-mode-rotate.before[data-v-2f7a39f5]{transform:rotate(90deg)}.slide-item.turning-mode-rotate.after[data-v-2f7a39f5]{transform:rotate(-90deg)}.slide-item.turning-mode-scaleY[data-v-2f7a39f5]{transition:transform .5s}.slide-item.turning-mode-scaleY.before[data-v-2f7a39f5],.slide-item.turning-mode-scaleY.after[data-v-2f7a39f5]{transform:scaleY(.1)}.slide-item.turning-mode-scaleX[data-v-2f7a39f5]{transition:transform .5s}.slide-item.turning-mode-scaleX.before[data-v-2f7a39f5],.slide-item.turning-mode-scaleX.after[data-v-2f7a39f5]{transform:scaleX(.1)}.slide-item.turning-mode-scale[data-v-2f7a39f5]{transition:transform .5s}.slide-item.turning-mode-scale.before[data-v-2f7a39f5],.slide-item.turning-mode-scale.after[data-v-2f7a39f5]{transform:scale(.25)}.slide-item.turning-mode-scaleReverse[data-v-2f7a39f5]{transition:transform .5s}.slide-item.turning-mode-scaleReverse.before[data-v-2f7a39f5],.slide-item.turning-mode-scaleReverse.after[data-v-2f7a39f5]{transform:scale(2)}.slide-item.turning-mode-wipeX[data-v-2f7a39f5]{clip-path:inset(0);transition:clip-path .5s}.slide-item.turning-mode-wipeX.before[data-v-2f7a39f5]{clip-path:inset(0 100% 0 0)}.slide-item.turning-mode-wipeX.after[data-v-2f7a39f5]{clip-path:inset(0 0 0 100%)}.slide-item.turning-mode-wipeY[data-v-2f7a39f5]{clip-path:inset(0);transition:clip-path .5s}.slide-item.turning-mode-wipeY.before[data-v-2f7a39f5]{clip-path:inset(0 0 100% 0)}.slide-item.turning-mode-wipeY.after[data-v-2f7a39f5]{clip-path:inset(100% 0 0 0)}.slide-item.turning-mode-circle[data-v-2f7a39f5]{visibility:hidden;transition:visibility 0s .5s}.slide-item.turning-mode-circle.current[data-v-2f7a39f5]{visibility:visible;transition:none;animation:circle-2f7a39f5 .5s}.slide-item.turning-mode-circle.before[data-v-2f7a39f5],.slide-item.turning-mode-circle.after[data-v-2f7a39f5]{pointer-events:none}.slide-item.turning-mode-diamond[data-v-2f7a39f5]{visibility:hidden;transition:visibility 0s .5s}.slide-item.turning-mode-diamond.current[data-v-2f7a39f5]{visibility:visible;transition:none;animation:diamond-2f7a39f5 .5s}.slide-item.turning-mode-diamond.before[data-v-2f7a39f5],.slide-item.turning-mode-diamond.after[data-v-2f7a39f5]{pointer-events:none}.slide-item.turning-mode-revealX[data-v-2f7a39f5]{visibility:hidden;transition:visibility 0s .5s}.slide-item.turning-mode-revealX.current[data-v-2f7a39f5]{visibility:visible;transition:none;animation:revealX-2f7a39f5 .5s}.slide-item.turning-mode-revealX.before[data-v-2f7a39f5],.slide-item.turning-mode-revealX.after[data-v-2f7a39f5]{pointer-events:none}.slide-item.turning-mode-revealY[data-v-2f7a39f5]{visibility:hidden;transition:visibility 0s .5s}.slide-item.turning-mode-revealY.current[data-v-2f7a39f5]{visibility:visible;transition:none;animation:revealY-2f7a39f5 .5s}.slide-item.turning-mode-revealY.before[data-v-2f7a39f5],.slide-item.turning-mode-revealY.after[data-v-2f7a39f5]{pointer-events:none}.slide-item.turning-mode-slideDiagonal[data-v-2f7a39f5]{transition:transform .5s}.slide-item.turning-mode-slideDiagonal.before[data-v-2f7a39f5]{transform:translate(-100%,-100%)}.slide-item.turning-mode-slideDiagonal.after[data-v-2f7a39f5]{transform:translate(100%,100%)}.slide-item.turning-mode-slideDiagonalReverse[data-v-2f7a39f5]{transition:transform .5s}.slide-item.turning-mode-slideDiagonalReverse.before[data-v-2f7a39f5]{transform:translate(100%,-100%)}.slide-item.turning-mode-slideDiagonalReverse.after[data-v-2f7a39f5]{transform:translate(-100%,100%)}.slide-item.turning-mode-flipY[data-v-2f7a39f5]{transform:perspective(200vmax) rotateY(0);transition:transform .5s,opacity .5s;backface-visibility:hidden}.slide-item.turning-mode-flipY.before[data-v-2f7a39f5]{transform:perspective(200vmax) rotateY(-90deg);opacity:0;pointer-events:none}.slide-item.turning-mode-flipY.after[data-v-2f7a39f5]{transform:perspective(200vmax) rotateY(90deg);opacity:0;pointer-events:none}.slide-item.turning-mode-flipX[data-v-2f7a39f5]{transform:perspective(200vmax) rotateX(0);transition:transform .5s,opacity .5s;backface-visibility:hidden}.slide-item.turning-mode-flipX.before[data-v-2f7a39f5]{transform:perspective(200vmax) rotateX(90deg);opacity:0;pointer-events:none}.slide-item.turning-mode-flipX.after[data-v-2f7a39f5]{transform:perspective(200vmax) rotateX(-90deg);opacity:0;pointer-events:none}.slide-content[data-v-2f7a39f5]{background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center}.ppt-kit[data-v-a83e00de]{width:100%;height:100%;display:flex;flex-direction:column;outline:none;-webkit-user-select:none;user-select:none;position:relative}.ppt-kit-stage[data-v-a83e00de]{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden;cursor:pointer}.ppt-kit-frame[data-v-a83e00de]{position:relative;overflow:hidden;flex-shrink:0;background:#fff}.ppt-kit-count[data-v-a83e00de]{position:absolute;right:14px;bottom:10px;padding:2px 10px;border-radius:10px;background:#00000059;color:#fffc;font-size:12px;pointer-events:none}/*!* animate.css - https://animate.style/* Version - 4.1.1* Licensed under the MIT license - http://opensource.org/licenses/MIT** Copyright (c) 2020 Animate.css*/:root{--animate-duration: 1s;--animate-delay: 1s;--animate-repeat: 1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animate__animated.animate__infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animate__animated.animate__repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animate__animated.animate__repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 2);animation-iteration-count:calc(var(--animate-repeat) * 2)}.animate__animated.animate__repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 3);animation-iteration-count:calc(var(--animate-repeat) * 3)}.animate__animated.animate__delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animate__animated.animate__delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay) * 2);animation-delay:calc(var(--animate-delay) * 2)}.animate__animated.animate__delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay) * 3);animation-delay:calc(var(--animate-delay) * 3)}.animate__animated.animate__delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay) * 4);animation-delay:calc(var(--animate-delay) * 4)}.animate__animated.animate__delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay) * 5);animation-delay:calc(var(--animate-delay) * 5)}.animate__animated.animate__faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration) / 2);animation-duration:calc(var(--animate-duration) / 2)}.animate__animated.animate__fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration) * .8);animation-duration:calc(var(--animate-duration) * .8)}.animate__animated.animate__slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2)}.animate__animated.animate__slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration) * 3);animation-duration:calc(var(--animate-duration) * 3)}@media print,(prefers-reduced-motion: reduce){.animate__animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animate__animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}.animate__bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.animate__flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.animate__shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}@keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}}.animate__shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.animate__headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}.animate__swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.animate__jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.animate__heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration) * 1.3);animation-duration:calc(var(--animate-duration) * 1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-1200px) scale(.7);transform:translateY(-1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(1200px) scale(.7);transform:translateY(1200px) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(700px) scale(.7);transform:translateY(700px) scale(.7);opacity:.7}}.animate__backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-2000px) scale(.7);transform:translate(-2000px) scale(.7);opacity:.7}}.animate__backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0px) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(2000px) scale(.7);transform:translate(2000px) scale(.7);opacity:.7}}.animate__backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0px) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-700px) scale(.7);transform:translateY(-700px) scale(.7);opacity:.7}}.animate__backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0) scaleY(3);transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0) scaleY(.9);transform:translate3d(0,25px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-10px,0) scaleY(.95);transform:translate3d(0,-10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,5px,0) scaleY(.985);transform:translate3d(0,5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0) scaleX(3);transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0) scaleX(1);transform:translate3d(25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-10px,0,0) scaleX(.98);transform:translate3d(-10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(5px,0,0) scaleX(.995);transform:translate3d(5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0) scaleX(3);transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0) scaleX(1);transform:translate3d(-25px,0,0) scaleX(1)}75%{-webkit-transform:translate3d(10px,0,0) scaleX(.98);transform:translate3d(10px,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-5px,0,0) scaleX(.995);transform:translate3d(-5px,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0) scaleY(5);transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,10px,0) scaleY(.95);transform:translate3d(0,10px,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-5px,0) scaleY(.985);transform:translate3d(0,-5px,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.animate__bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0) scaleY(.985);transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0) scaleY(.9);transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0) scaleY(3);transform:translate3d(0,2000px,0) scaleY(3)}}.animate__bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0) scaleX(.9);transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0) scaleX(2);transform:translate3d(-2000px,0,0) scaleX(2)}}.animate__bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0) scaleX(.9);transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0) scaleX(2);transform:translate3d(2000px,0,0) scaleX(2)}}.animate__bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0) scaleY(.985);transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0) scaleY(.9);transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0) scaleY(3);transform:translate3d(0,-2000px,0) scaleY(3)}}.animate__bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate__fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.animate__fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.animate__fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.animate__fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.animate__fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.animate__fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.animate__fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.animate__fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.animate__fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.animate__fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animate__animated.animate__flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.animate__flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.animate__flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}.animate__flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}.animate__flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.animate__lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.animate__lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.animate__rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.animate__rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.animate__rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.animate__hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.animate__jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.animate__rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.animate__zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.animate__zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0)}}.animate__zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0)}}.animate__zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.ProseMirror,.ProseMirror-static{outline:0;border:0;font-size:16px;overflow-wrap:break-word;word-break:normal;white-space:normal}.ProseMirror:not(.ProseMirror-static),.ProseMirror-static:not(.ProseMirror-static){-webkit-user-select:text;user-select:text}.ProseMirror ::selection,.ProseMirror-static ::selection{background-color:#d1442440;color:inherit}.ProseMirror p,.ProseMirror-static p{margin:0;margin-top:var(--paragraphSpace)}.ProseMirror p:first-child,.ProseMirror-static p:first-child{margin-top:0}.ProseMirror ul,.ProseMirror ol,.ProseMirror li,.ProseMirror-static ul,.ProseMirror-static ol,.ProseMirror-static li{margin:0;margin-top:var(--paragraphSpace)}.ProseMirror ul,.ProseMirror-static ul{list-style-type:disc;padding-inline-start:1.25em}.ProseMirror ul li,.ProseMirror-static ul li{list-style-type:inherit}.ProseMirror ol,.ProseMirror-static ol{list-style-type:decimal;padding-inline-start:1.25em}.ProseMirror ol li,.ProseMirror-static ol li{list-style-type:inherit}.ProseMirror code,.ProseMirror-static code{background-color:#f1f1f1;padding:2px 6px;margin:0 1px;border-radius:4px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.ProseMirror sup,.ProseMirror-static sup{vertical-align:super;font-size:smaller}.ProseMirror sub,.ProseMirror-static sub{vertical-align:sub;font-size:smaller}.ProseMirror blockquote,.ProseMirror-static blockquote{overflow:hidden;padding:0 1.2em;margin:.6em 0;font-style:italic;border-left:4px solid #e0e0e0}.ProseMirror [data-indent="1"],.ProseMirror-static [data-indent="1"]{padding-left:1em}.ProseMirror [data-indent="2"],.ProseMirror-static [data-indent="2"]{padding-left:2em}.ProseMirror [data-indent="3"],.ProseMirror-static [data-indent="3"]{padding-left:3em}.ProseMirror [data-indent="4"],.ProseMirror-static [data-indent="4"]{padding-left:4em}.ProseMirror [data-indent="5"],.ProseMirror-static [data-indent="5"]{padding-left:5em}.ProseMirror [data-indent="6"],.ProseMirror-static [data-indent="6"]{padding-left:6em}.ProseMirror [data-indent="7"],.ProseMirror-static [data-indent="7"]{padding-left:7em}.ProseMirror [data-indent="8"],.ProseMirror-static [data-indent="8"]{padding-left:8em}.ProseMirror-selectednode{outline:none!important}`)),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
12
|
+
(function(){"use strict";/**
|
|
13
|
+
* @vue/shared v3.5.43
|
|
14
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
15
|
+
* @license MIT
|
|
16
|
+
**/function Em(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const ar={},Xs=[],_a=()=>{},Nw=()=>!1,Lv=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ev=t=>t.startsWith("onUpdate:"),Wr=Object.assign,Pm=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},VP=Object.prototype.hasOwnProperty,Yt=(t,e)=>VP.call(t,e),vt=Array.isArray,Vo=t=>Qf(t)==="[object Map]",Pv=t=>Qf(t)==="[object Set]",Fw=t=>Qf(t)==="[object Date]",bt=t=>typeof t=="function",yr=t=>typeof t=="string",wi=t=>typeof t=="symbol",qt=t=>t!==null&&typeof t=="object",$w=t=>(qt(t)||bt(t))&&bt(t.then)&&bt(t.catch),zw=Object.prototype.toString,Qf=t=>zw.call(t),GP=t=>Qf(t).slice(8,-1),Hw=t=>Qf(t)==="[object Object]",Rv=t=>yr(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ec=Em(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ov=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},WP=/-\w/g,Cn=Ov(t=>t.replace(WP,e=>e.slice(1).toUpperCase())),UP=/\B([A-Z])/g,js=Ov(t=>t.replace(UP,"-$1").toLowerCase()),Bv=Ov(t=>t.charAt(0).toUpperCase()+t.slice(1)),Rm=Ov(t=>t?`on${Bv(t)}`:""),ba=(t,e)=>!Object.is(t,e),Om=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},Vw=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},qP=t=>{const e=parseFloat(t);return isNaN(e)?t:e},KP=t=>{const e=yr(t)?Number(t):NaN;return isNaN(e)?t:e};let Gw;const Nv=()=>Gw||(Gw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ft(t){if(vt(t)){const e={};for(let r=0;r<t.length;r++){const n=t[r],i=yr(n)?ZP(n):ft(n);if(i)for(const a in i)e[a]=i[a]}return e}else if(yr(t)||qt(t))return t}const YP=/;(?![^(]*\))/g,XP=/:([^]+)/,jP=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function ZP(t){const e={};return t.replace(jP,r=>r.startsWith("/*")?"":r).split(YP).forEach(r=>{if(r){const n=r.split(XP);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function An(t){let e="";if(yr(t))e=t;else if(vt(t))for(let r=0;r<t.length;r++){const n=An(t[r]);n&&(e+=n+" ")}else if(qt(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}const JP=Em("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ww(t){return!!t||t===""}function QP(t,e,r){if(t.length!==e.length)return!1;let n=!0;for(let i=0;n&&i<t.length;i++)n=Fv(t[i],e[i],r);return n}function Uw(t,e,r){if(t.size!==e.size)return!1;const n=Array.from(e),i=new Uint8Array(n.length);for(const a of t){let o=-1;for(let s=0;s<n.length;s++)if(!i[s]&&Fv(a,n[s],r)){o=s;break}if(o<0)return!1;i[o]=1}return!0}function eR(t,e,r){let n=Vo(t),i=Vo(e);if(n||i||(n=Pv(t),i=Pv(e),n||i))return n&&i?Uw(t,e,r):!1;const a=Object.keys(t).length,o=Object.keys(e).length;if(a!==o)return!1;for(const s in t){const l=t.hasOwnProperty(s),u=e.hasOwnProperty(s);if(l&&!u||!l&&u||!Fv(t[s],e[s],r))return!1}return String(t)===String(e)}function qw(t,e,r,n){r||(r=[new Map,new Map]);const[i,a]=r;if(i.has(t)||a.has(e))return i.get(t)===e&&a.get(e)===t;i.set(t,e),a.set(e,t);const o=n(t,e,r);return i.delete(t),a.delete(e),o}function Fv(t,e,r){if(t===e)return!0;let n=Fw(t),i=Fw(e);return n||i?n&&i?t.getTime()===e.getTime():!1:(n=wi(t),i=wi(e),n||i?t===e:(n=vt(t),i=vt(e),n||i?n&&i?qw(t,e,r,QP):!1:(n=qt(t),i=qt(e),n||i?!n||!i?!1:qw(t,e,r,eR):String(t)===String(e))))}const Kw=t=>!!(t&&t.__v_isRef===!0),Nn=t=>yr(t)?t:t==null?"":vt(t)||qt(t)&&(t.toString===zw||!bt(t.toString))?Kw(t)?Nn(t.value):JSON.stringify(t,Yw,2):String(t),Yw=(t,e)=>Kw(e)?Yw(t,e.value):Vo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i],a)=>(r[Bm(n,a)+" =>"]=i,r),{})}:Pv(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>Bm(r))}:wi(e)?Bm(e):qt(e)&&!vt(e)&&!Hw(e)?String(e):e,Bm=(t,e="")=>{var r;return wi(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/**
|
|
17
|
+
* @vue/reactivity v3.5.43
|
|
18
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
|
+
* @license MIT
|
|
20
|
+
**/let Ur;class Xw{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Ur&&(Ur.active?(this.parent=Ur,this.index=(Ur.scopes||(Ur.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes){const n=this.scopes.slice();for(e=0,r=n.length;e<r;e++)n[e].pause()}for(e=0,r=this.effects.length;e<r;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,r;if(this.scopes){const i=this.scopes.slice();for(e=0,r=i.length;e<r;e++)i[e].resume()}const n=this.effects.slice();for(e=0,r=n.length;e<r;e++)n[e].resume()}}run(e){if(this._active){const r=Ur;try{return Ur=this,e()}finally{Ur=r}}}on(){++this._on===1&&(this.prevScope=Ur,Ur=this)}off(){if(this._on>0&&--this._on===0){if(Ur===this)Ur=this.prevScope;else{let e=Ur;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){const i=this.scopes.slice();for(r=0,n=i.length;r<n;r++)i[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function jw(t){return new Xw(t)}function Zw(){return Ur}function tR(t,e=!1){Ur&&Ur.cleanups.push(t)}let fr;const Nm=new WeakSet;class Jw{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ur&&(Ur.active?Ur.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Nm.has(this)&&(Nm.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ex(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ax(this),tx(this);const e=fr,r=Ki;fr=this,Ki=!0;try{return this.fn()}finally{rx(this),fr=e,Ki=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Hm(e);this.deps=this.depsTail=void 0,ax(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Nm.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zm(this)&&this.run()}get dirty(){return zm(this)}}let Qw=0,tc,rc;function ex(t,e=!1){if(t.flags|=8,e){t.next=rc,rc=t;return}t.next=tc,tc=t}function Fm(){Qw++}function $m(){if(--Qw>0)return;if(rc){let e=rc;for(rc=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;tc;){let e=tc;for(tc=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function tx(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function rx(t){let e,r=t.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),Hm(n),rR(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=r}function zm(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(nx(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function nx(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===nc)||(t.globalVersion=nc,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!zm(t))))return;t.flags|=2;const e=t.dep,r=fr,n=Ki;fr=t,Ki=!0;try{tx(t);const i=t.fn(t._value);(e.version===0||ba(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{fr=r,Ki=n,rx(t),t.flags&=-3}}function Hm(t,e=!1){const{dep:r,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)Hm(a,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function rR(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}let Ki=!0;const ix=[];function wa(){ix.push(Ki),Ki=!1}function xa(){const t=ix.pop();Ki=t===void 0?!0:t}function ax(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=fr;fr=void 0;try{e()}finally{fr=r}}}let nc=0;class nR{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Vm{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!fr||!Ki||fr===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==fr)r=this.activeLink=new nR(fr,this),fr.deps?(r.prevDep=fr.depsTail,fr.depsTail.nextDep=r,fr.depsTail=r):fr.deps=fr.depsTail=r,ox(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=fr.depsTail,r.nextDep=void 0,fr.depsTail.nextDep=r,fr.depsTail=r,fr.deps===r&&(fr.deps=n)}return r}trigger(e){this.version++,nc++,this.notify(e)}notify(e){Fm();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{$m()}}}function ox(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)ox(n)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const $v=new WeakMap,Zs=Symbol(""),Gm=Symbol(""),ic=Symbol("");function vn(t,e,r){if(Ki&&fr){let n=$v.get(t);n||$v.set(t,n=new Map);let i=n.get(r);i||(n.set(r,i=new Vm),i.map=n,i.key=r),i.track()}}function lo(t,e,r,n,i,a){const o=$v.get(t);if(!o){nc++;return}const s=l=>{l&&l.trigger()};if(Fm(),e==="clear")o.forEach(s);else{const l=vt(t),u=l&&Rv(r);if(l&&r==="length"){const c=Number(n);o.forEach((h,p)=>{(p==="length"||p===ic||!wi(p)&&p>=c)&&s(h)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(ic)),e){case"add":l?u&&s(o.get("length")):(s(o.get(Zs)),Vo(t)&&s(o.get(Gm)));break;case"delete":l||(s(o.get(Zs)),Vo(t)&&s(o.get(Gm)));break;case"set":Vo(t)&&s(o.get(Zs));break}}$m()}function iR(t,e){const r=$v.get(t);return r&&r.get(e)}function Cu(t){const e=zt(t);return e===t||(vn(e,"iterate",ic),ri(t))?e:Ta(t)?Yi(t)?e.map(r=>Go(xi(r))):e.map(Go):e.map(xi)}function zv(t){return vn(t=zt(t),"iterate",ic),t}function Sa(t,e){return Ta(t)?Go(Yi(t)?xi(e):e):xi(e)}const aR={__proto__:null,[Symbol.iterator](){return Wm(this,Symbol.iterator,t=>Sa(this,t))},concat(...t){return Cu(this).concat(...t.map(e=>vt(e)?Cu(e):e))},entries(){return Wm(this,"entries",t=>(t[1]=Sa(this,t[1]),t))},every(t,e){return uo(this,"every",t,e,void 0,arguments)},filter(t,e){return uo(this,"filter",t,e,r=>r.map(n=>Sa(this,n)),arguments)},find(t,e){return uo(this,"find",t,e,r=>Sa(this,r),arguments)},findIndex(t,e){return uo(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return uo(this,"findLast",t,e,r=>Sa(this,r),arguments)},findLastIndex(t,e){return uo(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return uo(this,"forEach",t,e,void 0,arguments)},includes(...t){return Um(this,"includes",t)},indexOf(...t){return Um(this,"indexOf",t)},join(t){return Cu(this).join(t)},lastIndexOf(...t){return Um(this,"lastIndexOf",t)},map(t,e){return uo(this,"map",t,e,void 0,arguments)},pop(){return ac(this,"pop")},push(...t){return ac(this,"push",t)},reduce(t,...e){return sx(this,"reduce",t,e)},reduceRight(t,...e){return sx(this,"reduceRight",t,e)},shift(){return ac(this,"shift")},some(t,e){return uo(this,"some",t,e,void 0,arguments)},splice(...t){return ac(this,"splice",t)},toReversed(){return Cu(this).toReversed()},toSorted(t){return Cu(this).toSorted(t)},toSpliced(...t){return Cu(this).toSpliced(...t)},unshift(...t){return ac(this,"unshift",t)},values(){return Wm(this,"values",t=>Sa(this,t))}};function Wm(t,e,r){const n=zv(t),i=n[e]();return n!==t&&!ri(t)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=r(a.value)),a}),i}const oR=Array.prototype;function uo(t,e,r,n,i,a){const o=zv(t),s=o!==t&&!ri(t),l=o[e];if(l!==oR[e]){const h=l.apply(t,a);return s?xi(h):h}let u=r;o!==t&&(s?u=function(h,p){return r.call(this,Sa(t,h),p,t)}:r.length>2&&(u=function(h,p){return r.call(this,h,p,t)}));const c=l.call(o,u,n);return s&&i?i(c):c}function sx(t,e,r,n){const i=zv(t),a=i!==t&&!ri(t);let o=r,s=!1;i!==t&&(a?(s=n.length===0,o=function(u,c,h){return s&&(s=!1,u=Sa(t,u)),r.call(this,u,Sa(t,c),h,t)}):r.length>3&&(o=function(u,c,h){return r.call(this,u,c,h,t)}));const l=i[e](o,...n);return s?Sa(t,l):l}function Um(t,e,r){const n=zt(t);vn(n,"iterate",ic);const i=n[e](...r);return(i===-1||i===!1)&&qv(r[0])?(r[0]=zt(r[0]),n[e](...r)):i}function ac(t,e,r=[]){wa(),Fm();const n=zt(t)[e].apply(t,r);return $m(),xa(),n}const sR=Em("__proto__,__v_isRef,__isVue"),lx=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(wi));function lR(t){wi(t)||(t=String(t));const e=zt(this);return vn(e,"has",t),e.hasOwnProperty(t)}class ux{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?px:dx:a?vx:hx).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=vt(e);if(!i){let l;if(o&&(l=aR[r]))return l;if(r==="hasOwnProperty")return lR}const s=Reflect.get(e,r,_r(e)?e:n);if((wi(r)?lx.has(r):sR(r))||(i||vn(e,"get",r),a))return s;if(_r(s)){const l=o&&Rv(r)?s:s.value;return i&&qt(l)?Km(l):l}return qt(s)?i?Km(s):Wv(s):s}}class fx extends ux{constructor(e=!1){super(!1,e)}set(e,r,n,i){let a=e[r];const o=vt(e)&&Rv(r);if(!this._isShallow){const u=Ta(a);if(!ri(n)&&!Ta(n)&&(a=zt(a),n=zt(n)),!o&&_r(a)&&!_r(n))return u||(a.value=n),!0}const s=o?Number(r)<e.length:Yt(e,r),l=Reflect.set(e,r,n,_r(e)?e:i);return e===zt(i)&&l&&(s?ba(n,a)&&lo(e,"set",r,n):lo(e,"add",r,n)),l}deleteProperty(e,r){const n=Yt(e,r);e[r];const i=Reflect.deleteProperty(e,r);return i&&n&&lo(e,"delete",r,void 0),i}has(e,r){const n=Reflect.has(e,r);return(!wi(r)||!lx.has(r))&&vn(e,"has",r),n}ownKeys(e){return vn(e,"iterate",vt(e)?"length":Zs),Reflect.ownKeys(e)}}class cx extends ux{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}}const uR=new fx,fR=new cx,cR=new fx(!0),hR=new cx(!0),qm=t=>t,Hv=t=>Reflect.getPrototypeOf(t);function vR(t,e,r){return function(...n){const i=this.__v_raw,a=zt(i),o=Vo(a),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=i[t](...n),c=r?qm:e?Go:xi;return!e&&vn(a,"iterate",l?Gm:Zs),Wr(Object.create(u),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:s?[c(h[0]),c(h[1])]:c(h),done:p}}})}}function Vv(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function dR(t,e){const r={get(i){const a=this.__v_raw,o=zt(a),s=zt(i);t||(ba(i,s)&&vn(o,"get",i),vn(o,"get",s));const{has:l}=Hv(o),u=e?qm:t?Go:xi;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!t&&vn(zt(i),"iterate",Zs),i.size},has(i){const a=this.__v_raw,o=zt(a),s=zt(i);return t||(ba(i,s)&&vn(o,"has",i),vn(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=zt(s),u=e?qm:t?Go:xi;return!t&&vn(l,"iterate",Zs),s.forEach((c,h)=>i.call(a,u(c),u(h),o))}};return Wr(r,t?{add:Vv("add"),set:Vv("set"),delete:Vv("delete"),clear:Vv("clear")}:{add(i){const a=zt(this),o=Hv(a),s=zt(i),l=!e&&!ri(i)&&!Ta(i)?s:i;return o.has.call(a,l)||ba(i,l)&&o.has.call(a,i)||ba(s,l)&&o.has.call(a,s)||(a.add(l),lo(a,"add",l,l)),this},set(i,a){!e&&!ri(a)&&!Ta(a)&&(a=zt(a));const o=zt(this),{has:s,get:l}=Hv(o);let u=s.call(o,i);u||(i=zt(i),u=s.call(o,i));const c=l.call(o,i);return o.set(i,a),u?ba(a,c)&&lo(o,"set",i,a):lo(o,"add",i,a),this},delete(i){const a=zt(this),{has:o,get:s}=Hv(a);let l=o.call(a,i);l||(i=zt(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&lo(a,"delete",i,void 0),u},clear(){const i=zt(this),a=i.size!==0,o=i.clear();return a&&lo(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=vR(i,t,e)}),r}function Gv(t,e){const r=dR(t,e);return(n,i,a)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Yt(r,i)&&i in n?r:n,i,a)}const pR={get:Gv(!1,!1)},gR={get:Gv(!1,!0)},mR={get:Gv(!0,!1)},yR={get:Gv(!0,!0)},hx=new WeakMap,vx=new WeakMap,dx=new WeakMap,px=new WeakMap;function _R(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wv(t){return Ta(t)?t:Uv(t,!1,uR,pR,hx)}function bR(t){return Uv(t,!1,cR,gR,vx)}function Km(t){return Uv(t,!0,fR,mR,dx)}function aJ(t){return Uv(t,!0,hR,yR,px)}function Uv(t,e,r,n,i){if(!qt(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const a=i.get(t);if(a)return a;const o=_R(GP(t));if(o===0)return t;const s=new Proxy(t,o===2?n:r);return i.set(t,s),s}function Yi(t){return Ta(t)?Yi(t.__v_raw):!!(t&&t.__v_isReactive)}function Ta(t){return!!(t&&t.__v_isReadonly)}function ri(t){return!!(t&&t.__v_isShallow)}function qv(t){return t?!!t.__v_raw:!1}function zt(t){const e=t&&t.__v_raw;return e?zt(e):t}function Fn(t){return!Yt(t,"__v_skip")&&Object.isExtensible(t)&&Vw(t,"__v_skip",!0),t}const xi=t=>qt(t)?Wv(t):t,Go=t=>qt(t)?Km(t):t;function _r(t){return t?t.__v_isRef===!0:!1}function Dt(t){return gx(t,!1)}function wR(t){return gx(t,!0)}function gx(t,e){return _r(t)?t:new xR(t,e)}class xR{constructor(e,r){this.dep=new Vm,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:zt(e),this._value=r?e:xi(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,n=this.__v_isShallow||ri(e)||Ta(e);e=n?e:zt(e),ba(e,r)&&(this._rawValue=e,this._value=n?e:xi(e),this.dep.trigger())}}function et(t){return _r(t)?t.value:t}const SR={get:(t,e,r)=>e==="__v_raw"?t:et(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return _r(i)&&!_r(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function mx(t){return Yi(t)?t:new Proxy(t,SR)}function TR(t){const e=vt(t)?new Array(t.length):{};for(const r in t)e[r]=yx(t,r);return e}class CR{constructor(e,r,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=wi(r)?r:String(r),this._raw=zt(e);let i=!0,a=e;if(!vt(e)||wi(this._key)||!Rv(this._key))do i=!qv(a)||ri(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=et(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&_r(this._raw[this._key])){const r=this._object[this._key];if(_r(r)){r.value=e;return}}this._object[this._key]=e}get dep(){return iR(this._raw,this._key)}}class AR{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function oc(t,e,r){return _r(t)?t:bt(t)?new AR(t):qt(t)&&arguments.length>1?yx(t,e,r):Dt(t)}function yx(t,e,r){return new CR(t,e,r)}class MR{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new Vm(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=nc-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&fr!==this)return ex(this,!0),!0}get value(){const e=this.dep.track();return nx(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function IR(t,e,r=!1){let n,i;return bt(t)?n=t:(n=t.get,i=t.set),new MR(n,i,r)}const Kv={},Yv=new WeakMap;let Js;function DR(t,e=!1,r=Js){if(r){let n=Yv.get(r);n||Yv.set(r,n=[]),n.push(t)}}function kR(t,e,r=ar){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=I=>i?I:ri(I)||i===!1||i===0?fo(I,1):fo(I);let c,h,p,d,g=!1,y=!1;if(_r(t)?(h=()=>t.value,g=ri(t)):Yi(t)?(h=()=>u(t),g=!0):vt(t)?(y=!0,g=t.some(I=>Yi(I)||ri(I)),h=()=>t.map(I=>{if(_r(I))return I.value;if(Yi(I))return u(I);if(bt(I))return l?l(I,2):I()})):bt(t)?e?h=l?()=>l(t,2):t:h=()=>{if(p){wa();try{p()}finally{xa()}}const I=Js;Js=c;try{return l?l(t,3,[d]):t(d)}finally{Js=I}}:h=_a,e&&i){const I=h,L=i===!0?1/0:i;h=()=>fo(I(),L)}const w=Zw(),b=()=>{c.stop(),w&&w.active&&Pm(w.effects,c)};if(a&&e){const I=e;e=(...L)=>{const k=I(...L);return b(),k}}let S=y?new Array(t.length).fill(Kv):Kv;const A=I=>{if(!(!(c.flags&1)||!c.dirty&&!I))if(e){const L=c.run();if(I||i||g||(y?L.some((k,P)=>ba(k,S[P])):ba(L,S))){p&&p();const k=Js;Js=c;try{const P=[L,S===Kv?void 0:y&&S[0]===Kv?[]:S,d];S=L,l?l(e,3,P):e(...P)}finally{Js=k}}}else c.run()};return s&&s(A),c=new Jw(h),c.scheduler=o?()=>o(A,!1):A,d=I=>DR(I,!1,c),p=c.onStop=()=>{const I=Yv.get(c);if(I){if(l)l(I,4);else for(const L of I)L();Yv.delete(c)}},e?n?A(!0):S=c.run():o?o(A.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function fo(t,e=1/0,r){if(e<=0||!qt(t)||t.__v_skip||(r=r||new Map,(r.get(t)||0)>=e))return t;if(r.set(t,e),e--,_r(t))fo(t.value,e,r);else if(vt(t))for(let n=0;n<t.length;n++)fo(t[n],e,r);else if(Pv(t)||Vo(t))t.forEach(n=>{fo(n,e,r)});else if(Hw(t)){for(const n in t)fo(t[n],e,r);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&fo(t[n],e,r)}return t}/**
|
|
21
|
+
* @vue/runtime-core v3.5.43
|
|
22
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
23
|
+
* @license MIT
|
|
24
|
+
**/const sc=[];let Ym=!1;function oJ(t,...e){if(Ym)return;Ym=!0,wa();const r=sc.length?sc[sc.length-1].component:null,n=r&&r.appContext.config.warnHandler,i=LR();if(n)Au(n,r,11,[t+e.map(a=>{var o,s;return(s=(o=a.toString)==null?void 0:o.call(a))!=null?s:JSON.stringify(a)}).join(""),r&&r.proxy,i.map(({vnode:a})=>`at <${TS(r,a.type)}>`).join(`
|
|
25
|
+
`),i]);else{const a=[`[Vue warn]: ${t}`,...e];i.length&&a.push(`
|
|
26
|
+
`,...ER(i)),console.warn(...a)}xa(),Ym=!1}function LR(){let t=sc[sc.length-1];if(!t)return[];const e=[];for(;t;){const r=e[0];r&&r.vnode===t?r.recurseCount++:e.push({vnode:t,recurseCount:0});const n=t.component&&t.component.parent;t=n&&n.vnode}return e}function ER(t){const e=[];return t.forEach((r,n)=>{e.push(...n===0?[]:[`
|
|
27
|
+
`],...PR(r))}),e}function PR({vnode:t,recurseCount:e}){const r=e>0?`... (${e} recursive calls)`:"",n=t.component?t.component.parent==null:!1,i=` at <${TS(t.component,t.type,n)}`,a=">"+r;return t.props?[i,...RR(t.props),a]:[i+a]}function RR(t){const e=[],r=Object.keys(t);return r.slice(0,3).forEach(n=>{e.push(..._x(n,t[n]))}),r.length>3&&e.push(" ..."),e}function _x(t,e,r){return yr(e)?(e=JSON.stringify(e),r?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?r?e:[`${t}=${e}`]:_r(e)?(e=_x(t,zt(e.value),!0),r?e:[`${t}=Ref<`,e,">"]):bt(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=zt(e),r?e:[`${t}=`,e])}function Au(t,e,r,n){try{return n?t(...n):t()}catch(i){Xv(i,e,r)}}function Si(t,e,r,n){if(bt(t)){const i=Au(t,e,r,n);return i&&$w(i)&&i.catch(a=>{Xv(a,e,r)}),i}if(vt(t)){const i=[];for(let a=0;a<t.length;a++)i.push(Si(t[a],e,r,n));return i}}function Xv(t,e,r,n=!0){const i=e?e.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||ar;if(e){let s=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const c=s.ec;if(c){for(let h=0;h<c.length;h++)if(c[h](t,l,u)===!1)return}s=s.parent}if(a){wa(),Au(a,null,10,[t,l,u]),xa();return}}OR(t,r,i,n,o)}function OR(t,e,r,n=!0,i=!1){if(i)throw t;console.error(t)}const Mn=[];let Ca=-1;const Mu=[];let Wo=null,Iu=0;const bx=Promise.resolve();let jv=null;function xx(t){const e=jv||bx;return t?e.then(this?t.bind(this):t):e}function BR(t){let e=Ca+1,r=Mn.length;for(;e<r;){const n=e+r>>>1,i=Mn[n],a=lc(i);a<t||a===t&&i.flags&2?e=n+1:r=n}return e}function Xm(t){if(!(t.flags&1)){const e=lc(t),r=Mn[Mn.length-1];!r||!(t.flags&2)&&e>=lc(r)?Mn.push(t):Mn.splice(BR(e),0,t),t.flags|=1,Sx()}}function Sx(){jv||(jv=bx.then(Ax))}function NR(t){if(!vt(t))Wo&&t.id===-1?Wo.splice(Iu+1,0,t):t.flags&1||(Mu.push(t),t.flags|=1);else for(let e=0;e<t.length;e++)Mu.push(t[e]);Sx()}function Tx(t,e,r=Ca+1){for(;r<Mn.length;r++){const n=Mn[r];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Mn.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Cx(t){if(Mu.length){const e=[...new Set(Mu)].sort((r,n)=>lc(r)-lc(n));if(Mu.length=0,Wo){for(let r=0;r<e.length;r++)Wo.push(e[r]);return}for(Wo=e,Iu=0;Iu<Wo.length;Iu++){const r=Wo[Iu];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Wo=null,Iu=0}}const lc=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Ax(t){try{for(Ca=0;Ca<Mn.length;Ca++){const e=Mn[Ca];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Au(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Ca<Mn.length;Ca++){const e=Mn[Ca];e&&(e.flags&=-2)}Ca=-1,Mn.length=0,Cx(),jv=null,(Mn.length||Mu.length)&&Ax()}}let ni=null,Mx=null;function Zv(t){const e=ni;return ni=t,Mx=t&&t.type.__scopeId||null,e}function Ix(t,e=ni,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&od(-1);const a=Zv(e),o=nl.length;let s;try{s=t(...i)}finally{for(let l=nl.length;l>o;l--)gS();Zv(a),n._d&&od(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function Dx(t,e){if(ni===null)return t;const r=hd(ni),n=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[a,o,s,l=ar]=e[i];a&&(bt(a)&&(a={mounted:a,updated:a}),a.deep&&fo(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return t}function Qs(t,e,r,n){const i=t.dirs,a=e&&e.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(wa(),Si(l,r,8,[t.el,s,t,e]),xa())}}function jm(t,e){if(dn){let r=dn.provides;const n=dn.parent&&dn.parent.provides;n===r&&(r=dn.provides=Object.create(n)),r[t]=e}}function Aa(t,e,r=!1){const n=fd();if(n||tl){let i=tl?tl._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return r&&bt(e)?e.call(n&&n.proxy):e}}function FR(){return!!(fd()||tl)}const $R=Symbol.for("v-scx"),zR=()=>Aa($R);function Ti(t,e,r){return kx(t,e,r)}function kx(t,e,r=ar){const{immediate:n,deep:i,flush:a,once:o}=r,s=Wr({},r),l=e&&n||!e&&a!=="post";let u;if(yc){if(a==="sync"){const d=zR();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=_a,d.resume=_a,d.pause=_a,d}}const c=dn;s.call=(d,g,y)=>Si(d,c,g,y);let h=!1;a==="post"?s.scheduler=d=>{$n(d,c&&c.suspense)}:a!=="sync"&&(h=!0,s.scheduler=(d,g)=>{g?d():Xm(d)}),s.augmentJob=d=>{e&&(d.flags|=4),h&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const p=kR(t,e,s);return yc&&(u?u.push(p):l&&p()),p}function HR(t,e,r){const n=this.proxy,i=yr(t)?t.includes(".")?Lx(n,t):()=>n[t]:t.bind(n,n);let a;bt(e)?a=e:(a=e.handler,r=e);const o=mc(this),s=kx(i,a.bind(n),r);return o(),s}function Lx(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}const VR=Symbol("_vte"),Jv=t=>t.__isTeleport,Ci=Symbol("_leaveCb"),uc=Symbol("_enterCb");function GR(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return el(()=>{t.isMounted=!0}),Du(()=>{t.isUnmounting=!0}),t}const Ai=[Function,Array],Ex={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ai,onEnter:Ai,onAfterEnter:Ai,onEnterCancelled:Ai,onBeforeLeave:Ai,onLeave:Ai,onAfterLeave:Ai,onLeaveCancelled:Ai,onBeforeAppear:Ai,onAppear:Ai,onAfterAppear:Ai,onAppearCancelled:Ai},Px=t=>{const e=t.subTree;return e.component?Px(e.component):e},WR={name:"BaseTransition",props:Ex,setup(t,{slots:e}){const r=fd(),n=GR();return()=>{const i=e.default&&Bx(e.default(),!0),a=i&&i.length?Rx(i):r.subTree?Sr():void 0;if(!a)return;const o=zt(t),{mode:s}=o;if(n.isLeaving)return Jm(a);const l=Qv(a);if(!l)return Jm(a);let u=Zm(l,o,n,r,h=>u=h);l.type!==Dn&&fc(l,u);let c=r.subTree&&Qv(r.subTree);if(c&&c.type!==Dn&&!il(c,l)&&Px(r).type!==Dn){let h=Zm(c,o,n,r);if(fc(c,h),s==="out-in"&&l.type!==Dn)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete h.afterLeave,c=void 0},Jm(a);s==="in-out"&&l.type!==Dn?h.delayLeave=(p,d,g)=>{const y=Ox(n,c);y[String(c.key)]=c,p[Ci]=()=>{d(),p[Ci]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function Rx(t){let e=t[0];if(t.length>1){for(const r of t)if(r.type!==Dn){e=r;break}}return e}const UR=WR;function Ox(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function Zm(t,e,r,n,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:h,onBeforeLeave:p,onLeave:d,onAfterLeave:g,onLeaveCancelled:y,onBeforeAppear:w,onAppear:b,onAfterAppear:S,onAppearCancelled:A}=e,I=String(t.key),L=Ox(r,t),k=(F,W)=>{F&&Si(F,n,9,W)},P=(F,W)=>{const G=W[1];k(F,W),vt(F)?F.every(K=>K.length<=1)&&G():F.length<=1&&G()},z={mode:o,persisted:s,beforeEnter(F){let W=l;if(!r.isMounted)if(a)W=w||l;else return;F[Ci]&&F[Ci](!0);const G=L[I];G&&il(t,G)&&G.el[Ci]&&G.el[Ci](),k(W,[F])},enter(F){if(L[I]===t)return;let W=u,G=c,K=h;if(!r.isMounted)if(a)W=b||u,G=S||c,K=A||h;else return;let q=!1;F[uc]=ve=>{q||(q=!0,ve?k(K,[F]):k(G,[F]),z.delayedLeave&&z.delayedLeave(),F[uc]=void 0)};const ie=F[uc].bind(null,!1);W?P(W,[F,ie]):ie()},leave(F,W){const G=String(t.key);if(F[uc]&&F[uc](!0),r.isUnmounting)return W();k(p,[F]);let K=!1;F[Ci]=ie=>{K||(K=!0,W(),ie?k(y,[F]):k(g,[F]),F[Ci]=void 0,L[G]===t&&delete L[G])};const q=F[Ci].bind(null,!1);L[G]=t,d?P(d,[F,q]):q()},clone(F){const W=Zm(F,e,r,n,i);return i&&i(W),W}};return z}function Jm(t){if(td(t))return t=qo(t),t.children=null,t}function Qv(t){if(!td(t))return Jv(t.type)&&t.children?Rx(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&bt(r.default))return r.default()}}function fc(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;const r=t.component.subTree;fc(Jv(r.type)&&Qv(r)||r,e)}else t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Bx(t,e=!1,r){let n=[],i=0;for(let a=0;a<t.length;a++){let o=t[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===Jr?(o.patchFlag&128&&i++,n=n.concat(Bx(o.children,e,s))):(e||o.type!==Dn)&&n.push(s!=null?qo(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function cr(t,e){return bt(t)?Wr({name:t.name},e,{setup:t}):t}function Nx(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Ma(t){const e=fd(),r=wR(null);if(e){const i=e.refs===ar?e.refs={}:e.refs;Object.defineProperty(i,t,{enumerable:!0,get:()=>r.value,set:a=>r.value=a})}return r}function Fx(t,e){let r;return!!((r=Object.getOwnPropertyDescriptor(t,e))&&!r.configurable)}const ed=new WeakMap;function cc(t,e,r,n,i=!1){if(vt(t)){t.forEach((y,w)=>cc(y,e&&(vt(e)?e[w]:e),r,n,i));return}if(hc(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&cc(t,e,r,n.component.subTree);return}const a=n.shapeFlag&4?hd(n.component):n.el,o=i?null:a,{i:s,r:l}=t,u=e&&e.r,c=s.refs===ar?s.refs={}:s.refs,h=s.setupState,p=zt(h),d=h===ar?Nw:y=>Fx(c,y)?!1:Yt(p,y),g=(y,w)=>!(w&&Fx(c,w));if(u!=null&&u!==l){if($x(e),yr(u))c[u]=null,d(u)&&(h[u]=null);else if(_r(u)){const y=e;g(u,y.k)&&(u.value=null),y.k&&(c[y.k]=null)}}if(bt(l))Au(l,s,12,[o,c]);else{const y=yr(l),w=_r(l);if(y||w){const b=()=>{if(t.f){const S=y?d(l)?h[l]:c[l]:g()||!t.k?l.value:c[t.k];if(i)vt(S)&&Pm(S,a);else if(vt(S))S.includes(a)||S.push(a);else if(y)c[l]=[a],d(l)&&(h[l]=c[l]);else{const A=[a];g(l,t.k)&&(l.value=A),t.k&&(c[t.k]=A)}}else y?(c[l]=o,d(l)&&(h[l]=o)):w&&(g(l,t.k)&&(l.value=o),t.k&&(c[t.k]=o))};if(o){const S=()=>{b(),ed.delete(t)};S.id=-1,ed.set(t,S),$n(S,r)}else $x(t),b()}}}function $x(t){const e=ed.get(t);e&&(e.flags|=8,ed.delete(t))}Nv().requestIdleCallback,Nv().cancelIdleCallback;const hc=t=>!!t.type.__asyncLoader,td=t=>t.type.__isKeepAlive;function qR(t,e){zx(t,"a",e)}function KR(t,e){zx(t,"da",e)}function zx(t,e,r=dn){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(rd(e,n,r),r){let i=r.parent;for(;i&&i.parent;)td(i.parent.vnode)&&YR(n,e,r,i),i=i.parent}}function YR(t,e,r,n){const i=rd(e,t,n,!0);Vx(()=>{Pm(n[e],i)},r)}function rd(t,e,r=dn,n=!1){if(r){const i=r[t]||(r[t]=[]),a=e.__weh||(e.__weh=(...o)=>{wa();const s=mc(r),l=Si(e,r,t,o);return s(),xa(),l});return n?i.unshift(a):i.push(a),a}}const co=t=>(e,r=dn)=>{(!yc||t==="sp")&&rd(t,(...n)=>e(...n),r)},Hx=co("bm"),el=co("m"),XR=co("bu"),jR=co("u"),Du=co("bum"),Vx=co("um"),ZR=co("sp"),JR=co("rtg"),QR=co("rtc");function eO(t,e=dn){rd("ec",t,e)}const tO="components",Gx=Symbol.for("v-ndc");function rO(t){return yr(t)?nO(tO,t,!1)||t:t||Gx}function nO(t,e,r=!0,n=!1){const i=ni||dn;if(i){const a=i.type;{const s=SS(a,!1);if(s&&(s===e||s===Cn(e)||s===Bv(Cn(e))))return a}const o=Wx(i[t]||a[t],e)||Wx(i.appContext[t],e);return!o&&n?a:o}}function Wx(t,e){return t&&(t[e]||t[Cn(e)]||t[Bv(Cn(e))])}function Uo(t,e,r,n){let i;const a=r,o=vt(t);if(o||yr(t)){const s=o&&Yi(t);let l=!1,u=!1;s&&(l=!ri(t),u=Ta(t),t=zv(t)),i=new Array(t.length);for(let c=0,h=t.length;c<h;c++)i[c]=e(l?u?Go(xi(t[c])):xi(t[c]):t[c],c,void 0,a)}else if(typeof t=="number"){i=new Array(t);for(let s=0;s<t;s++)i[s]=e(s+1,s,void 0,a)}else if(qt(t))if(t[Symbol.iterator])i=Array.from(t,(s,l)=>e(s,l,void 0,a));else{const s=Object.keys(t);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];i[l]=e(t[c],c,l,a)}}else i=[];return i}const Qm=t=>t?bS(t)?hd(t):Qm(t.parent):null,vc=Wr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Qm(t.parent),$root:t=>Qm(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Yx(t),$forceUpdate:t=>t.f||(t.f=()=>{Xm(t.update)}),$nextTick:t=>t.n||(t.n=xx.bind(t.proxy)),$watch:t=>HR.bind(t)}),e0=(t,e)=>t!==ar&&!t.__isScriptSetup&&Yt(t,e),iO={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=t;if(e[0]!=="$"){const p=o[e];if(p!==void 0)switch(p){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return a[e]}else{if(e0(n,e))return o[e]=1,n[e];if(i!==ar&&Yt(i,e))return o[e]=2,i[e];if(Yt(a,e))return o[e]=3,a[e];if(r!==ar&&Yt(r,e))return o[e]=4,r[e];t0&&(o[e]=0)}}const u=vc[e];let c,h;if(u)return e==="$attrs"&&vn(t.attrs,"get",""),u(t);if((c=s.__cssModules)&&(c=c[e]))return c;if(r!==ar&&Yt(r,e))return o[e]=4,r[e];if(h=l.config.globalProperties,Yt(h,e))return h[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:a}=t;return e0(i,e)?(i[e]=r,!0):n!==ar&&Yt(n,e)?(n[e]=r,!0):Yt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:i,props:a,type:o}},s){let l;return!!(r[s]||t!==ar&&s[0]!=="$"&&Yt(t,s)||e0(e,s)||Yt(a,s)||Yt(n,s)||Yt(vc,s)||Yt(i.config.globalProperties,s)||(l=o.__cssModules)&&l[s])},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Yt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function Ux(t){return vt(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let t0=!0;function aO(t){const e=Yx(t),r=t.proxy,n=t.ctx;t0=!1,e.beforeCreate&&qx(e.beforeCreate,t,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:h,mounted:p,beforeUpdate:d,updated:g,activated:y,deactivated:w,beforeDestroy:b,beforeUnmount:S,destroyed:A,unmounted:I,render:L,renderTracked:k,renderTriggered:P,errorCaptured:z,serverPrefetch:F,expose:W,inheritAttrs:G,components:K,directives:q,filters:ie}=e;if(u&&oO(u,n,null),o)for(const be in o){const ue=o[be];bt(ue)&&(n[be]=ue.bind(r))}if(i){const be=i.call(r,r);qt(be)&&(t.data=Wv(be))}if(t0=!0,a)for(const be in a){const ue=a[be],Me=bt(ue)?ue.bind(r,r):bt(ue.get)?ue.get.bind(r,r):_a,ke=!bt(ue)&&bt(ue.set)?ue.set.bind(r):_a,ce=Ke({get:Me,set:ke});Object.defineProperty(n,be,{enumerable:!0,configurable:!0,get:()=>ce.value,set:fe=>ce.value=fe})}if(s)for(const be in s)Kx(s[be],n,r,be);if(l){const be=bt(l)?l.call(r):l;Reflect.ownKeys(be).forEach(ue=>{jm(ue,be[ue])})}c&&qx(c,t,"c");function ye(be,ue){vt(ue)?ue.forEach(Me=>be(Me.bind(r))):ue&&be(ue.bind(r))}if(ye(Hx,h),ye(el,p),ye(XR,d),ye(jR,g),ye(qR,y),ye(KR,w),ye(eO,z),ye(QR,k),ye(JR,P),ye(Du,S),ye(Vx,I),ye(ZR,F),vt(W))if(W.length){const be=t.exposed||(t.exposed={});W.forEach(ue=>{Object.defineProperty(be,ue,{get:()=>r[ue],set:Me=>r[ue]=Me,enumerable:!0})})}else t.exposed||(t.exposed={});L&&t.render===_a&&(t.render=L),G!=null&&(t.inheritAttrs=G),K&&(t.components=K),q&&(t.directives=q),F&&Nx(t)}function oO(t,e,r=_a){vt(t)&&(t=r0(t));for(const n in t){const i=t[n];let a;qt(i)?"default"in i?a=Aa(i.from||n,i.default,!0):a=Aa(i.from||n):a=Aa(i),_r(a)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):e[n]=a}}function qx(t,e,r){Si(vt(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function Kx(t,e,r,n){let i=n.includes(".")?Lx(r,n):()=>r[n];if(yr(t)){const a=e[t];bt(a)&&Ti(i,a)}else if(bt(t))Ti(i,t.bind(r));else if(qt(t))if(vt(t))t.forEach(a=>Kx(a,e,r,n));else{const a=bt(t.handler)?t.handler.bind(r):e[t.handler];bt(a)&&Ti(i,a,t)}}function Yx(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=t.appContext,s=a.get(e);let l;return s?l=s:!i.length&&!r&&!n?l=e:(l={},i.length&&i.forEach(u=>nd(l,u,o,!0)),nd(l,e,o)),qt(e)&&a.set(e,l),l}function nd(t,e,r,n=!1){const{mixins:i,extends:a}=e;a&&nd(t,a,r,!0),i&&i.forEach(o=>nd(t,o,r,!0));for(const o in e)if(!(n&&o==="expose")){const s=sO[o]||r&&r[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const sO={data:Xx,props:jx,emits:jx,methods:dc,computed:dc,beforeCreate:In,created:In,beforeMount:In,mounted:In,beforeUpdate:In,updated:In,beforeDestroy:In,beforeUnmount:In,destroyed:In,unmounted:In,activated:In,deactivated:In,errorCaptured:In,serverPrefetch:In,components:dc,directives:dc,watch:uO,provide:Xx,inject:lO};function Xx(t,e){return e?t?function(){return Wr(bt(t)?t.call(this,this):t,bt(e)?e.call(this,this):e)}:e:t}function lO(t,e){return dc(r0(t),r0(e))}function r0(t){if(vt(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function In(t,e){return t?[...new Set([].concat(t,e))]:e}function dc(t,e){return t?Wr(Object.create(null),t,e):e}function jx(t,e){return t?vt(t)&&vt(e)?[...new Set([...t,...e])]:Wr(Object.create(null),Ux(t),Ux(e??{})):e}function uO(t,e){if(!t)return e;if(!e)return t;const r=Wr(Object.create(null),t);for(const n in e)r[n]=In(t[n],e[n]);return r}function Zx(){return{app:null,config:{isNativeTag:Nw,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let fO=0;function cO(t,e){return function(n,i=null){bt(n)||(n=Wr({},n)),i!=null&&!qt(i)&&(i=null);const a=Zx(),o=new WeakSet,s=[];let l=!1;const u=a.app={_uid:fO++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:WO,get config(){return a.config},set config(c){},use(c,...h){return o.has(c)||(c&&bt(c.install)?(o.add(c),c.install(u,...h)):bt(c)&&(o.add(c),c(u,...h))),u},mixin(c){return a.mixins.includes(c)||a.mixins.push(c),u},component(c,h){return h?(a.components[c]=h,u):a.components[c]},directive(c,h){return h?(a.directives[c]=h,u):a.directives[c]},mount(c,h,p){if(!l){const d=u._ceVNode||Cr(n,i);return d.appContext=a,p===!0?p="svg":p===!1&&(p=void 0),t(d,c,p),l=!0,u._container=c,c.__vue_app__=u,hd(d.component)}},onUnmount(c){s.push(c)},unmount(){l&&(Si(s,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(c,h){return a.provides[c]=h,u},runWithContext(c){const h=tl;tl=u;try{return c()}finally{tl=h}}};return u}}let tl=null;const hO=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Cn(e)}Modifiers`]||t[`${js(e)}Modifiers`];function vO(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||ar;let i=r;const a=e.startsWith("update:"),o=a&&hO(n,e.slice(7));o&&(o.trim&&(i=r.map(c=>yr(c)?c.trim():c)),o.number&&(i=i.map(qP)));let s,l=n[s=Rm(e)]||n[s=Rm(Cn(e))];!l&&a&&(l=n[s=Rm(js(e))]),l&&Si(l,t,6,i);const u=n[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Si(u,t,6,i)}}const dO=new WeakMap;function Jx(t,e,r=!1){const n=r?dO:e.emitsCache,i=n.get(t);if(i!==void 0)return i;const a=t.emits;let o={},s=!1;if(!bt(t)){const l=u=>{const c=Jx(u,e,!0);c&&(s=!0,Wr(o,c))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!s?(qt(t)&&n.set(t,null),null):(vt(a)?a.forEach(l=>o[l]=null):Wr(o,a),qt(t)&&n.set(t,o),o)}function id(t,e){return!t||!Lv(e)?!1:(e=e.slice(2),e=e==="Once"?e:e.replace(/Once$/,""),Yt(t,e[0].toLowerCase()+e.slice(1))||Yt(t,js(e))||Yt(t,e))}function sJ(){}function Qx(t){const{type:e,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:h,data:p,setupState:d,ctx:g,inheritAttrs:y}=t,w=Zv(t);let b,S;try{if(r.shapeFlag&4){const I=i||n,L=I;b=Ia(u.call(L,I,c,h,d,p,g)),S=s}else{const I=e;b=Ia(I.length>1?I(h,{attrs:s,slots:o,emit:l}):I(h,null)),S=e.props?s:pO(s)}}catch(I){nl.length=0,Xv(I,t,1),b=Cr(Dn)}let A=b;if(S&&y!==!1){const I=Object.keys(S),{shapeFlag:L}=A;I.length&&L&7&&(a&&I.some(Ev)&&(S=gO(S,a)),A=qo(A,S,!1,!0))}if(r.dirs&&(A=qo(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(r.dirs):r.dirs),r.transition){const I=Jv(A.type)&&Qv(A)||A;fc(I,r.transition)}return b=A,Zv(w),b}const pO=t=>{let e;for(const r in t)(r==="class"||r==="style"||Lv(r))&&((e||(e={}))[r]=t[r]);return e},gO=(t,e)=>{const r={};for(const n in t)(!Ev(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function mO(t,e,r){const{props:n,children:i,component:a}=t,{props:o,children:s,patchFlag:l}=e,u=a.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?eS(n,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let h=0;h<c.length;h++){const p=c[h];if(tS(o,n,p)&&!id(u,p))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?eS(n,o,u):!0:!!o;return!1}function eS(t,e,r){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(tS(e,t,a)&&!id(r,a))return!0}return!1}function tS(t,e,r){const n=t[r],i=e[r];return r==="style"&&qt(n)&&qt(i)?!Fv(n,i):n!==i}function yO({vnode:t,parent:e,suspense:r},n){for(;e;){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.suspense.vnode.el=i.el=n,t=i),i===t)(t=e.vnode).el=n,e=e.parent;else break}r&&r.activeBranch===t&&(r.vnode.el=n)}const rS={},nS=()=>Object.create(rS),iS=t=>Object.getPrototypeOf(t)===rS;function _O(t,e,r,n=!1){const i={},a=nS();t.propsDefaults=Object.create(null),aS(t,e,i,a);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);r?t.props=n?i:bR(i):t.type.props?t.props=i:t.props=a,t.attrs=a}function bO(t,e,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=t,s=zt(i),[l]=t.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let h=0;h<c.length;h++){let p=c[h];if(id(t.emitsOptions,p))continue;const d=e[p];if(l)if(Yt(a,p))d!==a[p]&&(a[p]=d,u=!0);else{const g=Cn(p);i[g]=n0(l,s,g,d,t,!1)}else d!==a[p]&&(a[p]=d,u=!0)}}}else{aS(t,e,i,a)&&(u=!0);let c;for(const h in s)(!e||!Yt(e,h)&&((c=js(h))===h||!Yt(e,c)))&&(l?r&&(r[h]!==void 0||r[c]!==void 0)&&(i[h]=n0(l,s,h,void 0,t,!0)):delete i[h]);if(a!==s)for(const h in a)(!e||!Yt(e,h))&&(delete a[h],u=!0)}u&&lo(t.attrs,"set","")}function aS(t,e,r,n){const[i,a]=t.propsOptions;let o=!1,s;if(e)for(let l in e){if(ec(l))continue;const u=e[l];let c;i&&Yt(i,c=Cn(l))?!a||!a.includes(c)?r[c]=u:(s||(s={}))[c]=u:id(t.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=zt(r),u=s||ar;for(let c=0;c<a.length;c++){const h=a[c];r[h]=n0(i,l,h,u[h],t,!Yt(u,h))}}return o}function n0(t,e,r,n,i,a){const o=t[r];if(o!=null){const s=Yt(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&bt(l)){const{propsDefaults:u}=i;if(r in u)n=u[r];else{const c=mc(i);n=u[r]=l.call(null,e),c()}}else n=l;i.ce&&i.ce._setProp(r,n)}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===js(r))&&(n=!0))}return n}const wO=new WeakMap;function oS(t,e,r=!1){const n=r?wO:e.propsCache,i=n.get(t);if(i)return i;const a=t.props,o={},s=[];let l=!1;if(!bt(t)){const c=h=>{l=!0;const[p,d]=oS(h,e,!0);Wr(o,p),d&&s.push(...d)};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!a&&!l)return qt(t)&&n.set(t,Xs),Xs;if(vt(a))for(let c=0;c<a.length;c++){const h=Cn(a[c]);sS(h)&&(o[h]=ar)}else if(a)for(const c in a){const h=Cn(c);if(sS(h)){const p=a[c],d=o[h]=vt(p)||bt(p)?{type:p}:Wr({},p),g=d.type;let y=!1,w=!0;if(vt(g))for(let b=0;b<g.length;++b){const S=g[b],A=bt(S)&&S.name;if(A==="Boolean"){y=!0;break}else A==="String"&&(w=!1)}else y=bt(g)&&g.name==="Boolean";d[0]=y,d[1]=w,(y||Yt(d,"default"))&&s.push(h)}}const u=[o,s];return qt(t)&&n.set(t,u),u}function sS(t){return t[0]!=="$"&&!ec(t)}const i0=t=>t==="_"||t==="_ctx"||t==="$stable",a0=t=>vt(t)?t.map(Ia):[Ia(t)],xO=(t,e,r)=>{if(e._n)return e;const n=Ix((...i)=>a0(e(...i)),r);return n._c=!1,n},lS=(t,e,r)=>{const n=t._ctx;for(const i in t){if(i0(i))continue;const a=t[i];if(bt(a))e[i]=xO(i,a,n);else if(a!=null){const o=a0(a);e[i]=()=>o}}},uS=(t,e)=>{const r=a0(e);t.slots.default=()=>r},fS=(t,e,r)=>{for(const n in e)(r||!i0(n))&&(t[n]=e[n])},SO=(t,e,r)=>{const n=t.slots=nS();if(t.vnode.shapeFlag&32){const i=e._;i?(fS(n,e,r),r&&Vw(n,"_",i,!0)):lS(e,n)}else e&&uS(t,e)},TO=(t,e,r)=>{const{vnode:n,slots:i}=t;let a=!0,o=ar;if(n.shapeFlag&32){const s=e._;s?r&&s===1?a=!1:fS(i,e,r):(a=!e.$stable,lS(e,i)),o=e}else e&&(uS(t,e),o={default:1});if(a)for(const s in i)!i0(s)&&o[s]==null&&delete i[s]},$n=DO;function CO(t){return AO(t)}function AO(t,e){const r=Nv();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:h,nextSibling:p,setScopeId:d=_a,insertStaticContent:g}=t,y=($,J,se,Te=null,xe=null,we=null,de=void 0,le=null,Se=!!J.dynamicChildren)=>{if($===J)return;$&&!il($,J)&&(Te=lt($),fe($,xe,we,!0),$=null),J.patchFlag===-2&&(Se=!1,J.dynamicChildren=null),J.dynamicChildren&&$&&$.dynamicChildren&&$.dynamicChildren.hasOnce&&(J.dynamicChildren===Xs&&(J.dynamicChildren=[]),J.dynamicChildren.hasOnce=!0);const{type:pe,ref:Ze,shapeFlag:He}=J;switch(pe){case ad:w($,J,se,Te);break;case Dn:b($,J,se,Te);break;case s0:$==null&&S(J,se,Te,de);break;case Jr:K($,J,se,Te,xe,we,de,le,Se);break;default:He&1?L($,J,se,Te,xe,we,de,le,Se):He&6?q($,J,se,Te,xe,we,de,le,Se):(He&64||He&128)&&pe.process($,J,se,Te,xe,we,de,le,Se,Tt)}Ze!=null&&xe?cc(Ze,$&&$.ref,we,J||$,!J):Ze==null&&$&&$.ref!=null&&cc($.ref,null,we,$,!0)},w=($,J,se,Te)=>{if($==null)n(J.el=s(J.children),se,Te);else{const xe=J.el=$.el;J.children!==$.children&&u(xe,J.children)}},b=($,J,se,Te)=>{$==null?n(J.el=l(J.children||""),se,Te):J.el=$.el},S=($,J,se,Te)=>{[$.el,$.anchor]=g($.children,J,se,Te,$.el,$.anchor)},A=({el:$,anchor:J},se,Te)=>{let xe;for(;$&&$!==J;)xe=p($),n($,se,Te),$=xe;n(J,se,Te)},I=({el:$,anchor:J})=>{let se;for(;$&&$!==J;)se=p($),i($),$=se;i(J)},L=($,J,se,Te,xe,we,de,le,Se)=>{if(J.type==="svg"?de="svg":J.type==="math"&&(de="mathml"),$==null)k(J,se,Te,xe,we,de,le,Se);else{const pe=$.el&&$.el._isVueCE?$.el:null;try{pe&&pe._beginPatch(),F($,J,xe,we,de,le,Se)}finally{pe&&pe._endPatch()}}},k=($,J,se,Te,xe,we,de,le)=>{let Se,pe;const{props:Ze,shapeFlag:He,transition:nt,dirs:Be}=$;if(Se=$.el=o($.type,we,Ze&&Ze.is,Ze),He&8?c(Se,$.children):He&16&&z($.children,Se,null,Te,xe,o0($,we),de,le),Be&&Qs($,null,Te,"created"),P(Se,$,$.scopeId,de,Te),Ze){for(const Mt in Ze)Mt!=="value"&&!ec(Mt)&&a(Se,Mt,null,Ze[Mt],we,Te);"value"in Ze&&a(Se,"value",null,Ze.value,we),(pe=Ze.onVnodeBeforeMount)&&Da(pe,Te,$)}Be&&Qs($,null,Te,"beforeMount");const xt=MO(xe,nt);xt&&nt.beforeEnter(Se),n(Se,J,se),((pe=Ze&&Ze.onVnodeMounted)||xt||Be)&&$n(()=>{try{pe&&Da(pe,Te,$),xt&&nt.enter(Se),Be&&Qs($,null,Te,"mounted")}finally{}},xe)},P=($,J,se,Te,xe)=>{if(se&&d($,se),Te)for(let we=0;we<Te.length;we++)d($,Te[we]);if(xe){let we=xe.subTree;if(J===we||pS(we.type)&&(we.ssContent===J||we.ssFallback===J)){const de=xe.vnode;P($,de,de.scopeId,de.slotScopeIds,xe.parent)}}},z=($,J,se,Te,xe,we,de,le,Se=0)=>{for(let pe=Se;pe<$.length;pe++){const Ze=$[pe]=le?ho($[pe]):Ia($[pe]);y(null,Ze,J,se,Te,xe,we,de,le)}},F=($,J,se,Te,xe,we,de)=>{const le=J.el=$.el;let{patchFlag:Se,dynamicChildren:pe,dirs:Ze}=J;Se|=$.patchFlag&16;const He=$.props||ar,nt=J.props||ar;let Be;if(se&&rl(se,!1),(Be=nt.onVnodeBeforeUpdate)&&Da(Be,se,J,$),Ze&&Qs(J,$,se,"beforeUpdate"),se&&rl(se,!0),pe&&(!$.dynamicChildren||$.dynamicChildren.length!==pe.length)&&(Se=0,de=!1,pe=null),(He.innerHTML&&nt.innerHTML==null||He.textContent&&nt.textContent==null)&&c(le,""),pe?W($.dynamicChildren,pe,le,se,Te,o0(J,xe),we):de||ue($,J,le,null,se,Te,o0(J,xe),we,!1),Se>0){if(Se&16)G(le,He,nt,se,xe);else if(Se&2&&He.class!==nt.class&&a(le,"class",null,nt.class,xe),Se&4&&a(le,"style",He.style,nt.style,xe),Se&8){const xt=J.dynamicProps;for(let Mt=0;Mt<xt.length;Mt++){const Rt=xt[Mt],Qt=He[Rt],wr=nt[Rt];(wr!==Qt||Rt==="value")&&a(le,Rt,Qt,wr,xe,se)}}Se&1&&$.children!==J.children&&c(le,J.children)}else!de&&pe==null&&G(le,He,nt,se,xe);((Be=nt.onVnodeUpdated)||Ze)&&$n(()=>{Be&&Da(Be,se,J,$),Ze&&Qs(J,$,se,"updated")},Te)},W=($,J,se,Te,xe,we,de)=>{for(let le=0;le<J.length;le++){const Se=$[le],pe=J[le],Ze=Se.el&&(Se.type===Jr||!il(Se,pe)||Se.shapeFlag&198)?h(Se.el):se;y(Se,pe,Ze,null,Te,xe,we,de,!0)}},G=($,J,se,Te,xe)=>{if(J!==se){if(J!==ar)for(const we in J)!ec(we)&&!(we in se)&&a($,we,J[we],null,xe,Te);for(const we in se){if(ec(we))continue;const de=se[we],le=J[we];de!==le&&we!=="value"&&a($,we,le,de,xe,Te)}"value"in se&&a($,"value",J.value,se.value,xe)}},K=($,J,se,Te,xe,we,de,le,Se)=>{const pe=J.el=$?$.el:s(""),Ze=J.anchor=$?$.anchor:s("");let{patchFlag:He,dynamicChildren:nt,slotScopeIds:Be}=J;Be&&(le=le?le.concat(Be):Be),$==null?(n(pe,se,Te),n(Ze,se,Te),z(J.children||[],se,Ze,xe,we,de,le,Se)):He>0&&He&64&&nt&&$.dynamicChildren&&$.dynamicChildren.length===nt.length?(W($.dynamicChildren,nt,se,xe,we,de,le),(J.key!=null||xe&&J===xe.subTree)&&cS($,J,!0)):ue($,J,se,Ze,xe,we,de,le,Se)},q=($,J,se,Te,xe,we,de,le,Se)=>{J.slotScopeIds=le,$==null?J.shapeFlag&512?xe.ctx.activate(J,se,Te,de,Se):ie(J,se,Te,xe,we,de,Se):ve($,J,Se)},ie=($,J,se,Te,xe,we,de)=>{const le=$.component=OO($,Te,xe);if(td($)&&(le.ctx.renderer=Tt),BO(le,!1,de),le.asyncDep){if(xe&&xe.registerDep(le,ye,de),!$.el){const Se=le.subTree=Cr(Dn);b(null,Se,J,se),$.placeholder=Se.el}}else ye(le,$,J,se,xe,we,de)},ve=($,J,se)=>{const Te=J.component=$.component;if(mO($,J,se))if(Te.asyncDep&&!Te.asyncResolved){J.el=$.el,be(Te,J,se);return}else Te.next=J,Te.update();else J.el=$.el,Te.vnode=J},ye=($,J,se,Te,xe,we,de)=>{const le=()=>{if($.isMounted){let{next:He,bu:nt,u:Be,parent:xt,vnode:Mt}=$;{const Lr=hS($);if(Lr){He&&(He.el=Mt.el,be($,He,de)),Lr.asyncDep.then(()=>{$n(()=>{$.isUnmounted||pe()},xe)});return}}let Rt=He,Qt;rl($,!1),He?(He.el=Mt.el,be($,He,de)):He=Mt,nt&&Om(nt),(Qt=He.props&&He.props.onVnodeBeforeUpdate)&&Da(Qt,xt,He,Mt),rl($,!0);const wr=Qx($),Xr=$.subTree;$.subTree=wr,y(Xr,wr,h(Xr.el),lt(Xr),$,xe,we),He.el=wr.el,Rt===null&&yO($,wr.el),Be&&$n(Be,xe),(Qt=He.props&&He.props.onVnodeUpdated)&&$n(()=>Da(Qt,xt,He,Mt),xe)}else{let He;const{el:nt,props:Be}=J,{bm:xt,m:Mt,parent:Rt,root:Qt,type:wr}=$,Xr=hc(J);rl($,!1),xt&&Om(xt),!Xr&&(He=Be&&Be.onVnodeBeforeMount)&&Da(He,Rt,J),rl($,!0);{Qt.ce&&Qt.ce._hasShadowRoot()&&Qt.ce._injectChildStyle(wr,$.parent?$.parent.type:void 0);const Lr=$.subTree=Qx($);y(null,Lr,se,Te,$,xe,we),J.el=Lr.el}if(Mt&&$n(Mt,xe),!Xr&&(He=Be&&Be.onVnodeMounted)){const Lr=J;$n(()=>Da(He,Rt,Lr),xe)}(J.shapeFlag&256||Rt&&hc(Rt.vnode)&&Rt.vnode.shapeFlag&256)&&$.a&&$n($.a,xe),$.isMounted=!0,J=se=Te=null}};$.scope.on();const Se=$.effect=new Jw(le);$.scope.off();const pe=$.update=Se.run.bind(Se),Ze=$.job=Se.runIfDirty.bind(Se);Ze.i=$,Ze.id=$.uid,Se.scheduler=()=>Xm(Ze),rl($,!0),pe()},be=($,J,se)=>{J.component=$;const Te=$.vnode.props;$.vnode=J,$.next=null,bO($,J.props,Te,se),TO($,J.children,se),wa(),Tx($),xa()},ue=($,J,se,Te,xe,we,de,le,Se=!1)=>{const pe=$&&$.children,Ze=$?$.shapeFlag:0,He=J.children,{patchFlag:nt,shapeFlag:Be}=J;if(nt>0){if(nt&128){ke(pe,He,se,Te,xe,we,de,le,Se);return}else if(nt&256){Me(pe,He,se,Te,xe,we,de,le,Se);return}}Be&8?(Ze&16&&Oe(pe,xe,we),He!==pe&&c(se,He)):Ze&16?Be&16?ke(pe,He,se,Te,xe,we,de,le,Se):Oe(pe,xe,we,!0):(Ze&8&&c(se,""),Be&16&&z(He,se,Te,xe,we,de,le,Se))},Me=($,J,se,Te,xe,we,de,le,Se)=>{$=$||Xs,J=J||Xs;const pe=$.length,Ze=J.length,He=Math.min(pe,Ze);let nt;for(nt=0;nt<He;nt++){const Be=J[nt]=Se?ho(J[nt]):Ia(J[nt]);y($[nt],Be,se,null,xe,we,de,le,Se)}pe>Ze?Oe($,xe,we,!0,!1,He):z(J,se,Te,xe,we,de,le,Se,He)},ke=($,J,se,Te,xe,we,de,le,Se)=>{let pe=0;const Ze=J.length;let He=$.length-1,nt=Ze-1;for(;pe<=He&&pe<=nt;){const Be=$[pe],xt=J[pe]=Se?ho(J[pe]):Ia(J[pe]);if(il(Be,xt))y(Be,xt,se,null,xe,we,de,le,Se);else break;pe++}for(;pe<=He&&pe<=nt;){const Be=$[He],xt=J[nt]=Se?ho(J[nt]):Ia(J[nt]);if(il(Be,xt))y(Be,xt,se,null,xe,we,de,le,Se);else break;He--,nt--}if(pe>He){if(pe<=nt){const Be=nt+1,xt=Be<Ze?J[Be].el:Te;for(;pe<=nt;)y(null,J[pe]=Se?ho(J[pe]):Ia(J[pe]),se,xt,xe,we,de,le,Se),pe++}}else if(pe>nt)for(;pe<=He;)fe($[pe],xe,we,!0),pe++;else{const Be=pe,xt=pe,Mt=new Map;for(pe=xt;pe<=nt;pe++){const pr=J[pe]=Se?ho(J[pe]):Ia(J[pe]);pr.key!=null&&Mt.set(pr.key,pe)}let Rt,Qt=0;const wr=nt-xt+1;let Xr=!1,Lr=0;const Yn=new Array(wr);for(pe=0;pe<wr;pe++)Yn[pe]=0;for(pe=Be;pe<=He;pe++){const pr=$[pe];if(Qt>=wr){fe(pr,xe,we,!0);continue}let Xe;if(pr.key!=null)Xe=Mt.get(pr.key);else for(Rt=xt;Rt<=nt;Rt++)if(Yn[Rt-xt]===0&&il(pr,J[Rt])){Xe=Rt;break}Xe===void 0?fe(pr,xe,we,!0):(Yn[Xe-xt]=pe+1,Xe>=Lr?Lr=Xe:Xr=!0,y(pr,J[Xe],se,null,xe,we,de,le,Se),Qt++)}const Za=Xr?IO(Yn):Xs;for(Rt=Za.length-1,pe=wr-1;pe>=0;pe--){const pr=xt+pe,Xe=J[pr],$i=J[pr+1],zi=pr+1<Ze?$i.el||dS($i):Te;Yn[pe]===0?y(null,Xe,se,zi,xe,we,de,le,Se):Xr&&(Rt<0||pe!==Za[Rt]?ce(Xe,se,zi,2):Rt--)}}},ce=($,J,se,Te,xe=null)=>{const{el:we,type:de,transition:le,children:Se,shapeFlag:pe}=$;if(pe&6){ce($.component.subTree,J,se,Te);return}if(pe&128){$.suspense.move(J,se,Te);return}if(pe&64){de.move($,J,se,Tt);return}if(de===Jr){n(we,J,se);for(let He=0;He<Se.length;He++)ce(Se[He],J,se,Te);n($.anchor,J,se);return}if(de===s0){A($,J,se);return}if(Te!==2&&pe&1&&le)if(Te===0)le.persisted&&!we[Ci]?n(we,J,se):(le.beforeEnter(we),n(we,J,se),$n(()=>le.enter(we),xe));else{const{leave:He,delayLeave:nt,afterLeave:Be}=le,xt=()=>{$.ctx.isUnmounted?i(we):n(we,J,se)},Mt=()=>{const Rt=we._isLeaving||!!we[Ci];we._isLeaving&&we[Ci](!0),le.persisted&&!Rt?xt():He(we,()=>{xt(),Be&&Be()})};nt?nt(we,xt,Mt):Mt()}else n(we,J,se)},fe=($,J,se,Te=!1,xe=!1)=>{const{type:we,props:de,ref:le,children:Se,dynamicChildren:pe,shapeFlag:Ze,patchFlag:He,dirs:nt,cacheIndex:Be,memo:xt}=$;if((He===-2||pe&&pe.hasOnce)&&(xe=!1),le!=null&&(wa(),cc(le,null,se,$,!0),xa()),Be!=null&&(!$.ctx||$.ctx===J)&&(J.renderCache[Be]=void 0),Ze&256){J.ctx.deactivate($);return}const Mt=Ze&1&&nt,Rt=!hc($);let Qt;if(Rt&&(Qt=de&&de.onVnodeBeforeUnmount)&&Da(Qt,J,$),Ze&6)Ae($.component,se,Te);else{if(Ze&128){$.suspense.unmount(se,Te);return}Mt&&Qs($,null,J,"beforeUnmount"),Ze&64?$.type.remove($,J,se,Tt,Te):pe&&!pe.hasOnce&&(we!==Jr||He>0&&He&64)?Oe(pe,J,se,!1,!0):(we===Jr&&He&384||!xe&&Ze&16)&&Oe(Se,J,se),Te&&Pe($)}const wr=xt!=null&&Be==null;(Rt&&(Qt=de&&de.onVnodeUnmounted)||Mt||wr)&&$n(()=>{Qt&&Da(Qt,J,$),Mt&&Qs($,null,J,"unmounted"),wr&&($.el=null)},se)},Pe=$=>{const{type:J,el:se,anchor:Te,transition:xe}=$;if(J===Jr){Qe(se,Te);return}if(J===s0){I($),xe&&!xe.persisted&&xe.afterLeave&&xe.afterLeave();return}const we=()=>{i(se),xe&&!xe.persisted&&xe.afterLeave&&xe.afterLeave()};if($.shapeFlag&1&&xe&&!xe.persisted){const{leave:de,delayLeave:le}=xe,Se=()=>de(se,we);le?le($.el,we,Se):Se()}else we()},Qe=($,J)=>{let se;for(;$!==J;)se=p($),i($),$=se;i(J)},Ae=($,J,se)=>{const{bum:Te,scope:xe,job:we,subTree:de,um:le,m:Se,a:pe}=$;vS(Se),vS(pe),Te&&Om(Te),xe.stop(),we?(we.flags|=8,fe(de,$,J,se)):$.vnode.el&&de&&(de.transition=$.vnode.transition,fe(de,$,J,se)),le&&$n(le,J),$n(()=>{$.isUnmounted=!0},J)},Oe=($,J,se,Te=!1,xe=!1,we=0)=>{for(let de=we;de<$.length;de++)fe($[de],J,se,Te,xe)},lt=$=>{if($.shapeFlag&6)return lt($.component.subTree);if($.shapeFlag&128)return $.suspense.next();const J=p($.anchor||$.el),se=J&&J[VR];return se?p(se):J};let dt=!1;const $e=($,J,se)=>{let Te;$==null?J._vnode&&(fe(J._vnode,null,null,!0),Te=J._vnode.component):y(J._vnode||null,$,J,null,null,null,se),J._vnode=$,dt||(dt=!0,Tx(Te),Cx(),dt=!1)},Tt={p:y,um:fe,m:ce,r:Pe,mt:ie,mc:z,pc:ue,pbc:W,n:lt,o:t};return{render:$e,hydrate:void 0,createApp:cO($e)}}function o0({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function rl({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function MO(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function cS(t,e,r=!1){const n=t.children,i=e.children;if(vt(n)&&vt(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=ho(i[a]),s.el=o.el),!r&&s.patchFlag!==-2&&cS(o,s)),s.type===ad&&(s.patchFlag===-1&&(s=i[a]=ho(s)),s.el=o.el),s.type===Dn&&!s.el&&(s.el=o.el)}}function IO(t){const e=t.slice(),r=[0];let n,i,a,o,s;const l=t.length;for(n=0;n<l;n++){const u=t[n];if(u!==0){if(i=r[r.length-1],t[i]<u){e[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,t[r[s]]<u?a=s+1:o=s;u<t[r[a]]&&(a>0&&(e[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=e[o];return r}function hS(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:hS(e)}function vS(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function dS(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?dS(e.subTree):null}const pS=t=>t.__isSuspense;function DO(t,e){e&&e.pendingBranch?vt(t)?e.effects.push(...t):e.effects.push(t):NR(t)}const Jr=Symbol.for("v-fgt"),ad=Symbol.for("v-txt"),Dn=Symbol.for("v-cmt"),s0=Symbol.for("v-stc"),nl=[];let ii=null;function Fe(t=!1){nl.push(ii=t?null:[])}function gS(){nl.pop(),ii=nl[nl.length-1]||null}let pc=1;function od(t,e=!1){pc+=t,t<0&&ii&&e&&(ii.hasOnce=!0)}function mS(t){return t.dynamicChildren=pc>0?ii||Xs:null,gS(),pc>0&&ii&&ii.push(t),t}function it(t,e,r,n,i,a){return mS(me(t,e,r,n,i,a,!0))}function Xt(t,e,r,n,i){return mS(Cr(t,e,r,n,i,!0))}function sd(t){return t?t.__v_isVNode===!0:!1}function il(t,e){return t.type===e.type&&t.key===e.key}const yS=({key:t})=>t??null,ld=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?yr(t)||_r(t)||bt(t)?{i:ni,r:t,k:e,f:!!r}:t:null);function me(t,e=null,r=null,n=0,i=null,a=t===Jr?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&yS(e),ref:e&&ld(e),scopeId:Mx,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ni};return s?(ud(l,r),a&128&&t.normalize(l)):r&&(l.shapeFlag|=yr(r)?8:16),pc>0&&!o&&ii&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&ii.push(l),l}const Cr=kO;function kO(t,e=null,r=null,n=0,i=null,a=!1){if((!t||t===Gx)&&(t=Dn),sd(t)){const s=qo(t,e,!0);return r&&ud(s,r),pc>0&&!a&&ii&&(s.shapeFlag&6?ii[ii.indexOf(t)]=s:ii.push(s)),s.patchFlag=-2,s}if(VO(t)&&(t=t.__vccOpts),e){e=LO(e);let{class:s,style:l}=e;s&&!yr(s)&&(e.class=An(s)),qt(l)&&(qv(l)&&!vt(l)&&(l=Wr({},l)),e.style=ft(l))}const o=yr(t)?1:pS(t)?128:Jv(t)?64:qt(t)?4:bt(t)?2:0;return me(t,e,r,n,i,o,a,!0)}function LO(t){return t?qv(t)||iS(t)?Wr({},t):t:null}function qo(t,e,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=t,u=e?EO(i||{},e):i,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&yS(u),ref:e&&e.ref?r&&a?vt(a)?a.concat(ld(e)):[a,ld(e)]:ld(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Jr?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&qo(t.ssContent),ssFallback:t.ssFallback&&qo(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce,cacheIndex:t.cacheIndex};return l&&n&&fc(c,l.clone(c)),c}function l0(t=" ",e=0){return Cr(ad,null,t,e)}function Sr(t="",e=!1){return e?(Fe(),Xt(Dn,null,t)):Cr(Dn,null,t)}function Ia(t){return t==null||typeof t=="boolean"?Cr(Dn):vt(t)?Cr(Jr,null,t.slice()):sd(t)?ho(t):Cr(ad,null,String(t))}function ho(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:qo(t)}function ud(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(vt(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),ud(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!iS(e)?e._ctx=ni:i===3&&ni&&(ni.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(bt(e)){if(n&65){ud(t,{default:e});return}e={default:e,_ctx:ni},r=32}else e=String(e),n&64?(r=16,e=[l0(e)]):r=8;t.children=e,t.shapeFlag|=r}function EO(...t){const e={};for(let r=0;r<t.length;r++){const n=t[r];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=An([e.class,n.class]));else if(i==="style")e.style=ft([e.style,n.style]);else if(Lv(i)){const a=e[i],o=n[i];o&&a!==o&&!(vt(a)&&a.includes(o))?e[i]=a?[].concat(a,o):o:o==null&&a==null&&!Ev(i)&&(e[i]=o)}else i!==""&&(e[i]=n[i])}return e}function Da(t,e,r,n=null){Si(t,e,7,[r,n])}const PO=Zx();let RO=0;function OO(t,e,r){const n=t.type,i=(e?e.appContext:t.appContext)||PO,a={uid:RO++,vnode:t,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Xw(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:oS(n,i),emitsOptions:Jx(n,i),emit:null,emitted:null,propsDefaults:ar,inheritAttrs:n.inheritAttrs,ctx:ar,data:ar,props:ar,attrs:ar,slots:ar,refs:ar,setupState:ar,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=vO.bind(null,a),t.ce&&t.ce(a),a}let dn=null;const fd=()=>dn||ni;let cd,gc;{const t=Nv(),e=(r,n)=>{let i;return(i=t[r])||(i=t[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};cd=e("__VUE_INSTANCE_SETTERS__",r=>dn=r),gc=e("__VUE_SSR_SETTERS__",r=>yc=r)}const mc=t=>{const e=dn;return cd(t),t.scope.on(),()=>{t.scope.off(),cd(e)}},_S=()=>{dn&&dn.scope.off(),cd(null)};function bS(t){return t.vnode.shapeFlag&4}let yc=!1;function BO(t,e=!1,r=!1){e&&gc(e);const{props:n,children:i}=t.vnode,a=bS(t);_O(t,n,a,e),SO(t,i,r||e);const o=a?NO(t,e):void 0;return e&&gc(!1),o}function NO(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,iO);const{setup:n}=r;if(n){wa();const i=t.setupContext=n.length>1?$O(t):null,a=mc(t),o=Au(n,t,0,[t.props,i]),s=$w(o);if(xa(),a(),(s||t.sp)&&!hc(t)&&Nx(t),s){if(o.then(_S,_S),e)return o.then(l=>{gc(!0);try{wS(t,l,e)}finally{gc(!1)}}).catch(l=>{Xv(l,t,0)});t.asyncDep=o}else wS(t,o)}else xS(t)}function wS(t,e,r){bt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:qt(e)&&(t.setupState=mx(e)),xS(t)}function xS(t,e,r){const n=t.type;t.render||(t.render=n.render||_a);{const i=mc(t);wa();try{aO(t)}finally{xa(),i()}}}const FO={get(t,e){return vn(t,"get",""),t[e]}};function $O(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,FO),slots:t.slots,emit:t.emit,expose:e}}function hd(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(mx(Fn(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in vc)return vc[r](t)},has(e,r){return r in e||r in vc}})):t.proxy}const zO=/(?:^|[-_])\w/g,HO=t=>t.replace(zO,e=>e.toUpperCase()).replace(/[-_]/g,"");function SS(t,e=!0){return bt(t)?t.displayName||t.name:t.name||e&&t.__name}function TS(t,e,r=!1){let n=SS(e);if(!n&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&t){const i=a=>{for(const o in a)if(a[o]===e)return o};n=i(t.components)||t.parent&&i(t.parent.type.components)||i(t.appContext.components)}return n?HO(n):r?"App":"Anonymous"}function VO(t){return bt(t)&&"__vccOpts"in t}const Ke=(t,e)=>IR(t,e,yc);function GO(t,e,r){try{od(-1);const n=arguments.length;return n===2?qt(e)&&!vt(e)?sd(e)?Cr(t,null,[e]):Cr(t,e):Cr(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&sd(r)&&(r=[r]),Cr(t,e,r))}finally{od(1)}}const WO="3.5.43";/**
|
|
28
|
+
* @vue/runtime-dom v3.5.43
|
|
29
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
30
|
+
* @license MIT
|
|
31
|
+
**/let u0;const CS=typeof window<"u"&&window.trustedTypes;if(CS)try{u0=CS.createPolicy("vue",{createHTML:t=>t})}catch{}const AS=u0?t=>u0.createHTML(t):t=>t,UO="http://www.w3.org/2000/svg",qO="http://www.w3.org/1998/Math/MathML",vo=typeof document<"u"?document:null,MS=vo&&vo.createElement("template"),KO={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e==="svg"?vo.createElementNS(UO,t):e==="mathml"?vo.createElementNS(qO,t):r?vo.createElement(t,{is:r}):vo.createElement(t);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>vo.createTextNode(t),createComment:t=>vo.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>vo.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,i,a){const o=r?r.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{MS.innerHTML=AS(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const s=MS.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},Ko="transition",_c="animation",bc=Symbol("_vtc"),IS={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},YO=Wr({},Ex,IS),XO=(t=>(t.displayName="Transition",t.props=YO,t))((t,{slots:e})=>GO(UR,jO(t),e)),al=(t,e=[])=>{vt(t)?t.forEach(r=>r(...e)):t&&t(...e)},DS=t=>t?vt(t)?t.some(e=>e.length>1):t.length>1:!1;function jO(t){const e={};for(const K in t)K in IS||(e[K]=t[K]);if(t.css===!1)return e;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:h=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=t,g=ZO(i),y=g&&g[0],w=g&&g[1],{onBeforeEnter:b,onEnter:S,onEnterCancelled:A,onLeave:I,onLeaveCancelled:L,onBeforeAppear:k=b,onAppear:P=S,onAppearCancelled:z=A}=e,F=(K,q,ie,ve)=>{K._enterCancelled=ve,ol(K,q?c:s),ol(K,q?u:o),ie&&ie()},W=(K,q)=>{K._isLeaving=!1,ol(K,h),ol(K,d),ol(K,p),q&&q()},G=K=>(q,ie)=>{const ve=K?P:S,ye=()=>F(q,K,ie);al(ve,[q,ye]),kS(()=>{ol(q,K?l:a),po(q,K?c:s),DS(ve)||LS(q,n,y,ye)})};return Wr(e,{onBeforeEnter(K){al(b,[K]),po(K,a),po(K,o)},onBeforeAppear(K){al(k,[K]),po(K,l),po(K,u)},onEnter:G(!1),onAppear:G(!0),onLeave(K,q){K._isLeaving=!0;const ie=()=>W(K,q);po(K,h),K._enterCancelled?(po(K,p),RS(K)):(RS(K),po(K,p)),kS(()=>{K._isLeaving&&(ol(K,h),po(K,d),DS(I)||LS(K,n,w,ie))}),al(I,[K,ie])},onEnterCancelled(K){F(K,!1,void 0,!0),al(A,[K])},onAppearCancelled(K){F(K,!0,void 0,!0),al(z,[K])},onLeaveCancelled(K){W(K),al(L,[K])}})}function ZO(t){if(t==null)return null;if(qt(t))return[f0(t.enter),f0(t.leave)];{const e=f0(t);return[e,e]}}function f0(t){return KP(t)}function po(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[bc]||(t[bc]=new Set)).add(e)}function ol(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[bc];r&&(r.delete(e),r.size||(t[bc]=void 0))}function kS(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let JO=0;function LS(t,e,r,n){const i=t._endId=++JO,a=()=>{i===t._endId&&n()};if(r!=null)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=QO(t,e);if(!o)return n();const u=o+"end";let c=0;const h=()=>{t.removeEventListener(u,p),a()},p=d=>{d.target===t&&++c>=l&&h()};setTimeout(()=>{c<l&&h()},s+1),t.addEventListener(u,p)}function QO(t,e){const r=window.getComputedStyle(t),n=g=>(r[g]||"").split(", "),i=n(`${Ko}Delay`),a=n(`${Ko}Duration`),o=ES(i,a),s=n(`${_c}Delay`),l=n(`${_c}Duration`),u=ES(s,l);let c=null,h=0,p=0;e===Ko?o>0&&(c=Ko,h=o,p=a.length):e===_c?u>0&&(c=_c,h=u,p=l.length):(h=Math.max(o,u),c=h>0?o>u?Ko:_c:null,p=c?c===Ko?a.length:l.length:0);const d=c===Ko&&/\b(?:transform|all)(?:,|$)/.test(n(`${Ko}Property`).toString());return{type:c,timeout:h,propCount:p,hasTransform:d}}function ES(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,n)=>PS(r)+PS(t[n])))}function PS(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function RS(t){return(t?t.ownerDocument:document).body.offsetHeight}function eB(t,e,r){const n=t[bc];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const vd=Symbol("_vod"),OS=Symbol("_vsh"),BS={name:"show",beforeMount(t,{value:e},{transition:r}){t[vd]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):wc(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),wc(t,!0),n.enter(t)):n.leave(t,()=>{wc(t,!1)}):wc(t,e))},beforeUnmount(t,{value:e}){wc(t,e)}};function wc(t,e){t.style.display=e?t[vd]:"none",t[OS]=!e}const tB=Symbol(""),rB=/(?:^|;)\s*display\s*:/;function nB(t,e,r){const n=t.style,i=yr(r);let a=!1;if(r&&!i){if(e)if(yr(e))for(const o of e.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&xc(n,s,"")}else for(const o in e)r[o]==null&&xc(n,o,"");for(const o in r){o==="display"&&(a=!0);const s=r[o];s!=null?aB(t,o,!yr(e)&&e?e[o]:void 0,s)||xc(n,o,s):xc(n,o,"")}}else if(i){if(e!==r){const o=n[tB];o&&(r+=";"+o),n.cssText=r,a=rB.test(r)}}else e&&t.removeAttribute("style");vd in t&&(t[vd]=a?n.display:"",t[OS]&&(n.display="none"))}const dd=/\s*!important$/;function xc(t,e,r){if(vt(r))r.forEach(n=>xc(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))dd.test(r)?t.setProperty(e,r.replace(dd,""),"important"):t.setProperty(e,r);else{const n=iB(t,e);dd.test(r)?t.setProperty(js(n),r.replace(dd,""),"important"):t[n]=r}}const NS=["Webkit","Moz","ms"],c0={};function iB(t,e){const r=c0[e];if(r)return r;let n=Cn(e);if(n!=="filter"&&n in t)return c0[e]=n;n=Bv(n);for(let i=0;i<NS.length;i++){const a=NS[i]+n;if(a in t)return c0[e]=a}return e}function aB(t,e,r,n){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&yr(n)&&r===n}const FS="http://www.w3.org/1999/xlink";function $S(t,e,r,n,i,a=JP(e)){n&&e.startsWith("xlink:")?r==null?t.removeAttributeNS(FS,e.slice(6,e.length)):t.setAttributeNS(FS,e,r):r==null||a&&!Ww(r)?t.removeAttribute(e):t.setAttribute(e,a?"":wi(r)?String(r):r)}function zS(t,e,r,n,i){if(e==="innerHTML"||e==="textContent"){r!=null&&(t[e]=e==="innerHTML"?AS(r):r);return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?t.getAttribute("value")||"":t.value,l=r==null?t.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in t))&&(t.value=l),r==null&&t.removeAttribute(e),t._value=r;return}let o=!1;if(r===""||r==null){const s=typeof t[e];s==="boolean"?r=Ww(r):r==null&&s==="string"?(r="",o=!0):s==="number"&&(r=0,o=!0)}try{t[e]=r}catch{}o&&t.removeAttribute(i||e)}function oB(t,e,r,n){t.addEventListener(e,r,n)}function sB(t,e,r,n){t.removeEventListener(e,r,n)}const HS=Symbol("_vei");function lB(t,e,r,n,i=null){const a=t[HS]||(t[HS]={}),o=a[e];if(n&&o)o.value=n;else{const[s,l]=cB(e);if(n){const u=a[e]=dB(n,i);oB(t,s,u,l)}else o&&(sB(t,s,o,l),a[e]=void 0)}}const uB=/(Once|Passive|Capture)$/,fB=/^on:?(?:Once|Passive|Capture)$/;function cB(t){let e,r;for(;(r=t.match(uB))&&!fB.test(t);)e||(e={}),t=t.slice(0,t.length-r[1].length),e[r[1].toLowerCase()]=!0;return[t[2]===":"?t.slice(3):js(t.slice(2)),e]}let h0=0;const hB=Promise.resolve(),vB=()=>h0||(hB.then(()=>h0=0),h0=Date.now());function dB(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;const i=r.value;if(vt(i)){const a=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{a.call(n),n._stopped=!0};const o=i.slice(),s=[n];for(let l=0;l<o.length&&!n._stopped;l++){const u=o[l];u&&Si(u,e,5,s)}}else Si(i,e,5,[n])};return r.value=t,r.attached=vB(),r}const VS=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pB=(t,e,r,n,i,a)=>{const o=i==="svg";e==="class"?eB(t,n,o):e==="style"?nB(t,r,n):Lv(e)?Ev(e)||lB(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):gB(t,e,n,o))?(zS(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&$S(t,e,n,o,a,e!=="value")):t._isVueCE&&(mB(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!yr(n)))?zS(t,Cn(e),n,a,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),$S(t,e,n,o))};function gB(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&VS(e)&&bt(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return VS(e)&&yr(r)?!1:e in t}function mB(t,e){const r=t._def.props;if(!r)return!1;const n=Cn(e);return Array.isArray(r)?r.some(i=>Cn(i)===n):Object.keys(r).some(i=>Cn(i)===n)}const yB=Wr({patchProp:pB},KO);let GS;function WS(){return GS||(GS=CO(yB))}const US=(...t)=>{WS().render(...t)},_B=(...t)=>{const e=WS().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=wB(n);if(!i)return;const a=e._component;!bt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,bB(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function bB(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function wB(t){return yr(t)?document.querySelector(t):t}/*!
|
|
32
|
+
* pinia v3.0.4
|
|
33
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
34
|
+
* @license MIT
|
|
35
|
+
*/let qS;const pd=t=>qS=t,KS=Symbol();function v0(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Sc;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Sc||(Sc={}));function xB(){const t=jw(!0),e=t.run(()=>Dt({}));let r=[],n=[];const i=Fn({install(a){pd(i),i._a=a,a.provide(KS,i),a.config.globalProperties.$pinia=i,n.forEach(o=>r.push(o)),n=[]},use(a){return this._a?r.push(a):n.push(a),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return i}const YS=()=>{};function XS(t,e,r,n=YS){t.add(e);const i=()=>{t.delete(e)&&n()};return!r&&Zw()&&tR(i),i}function ku(t,...e){t.forEach(r=>{r(...e)})}const SB=t=>t(),jS=Symbol(),d0=Symbol();function p0(t,e){t instanceof Map&&e instanceof Map?e.forEach((r,n)=>t.set(n,r)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],i=t[r];v0(i)&&v0(n)&&t.hasOwnProperty(r)&&!_r(n)&&!Yi(n)?t[r]=p0(i,n):t[r]=n}return t}const TB=Symbol();function CB(t){return!v0(t)||!Object.prototype.hasOwnProperty.call(t,TB)}const{assign:Yo}=Object;function AB(t){return!!(_r(t)&&t.effect)}function MB(t,e,r,n){const{state:i,actions:a,getters:o}=e,s=r.state.value[t];let l;function u(){s||(r.state.value[t]=i?i():{});const c=TR(r.state.value[t]);return Yo(c,a,Object.keys(o||{}).reduce((h,p)=>(h[p]=Fn(Ke(()=>{pd(r);const d=r._s.get(t);return o[p].call(d,d)})),h),{}))}return l=ZS(t,u,e,r,n,!0),l}function ZS(t,e,r={},n,i,a){let o;const s=Yo({actions:{}},r),l={deep:!0};let u,c,h=new Set,p=new Set,d;const g=n.state.value[t];!a&&!g&&(n.state.value[t]={});let y;function w(z){let F;u=c=!1,typeof z=="function"?(z(n.state.value[t]),F={type:Sc.patchFunction,storeId:t,events:d}):(p0(n.state.value[t],z),F={type:Sc.patchObject,payload:z,storeId:t,events:d});const W=y=Symbol();xx().then(()=>{y===W&&(u=!0)}),c=!0,ku(h,F,n.state.value[t])}const b=a?function(){const{state:F}=r,W=F?F():{};this.$patch(G=>{Yo(G,W)})}:YS;function S(){o.stop(),h.clear(),p.clear(),n._s.delete(t)}const A=(z,F="")=>{if(jS in z)return z[d0]=F,z;const W=function(){pd(n);const G=Array.from(arguments),K=new Set,q=new Set;function ie(be){K.add(be)}function ve(be){q.add(be)}ku(p,{args:G,name:W[d0],store:L,after:ie,onError:ve});let ye;try{ye=z.apply(this&&this.$id===t?this:L,G)}catch(be){throw ku(q,be),be}return ye instanceof Promise?ye.then(be=>(ku(K,be),be)).catch(be=>(ku(q,be),Promise.reject(be))):(ku(K,ye),ye)};return W[jS]=!0,W[d0]=F,W},I={_p:n,$id:t,$onAction:XS.bind(null,p),$patch:w,$reset:b,$subscribe(z,F={}){const W=XS(h,z,F.detached,()=>G()),G=o.run(()=>Ti(()=>n.state.value[t],K=>{(F.flush==="sync"?c:u)&&z({storeId:t,type:Sc.direct,events:d},K)},Yo({},l,F)));return W},$dispose:S},L=Wv(I);n._s.set(t,L);const P=(n._a&&n._a.runWithContext||SB)(()=>n._e.run(()=>(o=jw()).run(()=>e({action:A}))));for(const z in P){const F=P[z];if(_r(F)&&!AB(F)||Yi(F))a||(g&&CB(F)&&(_r(F)?F.value=g[z]:p0(F,g[z])),n.state.value[t][z]=F);else if(typeof F=="function"){const W=A(F,z);P[z]=W,s.actions[z]=F}}return Yo(L,P),Yo(zt(L),P),Object.defineProperty(L,"$state",{get:()=>n.state.value[t],set:z=>{w(F=>{Yo(F,z)})}}),n._p.forEach(z=>{Yo(L,o.run(()=>z({store:L,app:n._a,pinia:n,options:s})))}),g&&a&&r.hydrate&&r.hydrate(L.$state,g),u=!0,c=!0,L}/*! #__NO_SIDE_EFFECTS__ */function IB(t,e,r){let n;const i=typeof e=="function";n=i?r:e;function a(o,s){const l=FR();return o=o||(l?Aa(KS,null):null),o&&pd(o),o=qS,o._s.has(t)||(i?ZS(t,e,n,o):MB(t,n,o)),o._s.get(t)}return a.$id=t,a}function Xo(t){const e=zt(t),r={};for(const n in e){const i=e[n];i.effect?r[n]=Ke({get:()=>t[n],set(a){t[n]=a}}):(_r(i)||Yi(i))&&(r[n]=oc(t,n))}return r}let DB=t=>crypto.getRandomValues(new Uint8Array(t)),kB=(t,e,r)=>{let n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*e/t.length);return(a=e)=>{let o="";for(;;){let s=r(i),l=i;for(;l--;)if(o+=t[s[l]&n]||"",o.length===a)return o}}},LB=(t,e=21)=>kB(t,e,DB);function an(t){this.content=t}an.prototype={constructor:an,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,r){var n=r&&r!=t?this.remove(r):this,i=n.find(t),a=n.content.slice();return i==-1?a.push(r||t,e):(a[i+1]=e,r&&(a[i]=r)),new an(a)},remove:function(t){var e=this.find(t);if(e==-1)return this;var r=this.content.slice();return r.splice(e,2),new an(r)},addToStart:function(t,e){return new an([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var r=this.remove(t).content.slice();return r.push(t,e),new an(r)},addBefore:function(t,e,r){var n=this.remove(e),i=n.content.slice(),a=n.find(t);return i.splice(a==-1?i.length:a,0,e,r),new an(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=an.from(t),t.size?new an(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=an.from(t),t.size?new an(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=an.from(t);for(var r=0;r<t.content.length;r+=2)e=e.remove(t.content[r]);return e},toObject:function(){var t={};return this.forEach(function(e,r){t[e]=r}),t},get size(){return this.content.length>>1}},an.from=function(t){if(t instanceof an)return t;var e=[];if(t)for(var r in t)e.push(r,t[r]);return new an(e)};function JS(t,e,r){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:r;let i=t.child(n),a=e.child(n);if(i==a){r+=i.nodeSize;continue}if(!i.sameMarkup(a))return r;if(i.isText&&i.text!=a.text){for(let o=0;i.text[o]==a.text[o];o++)r++;return r}if(i.content.size||a.content.size){let o=JS(i.content,a.content,r+1);if(o!=null)return o}r+=i.nodeSize}}function QS(t,e,r,n){for(let i=t.childCount,a=e.childCount;;){if(i==0||a==0)return i==a?null:{a:r,b:n};let o=t.child(--i),s=e.child(--a),l=o.nodeSize;if(o==s){r-=l,n-=l;continue}if(!o.sameMarkup(s))return{a:r,b:n};if(o.isText&&o.text!=s.text){let u=0,c=Math.min(o.text.length,s.text.length);for(;u<c&&o.text[o.text.length-u-1]==s.text[s.text.length-u-1];)u++,r--,n--;return{a:r,b:n}}if(o.content.size||s.content.size){let u=QS(o.content,s.content,r-1,n-1);if(u)return u}r-=l,n-=l}}class jt{constructor(e,r){if(this.content=e,this.size=r||0,r==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,r,n,i=0,a){for(let o=0,s=0;s<r;o++){let l=this.content[o],u=s+l.nodeSize;if(u>e&&n(l,i+s,a||null,o)!==!1&&l.content.size){let c=s+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,r-c),n,i+c)}s=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,r,n,i){let a="",o=!0;return this.nodesBetween(e,r,(s,l)=>{let u=s.isText?s.text.slice(Math.max(e,l)-l,r-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&u||s.isTextblock)&&n&&(o?o=!1:a+=n),a+=u},0),a}append(e){if(!e.size)return this;if(!this.size)return e;let r=this.lastChild,n=e.firstChild,i=this.content.slice(),a=0;for(r.isText&&r.sameMarkup(n)&&(i[i.length-1]=r.withText(r.text+n.text),a=1);a<e.content.length;a++)i.push(e.content[a]);return new jt(i,this.size+e.size)}cut(e,r=this.size){if(e==0&&r==this.size)return this;let n=[],i=0;if(r>e)for(let a=0,o=0;o<r;a++){let s=this.content[a],l=o+s.nodeSize;l>e&&((o<e||l>r)&&(s.isText?s=s.cut(Math.max(0,e-o),Math.min(s.text.length,r-o)):s=s.cut(Math.max(0,e-o-1),Math.min(s.content.size,r-o-1))),n.push(s),i+=s.nodeSize),o=l}return new jt(n,i)}cutByIndex(e,r){return e==r?jt.empty:e==0&&r==this.content.length?this:new jt(this.content.slice(e,r))}replaceChild(e,r){let n=this.content[e];if(n==r)return this;let i=this.content.slice(),a=this.size+r.nodeSize-n.nodeSize;return i[e]=r,new jt(i,a)}addToStart(e){return new jt([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new jt(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let r=0;r<this.content.length;r++)if(!this.content[r].eq(e.content[r]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let r=this.content[e];if(!r)throw new RangeError("Index "+e+" out of range for "+this);return r}maybeChild(e){return this.content[e]||null}forEach(e){for(let r=0,n=0;r<this.content.length;r++){let i=this.content[r];e(i,n,r),n+=i.nodeSize}}findDiffStart(e,r=0){return JS(this,e,r)}findDiffEnd(e,r=this.size,n=e.size){return QS(this,e,r,n)}findIndex(e,r=-1){if(e==0)return gd(0,e);if(e==this.size)return gd(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,i=0;;n++){let a=this.child(n),o=i+a.nodeSize;if(o>=e)return o==e||r>0?gd(n+1,o):gd(n,i);i=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,r){if(!r)return jt.empty;if(!Array.isArray(r))throw new RangeError("Invalid input for Fragment.fromJSON");return new jt(r.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return jt.empty;let r,n=0;for(let i=0;i<e.length;i++){let a=e[i];n+=a.nodeSize,i&&a.isText&&e[i-1].sameMarkup(a)?(r||(r=e.slice(0,i)),r[r.length-1]=a.withText(r[r.length-1].text+a.text)):r&&r.push(a)}return new jt(r||e,n)}static from(e){if(!e)return jt.empty;if(e instanceof jt)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new jt([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}jt.empty=new jt([],0);const g0={index:0,offset:0};function gd(t,e){return g0.index=t,g0.offset=e,g0}function md(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let r=Array.isArray(t);if(Array.isArray(e)!=r)return!1;if(r){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!md(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!md(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}class Qr{constructor(e,r){this.type=e,this.attrs=r}addToSet(e){let r,n=!1;for(let i=0;i<e.length;i++){let a=e[i];if(this.eq(a))return e;if(this.type.excludes(a.type))r||(r=e.slice(0,i));else{if(a.type.excludes(this.type))return e;!n&&a.type.rank>this.type.rank&&(r||(r=e.slice(0,i)),r.push(this),n=!0),r&&r.push(a)}}return r||(r=e.slice()),n||r.push(this),r}removeFromSet(e){for(let r=0;r<e.length;r++)if(this.eq(e[r]))return e.slice(0,r).concat(e.slice(r+1));return e}isInSet(e){for(let r=0;r<e.length;r++)if(this.eq(e[r]))return!0;return!1}eq(e){return this==e||this.type==e.type&&md(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let r in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,r){if(!r)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[r.type];if(!n)throw new RangeError(`There is no mark type ${r.type} in this schema`);let i=n.create(r.attrs);return n.checkAttrs(i.attrs),i}static sameSet(e,r){if(e==r)return!0;if(e.length!=r.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(r[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Qr.none;if(e instanceof Qr)return[e];let r=e.slice();return r.sort((n,i)=>n.type.rank-i.type.rank),r}}Qr.none=[];class m0 extends Error{}class ka{constructor(e,r,n){this.content=e,this.openStart=r,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,r){let n=tT(this.content,e+this.openStart,r);return n&&new ka(n,this.openStart,this.openEnd)}removeBetween(e,r){return new ka(eT(this.content,e+this.openStart,r+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,r){if(!r)return ka.empty;let n=r.openStart||0,i=r.openEnd||0;if(typeof n!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ka(jt.fromJSON(e,r.content),n,i)}static maxOpen(e,r=!0){let n=0,i=0;for(let a=e.firstChild;a&&!a.isLeaf&&(r||!a.type.spec.isolating);a=a.firstChild)n++;for(let a=e.lastChild;a&&!a.isLeaf&&(r||!a.type.spec.isolating);a=a.lastChild)i++;return new ka(e,n,i)}}ka.empty=new ka(jt.empty,0,0);function eT(t,e,r){let{index:n,offset:i}=t.findIndex(e),a=t.maybeChild(n),{index:o,offset:s}=t.findIndex(r);if(i==e||a.isText){if(s!=r&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(r))}if(n!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(n,a.copy(eT(a.content,e-i-1,r-i-1)))}function tT(t,e,r,n){let{index:i,offset:a}=t.findIndex(e),o=t.maybeChild(i);if(a==e||o.isText)return t.cut(0,e).append(r).append(t.cut(e));let s=tT(o.content,e-a-1,r);return s&&t.replaceChild(i,o.copy(s))}function EB(t,e,r){if(r.openStart>t.depth)throw new m0("Inserted content deeper than insertion position");if(t.depth-r.openStart!=e.depth-r.openEnd)throw new m0("Inconsistent open depths");return rT(t,e,r,0)}function rT(t,e,r,n){let i=t.index(n),a=t.node(n);if(i==e.index(n)&&n<t.depth-r.openStart){let o=rT(t,e,r,n+1);return a.copy(a.content.replaceChild(i,o))}else if(r.content.size)if(!r.openStart&&!r.openEnd&&t.depth==n&&e.depth==n){let o=t.parent,s=o.content;return ll(o,s.cut(0,t.parentOffset).append(r.content).append(s.cut(e.parentOffset)))}else{let{start:o,end:s}=PB(r,t);return ll(a,iT(t,o,s,e,n))}else return ll(a,yd(t,e,n))}function nT(t,e){if(!e.type.compatibleContent(t.type))throw new m0("Cannot join "+e.type.name+" onto "+t.type.name)}function y0(t,e,r){let n=t.node(r);return nT(n,e.node(r)),n}function sl(t,e){let r=e.length-1;r>=0&&t.isText&&t.sameMarkup(e[r])?e[r]=t.withText(e[r].text+t.text):e.push(t)}function Tc(t,e,r,n){let i=(e||t).node(r),a=0,o=e?e.index(r):i.childCount;t&&(a=t.index(r),t.depth>r?a++:t.textOffset&&(sl(t.nodeAfter,n),a++));for(let s=a;s<o;s++)sl(i.child(s),n);e&&e.depth==r&&e.textOffset&&sl(e.nodeBefore,n)}function ll(t,e){return t.type.checkContent(e),t.copy(e)}function iT(t,e,r,n,i){let a=t.depth>i&&y0(t,e,i+1),o=n.depth>i&&y0(r,n,i+1),s=[];return Tc(null,t,i,s),a&&o&&e.index(i)==r.index(i)?(nT(a,o),sl(ll(a,iT(t,e,r,n,i+1)),s)):(a&&sl(ll(a,yd(t,e,i+1)),s),Tc(e,r,i,s),o&&sl(ll(o,yd(r,n,i+1)),s)),Tc(n,null,i,s),new jt(s)}function yd(t,e,r){let n=[];if(Tc(null,t,r,n),t.depth>r){let i=y0(t,e,r+1);sl(ll(i,yd(t,e,r+1)),n)}return Tc(e,null,r,n),new jt(n)}function PB(t,e){let r=e.depth-t.openStart,i=e.node(r).copy(t.content);for(let a=r-1;a>=0;a--)i=e.node(a).copy(jt.from(i));return{start:i.resolveNoCache(t.openStart+r),end:i.resolveNoCache(i.content.size-t.openEnd-r)}}class Cc{constructor(e,r,n){this.pos=e,this.path=r,this.parentOffset=n,this.depth=r.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,r=this.index(this.depth);if(r==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],i=e.child(r);return n?e.child(r).cut(n):i}get nodeBefore(){let e=this.index(this.depth),r=this.pos-this.path[this.path.length-1];return r?this.parent.child(e).cut(0,r):e==0?null:this.parent.child(e-1)}posAtIndex(e,r){r=this.resolveDepth(r);let n=this.path[r*3],i=r==0?0:this.path[r*3-1]+1;for(let a=0;a<e;a++)i+=n.child(a).nodeSize;return i}marks(){let e=this.parent,r=this.index();if(e.content.size==0)return Qr.none;if(this.textOffset)return e.child(r).marks;let n=e.maybeChild(r-1),i=e.maybeChild(r);if(!n){let s=n;n=i,i=s}let a=n.marks;for(var o=0;o<a.length;o++)a[o].type.spec.inclusive===!1&&(!i||!a[o].isInSet(i.marks))&&(a=a[o--].removeFromSet(a));return a}marksAcross(e){let r=this.parent.maybeChild(this.index());if(!r||!r.isInline)return null;let n=r.marks,i=e.parent.maybeChild(e.index());for(var a=0;a<n.length;a++)n[a].type.spec.inclusive===!1&&(!i||!n[a].isInSet(i.marks))&&(n=n[a--].removeFromSet(n));return n}sharedDepth(e){for(let r=this.depth;r>0;r--)if(this.start(r)<=e&&this.end(r)>=e)return r;return 0}blockRange(e=this,r){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!r||r(this.node(n))))return new BB(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let r=1;r<=this.depth;r++)e+=(e?"/":"")+this.node(r).type.name+"_"+this.index(r-1);return e+":"+this.parentOffset}static resolve(e,r){if(!(r>=0&&r<=e.content.size))throw new RangeError("Position "+r+" out of range");let n=[],i=0,a=r;for(let o=e;;){let{index:s,offset:l}=o.content.findIndex(a),u=a-l;if(n.push(o,s,i+l),!u||(o=o.child(s),o.isText))break;a=u-1,i+=l+1}return new Cc(r,n,a)}static resolveCached(e,r){let n=aT.get(e);if(n)for(let a=0;a<n.elts.length;a++){let o=n.elts[a];if(o.pos==r)return o}else aT.set(e,n=new RB);let i=n.elts[n.i]=Cc.resolve(e,r);return n.i=(n.i+1)%OB,i}}class RB{constructor(){this.elts=[],this.i=0}}const OB=12,aT=new WeakMap;class BB{constructor(e,r,n){this.$from=e,this.$to=r,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const NB=Object.create(null);class go{constructor(e,r,n,i=Qr.none){this.type=e,this.attrs=r,this.marks=i,this.content=n||jt.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,r,n,i=0){this.content.nodesBetween(e,r,n,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,r,n,i){return this.content.textBetween(e,r,n,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,r,n){return this.type==e&&md(this.attrs,r||e.defaultAttrs||NB)&&Qr.sameSet(this.marks,n||Qr.none)}copy(e=null){return e==this.content?this:new go(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new go(this.type,this.attrs,this.content,e)}cut(e,r=this.content.size){return e==0&&r==this.content.size?this:this.copy(this.content.cut(e,r))}slice(e,r=this.content.size,n=!1){if(e==r)return ka.empty;let i=this.resolve(e),a=this.resolve(r),o=n?0:i.sharedDepth(r),s=i.start(o),u=i.node(o).content.cut(i.pos-s,a.pos-s);return new ka(u,i.depth-o,a.depth-o)}replace(e,r,n){return EB(this.resolve(e),this.resolve(r),n)}nodeAt(e){for(let r=this;;){let{index:n,offset:i}=r.content.findIndex(e);if(r=r.maybeChild(n),!r)return null;if(i==e||r.isText)return r;e-=i+1}}childAfter(e){let{index:r,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(r),index:r,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:r,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(r),index:r,offset:n};let i=this.content.child(r-1);return{node:i,index:r-1,offset:n-i.nodeSize}}resolve(e){return Cc.resolveCached(this,e)}resolveNoCache(e){return Cc.resolve(this,e)}rangeHasMark(e,r,n){let i=!1;return r>e&&this.nodesBetween(e,r,a=>(n.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),oT(this.marks,e)}contentMatchAt(e){let r=this.type.contentMatch.matchFragment(this.content,0,e);if(!r)throw new Error("Called contentMatchAt on a node with invalid content");return r}canReplace(e,r,n=jt.empty,i=0,a=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,i,a),s=o&&o.matchFragment(this.content,r);if(!s||!s.validEnd)return!1;for(let l=i;l<a;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0}canReplaceWith(e,r,n,i){if(i&&!this.type.allowsMarks(i))return!1;let a=this.contentMatchAt(e).matchType(n),o=a&&a.matchFragment(this.content,r);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Qr.none;for(let r=0;r<this.marks.length;r++){let n=this.marks[r];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!Qr.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(r=>r.type.name)}`);this.content.forEach(r=>r.check())}toJSON(){let e={type:this.type.name};for(let r in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(r=>r.toJSON())),e}static fromJSON(e,r){if(!r)throw new RangeError("Invalid input for Node.fromJSON");let n;if(r.marks){if(!Array.isArray(r.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=r.marks.map(e.markFromJSON)}if(r.type=="text"){if(typeof r.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(r.text,n)}let i=jt.fromJSON(e,r.content),a=e.nodeType(r.type).create(r.attrs,i,n);return a.type.checkAttrs(a.attrs),a}}go.prototype.text=void 0;class _d extends go{constructor(e,r,n,i){if(super(e,r,null,i),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):oT(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,r){return this.text.slice(e,r)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new _d(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new _d(this.type,this.attrs,e,this.marks)}cut(e=0,r=this.text.length){return e==0&&r==this.text.length?this:this.withText(this.text.slice(e,r))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function oT(t,e){for(let r=t.length-1;r>=0;r--)e=t[r].type.name+"("+e+")";return e}class ul{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,r){let n=new FB(e,r);if(n.next==null)return ul.empty;let i=sT(n);n.next&&n.err("Unexpected trailing text");let a=UB(WB(i));return qB(a,n),a}matchType(e){for(let r=0;r<this.next.length;r++)if(this.next[r].type==e)return this.next[r].next;return null}matchFragment(e,r=0,n=e.childCount){let i=this;for(let a=r;i&&a<n;a++)i=i.matchType(e.child(a).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:r}=this.next[e];if(!(r.isText||r.hasRequiredAttrs()))return r}return null}compatible(e){for(let r=0;r<this.next.length;r++)for(let n=0;n<e.next.length;n++)if(this.next[r].type==e.next[n].type)return!0;return!1}fillBefore(e,r=!1,n=0){let i=[this];function a(o,s){let l=o.matchFragment(e,n);if(l&&(!r||l.validEnd))return jt.from(s.map(u=>u.createAndFill()));for(let u=0;u<o.next.length;u++){let{type:c,next:h}=o.next[u];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(h)==-1){i.push(h);let p=a(h,s.concat(c));if(p)return p}}return null}return a(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let r=this.computeWrapping(e);return this.wrapCache.push(e,r),r}computeWrapping(e){let r=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let i=n.shift(),a=i.match;if(a.matchType(e)){let o=[];for(let s=i;s.type;s=s.via)o.push(s.type);return o.reverse()}for(let o=0;o<a.next.length;o++){let{type:s,next:l}=a.next[o];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in r)&&(!i.type||l.validEnd)&&(n.push({match:s.contentMatch,type:s,via:i}),r[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function r(n){e.push(n);for(let i=0;i<n.next.length;i++)e.indexOf(n.next[i].next)==-1&&r(n.next[i].next)}return r(this),e.map((n,i)=>{let a=i+(n.validEnd?"*":" ")+" ";for(let o=0;o<n.next.length;o++)a+=(o?", ":"")+n.next[o].type.name+"->"+e.indexOf(n.next[o].next);return a}).join(`
|
|
36
|
+
`)}}ul.empty=new ul(!0);class FB{constructor(e,r){this.string=e,this.nodeTypes=r,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function sT(t){let e=[];do e.push($B(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function $B(t){let e=[];do e.push(zB(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function zB(t){let e=GB(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=HB(t,e);else break;return e}function lT(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function HB(t,e){let r=lT(t),n=r;return t.eat(",")&&(t.next!="}"?n=lT(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:e}}function VB(t,e){let r=t.nodeTypes,n=r[e];if(n)return[n];let i=[];for(let a in r){let o=r[a];o.groups.indexOf(e)>-1&&i.push(o)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function GB(t){if(t.eat("(")){let e=sT(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=VB(t,t.next).map(r=>(t.inline==null?t.inline=r.isInline:t.inline!=r.isInline&&t.err("Mixing inline and block content"),{type:"name",value:r}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function WB(t){let e=[[]];return i(a(t,0),r()),e;function r(){return e.push([])-1}function n(o,s,l){let u={term:l,to:s};return e[o].push(u),u}function i(o,s){o.forEach(l=>l.to=s)}function a(o,s){if(o.type=="choice")return o.exprs.reduce((l,u)=>l.concat(a(u,s)),[]);if(o.type=="seq")for(let l=0;;l++){let u=a(o.exprs[l],s);if(l==o.exprs.length-1)return u;i(u,s=r())}else if(o.type=="star"){let l=r();return n(s,l),i(a(o.expr,l),l),[n(l)]}else if(o.type=="plus"){let l=r();return i(a(o.expr,s),l),i(a(o.expr,l),l),[n(l)]}else{if(o.type=="opt")return[n(s)].concat(a(o.expr,s));if(o.type=="range"){let l=s;for(let u=0;u<o.min;u++){let c=r();i(a(o.expr,l),c),l=c}if(o.max==-1)i(a(o.expr,l),l);else for(let u=o.min;u<o.max;u++){let c=r();n(l,c),i(a(o.expr,l),c),l=c}return[n(l)]}else{if(o.type=="name")return[n(s,void 0,o.value)];throw new Error("Unknown expr type")}}}}function uT(t,e){return e-t}function fT(t,e){let r=[];return n(e),r.sort(uT);function n(i){let a=t[i];if(a.length==1&&!a[0].term)return n(a[0].to);r.push(i);for(let o=0;o<a.length;o++){let{term:s,to:l}=a[o];!s&&r.indexOf(l)==-1&&n(l)}}}function UB(t){let e=Object.create(null);return r(fT(t,0));function r(n){let i=[];n.forEach(o=>{t[o].forEach(({term:s,to:l})=>{if(!s)return;let u;for(let c=0;c<i.length;c++)i[c][0]==s&&(u=i[c][1]);fT(t,l).forEach(c=>{u||i.push([s,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let a=e[n.join(",")]=new ul(n.indexOf(t.length-1)>-1);for(let o=0;o<i.length;o++){let s=i[o][1].sort(uT);a.next.push({type:i[o][0],next:e[s.join(",")]||r(s)})}return a}}function qB(t,e){for(let r=0,n=[t];r<n.length;r++){let i=n[r],a=!i.validEnd,o=[];for(let s=0;s<i.next.length;s++){let{type:l,next:u}=i.next[s];o.push(l.name),a&&!(l.isText||l.hasRequiredAttrs())&&(a=!1),n.indexOf(u)==-1&&n.push(u)}a&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function cT(t){let e=Object.create(null);for(let r in t){let n=t[r];if(!n.hasDefault)return null;e[r]=n.default}return e}function hT(t,e){let r=Object.create(null);for(let n in t){let i=e&&e[n];if(i===void 0){let a=t[n];if(a.hasDefault)i=a.default;else throw new RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function vT(t,e,r,n){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${r} of type ${i}`);for(let i in t){let a=t[i];a.validate&&a.validate(e[i])}}function dT(t,e){let r=Object.create(null);if(e)for(let n in e)r[n]=new YB(t,n,e[n]);return r}class bd{constructor(e,r,n){this.name=e,this.schema=r,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=dT(e,n.attrs),this.defaultAttrs=cT(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ul.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:hT(this.attrs,e)}create(e=null,r,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new go(this,this.computeAttrs(e),jt.from(r),Qr.setFrom(n))}createChecked(e=null,r,n){return r=jt.from(r),this.checkContent(r),new go(this,this.computeAttrs(e),r,Qr.setFrom(n))}createAndFill(e=null,r,n){if(e=this.computeAttrs(e),r=jt.from(r),r.size){let o=this.contentMatch.fillBefore(r);if(!o)return null;r=o.append(r)}let i=this.contentMatch.matchFragment(r),a=i&&i.fillBefore(jt.empty,!0);return a?new go(this,e,r.append(a),Qr.setFrom(n)):null}validContent(e){let r=this.contentMatch.matchFragment(e);if(!r||!r.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){vT(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let r=0;r<e.length;r++)if(!this.allowsMarkType(e[r].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let r;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?r&&r.push(e[n]):r||(r=e.slice(0,n));return r?r.length?r:Qr.none:e}static compile(e,r){let n=Object.create(null);e.forEach((a,o)=>n[a]=new bd(a,r,o));let i=r.spec.topNode||"doc";if(!n[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let a in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}function KB(t,e,r){let n=r.split("|");return i=>{let a=i===null?"null":typeof i;if(n.indexOf(a)<0)throw new RangeError(`Expected value of type ${n} for attribute ${e} on type ${t}, got ${a}`)}}class YB{constructor(e,r,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?KB(e,r,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class _0{constructor(e,r,n,i){this.name=e,this.rank=r,this.schema=n,this.spec=i,this.attrs=dT(e,i.attrs),this.excluded=null;let a=cT(this.attrs);this.instance=a?new Qr(this,a):null}create(e=null){return!e&&this.instance?this.instance:new Qr(this,hT(this.attrs,e))}static compile(e,r){let n=Object.create(null),i=0;return e.forEach((a,o)=>n[a]=new _0(a,i++,r,o)),n}removeFromSet(e){for(var r=0;r<e.length;r++)e[r].type==this&&(e=e.slice(0,r).concat(e.slice(r+1)),r--);return e}isInSet(e){for(let r=0;r<e.length;r++)if(e[r].type==this)return e[r]}checkAttrs(e){vT(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class pT{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let r=this.spec={};for(let i in e)r[i]=e[i];r.nodes=an.from(e.nodes),r.marks=an.from(e.marks||{}),this.nodes=bd.compile(this.spec.nodes,this),this.marks=_0.compile(this.spec.marks,this);let n=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],o=a.spec.content||"",s=a.spec.marks;if(a.contentMatch=n[o]||(n[o]=ul.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet=s=="_"?null:s?gT(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],o=a.spec.excludes;a.excluded=o==null?[a]:o==""?[]:gT(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,r=null,n,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof bd){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(r,n,i)}text(e,r){let n=this.nodes.text;return new _d(n,n.defaultAttrs,e,Qr.setFrom(r))}mark(e,r){return typeof e=="string"&&(e=this.marks[e]),e.create(r)}nodeFromJSON(e){return go.fromJSON(this,e)}markFromJSON(e){return Qr.fromJSON(this,e)}nodeType(e){let r=this.nodes[e];if(!r)throw new RangeError("Unknown node type: "+e);return r}}function gT(t,e){let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t.marks[i],o=a;if(a)r.push(a);else for(let s in t.marks){let l=t.marks[s];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&r.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return r}const XB=["p",0],jB=["blockquote",0],ZB=["hr"],JB=["pre",["code",0]],QB=["br"],wd={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return XB}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return jB}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return ZB}},heading:{attrs:{level:{default:1,validate:"number"}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(t){return["h"+t.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return JB}},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|null"}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(t){return{src:t.getAttribute("src"),title:t.getAttribute("title"),alt:t.getAttribute("alt")}}}],toDOM(t){let{src:e,alt:r,title:n}=t.attrs;return["img",{src:e,alt:r,title:n}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return QB}}},eN=["em",0],tN=["strong",0],rN=["code",0],mT={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(t){return{href:t.getAttribute("href"),title:t.getAttribute("title")}}}],toDOM(t){let{href:e,title:r}=t.attrs;return["a",{href:e,title:r},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:t=>t.type.name=="em"}],toDOM(){return eN}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name=="strong"},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],toDOM(){return tN}},code:{parseDOM:[{tag:"code"}],toDOM(){return rN}}};new pT({nodes:wd,marks:mT});const nN={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:t=>t==="line-through"&&null},{style:"text-decoration-line",getAttrs:t=>t==="line-through"&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},iN={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:t=>t==="underline"&&null},{style:"text-decoration-line",getAttrs:t=>t==="underline"&&null}],toDOM:()=>["span",{style:"text-decoration: underline;"},0]},aN={attrs:{color:{}},inline:!0,group:"inline",parseDOM:[{style:"color",getAttrs:t=>t?{color:t}:{}}],toDOM:t=>{const{color:e}=t.attrs;let r="";return e&&(r+=`color: ${e};`),["span",{style:r},0]}},oN={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:t=>t?{fontsize:t}:{}}],toDOM:t=>{const{fontsize:e}=t.attrs;let r="";return e&&(r+=`font-size: ${e};`),["span",{style:r},0]}},sN={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:t=>({fontname:t&&typeof t=="string"?t.replace(/[\"\']/g,""):""})}],toDOM:t=>{const{fontname:e}=t.attrs;let r="";return e&&(r+=`font-family: ${e};`),["span",{style:r},0]}},{em:lN,strong:uN,code:uJ}=mT,fl={em:lN,strong:uN,fontsize:oN,fontname:sN,forecolor:aN,strikethrough:nN,underline:iN};new pT({nodes:{doc:{content:"paragraph+"},paragraph:wd.paragraph,text:wd.text,hard_break:wd.hard_break},marks:{strong:fl.strong,em:fl.em,underline:{...fl.underline,parseDOM:[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>String(t).includes("underline")?null:!1},{style:"text-decoration-line",consuming:!1,getAttrs:t=>String(t).includes("underline")?null:!1}]},strikethrough:{...fl.strikethrough,parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:t=>String(t).includes("line-through")?null:!1},{style:"text-decoration-line",getAttrs:t=>String(t).includes("line-through")?null:!1}]},forecolor:fl.forecolor,fontsize:fl.fontsize,fontname:fl.fontname}});var cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fN(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xd={exports:{}};/**
|
|
37
|
+
* @license
|
|
38
|
+
* Lodash <https://lodash.com/>
|
|
39
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
40
|
+
* Released under MIT license <https://lodash.com/license>
|
|
41
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
42
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
43
|
+
*/xd.exports,function(t,e){(function(){var r,n="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",h=1,p=2,d=4,g=1,y=2,w=1,b=2,S=4,A=8,I=16,L=32,k=64,P=128,z=256,F=512,W=30,G="...",K=800,q=16,ie=1,ve=2,ye=3,be=1/0,ue=9007199254740991,Me=17976931348623157e292,ke=NaN,ce=4294967295,fe=ce-1,Pe=ce>>>1,Qe=[["ary",P],["bind",w],["bindKey",b],["curry",A],["curryRight",I],["flip",F],["partial",L],["partialRight",k],["rearg",z]],Ae="[object Arguments]",Oe="[object Array]",lt="[object AsyncFunction]",dt="[object Boolean]",$e="[object Date]",Tt="[object DOMException]",rt="[object Error]",$="[object Function]",J="[object GeneratorFunction]",se="[object Map]",Te="[object Number]",xe="[object Null]",we="[object Object]",de="[object Promise]",le="[object Proxy]",Se="[object RegExp]",pe="[object Set]",Ze="[object String]",He="[object Symbol]",nt="[object Undefined]",Be="[object WeakMap]",xt="[object WeakSet]",Mt="[object ArrayBuffer]",Rt="[object DataView]",Qt="[object Float32Array]",wr="[object Float64Array]",Xr="[object Int8Array]",Lr="[object Int16Array]",Yn="[object Int32Array]",Za="[object Uint8Array]",pr="[object Uint8ClampedArray]",Xe="[object Uint16Array]",$i="[object Uint32Array]",zi=/\b__p \+= '';/g,xf=/\b(__p \+=) '' \+/g,Ue=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Sf=/&(?:amp|lt|gt|quot|#39);/g,qh=/[&<>"']/g,Kh=RegExp(Sf.source),Ng=RegExp(qh.source),Yh=/<%-([\s\S]+?)%>/g,Eb=/<%([\s\S]+?)%>/g,Fg=/<%=([\s\S]+?)%>/g,Ds=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ks=/^\w*$/,Xh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ls=/[\\^$.*+?()[\]{}|]/g,gr=RegExp(Ls.source),Er=/^\s+/,Pb=/\s/,Tf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cf=/\{\n\/\* \[wrapped with (.+)\] \*/,Af=/,? & /,Rb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ja=/[()=,{}\[\]\/\s]/,Es=/\\(\\)?/g,Qa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jl=/\w*$/,Ob=/^[-+]0x[0-9a-f]+$/i,eo=/^0b[01]+$/i,$g=/^\[object .+?Constructor\]$/,ko=/^0o[0-7]+$/i,zg=/^(?:0|[1-9]\d*)$/,jh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mr=/($^)/,Lo=/['\n\r\u2028\u2029\\]/g,Xn="\\ud800-\\udfff",Hg="\\u0300-\\u036f",Ps="\\ufe20-\\ufe2f",Mf="\\u20d0-\\u20ff",If=Hg+Ps+Mf,Df="\\u2700-\\u27bf",to="a-z\\xdf-\\xf6\\xf8-\\xff",Vg="\\xac\\xb1\\xd7\\xf7",kf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gg="\\u2000-\\u206f",Ft=" \\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",Zh="A-Z\\xc0-\\xd6\\xd8-\\xde",Jh="\\ufe0e\\ufe0f",Qh=Vg+kf+Gg+Ft,rr="['’]",Ql="["+Xn+"]",Rs="["+Qh+"]",ua="["+If+"]",Lf="\\d+",ev="["+Df+"]",eu="["+to+"]",tv="[^"+Xn+Qh+Lf+Df+to+Zh+"]",Os="\\ud83c[\\udffb-\\udfff]",Wg="(?:"+ua+"|"+Os+")",Bs="[^"+Xn+"]",Ef="(?:\\ud83c[\\udde6-\\uddff]){2}",rv="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+Zh+"]",Pf="\\u200d",Ug="(?:"+eu+"|"+tv+")",Bb="(?:"+Ot+"|"+tv+")",_n="(?:"+rr+"(?:d|ll|m|re|s|t|ve))?",Eo="(?:"+rr+"(?:D|LL|M|RE|S|T|VE))?",tu=Wg+"?",fa="["+Jh+"]?",qg="(?:"+Pf+"(?:"+[Bs,Ef,rv].join("|")+")"+fa+tu+")*",Kg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vr="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gi=fa+tu+qg,ru="(?:"+[ev,Ef,rv].join("|")+")"+gi,nu="(?:"+[Bs+ua+"?",ua,Ef,rv,Ql].join("|")+")",nv=RegExp(rr,"g"),ro=RegExp(ua,"g"),iv=RegExp(Os+"(?="+Os+")|"+nu+gi,"g"),Hi=RegExp([Ot+"?"+eu+"+"+_n+"(?="+[Rs,Ot,"$"].join("|")+")",Bb+"+"+Eo+"(?="+[Rs,Ot+Ug,"$"].join("|")+")",Ot+"?"+Ug+"+"+_n,Ot+"+"+Eo,Vr,Kg,Lf,ru].join("|"),"g"),av=RegExp("["+Pf+Xn+If+Jh+"]"),Yg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ov=["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"],iu=-1,nr={};nr[Qt]=nr[wr]=nr[Xr]=nr[Lr]=nr[Yn]=nr[Za]=nr[pr]=nr[Xe]=nr[$i]=!0,nr[Ae]=nr[Oe]=nr[Mt]=nr[dt]=nr[Rt]=nr[$e]=nr[rt]=nr[$]=nr[se]=nr[Te]=nr[we]=nr[Se]=nr[pe]=nr[Ze]=nr[Be]=!1;var ir={};ir[Ae]=ir[Oe]=ir[Mt]=ir[Rt]=ir[dt]=ir[$e]=ir[Qt]=ir[wr]=ir[Xr]=ir[Lr]=ir[Yn]=ir[se]=ir[Te]=ir[we]=ir[Se]=ir[pe]=ir[Ze]=ir[He]=ir[Za]=ir[pr]=ir[Xe]=ir[$i]=!0,ir[rt]=ir[$]=ir[Be]=!1;var Nb={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},au={"&":"&","<":"<",">":">",'"':""","'":"'"},Fb={"&":"&","<":"<",">":">",""":'"',"'":"'"},$b={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Rf=parseFloat,Of=parseInt,Bf=typeof cl=="object"&&cl&&cl.Object===Object&&cl,zb=typeof self=="object"&&self&&self.Object===Object&&self,jr=Bf||zb||Function("return this")(),sv=e&&!e.nodeType&&e,ca=sv&&!0&&t&&!t.nodeType&&t,Nf=ca&&ca.exports===sv,Ff=Nf&&Bf.process,fn=function(){try{var R=ca&&ca.require&&ca.require("util").types;return R||Ff&&Ff.binding&&Ff.binding("util")}catch{}}(),ou=fn&&fn.isArrayBuffer,su=fn&&fn.isDate,lv=fn&&fn.isMap,Xg=fn&&fn.isRegExp,lu=fn&&fn.isSet,$f=fn&&fn.isTypedArray;function cn(R,V,O){switch(O.length){case 0:return R.call(V);case 1:return R.call(V,O[0]);case 2:return R.call(V,O[0],O[1]);case 3:return R.call(V,O[0],O[1],O[2])}return R.apply(V,O)}function uv(R,V,O,Z){for(var Y=-1,ee=R==null?0:R.length;++Y<ee;){var ae=R[Y];V(Z,ae,O(ae),R)}return Z}function bn(R,V){for(var O=-1,Z=R==null?0:R.length;++O<Z&&V(R[O],O,R)!==!1;);return R}function rn(R,V){for(var O=R==null?0:R.length;O--&&V(R[O],O,R)!==!1;);return R}function Ns(R,V){for(var O=-1,Z=R==null?0:R.length;++O<Z;)if(!V(R[O],O,R))return!1;return!0}function jn(R,V){for(var O=-1,Z=R==null?0:R.length,Y=0,ee=[];++O<Z;){var ae=R[O];V(ae,O,R)&&(ee[Y++]=ae)}return ee}function uu(R,V){var O=R==null?0:R.length;return!!O&&zs(R,V,0)>-1}function Fs(R,V,O){for(var Z=-1,Y=R==null?0:R.length;++Z<Y;)if(O(V,R[Z]))return!0;return!1}function ur(R,V){for(var O=-1,Z=R==null?0:R.length,Y=Array(Z);++O<Z;)Y[O]=V(R[O],O,R);return Y}function ha(R,V){for(var O=-1,Z=V.length,Y=R.length;++O<Z;)R[Y+O]=V[O];return R}function $s(R,V,O,Z){var Y=-1,ee=R==null?0:R.length;for(Z&&ee&&(O=R[++Y]);++Y<ee;)O=V(O,R[Y],Y,R);return O}function fv(R,V,O,Z){var Y=R==null?0:R.length;for(Z&&Y&&(O=R[--Y]);Y--;)O=V(O,R[Y],Y,R);return O}function va(R,V){for(var O=-1,Z=R==null?0:R.length;++O<Z;)if(V(R[O],O,R))return!0;return!1}var cv=hu("length");function hv(R){return R.split("")}function zf(R){return R.match(Rb)||[]}function Hf(R,V,O){var Z;return O(R,function(Y,ee,ae){if(V(Y,ee,ae))return Z=ee,!1}),Z}function fu(R,V,O,Z){for(var Y=R.length,ee=O+(Z?1:-1);Z?ee--:++ee<Y;)if(V(R[ee],ee,R))return ee;return-1}function zs(R,V,O){return V===V?no(R,V,O):fu(R,cu,O)}function vv(R,V,O,Z){for(var Y=O-1,ee=R.length;++Y<ee;)if(Z(R[Y],V))return Y;return-1}function cu(R){return R!==R}function jg(R,V){var O=R==null?0:R.length;return O?dv(R,V)/O:ke}function hu(R){return function(V){return V==null?r:V[R]}}function vu(R){return function(V){return R==null?r:R[V]}}function Zg(R,V,O,Z,Y){return Y(R,function(ee,ae,Q){O=Z?(Z=!1,ee):V(O,ee,ae,Q)}),O}function Jg(R,V){var O=R.length;for(R.sort(V);O--;)R[O]=R[O].value;return R}function dv(R,V){for(var O,Z=-1,Y=R.length;++Z<Y;){var ee=V(R[Z]);ee!==r&&(O=O===r?ee:O+ee)}return O}function Vf(R,V){for(var O=-1,Z=Array(R);++O<R;)Z[O]=V(O);return Z}function Qg(R,V){return ur(V,function(O){return[O,R[O]]})}function em(R){return R&&R.slice(0,T(R)+1).replace(Er,"")}function wn(R){return function(V){return R(V)}}function du(R,V){return ur(V,function(O){return R[O]})}function Hs(R,V){return R.has(V)}function pv(R,V){for(var O=-1,Z=R.length;++O<Z&&zs(V,R[O],0)>-1;);return O}function tm(R,V){for(var O=R.length;O--&&zs(V,R[O],0)>-1;);return O}function Hb(R,V){for(var O=R.length,Z=0;O--;)R[O]===V&&++Z;return Z}var Vb=vu(Nb),Gf=vu(au);function da(R){return"\\"+$b[R]}function Ar(R,V){return R==null?r:R[V]}function pa(R){return av.test(R)}function Zn(R){return Yg.test(R)}function Gb(R){for(var V,O=[];!(V=R.next()).done;)O.push(V.value);return O}function pu(R){var V=-1,O=Array(R.size);return R.forEach(function(Z,Y){O[++V]=[Y,Z]}),O}function gv(R,V){return function(O){return R(V(O))}}function xn(R,V){for(var O=-1,Z=R.length,Y=0,ee=[];++O<Z;){var ae=R[O];(ae===V||ae===c)&&(R[O]=c,ee[Y++]=O)}return ee}function Vs(R){var V=-1,O=Array(R.size);return R.forEach(function(Z){O[++V]=Z}),O}function Gs(R){var V=-1,O=Array(R.size);return R.forEach(function(Z){O[++V]=[Z,Z]}),O}function no(R,V,O){for(var Z=O-1,Y=R.length;++Z<Y;)if(R[Z]===V)return Z;return-1}function rm(R,V,O){for(var Z=O+1;Z--;)if(R[Z]===V)return Z;return Z}function m(R){return pa(R)?D(R):cv(R)}function x(R){return pa(R)?B(R):hv(R)}function T(R){for(var V=R.length;V--&&Pb.test(R.charAt(V)););return V}var M=vu(Fb);function D(R){for(var V=iv.lastIndex=0;iv.test(R);)++V;return V}function B(R){return R.match(iv)||[]}function U(R){return R.match(Hi)||[]}var j=function R(V){V=V==null?jr:re.defaults(jr.Object(),V,re.pick(jr,ov));var O=V.Array,Z=V.Date,Y=V.Error,ee=V.Function,ae=V.Math,Q=V.Object,he=V.RegExp,_e=V.String,ge=V.TypeError,Ce=O.prototype,Ne=ee.prototype,Ve=Q.prototype,Re=V["__core-js_shared__"],ze=Ne.toString,Le=Ve.hasOwnProperty,Ge=0,Je=function(){var f=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),_t=Ve.toString,Lt=ze.call(Q),Et=jr._,Pn=he("^"+ze.call(Le).replace(Ls,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=Nf?V.Buffer:r,xr=V.Symbol,Br=V.Uint8Array,gu=yt?yt.allocUnsafe:r,Gr=gv(Q.getPrototypeOf,Q),io=Q.create,Wf=Ve.propertyIsEnumerable,nm=Ce.splice,nE=xr?xr.isConcatSpreadable:r,mv=xr?xr.iterator:r,mu=xr?xr.toStringTag:r,im=function(){try{var f=xu(Q,"defineProperty");return f({},"",{}),f}catch{}}(),nK=V.clearTimeout!==jr.clearTimeout&&V.clearTimeout,iK=Z&&Z.now!==jr.Date.now&&Z.now,aK=V.setTimeout!==jr.setTimeout&&V.setTimeout,am=ae.ceil,om=ae.floor,Wb=Q.getOwnPropertySymbols,oK=yt?yt.isBuffer:r,iE=V.isFinite,sK=Ce.join,lK=gv(Q.keys,Q),Zr=ae.max,Sn=ae.min,uK=Z.now,fK=V.parseInt,aE=ae.random,cK=Ce.reverse,Ub=xu(V,"DataView"),yv=xu(V,"Map"),qb=xu(V,"Promise"),Uf=xu(V,"Set"),_v=xu(V,"WeakMap"),bv=xu(Q,"create"),sm=_v&&new _v,qf={},hK=Su(Ub),vK=Su(yv),dK=Su(qb),pK=Su(Uf),gK=Su(_v),lm=xr?xr.prototype:r,wv=lm?lm.valueOf:r,oE=lm?lm.toString:r;function N(f){if(Pr(f)&&!Ct(f)&&!(f instanceof Ht)){if(f instanceof Vi)return f;if(Le.call(f,"__wrapped__"))return sP(f)}return new Vi(f)}var Kf=function(){function f(){}return function(v){if(!Mr(v))return{};if(io)return io(v);f.prototype=v;var _=new f;return f.prototype=r,_}}();function um(){}function Vi(f,v){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=r}N.templateSettings={escape:Yh,evaluate:Eb,interpolate:Fg,variable:"",imports:{_:N}},N.prototype=um.prototype,N.prototype.constructor=N,Vi.prototype=Kf(um.prototype),Vi.prototype.constructor=Vi;function Ht(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ce,this.__views__=[]}function mK(){var f=new Ht(this.__wrapped__);return f.__actions__=Jn(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Jn(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Jn(this.__views__),f}function yK(){if(this.__filtered__){var f=new Ht(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function _K(){var f=this.__wrapped__.value(),v=this.__dir__,_=Ct(f),C=v<0,E=_?f.length:0,H=L7(0,E,this.__views__),X=H.start,te=H.end,oe=te-X,Ie=C?te:X-1,De=this.__iteratees__,Ee=De.length,qe=0,at=Sn(oe,this.__takeCount__);if(!_||!C&&E==oe&&at==oe)return kE(f,this.__actions__);var pt=[];e:for(;oe--&&qe<at;){Ie+=v;for(var Pt=-1,gt=f[Ie];++Pt<Ee;){var $t=De[Pt],Gt=$t.iteratee,_i=$t.type,Bn=Gt(gt);if(_i==ve)gt=Bn;else if(!Bn){if(_i==ie)continue e;break e}}pt[qe++]=gt}return pt}Ht.prototype=Kf(um.prototype),Ht.prototype.constructor=Ht;function yu(f){var v=-1,_=f==null?0:f.length;for(this.clear();++v<_;){var C=f[v];this.set(C[0],C[1])}}function bK(){this.__data__=bv?bv(null):{},this.size=0}function wK(f){var v=this.has(f)&&delete this.__data__[f];return this.size-=v?1:0,v}function xK(f){var v=this.__data__;if(bv){var _=v[f];return _===l?r:_}return Le.call(v,f)?v[f]:r}function SK(f){var v=this.__data__;return bv?v[f]!==r:Le.call(v,f)}function TK(f,v){var _=this.__data__;return this.size+=this.has(f)?0:1,_[f]=bv&&v===r?l:v,this}yu.prototype.clear=bK,yu.prototype.delete=wK,yu.prototype.get=xK,yu.prototype.has=SK,yu.prototype.set=TK;function Po(f){var v=-1,_=f==null?0:f.length;for(this.clear();++v<_;){var C=f[v];this.set(C[0],C[1])}}function CK(){this.__data__=[],this.size=0}function AK(f){var v=this.__data__,_=fm(v,f);if(_<0)return!1;var C=v.length-1;return _==C?v.pop():nm.call(v,_,1),--this.size,!0}function MK(f){var v=this.__data__,_=fm(v,f);return _<0?r:v[_][1]}function IK(f){return fm(this.__data__,f)>-1}function DK(f,v){var _=this.__data__,C=fm(_,f);return C<0?(++this.size,_.push([f,v])):_[C][1]=v,this}Po.prototype.clear=CK,Po.prototype.delete=AK,Po.prototype.get=MK,Po.prototype.has=IK,Po.prototype.set=DK;function Ro(f){var v=-1,_=f==null?0:f.length;for(this.clear();++v<_;){var C=f[v];this.set(C[0],C[1])}}function kK(){this.size=0,this.__data__={hash:new yu,map:new(yv||Po),string:new yu}}function LK(f){var v=xm(this,f).delete(f);return this.size-=v?1:0,v}function EK(f){return xm(this,f).get(f)}function PK(f){return xm(this,f).has(f)}function RK(f,v){var _=xm(this,f),C=_.size;return _.set(f,v),this.size+=_.size==C?0:1,this}Ro.prototype.clear=kK,Ro.prototype.delete=LK,Ro.prototype.get=EK,Ro.prototype.has=PK,Ro.prototype.set=RK;function _u(f){var v=-1,_=f==null?0:f.length;for(this.__data__=new Ro;++v<_;)this.add(f[v])}function OK(f){return this.__data__.set(f,l),this}function BK(f){return this.__data__.has(f)}_u.prototype.add=_u.prototype.push=OK,_u.prototype.has=BK;function ga(f){var v=this.__data__=new Po(f);this.size=v.size}function NK(){this.__data__=new Po,this.size=0}function FK(f){var v=this.__data__,_=v.delete(f);return this.size=v.size,_}function $K(f){return this.__data__.get(f)}function zK(f){return this.__data__.has(f)}function HK(f,v){var _=this.__data__;if(_ instanceof Po){var C=_.__data__;if(!yv||C.length<i-1)return C.push([f,v]),this.size=++_.size,this;_=this.__data__=new Ro(C)}return _.set(f,v),this.size=_.size,this}ga.prototype.clear=NK,ga.prototype.delete=FK,ga.prototype.get=$K,ga.prototype.has=zK,ga.prototype.set=HK;function sE(f,v){var _=Ct(f),C=!_&&Tu(f),E=!_&&!C&&Ys(f),H=!_&&!C&&!E&&Zf(f),X=_||C||E||H,te=X?Vf(f.length,_e):[],oe=te.length;for(var Ie in f)(v||Le.call(f,Ie))&&!(X&&(Ie=="length"||E&&(Ie=="offset"||Ie=="parent")||H&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||Fo(Ie,oe)))&&te.push(Ie);return te}function lE(f){var v=f.length;return v?f[nw(0,v-1)]:r}function VK(f,v){return Sm(Jn(f),bu(v,0,f.length))}function GK(f){return Sm(Jn(f))}function Kb(f,v,_){(_!==r&&!ma(f[v],_)||_===r&&!(v in f))&&Oo(f,v,_)}function xv(f,v,_){var C=f[v];(!(Le.call(f,v)&&ma(C,_))||_===r&&!(v in f))&&Oo(f,v,_)}function fm(f,v){for(var _=f.length;_--;)if(ma(f[_][0],v))return _;return-1}function WK(f,v,_,C){return Ws(f,function(E,H,X){v(C,E,_(E),X)}),C}function uE(f,v){return f&&oo(v,nn(v),f)}function UK(f,v){return f&&oo(v,ei(v),f)}function Oo(f,v,_){v=="__proto__"&&im?im(f,v,{configurable:!0,enumerable:!0,value:_,writable:!0}):f[v]=_}function Yb(f,v){for(var _=-1,C=v.length,E=O(C),H=f==null;++_<C;)E[_]=H?r:Iw(f,v[_]);return E}function bu(f,v,_){return f===f&&(_!==r&&(f=f<=_?f:_),v!==r&&(f=f>=v?f:v)),f}function Gi(f,v,_,C,E,H){var X,te=v&h,oe=v&p,Ie=v&d;if(_&&(X=E?_(f,C,E,H):_(f)),X!==r)return X;if(!Mr(f))return f;var De=Ct(f);if(De){if(X=P7(f),!te)return Jn(f,X)}else{var Ee=Tn(f),qe=Ee==$||Ee==J;if(Ys(f))return PE(f,te);if(Ee==we||Ee==Ae||qe&&!E){if(X=oe||qe?{}:JE(f),!te)return oe?x7(f,UK(X,f)):w7(f,uE(X,f))}else{if(!ir[Ee])return E?f:{};X=R7(f,Ee,te)}}H||(H=new ga);var at=H.get(f);if(at)return at;H.set(f,X),MP(f)?f.forEach(function(gt){X.add(Gi(gt,v,_,gt,f,H))}):CP(f)&&f.forEach(function(gt,$t){X.set($t,Gi(gt,v,_,$t,f,H))});var pt=Ie?oe?dw:vw:oe?ei:nn,Pt=De?r:pt(f);return bn(Pt||f,function(gt,$t){Pt&&($t=gt,gt=f[$t]),xv(X,$t,Gi(gt,v,_,$t,f,H))}),X}function qK(f){var v=nn(f);return function(_){return fE(_,f,v)}}function fE(f,v,_){var C=_.length;if(f==null)return!C;for(f=Q(f);C--;){var E=_[C],H=v[E],X=f[E];if(X===r&&!(E in f)||!H(X))return!1}return!0}function cE(f,v,_){if(typeof f!="function")throw new ge(o);return Dv(function(){f.apply(r,_)},v)}function Sv(f,v,_,C){var E=-1,H=uu,X=!0,te=f.length,oe=[],Ie=v.length;if(!te)return oe;_&&(v=ur(v,wn(_))),C?(H=Fs,X=!1):v.length>=i&&(H=Hs,X=!1,v=new _u(v));e:for(;++E<te;){var De=f[E],Ee=_==null?De:_(De);if(De=C||De!==0?De:0,X&&Ee===Ee){for(var qe=Ie;qe--;)if(v[qe]===Ee)continue e;oe.push(De)}else H(v,Ee,C)||oe.push(De)}return oe}var Ws=FE(ao),hE=FE(jb,!0);function KK(f,v){var _=!0;return Ws(f,function(C,E,H){return _=!!v(C,E,H),_}),_}function cm(f,v,_){for(var C=-1,E=f.length;++C<E;){var H=f[C],X=v(H);if(X!=null&&(te===r?X===X&&!yi(X):_(X,te)))var te=X,oe=H}return oe}function YK(f,v,_,C){var E=f.length;for(_=It(_),_<0&&(_=-_>E?0:E+_),C=C===r||C>E?E:It(C),C<0&&(C+=E),C=_>C?0:DP(C);_<C;)f[_++]=v;return f}function vE(f,v){var _=[];return Ws(f,function(C,E,H){v(C,E,H)&&_.push(C)}),_}function hn(f,v,_,C,E){var H=-1,X=f.length;for(_||(_=B7),E||(E=[]);++H<X;){var te=f[H];v>0&&_(te)?v>1?hn(te,v-1,_,C,E):ha(E,te):C||(E[E.length]=te)}return E}var Xb=$E(),dE=$E(!0);function ao(f,v){return f&&Xb(f,v,nn)}function jb(f,v){return f&&dE(f,v,nn)}function hm(f,v){return jn(v,function(_){return $o(f[_])})}function wu(f,v){v=qs(v,f);for(var _=0,C=v.length;f!=null&&_<C;)f=f[so(v[_++])];return _&&_==C?f:r}function pE(f,v,_){var C=v(f);return Ct(f)?C:ha(C,_(f))}function Rn(f){return f==null?f===r?nt:xe:mu&&mu in Q(f)?k7(f):G7(f)}function Zb(f,v){return f>v}function XK(f,v){return f!=null&&Le.call(f,v)}function jK(f,v){return f!=null&&v in Q(f)}function ZK(f,v,_){return f>=Sn(v,_)&&f<Zr(v,_)}function Jb(f,v,_){for(var C=_?Fs:uu,E=f[0].length,H=f.length,X=H,te=O(H),oe=1/0,Ie=[];X--;){var De=f[X];X&&v&&(De=ur(De,wn(v))),oe=Sn(De.length,oe),te[X]=!_&&(v||E>=120&&De.length>=120)?new _u(X&&De):r}De=f[0];var Ee=-1,qe=te[0];e:for(;++Ee<E&&Ie.length<oe;){var at=De[Ee],pt=v?v(at):at;if(at=_||at!==0?at:0,!(qe?Hs(qe,pt):C(Ie,pt,_))){for(X=H;--X;){var Pt=te[X];if(!(Pt?Hs(Pt,pt):C(f[X],pt,_)))continue e}qe&&qe.push(pt),Ie.push(at)}}return Ie}function JK(f,v,_,C){return ao(f,function(E,H,X){v(C,_(E),H,X)}),C}function Tv(f,v,_){v=qs(v,f),f=rP(f,v);var C=f==null?f:f[so(Ui(v))];return C==null?r:cn(C,f,_)}function gE(f){return Pr(f)&&Rn(f)==Ae}function QK(f){return Pr(f)&&Rn(f)==Mt}function e7(f){return Pr(f)&&Rn(f)==$e}function Cv(f,v,_,C,E){return f===v?!0:f==null||v==null||!Pr(f)&&!Pr(v)?f!==f&&v!==v:t7(f,v,_,C,Cv,E)}function t7(f,v,_,C,E,H){var X=Ct(f),te=Ct(v),oe=X?Oe:Tn(f),Ie=te?Oe:Tn(v);oe=oe==Ae?we:oe,Ie=Ie==Ae?we:Ie;var De=oe==we,Ee=Ie==we,qe=oe==Ie;if(qe&&Ys(f)){if(!Ys(v))return!1;X=!0,De=!1}if(qe&&!De)return H||(H=new ga),X||Zf(f)?XE(f,v,_,C,E,H):I7(f,v,oe,_,C,E,H);if(!(_&g)){var at=De&&Le.call(f,"__wrapped__"),pt=Ee&&Le.call(v,"__wrapped__");if(at||pt){var Pt=at?f.value():f,gt=pt?v.value():v;return H||(H=new ga),E(Pt,gt,_,C,H)}}return qe?(H||(H=new ga),D7(f,v,_,C,E,H)):!1}function r7(f){return Pr(f)&&Tn(f)==se}function Qb(f,v,_,C){var E=_.length,H=E,X=!C;if(f==null)return!H;for(f=Q(f);E--;){var te=_[E];if(X&&te[2]?te[1]!==f[te[0]]:!(te[0]in f))return!1}for(;++E<H;){te=_[E];var oe=te[0],Ie=f[oe],De=te[1];if(X&&te[2]){if(Ie===r&&!(oe in f))return!1}else{var Ee=new ga;if(C)var qe=C(Ie,De,oe,f,v,Ee);if(!(qe===r?Cv(De,Ie,g|y,C,Ee):qe))return!1}}return!0}function mE(f){if(!Mr(f)||F7(f))return!1;var v=$o(f)?Pn:$g;return v.test(Su(f))}function n7(f){return Pr(f)&&Rn(f)==Se}function i7(f){return Pr(f)&&Tn(f)==pe}function a7(f){return Pr(f)&&Dm(f.length)&&!!nr[Rn(f)]}function yE(f){return typeof f=="function"?f:f==null?ti:typeof f=="object"?Ct(f)?wE(f[0],f[1]):bE(f):zP(f)}function ew(f){if(!Iv(f))return lK(f);var v=[];for(var _ in Q(f))Le.call(f,_)&&_!="constructor"&&v.push(_);return v}function o7(f){if(!Mr(f))return V7(f);var v=Iv(f),_=[];for(var C in f)C=="constructor"&&(v||!Le.call(f,C))||_.push(C);return _}function tw(f,v){return f<v}function _E(f,v){var _=-1,C=Qn(f)?O(f.length):[];return Ws(f,function(E,H,X){C[++_]=v(E,H,X)}),C}function bE(f){var v=gw(f);return v.length==1&&v[0][2]?eP(v[0][0],v[0][1]):function(_){return _===f||Qb(_,f,v)}}function wE(f,v){return yw(f)&&QE(v)?eP(so(f),v):function(_){var C=Iw(_,f);return C===r&&C===v?Dw(_,f):Cv(v,C,g|y)}}function vm(f,v,_,C,E){f!==v&&Xb(v,function(H,X){if(E||(E=new ga),Mr(H))s7(f,v,X,_,vm,C,E);else{var te=C?C(bw(f,X),H,X+"",f,v,E):r;te===r&&(te=H),Kb(f,X,te)}},ei)}function s7(f,v,_,C,E,H,X){var te=bw(f,_),oe=bw(v,_),Ie=X.get(oe);if(Ie){Kb(f,_,Ie);return}var De=H?H(te,oe,_+"",f,v,X):r,Ee=De===r;if(Ee){var qe=Ct(oe),at=!qe&&Ys(oe),pt=!qe&&!at&&Zf(oe);De=oe,qe||at||pt?Ct(te)?De=te:Nr(te)?De=Jn(te):at?(Ee=!1,De=PE(oe,!0)):pt?(Ee=!1,De=RE(oe,!0)):De=[]:kv(oe)||Tu(oe)?(De=te,Tu(te)?De=kP(te):(!Mr(te)||$o(te))&&(De=JE(oe))):Ee=!1}Ee&&(X.set(oe,De),E(De,oe,C,H,X),X.delete(oe)),Kb(f,_,De)}function xE(f,v){var _=f.length;if(_)return v+=v<0?_:0,Fo(v,_)?f[v]:r}function SE(f,v,_){v.length?v=ur(v,function(H){return Ct(H)?function(X){return wu(X,H.length===1?H[0]:H)}:H}):v=[ti];var C=-1;v=ur(v,wn(ht()));var E=_E(f,function(H,X,te){var oe=ur(v,function(Ie){return Ie(H)});return{criteria:oe,index:++C,value:H}});return Jg(E,function(H,X){return b7(H,X,_)})}function l7(f,v){return TE(f,v,function(_,C){return Dw(f,C)})}function TE(f,v,_){for(var C=-1,E=v.length,H={};++C<E;){var X=v[C],te=wu(f,X);_(te,X)&&Av(H,qs(X,f),te)}return H}function u7(f){return function(v){return wu(v,f)}}function rw(f,v,_,C){var E=C?vv:zs,H=-1,X=v.length,te=f;for(f===v&&(v=Jn(v)),_&&(te=ur(f,wn(_)));++H<X;)for(var oe=0,Ie=v[H],De=_?_(Ie):Ie;(oe=E(te,De,oe,C))>-1;)te!==f&&nm.call(te,oe,1),nm.call(f,oe,1);return f}function CE(f,v){for(var _=f?v.length:0,C=_-1;_--;){var E=v[_];if(_==C||E!==H){var H=E;Fo(E)?nm.call(f,E,1):ow(f,E)}}return f}function nw(f,v){return f+om(aE()*(v-f+1))}function f7(f,v,_,C){for(var E=-1,H=Zr(am((v-f)/(_||1)),0),X=O(H);H--;)X[C?H:++E]=f,f+=_;return X}function iw(f,v){var _="";if(!f||v<1||v>ue)return _;do v%2&&(_+=f),v=om(v/2),v&&(f+=f);while(v);return _}function Bt(f,v){return ww(tP(f,v,ti),f+"")}function c7(f){return lE(Jf(f))}function h7(f,v){var _=Jf(f);return Sm(_,bu(v,0,_.length))}function Av(f,v,_,C){if(!Mr(f))return f;v=qs(v,f);for(var E=-1,H=v.length,X=H-1,te=f;te!=null&&++E<H;){var oe=so(v[E]),Ie=_;if(oe==="__proto__"||oe==="constructor"||oe==="prototype")return f;if(E!=X){var De=te[oe];Ie=C?C(De,oe,te):r,Ie===r&&(Ie=Mr(De)?De:Fo(v[E+1])?[]:{})}xv(te,oe,Ie),te=te[oe]}return f}var AE=sm?function(f,v){return sm.set(f,v),f}:ti,v7=im?function(f,v){return im(f,"toString",{configurable:!0,enumerable:!1,value:Lw(v),writable:!0})}:ti;function d7(f){return Sm(Jf(f))}function Wi(f,v,_){var C=-1,E=f.length;v<0&&(v=-v>E?0:E+v),_=_>E?E:_,_<0&&(_+=E),E=v>_?0:_-v>>>0,v>>>=0;for(var H=O(E);++C<E;)H[C]=f[C+v];return H}function p7(f,v){var _;return Ws(f,function(C,E,H){return _=v(C,E,H),!_}),!!_}function dm(f,v,_){var C=0,E=f==null?C:f.length;if(typeof v=="number"&&v===v&&E<=Pe){for(;C<E;){var H=C+E>>>1,X=f[H];X!==null&&!yi(X)&&(_?X<=v:X<v)?C=H+1:E=H}return E}return aw(f,v,ti,_)}function aw(f,v,_,C){var E=0,H=f==null?0:f.length;if(H===0)return 0;v=_(v);for(var X=v!==v,te=v===null,oe=yi(v),Ie=v===r;E<H;){var De=om((E+H)/2),Ee=_(f[De]),qe=Ee!==r,at=Ee===null,pt=Ee===Ee,Pt=yi(Ee);if(X)var gt=C||pt;else Ie?gt=pt&&(C||qe):te?gt=pt&&qe&&(C||!at):oe?gt=pt&&qe&&!at&&(C||!Pt):at||Pt?gt=!1:gt=C?Ee<=v:Ee<v;gt?E=De+1:H=De}return Sn(H,fe)}function ME(f,v){for(var _=-1,C=f.length,E=0,H=[];++_<C;){var X=f[_],te=v?v(X):X;if(!_||!ma(te,oe)){var oe=te;H[E++]=X===0?0:X}}return H}function IE(f){return typeof f=="number"?f:yi(f)?ke:+f}function mi(f){if(typeof f=="string")return f;if(Ct(f))return ur(f,mi)+"";if(yi(f))return oE?oE.call(f):"";var v=f+"";return v=="0"&&1/f==-be?"-0":v}function Us(f,v,_){var C=-1,E=uu,H=f.length,X=!0,te=[],oe=te;if(_)X=!1,E=Fs;else if(H>=i){var Ie=v?null:A7(f);if(Ie)return Vs(Ie);X=!1,E=Hs,oe=new _u}else oe=v?[]:te;e:for(;++C<H;){var De=f[C],Ee=v?v(De):De;if(De=_||De!==0?De:0,X&&Ee===Ee){for(var qe=oe.length;qe--;)if(oe[qe]===Ee)continue e;v&&oe.push(Ee),te.push(De)}else E(oe,Ee,_)||(oe!==te&&oe.push(Ee),te.push(De))}return te}function ow(f,v){return v=qs(v,f),f=rP(f,v),f==null||delete f[so(Ui(v))]}function DE(f,v,_,C){return Av(f,v,_(wu(f,v)),C)}function pm(f,v,_,C){for(var E=f.length,H=C?E:-1;(C?H--:++H<E)&&v(f[H],H,f););return _?Wi(f,C?0:H,C?H+1:E):Wi(f,C?H+1:0,C?E:H)}function kE(f,v){var _=f;return _ instanceof Ht&&(_=_.value()),$s(v,function(C,E){return E.func.apply(E.thisArg,ha([C],E.args))},_)}function sw(f,v,_){var C=f.length;if(C<2)return C?Us(f[0]):[];for(var E=-1,H=O(C);++E<C;)for(var X=f[E],te=-1;++te<C;)te!=E&&(H[E]=Sv(H[E]||X,f[te],v,_));return Us(hn(H,1),v,_)}function LE(f,v,_){for(var C=-1,E=f.length,H=v.length,X={};++C<E;){var te=C<H?v[C]:r;_(X,f[C],te)}return X}function lw(f){return Nr(f)?f:[]}function uw(f){return typeof f=="function"?f:ti}function qs(f,v){return Ct(f)?f:yw(f,v)?[f]:oP(er(f))}var g7=Bt;function Ks(f,v,_){var C=f.length;return _=_===r?C:_,!v&&_>=C?f:Wi(f,v,_)}var EE=nK||function(f){return jr.clearTimeout(f)};function PE(f,v){if(v)return f.slice();var _=f.length,C=gu?gu(_):new f.constructor(_);return f.copy(C),C}function fw(f){var v=new f.constructor(f.byteLength);return new Br(v).set(new Br(f)),v}function m7(f,v){var _=v?fw(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.byteLength)}function y7(f){var v=new f.constructor(f.source,Jl.exec(f));return v.lastIndex=f.lastIndex,v}function _7(f){return wv?Q(wv.call(f)):{}}function RE(f,v){var _=v?fw(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.length)}function OE(f,v){if(f!==v){var _=f!==r,C=f===null,E=f===f,H=yi(f),X=v!==r,te=v===null,oe=v===v,Ie=yi(v);if(!te&&!Ie&&!H&&f>v||H&&X&&oe&&!te&&!Ie||C&&X&&oe||!_&&oe||!E)return 1;if(!C&&!H&&!Ie&&f<v||Ie&&_&&E&&!C&&!H||te&&_&&E||!X&&E||!oe)return-1}return 0}function b7(f,v,_){for(var C=-1,E=f.criteria,H=v.criteria,X=E.length,te=_.length;++C<X;){var oe=OE(E[C],H[C]);if(oe){if(C>=te)return oe;var Ie=_[C];return oe*(Ie=="desc"?-1:1)}}return f.index-v.index}function BE(f,v,_,C){for(var E=-1,H=f.length,X=_.length,te=-1,oe=v.length,Ie=Zr(H-X,0),De=O(oe+Ie),Ee=!C;++te<oe;)De[te]=v[te];for(;++E<X;)(Ee||E<H)&&(De[_[E]]=f[E]);for(;Ie--;)De[te++]=f[E++];return De}function NE(f,v,_,C){for(var E=-1,H=f.length,X=-1,te=_.length,oe=-1,Ie=v.length,De=Zr(H-te,0),Ee=O(De+Ie),qe=!C;++E<De;)Ee[E]=f[E];for(var at=E;++oe<Ie;)Ee[at+oe]=v[oe];for(;++X<te;)(qe||E<H)&&(Ee[at+_[X]]=f[E++]);return Ee}function Jn(f,v){var _=-1,C=f.length;for(v||(v=O(C));++_<C;)v[_]=f[_];return v}function oo(f,v,_,C){var E=!_;_||(_={});for(var H=-1,X=v.length;++H<X;){var te=v[H],oe=C?C(_[te],f[te],te,_,f):r;oe===r&&(oe=f[te]),E?Oo(_,te,oe):xv(_,te,oe)}return _}function w7(f,v){return oo(f,mw(f),v)}function x7(f,v){return oo(f,jE(f),v)}function gm(f,v){return function(_,C){var E=Ct(_)?uv:WK,H=v?v():{};return E(_,f,ht(C,2),H)}}function Yf(f){return Bt(function(v,_){var C=-1,E=_.length,H=E>1?_[E-1]:r,X=E>2?_[2]:r;for(H=f.length>3&&typeof H=="function"?(E--,H):r,X&&On(_[0],_[1],X)&&(H=E<3?r:H,E=1),v=Q(v);++C<E;){var te=_[C];te&&f(v,te,C,H)}return v})}function FE(f,v){return function(_,C){if(_==null)return _;if(!Qn(_))return f(_,C);for(var E=_.length,H=v?E:-1,X=Q(_);(v?H--:++H<E)&&C(X[H],H,X)!==!1;);return _}}function $E(f){return function(v,_,C){for(var E=-1,H=Q(v),X=C(v),te=X.length;te--;){var oe=X[f?te:++E];if(_(H[oe],oe,H)===!1)break}return v}}function S7(f,v,_){var C=v&w,E=Mv(f);function H(){var X=this&&this!==jr&&this instanceof H?E:f;return X.apply(C?_:this,arguments)}return H}function zE(f){return function(v){v=er(v);var _=pa(v)?x(v):r,C=_?_[0]:v.charAt(0),E=_?Ks(_,1).join(""):v.slice(1);return C[f]()+E}}function Xf(f){return function(v){return $s(FP(NP(v).replace(nv,"")),f,"")}}function Mv(f){return function(){var v=arguments;switch(v.length){case 0:return new f;case 1:return new f(v[0]);case 2:return new f(v[0],v[1]);case 3:return new f(v[0],v[1],v[2]);case 4:return new f(v[0],v[1],v[2],v[3]);case 5:return new f(v[0],v[1],v[2],v[3],v[4]);case 6:return new f(v[0],v[1],v[2],v[3],v[4],v[5]);case 7:return new f(v[0],v[1],v[2],v[3],v[4],v[5],v[6])}var _=Kf(f.prototype),C=f.apply(_,v);return Mr(C)?C:_}}function T7(f,v,_){var C=Mv(f);function E(){for(var H=arguments.length,X=O(H),te=H,oe=jf(E);te--;)X[te]=arguments[te];var Ie=H<3&&X[0]!==oe&&X[H-1]!==oe?[]:xn(X,oe);if(H-=Ie.length,H<_)return UE(f,v,mm,E.placeholder,r,X,Ie,r,r,_-H);var De=this&&this!==jr&&this instanceof E?C:f;return cn(De,this,X)}return E}function HE(f){return function(v,_,C){var E=Q(v);if(!Qn(v)){var H=ht(_,3);v=nn(v),_=function(te){return H(E[te],te,E)}}var X=f(v,_,C);return X>-1?E[H?v[X]:X]:r}}function VE(f){return No(function(v){var _=v.length,C=_,E=Vi.prototype.thru;for(f&&v.reverse();C--;){var H=v[C];if(typeof H!="function")throw new ge(o);if(E&&!X&&wm(H)=="wrapper")var X=new Vi([],!0)}for(C=X?C:_;++C<_;){H=v[C];var te=wm(H),oe=te=="wrapper"?pw(H):r;oe&&_w(oe[0])&&oe[1]==(P|A|L|z)&&!oe[4].length&&oe[9]==1?X=X[wm(oe[0])].apply(X,oe[3]):X=H.length==1&&_w(H)?X[te]():X.thru(H)}return function(){var Ie=arguments,De=Ie[0];if(X&&Ie.length==1&&Ct(De))return X.plant(De).value();for(var Ee=0,qe=_?v[Ee].apply(this,Ie):De;++Ee<_;)qe=v[Ee].call(this,qe);return qe}})}function mm(f,v,_,C,E,H,X,te,oe,Ie){var De=v&P,Ee=v&w,qe=v&b,at=v&(A|I),pt=v&F,Pt=qe?r:Mv(f);function gt(){for(var $t=arguments.length,Gt=O($t),_i=$t;_i--;)Gt[_i]=arguments[_i];if(at)var Bn=jf(gt),bi=Hb(Gt,Bn);if(C&&(Gt=BE(Gt,C,E,at)),H&&(Gt=NE(Gt,H,X,at)),$t-=bi,at&&$t<Ie){var Fr=xn(Gt,Bn);return UE(f,v,mm,gt.placeholder,_,Gt,Fr,te,oe,Ie-$t)}var ya=Ee?_:this,Ho=qe?ya[f]:f;return $t=Gt.length,te?Gt=W7(Gt,te):pt&&$t>1&&Gt.reverse(),De&&oe<$t&&(Gt.length=oe),this&&this!==jr&&this instanceof gt&&(Ho=Pt||Mv(Ho)),Ho.apply(ya,Gt)}return gt}function GE(f,v){return function(_,C){return JK(_,f,v(C),{})}}function ym(f,v){return function(_,C){var E;if(_===r&&C===r)return v;if(_!==r&&(E=_),C!==r){if(E===r)return C;typeof _=="string"||typeof C=="string"?(_=mi(_),C=mi(C)):(_=IE(_),C=IE(C)),E=f(_,C)}return E}}function cw(f){return No(function(v){return v=ur(v,wn(ht())),Bt(function(_){var C=this;return f(v,function(E){return cn(E,C,_)})})})}function _m(f,v){v=v===r?" ":mi(v);var _=v.length;if(_<2)return _?iw(v,f):v;var C=iw(v,am(f/m(v)));return pa(v)?Ks(x(C),0,f).join(""):C.slice(0,f)}function C7(f,v,_,C){var E=v&w,H=Mv(f);function X(){for(var te=-1,oe=arguments.length,Ie=-1,De=C.length,Ee=O(De+oe),qe=this&&this!==jr&&this instanceof X?H:f;++Ie<De;)Ee[Ie]=C[Ie];for(;oe--;)Ee[Ie++]=arguments[++te];return cn(qe,E?_:this,Ee)}return X}function WE(f){return function(v,_,C){return C&&typeof C!="number"&&On(v,_,C)&&(_=C=r),v=zo(v),_===r?(_=v,v=0):_=zo(_),C=C===r?v<_?1:-1:zo(C),f7(v,_,C,f)}}function bm(f){return function(v,_){return typeof v=="string"&&typeof _=="string"||(v=qi(v),_=qi(_)),f(v,_)}}function UE(f,v,_,C,E,H,X,te,oe,Ie){var De=v&A,Ee=De?X:r,qe=De?r:X,at=De?H:r,pt=De?r:H;v|=De?L:k,v&=~(De?k:L),v&S||(v&=-4);var Pt=[f,v,E,at,Ee,pt,qe,te,oe,Ie],gt=_.apply(r,Pt);return _w(f)&&nP(gt,Pt),gt.placeholder=C,iP(gt,f,v)}function hw(f){var v=ae[f];return function(_,C){if(_=qi(_),C=C==null?0:Sn(It(C),292),C&&iE(_)){var E=(er(_)+"e").split("e"),H=v(E[0]+"e"+(+E[1]+C));return E=(er(H)+"e").split("e"),+(E[0]+"e"+(+E[1]-C))}return v(_)}}var A7=Uf&&1/Vs(new Uf([,-0]))[1]==be?function(f){return new Uf(f)}:Rw;function qE(f){return function(v){var _=Tn(v);return _==se?pu(v):_==pe?Gs(v):Qg(v,f(v))}}function Bo(f,v,_,C,E,H,X,te){var oe=v&b;if(!oe&&typeof f!="function")throw new ge(o);var Ie=C?C.length:0;if(Ie||(v&=-97,C=E=r),X=X===r?X:Zr(It(X),0),te=te===r?te:It(te),Ie-=E?E.length:0,v&k){var De=C,Ee=E;C=E=r}var qe=oe?r:pw(f),at=[f,v,_,C,E,De,Ee,H,X,te];if(qe&&H7(at,qe),f=at[0],v=at[1],_=at[2],C=at[3],E=at[4],te=at[9]=at[9]===r?oe?0:f.length:Zr(at[9]-Ie,0),!te&&v&(A|I)&&(v&=-25),!v||v==w)var pt=S7(f,v,_);else v==A||v==I?pt=T7(f,v,te):(v==L||v==(w|L))&&!E.length?pt=C7(f,v,_,C):pt=mm.apply(r,at);var Pt=qe?AE:nP;return iP(Pt(pt,at),f,v)}function KE(f,v,_,C){return f===r||ma(f,Ve[_])&&!Le.call(C,_)?v:f}function YE(f,v,_,C,E,H){return Mr(f)&&Mr(v)&&(H.set(v,f),vm(f,v,r,YE,H),H.delete(v)),f}function M7(f){return kv(f)?r:f}function XE(f,v,_,C,E,H){var X=_&g,te=f.length,oe=v.length;if(te!=oe&&!(X&&oe>te))return!1;var Ie=H.get(f),De=H.get(v);if(Ie&&De)return Ie==v&&De==f;var Ee=-1,qe=!0,at=_&y?new _u:r;for(H.set(f,v),H.set(v,f);++Ee<te;){var pt=f[Ee],Pt=v[Ee];if(C)var gt=X?C(Pt,pt,Ee,v,f,H):C(pt,Pt,Ee,f,v,H);if(gt!==r){if(gt)continue;qe=!1;break}if(at){if(!va(v,function($t,Gt){if(!Hs(at,Gt)&&(pt===$t||E(pt,$t,_,C,H)))return at.push(Gt)})){qe=!1;break}}else if(!(pt===Pt||E(pt,Pt,_,C,H))){qe=!1;break}}return H.delete(f),H.delete(v),qe}function I7(f,v,_,C,E,H,X){switch(_){case Rt:if(f.byteLength!=v.byteLength||f.byteOffset!=v.byteOffset)return!1;f=f.buffer,v=v.buffer;case Mt:return!(f.byteLength!=v.byteLength||!H(new Br(f),new Br(v)));case dt:case $e:case Te:return ma(+f,+v);case rt:return f.name==v.name&&f.message==v.message;case Se:case Ze:return f==v+"";case se:var te=pu;case pe:var oe=C&g;if(te||(te=Vs),f.size!=v.size&&!oe)return!1;var Ie=X.get(f);if(Ie)return Ie==v;C|=y,X.set(f,v);var De=XE(te(f),te(v),C,E,H,X);return X.delete(f),De;case He:if(wv)return wv.call(f)==wv.call(v)}return!1}function D7(f,v,_,C,E,H){var X=_&g,te=vw(f),oe=te.length,Ie=vw(v),De=Ie.length;if(oe!=De&&!X)return!1;for(var Ee=oe;Ee--;){var qe=te[Ee];if(!(X?qe in v:Le.call(v,qe)))return!1}var at=H.get(f),pt=H.get(v);if(at&&pt)return at==v&&pt==f;var Pt=!0;H.set(f,v),H.set(v,f);for(var gt=X;++Ee<oe;){qe=te[Ee];var $t=f[qe],Gt=v[qe];if(C)var _i=X?C(Gt,$t,qe,v,f,H):C($t,Gt,qe,f,v,H);if(!(_i===r?$t===Gt||E($t,Gt,_,C,H):_i)){Pt=!1;break}gt||(gt=qe=="constructor")}if(Pt&&!gt){var Bn=f.constructor,bi=v.constructor;Bn!=bi&&"constructor"in f&&"constructor"in v&&!(typeof Bn=="function"&&Bn instanceof Bn&&typeof bi=="function"&&bi instanceof bi)&&(Pt=!1)}return H.delete(f),H.delete(v),Pt}function No(f){return ww(tP(f,r,fP),f+"")}function vw(f){return pE(f,nn,mw)}function dw(f){return pE(f,ei,jE)}var pw=sm?function(f){return sm.get(f)}:Rw;function wm(f){for(var v=f.name+"",_=qf[v],C=Le.call(qf,v)?_.length:0;C--;){var E=_[C],H=E.func;if(H==null||H==f)return E.name}return v}function jf(f){var v=Le.call(N,"placeholder")?N:f;return v.placeholder}function ht(){var f=N.iteratee||Ew;return f=f===Ew?yE:f,arguments.length?f(arguments[0],arguments[1]):f}function xm(f,v){var _=f.__data__;return N7(v)?_[typeof v=="string"?"string":"hash"]:_.map}function gw(f){for(var v=nn(f),_=v.length;_--;){var C=v[_],E=f[C];v[_]=[C,E,QE(E)]}return v}function xu(f,v){var _=Ar(f,v);return mE(_)?_:r}function k7(f){var v=Le.call(f,mu),_=f[mu];try{f[mu]=r;var C=!0}catch{}var E=_t.call(f);return C&&(v?f[mu]=_:delete f[mu]),E}var mw=Wb?function(f){return f==null?[]:(f=Q(f),jn(Wb(f),function(v){return Wf.call(f,v)}))}:Ow,jE=Wb?function(f){for(var v=[];f;)ha(v,mw(f)),f=Gr(f);return v}:Ow,Tn=Rn;(Ub&&Tn(new Ub(new ArrayBuffer(1)))!=Rt||yv&&Tn(new yv)!=se||qb&&Tn(qb.resolve())!=de||Uf&&Tn(new Uf)!=pe||_v&&Tn(new _v)!=Be)&&(Tn=function(f){var v=Rn(f),_=v==we?f.constructor:r,C=_?Su(_):"";if(C)switch(C){case hK:return Rt;case vK:return se;case dK:return de;case pK:return pe;case gK:return Be}return v});function L7(f,v,_){for(var C=-1,E=_.length;++C<E;){var H=_[C],X=H.size;switch(H.type){case"drop":f+=X;break;case"dropRight":v-=X;break;case"take":v=Sn(v,f+X);break;case"takeRight":f=Zr(f,v-X);break}}return{start:f,end:v}}function E7(f){var v=f.match(Cf);return v?v[1].split(Af):[]}function ZE(f,v,_){v=qs(v,f);for(var C=-1,E=v.length,H=!1;++C<E;){var X=so(v[C]);if(!(H=f!=null&&_(f,X)))break;f=f[X]}return H||++C!=E?H:(E=f==null?0:f.length,!!E&&Dm(E)&&Fo(X,E)&&(Ct(f)||Tu(f)))}function P7(f){var v=f.length,_=new f.constructor(v);return v&&typeof f[0]=="string"&&Le.call(f,"index")&&(_.index=f.index,_.input=f.input),_}function JE(f){return typeof f.constructor=="function"&&!Iv(f)?Kf(Gr(f)):{}}function R7(f,v,_){var C=f.constructor;switch(v){case Mt:return fw(f);case dt:case $e:return new C(+f);case Rt:return m7(f,_);case Qt:case wr:case Xr:case Lr:case Yn:case Za:case pr:case Xe:case $i:return RE(f,_);case se:return new C;case Te:case Ze:return new C(f);case Se:return y7(f);case pe:return new C;case He:return _7(f)}}function O7(f,v){var _=v.length;if(!_)return f;var C=_-1;return v[C]=(_>1?"& ":"")+v[C],v=v.join(_>2?", ":" "),f.replace(Tf,`{
|
|
44
|
+
/* [wrapped with `+v+`] */
|
|
45
|
+
`)}function B7(f){return Ct(f)||Tu(f)||!!(nE&&f&&f[nE])}function Fo(f,v){var _=typeof f;return v=v??ue,!!v&&(_=="number"||_!="symbol"&&zg.test(f))&&f>-1&&f%1==0&&f<v}function On(f,v,_){if(!Mr(_))return!1;var C=typeof v;return(C=="number"?Qn(_)&&Fo(v,_.length):C=="string"&&v in _)?ma(_[v],f):!1}function yw(f,v){if(Ct(f))return!1;var _=typeof f;return _=="number"||_=="symbol"||_=="boolean"||f==null||yi(f)?!0:ks.test(f)||!Ds.test(f)||v!=null&&f in Q(v)}function N7(f){var v=typeof f;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?f!=="__proto__":f===null}function _w(f){var v=wm(f),_=N[v];if(typeof _!="function"||!(v in Ht.prototype))return!1;if(f===_)return!0;var C=pw(_);return!!C&&f===C[0]}function F7(f){return!!Je&&Je in f}var $7=Re?$o:Bw;function Iv(f){var v=f&&f.constructor,_=typeof v=="function"&&v.prototype||Ve;return f===_}function QE(f){return f===f&&!Mr(f)}function eP(f,v){return function(_){return _==null?!1:_[f]===v&&(v!==r||f in Q(_))}}function z7(f){var v=Mm(f,function(C){return _.size===u&&_.clear(),C}),_=v.cache;return v}function H7(f,v){var _=f[1],C=v[1],E=_|C,H=E<(w|b|P),X=C==P&&_==A||C==P&&_==z&&f[7].length<=v[8]||C==(P|z)&&v[7].length<=v[8]&&_==A;if(!(H||X))return f;C&w&&(f[2]=v[2],E|=_&w?0:S);var te=v[3];if(te){var oe=f[3];f[3]=oe?BE(oe,te,v[4]):te,f[4]=oe?xn(f[3],c):v[4]}return te=v[5],te&&(oe=f[5],f[5]=oe?NE(oe,te,v[6]):te,f[6]=oe?xn(f[5],c):v[6]),te=v[7],te&&(f[7]=te),C&P&&(f[8]=f[8]==null?v[8]:Sn(f[8],v[8])),f[9]==null&&(f[9]=v[9]),f[0]=v[0],f[1]=E,f}function V7(f){var v=[];if(f!=null)for(var _ in Q(f))v.push(_);return v}function G7(f){return _t.call(f)}function tP(f,v,_){return v=Zr(v===r?f.length-1:v,0),function(){for(var C=arguments,E=-1,H=Zr(C.length-v,0),X=O(H);++E<H;)X[E]=C[v+E];E=-1;for(var te=O(v+1);++E<v;)te[E]=C[E];return te[v]=_(X),cn(f,this,te)}}function rP(f,v){return v.length<2?f:wu(f,Wi(v,0,-1))}function W7(f,v){for(var _=f.length,C=Sn(v.length,_),E=Jn(f);C--;){var H=v[C];f[C]=Fo(H,_)?E[H]:r}return f}function bw(f,v){if(!(v==="constructor"&&typeof f[v]=="function")&&v!="__proto__")return f[v]}var nP=aP(AE),Dv=aK||function(f,v){return jr.setTimeout(f,v)},ww=aP(v7);function iP(f,v,_){var C=v+"";return ww(f,O7(C,U7(E7(C),_)))}function aP(f){var v=0,_=0;return function(){var C=uK(),E=q-(C-_);if(_=C,E>0){if(++v>=K)return arguments[0]}else v=0;return f.apply(r,arguments)}}function Sm(f,v){var _=-1,C=f.length,E=C-1;for(v=v===r?C:v;++_<v;){var H=nw(_,E),X=f[H];f[H]=f[_],f[_]=X}return f.length=v,f}var oP=z7(function(f){var v=[];return f.charCodeAt(0)===46&&v.push(""),f.replace(Xh,function(_,C,E,H){v.push(E?H.replace(Es,"$1"):C||_)}),v});function so(f){if(typeof f=="string"||yi(f))return f;var v=f+"";return v=="0"&&1/f==-be?"-0":v}function Su(f){if(f!=null){try{return ze.call(f)}catch{}try{return f+""}catch{}}return""}function U7(f,v){return bn(Qe,function(_){var C="_."+_[0];v&_[1]&&!uu(f,C)&&f.push(C)}),f.sort()}function sP(f){if(f instanceof Ht)return f.clone();var v=new Vi(f.__wrapped__,f.__chain__);return v.__actions__=Jn(f.__actions__),v.__index__=f.__index__,v.__values__=f.__values__,v}function q7(f,v,_){(_?On(f,v,_):v===r)?v=1:v=Zr(It(v),0);var C=f==null?0:f.length;if(!C||v<1)return[];for(var E=0,H=0,X=O(am(C/v));E<C;)X[H++]=Wi(f,E,E+=v);return X}function K7(f){for(var v=-1,_=f==null?0:f.length,C=0,E=[];++v<_;){var H=f[v];H&&(E[C++]=H)}return E}function Y7(){var f=arguments.length;if(!f)return[];for(var v=O(f-1),_=arguments[0],C=f;C--;)v[C-1]=arguments[C];return ha(Ct(_)?Jn(_):[_],hn(v,1))}var X7=Bt(function(f,v){return Nr(f)?Sv(f,hn(v,1,Nr,!0)):[]}),j7=Bt(function(f,v){var _=Ui(v);return Nr(_)&&(_=r),Nr(f)?Sv(f,hn(v,1,Nr,!0),ht(_,2)):[]}),Z7=Bt(function(f,v){var _=Ui(v);return Nr(_)&&(_=r),Nr(f)?Sv(f,hn(v,1,Nr,!0),r,_):[]});function J7(f,v,_){var C=f==null?0:f.length;return C?(v=_||v===r?1:It(v),Wi(f,v<0?0:v,C)):[]}function Q7(f,v,_){var C=f==null?0:f.length;return C?(v=_||v===r?1:It(v),v=C-v,Wi(f,0,v<0?0:v)):[]}function eY(f,v){return f&&f.length?pm(f,ht(v,3),!0,!0):[]}function tY(f,v){return f&&f.length?pm(f,ht(v,3),!0):[]}function rY(f,v,_,C){var E=f==null?0:f.length;return E?(_&&typeof _!="number"&&On(f,v,_)&&(_=0,C=E),YK(f,v,_,C)):[]}function lP(f,v,_){var C=f==null?0:f.length;if(!C)return-1;var E=_==null?0:It(_);return E<0&&(E=Zr(C+E,0)),fu(f,ht(v,3),E)}function uP(f,v,_){var C=f==null?0:f.length;if(!C)return-1;var E=C-1;return _!==r&&(E=It(_),E=_<0?Zr(C+E,0):Sn(E,C-1)),fu(f,ht(v,3),E,!0)}function fP(f){var v=f==null?0:f.length;return v?hn(f,1):[]}function nY(f){var v=f==null?0:f.length;return v?hn(f,be):[]}function iY(f,v){var _=f==null?0:f.length;return _?(v=v===r?1:It(v),hn(f,v)):[]}function aY(f){for(var v=-1,_=f==null?0:f.length,C={};++v<_;){var E=f[v];C[E[0]]=E[1]}return C}function cP(f){return f&&f.length?f[0]:r}function oY(f,v,_){var C=f==null?0:f.length;if(!C)return-1;var E=_==null?0:It(_);return E<0&&(E=Zr(C+E,0)),zs(f,v,E)}function sY(f){var v=f==null?0:f.length;return v?Wi(f,0,-1):[]}var lY=Bt(function(f){var v=ur(f,lw);return v.length&&v[0]===f[0]?Jb(v):[]}),uY=Bt(function(f){var v=Ui(f),_=ur(f,lw);return v===Ui(_)?v=r:_.pop(),_.length&&_[0]===f[0]?Jb(_,ht(v,2)):[]}),fY=Bt(function(f){var v=Ui(f),_=ur(f,lw);return v=typeof v=="function"?v:r,v&&_.pop(),_.length&&_[0]===f[0]?Jb(_,r,v):[]});function cY(f,v){return f==null?"":sK.call(f,v)}function Ui(f){var v=f==null?0:f.length;return v?f[v-1]:r}function hY(f,v,_){var C=f==null?0:f.length;if(!C)return-1;var E=C;return _!==r&&(E=It(_),E=E<0?Zr(C+E,0):Sn(E,C-1)),v===v?rm(f,v,E):fu(f,cu,E,!0)}function vY(f,v){return f&&f.length?xE(f,It(v)):r}var dY=Bt(hP);function hP(f,v){return f&&f.length&&v&&v.length?rw(f,v):f}function pY(f,v,_){return f&&f.length&&v&&v.length?rw(f,v,ht(_,2)):f}function gY(f,v,_){return f&&f.length&&v&&v.length?rw(f,v,r,_):f}var mY=No(function(f,v){var _=f==null?0:f.length,C=Yb(f,v);return CE(f,ur(v,function(E){return Fo(E,_)?+E:E}).sort(OE)),C});function yY(f,v){var _=[];if(!(f&&f.length))return _;var C=-1,E=[],H=f.length;for(v=ht(v,3);++C<H;){var X=f[C];v(X,C,f)&&(_.push(X),E.push(C))}return CE(f,E),_}function xw(f){return f==null?f:cK.call(f)}function _Y(f,v,_){var C=f==null?0:f.length;return C?(_&&typeof _!="number"&&On(f,v,_)?(v=0,_=C):(v=v==null?0:It(v),_=_===r?C:It(_)),Wi(f,v,_)):[]}function bY(f,v){return dm(f,v)}function wY(f,v,_){return aw(f,v,ht(_,2))}function xY(f,v){var _=f==null?0:f.length;if(_){var C=dm(f,v);if(C<_&&ma(f[C],v))return C}return-1}function SY(f,v){return dm(f,v,!0)}function TY(f,v,_){return aw(f,v,ht(_,2),!0)}function CY(f,v){var _=f==null?0:f.length;if(_){var C=dm(f,v,!0)-1;if(ma(f[C],v))return C}return-1}function AY(f){return f&&f.length?ME(f):[]}function MY(f,v){return f&&f.length?ME(f,ht(v,2)):[]}function IY(f){var v=f==null?0:f.length;return v?Wi(f,1,v):[]}function DY(f,v,_){return f&&f.length?(v=_||v===r?1:It(v),Wi(f,0,v<0?0:v)):[]}function kY(f,v,_){var C=f==null?0:f.length;return C?(v=_||v===r?1:It(v),v=C-v,Wi(f,v<0?0:v,C)):[]}function LY(f,v){return f&&f.length?pm(f,ht(v,3),!1,!0):[]}function EY(f,v){return f&&f.length?pm(f,ht(v,3)):[]}var PY=Bt(function(f){return Us(hn(f,1,Nr,!0))}),RY=Bt(function(f){var v=Ui(f);return Nr(v)&&(v=r),Us(hn(f,1,Nr,!0),ht(v,2))}),OY=Bt(function(f){var v=Ui(f);return v=typeof v=="function"?v:r,Us(hn(f,1,Nr,!0),r,v)});function BY(f){return f&&f.length?Us(f):[]}function NY(f,v){return f&&f.length?Us(f,ht(v,2)):[]}function FY(f,v){return v=typeof v=="function"?v:r,f&&f.length?Us(f,r,v):[]}function Sw(f){if(!(f&&f.length))return[];var v=0;return f=jn(f,function(_){if(Nr(_))return v=Zr(_.length,v),!0}),Vf(v,function(_){return ur(f,hu(_))})}function vP(f,v){if(!(f&&f.length))return[];var _=Sw(f);return v==null?_:ur(_,function(C){return cn(v,r,C)})}var $Y=Bt(function(f,v){return Nr(f)?Sv(f,v):[]}),zY=Bt(function(f){return sw(jn(f,Nr))}),HY=Bt(function(f){var v=Ui(f);return Nr(v)&&(v=r),sw(jn(f,Nr),ht(v,2))}),VY=Bt(function(f){var v=Ui(f);return v=typeof v=="function"?v:r,sw(jn(f,Nr),r,v)}),GY=Bt(Sw);function WY(f,v){return LE(f||[],v||[],xv)}function UY(f,v){return LE(f||[],v||[],Av)}var qY=Bt(function(f){var v=f.length,_=v>1?f[v-1]:r;return _=typeof _=="function"?(f.pop(),_):r,vP(f,_)});function dP(f){var v=N(f);return v.__chain__=!0,v}function KY(f,v){return v(f),f}function Tm(f,v){return v(f)}var YY=No(function(f){var v=f.length,_=v?f[0]:0,C=this.__wrapped__,E=function(H){return Yb(H,f)};return v>1||this.__actions__.length||!(C instanceof Ht)||!Fo(_)?this.thru(E):(C=C.slice(_,+_+(v?1:0)),C.__actions__.push({func:Tm,args:[E],thisArg:r}),new Vi(C,this.__chain__).thru(function(H){return v&&!H.length&&H.push(r),H}))});function XY(){return dP(this)}function jY(){return new Vi(this.value(),this.__chain__)}function ZY(){this.__values__===r&&(this.__values__=IP(this.value()));var f=this.__index__>=this.__values__.length,v=f?r:this.__values__[this.__index__++];return{done:f,value:v}}function JY(){return this}function QY(f){for(var v,_=this;_ instanceof um;){var C=sP(_);C.__index__=0,C.__values__=r,v?E.__wrapped__=C:v=C;var E=C;_=_.__wrapped__}return E.__wrapped__=f,v}function eX(){var f=this.__wrapped__;if(f instanceof Ht){var v=f;return this.__actions__.length&&(v=new Ht(this)),v=v.reverse(),v.__actions__.push({func:Tm,args:[xw],thisArg:r}),new Vi(v,this.__chain__)}return this.thru(xw)}function tX(){return kE(this.__wrapped__,this.__actions__)}var rX=gm(function(f,v,_){Le.call(f,_)?++f[_]:Oo(f,_,1)});function nX(f,v,_){var C=Ct(f)?Ns:KK;return _&&On(f,v,_)&&(v=r),C(f,ht(v,3))}function iX(f,v){var _=Ct(f)?jn:vE;return _(f,ht(v,3))}var aX=HE(lP),oX=HE(uP);function sX(f,v){return hn(Cm(f,v),1)}function lX(f,v){return hn(Cm(f,v),be)}function uX(f,v,_){return _=_===r?1:It(_),hn(Cm(f,v),_)}function pP(f,v){var _=Ct(f)?bn:Ws;return _(f,ht(v,3))}function gP(f,v){var _=Ct(f)?rn:hE;return _(f,ht(v,3))}var fX=gm(function(f,v,_){Le.call(f,_)?f[_].push(v):Oo(f,_,[v])});function cX(f,v,_,C){f=Qn(f)?f:Jf(f),_=_&&!C?It(_):0;var E=f.length;return _<0&&(_=Zr(E+_,0)),km(f)?_<=E&&f.indexOf(v,_)>-1:!!E&&zs(f,v,_)>-1}var hX=Bt(function(f,v,_){var C=-1,E=typeof v=="function",H=Qn(f)?O(f.length):[];return Ws(f,function(X){H[++C]=E?cn(v,X,_):Tv(X,v,_)}),H}),vX=gm(function(f,v,_){Oo(f,_,v)});function Cm(f,v){var _=Ct(f)?ur:_E;return _(f,ht(v,3))}function dX(f,v,_,C){return f==null?[]:(Ct(v)||(v=v==null?[]:[v]),_=C?r:_,Ct(_)||(_=_==null?[]:[_]),SE(f,v,_))}var pX=gm(function(f,v,_){f[_?0:1].push(v)},function(){return[[],[]]});function gX(f,v,_){var C=Ct(f)?$s:Zg,E=arguments.length<3;return C(f,ht(v,4),_,E,Ws)}function mX(f,v,_){var C=Ct(f)?fv:Zg,E=arguments.length<3;return C(f,ht(v,4),_,E,hE)}function yX(f,v){var _=Ct(f)?jn:vE;return _(f,Im(ht(v,3)))}function _X(f){var v=Ct(f)?lE:c7;return v(f)}function bX(f,v,_){(_?On(f,v,_):v===r)?v=1:v=It(v);var C=Ct(f)?VK:h7;return C(f,v)}function wX(f){var v=Ct(f)?GK:d7;return v(f)}function xX(f){if(f==null)return 0;if(Qn(f))return km(f)?m(f):f.length;var v=Tn(f);return v==se||v==pe?f.size:ew(f).length}function SX(f,v,_){var C=Ct(f)?va:p7;return _&&On(f,v,_)&&(v=r),C(f,ht(v,3))}var TX=Bt(function(f,v){if(f==null)return[];var _=v.length;return _>1&&On(f,v[0],v[1])?v=[]:_>2&&On(v[0],v[1],v[2])&&(v=[v[0]]),SE(f,hn(v,1),[])}),Am=iK||function(){return jr.Date.now()};function CX(f,v){if(typeof v!="function")throw new ge(o);return f=It(f),function(){if(--f<1)return v.apply(this,arguments)}}function mP(f,v,_){return v=_?r:v,v=f&&v==null?f.length:v,Bo(f,P,r,r,r,r,v)}function yP(f,v){var _;if(typeof v!="function")throw new ge(o);return f=It(f),function(){return--f>0&&(_=v.apply(this,arguments)),f<=1&&(v=r),_}}var Tw=Bt(function(f,v,_){var C=w;if(_.length){var E=xn(_,jf(Tw));C|=L}return Bo(f,C,v,_,E)}),_P=Bt(function(f,v,_){var C=w|b;if(_.length){var E=xn(_,jf(_P));C|=L}return Bo(v,C,f,_,E)});function bP(f,v,_){v=_?r:v;var C=Bo(f,A,r,r,r,r,r,v);return C.placeholder=bP.placeholder,C}function wP(f,v,_){v=_?r:v;var C=Bo(f,I,r,r,r,r,r,v);return C.placeholder=wP.placeholder,C}function xP(f,v,_){var C,E,H,X,te,oe,Ie=0,De=!1,Ee=!1,qe=!0;if(typeof f!="function")throw new ge(o);v=qi(v)||0,Mr(_)&&(De=!!_.leading,Ee="maxWait"in _,H=Ee?Zr(qi(_.maxWait)||0,v):H,qe="trailing"in _?!!_.trailing:qe);function at(Fr){var ya=C,Ho=E;return C=E=r,Ie=Fr,X=f.apply(Ho,ya),X}function pt(Fr){return Ie=Fr,te=Dv($t,v),De?at(Fr):X}function Pt(Fr){var ya=Fr-oe,Ho=Fr-Ie,HP=v-ya;return Ee?Sn(HP,H-Ho):HP}function gt(Fr){var ya=Fr-oe,Ho=Fr-Ie;return oe===r||ya>=v||ya<0||Ee&&Ho>=H}function $t(){var Fr=Am();if(gt(Fr))return Gt(Fr);te=Dv($t,Pt(Fr))}function Gt(Fr){return te=r,qe&&C?at(Fr):(C=E=r,X)}function _i(){te!==r&&EE(te),Ie=0,C=oe=E=te=r}function Bn(){return te===r?X:Gt(Am())}function bi(){var Fr=Am(),ya=gt(Fr);if(C=arguments,E=this,oe=Fr,ya){if(te===r)return pt(oe);if(Ee)return EE(te),te=Dv($t,v),at(oe)}return te===r&&(te=Dv($t,v)),X}return bi.cancel=_i,bi.flush=Bn,bi}var AX=Bt(function(f,v){return cE(f,1,v)}),MX=Bt(function(f,v,_){return cE(f,qi(v)||0,_)});function IX(f){return Bo(f,F)}function Mm(f,v){if(typeof f!="function"||v!=null&&typeof v!="function")throw new ge(o);var _=function(){var C=arguments,E=v?v.apply(this,C):C[0],H=_.cache;if(H.has(E))return H.get(E);var X=f.apply(this,C);return _.cache=H.set(E,X)||H,X};return _.cache=new(Mm.Cache||Ro),_}Mm.Cache=Ro;function Im(f){if(typeof f!="function")throw new ge(o);return function(){var v=arguments;switch(v.length){case 0:return!f.call(this);case 1:return!f.call(this,v[0]);case 2:return!f.call(this,v[0],v[1]);case 3:return!f.call(this,v[0],v[1],v[2])}return!f.apply(this,v)}}function DX(f){return yP(2,f)}var kX=g7(function(f,v){v=v.length==1&&Ct(v[0])?ur(v[0],wn(ht())):ur(hn(v,1),wn(ht()));var _=v.length;return Bt(function(C){for(var E=-1,H=Sn(C.length,_);++E<H;)C[E]=v[E].call(this,C[E]);return cn(f,this,C)})}),Cw=Bt(function(f,v){var _=xn(v,jf(Cw));return Bo(f,L,r,v,_)}),SP=Bt(function(f,v){var _=xn(v,jf(SP));return Bo(f,k,r,v,_)}),LX=No(function(f,v){return Bo(f,z,r,r,r,v)});function EX(f,v){if(typeof f!="function")throw new ge(o);return v=v===r?v:It(v),Bt(f,v)}function PX(f,v){if(typeof f!="function")throw new ge(o);return v=v==null?0:Zr(It(v),0),Bt(function(_){var C=_[v],E=Ks(_,0,v);return C&&ha(E,C),cn(f,this,E)})}function RX(f,v,_){var C=!0,E=!0;if(typeof f!="function")throw new ge(o);return Mr(_)&&(C="leading"in _?!!_.leading:C,E="trailing"in _?!!_.trailing:E),xP(f,v,{leading:C,maxWait:v,trailing:E})}function OX(f){return mP(f,1)}function BX(f,v){return Cw(uw(v),f)}function NX(){if(!arguments.length)return[];var f=arguments[0];return Ct(f)?f:[f]}function FX(f){return Gi(f,d)}function $X(f,v){return v=typeof v=="function"?v:r,Gi(f,d,v)}function zX(f){return Gi(f,h|d)}function HX(f,v){return v=typeof v=="function"?v:r,Gi(f,h|d,v)}function VX(f,v){return v==null||fE(f,v,nn(v))}function ma(f,v){return f===v||f!==f&&v!==v}var GX=bm(Zb),WX=bm(function(f,v){return f>=v}),Tu=gE(function(){return arguments}())?gE:function(f){return Pr(f)&&Le.call(f,"callee")&&!Wf.call(f,"callee")},Ct=O.isArray,UX=ou?wn(ou):QK;function Qn(f){return f!=null&&Dm(f.length)&&!$o(f)}function Nr(f){return Pr(f)&&Qn(f)}function qX(f){return f===!0||f===!1||Pr(f)&&Rn(f)==dt}var Ys=oK||Bw,KX=su?wn(su):e7;function YX(f){return Pr(f)&&f.nodeType===1&&!kv(f)}function XX(f){if(f==null)return!0;if(Qn(f)&&(Ct(f)||typeof f=="string"||typeof f.splice=="function"||Ys(f)||Zf(f)||Tu(f)))return!f.length;var v=Tn(f);if(v==se||v==pe)return!f.size;if(Iv(f))return!ew(f).length;for(var _ in f)if(Le.call(f,_))return!1;return!0}function jX(f,v){return Cv(f,v)}function ZX(f,v,_){_=typeof _=="function"?_:r;var C=_?_(f,v):r;return C===r?Cv(f,v,r,_):!!C}function Aw(f){if(!Pr(f))return!1;var v=Rn(f);return v==rt||v==Tt||typeof f.message=="string"&&typeof f.name=="string"&&!kv(f)}function JX(f){return typeof f=="number"&&iE(f)}function $o(f){if(!Mr(f))return!1;var v=Rn(f);return v==$||v==J||v==lt||v==le}function TP(f){return typeof f=="number"&&f==It(f)}function Dm(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=ue}function Mr(f){var v=typeof f;return f!=null&&(v=="object"||v=="function")}function Pr(f){return f!=null&&typeof f=="object"}var CP=lv?wn(lv):r7;function QX(f,v){return f===v||Qb(f,v,gw(v))}function ej(f,v,_){return _=typeof _=="function"?_:r,Qb(f,v,gw(v),_)}function tj(f){return AP(f)&&f!=+f}function rj(f){if($7(f))throw new Y(a);return mE(f)}function nj(f){return f===null}function ij(f){return f==null}function AP(f){return typeof f=="number"||Pr(f)&&Rn(f)==Te}function kv(f){if(!Pr(f)||Rn(f)!=we)return!1;var v=Gr(f);if(v===null)return!0;var _=Le.call(v,"constructor")&&v.constructor;return typeof _=="function"&&_ instanceof _&&ze.call(_)==Lt}var Mw=Xg?wn(Xg):n7;function aj(f){return TP(f)&&f>=-ue&&f<=ue}var MP=lu?wn(lu):i7;function km(f){return typeof f=="string"||!Ct(f)&&Pr(f)&&Rn(f)==Ze}function yi(f){return typeof f=="symbol"||Pr(f)&&Rn(f)==He}var Zf=$f?wn($f):a7;function oj(f){return f===r}function sj(f){return Pr(f)&&Tn(f)==Be}function lj(f){return Pr(f)&&Rn(f)==xt}var uj=bm(tw),fj=bm(function(f,v){return f<=v});function IP(f){if(!f)return[];if(Qn(f))return km(f)?x(f):Jn(f);if(mv&&f[mv])return Gb(f[mv]());var v=Tn(f),_=v==se?pu:v==pe?Vs:Jf;return _(f)}function zo(f){if(!f)return f===0?f:0;if(f=qi(f),f===be||f===-be){var v=f<0?-1:1;return v*Me}return f===f?f:0}function It(f){var v=zo(f),_=v%1;return v===v?_?v-_:v:0}function DP(f){return f?bu(It(f),0,ce):0}function qi(f){if(typeof f=="number")return f;if(yi(f))return ke;if(Mr(f)){var v=typeof f.valueOf=="function"?f.valueOf():f;f=Mr(v)?v+"":v}if(typeof f!="string")return f===0?f:+f;f=em(f);var _=eo.test(f);return _||ko.test(f)?Of(f.slice(2),_?2:8):Ob.test(f)?ke:+f}function kP(f){return oo(f,ei(f))}function cj(f){return f?bu(It(f),-ue,ue):f===0?f:0}function er(f){return f==null?"":mi(f)}var hj=Yf(function(f,v){if(Iv(v)||Qn(v)){oo(v,nn(v),f);return}for(var _ in v)Le.call(v,_)&&xv(f,_,v[_])}),LP=Yf(function(f,v){oo(v,ei(v),f)}),Lm=Yf(function(f,v,_,C){oo(v,ei(v),f,C)}),vj=Yf(function(f,v,_,C){oo(v,nn(v),f,C)}),dj=No(Yb);function pj(f,v){var _=Kf(f);return v==null?_:uE(_,v)}var gj=Bt(function(f,v){f=Q(f);var _=-1,C=v.length,E=C>2?v[2]:r;for(E&&On(v[0],v[1],E)&&(C=1);++_<C;)for(var H=v[_],X=ei(H),te=-1,oe=X.length;++te<oe;){var Ie=X[te],De=f[Ie];(De===r||ma(De,Ve[Ie])&&!Le.call(f,Ie))&&(f[Ie]=H[Ie])}return f}),mj=Bt(function(f){return f.push(r,YE),cn(EP,r,f)});function yj(f,v){return Hf(f,ht(v,3),ao)}function _j(f,v){return Hf(f,ht(v,3),jb)}function bj(f,v){return f==null?f:Xb(f,ht(v,3),ei)}function wj(f,v){return f==null?f:dE(f,ht(v,3),ei)}function xj(f,v){return f&&ao(f,ht(v,3))}function Sj(f,v){return f&&jb(f,ht(v,3))}function Tj(f){return f==null?[]:hm(f,nn(f))}function Cj(f){return f==null?[]:hm(f,ei(f))}function Iw(f,v,_){var C=f==null?r:wu(f,v);return C===r?_:C}function Aj(f,v){return f!=null&&ZE(f,v,XK)}function Dw(f,v){return f!=null&&ZE(f,v,jK)}var Mj=GE(function(f,v,_){v!=null&&typeof v.toString!="function"&&(v=_t.call(v)),f[v]=_},Lw(ti)),Ij=GE(function(f,v,_){v!=null&&typeof v.toString!="function"&&(v=_t.call(v)),Le.call(f,v)?f[v].push(_):f[v]=[_]},ht),Dj=Bt(Tv);function nn(f){return Qn(f)?sE(f):ew(f)}function ei(f){return Qn(f)?sE(f,!0):o7(f)}function kj(f,v){var _={};return v=ht(v,3),ao(f,function(C,E,H){Oo(_,v(C,E,H),C)}),_}function Lj(f,v){var _={};return v=ht(v,3),ao(f,function(C,E,H){Oo(_,E,v(C,E,H))}),_}var Ej=Yf(function(f,v,_){vm(f,v,_)}),EP=Yf(function(f,v,_,C){vm(f,v,_,C)}),Pj=No(function(f,v){var _={};if(f==null)return _;var C=!1;v=ur(v,function(H){return H=qs(H,f),C||(C=H.length>1),H}),oo(f,dw(f),_),C&&(_=Gi(_,h|p|d,M7));for(var E=v.length;E--;)ow(_,v[E]);return _});function Rj(f,v){return PP(f,Im(ht(v)))}var Oj=No(function(f,v){return f==null?{}:l7(f,v)});function PP(f,v){if(f==null)return{};var _=ur(dw(f),function(C){return[C]});return v=ht(v),TE(f,_,function(C,E){return v(C,E[0])})}function Bj(f,v,_){v=qs(v,f);var C=-1,E=v.length;for(E||(E=1,f=r);++C<E;){var H=f==null?r:f[so(v[C])];H===r&&(C=E,H=_),f=$o(H)?H.call(f):H}return f}function Nj(f,v,_){return f==null?f:Av(f,v,_)}function Fj(f,v,_,C){return C=typeof C=="function"?C:r,f==null?f:Av(f,v,_,C)}var RP=qE(nn),OP=qE(ei);function $j(f,v,_){var C=Ct(f),E=C||Ys(f)||Zf(f);if(v=ht(v,4),_==null){var H=f&&f.constructor;E?_=C?new H:[]:Mr(f)?_=$o(H)?Kf(Gr(f)):{}:_={}}return(E?bn:ao)(f,function(X,te,oe){return v(_,X,te,oe)}),_}function zj(f,v){return f==null?!0:ow(f,v)}function Hj(f,v,_){return f==null?f:DE(f,v,uw(_))}function Vj(f,v,_,C){return C=typeof C=="function"?C:r,f==null?f:DE(f,v,uw(_),C)}function Jf(f){return f==null?[]:du(f,nn(f))}function Gj(f){return f==null?[]:du(f,ei(f))}function Wj(f,v,_){return _===r&&(_=v,v=r),_!==r&&(_=qi(_),_=_===_?_:0),v!==r&&(v=qi(v),v=v===v?v:0),bu(qi(f),v,_)}function Uj(f,v,_){return v=zo(v),_===r?(_=v,v=0):_=zo(_),f=qi(f),ZK(f,v,_)}function qj(f,v,_){if(_&&typeof _!="boolean"&&On(f,v,_)&&(v=_=r),_===r&&(typeof v=="boolean"?(_=v,v=r):typeof f=="boolean"&&(_=f,f=r)),f===r&&v===r?(f=0,v=1):(f=zo(f),v===r?(v=f,f=0):v=zo(v)),f>v){var C=f;f=v,v=C}if(_||f%1||v%1){var E=aE();return Sn(f+E*(v-f+Rf("1e-"+((E+"").length-1))),v)}return nw(f,v)}var Kj=Xf(function(f,v,_){return v=v.toLowerCase(),f+(_?BP(v):v)});function BP(f){return kw(er(f).toLowerCase())}function NP(f){return f=er(f),f&&f.replace(jh,Vb).replace(ro,"")}function Yj(f,v,_){f=er(f),v=mi(v);var C=f.length;_=_===r?C:bu(It(_),0,C);var E=_;return _-=v.length,_>=0&&f.slice(_,E)==v}function Xj(f){return f=er(f),f&&Ng.test(f)?f.replace(qh,Gf):f}function jj(f){return f=er(f),f&&gr.test(f)?f.replace(Ls,"\\$&"):f}var Zj=Xf(function(f,v,_){return f+(_?"-":"")+v.toLowerCase()}),Jj=Xf(function(f,v,_){return f+(_?" ":"")+v.toLowerCase()}),Qj=zE("toLowerCase");function eZ(f,v,_){f=er(f),v=It(v);var C=v?m(f):0;if(!v||C>=v)return f;var E=(v-C)/2;return _m(om(E),_)+f+_m(am(E),_)}function tZ(f,v,_){f=er(f),v=It(v);var C=v?m(f):0;return v&&C<v?f+_m(v-C,_):f}function rZ(f,v,_){f=er(f),v=It(v);var C=v?m(f):0;return v&&C<v?_m(v-C,_)+f:f}function nZ(f,v,_){return _||v==null?v=0:v&&(v=+v),fK(er(f).replace(Er,""),v||0)}function iZ(f,v,_){return(_?On(f,v,_):v===r)?v=1:v=It(v),iw(er(f),v)}function aZ(){var f=arguments,v=er(f[0]);return f.length<3?v:v.replace(f[1],f[2])}var oZ=Xf(function(f,v,_){return f+(_?"_":"")+v.toLowerCase()});function sZ(f,v,_){return _&&typeof _!="number"&&On(f,v,_)&&(v=_=r),_=_===r?ce:_>>>0,_?(f=er(f),f&&(typeof v=="string"||v!=null&&!Mw(v))&&(v=mi(v),!v&&pa(f))?Ks(x(f),0,_):f.split(v,_)):[]}var lZ=Xf(function(f,v,_){return f+(_?" ":"")+kw(v)});function uZ(f,v,_){return f=er(f),_=_==null?0:bu(It(_),0,f.length),v=mi(v),f.slice(_,_+v.length)==v}function fZ(f,v,_){var C=N.templateSettings;_&&On(f,v,_)&&(v=r),f=er(f),v=Lm({},v,C,KE);var E=Lm({},v.imports,C.imports,KE),H=nn(E),X=du(E,H),te,oe,Ie=0,De=v.interpolate||mr,Ee="__p += '",qe=he((v.escape||mr).source+"|"+De.source+"|"+(De===Fg?Qa:mr).source+"|"+(v.evaluate||mr).source+"|$","g"),at="//# sourceURL="+(Le.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++iu+"]")+`
|
|
46
|
+
`;f.replace(qe,function(gt,$t,Gt,_i,Bn,bi){return Gt||(Gt=_i),Ee+=f.slice(Ie,bi).replace(Lo,da),$t&&(te=!0,Ee+=`' +
|
|
47
|
+
__e(`+$t+`) +
|
|
48
|
+
'`),Bn&&(oe=!0,Ee+=`';
|
|
49
|
+
`+Bn+`;
|
|
50
|
+
__p += '`),Gt&&(Ee+=`' +
|
|
51
|
+
((__t = (`+Gt+`)) == null ? '' : __t) +
|
|
52
|
+
'`),Ie=bi+gt.length,gt}),Ee+=`';
|
|
53
|
+
`;var pt=Le.call(v,"variable")&&v.variable;if(!pt)Ee=`with (obj) {
|
|
54
|
+
`+Ee+`
|
|
55
|
+
}
|
|
56
|
+
`;else if(Ja.test(pt))throw new Y(s);Ee=(oe?Ee.replace(zi,""):Ee).replace(xf,"$1").replace(Ue,"$1;"),Ee="function("+(pt||"obj")+`) {
|
|
57
|
+
`+(pt?"":`obj || (obj = {});
|
|
58
|
+
`)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(oe?`, __j = Array.prototype.join;
|
|
59
|
+
function print() { __p += __j.call(arguments, '') }
|
|
60
|
+
`:`;
|
|
61
|
+
`)+Ee+`return __p
|
|
62
|
+
}`;var Pt=$P(function(){return ee(H,at+"return "+Ee).apply(r,X)});if(Pt.source=Ee,Aw(Pt))throw Pt;return Pt}function cZ(f){return er(f).toLowerCase()}function hZ(f){return er(f).toUpperCase()}function vZ(f,v,_){if(f=er(f),f&&(_||v===r))return em(f);if(!f||!(v=mi(v)))return f;var C=x(f),E=x(v),H=pv(C,E),X=tm(C,E)+1;return Ks(C,H,X).join("")}function dZ(f,v,_){if(f=er(f),f&&(_||v===r))return f.slice(0,T(f)+1);if(!f||!(v=mi(v)))return f;var C=x(f),E=tm(C,x(v))+1;return Ks(C,0,E).join("")}function pZ(f,v,_){if(f=er(f),f&&(_||v===r))return f.replace(Er,"");if(!f||!(v=mi(v)))return f;var C=x(f),E=pv(C,x(v));return Ks(C,E).join("")}function gZ(f,v){var _=W,C=G;if(Mr(v)){var E="separator"in v?v.separator:E;_="length"in v?It(v.length):_,C="omission"in v?mi(v.omission):C}f=er(f);var H=f.length;if(pa(f)){var X=x(f);H=X.length}if(_>=H)return f;var te=_-m(C);if(te<1)return C;var oe=X?Ks(X,0,te).join(""):f.slice(0,te);if(E===r)return oe+C;if(X&&(te+=oe.length-te),Mw(E)){if(f.slice(te).search(E)){var Ie,De=oe;for(E.global||(E=he(E.source,er(Jl.exec(E))+"g")),E.lastIndex=0;Ie=E.exec(De);)var Ee=Ie.index;oe=oe.slice(0,Ee===r?te:Ee)}}else if(f.indexOf(mi(E),te)!=te){var qe=oe.lastIndexOf(E);qe>-1&&(oe=oe.slice(0,qe))}return oe+C}function mZ(f){return f=er(f),f&&Kh.test(f)?f.replace(Sf,M):f}var yZ=Xf(function(f,v,_){return f+(_?" ":"")+v.toUpperCase()}),kw=zE("toUpperCase");function FP(f,v,_){return f=er(f),v=_?r:v,v===r?Zn(f)?U(f):zf(f):f.match(v)||[]}var $P=Bt(function(f,v){try{return cn(f,r,v)}catch(_){return Aw(_)?_:new Y(_)}}),_Z=No(function(f,v){return bn(v,function(_){_=so(_),Oo(f,_,Tw(f[_],f))}),f});function bZ(f){var v=f==null?0:f.length,_=ht();return f=v?ur(f,function(C){if(typeof C[1]!="function")throw new ge(o);return[_(C[0]),C[1]]}):[],Bt(function(C){for(var E=-1;++E<v;){var H=f[E];if(cn(H[0],this,C))return cn(H[1],this,C)}})}function wZ(f){return qK(Gi(f,h))}function Lw(f){return function(){return f}}function xZ(f,v){return f==null||f!==f?v:f}var SZ=VE(),TZ=VE(!0);function ti(f){return f}function Ew(f){return yE(typeof f=="function"?f:Gi(f,h))}function CZ(f){return bE(Gi(f,h))}function AZ(f,v){return wE(f,Gi(v,h))}var MZ=Bt(function(f,v){return function(_){return Tv(_,f,v)}}),IZ=Bt(function(f,v){return function(_){return Tv(f,_,v)}});function Pw(f,v,_){var C=nn(v),E=hm(v,C);_==null&&!(Mr(v)&&(E.length||!C.length))&&(_=v,v=f,f=this,E=hm(v,nn(v)));var H=!(Mr(_)&&"chain"in _)||!!_.chain,X=$o(f);return bn(E,function(te){var oe=v[te];f[te]=oe,X&&(f.prototype[te]=function(){var Ie=this.__chain__;if(H||Ie){var De=f(this.__wrapped__),Ee=De.__actions__=Jn(this.__actions__);return Ee.push({func:oe,args:arguments,thisArg:f}),De.__chain__=Ie,De}return oe.apply(f,ha([this.value()],arguments))})}),f}function DZ(){return jr._===this&&(jr._=Et),this}function Rw(){}function kZ(f){return f=It(f),Bt(function(v){return xE(v,f)})}var LZ=cw(ur),EZ=cw(Ns),PZ=cw(va);function zP(f){return yw(f)?hu(so(f)):u7(f)}function RZ(f){return function(v){return f==null?r:wu(f,v)}}var OZ=WE(),BZ=WE(!0);function Ow(){return[]}function Bw(){return!1}function NZ(){return{}}function FZ(){return""}function $Z(){return!0}function zZ(f,v){if(f=It(f),f<1||f>ue)return[];var _=ce,C=Sn(f,ce);v=ht(v),f-=ce;for(var E=Vf(C,v);++_<f;)v(_);return E}function HZ(f){return Ct(f)?ur(f,so):yi(f)?[f]:Jn(oP(er(f)))}function VZ(f){var v=++Ge;return er(f)+v}var GZ=ym(function(f,v){return f+v},0),WZ=hw("ceil"),UZ=ym(function(f,v){return f/v},1),qZ=hw("floor");function KZ(f){return f&&f.length?cm(f,ti,Zb):r}function YZ(f,v){return f&&f.length?cm(f,ht(v,2),Zb):r}function XZ(f){return jg(f,ti)}function jZ(f,v){return jg(f,ht(v,2))}function ZZ(f){return f&&f.length?cm(f,ti,tw):r}function JZ(f,v){return f&&f.length?cm(f,ht(v,2),tw):r}var QZ=ym(function(f,v){return f*v},1),eJ=hw("round"),tJ=ym(function(f,v){return f-v},0);function rJ(f){return f&&f.length?dv(f,ti):0}function nJ(f,v){return f&&f.length?dv(f,ht(v,2)):0}return N.after=CX,N.ary=mP,N.assign=hj,N.assignIn=LP,N.assignInWith=Lm,N.assignWith=vj,N.at=dj,N.before=yP,N.bind=Tw,N.bindAll=_Z,N.bindKey=_P,N.castArray=NX,N.chain=dP,N.chunk=q7,N.compact=K7,N.concat=Y7,N.cond=bZ,N.conforms=wZ,N.constant=Lw,N.countBy=rX,N.create=pj,N.curry=bP,N.curryRight=wP,N.debounce=xP,N.defaults=gj,N.defaultsDeep=mj,N.defer=AX,N.delay=MX,N.difference=X7,N.differenceBy=j7,N.differenceWith=Z7,N.drop=J7,N.dropRight=Q7,N.dropRightWhile=eY,N.dropWhile=tY,N.fill=rY,N.filter=iX,N.flatMap=sX,N.flatMapDeep=lX,N.flatMapDepth=uX,N.flatten=fP,N.flattenDeep=nY,N.flattenDepth=iY,N.flip=IX,N.flow=SZ,N.flowRight=TZ,N.fromPairs=aY,N.functions=Tj,N.functionsIn=Cj,N.groupBy=fX,N.initial=sY,N.intersection=lY,N.intersectionBy=uY,N.intersectionWith=fY,N.invert=Mj,N.invertBy=Ij,N.invokeMap=hX,N.iteratee=Ew,N.keyBy=vX,N.keys=nn,N.keysIn=ei,N.map=Cm,N.mapKeys=kj,N.mapValues=Lj,N.matches=CZ,N.matchesProperty=AZ,N.memoize=Mm,N.merge=Ej,N.mergeWith=EP,N.method=MZ,N.methodOf=IZ,N.mixin=Pw,N.negate=Im,N.nthArg=kZ,N.omit=Pj,N.omitBy=Rj,N.once=DX,N.orderBy=dX,N.over=LZ,N.overArgs=kX,N.overEvery=EZ,N.overSome=PZ,N.partial=Cw,N.partialRight=SP,N.partition=pX,N.pick=Oj,N.pickBy=PP,N.property=zP,N.propertyOf=RZ,N.pull=dY,N.pullAll=hP,N.pullAllBy=pY,N.pullAllWith=gY,N.pullAt=mY,N.range=OZ,N.rangeRight=BZ,N.rearg=LX,N.reject=yX,N.remove=yY,N.rest=EX,N.reverse=xw,N.sampleSize=bX,N.set=Nj,N.setWith=Fj,N.shuffle=wX,N.slice=_Y,N.sortBy=TX,N.sortedUniq=AY,N.sortedUniqBy=MY,N.split=sZ,N.spread=PX,N.tail=IY,N.take=DY,N.takeRight=kY,N.takeRightWhile=LY,N.takeWhile=EY,N.tap=KY,N.throttle=RX,N.thru=Tm,N.toArray=IP,N.toPairs=RP,N.toPairsIn=OP,N.toPath=HZ,N.toPlainObject=kP,N.transform=$j,N.unary=OX,N.union=PY,N.unionBy=RY,N.unionWith=OY,N.uniq=BY,N.uniqBy=NY,N.uniqWith=FY,N.unset=zj,N.unzip=Sw,N.unzipWith=vP,N.update=Hj,N.updateWith=Vj,N.values=Jf,N.valuesIn=Gj,N.without=$Y,N.words=FP,N.wrap=BX,N.xor=zY,N.xorBy=HY,N.xorWith=VY,N.zip=GY,N.zipObject=WY,N.zipObjectDeep=UY,N.zipWith=qY,N.entries=RP,N.entriesIn=OP,N.extend=LP,N.extendWith=Lm,Pw(N,N),N.add=GZ,N.attempt=$P,N.camelCase=Kj,N.capitalize=BP,N.ceil=WZ,N.clamp=Wj,N.clone=FX,N.cloneDeep=zX,N.cloneDeepWith=HX,N.cloneWith=$X,N.conformsTo=VX,N.deburr=NP,N.defaultTo=xZ,N.divide=UZ,N.endsWith=Yj,N.eq=ma,N.escape=Xj,N.escapeRegExp=jj,N.every=nX,N.find=aX,N.findIndex=lP,N.findKey=yj,N.findLast=oX,N.findLastIndex=uP,N.findLastKey=_j,N.floor=qZ,N.forEach=pP,N.forEachRight=gP,N.forIn=bj,N.forInRight=wj,N.forOwn=xj,N.forOwnRight=Sj,N.get=Iw,N.gt=GX,N.gte=WX,N.has=Aj,N.hasIn=Dw,N.head=cP,N.identity=ti,N.includes=cX,N.indexOf=oY,N.inRange=Uj,N.invoke=Dj,N.isArguments=Tu,N.isArray=Ct,N.isArrayBuffer=UX,N.isArrayLike=Qn,N.isArrayLikeObject=Nr,N.isBoolean=qX,N.isBuffer=Ys,N.isDate=KX,N.isElement=YX,N.isEmpty=XX,N.isEqual=jX,N.isEqualWith=ZX,N.isError=Aw,N.isFinite=JX,N.isFunction=$o,N.isInteger=TP,N.isLength=Dm,N.isMap=CP,N.isMatch=QX,N.isMatchWith=ej,N.isNaN=tj,N.isNative=rj,N.isNil=ij,N.isNull=nj,N.isNumber=AP,N.isObject=Mr,N.isObjectLike=Pr,N.isPlainObject=kv,N.isRegExp=Mw,N.isSafeInteger=aj,N.isSet=MP,N.isString=km,N.isSymbol=yi,N.isTypedArray=Zf,N.isUndefined=oj,N.isWeakMap=sj,N.isWeakSet=lj,N.join=cY,N.kebabCase=Zj,N.last=Ui,N.lastIndexOf=hY,N.lowerCase=Jj,N.lowerFirst=Qj,N.lt=uj,N.lte=fj,N.max=KZ,N.maxBy=YZ,N.mean=XZ,N.meanBy=jZ,N.min=ZZ,N.minBy=JZ,N.stubArray=Ow,N.stubFalse=Bw,N.stubObject=NZ,N.stubString=FZ,N.stubTrue=$Z,N.multiply=QZ,N.nth=vY,N.noConflict=DZ,N.noop=Rw,N.now=Am,N.pad=eZ,N.padEnd=tZ,N.padStart=rZ,N.parseInt=nZ,N.random=qj,N.reduce=gX,N.reduceRight=mX,N.repeat=iZ,N.replace=aZ,N.result=Bj,N.round=eJ,N.runInContext=R,N.sample=_X,N.size=xX,N.snakeCase=oZ,N.some=SX,N.sortedIndex=bY,N.sortedIndexBy=wY,N.sortedIndexOf=xY,N.sortedLastIndex=SY,N.sortedLastIndexBy=TY,N.sortedLastIndexOf=CY,N.startCase=lZ,N.startsWith=uZ,N.subtract=tJ,N.sum=rJ,N.sumBy=nJ,N.template=fZ,N.times=zZ,N.toFinite=zo,N.toInteger=It,N.toLength=DP,N.toLower=cZ,N.toNumber=qi,N.toSafeInteger=cj,N.toString=er,N.toUpper=hZ,N.trim=vZ,N.trimEnd=dZ,N.trimStart=pZ,N.truncate=gZ,N.unescape=mZ,N.uniqueId=VZ,N.upperCase=yZ,N.upperFirst=kw,N.each=pP,N.eachRight=gP,N.first=cP,Pw(N,function(){var f={};return ao(N,function(v,_){Le.call(N.prototype,_)||(f[_]=v)}),f}(),{chain:!1}),N.VERSION=n,bn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){N[f].placeholder=N}),bn(["drop","take"],function(f,v){Ht.prototype[f]=function(_){_=_===r?1:Zr(It(_),0);var C=this.__filtered__&&!v?new Ht(this):this.clone();return C.__filtered__?C.__takeCount__=Sn(_,C.__takeCount__):C.__views__.push({size:Sn(_,ce),type:f+(C.__dir__<0?"Right":"")}),C},Ht.prototype[f+"Right"]=function(_){return this.reverse()[f](_).reverse()}}),bn(["filter","map","takeWhile"],function(f,v){var _=v+1,C=_==ie||_==ye;Ht.prototype[f]=function(E){var H=this.clone();return H.__iteratees__.push({iteratee:ht(E,3),type:_}),H.__filtered__=H.__filtered__||C,H}}),bn(["head","last"],function(f,v){var _="take"+(v?"Right":"");Ht.prototype[f]=function(){return this[_](1).value()[0]}}),bn(["initial","tail"],function(f,v){var _="drop"+(v?"":"Right");Ht.prototype[f]=function(){return this.__filtered__?new Ht(this):this[_](1)}}),Ht.prototype.compact=function(){return this.filter(ti)},Ht.prototype.find=function(f){return this.filter(f).head()},Ht.prototype.findLast=function(f){return this.reverse().find(f)},Ht.prototype.invokeMap=Bt(function(f,v){return typeof f=="function"?new Ht(this):this.map(function(_){return Tv(_,f,v)})}),Ht.prototype.reject=function(f){return this.filter(Im(ht(f)))},Ht.prototype.slice=function(f,v){f=It(f);var _=this;return _.__filtered__&&(f>0||v<0)?new Ht(_):(f<0?_=_.takeRight(-f):f&&(_=_.drop(f)),v!==r&&(v=It(v),_=v<0?_.dropRight(-v):_.take(v-f)),_)},Ht.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Ht.prototype.toArray=function(){return this.take(ce)},ao(Ht.prototype,function(f,v){var _=/^(?:filter|find|map|reject)|While$/.test(v),C=/^(?:head|last)$/.test(v),E=N[C?"take"+(v=="last"?"Right":""):v],H=C||/^find/.test(v);E&&(N.prototype[v]=function(){var X=this.__wrapped__,te=C?[1]:arguments,oe=X instanceof Ht,Ie=te[0],De=oe||Ct(X),Ee=function($t){var Gt=E.apply(N,ha([$t],te));return C&&qe?Gt[0]:Gt};De&&_&&typeof Ie=="function"&&Ie.length!=1&&(oe=De=!1);var qe=this.__chain__,at=!!this.__actions__.length,pt=H&&!qe,Pt=oe&&!at;if(!H&&De){X=Pt?X:new Ht(this);var gt=f.apply(X,te);return gt.__actions__.push({func:Tm,args:[Ee],thisArg:r}),new Vi(gt,qe)}return pt&&Pt?f.apply(this,te):(gt=this.thru(Ee),pt?C?gt.value()[0]:gt.value():gt)})}),bn(["pop","push","shift","sort","splice","unshift"],function(f){var v=Ce[f],_=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",C=/^(?:pop|shift)$/.test(f);N.prototype[f]=function(){var E=arguments;if(C&&!this.__chain__){var H=this.value();return v.apply(Ct(H)?H:[],E)}return this[_](function(X){return v.apply(Ct(X)?X:[],E)})}}),ao(Ht.prototype,function(f,v){var _=N[v];if(_){var C=_.name+"";Le.call(qf,C)||(qf[C]=[]),qf[C].push({name:v,func:_})}}),qf[mm(r,b).name]=[{name:"wrapper",func:r}],Ht.prototype.clone=mK,Ht.prototype.reverse=yK,Ht.prototype.value=_K,N.prototype.at=YY,N.prototype.chain=XY,N.prototype.commit=jY,N.prototype.next=ZY,N.prototype.plant=QY,N.prototype.reverse=eX,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=tX,N.prototype.first=N.prototype.head,mv&&(N.prototype[mv]=JY),N},re=j();ca?((ca.exports=re)._=re,sv._=re):jr._=re}).call(cl)}(xd,xd.exports);var yT=xd.exports;function Sd(t){"@babel/helpers - typeof";return Sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sd(t)}var cN=/^\s+/,hN=/\s+$/;function ot(t,e){if(t=t||"",e=e||{},t instanceof ot)return t;if(!(this instanceof ot))return new ot(t,e);var r=vN(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=e.format||r.format,this._gradientType=e.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=r.ok}ot.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 e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),r,n,i,a,o,s;return r=e.r/255,n=e.g/255,i=e.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(e){return this._a=TT(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=bT(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=bT(this._r,this._g,this._b),r=Math.round(e.h*360),n=Math.round(e.s*100),i=Math.round(e.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+i+"%)":"hsva("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=_T(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=_T(this._r,this._g,this._b),r=Math.round(e.h*360),n=Math.round(e.s*100),i=Math.round(e.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+i+"%)":"hsla("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return wT(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return mN(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},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(Tr(this._r,255)*100)+"%",g:Math.round(Tr(this._g,255)*100)+"%",b:Math.round(Tr(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Tr(this._r,255)*100)+"%, "+Math.round(Tr(this._g,255)*100)+"%, "+Math.round(Tr(this._b,255)*100)+"%)":"rgba("+Math.round(Tr(this._r,255)*100)+"%, "+Math.round(Tr(this._g,255)*100)+"%, "+Math.round(Tr(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:DN[wT(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var r="#"+xT(this._r,this._g,this._b,this._a),n=r,i=this._gradientType?"GradientType = 1, ":"";if(e){var a=ot(e);n="#"+xT(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+n+")"},toString:function(e){var r=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0,a=!r&&i&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return a?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return ot(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(wN,arguments)},brighten:function(){return this._applyModification(xN,arguments)},darken:function(){return this._applyModification(SN,arguments)},desaturate:function(){return this._applyModification(yN,arguments)},saturate:function(){return this._applyModification(_N,arguments)},greyscale:function(){return this._applyModification(bN,arguments)},spin:function(){return this._applyModification(TN,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(MN,arguments)},complement:function(){return this._applyCombination(CN,arguments)},monochromatic:function(){return this._applyCombination(IN,arguments)},splitcomplement:function(){return this._applyCombination(AN,arguments)},triad:function(){return this._applyCombination(ST,[3])},tetrad:function(){return this._applyCombination(ST,[4])}},ot.fromRatio=function(t,e){if(Sd(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=Ac(t[n]));t=r}return ot(t,e)};function vN(t){var e={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof t=="string"&&(t=PN(t)),Sd(t)=="object"&&(mo(t.r)&&mo(t.g)&&mo(t.b)?(e=dN(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):mo(t.h)&&mo(t.s)&&mo(t.v)?(n=Ac(t.s),i=Ac(t.v),e=gN(t.h,n,i),o=!0,s="hsv"):mo(t.h)&&mo(t.s)&&mo(t.l)&&(n=Ac(t.s),a=Ac(t.l),e=pN(t.h,n,a),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=TT(r),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function dN(t,e,r){return{r:Tr(t,255)*255,g:Tr(e,255)*255,b:Tr(r,255)*255}}function _T(t,e,r){t=Tr(t,255),e=Tr(e,255),r=Tr(r,255);var n=Math.max(t,e,r),i=Math.min(t,e,r),a,o,s=(n+i)/2;if(n==i)a=o=0;else{var l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case t:a=(e-r)/l+(e<r?6:0);break;case e:a=(r-t)/l+2;break;case r:a=(t-e)/l+4;break}a/=6}return{h:a,s:o,l:s}}function pN(t,e,r){var n,i,a;t=Tr(t,360),e=Tr(e,100),r=Tr(r,100);function o(u,c,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?u+(c-u)*6*h:h<1/2?c:h<2/3?u+(c-u)*(2/3-h)*6:u}if(e===0)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:n*255,g:i*255,b:a*255}}function bT(t,e,r){t=Tr(t,255),e=Tr(e,255),r=Tr(r,255);var n=Math.max(t,e,r),i=Math.min(t,e,r),a,o,s=n,l=n-i;if(o=n===0?0:l/n,n==i)a=0;else{switch(n){case t:a=(e-r)/l+(e<r?6:0);break;case e:a=(r-t)/l+2;break;case r:a=(t-e)/l+4;break}a/=6}return{h:a,s:o,v:s}}function gN(t,e,r){t=Tr(t,360)*6,e=Tr(e,100),r=Tr(r,100);var n=Math.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),s=r*(1-(1-i)*e),l=n%6,u=[r,o,a,a,s,r][l],c=[s,r,r,o,a,a][l],h=[a,a,s,r,r,o][l];return{r:u*255,g:c*255,b:h*255}}function wT(t,e,r,n){var i=[Xi(Math.round(t).toString(16)),Xi(Math.round(e).toString(16)),Xi(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function mN(t,e,r,n,i){var a=[Xi(Math.round(t).toString(16)),Xi(Math.round(e).toString(16)),Xi(Math.round(r).toString(16)),Xi(CT(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function xT(t,e,r,n){var i=[Xi(CT(n)),Xi(Math.round(t).toString(16)),Xi(Math.round(e).toString(16)),Xi(Math.round(r).toString(16))];return i.join("")}ot.equals=function(t,e){return!t||!e?!1:ot(t).toRgbString()==ot(e).toRgbString()},ot.random=function(){return ot.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function yN(t,e){e=e===0?0:e||10;var r=ot(t).toHsl();return r.s-=e/100,r.s=Td(r.s),ot(r)}function _N(t,e){e=e===0?0:e||10;var r=ot(t).toHsl();return r.s+=e/100,r.s=Td(r.s),ot(r)}function bN(t){return ot(t).desaturate(100)}function wN(t,e){e=e===0?0:e||10;var r=ot(t).toHsl();return r.l+=e/100,r.l=Td(r.l),ot(r)}function xN(t,e){e=e===0?0:e||10;var r=ot(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(e/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(e/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(e/100)))),ot(r)}function SN(t,e){e=e===0?0:e||10;var r=ot(t).toHsl();return r.l-=e/100,r.l=Td(r.l),ot(r)}function TN(t,e){var r=ot(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,ot(r)}function CN(t){var e=ot(t).toHsl();return e.h=(e.h+180)%360,ot(e)}function ST(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=ot(t).toHsl(),n=[ot(t)],i=360/e,a=1;a<e;a++)n.push(ot({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function AN(t){var e=ot(t).toHsl(),r=e.h;return[ot(t),ot({h:(r+72)%360,s:e.s,l:e.l}),ot({h:(r+216)%360,s:e.s,l:e.l})]}function MN(t,e,r){e=e||6,r=r||30;var n=ot(t).toHsl(),i=360/r,a=[ot(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(ot(n));return a}function IN(t,e){e=e||6;for(var r=ot(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(ot({h:n,s:i,v:a})),a=(a+s)%1;return o}ot.mix=function(t,e,r){r=r===0?0:r||50;var n=ot(t).toRgb(),i=ot(e).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return ot(o)},ot.readability=function(t,e){var r=ot(t),n=ot(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},ot.isReadable=function(t,e,r){var n=ot.readability(t,e),i,a;switch(a=!1,i=RN(r),i.level+i.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a},ot.mostReadable=function(t,e,r){var n=null,i=0,a,o,s,l;r=r||{},o=r.includeFallbackColors,s=r.level,l=r.size;for(var u=0;u<e.length;u++)a=ot.readability(t,e[u]),a>i&&(i=a,n=ot(e[u]));return ot.isReadable(t,n,{level:s,size:l})||!o?n:(r.includeFallbackColors=!1,ot.mostReadable(t,["#fff","#000"],r))};var b0=ot.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"},DN=ot.hexNames=kN(b0);function kN(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function TT(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Tr(t,e){LN(t)&&(t="100%");var r=EN(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Td(t){return Math.min(1,Math.max(0,t))}function ai(t){return parseInt(t,16)}function LN(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function EN(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Xi(t){return t.length==1?"0"+t:""+t}function Ac(t){return t<=1&&(t=t*100+"%"),t}function CT(t){return Math.round(parseFloat(t)*255).toString(16)}function AT(t){return ai(t)/255}var ji=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),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 mo(t){return!!ji.CSS_UNIT.exec(t)}function PN(t){t=t.replace(cN,"").replace(hN,"").toLowerCase();var e=!1;if(b0[t])t=b0[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ji.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=ji.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ji.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=ji.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ji.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=ji.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ji.hex8.exec(t))?{r:ai(r[1]),g:ai(r[2]),b:ai(r[3]),a:AT(r[4]),format:e?"name":"hex8"}:(r=ji.hex6.exec(t))?{r:ai(r[1]),g:ai(r[2]),b:ai(r[3]),format:e?"name":"hex"}:(r=ji.hex4.exec(t))?{r:ai(r[1]+""+r[1]),g:ai(r[2]+""+r[2]),b:ai(r[3]+""+r[3]),a:AT(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=ji.hex3.exec(t))?{r:ai(r[1]+""+r[1]),g:ai(r[2]+""+r[2]),b:ai(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function RN(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}const ON=t=>{const{left:e,top:r,width:n,height:i,rotate:a=0}=t,o=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))/2,s=Math.atan(i/n)*180/Math.PI,l=(180-a-s)*Math.PI/180,u=(s-a)*Math.PI/180,c=e+n/2,h=r+i/2,p=[c+o*Math.cos(l),c+o*Math.cos(u),c-o*Math.cos(l),c-o*Math.cos(u)],d=[h-o*Math.sin(l),h-o*Math.sin(u),h+o*Math.sin(l),h+o*Math.sin(u)];return{xRange:[Math.min(...p),Math.max(...p)],yRange:[Math.min(...d),Math.max(...d)]}},BN=t=>{let e,r,n,i;if(t.type==="line")e=t.left,r=t.left+Math.max(t.start[0],t.end[0]),n=t.top,i=t.top+Math.max(t.start[1],t.end[1]);else if("rotate"in t&&t.rotate){const{left:a,top:o,width:s,height:l,rotate:u}=t,{xRange:c,yRange:h}=ON({left:a,top:o,width:s,height:l,rotate:u});e=c[0],r=c[1],n=h[0],i=h[1]}else e=t.left,r=t.left+t.width,n=t.top,i=t.top+t.height;return{minX:e,maxX:r,minY:n,maxY:i}},NN=(t,e,r)=>{const n=r*Math.PI/180,i=t.x-e.x,a=t.y-e.y;return{x:e.x+i*Math.cos(n)-a*Math.sin(n),y:e.y+i*Math.sin(n)+a*Math.cos(n)}},FN=t=>{const e=n=>({x:t.left+n[0],y:t.top+n[1]}),r={start:e(t.start),end:e(t.end)};return t.broken&&(r.broken=e(t.broken)),t.broken2&&(r.broken2=e(t.broken2)),t.curve&&(r.curve=e(t.curve)),t.cubic&&(r.cubic=[e(t.cubic[0]),e(t.cubic[1])]),r},$N=(t,e)=>{const r=Math.min(e.start.x,e.end.x),n=Math.min(e.start.y,e.end.y),i=o=>[o.x-r,o.y-n],a={...t,left:r,top:n,start:i(e.start),end:i(e.end)};return e.broken?a.broken=i(e.broken):delete a.broken,e.broken2?a.broken2=i(e.broken2):delete a.broken2,e.curve?a.curve=i(e.curve):delete a.curve,e.cubic?a.cubic=[i(e.cubic[0]),i(e.cubic[1])]:delete a.cubic,a},MT=(t,e)=>e.includes("id")||e.includes("type")?!0:t.type==="shape"?["left","top","width","height","rotate"].some(r=>e.includes(r)):t.type==="line"?["left","top","start","end","startBinding","endBinding"].some(r=>e.includes(r)):!1,w0=t=>{if(t.broken2Direction)return t.broken2Direction;const{minX:e,maxX:r,minY:n,maxY:i}=BN(t);return r-e>=i-n?"horizontal":"vertical"},zN=["top","right","bottom","left"],HN=(t,e)=>{const r={x:t.left+t.width/2,y:t.top+t.height/2};let n=r;return e==="top"?n={x:r.x,y:t.top}:e==="right"?n={x:t.left+t.width,y:r.y}:e==="bottom"?n={x:r.x,y:t.top+t.height}:e==="left"&&(n={x:t.left,y:r.y}),t.rotate?NN(n,r,t.rotate):n},hl=t=>{if(!t.some(a=>a.type==="line"&&(a.startBinding||a.endBinding)))return t;const e=new Map;for(const a of t)a.type==="shape"&&e.set(a.id,a);const r=a=>{if(!a||!zN.includes(a.anchor))return;const o=e.get(a.elementId);if(!o)return;const s=HN(o,a.anchor);return Number.isFinite(s.x)&&Number.isFinite(s.y)?s:void 0};let n=!1;const i=t.map(a=>{if(a.type!=="line"||!a.startBinding&&!a.endBinding)return a;const o=r(a.startBinding),s=r(a.endBinding),l=FN(a),u=(b,S)=>({x:b&&Math.abs(b.x-S.x)>1e-8?b.x-S.x:0,y:b&&Math.abs(b.y-S.y)>1e-8?b.y-S.y:0}),c=u(o,l.start),h=u(s,l.end),p=c.x||c.y||h.x||h.y,d=a.startBinding&&!o||a.endBinding&&!s;if(!p&&!d)return a;n=!0;const g={...a};if(o||delete g.startBinding,s||delete g.endBinding,!p)return g;o&&(l.start=o),s&&(l.end=s);const y=(b,S)=>({x:b.x+S.x,y:b.y+S.y}),w={x:(c.x+h.x)/2,y:(c.y+h.y)/2};return l.broken&&(l.broken=y(l.broken,w)),l.broken2&&(l.broken2=y(l.broken2,w)),l.curve&&(l.curve=y(l.curve,w)),l.cubic&&(l.cubic=[y(l.cubic[0],c),y(l.cubic[1],h)]),$N(g,l)});return n?i:t},VN=(t,e)=>{if(t.type!=="line")return t;const r=t.startBinding&&!e.has(t.startBinding.elementId),n=t.endBinding&&!e.has(t.endBinding.elementId);if(!r&&!n)return t;const i={...t};return r&&delete i.startBinding,n&&delete i.endBinding,i},GN=(t,e)=>{if(!t.some(i=>i.type==="line"&&(i.startBinding||i.endBinding)))return t;const r=new Map(e.map(i=>[i.id,i])),n=new Set;for(const i of t){const a=r.get(i.id);i.type!=="shape"||(a==null?void 0:a.type)!=="shape"||(i.left!==a.left||i.top!==a.top||i.width!==a.width||i.height!==a.height||i.rotate!==a.rotate)&&n.add(i.id)}return t.map(i=>{const a=r.get(i.id);return i.type!=="line"||(a==null?void 0:a.type)!=="line"?i:i.left!==a.left||i.top!==a.top||i.start.some((s,l)=>s!==a.start[l])||i.end.some((s,l)=>s!==a.end[l])?VN(i,n):i})},WN=t=>{const e=ot(t);return[e.setAlpha(.3).toRgbString(),e.setAlpha(.1).toRgbString()]},UN=t=>{const e=t.start.join(","),r=t.end.join(",");if(t.broken){const n=t.broken.join(",");return`M${e} L${n} L${r}`}else{if(t.broken2)return w0(t)==="horizontal"?`M${e} L${t.broken2[0]},${t.start[1]} L${t.broken2[0]},${t.end[1]} ${r}`:`M${e} L${t.start[0]},${t.broken2[1]} L${t.end[0]},${t.broken2[1]} ${r}`;if(t.curve){const n=t.curve.join(",");return`M${e} Q${n} ${r}`}else if(t.cubic){const[n,i]=t.cubic,a=n.join(","),o=i.join(",");return`M${e} C${a} ${o} ${r}`}}return`M${e} L${r}`},IT=(t,e)=>{const r=e<2?2:e;return t==="arrow"?r:t==="dot"?r/2:0},x0=(t,e)=>{const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)},DT=(t,e,r)=>{const n=x0(t,e);if(!n)return t;const i=r/n;return[t[0]+(e[0]-t[0])*i,t[1]+(e[1]-t[1])*i]},qN=t=>t.broken?[t.broken]:t.broken2?w0(t)==="horizontal"?[[t.broken2[0],t.start[1]],[t.broken2[0],t.end[1]]]:[[t.start[0],t.broken2[1]],[t.end[0],t.broken2[1]]]:t.curve?[t.curve]:t.cubic?[t.cubic[0],t.cubic[1]]:[],KN=t=>{const e=qN(t);let r=t.start,n=t.end;const i=IT(t.points[0],t.width),a=IT(t.points[1],t.width);if(i){const l=e[0]||t.end,u=Math.min(i,x0(t.start,l)/2);r=DT(t.start,l,u)}if(a){const l=e[e.length-1]||t.start,u=Math.min(a,x0(l,t.end)/2);n=DT(t.end,l,u)}const o=r.join(","),s=n.join(",");if(t.broken){const l=t.broken.join(",");return`M${o} L${l} L${s}`}else{if(t.broken2)return w0(t)==="horizontal"?`M${o} L${t.broken2[0]},${t.start[1]} L${t.broken2[0]},${t.end[1]} ${s}`:`M${o} L${t.start[0]},${t.broken2[1]} L${t.end[0]},${t.broken2[1]} ${s}`;if(t.curve){const l=t.curve.join(",");return`M${o} Q${l} ${s}`}else if(t.cubic){const[l,u]=t.cubic,c=l.join(","),h=u.join(",");return`M${o} C${c} ${h} ${s}`}}return`M${o} L${s}`},jo=IB("slides",{state:()=>({title:"未命名演示文稿",theme:{themeColors:["#5b9bd5","#ed7d31","#a5a5a5","#ffc000","#4472c4","#70ad47"],fontColor:"#333",fontName:"",backgroundColor:"#fff",shadow:{h:3,v:3,blur:2,color:"#808080"},outline:{width:2,color:"#525252",style:"solid"}},slides:[],slideIndex:0,viewportSize:1e3,viewportRatio:.5625,templates:[{name:"山河映红",id:"template_1",cover:"./imgs/template_1.webp",origin:"官方制作"},{name:"都市蓝调",id:"template_2",cover:"./imgs/template_2.webp",origin:"官方制作"},{name:"智感几何",id:"template_3",cover:"./imgs/template_3.webp",origin:"官方制作"},{name:"柔光莫兰迪",id:"template_4",cover:"./imgs/template_4.webp",origin:"官方制作"},{name:"简约绿意",id:"template_5",cover:"./imgs/template_5.webp",origin:"社区贡献+官方深度完善优化"},{name:"暖色复古",id:"template_6",cover:"./imgs/template_6.webp",origin:"社区贡献+官方深度完善优化"},{name:"深邃沉稳",id:"template_7",cover:"./imgs/template_7.webp",origin:"社区贡献+官方深度完善优化"},{name:"浅蓝小清新",id:"template_8",cover:"./imgs/template_8.webp",origin:"社区贡献+官方深度完善优化"}]}),getters:{currentSlide(t){return t.slides[t.slideIndex]},currentSlideAnimations(t){const e=t.slides[t.slideIndex];if(!(e!=null&&e.animations))return[];const n=e.elements.map(i=>i.id);return e.animations.filter(i=>n.includes(i.elId))},formatedAnimations(t){const e=t.slides[t.slideIndex];if(!(e!=null&&e.animations))return[];const n=e.elements.map(o=>o.id),i=e.animations.filter(o=>n.includes(o.elId)),a=[];for(const o of i)if(o.trigger==="click"||!a.length)a.push({animations:[o],autoNext:!1});else if(o.trigger==="meantime"){const s=a[a.length-1];s.animations=s.animations.filter(l=>l.elId!==o.elId),s.animations.push(o),a[a.length-1]=s}else if(o.trigger==="auto"){const s=a[a.length-1];s.autoNext=!0,a[a.length-1]=s,a.push({animations:[o],autoNext:!1})}return a}},actions:{setTitle(t){t?this.title=t:this.title="未命名演示文稿"},setTheme(t){this.theme={...this.theme,...t}},setViewportSize(t){this.viewportSize=t},setViewportRatio(t){this.viewportRatio=t},setSlides(t,e){this.slides=t.map(r=>({...r,elements:hl(r.elements)})),e&&this.setTheme(e)},setTemplates(t){this.templates=t},addSlide(t){const e=Array.isArray(t)?t:[t];for(const n of e)n.sectionTag&&delete n.sectionTag,n.elements=hl(n.elements);const r=this.slideIndex+1;this.slides.splice(r,0,...e),this.slideIndex=r},updateSlide(t,e){const r=e?this.slides.findIndex(i=>i.id===e):this.slideIndex,n=t.elements?{...t,elements:hl(t.elements)}:t;this.slides[r]={...this.slides[r],...n}},removeSlideProps(t){const{id:e,propName:r}=t,n=this.slides.map(i=>i.id===e?yT.omit(i,r):i);this.slides=n},deleteSlide(t){const e=Array.isArray(t)?t:[t],r=JSON.parse(JSON.stringify(this.slides)),n=[];for(const o of e){const s=r.findIndex(u=>u.id===o);n.push(s);const l=r[s].sectionTag;if(l){const u=r[s+1];u&&!u.sectionTag&&(delete r[s].sectionTag,r[s+1].sectionTag=l)}r.splice(s,1)}let i=Math.min(...n);const a=r.length-1;i>a&&(i=a),this.slideIndex=i,this.slides=r},updateSlideIndex(t){this.slideIndex=t},addElement(t){const e=Array.isArray(t)?t:[t],n=[...this.slides[this.slideIndex].elements,...e];this.slides[this.slideIndex].elements=hl(n)},deleteElement(t){const e=Array.isArray(t)?t:[t],n=this.slides[this.slideIndex].elements.filter(i=>!e.includes(i.id));this.slides[this.slideIndex].elements=hl(n)},updateElement(t){const{id:e,props:r,slideId:n}=t,i=typeof e=="string"?[e]:e,a=n?this.slides.findIndex(h=>h.id===n):this.slideIndex,o=this.slides[a],s=Object.keys(r);let l=!1;const u=o.elements.map(h=>i.includes(h.id)?(MT(h,s)&&(l=!0),{...h,...r}):h),c="left"in r||"top"in r?GN(u,o.elements):u;this.slides[a].elements=l?hl(c):c},removeElementProps(t){const{id:e,propName:r}=t,n=typeof r=="string"?[r]:r,i=this.slideIndex,a=this.slides[i];let o=!1;const s=a.elements.map(l=>l.id!==e?l:(MT(l,n)&&(o=!0),yT.omit(l,n)));this.slides[i].elements=o?hl(s):s}}}),YN=LB("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")(10);var kT={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(cl,function(){var r=function(m,x){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var D in M)Object.prototype.hasOwnProperty.call(M,D)&&(T[D]=M[D])})(m,x)},n=function(){return(n=Object.assign||function(m){for(var x,T=1,M=arguments.length;T<M;T++)for(var D in x=arguments[T])Object.prototype.hasOwnProperty.call(x,D)&&(m[D]=x[D]);return m}).apply(this,arguments)};function i(m,x,T){for(var M,D=0,B=x.length;D<B;D++)!M&&D in x||((M=M||Array.prototype.slice.call(x,0,D))[D]=x[D]);return m.concat(M||Array.prototype.slice.call(x))}var a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:cl,o=Object.keys,s=Array.isArray;function l(m,x){return typeof x!="object"||o(x).forEach(function(T){m[T]=x[T]}),m}typeof Promise>"u"||a.Promise||(a.Promise=Promise);var u=Object.getPrototypeOf,c={}.hasOwnProperty;function h(m,x){return c.call(m,x)}function p(m,x){typeof x=="function"&&(x=x(u(m))),(typeof Reflect>"u"?o:Reflect.ownKeys)(x).forEach(function(T){g(m,T,x[T])})}var d=Object.defineProperty;function g(m,x,T,M){d(m,x,l(T&&h(T,"get")&&typeof T.get=="function"?{get:T.get,set:T.set,configurable:!0}:{value:T,configurable:!0,writable:!0},M))}function y(m){return{from:function(x){return m.prototype=Object.create(x.prototype),g(m.prototype,"constructor",m),{extend:p.bind(null,m.prototype)}}}}var w=Object.getOwnPropertyDescriptor,b=[].slice;function S(m,x,T){return b.call(m,x,T)}function A(m,x){return x(m)}function I(m){if(!m)throw new Error("Assertion Failed")}function L(m){a.setImmediate?setImmediate(m):setTimeout(m,0)}function k(m,x){if(typeof x=="string"&&h(m,x))return m[x];if(!x)return m;if(typeof x!="string"){for(var T=[],M=0,D=x.length;M<D;++M){var B=k(m,x[M]);T.push(B)}return T}var U=x.indexOf(".");if(U!==-1){var j=m[x.substr(0,U)];return j==null?void 0:k(j,x.substr(U+1))}}function P(m,x,T){if(m&&x!==void 0&&!("isFrozen"in Object&&Object.isFrozen(m)))if(typeof x!="string"&&"length"in x){I(typeof T!="string"&&"length"in T);for(var M=0,D=x.length;M<D;++M)P(m,x[M],T[M])}else{var B,U,j=x.indexOf(".");j!==-1?(B=x.substr(0,j),(U=x.substr(j+1))===""?T===void 0?s(m)&&!isNaN(parseInt(B))?m.splice(B,1):delete m[B]:m[B]=T:P(j=!(j=m[B])||!h(m,B)?m[B]={}:j,U,T)):T===void 0?s(m)&&!isNaN(parseInt(x))?m.splice(x,1):delete m[x]:m[x]=T}}function z(m){var x,T={};for(x in m)h(m,x)&&(T[x]=m[x]);return T}var F=[].concat;function W(m){return F.apply([],m)}var xt="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(W([8,16,32,64].map(function(m){return["Int","Uint","Float"].map(function(x){return x+m+"Array"})}))).filter(function(m){return a[m]}),G=new Set(xt.map(function(m){return a[m]})),K=null;function q(m){return K=new WeakMap,m=function x(T){if(!T||typeof T!="object")return T;var M=K.get(T);if(M)return M;if(s(T)){M=[],K.set(T,M);for(var D=0,B=T.length;D<B;++D)M.push(x(T[D]))}else if(G.has(T.constructor))M=T;else{var U,j=u(T);for(U in M=j===Object.prototype?{}:Object.create(j),K.set(T,M),T)h(T,U)&&(M[U]=x(T[U]))}return M}(m),K=null,m}var ie={}.toString;function ve(m){return ie.call(m).slice(8,-1)}var ye=typeof Symbol<"u"?Symbol.iterator:"@@iterator",be=typeof ye=="symbol"?function(m){var x;return m!=null&&(x=m[ye])&&x.apply(m)}:function(){return null};function ue(m,x){return x=m.indexOf(x),0<=x&&m.splice(x,1),0<=x}var Me={};function ke(m){var x,T,M,D;if(arguments.length===1){if(s(m))return m.slice();if(this===Me&&typeof m=="string")return[m];if(D=be(m)){for(T=[];!(M=D.next()).done;)T.push(M.value);return T}if(m==null)return[m];if(typeof(x=m.length)!="number")return[m];for(T=new Array(x);x--;)T[x]=m[x];return T}for(x=arguments.length,T=new Array(x);x--;)T[x]=arguments[x];return T}var ce=typeof Symbol<"u"?function(m){return m[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Be=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Zn=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Be),fe={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Pe(m,x){this.name=m,this.message=x}function Qe(m,x){return m+". Errors: "+Object.keys(x).map(function(T){return x[T].toString()}).filter(function(T,M,D){return D.indexOf(T)===M}).join(`
|
|
63
|
+
`)}function Ae(m,x,T,M){this.failures=x,this.failedKeys=M,this.successCount=T,this.message=Qe(m,x)}function Oe(m,x){this.name="BulkError",this.failures=Object.keys(x).map(function(T){return x[T]}),this.failuresByPos=x,this.message=Qe(m,this.failures)}y(Pe).from(Error).extend({toString:function(){return this.name+": "+this.message}}),y(Ae).from(Pe),y(Oe).from(Pe);var lt=Zn.reduce(function(m,x){return m[x]=x+"Error",m},{}),dt=Pe,$e=Zn.reduce(function(m,x){var T=x+"Error";function M(D,B){this.name=T,D?typeof D=="string"?(this.message="".concat(D).concat(B?`
|
|
64
|
+
`+B:""),this.inner=B||null):typeof D=="object"&&(this.message="".concat(D.name," ").concat(D.message),this.inner=D):(this.message=fe[x]||T,this.inner=null)}return y(M).from(dt),m[x]=M,m},{});$e.Syntax=SyntaxError,$e.Type=TypeError,$e.Range=RangeError;var Tt=Be.reduce(function(m,x){return m[x+"Error"]=$e[x],m},{}),rt=Zn.reduce(function(m,x){return["Syntax","Type","Range"].indexOf(x)===-1&&(m[x+"Error"]=$e[x]),m},{});function $(){}function J(m){return m}function se(m,x){return m==null||m===J?x:function(T){return x(m(T))}}function Te(m,x){return function(){m.apply(this,arguments),x.apply(this,arguments)}}function xe(m,x){return m===$?x:function(){var T=m.apply(this,arguments);T!==void 0&&(arguments[0]=T);var M=this.onsuccess,D=this.onerror;this.onsuccess=null,this.onerror=null;var B=x.apply(this,arguments);return M&&(this.onsuccess=this.onsuccess?Te(M,this.onsuccess):M),D&&(this.onerror=this.onerror?Te(D,this.onerror):D),B!==void 0?B:T}}function we(m,x){return m===$?x:function(){m.apply(this,arguments);var T=this.onsuccess,M=this.onerror;this.onsuccess=this.onerror=null,x.apply(this,arguments),T&&(this.onsuccess=this.onsuccess?Te(T,this.onsuccess):T),M&&(this.onerror=this.onerror?Te(M,this.onerror):M)}}function de(m,x){return m===$?x:function(T){var M=m.apply(this,arguments);l(T,M);var D=this.onsuccess,B=this.onerror;return this.onsuccess=null,this.onerror=null,T=x.apply(this,arguments),D&&(this.onsuccess=this.onsuccess?Te(D,this.onsuccess):D),B&&(this.onerror=this.onerror?Te(B,this.onerror):B),M===void 0?T===void 0?void 0:T:l(M,T)}}function le(m,x){return m===$?x:function(){return x.apply(this,arguments)!==!1&&m.apply(this,arguments)}}function Se(m,x){return m===$?x:function(){var T=m.apply(this,arguments);if(T&&typeof T.then=="function"){for(var M=this,D=arguments.length,B=new Array(D);D--;)B[D]=arguments[D];return T.then(function(){return x.apply(M,B)})}return x.apply(this,arguments)}}rt.ModifyError=Ae,rt.DexieError=Pe,rt.BulkError=Oe;var pe=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Ze(m){pe=m}var He={},nt=100,xt=typeof Promise>"u"?[]:function(){var m=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[m,u(m),m];var x=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[x,u(x),m]}(),Be=xt[0],Zn=xt[1],xt=xt[2],Zn=Zn&&Zn.then,Mt=Be&&Be.constructor,Rt=!!xt,Qt=function(m,x){$i.push([m,x]),Xr&&(queueMicrotask(Fg),Xr=!1)},wr=!0,Xr=!0,Lr=[],Yn=[],Za=J,pr={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:$,pgp:!1,env:{},finalize:$},Xe=pr,$i=[],zi=0,xf=[];function Ue(m){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var x=this._PSD=Xe;if(typeof m!="function"){if(m!==He)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&Kh(this,this._value))}this._state=null,this._value=null,++x.ref,function T(M,D){try{D(function(B){if(M._state===null){if(B===M)throw new TypeError("A promise cannot be resolved with itself.");var U=M._lib&&Ds();B&&typeof B.then=="function"?T(M,function(j,re){B instanceof Ue?B._then(j,re):B.then(j,re)}):(M._state=!0,M._value=B,Ng(M)),U&&ks()}},Kh.bind(null,M))}catch(B){Kh(M,B)}}(this,m)}var Sf={get:function(){var m=Xe,x=Af;function T(M,D){var B=this,U=!m.global&&(m!==Xe||x!==Af),j=U&&!Qa(),re=new Ue(function(R,V){Yh(B,new qh(zg(M,m,U,j),zg(D,m,U,j),R,V,m))});return this._consoleTask&&(re._consoleTask=this._consoleTask),re}return T.prototype=He,T},set:function(m){g(this,"then",m&&m.prototype===He?Sf:{get:function(){return m},set:Sf.set})}};function qh(m,x,T,M,D){this.onFulfilled=typeof m=="function"?m:null,this.onRejected=typeof x=="function"?x:null,this.resolve=T,this.reject=M,this.psd=D}function Kh(m,x){var T,M;Yn.push(x),m._state===null&&(T=m._lib&&Ds(),x=Za(x),m._state=!1,m._value=x,M=m,Lr.some(function(D){return D._value===M._value})||Lr.push(M),Ng(m),T&&ks())}function Ng(m){var x=m._listeners;m._listeners=[];for(var T=0,M=x.length;T<M;++T)Yh(m,x[T]);var D=m._PSD;--D.ref||D.finalize(),zi===0&&(++zi,Qt(function(){--zi==0&&Xh()},[]))}function Yh(m,x){if(m._state!==null){var T=m._state?x.onFulfilled:x.onRejected;if(T===null)return(m._state?x.resolve:x.reject)(m._value);++x.psd.ref,++zi,Qt(Eb,[T,m,x])}else m._listeners.push(x)}function Eb(m,x,T){try{var M,D=x._value;!x._state&&Yn.length&&(Yn=[]),M=pe&&x._consoleTask?x._consoleTask.run(function(){return m(D)}):m(D),x._state||Yn.indexOf(D)!==-1||function(B){for(var U=Lr.length;U;)if(Lr[--U]._value===B._value)return Lr.splice(U,1)}(x),T.resolve(M)}catch(B){T.reject(B)}finally{--zi==0&&Xh(),--T.psd.ref||T.psd.finalize()}}function Fg(){ko(pr,function(){Ds()&&ks()})}function Ds(){var m=wr;return Xr=wr=!1,m}function ks(){var m,x,T;do for(;0<$i.length;)for(m=$i,$i=[],T=m.length,x=0;x<T;++x){var M=m[x];M[0].apply(null,M[1])}while(0<$i.length);Xr=wr=!0}function Xh(){var m=Lr;Lr=[],m.forEach(function(M){M._PSD.onunhandled.call(null,M._value,M)});for(var x=xf.slice(0),T=x.length;T;)x[--T]()}function Ls(m){return new Ue(He,!1,m)}function gr(m,x){var T=Xe;return function(){var M=Ds(),D=Xe;try{return eo(T,!0),m.apply(this,arguments)}catch(B){x&&x(B)}finally{eo(D,!1),M&&ks()}}}p(Ue.prototype,{then:Sf,_then:function(m,x){Yh(this,new qh(null,null,m,x,Xe))},catch:function(m){if(arguments.length===1)return this.then(null,m);var x=m,T=arguments[1];return typeof x=="function"?this.then(null,function(M){return(M instanceof x?T:Ls)(M)}):this.then(null,function(M){return(M&&M.name===x?T:Ls)(M)})},finally:function(m){return this.then(function(x){return Ue.resolve(m()).then(function(){return x})},function(x){return Ue.resolve(m()).then(function(){return Ls(x)})})},timeout:function(m,x){var T=this;return m<1/0?new Ue(function(M,D){var B=setTimeout(function(){return D(new $e.Timeout(x))},m);T.then(M,D).finally(clearTimeout.bind(null,B))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&g(Ue.prototype,Symbol.toStringTag,"Dexie.Promise"),pr.env=$g(),p(Ue,{all:function(){var m=ke.apply(null,arguments).map(Jl);return new Ue(function(x,T){m.length===0&&x([]);var M=m.length;m.forEach(function(D,B){return Ue.resolve(D).then(function(U){m[B]=U,--M||x(m)},T)})})},resolve:function(m){return m instanceof Ue?m:m&&typeof m.then=="function"?new Ue(function(x,T){m.then(x,T)}):new Ue(He,!0,m)},reject:Ls,race:function(){var m=ke.apply(null,arguments).map(Jl);return new Ue(function(x,T){m.map(function(M){return Ue.resolve(M).then(x,T)})})},PSD:{get:function(){return Xe},set:function(m){return Xe=m}},totalEchoes:{get:function(){return Af}},newPSD:Ja,usePSD:ko,scheduler:{get:function(){return Qt},set:function(m){Qt=m}},rejectionMapper:{get:function(){return Za},set:function(m){Za=m}},follow:function(m,x){return new Ue(function(T,M){return Ja(function(D,B){var U=Xe;U.unhandleds=[],U.onunhandled=B,U.finalize=Te(function(){var j,re=this;j=function(){re.unhandleds.length===0?D():B(re.unhandleds[0])},xf.push(function R(){j(),xf.splice(xf.indexOf(R),1)}),++zi,Qt(function(){--zi==0&&Xh()},[])},U.finalize),m()},x,T,M)})}}),Mt&&(Mt.allSettled&&g(Ue,"allSettled",function(){var m=ke.apply(null,arguments).map(Jl);return new Ue(function(x){m.length===0&&x([]);var T=m.length,M=new Array(T);m.forEach(function(D,B){return Ue.resolve(D).then(function(U){return M[B]={status:"fulfilled",value:U}},function(U){return M[B]={status:"rejected",reason:U}}).then(function(){return--T||x(M)})})})}),Mt.any&&typeof AggregateError<"u"&&g(Ue,"any",function(){var m=ke.apply(null,arguments).map(Jl);return new Ue(function(x,T){m.length===0&&T(new AggregateError([]));var M=m.length,D=new Array(M);m.forEach(function(B,U){return Ue.resolve(B).then(function(j){return x(j)},function(j){D[U]=j,--M||T(new AggregateError(D))})})})}),Mt.withResolvers&&(Ue.withResolvers=Mt.withResolvers));var Er={awaits:0,echoes:0,id:0},Pb=0,Tf=[],Cf=0,Af=0,Rb=0;function Ja(m,x,T,M){var D=Xe,B=Object.create(D);return B.parent=D,B.ref=0,B.global=!1,B.id=++Rb,pr.env,B.env=Rt?{Promise:Ue,PromiseProp:{value:Ue,configurable:!0,writable:!0},all:Ue.all,race:Ue.race,allSettled:Ue.allSettled,any:Ue.any,resolve:Ue.resolve,reject:Ue.reject}:{},x&&l(B,x),++D.ref,B.finalize=function(){--this.parent.ref||this.parent.finalize()},M=ko(B,m,T,M),B.ref===0&&B.finalize(),M}function Es(){return Er.id||(Er.id=++Pb),++Er.awaits,Er.echoes+=nt,Er.id}function Qa(){return!!Er.awaits&&(--Er.awaits==0&&(Er.id=0),Er.echoes=Er.awaits*nt,!0)}function Jl(m){return Er.echoes&&m&&m.constructor===Mt?(Es(),m.then(function(x){return Qa(),x},function(x){return Qa(),mr(x)})):m}function Ob(){var m=Tf[Tf.length-1];Tf.pop(),eo(m,!1)}function eo(m,x){var T,M=Xe;(x?!Er.echoes||Cf++&&m===Xe:!Cf||--Cf&&m===Xe)||queueMicrotask(x?(function(D){++Af,Er.echoes&&--Er.echoes!=0||(Er.echoes=Er.awaits=Er.id=0),Tf.push(Xe),eo(D,!0)}).bind(null,m):Ob),m!==Xe&&(Xe=m,M===pr&&(pr.env=$g()),Rt&&(T=pr.env.Promise,x=m.env,(M.global||m.global)&&(Object.defineProperty(a,"Promise",x.PromiseProp),T.all=x.all,T.race=x.race,T.resolve=x.resolve,T.reject=x.reject,x.allSettled&&(T.allSettled=x.allSettled),x.any&&(T.any=x.any))))}function $g(){var m=a.Promise;return Rt?{Promise:m,PromiseProp:Object.getOwnPropertyDescriptor(a,"Promise"),all:m.all,race:m.race,allSettled:m.allSettled,any:m.any,resolve:m.resolve,reject:m.reject}:{}}function ko(m,x,T,M,D){var B=Xe;try{return eo(m,!0),x(T,M,D)}finally{eo(B,!1)}}function zg(m,x,T,M){return typeof m!="function"?m:function(){var D=Xe;T&&Es(),eo(x,!0);try{return m.apply(this,arguments)}finally{eo(D,!1),M&&queueMicrotask(Qa)}}}function jh(m){Promise===Mt&&Er.echoes===0?Cf===0?m():enqueueNativeMicroTask(m):setTimeout(m,0)}(""+Zn).indexOf("[native code]")===-1&&(Es=Qa=$);var mr=Ue.reject,Lo="",Xn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Hg="String expected.",Ps=[],Mf="__dbnames",If="readonly",Df="readwrite";function to(m,x){return m?x?function(){return m.apply(this,arguments)&&x.apply(this,arguments)}:m:x}var Vg={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function kf(m){return typeof m!="string"||/\./.test(m)?function(x){return x}:function(x){return x[m]===void 0&&m in x&&delete(x=q(x))[m],x}}function Gg(){throw $e.Type()}function Ft(m,x){try{var T=Zh(m),M=Zh(x);if(T!==M)return T==="Array"?1:M==="Array"?-1:T==="binary"?1:M==="binary"?-1:T==="string"?1:M==="string"?-1:T==="Date"?1:M!=="Date"?NaN:-1;switch(T){case"number":case"Date":case"string":return x<m?1:m<x?-1:0;case"binary":return function(D,B){for(var U=D.length,j=B.length,re=U<j?U:j,R=0;R<re;++R)if(D[R]!==B[R])return D[R]<B[R]?-1:1;return U===j?0:U<j?-1:1}(Jh(m),Jh(x));case"Array":return function(D,B){for(var U=D.length,j=B.length,re=U<j?U:j,R=0;R<re;++R){var V=Ft(D[R],B[R]);if(V!==0)return V}return U===j?0:U<j?-1:1}(m,x)}}catch{}return NaN}function Zh(m){var x=typeof m;return x!="object"?x:ArrayBuffer.isView(m)?"binary":(m=ve(m),m==="ArrayBuffer"?"binary":m)}function Jh(m){return m instanceof Uint8Array?m:ArrayBuffer.isView(m)?new Uint8Array(m.buffer,m.byteOffset,m.byteLength):new Uint8Array(m)}var Qh=(rr.prototype._trans=function(m,x,T){var M=this._tx||Xe.trans,D=this.name,B=pe&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(m==="readonly"?"read":"write"," ").concat(this.name));function U(R,V,O){if(!O.schema[D])throw new $e.NotFound("Table "+D+" not part of transaction");return x(O.idbtrans,O)}var j=Ds();try{var re=M&&M.db._novip===this.db._novip?M===Xe.trans?M._promise(m,U,T):Ja(function(){return M._promise(m,U,T)},{trans:M,transless:Xe.transless||Xe}):function R(V,O,Z,Y){if(V.idbdb&&(V._state.openComplete||Xe.letThrough||V._vip)){var ee=V._createTransaction(O,Z,V._dbSchema);try{ee.create(),V._state.PR1398_maxLoop=3}catch(ae){return ae.name===lt.InvalidState&&V.isOpen()&&0<--V._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),V.close({disableAutoOpen:!1}),V.open().then(function(){return R(V,O,Z,Y)})):mr(ae)}return ee._promise(O,function(ae,Q){return Ja(function(){return Xe.trans=ee,Y(ae,Q,ee)})}).then(function(ae){if(O==="readwrite")try{ee.idbtrans.commit()}catch{}return O==="readonly"?ae:ee._completion.then(function(){return ae})})}if(V._state.openComplete)return mr(new $e.DatabaseClosed(V._state.dbOpenError));if(!V._state.isBeingOpened){if(!V._state.autoOpen)return mr(new $e.DatabaseClosed);V.open().catch($)}return V._state.dbReadyPromise.then(function(){return R(V,O,Z,Y)})}(this.db,m,[this.name],U);return B&&(re._consoleTask=B,re=re.catch(function(R){return console.trace(R),mr(R)})),re}finally{j&&ks()}},rr.prototype.get=function(m,x){var T=this;return m&&m.constructor===Object?this.where(m).first(x):m==null?mr(new $e.Type("Invalid argument to Table.get()")):this._trans("readonly",function(M){return T.core.get({trans:M,key:m}).then(function(D){return T.hook.reading.fire(D)})}).then(x)},rr.prototype.where=function(m){if(typeof m=="string")return new this.db.WhereClause(this,m);if(s(m))return new this.db.WhereClause(this,"[".concat(m.join("+"),"]"));var x=o(m);if(x.length===1)return this.where(x[0]).equals(m[x[0]]);var T=this.schema.indexes.concat(this.schema.primKey).filter(function(j){if(j.compound&&x.every(function(R){return 0<=j.keyPath.indexOf(R)})){for(var re=0;re<x.length;++re)if(x.indexOf(j.keyPath[re])===-1)return!1;return!0}return!1}).sort(function(j,re){return j.keyPath.length-re.keyPath.length})[0];if(T&&this.db._maxKey!==Lo){var B=T.keyPath.slice(0,x.length);return this.where(B).equals(B.map(function(re){return m[re]}))}!T&&pe&&console.warn("The query ".concat(JSON.stringify(m)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(x.join("+"),"]"));var M=this.schema.idxByName;function D(j,re){return Ft(j,re)===0}var U=x.reduce(function(O,re){var R=O[0],V=O[1],O=M[re],Z=m[re];return[R||O,R||!O?to(V,O&&O.multi?function(Y){return Y=k(Y,re),s(Y)&&Y.some(function(ee){return D(Z,ee)})}:function(Y){return D(Z,k(Y,re))}):V]},[null,null]),B=U[0],U=U[1];return B?this.where(B.name).equals(m[B.keyPath]).filter(U):T?this.filter(U):this.where(x).equals("")},rr.prototype.filter=function(m){return this.toCollection().and(m)},rr.prototype.count=function(m){return this.toCollection().count(m)},rr.prototype.offset=function(m){return this.toCollection().offset(m)},rr.prototype.limit=function(m){return this.toCollection().limit(m)},rr.prototype.each=function(m){return this.toCollection().each(m)},rr.prototype.toArray=function(m){return this.toCollection().toArray(m)},rr.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},rr.prototype.orderBy=function(m){return new this.db.Collection(new this.db.WhereClause(this,s(m)?"[".concat(m.join("+"),"]"):m))},rr.prototype.reverse=function(){return this.toCollection().reverse()},rr.prototype.mapToClass=function(m){var x,T=this.db,M=this.name;function D(){return x!==null&&x.apply(this,arguments)||this}(this.schema.mappedClass=m).prototype instanceof Gg&&(function(re,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function V(){this.constructor=re}r(re,R),re.prototype=R===null?Object.create(R):(V.prototype=R.prototype,new V)}(D,x=m),Object.defineProperty(D.prototype,"db",{get:function(){return T},enumerable:!1,configurable:!0}),D.prototype.table=function(){return M},m=D);for(var B=new Set,U=m.prototype;U;U=u(U))Object.getOwnPropertyNames(U).forEach(function(re){return B.add(re)});function j(re){if(!re)return re;var R,V=Object.create(m.prototype);for(R in re)if(!B.has(R))try{V[R]=re[R]}catch{}return V}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=j,this.hook("reading",j),m},rr.prototype.defineClass=function(){return this.mapToClass(function(m){l(this,m)})},rr.prototype.add=function(m,x){var T=this,M=this.schema.primKey,D=M.auto,B=M.keyPath,U=m;return B&&D&&(U=kf(B)(m)),this._trans("readwrite",function(j){return T.core.mutate({trans:j,type:"add",keys:x!=null?[x]:null,values:[U]})}).then(function(j){return j.numFailures?Ue.reject(j.failures[0]):j.lastResult}).then(function(j){if(B)try{P(m,B,j)}catch{}return j})},rr.prototype.update=function(m,x){return typeof m!="object"||s(m)?this.where(":id").equals(m).modify(x):(m=k(m,this.schema.primKey.keyPath),m===void 0?mr(new $e.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(m).modify(x))},rr.prototype.put=function(m,x){var T=this,M=this.schema.primKey,D=M.auto,B=M.keyPath,U=m;return B&&D&&(U=kf(B)(m)),this._trans("readwrite",function(j){return T.core.mutate({trans:j,type:"put",values:[U],keys:x!=null?[x]:null})}).then(function(j){return j.numFailures?Ue.reject(j.failures[0]):j.lastResult}).then(function(j){if(B)try{P(m,B,j)}catch{}return j})},rr.prototype.delete=function(m){var x=this;return this._trans("readwrite",function(T){return x.core.mutate({trans:T,type:"delete",keys:[m]})}).then(function(T){return T.numFailures?Ue.reject(T.failures[0]):void 0})},rr.prototype.clear=function(){var m=this;return this._trans("readwrite",function(x){return m.core.mutate({trans:x,type:"deleteRange",range:Vg})}).then(function(x){return x.numFailures?Ue.reject(x.failures[0]):void 0})},rr.prototype.bulkGet=function(m){var x=this;return this._trans("readonly",function(T){return x.core.getMany({keys:m,trans:T}).then(function(M){return M.map(function(D){return x.hook.reading.fire(D)})})})},rr.prototype.bulkAdd=function(m,x,T){var M=this,D=Array.isArray(x)?x:void 0,B=(T=T||(D?void 0:x))?T.allKeys:void 0;return this._trans("readwrite",function(U){var R=M.schema.primKey,j=R.auto,R=R.keyPath;if(R&&D)throw new $e.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(D&&D.length!==m.length)throw new $e.InvalidArgument("Arguments objects and keys must have the same length");var re=m.length,R=R&&j?m.map(kf(R)):m;return M.core.mutate({trans:U,type:"add",keys:D,values:R,wantResults:B}).then(function(ee){var O=ee.numFailures,Z=ee.results,Y=ee.lastResult,ee=ee.failures;if(O===0)return B?Z:Y;throw new Oe("".concat(M.name,".bulkAdd(): ").concat(O," of ").concat(re," operations failed"),ee)})})},rr.prototype.bulkPut=function(m,x,T){var M=this,D=Array.isArray(x)?x:void 0,B=(T=T||(D?void 0:x))?T.allKeys:void 0;return this._trans("readwrite",function(U){var R=M.schema.primKey,j=R.auto,R=R.keyPath;if(R&&D)throw new $e.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(D&&D.length!==m.length)throw new $e.InvalidArgument("Arguments objects and keys must have the same length");var re=m.length,R=R&&j?m.map(kf(R)):m;return M.core.mutate({trans:U,type:"put",keys:D,values:R,wantResults:B}).then(function(ee){var O=ee.numFailures,Z=ee.results,Y=ee.lastResult,ee=ee.failures;if(O===0)return B?Z:Y;throw new Oe("".concat(M.name,".bulkPut(): ").concat(O," of ").concat(re," operations failed"),ee)})})},rr.prototype.bulkUpdate=function(m){var x=this,T=this.core,M=m.map(function(U){return U.key}),D=m.map(function(U){return U.changes}),B=[];return this._trans("readwrite",function(U){return T.getMany({trans:U,keys:M,cache:"clone"}).then(function(j){var re=[],R=[];m.forEach(function(O,Z){var Y=O.key,ee=O.changes,ae=j[Z];if(ae){for(var Q=0,he=Object.keys(ee);Q<he.length;Q++){var _e=he[Q],ge=ee[_e];if(_e===x.schema.primKey.keyPath){if(Ft(ge,Y)!==0)throw new $e.Constraint("Cannot update primary key in bulkUpdate()")}else P(ae,_e,ge)}B.push(Z),re.push(Y),R.push(ae)}});var V=re.length;return T.mutate({trans:U,type:"put",keys:re,values:R,updates:{keys:M,changeSpecs:D}}).then(function(O){var Z=O.numFailures,Y=O.failures;if(Z===0)return V;for(var ee=0,ae=Object.keys(Y);ee<ae.length;ee++){var Q,he=ae[ee],_e=B[Number(he)];_e!=null&&(Q=Y[he],delete Y[he],Y[_e]=Q)}throw new Oe("".concat(x.name,".bulkUpdate(): ").concat(Z," of ").concat(V," operations failed"),Y)})})})},rr.prototype.bulkDelete=function(m){var x=this,T=m.length;return this._trans("readwrite",function(M){return x.core.mutate({trans:M,type:"delete",keys:m})}).then(function(U){var D=U.numFailures,B=U.lastResult,U=U.failures;if(D===0)return B;throw new Oe("".concat(x.name,".bulkDelete(): ").concat(D," of ").concat(T," operations failed"),U)})},rr);function rr(){}function Ql(m){function x(U,j){if(j){for(var re=arguments.length,R=new Array(re-1);--re;)R[re-1]=arguments[re];return T[U].subscribe.apply(null,R),m}if(typeof U=="string")return T[U]}var T={};x.addEventType=B;for(var M=1,D=arguments.length;M<D;++M)B(arguments[M]);return x;function B(U,j,re){if(typeof U!="object"){var R;j=j||le;var V={subscribers:[],fire:re=re||$,subscribe:function(O){V.subscribers.indexOf(O)===-1&&(V.subscribers.push(O),V.fire=j(V.fire,O))},unsubscribe:function(O){V.subscribers=V.subscribers.filter(function(Z){return Z!==O}),V.fire=V.subscribers.reduce(j,re)}};return T[U]=x[U]=V}o(R=U).forEach(function(O){var Z=R[O];if(s(Z))B(O,R[O][0],R[O][1]);else{if(Z!=="asap")throw new $e.InvalidArgument("Invalid event config");var Y=B(O,J,function(){for(var ee=arguments.length,ae=new Array(ee);ee--;)ae[ee]=arguments[ee];Y.subscribers.forEach(function(Q){L(function(){Q.apply(null,ae)})})})}})}}function Rs(m,x){return y(x).from({prototype:m}),x}function ua(m,x){return!(m.filter||m.algorithm||m.or)&&(x?m.justLimit:!m.replayFilter)}function Lf(m,x){m.filter=to(m.filter,x)}function ev(m,x,T){var M=m.replayFilter;m.replayFilter=M?function(){return to(M(),x())}:x,m.justLimit=T&&!M}function eu(m,x){if(m.isPrimKey)return x.primaryKey;var T=x.getIndexByKeyPath(m.index);if(!T)throw new $e.Schema("KeyPath "+m.index+" on object store "+x.name+" is not indexed");return T}function tv(m,x,T){var M=eu(m,x.schema);return x.openCursor({trans:T,values:!m.keysOnly,reverse:m.dir==="prev",unique:!!m.unique,query:{index:M,range:m.range}})}function Os(m,x,T,M){var D=m.replayFilter?to(m.filter,m.replayFilter()):m.filter;if(m.or){var B={},U=function(j,re,R){var V,O;D&&!D(re,R,function(Z){return re.stop(Z)},function(Z){return re.fail(Z)})||((O=""+(V=re.primaryKey))=="[object ArrayBuffer]"&&(O=""+new Uint8Array(V)),h(B,O)||(B[O]=!0,x(j,re,R)))};return Promise.all([m.or._iterate(U,T),Wg(tv(m,M,T),m.algorithm,U,!m.keysOnly&&m.valueMapper)])}return Wg(tv(m,M,T),to(m.algorithm,D),x,!m.keysOnly&&m.valueMapper)}function Wg(m,x,T,M){var D=gr(M?function(B,U,j){return T(M(B),U,j)}:T);return m.then(function(B){if(B)return B.start(function(){var U=function(){return B.continue()};x&&!x(B,function(j){return U=j},function(j){B.stop(j),U=$},function(j){B.fail(j),U=$})||D(B.value,B,function(j){return U=j}),U()})})}var Bs=(Ef.prototype.execute=function(m){var x=this["@@propmod"];if(x.add!==void 0){var T=x.add;if(s(T))return i(i([],s(m)?m:[],!0),T).sort();if(typeof T=="number")return(Number(m)||0)+T;if(typeof T=="bigint")try{return BigInt(m)+T}catch{return BigInt(0)+T}throw new TypeError("Invalid term ".concat(T))}if(x.remove!==void 0){var M=x.remove;if(s(M))return s(m)?m.filter(function(D){return!M.includes(D)}).sort():[];if(typeof M=="number")return Number(m)-M;if(typeof M=="bigint")try{return BigInt(m)-M}catch{return BigInt(0)-M}throw new TypeError("Invalid subtrahend ".concat(M))}return T=(T=x.replacePrefix)===null||T===void 0?void 0:T[0],T&&typeof m=="string"&&m.startsWith(T)?x.replacePrefix[1]+m.substring(T.length):m},Ef);function Ef(m){this["@@propmod"]=m}var rv=(Ot.prototype._read=function(m,x){var T=this._ctx;return T.error?T.table._trans(null,mr.bind(null,T.error)):T.table._trans("readonly",m).then(x)},Ot.prototype._write=function(m){var x=this._ctx;return x.error?x.table._trans(null,mr.bind(null,x.error)):x.table._trans("readwrite",m,"locked")},Ot.prototype._addAlgorithm=function(m){var x=this._ctx;x.algorithm=to(x.algorithm,m)},Ot.prototype._iterate=function(m,x){return Os(this._ctx,m,x,this._ctx.table.core)},Ot.prototype.clone=function(m){var x=Object.create(this.constructor.prototype),T=Object.create(this._ctx);return m&&l(T,m),x._ctx=T,x},Ot.prototype.raw=function(){return this._ctx.valueMapper=null,this},Ot.prototype.each=function(m){var x=this._ctx;return this._read(function(T){return Os(x,m,T,x.table.core)})},Ot.prototype.count=function(m){var x=this;return this._read(function(T){var M=x._ctx,D=M.table.core;if(ua(M,!0))return D.count({trans:T,query:{index:eu(M,D.schema),range:M.range}}).then(function(U){return Math.min(U,M.limit)});var B=0;return Os(M,function(){return++B,!1},T,D).then(function(){return B})}).then(m)},Ot.prototype.sortBy=function(m,x){var T=m.split(".").reverse(),M=T[0],D=T.length-1;function B(re,R){return R?B(re[T[R]],R-1):re[M]}var U=this._ctx.dir==="next"?1:-1;function j(re,R){return Ft(B(re,D),B(R,D))*U}return this.toArray(function(re){return re.sort(j)}).then(x)},Ot.prototype.toArray=function(m){var x=this;return this._read(function(T){var M=x._ctx;if(M.dir==="next"&&ua(M,!0)&&0<M.limit){var D=M.valueMapper,B=eu(M,M.table.core.schema);return M.table.core.query({trans:T,limit:M.limit,values:!0,query:{index:B,range:M.range}}).then(function(j){return j=j.result,D?j.map(D):j})}var U=[];return Os(M,function(j){return U.push(j)},T,M.table.core).then(function(){return U})},m)},Ot.prototype.offset=function(m){var x=this._ctx;return m<=0||(x.offset+=m,ua(x)?ev(x,function(){var T=m;return function(M,D){return T===0||(T===1?--T:D(function(){M.advance(T),T=0}),!1)}}):ev(x,function(){var T=m;return function(){return--T<0}})),this},Ot.prototype.limit=function(m){return this._ctx.limit=Math.min(this._ctx.limit,m),ev(this._ctx,function(){var x=m;return function(T,M,D){return--x<=0&&M(D),0<=x}},!0),this},Ot.prototype.until=function(m,x){return Lf(this._ctx,function(T,M,D){return!m(T.value)||(M(D),x)}),this},Ot.prototype.first=function(m){return this.limit(1).toArray(function(x){return x[0]}).then(m)},Ot.prototype.last=function(m){return this.reverse().first(m)},Ot.prototype.filter=function(m){var x;return Lf(this._ctx,function(T){return m(T.value)}),(x=this._ctx).isMatch=to(x.isMatch,m),this},Ot.prototype.and=function(m){return this.filter(m)},Ot.prototype.or=function(m){return new this.db.WhereClause(this._ctx.table,m,this)},Ot.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},Ot.prototype.desc=function(){return this.reverse()},Ot.prototype.eachKey=function(m){var x=this._ctx;return x.keysOnly=!x.isMatch,this.each(function(T,M){m(M.key,M)})},Ot.prototype.eachUniqueKey=function(m){return this._ctx.unique="unique",this.eachKey(m)},Ot.prototype.eachPrimaryKey=function(m){var x=this._ctx;return x.keysOnly=!x.isMatch,this.each(function(T,M){m(M.primaryKey,M)})},Ot.prototype.keys=function(m){var x=this._ctx;x.keysOnly=!x.isMatch;var T=[];return this.each(function(M,D){T.push(D.key)}).then(function(){return T}).then(m)},Ot.prototype.primaryKeys=function(m){var x=this._ctx;if(x.dir==="next"&&ua(x,!0)&&0<x.limit)return this._read(function(M){var D=eu(x,x.table.core.schema);return x.table.core.query({trans:M,values:!1,limit:x.limit,query:{index:D,range:x.range}})}).then(function(M){return M.result}).then(m);x.keysOnly=!x.isMatch;var T=[];return this.each(function(M,D){T.push(D.primaryKey)}).then(function(){return T}).then(m)},Ot.prototype.uniqueKeys=function(m){return this._ctx.unique="unique",this.keys(m)},Ot.prototype.firstKey=function(m){return this.limit(1).keys(function(x){return x[0]}).then(m)},Ot.prototype.lastKey=function(m){return this.reverse().firstKey(m)},Ot.prototype.distinct=function(){var m=this._ctx,m=m.index&&m.table.schema.idxByName[m.index];if(!m||!m.multi)return this;var x={};return Lf(this._ctx,function(D){var M=D.primaryKey.toString(),D=h(x,M);return x[M]=!0,!D}),this},Ot.prototype.modify=function(m){var x=this,T=this._ctx;return this._write(function(M){var D,B,U;U=typeof m=="function"?m:(D=o(m),B=D.length,function(Q){for(var he=!1,_e=0;_e<B;++_e){var ge=D[_e],Ce=m[ge],Ne=k(Q,ge);Ce instanceof Bs?(P(Q,ge,Ce.execute(Ne)),he=!0):Ne!==Ce&&(P(Q,ge,Ce),he=!0)}return he});var j=T.table.core,O=j.schema.primaryKey,re=O.outbound,R=O.extractKey,V=200,O=x.db._options.modifyChunkSize;O&&(V=typeof O=="object"?O[j.name]||O["*"]||200:O);function Z(Q,ge){var _e=ge.failures,ge=ge.numFailures;ee+=Q-ge;for(var Ce=0,Ne=o(_e);Ce<Ne.length;Ce++){var Ve=Ne[Ce];Y.push(_e[Ve])}}var Y=[],ee=0,ae=[];return x.clone().primaryKeys().then(function(Q){function he(ge){var Ce=Math.min(V,Q.length-ge);return j.getMany({trans:M,keys:Q.slice(ge,ge+Ce),cache:"immutable"}).then(function(Ne){for(var Ve=[],Re=[],ze=re?[]:null,Le=[],Ge=0;Ge<Ce;++Ge){var Je=Ne[Ge],_t={value:q(Je),primKey:Q[ge+Ge]};U.call(_t,_t.value,_t)!==!1&&(_t.value==null?Le.push(Q[ge+Ge]):re||Ft(R(Je),R(_t.value))===0?(Re.push(_t.value),re&&ze.push(Q[ge+Ge])):(Le.push(Q[ge+Ge]),Ve.push(_t.value)))}return Promise.resolve(0<Ve.length&&j.mutate({trans:M,type:"add",values:Ve}).then(function(Lt){for(var Et in Lt.failures)Le.splice(parseInt(Et),1);Z(Ve.length,Lt)})).then(function(){return(0<Re.length||_e&&typeof m=="object")&&j.mutate({trans:M,type:"put",keys:ze,values:Re,criteria:_e,changeSpec:typeof m!="function"&&m,isAdditionalChunk:0<ge}).then(function(Lt){return Z(Re.length,Lt)})}).then(function(){return(0<Le.length||_e&&m===Pf)&&j.mutate({trans:M,type:"delete",keys:Le,criteria:_e,isAdditionalChunk:0<ge}).then(function(Lt){return Z(Le.length,Lt)})}).then(function(){return Q.length>ge+Ce&&he(ge+V)})})}var _e=ua(T)&&T.limit===1/0&&(typeof m!="function"||m===Pf)&&{index:T.index,range:T.range};return he(0).then(function(){if(0<Y.length)throw new Ae("Error modifying one or more objects",Y,ee,ae);return Q.length})})})},Ot.prototype.delete=function(){var m=this._ctx,x=m.range;return ua(m)&&(m.isPrimKey||x.type===3)?this._write(function(T){var M=m.table.core.schema.primaryKey,D=x;return m.table.core.count({trans:T,query:{index:M,range:D}}).then(function(B){return m.table.core.mutate({trans:T,type:"deleteRange",range:D}).then(function(U){var j=U.failures;if(U.lastResult,U.results,U=U.numFailures,U)throw new Ae("Could not delete some values",Object.keys(j).map(function(re){return j[re]}),B-U);return B-U})})}):this.modify(Pf)},Ot);function Ot(){}var Pf=function(m,x){return x.value=null};function Ug(m,x){return m<x?-1:m===x?0:1}function Bb(m,x){return x<m?-1:m===x?0:1}function _n(m,x,T){return m=m instanceof Kg?new m.Collection(m):m,m._ctx.error=new(T||TypeError)(x),m}function Eo(m){return new m.Collection(m,function(){return qg("")}).limit(0)}function tu(m,x,T,M){var D,B,U,j,re,R,V,O=T.length;if(!T.every(function(ee){return typeof ee=="string"}))return _n(m,Hg);function Z(ee){D=ee==="next"?function(Q){return Q.toUpperCase()}:function(Q){return Q.toLowerCase()},B=ee==="next"?function(Q){return Q.toLowerCase()}:function(Q){return Q.toUpperCase()},U=ee==="next"?Ug:Bb;var ae=T.map(function(Q){return{lower:B(Q),upper:D(Q)}}).sort(function(Q,he){return U(Q.lower,he.lower)});j=ae.map(function(Q){return Q.upper}),re=ae.map(function(Q){return Q.lower}),V=(R=ee)==="next"?"":M}Z("next"),m=new m.Collection(m,function(){return fa(j[0],re[O-1]+M)}),m._ondirectionchange=function(ee){Z(ee)};var Y=0;return m._addAlgorithm(function(ee,ae,Q){var he=ee.key;if(typeof he!="string")return!1;var _e=B(he);if(x(_e,re,Y))return!0;for(var ge=null,Ce=Y;Ce<O;++Ce){var Ne=function(Ve,Re,ze,Le,Ge,Je){for(var _t=Math.min(Ve.length,Le.length),Lt=-1,Et=0;Et<_t;++Et){var Pn=Re[Et];if(Pn!==Le[Et])return Ge(Ve[Et],ze[Et])<0?Ve.substr(0,Et)+ze[Et]+ze.substr(Et+1):Ge(Ve[Et],Le[Et])<0?Ve.substr(0,Et)+Le[Et]+ze.substr(Et+1):0<=Lt?Ve.substr(0,Lt)+Re[Lt]+ze.substr(Lt+1):null;Ge(Ve[Et],Pn)<0&&(Lt=Et)}return _t<Le.length&&Je==="next"?Ve+ze.substr(Ve.length):_t<Ve.length&&Je==="prev"?Ve.substr(0,ze.length):Lt<0?null:Ve.substr(0,Lt)+Le[Lt]+ze.substr(Lt+1)}(he,_e,j[Ce],re[Ce],U,R);Ne===null&&ge===null?Y=Ce+1:(ge===null||0<U(ge,Ne))&&(ge=Ne)}return ae(ge!==null?function(){ee.continue(ge+V)}:Q),!1}),m}function fa(m,x,T,M){return{type:2,lower:m,upper:x,lowerOpen:T,upperOpen:M}}function qg(m){return{type:1,lower:m,upper:m}}var Kg=(Object.defineProperty(Vr.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Vr.prototype.between=function(m,x,T,M){T=T!==!1,M=M===!0;try{return 0<this._cmp(m,x)||this._cmp(m,x)===0&&(T||M)&&(!T||!M)?Eo(this):new this.Collection(this,function(){return fa(m,x,!T,!M)})}catch{return _n(this,Xn)}},Vr.prototype.equals=function(m){return m==null?_n(this,Xn):new this.Collection(this,function(){return qg(m)})},Vr.prototype.above=function(m){return m==null?_n(this,Xn):new this.Collection(this,function(){return fa(m,void 0,!0)})},Vr.prototype.aboveOrEqual=function(m){return m==null?_n(this,Xn):new this.Collection(this,function(){return fa(m,void 0,!1)})},Vr.prototype.below=function(m){return m==null?_n(this,Xn):new this.Collection(this,function(){return fa(void 0,m,!1,!0)})},Vr.prototype.belowOrEqual=function(m){return m==null?_n(this,Xn):new this.Collection(this,function(){return fa(void 0,m)})},Vr.prototype.startsWith=function(m){return typeof m!="string"?_n(this,Hg):this.between(m,m+Lo,!0,!0)},Vr.prototype.startsWithIgnoreCase=function(m){return m===""?this.startsWith(m):tu(this,function(x,T){return x.indexOf(T[0])===0},[m],Lo)},Vr.prototype.equalsIgnoreCase=function(m){return tu(this,function(x,T){return x===T[0]},[m],"")},Vr.prototype.anyOfIgnoreCase=function(){var m=ke.apply(Me,arguments);return m.length===0?Eo(this):tu(this,function(x,T){return T.indexOf(x)!==-1},m,"")},Vr.prototype.startsWithAnyOfIgnoreCase=function(){var m=ke.apply(Me,arguments);return m.length===0?Eo(this):tu(this,function(x,T){return T.some(function(M){return x.indexOf(M)===0})},m,Lo)},Vr.prototype.anyOf=function(){var m=this,x=ke.apply(Me,arguments),T=this._cmp;try{x.sort(T)}catch{return _n(this,Xn)}if(x.length===0)return Eo(this);var M=new this.Collection(this,function(){return fa(x[0],x[x.length-1])});M._ondirectionchange=function(B){T=B==="next"?m._ascending:m._descending,x.sort(T)};var D=0;return M._addAlgorithm(function(B,U,j){for(var re=B.key;0<T(re,x[D]);)if(++D===x.length)return U(j),!1;return T(re,x[D])===0||(U(function(){B.continue(x[D])}),!1)}),M},Vr.prototype.notEqual=function(m){return this.inAnyRange([[-1/0,m],[m,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Vr.prototype.noneOf=function(){var m=ke.apply(Me,arguments);if(m.length===0)return new this.Collection(this);try{m.sort(this._ascending)}catch{return _n(this,Xn)}var x=m.reduce(function(T,M){return T?T.concat([[T[T.length-1][1],M]]):[[-1/0,M]]},null);return x.push([m[m.length-1],this.db._maxKey]),this.inAnyRange(x,{includeLowers:!1,includeUppers:!1})},Vr.prototype.inAnyRange=function(he,x){var T=this,M=this._cmp,D=this._ascending,B=this._descending,U=this._min,j=this._max;if(he.length===0)return Eo(this);if(!he.every(function(_e){return _e[0]!==void 0&&_e[1]!==void 0&&D(_e[0],_e[1])<=0}))return _n(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",$e.InvalidArgument);var re=!x||x.includeLowers!==!1,R=x&&x.includeUppers===!0,V,O=D;function Z(_e,ge){return O(_e[0],ge[0])}try{(V=he.reduce(function(_e,ge){for(var Ce=0,Ne=_e.length;Ce<Ne;++Ce){var Ve=_e[Ce];if(M(ge[0],Ve[1])<0&&0<M(ge[1],Ve[0])){Ve[0]=U(Ve[0],ge[0]),Ve[1]=j(Ve[1],ge[1]);break}}return Ce===Ne&&_e.push(ge),_e},[])).sort(Z)}catch{return _n(this,Xn)}var Y=0,ee=R?function(_e){return 0<D(_e,V[Y][1])}:function(_e){return 0<=D(_e,V[Y][1])},ae=re?function(_e){return 0<B(_e,V[Y][0])}:function(_e){return 0<=B(_e,V[Y][0])},Q=ee,he=new this.Collection(this,function(){return fa(V[0][0],V[V.length-1][1],!re,!R)});return he._ondirectionchange=function(_e){O=_e==="next"?(Q=ee,D):(Q=ae,B),V.sort(Z)},he._addAlgorithm(function(_e,ge,Ce){for(var Ne,Ve=_e.key;Q(Ve);)if(++Y===V.length)return ge(Ce),!1;return!ee(Ne=Ve)&&!ae(Ne)||(T._cmp(Ve,V[Y][1])===0||T._cmp(Ve,V[Y][0])===0||ge(function(){O===D?_e.continue(V[Y][0]):_e.continue(V[Y][1])}),!1)}),he},Vr.prototype.startsWithAnyOf=function(){var m=ke.apply(Me,arguments);return m.every(function(x){return typeof x=="string"})?m.length===0?Eo(this):this.inAnyRange(m.map(function(x){return[x,x+Lo]})):_n(this,"startsWithAnyOf() only works with strings")},Vr);function Vr(){}function gi(m){return gr(function(x){return ru(x),m(x.target.error),!1})}function ru(m){m.stopPropagation&&m.stopPropagation(),m.preventDefault&&m.preventDefault()}var nu="storagemutated",nv="x-storagemutated-1",ro=Ql(null,nu),iv=(Hi.prototype._lock=function(){return I(!Xe.global),++this._reculock,this._reculock!==1||Xe.global||(Xe.lockOwnerFor=this),this},Hi.prototype._unlock=function(){if(I(!Xe.global),--this._reculock==0)for(Xe.global||(Xe.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var m=this._blockedFuncs.shift();try{ko(m[1],m[0])}catch{}}return this},Hi.prototype._locked=function(){return this._reculock&&Xe.lockOwnerFor!==this},Hi.prototype.create=function(m){var x=this;if(!this.mode)return this;var T=this.db.idbdb,M=this.db._state.dbOpenError;if(I(!this.idbtrans),!m&&!T)switch(M&&M.name){case"DatabaseClosedError":throw new $e.DatabaseClosed(M);case"MissingAPIError":throw new $e.MissingAPI(M.message,M);default:throw new $e.OpenFailed(M)}if(!this.active)throw new $e.TransactionInactive;return I(this._completion._state===null),(m=this.idbtrans=m||(this.db.core||T).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=gr(function(D){ru(D),x._reject(m.error)}),m.onabort=gr(function(D){ru(D),x.active&&x._reject(new $e.Abort(m.error)),x.active=!1,x.on("abort").fire(D)}),m.oncomplete=gr(function(){x.active=!1,x._resolve(),"mutatedParts"in m&&ro.storagemutated.fire(m.mutatedParts)}),this},Hi.prototype._promise=function(m,x,T){var M=this;if(m==="readwrite"&&this.mode!=="readwrite")return mr(new $e.ReadOnly("Transaction is readonly"));if(!this.active)return mr(new $e.TransactionInactive);if(this._locked())return new Ue(function(B,U){M._blockedFuncs.push([function(){M._promise(m,x,T).then(B,U)},Xe])});if(T)return Ja(function(){var B=new Ue(function(U,j){M._lock();var re=x(U,j,M);re&&re.then&&re.then(U,j)});return B.finally(function(){return M._unlock()}),B._lib=!0,B});var D=new Ue(function(B,U){var j=x(B,U,M);j&&j.then&&j.then(B,U)});return D._lib=!0,D},Hi.prototype._root=function(){return this.parent?this.parent._root():this},Hi.prototype.waitFor=function(m){var x,T=this._root(),M=Ue.resolve(m);T._waitingFor?T._waitingFor=T._waitingFor.then(function(){return M}):(T._waitingFor=M,T._waitingQueue=[],x=T.idbtrans.objectStore(T.storeNames[0]),function B(){for(++T._spinCount;T._waitingQueue.length;)T._waitingQueue.shift()();T._waitingFor&&(x.get(-1/0).onsuccess=B)}());var D=T._waitingFor;return new Ue(function(B,U){M.then(function(j){return T._waitingQueue.push(gr(B.bind(null,j)))},function(j){return T._waitingQueue.push(gr(U.bind(null,j)))}).finally(function(){T._waitingFor===D&&(T._waitingFor=null)})})},Hi.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new $e.Abort))},Hi.prototype.table=function(m){var x=this._memoizedTables||(this._memoizedTables={});if(h(x,m))return x[m];var T=this.schema[m];if(!T)throw new $e.NotFound("Table "+m+" not part of transaction");return T=new this.db.Table(m,T,this),T.core=this.db.core.table(m),x[m]=T},Hi);function Hi(){}function av(m,x,T,M,D,B,U){return{name:m,keyPath:x,unique:T,multi:M,auto:D,compound:B,src:(T&&!U?"&":"")+(M?"*":"")+(D?"++":"")+Yg(x)}}function Yg(m){return typeof m=="string"?m:m?"["+[].join.call(m,"+")+"]":""}function ov(m,x,T){return{name:m,primKey:x,indexes:T,mappedClass:null,idxByName:(M=function(D){return[D.name,D]},T.reduce(function(D,B,U){return U=M(B,U),U&&(D[U[0]]=U[1]),D},{}))};var M}var iu=function(m){try{return m.only([[]]),iu=function(){return[[]]},[[]]}catch{return iu=function(){return Lo},Lo}};function nr(m){return m==null?function(){}:typeof m=="string"?(x=m).split(".").length===1?function(T){return T[x]}:function(T){return k(T,x)}:function(T){return k(T,m)};var x}function ir(m){return[].slice.call(m)}var Nb=0;function au(m){return m==null?":id":typeof m=="string"?m:"[".concat(m.join("+"),"]")}function Fb(m,x,re){function M(Q){if(Q.type===3)return null;if(Q.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var Y=Q.lower,ee=Q.upper,ae=Q.lowerOpen,Q=Q.upperOpen;return Y===void 0?ee===void 0?null:x.upperBound(ee,!!Q):ee===void 0?x.lowerBound(Y,!!ae):x.bound(Y,ee,!!ae,!!Q)}function D(Z){var Y,ee=Z.name;return{name:ee,schema:Z,mutate:function(ae){var Q=ae.trans,he=ae.type,_e=ae.keys,ge=ae.values,Ce=ae.range;return new Promise(function(Ne,Ve){Ne=gr(Ne);var Re=Q.objectStore(ee),ze=Re.keyPath==null,Le=he==="put"||he==="add";if(!Le&&he!=="delete"&&he!=="deleteRange")throw new Error("Invalid operation type: "+he);var Ge,Je=(_e||ge||{length:1}).length;if(_e&&ge&&_e.length!==ge.length)throw new Error("Given keys array must have same length as given values array.");if(Je===0)return Ne({numFailures:0,failures:{},results:[],lastResult:void 0});function _t(Gr){++Pn,ru(Gr)}var Lt=[],Et=[],Pn=0;if(he==="deleteRange"){if(Ce.type===4)return Ne({numFailures:Pn,failures:Et,results:[],lastResult:void 0});Ce.type===3?Lt.push(Ge=Re.clear()):Lt.push(Ge=Re.delete(M(Ce)))}else{var ze=Le?ze?[ge,_e]:[ge,null]:[_e,null],yt=ze[0],xr=ze[1];if(Le)for(var Br=0;Br<Je;++Br)Lt.push(Ge=xr&&xr[Br]!==void 0?Re[he](yt[Br],xr[Br]):Re[he](yt[Br])),Ge.onerror=_t;else for(Br=0;Br<Je;++Br)Lt.push(Ge=Re[he](yt[Br])),Ge.onerror=_t}function gu(Gr){Gr=Gr.target.result,Lt.forEach(function(io,Wf){return io.error!=null&&(Et[Wf]=io.error)}),Ne({numFailures:Pn,failures:Et,results:he==="delete"?_e:Lt.map(function(io){return io.result}),lastResult:Gr})}Ge.onerror=function(Gr){_t(Gr),gu(Gr)},Ge.onsuccess=gu})},getMany:function(ae){var Q=ae.trans,he=ae.keys;return new Promise(function(_e,ge){_e=gr(_e);for(var Ce,Ne=Q.objectStore(ee),Ve=he.length,Re=new Array(Ve),ze=0,Le=0,Ge=function(Lt){Lt=Lt.target,Re[Lt._pos]=Lt.result,++Le===ze&&_e(Re)},Je=gi(ge),_t=0;_t<Ve;++_t)he[_t]!=null&&((Ce=Ne.get(he[_t]))._pos=_t,Ce.onsuccess=Ge,Ce.onerror=Je,++ze);ze===0&&_e(Re)})},get:function(ae){var Q=ae.trans,he=ae.key;return new Promise(function(_e,ge){_e=gr(_e);var Ce=Q.objectStore(ee).get(he);Ce.onsuccess=function(Ne){return _e(Ne.target.result)},Ce.onerror=gi(ge)})},query:(Y=R,function(ae){return new Promise(function(Q,he){Q=gr(Q);var _e,ge,Ce,ze=ae.trans,Ne=ae.values,Ve=ae.limit,Ge=ae.query,Re=Ve===1/0?void 0:Ve,Le=Ge.index,Ge=Ge.range,ze=ze.objectStore(ee),Le=Le.isPrimaryKey?ze:ze.index(Le.name),Ge=M(Ge);if(Ve===0)return Q({result:[]});Y?((Re=Ne?Le.getAll(Ge,Re):Le.getAllKeys(Ge,Re)).onsuccess=function(Je){return Q({result:Je.target.result})},Re.onerror=gi(he)):(_e=0,ge=!Ne&&"openKeyCursor"in Le?Le.openKeyCursor(Ge):Le.openCursor(Ge),Ce=[],ge.onsuccess=function(Je){var _t=ge.result;return _t?(Ce.push(Ne?_t.value:_t.primaryKey),++_e===Ve?Q({result:Ce}):void _t.continue()):Q({result:Ce})},ge.onerror=gi(he))})}),openCursor:function(ae){var Q=ae.trans,he=ae.values,_e=ae.query,ge=ae.reverse,Ce=ae.unique;return new Promise(function(Ne,Ve){Ne=gr(Ne);var Le=_e.index,Re=_e.range,ze=Q.objectStore(ee),ze=Le.isPrimaryKey?ze:ze.index(Le.name),Le=ge?Ce?"prevunique":"prev":Ce?"nextunique":"next",Ge=!he&&"openKeyCursor"in ze?ze.openKeyCursor(M(Re),Le):ze.openCursor(M(Re),Le);Ge.onerror=gi(Ve),Ge.onsuccess=gr(function(Je){var _t,Lt,Et,Pn,yt=Ge.result;yt?(yt.___id=++Nb,yt.done=!1,_t=yt.continue.bind(yt),Lt=(Lt=yt.continuePrimaryKey)&&Lt.bind(yt),Et=yt.advance.bind(yt),Pn=function(){throw new Error("Cursor not stopped")},yt.trans=Q,yt.stop=yt.continue=yt.continuePrimaryKey=yt.advance=function(){throw new Error("Cursor not started")},yt.fail=gr(Ve),yt.next=function(){var xr=this,Br=1;return this.start(function(){return Br--?xr.continue():xr.stop()}).then(function(){return xr})},yt.start=function(xr){function Br(){if(Ge.result)try{xr()}catch(Gr){yt.fail(Gr)}else yt.done=!0,yt.start=function(){throw new Error("Cursor behind last entry")},yt.stop()}var gu=new Promise(function(Gr,io){Gr=gr(Gr),Ge.onerror=gi(io),yt.fail=io,yt.stop=function(Wf){yt.stop=yt.continue=yt.continuePrimaryKey=yt.advance=Pn,Gr(Wf)}});return Ge.onsuccess=gr(function(Gr){Ge.onsuccess=Br,Br()}),yt.continue=_t,yt.continuePrimaryKey=Lt,yt.advance=Et,Br(),gu},Ne(yt)):Ne(null)},Ve)})},count:function(ae){var Q=ae.query,he=ae.trans,_e=Q.index,ge=Q.range;return new Promise(function(Ce,Ne){var Ve=he.objectStore(ee),Re=_e.isPrimaryKey?Ve:Ve.index(_e.name),Ve=M(ge),Re=Ve?Re.count(Ve):Re.count();Re.onsuccess=gr(function(ze){return Ce(ze.target.result)}),Re.onerror=gi(Ne)})}}}var B,U,j,V=(U=re,j=ir((B=m).objectStoreNames),{schema:{name:B.name,tables:j.map(function(Z){return U.objectStore(Z)}).map(function(Z){var Y=Z.keyPath,Q=Z.autoIncrement,ee=s(Y),ae={},Q={name:Z.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:Y==null,compound:ee,keyPath:Y,autoIncrement:Q,unique:!0,extractKey:nr(Y)},indexes:ir(Z.indexNames).map(function(he){return Z.index(he)}).map(function(Ce){var _e=Ce.name,ge=Ce.unique,Ne=Ce.multiEntry,Ce=Ce.keyPath,Ne={name:_e,compound:s(Ce),keyPath:Ce,unique:ge,multiEntry:Ne,extractKey:nr(Ce)};return ae[au(Ce)]=Ne}),getIndexByKeyPath:function(he){return ae[au(he)]}};return ae[":id"]=Q.primaryKey,Y!=null&&(ae[au(Y)]=Q.primaryKey),Q})},hasGetAll:0<j.length&&"getAll"in U.objectStore(j[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),re=V.schema,R=V.hasGetAll,V=re.tables.map(D),O={};return V.forEach(function(Z){return O[Z.name]=Z}),{stack:"dbcore",transaction:m.transaction.bind(m),table:function(Z){if(!O[Z])throw new Error("Table '".concat(Z,"' not found"));return O[Z]},MIN_KEY:-1/0,MAX_KEY:iu(x),schema:re}}function $b(m,x,T,M){var D=T.IDBKeyRange;return T.indexedDB,{dbcore:(M=Fb(x,D,M),m.dbcore.reduce(function(B,U){return U=U.create,n(n({},B),U(B))},M))}}function Rf(m,M){var T=M.db,M=$b(m._middlewares,T,m._deps,M);m.core=M.dbcore,m.tables.forEach(function(D){var B=D.name;m.core.schema.tables.some(function(U){return U.name===B})&&(D.core=m.core.table(B),m[B]instanceof m.Table&&(m[B].core=D.core))})}function Of(m,x,T,M){T.forEach(function(D){var B=M[D];x.forEach(function(U){var j=function re(R,V){return w(R,V)||(R=u(R))&&re(R,V)}(U,D);(!j||"value"in j&&j.value===void 0)&&(U===m.Transaction.prototype||U instanceof m.Transaction?g(U,D,{get:function(){return this.table(D)},set:function(re){d(this,D,{value:re,writable:!0,configurable:!0,enumerable:!0})}}):U[D]=new m.Table(D,B))})})}function Bf(m,x){x.forEach(function(T){for(var M in T)T[M]instanceof m.Table&&delete T[M]})}function zb(m,x){return m._cfg.version-x._cfg.version}function jr(m,x,T,M){var D=m._dbSchema;T.objectStoreNames.contains("$meta")&&!D.$meta&&(D.$meta=ov("$meta",lv("")[0],[]),m._storeNames.push("$meta"));var B=m._createTransaction("readwrite",m._storeNames,D);B.create(T),B._completion.catch(M);var U=B._reject.bind(B),j=Xe.transless||Xe;Ja(function(){return Xe.trans=B,Xe.transless=j,x!==0?(Rf(m,T),R=x,((re=B).storeNames.includes("$meta")?re.table("$meta").get("version").then(function(V){return V??R}):Ue.resolve(R)).then(function(V){return Z=V,Y=B,ee=T,ae=[],V=(O=m)._versions,Q=O._dbSchema=ou(0,O.idbdb,ee),(V=V.filter(function(he){return he._cfg.version>=Z})).length!==0?(V.forEach(function(he){ae.push(function(){var _e=Q,ge=he._cfg.dbschema;su(O,_e,ee),su(O,ge,ee),Q=O._dbSchema=ge;var Ce=ca(_e,ge);Ce.add.forEach(function(Le){Nf(ee,Le[0],Le[1].primKey,Le[1].indexes)}),Ce.change.forEach(function(Le){if(Le.recreate)throw new $e.Upgrade("Not yet support for changing primary key");var Ge=ee.objectStore(Le.name);Le.add.forEach(function(Je){return fn(Ge,Je)}),Le.change.forEach(function(Je){Ge.deleteIndex(Je.name),fn(Ge,Je)}),Le.del.forEach(function(Je){return Ge.deleteIndex(Je)})});var Ne=he._cfg.contentUpgrade;if(Ne&&he._cfg.version>Z){Rf(O,ee),Y._memoizedTables={};var Ve=z(ge);Ce.del.forEach(function(Le){Ve[Le]=_e[Le]}),Bf(O,[O.Transaction.prototype]),Of(O,[O.Transaction.prototype],o(Ve),Ve),Y.schema=Ve;var Re,ze=ce(Ne);return ze&&Es(),Ce=Ue.follow(function(){var Le;(Re=Ne(Y))&&ze&&(Le=Qa.bind(null,null),Re.then(Le,Le))}),Re&&typeof Re.then=="function"?Ue.resolve(Re):Ce.then(function(){return Re})}}),ae.push(function(_e){var ge,Ce,Ne=he._cfg.dbschema;ge=Ne,Ce=_e,[].slice.call(Ce.db.objectStoreNames).forEach(function(Ve){return ge[Ve]==null&&Ce.db.deleteObjectStore(Ve)}),Bf(O,[O.Transaction.prototype]),Of(O,[O.Transaction.prototype],O._storeNames,O._dbSchema),Y.schema=O._dbSchema}),ae.push(function(_e){O.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(O.idbdb.version/10)===he._cfg.version?(O.idbdb.deleteObjectStore("$meta"),delete O._dbSchema.$meta,O._storeNames=O._storeNames.filter(function(ge){return ge!=="$meta"})):_e.objectStore("$meta").put(he._cfg.version,"version"))})}),function he(){return ae.length?Ue.resolve(ae.shift()(Y.idbtrans)).then(he):Ue.resolve()}().then(function(){Ff(Q,ee)})):Ue.resolve();var O,Z,Y,ee,ae,Q}).catch(U)):(o(D).forEach(function(V){Nf(T,V,D[V].primKey,D[V].indexes)}),Rf(m,T),void Ue.follow(function(){return m.on.populate.fire(B)}).catch(U));var re,R})}function sv(m,x){Ff(m._dbSchema,x),x.db.version%10!=0||x.objectStoreNames.contains("$meta")||x.db.createObjectStore("$meta").add(Math.ceil(x.db.version/10-1),"version");var T=ou(0,m.idbdb,x);su(m,m._dbSchema,x);for(var M=0,D=ca(T,m._dbSchema).change;M<D.length;M++){var B=function(U){if(U.change.length||U.recreate)return console.warn("Unable to patch indexes of table ".concat(U.name," because it has changes on the type of index or primary key.")),{value:void 0};var j=x.objectStore(U.name);U.add.forEach(function(re){pe&&console.debug("Dexie upgrade patch: Creating missing index ".concat(U.name,".").concat(re.src)),fn(j,re)})}(D[M]);if(typeof B=="object")return B.value}}function ca(m,x){var T,M={del:[],add:[],change:[]};for(T in m)x[T]||M.del.push(T);for(T in x){var D=m[T],B=x[T];if(D){var U={name:T,def:B,recreate:!1,del:[],add:[],change:[]};if(""+(D.primKey.keyPath||"")!=""+(B.primKey.keyPath||"")||D.primKey.auto!==B.primKey.auto)U.recreate=!0,M.change.push(U);else{var j=D.idxByName,re=B.idxByName,R=void 0;for(R in j)re[R]||U.del.push(R);for(R in re){var V=j[R],O=re[R];V?V.src!==O.src&&U.change.push(O):U.add.push(O)}(0<U.del.length||0<U.add.length||0<U.change.length)&&M.change.push(U)}}else M.add.push([T,B])}return M}function Nf(m,x,T,M){var D=m.db.createObjectStore(x,T.keyPath?{keyPath:T.keyPath,autoIncrement:T.auto}:{autoIncrement:T.auto});return M.forEach(function(B){return fn(D,B)}),D}function Ff(m,x){o(m).forEach(function(T){x.db.objectStoreNames.contains(T)||(pe&&console.debug("Dexie: Creating missing table",T),Nf(x,T,m[T].primKey,m[T].indexes))})}function fn(m,x){m.createIndex(x.name,x.keyPath,{unique:x.unique,multiEntry:x.multi})}function ou(m,x,T){var M={};return S(x.objectStoreNames,0).forEach(function(D){for(var B=T.objectStore(D),U=av(Yg(R=B.keyPath),R||"",!0,!1,!!B.autoIncrement,R&&typeof R!="string",!0),j=[],re=0;re<B.indexNames.length;++re){var V=B.index(B.indexNames[re]),R=V.keyPath,V=av(V.name,R,!!V.unique,!!V.multiEntry,!1,R&&typeof R!="string",!1);j.push(V)}M[D]=ov(D,U,j)}),M}function su(m,x,T){for(var M=T.db.objectStoreNames,D=0;D<M.length;++D){var B=M[D],U=T.objectStore(B);m._hasGetAll="getAll"in U;for(var j=0;j<U.indexNames.length;++j){var re=U.indexNames[j],R=U.index(re).keyPath,V=typeof R=="string"?R:"["+S(R).join("+")+"]";!x[B]||(R=x[B].idxByName[V])&&(R.name=re,delete x[B].idxByName[V],x[B].idxByName[re]=R)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&a.WorkerGlobalScope&&a instanceof a.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(m._hasGetAll=!1)}function lv(m){return m.split(",").map(function(x,T){var M=(x=x.trim()).replace(/([&*]|\+\+)/g,""),D=/^\[/.test(M)?M.match(/^\[(.*)\]$/)[1].split("+"):M;return av(M,D||null,/\&/.test(x),/\*/.test(x),/\+\+/.test(x),s(D),T===0)})}var Xg=(lu.prototype._parseStoresSpec=function(m,x){o(m).forEach(function(T){if(m[T]!==null){var M=lv(m[T]),D=M.shift();if(D.unique=!0,D.multi)throw new $e.Schema("Primary key cannot be multi-valued");M.forEach(function(B){if(B.auto)throw new $e.Schema("Only primary key can be marked as autoIncrement (++)");if(!B.keyPath)throw new $e.Schema("Index must have a name and cannot be an empty string")}),x[T]=ov(T,D,M)}})},lu.prototype.stores=function(T){var x=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,T):T;var T=x._versions,M={},D={};return T.forEach(function(B){l(M,B._cfg.storesSource),D=B._cfg.dbschema={},B._parseStoresSpec(M,D)}),x._dbSchema=D,Bf(x,[x._allTables,x,x.Transaction.prototype]),Of(x,[x._allTables,x,x.Transaction.prototype,this._cfg.tables],o(D),D),x._storeNames=o(D),this},lu.prototype.upgrade=function(m){return this._cfg.contentUpgrade=Se(this._cfg.contentUpgrade||$,m),this},lu);function lu(){}function $f(m,x){var T=m._dbNamesDB;return T||(T=m._dbNamesDB=new da(Mf,{addons:[],indexedDB:m,IDBKeyRange:x})).version(1).stores({dbnames:"name"}),T.table("dbnames")}function cn(m){return m&&typeof m.databases=="function"}function uv(m){return Ja(function(){return Xe.letThrough=!0,m()})}function bn(m){return!("from"in m)}var rn=function(m,x){if(!this){var T=new rn;return m&&"d"in m&&l(T,m),T}l(this,arguments.length?{d:1,from:m,to:1<arguments.length?x:m}:{d:0})};function Ns(m,x,T){var M=Ft(x,T);if(!isNaN(M)){if(0<M)throw RangeError();if(bn(m))return l(m,{from:x,to:T,d:1});var D=m.l,M=m.r;if(Ft(T,m.from)<0)return D?Ns(D,x,T):m.l={from:x,to:T,d:1,l:null,r:null},ur(m);if(0<Ft(x,m.to))return M?Ns(M,x,T):m.r={from:x,to:T,d:1,l:null,r:null},ur(m);Ft(x,m.from)<0&&(m.from=x,m.l=null,m.d=M?M.d+1:1),0<Ft(T,m.to)&&(m.to=T,m.r=null,m.d=m.l?m.l.d+1:1),T=!m.r,D&&!m.l&&jn(m,D),M&&T&&jn(m,M)}}function jn(m,x){bn(x)||function T(M,re){var B=re.from,U=re.to,j=re.l,re=re.r;Ns(M,B,U),j&&T(M,j),re&&T(M,re)}(m,x)}function uu(m,x){var T=Fs(x),M=T.next();if(M.done)return!1;for(var D=M.value,B=Fs(m),U=B.next(D.from),j=U.value;!M.done&&!U.done;){if(Ft(j.from,D.to)<=0&&0<=Ft(j.to,D.from))return!0;Ft(D.from,j.from)<0?D=(M=T.next(j.from)).value:j=(U=B.next(D.from)).value}return!1}function Fs(m){var x=bn(m)?null:{s:0,n:m};return{next:function(T){for(var M=0<arguments.length;x;)switch(x.s){case 0:if(x.s=1,M)for(;x.n.l&&Ft(T,x.n.from)<0;)x={up:x,n:x.n.l,s:1};else for(;x.n.l;)x={up:x,n:x.n.l,s:1};case 1:if(x.s=2,!M||Ft(T,x.n.to)<=0)return{value:x.n,done:!1};case 2:if(x.n.r){x.s=3,x={up:x,n:x.n.r,s:0};continue}case 3:x=x.up}return{done:!0}}}}function ur(m){var x,T,M=(((x=m.r)===null||x===void 0?void 0:x.d)||0)-(((T=m.l)===null||T===void 0?void 0:T.d)||0),D=1<M?"r":M<-1?"l":"";D&&(x=D=="r"?"l":"r",T=n({},m),M=m[D],m.from=M.from,m.to=M.to,m[D]=M[D],T[D]=M[x],(m[x]=T).d=ha(T)),m.d=ha(m)}function ha(T){var x=T.r,T=T.l;return(x?T?Math.max(x.d,T.d):x.d:T?T.d:0)+1}function $s(m,x){return o(x).forEach(function(T){m[T]?jn(m[T],x[T]):m[T]=function M(D){var B,U,j={};for(B in D)h(D,B)&&(U=D[B],j[B]=!U||typeof U!="object"||G.has(U.constructor)?U:M(U));return j}(x[T])}),m}function fv(m,x){return m.all||x.all||Object.keys(m).some(function(T){return x[T]&&uu(x[T],m[T])})}p(rn.prototype,((Zn={add:function(m){return jn(this,m),this},addKey:function(m){return Ns(this,m,m),this},addKeys:function(m){var x=this;return m.forEach(function(T){return Ns(x,T,T)}),this},hasKey:function(m){var x=Fs(this).next(m).value;return x&&Ft(x.from,m)<=0&&0<=Ft(x.to,m)}})[ye]=function(){return Fs(this)},Zn));var va={},cv={},hv=!1;function zf(m){$s(cv,m),hv||(hv=!0,setTimeout(function(){hv=!1,Hf(cv,!(cv={}))},0))}function Hf(m,x){x===void 0&&(x=!1);var T=new Set;if(m.all)for(var M=0,D=Object.values(va);M<D.length;M++)fu(U=D[M],m,T,x);else for(var B in m){var U,j=/^idb\:\/\/(.*)\/(.*)\//.exec(B);j&&(B=j[1],j=j[2],(U=va["idb://".concat(B,"/").concat(j)])&&fu(U,m,T,x))}T.forEach(function(re){return re()})}function fu(m,x,T,M){for(var D=[],B=0,U=Object.entries(m.queries.query);B<U.length;B++){for(var j=U[B],re=j[0],R=[],V=0,O=j[1];V<O.length;V++){var Z=O[V];fv(x,Z.obsSet)?Z.subscribers.forEach(function(Q){return T.add(Q)}):M&&R.push(Z)}M&&D.push([re,R])}if(M)for(var Y=0,ee=D;Y<ee.length;Y++){var ae=ee[Y],re=ae[0],R=ae[1];m.queries.query[re]=R}}function zs(m){var x=m._state,T=m._deps.indexedDB;if(x.isBeingOpened||m.idbdb)return x.dbReadyPromise.then(function(){return x.dbOpenError?mr(x.dbOpenError):m});x.isBeingOpened=!0,x.dbOpenError=null,x.openComplete=!1;var M=x.openCanceller,D=Math.round(10*m.verno),B=!1;function U(){if(x.openCanceller!==M)throw new $e.DatabaseClosed("db.open() was cancelled")}function j(){return new Ue(function(Z,Y){if(U(),!T)throw new $e.MissingAPI;var ee=m.name,ae=x.autoSchema||!D?T.open(ee):T.open(ee,D);if(!ae)throw new $e.MissingAPI;ae.onerror=gi(Y),ae.onblocked=gr(m._fireOnBlocked),ae.onupgradeneeded=gr(function(Q){var he;V=ae.transaction,x.autoSchema&&!m._options.allowEmptyDB?(ae.onerror=ru,V.abort(),ae.result.close(),(he=T.deleteDatabase(ee)).onsuccess=he.onerror=gr(function(){Y(new $e.NoSuchDatabase("Database ".concat(ee," doesnt exist")))})):(V.onerror=gi(Y),Q=Q.oldVersion>Math.pow(2,62)?0:Q.oldVersion,O=Q<1,m.idbdb=ae.result,B&&sv(m,V),jr(m,Q/10,V,Y))},Y),ae.onsuccess=gr(function(){V=null;var Q,he,_e,ge,Ce,Ne=m.idbdb=ae.result,Ve=S(Ne.objectStoreNames);if(0<Ve.length)try{var Re=Ne.transaction((ge=Ve).length===1?ge[0]:ge,"readonly");if(x.autoSchema)he=Ne,_e=Re,(Q=m).verno=he.version/10,_e=Q._dbSchema=ou(0,he,_e),Q._storeNames=S(he.objectStoreNames,0),Of(Q,[Q._allTables],o(_e),_e);else if(su(m,m._dbSchema,Re),((Ce=ca(ou(0,(Ce=m).idbdb,Re),Ce._dbSchema)).add.length||Ce.change.some(function(ze){return ze.add.length||ze.change.length}))&&!B)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),Ne.close(),D=Ne.version+1,B=!0,Z(j());Rf(m,Re)}catch{}Ps.push(m),Ne.onversionchange=gr(function(ze){x.vcFired=!0,m.on("versionchange").fire(ze)}),Ne.onclose=gr(function(ze){m.on("close").fire(ze)}),O&&(Ce=m._deps,Re=ee,Ne=Ce.indexedDB,Ce=Ce.IDBKeyRange,cn(Ne)||Re===Mf||$f(Ne,Ce).put({name:Re}).catch($)),Z()},Y)}).catch(function(Z){switch(Z==null?void 0:Z.name){case"UnknownError":if(0<x.PR1398_maxLoop)return x.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),j();break;case"VersionError":if(0<D)return D=0,j()}return Ue.reject(Z)})}var re,R=x.dbReadyResolve,V=null,O=!1;return Ue.race([M,(typeof navigator>"u"?Ue.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Z){function Y(){return indexedDB.databases().finally(Z)}re=setInterval(Y,100),Y()}).finally(function(){return clearInterval(re)}):Promise.resolve()).then(j)]).then(function(){return U(),x.onReadyBeingFired=[],Ue.resolve(uv(function(){return m.on.ready.fire(m.vip)})).then(function Z(){if(0<x.onReadyBeingFired.length){var Y=x.onReadyBeingFired.reduce(Se,$);return x.onReadyBeingFired=[],Ue.resolve(uv(function(){return Y(m.vip)})).then(Z)}})}).finally(function(){x.openCanceller===M&&(x.onReadyBeingFired=null,x.isBeingOpened=!1)}).catch(function(Z){x.dbOpenError=Z;try{V&&V.abort()}catch{}return M===x.openCanceller&&m._close(),mr(Z)}).finally(function(){x.openComplete=!0,R()}).then(function(){var Z;return O&&(Z={},m.tables.forEach(function(Y){Y.schema.indexes.forEach(function(ee){ee.name&&(Z["idb://".concat(m.name,"/").concat(Y.name,"/").concat(ee.name)]=new rn(-1/0,[[[]]]))}),Z["idb://".concat(m.name,"/").concat(Y.name,"/")]=Z["idb://".concat(m.name,"/").concat(Y.name,"/:dels")]=new rn(-1/0,[[[]]])}),ro(nu).fire(Z),Hf(Z,!0)),m})}function vv(m){function x(B){return m.next(B)}var T=D(x),M=D(function(B){return m.throw(B)});function D(B){return function(re){var j=B(re),re=j.value;return j.done?re:re&&typeof re.then=="function"?re.then(T,M):s(re)?Promise.all(re).then(T,M):T(re)}}return D(x)()}function cu(m,x,T){for(var M=s(m)?m.slice():[m],D=0;D<T;++D)M.push(x);return M}var jg={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(m){return n(n({},m),{table:function(x){var T=m.table(x),M=T.schema,D={},B=[];function U(O,Z,Y){var ee=au(O),ae=D[ee]=D[ee]||[],Q=O==null?0:typeof O=="string"?1:O.length,he=0<Z,he=n(n({},Y),{name:he?"".concat(ee,"(virtual-from:").concat(Y.name,")"):Y.name,lowLevelIndex:Y,isVirtual:he,keyTail:Z,keyLength:Q,extractKey:nr(O),unique:!he&&Y.unique});return ae.push(he),he.isPrimaryKey||B.push(he),1<Q&&U(Q===2?O[0]:O.slice(0,Q-1),Z+1,Y),ae.sort(function(_e,ge){return _e.keyTail-ge.keyTail}),he}x=U(M.primaryKey.keyPath,0,M.primaryKey),D[":id"]=[x];for(var j=0,re=M.indexes;j<re.length;j++){var R=re[j];U(R.keyPath,0,R)}function V(O){var Z,Y=O.query.index;return Y.isVirtual?n(n({},O),{query:{index:Y.lowLevelIndex,range:(Z=O.query.range,Y=Y.keyTail,{type:Z.type===1?2:Z.type,lower:cu(Z.lower,Z.lowerOpen?m.MAX_KEY:m.MIN_KEY,Y),lowerOpen:!0,upper:cu(Z.upper,Z.upperOpen?m.MIN_KEY:m.MAX_KEY,Y),upperOpen:!0})}}):O}return n(n({},T),{schema:n(n({},M),{primaryKey:x,indexes:B,getIndexByKeyPath:function(O){return(O=D[au(O)])&&O[0]}}),count:function(O){return T.count(V(O))},query:function(O){return T.query(V(O))},openCursor:function(O){var Z=O.query.index,Y=Z.keyTail,ee=Z.isVirtual,ae=Z.keyLength;return ee?T.openCursor(V(O)).then(function(he){return he&&Q(he)}):T.openCursor(O);function Q(he){return Object.create(he,{continue:{value:function(_e){_e!=null?he.continue(cu(_e,O.reverse?m.MAX_KEY:m.MIN_KEY,Y)):O.unique?he.continue(he.key.slice(0,ae).concat(O.reverse?m.MIN_KEY:m.MAX_KEY,Y)):he.continue()}},continuePrimaryKey:{value:function(_e,ge){he.continuePrimaryKey(cu(_e,m.MAX_KEY,Y),ge)}},primaryKey:{get:function(){return he.primaryKey}},key:{get:function(){var _e=he.key;return ae===1?_e[0]:_e.slice(0,ae)}},value:{get:function(){return he.value}}})}}})}})}};function hu(m,x,T,M){return T=T||{},M=M||"",o(m).forEach(function(D){var B,U,j;h(x,D)?(B=m[D],U=x[D],typeof B=="object"&&typeof U=="object"&&B&&U?(j=ve(B))!==ve(U)?T[M+D]=x[D]:j==="Object"?hu(B,U,T,M+D+"."):B!==U&&(T[M+D]=x[D]):B!==U&&(T[M+D]=x[D])):T[M+D]=void 0}),o(x).forEach(function(D){h(m,D)||(T[M+D]=x[D])}),T}function vu(m,x){return x.type==="delete"?x.keys:x.keys||x.values.map(m.extractKey)}var Zg={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(m){return n(n({},m),{table:function(x){var T=m.table(x),M=T.schema.primaryKey;return n(n({},T),{mutate:function(D){var B=Xe.trans,U=B.table(x).hook,j=U.deleting,re=U.creating,R=U.updating;switch(D.type){case"add":if(re.fire===$)break;return B._promise("readwrite",function(){return V(D)},!0);case"put":if(re.fire===$&&R.fire===$)break;return B._promise("readwrite",function(){return V(D)},!0);case"delete":if(j.fire===$)break;return B._promise("readwrite",function(){return V(D)},!0);case"deleteRange":if(j.fire===$)break;return B._promise("readwrite",function(){return function O(Z,Y,ee){return T.query({trans:Z,values:!1,query:{index:M,range:Y},limit:ee}).then(function(ae){var Q=ae.result;return V({type:"delete",keys:Q,trans:Z}).then(function(he){return 0<he.numFailures?Promise.reject(he.failures[0]):Q.length<ee?{failures:[],numFailures:0,lastResult:void 0}:O(Z,n(n({},Y),{lower:Q[Q.length-1],lowerOpen:!0}),ee)})})}(D.trans,D.range,1e4)},!0)}return T.mutate(D);function V(O){var Z,Y,ee,ae=Xe.trans,Q=O.keys||vu(M,O);if(!Q)throw new Error("Keys missing");return(O=O.type==="add"||O.type==="put"?n(n({},O),{keys:Q}):n({},O)).type!=="delete"&&(O.values=i([],O.values)),O.keys&&(O.keys=i([],O.keys)),Z=T,ee=Q,((Y=O).type==="add"?Promise.resolve([]):Z.getMany({trans:Y.trans,keys:ee,cache:"immutable"})).then(function(he){var _e=Q.map(function(ge,Ce){var Ne,Ve,Re,ze=he[Ce],Le={onerror:null,onsuccess:null};return O.type==="delete"?j.fire.call(Le,ge,ze,ae):O.type==="add"||ze===void 0?(Ne=re.fire.call(Le,ge,O.values[Ce],ae),ge==null&&Ne!=null&&(O.keys[Ce]=ge=Ne,M.outbound||P(O.values[Ce],M.keyPath,ge))):(Ne=hu(ze,O.values[Ce]),(Ve=R.fire.call(Le,Ne,ge,ze,ae))&&(Re=O.values[Ce],Object.keys(Ve).forEach(function(Ge){h(Re,Ge)?Re[Ge]=Ve[Ge]:P(Re,Ge,Ve[Ge])}))),Le});return T.mutate(O).then(function(ge){for(var Ce=ge.failures,Ne=ge.results,Ve=ge.numFailures,ge=ge.lastResult,Re=0;Re<Q.length;++Re){var ze=(Ne||Q)[Re],Le=_e[Re];ze==null?Le.onerror&&Le.onerror(Ce[Re]):Le.onsuccess&&Le.onsuccess(O.type==="put"&&he[Re]?O.values[Re]:ze)}return{failures:Ce,results:Ne,numFailures:Ve,lastResult:ge}}).catch(function(ge){return _e.forEach(function(Ce){return Ce.onerror&&Ce.onerror(ge)}),Promise.reject(ge)})})}}})}})}};function Jg(m,x,T){try{if(!x||x.keys.length<m.length)return null;for(var M=[],D=0,B=0;D<x.keys.length&&B<m.length;++D)Ft(x.keys[D],m[B])===0&&(M.push(T?q(x.values[D]):x.values[D]),++B);return M.length===m.length?M:null}catch{return null}}var dv={stack:"dbcore",level:-1,create:function(m){return{table:function(x){var T=m.table(x);return n(n({},T),{getMany:function(M){if(!M.cache)return T.getMany(M);var D=Jg(M.keys,M.trans._cache,M.cache==="clone");return D?Ue.resolve(D):T.getMany(M).then(function(B){return M.trans._cache={keys:M.keys,values:M.cache==="clone"?q(B):B},B})},mutate:function(M){return M.type!=="add"&&(M.trans._cache=null),T.mutate(M)}})}}}};function Vf(m,x){return m.trans.mode==="readonly"&&!!m.subscr&&!m.trans.explicit&&m.trans.db._options.cache!=="disabled"&&!x.schema.primaryKey.outbound}function Qg(m,x){switch(m){case"query":return x.values&&!x.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var em={stack:"dbcore",level:0,name:"Observability",create:function(m){var x=m.schema.name,T=new rn(m.MIN_KEY,m.MAX_KEY);return n(n({},m),{transaction:function(M,D,B){if(Xe.subscr&&D!=="readonly")throw new $e.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Xe.querier));return m.transaction(M,D,B)},table:function(M){var D=m.table(M),B=D.schema,U=B.primaryKey,O=B.indexes,j=U.extractKey,re=U.outbound,R=U.autoIncrement&&O.filter(function(Y){return Y.compound&&Y.keyPath.includes(U.keyPath)}),V=n(n({},D),{mutate:function(Y){function ee(Ge){return Ge="idb://".concat(x,"/").concat(M,"/").concat(Ge),ge[Ge]||(ge[Ge]=new rn)}var ae,Q,he,_e=Y.trans,ge=Y.mutatedParts||(Y.mutatedParts={}),Ce=ee(""),Ne=ee(":dels"),Ve=Y.type,Le=Y.type==="deleteRange"?[Y.range]:Y.type==="delete"?[Y.keys]:Y.values.length<50?[vu(U,Y).filter(function(Ge){return Ge}),Y.values]:[],Re=Le[0],ze=Le[1],Le=Y.trans._cache;return s(Re)?(Ce.addKeys(Re),(Le=Ve==="delete"||Re.length===ze.length?Jg(Re,Le):null)||Ne.addKeys(Re),(Le||ze)&&(ae=ee,Q=Le,he=ze,B.indexes.forEach(function(Ge){var Je=ae(Ge.name||"");function _t(Et){return Et!=null?Ge.extractKey(Et):null}function Lt(Et){return Ge.multiEntry&&s(Et)?Et.forEach(function(Pn){return Je.addKey(Pn)}):Je.addKey(Et)}(Q||he).forEach(function(Et,xr){var yt=Q&&_t(Q[xr]),xr=he&&_t(he[xr]);Ft(yt,xr)!==0&&(yt!=null&&Lt(yt),xr!=null&&Lt(xr))})}))):Re?(ze={from:(ze=Re.lower)!==null&&ze!==void 0?ze:m.MIN_KEY,to:(ze=Re.upper)!==null&&ze!==void 0?ze:m.MAX_KEY},Ne.add(ze),Ce.add(ze)):(Ce.add(T),Ne.add(T),B.indexes.forEach(function(Ge){return ee(Ge.name).add(T)})),D.mutate(Y).then(function(Ge){return!Re||Y.type!=="add"&&Y.type!=="put"||(Ce.addKeys(Ge.results),R&&R.forEach(function(Je){for(var _t=Y.values.map(function(yt){return Je.extractKey(yt)}),Lt=Je.keyPath.findIndex(function(yt){return yt===U.keyPath}),Et=0,Pn=Ge.results.length;Et<Pn;++Et)_t[Et][Lt]=Ge.results[Et];ee(Je.name).addKeys(_t)})),_e.mutatedParts=$s(_e.mutatedParts||{},ge),Ge})}}),O=function(ee){var ae=ee.query,ee=ae.index,ae=ae.range;return[ee,new rn((ee=ae.lower)!==null&&ee!==void 0?ee:m.MIN_KEY,(ae=ae.upper)!==null&&ae!==void 0?ae:m.MAX_KEY)]},Z={get:function(Y){return[U,new rn(Y.key)]},getMany:function(Y){return[U,new rn().addKeys(Y.keys)]},count:O,query:O,openCursor:O};return o(Z).forEach(function(Y){V[Y]=function(ee){var ae=Xe.subscr,Q=!!ae,he=Vf(Xe,D)&&Qg(Y,ee)?ee.obsSet={}:ae;if(Q){var _e=function(ze){return ze="idb://".concat(x,"/").concat(M,"/").concat(ze),he[ze]||(he[ze]=new rn)},ge=_e(""),Ce=_e(":dels"),ae=Z[Y](ee),Q=ae[0],ae=ae[1];if((Y==="query"&&Q.isPrimaryKey&&!ee.values?Ce:_e(Q.name||"")).add(ae),!Q.isPrimaryKey){if(Y!=="count"){var Ne=Y==="query"&&re&&ee.values&&D.query(n(n({},ee),{values:!1}));return D[Y].apply(this,arguments).then(function(ze){if(Y==="query"){if(re&&ee.values)return Ne.then(function(_t){return _t=_t.result,ge.addKeys(_t),ze});var Le=ee.values?ze.result.map(j):ze.result;(ee.values?ge:Ce).addKeys(Le)}else if(Y==="openCursor"){var Ge=ze,Je=ee.values;return Ge&&Object.create(Ge,{key:{get:function(){return Ce.addKey(Ge.primaryKey),Ge.key}},primaryKey:{get:function(){var _t=Ge.primaryKey;return Ce.addKey(_t),_t}},value:{get:function(){return Je&&ge.addKey(Ge.primaryKey),Ge.value}}})}return ze})}Ce.add(T)}}return D[Y].apply(this,arguments)}}),V}})}};function wn(m,x,T){if(T.numFailures===0)return x;if(x.type==="deleteRange")return null;var M=x.keys?x.keys.length:"values"in x&&x.values?x.values.length:1;return T.numFailures===M?null:(x=n({},x),s(x.keys)&&(x.keys=x.keys.filter(function(D,B){return!(B in T.failures)})),"values"in x&&s(x.values)&&(x.values=x.values.filter(function(D,B){return!(B in T.failures)})),x)}function du(m,x){return T=m,((M=x).lower===void 0||(M.lowerOpen?0<Ft(T,M.lower):0<=Ft(T,M.lower)))&&(m=m,(x=x).upper===void 0||(x.upperOpen?Ft(m,x.upper)<0:Ft(m,x.upper)<=0));var T,M}function Hs(m,x,Z,M,D,B){if(!Z||Z.length===0)return m;var U=x.query.index,j=U.multiEntry,re=x.query.range,R=M.schema.primaryKey.extractKey,V=U.extractKey,O=(U.lowLevelIndex||U).extractKey,Z=Z.reduce(function(Y,ee){var ae=Y,Q=[];if(ee.type==="add"||ee.type==="put")for(var he=new rn,_e=ee.values.length-1;0<=_e;--_e){var ge,Ce=ee.values[_e],Ne=R(Ce);he.hasKey(Ne)||(ge=V(Ce),(j&&s(ge)?ge.some(function(Ge){return du(Ge,re)}):du(ge,re))&&(he.addKey(Ne),Q.push(Ce)))}switch(ee.type){case"add":var Ve=new rn().addKeys(x.values?Y.map(function(Je){return R(Je)}):Y),ae=Y.concat(x.values?Q.filter(function(Je){return Je=R(Je),!Ve.hasKey(Je)&&(Ve.addKey(Je),!0)}):Q.map(function(Je){return R(Je)}).filter(function(Je){return!Ve.hasKey(Je)&&(Ve.addKey(Je),!0)}));break;case"put":var Re=new rn().addKeys(ee.values.map(function(Je){return R(Je)}));ae=Y.filter(function(Je){return!Re.hasKey(x.values?R(Je):Je)}).concat(x.values?Q:Q.map(function(Je){return R(Je)}));break;case"delete":var ze=new rn().addKeys(ee.keys);ae=Y.filter(function(Je){return!ze.hasKey(x.values?R(Je):Je)});break;case"deleteRange":var Le=ee.range;ae=Y.filter(function(Je){return!du(R(Je),Le)})}return ae},m);return Z===m?m:(Z.sort(function(Y,ee){return Ft(O(Y),O(ee))||Ft(R(Y),R(ee))}),x.limit&&x.limit<1/0&&(Z.length>x.limit?Z.length=x.limit:m.length===x.limit&&Z.length<x.limit&&(D.dirty=!0)),B?Object.freeze(Z):Z)}function pv(m,x){return Ft(m.lower,x.lower)===0&&Ft(m.upper,x.upper)===0&&!!m.lowerOpen==!!x.lowerOpen&&!!m.upperOpen==!!x.upperOpen}function tm(m,x){return function(T,M,D,B){if(T===void 0)return M!==void 0?-1:0;if(M===void 0)return 1;if((M=Ft(T,M))===0){if(D&&B)return 0;if(D)return 1;if(B)return-1}return M}(m.lower,x.lower,m.lowerOpen,x.lowerOpen)<=0&&0<=function(T,M,D,B){if(T===void 0)return M!==void 0?1:0;if(M===void 0)return-1;if((M=Ft(T,M))===0){if(D&&B)return 0;if(D)return-1;if(B)return 1}return M}(m.upper,x.upper,m.upperOpen,x.upperOpen)}function Hb(m,x,T,M){m.subscribers.add(T),M.addEventListener("abort",function(){var D,B;m.subscribers.delete(T),m.subscribers.size===0&&(D=m,B=x,setTimeout(function(){D.subscribers.size===0&&ue(B,D)},3e3))})}var Vb={stack:"dbcore",level:0,name:"Cache",create:function(m){var x=m.schema.name;return n(n({},m),{transaction:function(T,M,D){var B,U,j=m.transaction(T,M,D);return M==="readwrite"&&(U=(B=new AbortController).signal,D=function(re){return function(){if(B.abort(),M==="readwrite"){for(var R=new Set,V=0,O=T;V<O.length;V++){var Z=O[V],Y=va["idb://".concat(x,"/").concat(Z)];if(Y){var ee=m.table(Z),ae=Y.optimisticOps.filter(function(Je){return Je.trans===j});if(j._explicit&&re&&j.mutatedParts)for(var Q=0,he=Object.values(Y.queries.query);Q<he.length;Q++)for(var _e=0,ge=(Ve=he[Q]).slice();_e<ge.length;_e++)fv((Re=ge[_e]).obsSet,j.mutatedParts)&&(ue(Ve,Re),Re.subscribers.forEach(function(Je){return R.add(Je)}));else if(0<ae.length){Y.optimisticOps=Y.optimisticOps.filter(function(Je){return Je.trans!==j});for(var Ce=0,Ne=Object.values(Y.queries.query);Ce<Ne.length;Ce++)for(var Ve,Re,ze,Le=0,Ge=(Ve=Ne[Ce]).slice();Le<Ge.length;Le++)(Re=Ge[Le]).res!=null&&j.mutatedParts&&(re&&!Re.dirty?(ze=Object.isFrozen(Re.res),ze=Hs(Re.res,Re.req,ae,ee,Re,ze),Re.dirty?(ue(Ve,Re),Re.subscribers.forEach(function(Je){return R.add(Je)})):ze!==Re.res&&(Re.res=ze,Re.promise=Ue.resolve({result:ze}))):(Re.dirty&&ue(Ve,Re),Re.subscribers.forEach(function(Je){return R.add(Je)})))}}}R.forEach(function(Je){return Je()})}}},j.addEventListener("abort",D(!1),{signal:U}),j.addEventListener("error",D(!1),{signal:U}),j.addEventListener("complete",D(!0),{signal:U})),j},table:function(T){var M=m.table(T),D=M.schema.primaryKey;return n(n({},M),{mutate:function(B){var U=Xe.trans;if(D.outbound||U.db._options.cache==="disabled"||U.explicit||U.idbtrans.mode!=="readwrite")return M.mutate(B);var j=va["idb://".concat(x,"/").concat(T)];return j?(U=M.mutate(B),B.type!=="add"&&B.type!=="put"||!(50<=B.values.length||vu(D,B).some(function(re){return re==null}))?(j.optimisticOps.push(B),B.mutatedParts&&zf(B.mutatedParts),U.then(function(re){0<re.numFailures&&(ue(j.optimisticOps,B),(re=wn(0,B,re))&&j.optimisticOps.push(re),B.mutatedParts&&zf(B.mutatedParts))}),U.catch(function(){ue(j.optimisticOps,B),B.mutatedParts&&zf(B.mutatedParts)})):U.then(function(re){var R=wn(0,n(n({},B),{values:B.values.map(function(V,O){var Z;return re.failures[O]?V:(V=(Z=D.keyPath)!==null&&Z!==void 0&&Z.includes(".")?q(V):n({},V),P(V,D.keyPath,re.results[O]),V)})}),re);j.optimisticOps.push(R),queueMicrotask(function(){return B.mutatedParts&&zf(B.mutatedParts)})}),U):M.mutate(B)},query:function(B){if(!Vf(Xe,M)||!Qg("query",B))return M.query(B);var U=((R=Xe.trans)===null||R===void 0?void 0:R.db._options.cache)==="immutable",O=Xe,j=O.requery,re=O.signal,R=function(ee,ae,Q,he){var _e=va["idb://".concat(ee,"/").concat(ae)];if(!_e)return[];if(!(ae=_e.queries[Q]))return[null,!1,_e,null];var ge=ae[(he.query?he.query.index.name:null)||""];if(!ge)return[null,!1,_e,null];switch(Q){case"query":var Ce=ge.find(function(Ne){return Ne.req.limit===he.limit&&Ne.req.values===he.values&&pv(Ne.req.query.range,he.query.range)});return Ce?[Ce,!0,_e,ge]:[ge.find(function(Ne){return("limit"in Ne.req?Ne.req.limit:1/0)>=he.limit&&(!he.values||Ne.req.values)&&tm(Ne.req.query.range,he.query.range)}),!1,_e,ge];case"count":return Ce=ge.find(function(Ne){return pv(Ne.req.query.range,he.query.range)}),[Ce,!!Ce,_e,ge]}}(x,T,"query",B),V=R[0],O=R[1],Z=R[2],Y=R[3];return V&&O?V.obsSet=B.obsSet:(O=M.query(B).then(function(ee){var ae=ee.result;if(V&&(V.res=ae),U){for(var Q=0,he=ae.length;Q<he;++Q)Object.freeze(ae[Q]);Object.freeze(ae)}else ee.result=q(ae);return ee}).catch(function(ee){return Y&&V&&ue(Y,V),Promise.reject(ee)}),V={obsSet:B.obsSet,promise:O,subscribers:new Set,type:"query",req:B,dirty:!1},Y?Y.push(V):(Y=[V],(Z=Z||(va["idb://".concat(x,"/").concat(T)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[B.query.index.name||""]=Y)),Hb(V,Y,j,re),V.promise.then(function(ee){return{result:Hs(ee.result,B,Z==null?void 0:Z.optimisticOps,M,V,U)}})}})}})}};function Gf(m,x){return new Proxy(m,{get:function(T,M,D){return M==="db"?x:Reflect.get(T,M,D)}})}var da=(Ar.prototype.version=function(m){if(isNaN(m)||m<.1)throw new $e.Type("Given version is not a positive number");if(m=Math.round(10*m)/10,this.idbdb||this._state.isBeingOpened)throw new $e.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,m);var x=this._versions,T=x.filter(function(M){return M._cfg.version===m})[0];return T||(T=new this.Version(m),x.push(T),x.sort(zb),T.stores({}),this._state.autoSchema=!1,T)},Ar.prototype._whenReady=function(m){var x=this;return this.idbdb&&(this._state.openComplete||Xe.letThrough||this._vip)?m():new Ue(function(T,M){if(x._state.openComplete)return M(new $e.DatabaseClosed(x._state.dbOpenError));if(!x._state.isBeingOpened){if(!x._state.autoOpen)return void M(new $e.DatabaseClosed);x.open().catch($)}x._state.dbReadyPromise.then(T,M)}).then(m)},Ar.prototype.use=function(m){var x=m.stack,T=m.create,M=m.level,D=m.name;return D&&this.unuse({stack:x,name:D}),m=this._middlewares[x]||(this._middlewares[x]=[]),m.push({stack:x,create:T,level:M??10,name:D}),m.sort(function(B,U){return B.level-U.level}),this},Ar.prototype.unuse=function(m){var x=m.stack,T=m.name,M=m.create;return x&&this._middlewares[x]&&(this._middlewares[x]=this._middlewares[x].filter(function(D){return M?D.create!==M:!!T&&D.name!==T})),this},Ar.prototype.open=function(){var m=this;return ko(pr,function(){return zs(m)})},Ar.prototype._close=function(){var m=this._state,x=Ps.indexOf(this);if(0<=x&&Ps.splice(x,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}m.isBeingOpened||(m.dbReadyPromise=new Ue(function(T){m.dbReadyResolve=T}),m.openCanceller=new Ue(function(T,M){m.cancelOpen=M}))},Ar.prototype.close=function(T){var x=(T===void 0?{disableAutoOpen:!0}:T).disableAutoOpen,T=this._state;x?(T.isBeingOpened&&T.cancelOpen(new $e.DatabaseClosed),this._close(),T.autoOpen=!1,T.dbOpenError=new $e.DatabaseClosed):(this._close(),T.autoOpen=this._options.autoOpen||T.isBeingOpened,T.openComplete=!1,T.dbOpenError=null)},Ar.prototype.delete=function(m){var x=this;m===void 0&&(m={disableAutoOpen:!0});var T=0<arguments.length&&typeof arguments[0]!="object",M=this._state;return new Ue(function(D,B){function U(){x.close(m);var j=x._deps.indexedDB.deleteDatabase(x.name);j.onsuccess=gr(function(){var re,R,V;re=x._deps,R=x.name,V=re.indexedDB,re=re.IDBKeyRange,cn(V)||R===Mf||$f(V,re).delete(R).catch($),D()}),j.onerror=gi(B),j.onblocked=x._fireOnBlocked}if(T)throw new $e.InvalidArgument("Invalid closeOptions argument to db.delete()");M.isBeingOpened?M.dbReadyPromise.then(U):U()})},Ar.prototype.backendDB=function(){return this.idbdb},Ar.prototype.isOpen=function(){return this.idbdb!==null},Ar.prototype.hasBeenClosed=function(){var m=this._state.dbOpenError;return m&&m.name==="DatabaseClosed"},Ar.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Ar.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Ar.prototype,"tables",{get:function(){var m=this;return o(this._allTables).map(function(x){return m._allTables[x]})},enumerable:!1,configurable:!0}),Ar.prototype.transaction=function(){var m=(function(x,T,M){var D=arguments.length;if(D<2)throw new $e.InvalidArgument("Too few arguments");for(var B=new Array(D-1);--D;)B[D-1]=arguments[D];return M=B.pop(),[x,W(B),M]}).apply(this,arguments);return this._transaction.apply(this,m)},Ar.prototype._transaction=function(m,x,T){var M=this,D=Xe.trans;D&&D.db===this&&m.indexOf("!")===-1||(D=null);var B,U,j=m.indexOf("?")!==-1;m=m.replace("!","").replace("?","");try{if(U=x.map(function(R){if(R=R instanceof M.Table?R.name:R,typeof R!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return R}),m=="r"||m===If)B=If;else{if(m!="rw"&&m!=Df)throw new $e.InvalidArgument("Invalid transaction mode: "+m);B=Df}if(D){if(D.mode===If&&B===Df){if(!j)throw new $e.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");D=null}D&&U.forEach(function(R){if(D&&D.storeNames.indexOf(R)===-1){if(!j)throw new $e.SubTransaction("Table "+R+" not included in parent transaction.");D=null}}),j&&D&&!D.active&&(D=null)}}catch(R){return D?D._promise(null,function(V,O){O(R)}):mr(R)}var re=(function R(V,O,Z,Y,ee){return Ue.resolve().then(function(){var ae=Xe.transless||Xe,Q=V._createTransaction(O,Z,V._dbSchema,Y);if(Q.explicit=!0,ae={trans:Q,transless:ae},Y)Q.idbtrans=Y.idbtrans;else try{Q.create(),Q.idbtrans._explicit=!0,V._state.PR1398_maxLoop=3}catch(ge){return ge.name===lt.InvalidState&&V.isOpen()&&0<--V._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),V.close({disableAutoOpen:!1}),V.open().then(function(){return R(V,O,Z,null,ee)})):mr(ge)}var he,_e=ce(ee);return _e&&Es(),ae=Ue.follow(function(){var ge;(he=ee.call(Q,Q))&&(_e?(ge=Qa.bind(null,null),he.then(ge,ge)):typeof he.next=="function"&&typeof he.throw=="function"&&(he=vv(he)))},ae),(he&&typeof he.then=="function"?Ue.resolve(he).then(function(ge){return Q.active?ge:mr(new $e.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):ae.then(function(){return he})).then(function(ge){return Y&&Q._resolve(),Q._completion.then(function(){return ge})}).catch(function(ge){return Q._reject(ge),mr(ge)})})}).bind(null,this,B,U,D,T);return D?D._promise(B,re,"lock"):Xe.trans?ko(Xe.transless,function(){return M._whenReady(re)}):this._whenReady(re)},Ar.prototype.table=function(m){if(!h(this._allTables,m))throw new $e.InvalidTable("Table ".concat(m," does not exist"));return this._allTables[m]},Ar);function Ar(m,x){var T=this;this._middlewares={},this.verno=0;var M=Ar.dependencies;this._options=x=n({addons:Ar.addons,autoOpen:!0,indexedDB:M.indexedDB,IDBKeyRange:M.IDBKeyRange,cache:"cloned"},x),this._deps={indexedDB:x.indexedDB,IDBKeyRange:x.IDBKeyRange},M=x.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var D,B,U,j,re,R={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:$,dbReadyPromise:null,cancelOpen:$,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:x.autoOpen};R.dbReadyPromise=new Ue(function(O){R.dbReadyResolve=O}),R.openCanceller=new Ue(function(O,Z){R.cancelOpen=Z}),this._state=R,this.name=m,this.on=Ql(this,"populate","blocked","versionchange","close",{ready:[Se,$]}),this.on.ready.subscribe=A(this.on.ready.subscribe,function(O){return function(Z,Y){Ar.vip(function(){var ee,ae=T._state;ae.openComplete?(ae.dbOpenError||Ue.resolve().then(Z),Y&&O(Z)):ae.onReadyBeingFired?(ae.onReadyBeingFired.push(Z),Y&&O(Z)):(O(Z),ee=T,Y||O(function Q(){ee.on.ready.unsubscribe(Z),ee.on.ready.unsubscribe(Q)}))})}}),this.Collection=(D=this,Rs(rv.prototype,function(he,Q){this.db=D;var Y=Vg,ee=null;if(Q)try{Y=Q()}catch(_e){ee=_e}var ae=he._ctx,Q=ae.table,he=Q.hook.reading.fire;this._ctx={table:Q,index:ae.index,isPrimKey:!ae.index||Q.schema.primKey.keyPath&&ae.index===Q.schema.primKey.name,range:Y,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:ee,or:ae.or,valueMapper:he!==J?he:null}})),this.Table=(B=this,Rs(Qh.prototype,function(O,Z,Y){this.db=B,this._tx=Y,this.name=O,this.schema=Z,this.hook=B._allTables[O]?B._allTables[O].hook:Ql(null,{creating:[xe,$],reading:[se,J],updating:[de,$],deleting:[we,$]})})),this.Transaction=(U=this,Rs(iv.prototype,function(O,Z,Y,ee,ae){var Q=this;this.db=U,this.mode=O,this.storeNames=Z,this.schema=Y,this.chromeTransactionDurability=ee,this.idbtrans=null,this.on=Ql(this,"complete","error","abort"),this.parent=ae||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Ue(function(he,_e){Q._resolve=he,Q._reject=_e}),this._completion.then(function(){Q.active=!1,Q.on.complete.fire()},function(he){var _e=Q.active;return Q.active=!1,Q.on.error.fire(he),Q.parent?Q.parent._reject(he):_e&&Q.idbtrans&&Q.idbtrans.abort(),mr(he)})})),this.Version=(j=this,Rs(Xg.prototype,function(O){this.db=j,this._cfg={version:O,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(re=this,Rs(Kg.prototype,function(O,Z,Y){if(this.db=re,this._ctx={table:O,index:Z===":id"?null:Z,or:Y},this._cmp=this._ascending=Ft,this._descending=function(ee,ae){return Ft(ae,ee)},this._max=function(ee,ae){return 0<Ft(ee,ae)?ee:ae},this._min=function(ee,ae){return Ft(ee,ae)<0?ee:ae},this._IDBKeyRange=re._deps.IDBKeyRange,!this._IDBKeyRange)throw new $e.MissingAPI})),this.on("versionchange",function(O){0<O.newVersion?console.warn("Another connection wants to upgrade database '".concat(T.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(T.name,"'. Closing db now to resume the delete request.")),T.close({disableAutoOpen:!1})}),this.on("blocked",function(O){!O.newVersion||O.newVersion<O.oldVersion?console.warn("Dexie.delete('".concat(T.name,"') was blocked")):console.warn("Upgrade '".concat(T.name,"' blocked by other connection holding version ").concat(O.oldVersion/10))}),this._maxKey=iu(x.IDBKeyRange),this._createTransaction=function(O,Z,Y,ee){return new T.Transaction(O,Z,Y,T._options.chromeTransactionDurability,ee)},this._fireOnBlocked=function(O){T.on("blocked").fire(O),Ps.filter(function(Z){return Z.name===T.name&&Z!==T&&!Z._state.vcFired}).map(function(Z){return Z.on("versionchange").fire(O)})},this.use(dv),this.use(Vb),this.use(em),this.use(jg),this.use(Zg);var V=new Proxy(this,{get:function(O,Z,Y){if(Z==="_vip")return!0;if(Z==="table")return function(ae){return Gf(T.table(ae),V)};var ee=Reflect.get(O,Z,Y);return ee instanceof Qh?Gf(ee,V):Z==="tables"?ee.map(function(ae){return Gf(ae,V)}):Z==="_createTransaction"?function(){return Gf(ee.apply(this,arguments),V)}:ee}});this.vip=V,M.forEach(function(O){return O(T)})}var pa,Zn=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",Gb=(pu.prototype.subscribe=function(m,x,T){return this._subscribe(m&&typeof m!="function"?m:{next:m,error:x,complete:T})},pu.prototype[Zn]=function(){return this},pu);function pu(m){this._subscribe=m}try{pa={indexedDB:a.indexedDB||a.mozIndexedDB||a.webkitIndexedDB||a.msIndexedDB,IDBKeyRange:a.IDBKeyRange||a.webkitIDBKeyRange}}catch{pa={indexedDB:null,IDBKeyRange:null}}function gv(m){var x,T=!1,M=new Gb(function(D){var B=ce(m),U,j=!1,re={},R={},V={get closed(){return j},unsubscribe:function(){j||(j=!0,U&&U.abort(),O&&ro.storagemutated.unsubscribe(Y))}};D.start&&D.start(V);var O=!1,Z=function(){return jh(ee)},Y=function(ae){$s(re,ae),fv(R,re)&&Z()},ee=function(){var ae,Q,he;!j&&pa.indexedDB&&(re={},ae={},U&&U.abort(),U=new AbortController,he=function(_e){var ge=Ds();try{B&&Es();var Ce=Ja(m,_e);return Ce=B?Ce.finally(Qa):Ce}finally{ge&&ks()}}(Q={subscr:ae,signal:U.signal,requery:Z,querier:m,trans:null}),Promise.resolve(he).then(function(_e){T=!0,x=_e,j||Q.signal.aborted||(re={},function(ge){for(var Ce in ge)if(h(ge,Ce))return;return 1}(R=ae)||O||(ro(nu,Y),O=!0),jh(function(){return!j&&D.next&&D.next(_e)}))},function(_e){T=!1,["DatabaseClosedError","AbortError"].includes(_e==null?void 0:_e.name)||j||jh(function(){j||D.error&&D.error(_e)})}))};return setTimeout(Z,0),V});return M.hasValue=function(){return T},M.getValue=function(){return x},M}var xn=da;function Vs(m){var x=no;try{no=!0,ro.storagemutated.fire(m),Hf(m,!0)}finally{no=x}}p(xn,n(n({},rt),{delete:function(m){return new xn(m,{addons:[]}).delete()},exists:function(m){return new xn(m,{addons:[]}).open().then(function(x){return x.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(m){try{return x=xn.dependencies,T=x.indexedDB,x=x.IDBKeyRange,(cn(T)?Promise.resolve(T.databases()).then(function(M){return M.map(function(D){return D.name}).filter(function(D){return D!==Mf})}):$f(T,x).toCollection().primaryKeys()).then(m)}catch{return mr(new $e.MissingAPI)}var x,T},defineClass:function(){return function(m){l(this,m)}},ignoreTransaction:function(m){return Xe.trans?ko(Xe.transless,m):m()},vip:uv,async:function(m){return function(){try{var x=vv(m.apply(this,arguments));return x&&typeof x.then=="function"?x:Ue.resolve(x)}catch(T){return mr(T)}}},spawn:function(m,x,T){try{var M=vv(m.apply(T,x||[]));return M&&typeof M.then=="function"?M:Ue.resolve(M)}catch(D){return mr(D)}},currentTransaction:{get:function(){return Xe.trans||null}},waitFor:function(m,x){return x=Ue.resolve(typeof m=="function"?xn.ignoreTransaction(m):m).timeout(x||6e4),Xe.trans?Xe.trans.waitFor(x):x},Promise:Ue,debug:{get:function(){return pe},set:function(m){Ze(m)}},derive:y,extend:l,props:p,override:A,Events:Ql,on:ro,liveQuery:gv,extendObservabilitySet:$s,getByKeyPath:k,setByKeyPath:P,delByKeyPath:function(m,x){typeof x=="string"?P(m,x,void 0):"length"in x&&[].map.call(x,function(T){P(m,T,void 0)})},shallowClone:z,deepClone:q,getObjectDiff:hu,cmp:Ft,asap:L,minKey:-1/0,addons:[],connections:Ps,errnames:lt,dependencies:pa,cache:va,semVer:"4.0.11",version:"4.0.11".split(".").map(function(m){return parseInt(m)}).reduce(function(m,x,T){return m+x/Math.pow(10,2*T)})})),xn.maxKey=iu(xn.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(ro(nu,function(m){no||(m=new CustomEvent(nv,{detail:m}),no=!0,dispatchEvent(m),no=!1)}),addEventListener(nv,function(m){m=m.detail,no||Vs(m)}));var Gs,no=!1,rm=function(){};return typeof BroadcastChannel<"u"&&((rm=function(){(Gs=new BroadcastChannel(nv)).onmessage=function(m){return m.data&&Vs(m.data)}})(),typeof Gs.unref=="function"&&Gs.unref(),ro(nu,function(m){no||Gs.postMessage(m)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(m){if(!da.disableBfCache&&m.persisted){pe&&console.debug("Dexie: handling persisted pagehide"),Gs!=null&&Gs.close();for(var x=0,T=Ps;x<T.length;x++)T[x].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(m){!da.disableBfCache&&m.persisted&&(pe&&console.debug("Dexie: handling persisted pageshow"),rm(),Vs({all:new rn(-1/0,[[]])}))})),Ue.rejectionMapper=function(m,x){return!m||m instanceof Pe||m instanceof TypeError||m instanceof SyntaxError||!m.name||!Tt[m.name]?m:(x=new Tt[m.name](x||m.message,m),"stack"in m&&g(x,"stack",{get:function(){return this.inner.stack}}),x)},Ze(pe),n(da,Object.freeze({__proto__:null,Dexie:da,liveQuery:gv,Entity:Gg,cmp:Ft,PropModification:Bs,replacePrefix:function(m,x){return new Bs({replacePrefix:[m,x]})},add:function(m){return new Bs({add:m})},remove:function(m){return new Bs({remove:m})},default:da,RangeSet:rn,mergeRanges:jn,rangesOverlap:uu}),{default:da}),da})})(kT);var XN=kT.exports;const S0=fN(XN),LT=Symbol.for("Dexie"),Cd=globalThis[LT]||(globalThis[LT]=S0);if(S0.semVer!==Cd.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${S0.semVer} and ${Cd.semVer}`);const{liveQuery:cJ,mergeRanges:hJ,rangesOverlap:vJ,RangeSet:dJ,cmp:pJ,Entity:gJ,PropModification:mJ,replacePrefix:yJ,add:_J,remove:bJ}=Cd,jN="PPTist";new Cd(`${jN}_${YN}_${new Date().getTime()}`).version(1).stores({snapshots:"++id",writingBoardImgs:"id"});const Ad="animate__",ZN=[{label:"无",value:"no"},{label:"随机",value:"random"},{label:"左右推移",value:"slideX"},{label:"上下推移",value:"slideY"},{label:"左右推移(3D)",value:"slideX3D"},{label:"上下推移(3D)",value:"slideY3D"},{label:"淡入淡出",value:"fade"},{label:"旋转",value:"rotate"},{label:"上下展开",value:"scaleY"},{label:"左右展开",value:"scaleX"},{label:"放大",value:"scale"},{label:"缩小",value:"scaleReverse"},{label:"左右擦除",value:"wipeX"},{label:"上下擦除",value:"wipeY"},{label:"圆形展开",value:"circle"},{label:"菱形展开",value:"diamond"},{label:"左上右下推移",value:"slideDiagonal"},{label:"右上左下推移",value:"slideDiagonalReverse"},{label:"横向中心揭幕",value:"revealX"},{label:"纵向中心揭幕",value:"revealY"},{label:"水平翻转展开",value:"flipY"},{label:"垂直翻转展开",value:"flipX"}],T0=Symbol(),C0=Symbol(),JN=()=>{const{slides:t}=Xo(jo());return{slidesWithTurningMode:Ke(()=>t.value.map(r=>{let n=r.turningMode;if(n||(n="slideY"),n==="random"){const i=ZN.filter(a=>!["random","no"].includes(a.value)).map(a=>a.value);n=i[Math.floor(Math.random()*i.length)]}return{...r,turningMode:n}}))}},QN=t=>({backgroundStyle:Ke(()=>{if(!t.value)return{backgroundColor:"#fff"};const{type:r,color:n,image:i,gradient:a}=t.value;if(r==="solid")return{backgroundColor:n};if(r==="image"&&i){const{src:o,size:s}=i;return o?s==="repeat"?{backgroundImage:`url(${o}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${o}`,backgroundRepeat:"no-repeat",backgroundSize:s||"cover"}:{backgroundColor:"#fff"}}else if(r==="gradient"&&a){const{type:o,colors:s,rotate:l}=a,u=s.map(c=>`${c.color} ${c.pos}%`);return o==="radial"?{backgroundImage:`radial-gradient(${u.join(",")}`}:{backgroundImage:`linear-gradient(${l+90}deg, ${u.join(",")}`}}return{backgroundColor:"#fff"}})});var La=(t=>(t.TEXT="text",t.IMAGE="image",t.SHAPE="shape",t.LINE="line",t.CHART="chart",t.TABLE="table",t.LATEX="latex",t.VIDEO="video",t.AUDIO="audio",t))(La||{});const Md=t=>({shadowStyle:Ke(()=>{if(t.value){const{h:r,v:n,blur:i,color:a}=t.value;return`${r}px ${n}px ${i}px ${a}`}return""})}),ET=(t,e)=>({flipStyle:Ke(()=>{let n="";return t.value&&e.value?n="rotateX(180deg) rotateY(180deg)":e.value?n="rotateX(180deg)":t.value&&(n="rotateY(180deg)"),n})});var PT=(t=>(t.RECT="rect",t.ELLIPSE="ellipse",t.POLYGON="polygon",t))(PT||{});const RT={rect:{name:"矩形",type:"rect",radius:"0",style:""},snip1Rect:{name:"矩形2",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(t,e)=>`M 0 0 L ${t*.8} 0 L ${t} ${e*.2} L ${t} ${e} L 0 ${e} Z`},snip2DiagRect:{name:"矩形3",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(t,e)=>`M 0 0 L ${t*.8} 0 L ${t} ${e*.2} L ${t} ${e} L ${t*.2} ${e} L 0 ${e*.8} Z`},roundRect:{name:"圆角矩形",type:"rect",radius:"10px",style:"inset(0 round 10px)"},ellipse:{name:"圆形",type:"ellipse",style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:"polygon",style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:(t,e)=>`M ${t*.5} 0 L 0 ${e} L ${t} ${e} Z`},rtTriangle:{name:"直角三角形",type:"polygon",style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(t,e)=>`M 0 0 L 0 ${e} L ${t} ${e} Z`},triangleReverse:{name:"倒三角形",type:"polygon",style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(t,e)=>`M ${t*.5} ${e} L 0 0 L ${t} 0 Z`},diamond:{name:"菱形",type:"polygon",style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t} ${e*.5} L ${t*.5} ${e} L 0 ${e*.5} Z`},pentagon:{name:"五边形",type:"polygon",style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t} ${.38*e} L ${.82*t} ${e} L ${.18*t} ${e} L 0 ${.38*e} Z`},hexagon:{name:"六边形",type:"polygon",style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(t,e)=>`M ${t*.2} 0 L ${t*.8} 0 L ${t} ${e*.5} L ${t*.8} ${e} L ${t*.2} ${e} L 0 ${e*.5} Z`},heptagon:{name:"七边形",type:"polygon",style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t*.9} ${e*.2} L ${t} ${e*.6} L ${t*.75} ${e} L ${t*.25} ${e} L 0 ${e*.6} L ${t*.1} ${e*.2} Z`},octagon:{name:"八边形",type:"polygon",style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:(t,e)=>`M ${t*.3} 0 L ${t*.7} 0 L ${t} ${e*.3} L ${t} ${e*.7} L ${t*.7} ${e} L ${t*.3} ${e} L 0 ${e*.7} L 0 ${e*.3} Z`},chevron:{name:"人字形",type:"polygon",style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(t,e)=>`M ${t*.75} 0 L ${t} ${e*.5} L ${t*.75} ${e} L 0 ${e} L ${t*.25} ${e*.5} L 0 0 Z`},homePlate:{name:"点",type:"polygon",style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(t,e)=>`M 0 0 L ${t*.75} 0 L ${t} ${e*.5} L ${t*.75} ${e} L 0 ${e} Z`},rightArrow:{name:"箭头",type:"polygon",style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(t,e)=>`M 0 ${e*.2} L ${t*.6} ${e*.2} L ${t*.6} 0 L ${t} ${e*.5} L ${t*.6} ${e} L ${t*.6} ${e*.8} L 0 ${e*.8} Z`},parallelogram:{name:"平行四边形",type:"polygon",style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(t,e)=>`M ${t*.3} 0 L ${t} 0 L ${t*.7} ${e} L 0 ${e} Z`},parallelogramReverse:{name:"反平行四边形",type:"polygon",style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(t,e)=>`M ${t*.3} ${e} L ${t} ${e} L ${t*.7} 0 L 0 0 Z`},trapezoid:{name:"梯形",type:"polygon",style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(t,e)=>`M ${t*.25} 0 L ${t*.75} 0 L ${t} ${e} L 0 ${e} Z`},trapezoidReverse:{name:"倒梯形",type:"polygon",style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(t,e)=>`M 0 0 L ${t} 0 L ${t*.75} ${e} L ${t*.25} ${e} Z`}},OT=t=>{const e=Ke(()=>{let n=RT.rect;if(t.value.clip){const i=t.value.clip.shape||PT.RECT;n=RT[i]}return n.radius!==void 0&&t.value.radius&&(n={...n,radius:`${t.value.radius}px`,style:`inset(0 round ${t.value.radius}px)`}),n}),r=Ke(()=>{if(!t.value.clip)return{top:"0",left:"0",width:"100%",height:"100%"};const[n,i]=t.value.clip.range,a=(i[0]-n[0])/100,o=(i[1]-n[1])/100,s=n[0]/a,l=n[1]/o;return{left:-s+"%",top:-l+"%",width:100/a+"%",height:100/o+"%"}});return{clipShape:e,imgPosition:r}},e5=t=>({filter:Ke(()=>{if(!t.value)return"";let r="";const n=Object.keys(t.value);for(const i of n)r+=`${i}(${t.value[i]}) `;return r})}),Mc=t=>{const e=Ke(()=>{var a;return((a=t.value)==null?void 0:a.width)??0}),r=Ke(()=>{var a;return((a=t.value)==null?void 0:a.style)||"solid"}),n=Ke(()=>{var a;return((a=t.value)==null?void 0:a.color)||"#d14424"}),i=Ke(()=>{const a=e.value;return r.value==="dashed"?a<=6?`${a*4.5} ${a*2}`:`${a*4} ${a*1.5}`:r.value==="dotted"?a<=6?`${a*1.8} ${a*1.6}`:`${a*1.5} ${a*1.2}`:"0 0"});return{outlineWidth:e,outlineStyle:r,outlineColor:n,strokeDashArray:i}},t5=["width","height"],r5=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],n5=cr({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=Mc(oc(e,"outline"));return(a,o)=>t.outline?(Fe(),it("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:t.width,height:t.height},[me("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:t.radius,ry:t.radius,width:t.width,height:t.height,stroke:et(n),"stroke-width":et(r),"stroke-dasharray":et(i)},null,8,r5)],8,t5)):Sr("",!0)}}),Ir=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},i5=Ir(n5,[["__scopeId","data-v-03d31e82"]]),a5=["width","height"],o5=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],s5=Ir(cr({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=Mc(oc(e,"outline"));return(a,o)=>t.outline?(Fe(),it("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:t.width,height:t.height},[me("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:t.width/2,cy:t.height/2,rx:t.width/2,ry:t.height/2,stroke:et(n),"stroke-width":et(r),"stroke-dasharray":et(i)},null,8,o5)],8,a5)):Sr("",!0)}}),[["__scopeId","data-v-50f1146c"]]),l5=["width","height"],u5=["d","stroke","stroke-width","stroke-dasharray"],f5=Ir(cr({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=Mc(oc(e,"outline"));return(a,o)=>t.outline?(Fe(),it("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:t.width,height:t.height},[me("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:t.createPath(t.width,t.height),stroke:et(n),"stroke-width":et(r),"stroke-dasharray":et(i)},null,8,u5)],8,l5)):Sr("",!0)}}),[["__scopeId","data-v-f119be6e"]]),c5={class:"image-outline"},h5=cr({__name:"index",props:{elementInfo:{}},setup(t){const e=t,r=Ke(()=>e.elementInfo),{clipShape:n}=OT(r);return(i,a)=>(Fe(),it("div",c5,[et(n).type==="rect"?(Fe(),Xt(i5,{key:0,width:t.elementInfo.width,height:t.elementInfo.height,radius:et(n).radius,outline:t.elementInfo.outline},null,8,["width","height","radius","outline"])):et(n).type==="ellipse"?(Fe(),Xt(s5,{key:1,width:t.elementInfo.width,height:t.elementInfo.height,outline:t.elementInfo.outline},null,8,["width","height","outline"])):et(n).type==="polygon"?(Fe(),Xt(f5,{key:2,width:t.elementInfo.width,height:t.elementInfo.height,outline:t.elementInfo.outline,createPath:et(n).createPath},null,8,["width","height","outline","createPath"])):Sr("",!0)]))}}),v5=["src"],d5=Ir(cr({__name:"BaseImageElement",props:{elementInfo:{}},setup(t){const e=t,r=Ke(()=>e.elementInfo.shadow),{shadowStyle:n}=Md(r),i=Ke(()=>e.elementInfo.flipH),a=Ke(()=>e.elementInfo.flipV),{flipStyle:o}=ET(i,a),s=Ke(()=>e.elementInfo),{clipShape:l,imgPosition:u}=OT(s),c=Ke(()=>e.elementInfo.filters),{filter:h}=e5(c);return(p,d)=>(Fe(),it("div",{class:"base-element-image",style:ft({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[me("div",{class:"rotate-wrapper",style:ft({transform:`rotate(${t.elementInfo.rotate}deg)`})},[me("div",{class:"element-content",style:ft({filter:et(n)?`drop-shadow(${et(n)})`:"",transform:et(o)})},[Cr(h5,{elementInfo:t.elementInfo},null,8,["elementInfo"]),me("div",{class:"image-content",style:ft({clipPath:et(l).style})},[me("img",{src:t.elementInfo.src,draggable:!1,style:ft({top:et(u).top,left:et(u).left,width:et(u).width,height:et(u).height,filter:et(h)}),alt:""},null,12,v5),t.elementInfo.colorMask?(Fe(),it("div",{key:0,class:"color-mask",style:ft({backgroundColor:t.elementInfo.colorMask})},null,4)):Sr("",!0)],4)],4)],4)],4))}}),[["__scopeId","data-v-2a432e53"]]),p5=["width","height"],g5=["d","stroke","stroke-width","stroke-dasharray"],BT=Ir(cr({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=Mc(oc(e,"outline"));return(a,o)=>t.outline?(Fe(),it("svg",{key:0,class:"element-outline",overflow:"visible",width:t.width,height:t.height},[me("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${t.width},0 L${t.width},${t.height} L0,${t.height} Z`,stroke:et(n),"stroke-width":et(r),"stroke-dasharray":et(i)},null,8,g5)],8,p5)):Sr("",!0)}}),[["__scopeId","data-v-38db66b1"]]),m5=["innerHTML"],y5=Ir(cr({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(t){const e=t,r=Ke(()=>e.elementInfo.shadow),{shadowStyle:n}=Md(r),i=Ke(()=>e.elementInfo.inset||[10,10,10,10]),a=Ke(()=>e.elementInfo.fixedHeight?{top:"flex-start",middle:"center",bottom:"flex-end"}[e.elementInfo.vAlign||"top"]:void 0);return(o,s)=>(Fe(),it("div",{class:"base-element-text",style:ft({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[me("div",{class:"rotate-wrapper",style:ft({transform:`rotate(${t.elementInfo.rotate}deg)`})},[me("div",{class:"element-content",style:ft({width:t.elementInfo.vertical&&!t.elementInfo.fixedHeight?"auto":t.elementInfo.width+"px",height:!t.elementInfo.vertical&&!t.elementInfo.fixedHeight?"auto":t.elementInfo.height+"px",backgroundColor:t.elementInfo.fill,opacity:t.elementInfo.opacity,textShadow:et(n),lineHeight:t.elementInfo.lineHeight,letterSpacing:(t.elementInfo.wordSpace||0)+"px",color:t.elementInfo.defaultColor,fontFamily:t.elementInfo.defaultFontName,writingMode:t.elementInfo.vertical?"vertical-rl":"horizontal-tb",padding:`${i.value[0]}px ${i.value[1]}px ${i.value[2]}px ${i.value[3]}px`,display:t.elementInfo.fixedHeight?"flex":void 0,flexDirection:t.elementInfo.fixedHeight?"column":void 0,justifyContent:a.value,"--paragraphSpace":`${t.elementInfo.paragraphSpace===void 0?5:t.elementInfo.paragraphSpace}px`})},[Cr(BT,{width:t.elementInfo.width,height:t.elementInfo.height,outline:t.elementInfo.outline},null,8,["width","height","outline"]),me("div",{class:An(["text ProseMirror-static",{thumbnail:t.target==="thumbnail"}]),innerHTML:t.elementInfo.content},null,10,m5)],4)],4)],4))}}),[["__scopeId","data-v-957b65f1"]]),_5=(t,e)=>({fill:Ke(()=>t.value.pattern?`url(#${e}-pattern-${t.value.id})`:t.value.gradient?`url(#${e}-gradient-${t.value.id})`:t.value.fill||"none")}),b5=["id","gradientTransform"],w5=["offset","stop-color"],x5=["id"],S5=["offset","stop-color"],T5=cr({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(t){return(e,r)=>t.type==="linear"?(Fe(),it("linearGradient",{key:0,id:t.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${t.rotate},0.5,0.5)`},[(Fe(!0),it(Jr,null,Uo(t.colors,(n,i)=>(Fe(),it("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,w5))),128))],8,b5)):(Fe(),it("radialGradient",{key:1,id:t.id},[(Fe(!0),it(Jr,null,Uo(t.colors,(n,i)=>(Fe(),it("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,S5))),128))],8,x5))}}),C5=["id"],A5=["href"],M5=cr({__name:"PatternDefs",props:{id:{},src:{}},setup(t){return(e,r)=>(Fe(),it("pattern",{id:t.id,patternContentUnits:"objectBoundingBox",patternUnits:"objectBoundingBox",width:"1",height:"1"},[me("image",{href:t.src,width:"1",height:"1",preserveAspectRatio:"xMidYMid slice"},null,8,A5)],8,C5))}}),I5=["width","height"],D5=["transform"],k5=["d","fill","stroke","stroke-width","stroke-dasharray"],L5=["innerHTML"],E5=Ir(cr({__name:"BaseShapeElement",props:{elementInfo:{}},setup(t){const e=t,{theme:r}=Xo(jo()),n=Ke(()=>e.elementInfo),{fill:i}=_5(n,"base"),a=Ke(()=>e.elementInfo.outline),{outlineWidth:o,outlineColor:s,strokeDashArray:l}=Mc(a),u=Ke(()=>e.elementInfo.shadow),{shadowStyle:c}=Md(u),h=Ke(()=>e.elementInfo.flipH),p=Ke(()=>e.elementInfo.flipV),{flipStyle:d}=ET(h,p),g=Ke(()=>{const S={content:"",align:"middle",defaultFontName:r.value.fontName,defaultColor:r.value.fontColor};return e.elementInfo.text?e.elementInfo.text:S}),y=Ke(()=>g.value.inset||[10,10,10,10]),w=Ke(()=>{var S;return(S=e.elementInfo.viewBox)!=null&&S[0]?e.elementInfo.width/e.elementInfo.viewBox[0]:1}),b=Ke(()=>{var S;return(S=e.elementInfo.viewBox)!=null&&S[1]?e.elementInfo.height/e.elementInfo.viewBox[1]:1});return(S,A)=>(Fe(),it("div",{class:"base-element-shape",style:ft({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[me("div",{class:"rotate-wrapper",style:ft({transform:`rotate(${t.elementInfo.rotate}deg)`})},[me("div",{class:"element-content",style:ft({opacity:t.elementInfo.opacity,filter:et(c)?`drop-shadow(${et(c)})`:"",transform:et(d),color:g.value.defaultColor,fontFamily:g.value.defaultFontName})},[(Fe(),it("svg",{overflow:"visible",width:t.elementInfo.width,height:t.elementInfo.height},[me("defs",null,[t.elementInfo.pattern?(Fe(),Xt(M5,{key:0,id:`base-pattern-${t.elementInfo.id}`,src:t.elementInfo.pattern},null,8,["id","src"])):t.elementInfo.gradient?(Fe(),Xt(T5,{key:1,id:`base-gradient-${t.elementInfo.id}`,type:t.elementInfo.gradient.type,colors:t.elementInfo.gradient.colors,rotate:t.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])):Sr("",!0)]),me("g",{transform:`scale(${w.value}, ${b.value}) translate(0,0) matrix(1,0,0,1,0,0)`},[me("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:t.elementInfo.path,fill:et(i),stroke:et(s),"stroke-width":et(o),"stroke-dasharray":et(l)},null,8,k5)],8,D5)],8,I5)),me("div",{class:An(["shape-text",g.value.align]),style:ft({lineHeight:g.value.lineHeight,letterSpacing:(g.value.wordSpace||0)+"px",padding:`${y.value[0]}px ${y.value[1]}px ${y.value[2]}px ${y.value[3]}px`,"--paragraphSpace":`${g.value.paragraphSpace===void 0?5:g.value.paragraphSpace}px`})},[me("div",{class:"ProseMirror-static",innerHTML:g.value.content},null,8,L5)],6)],4)],4)],4))}}),[["__scopeId","data-v-5a023f41"]]),P5=["id","markerWidth","markerHeight","refX","refY"],R5=["d","fill","transform"],NT=cr({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{},preview:{type:Boolean}},setup(t){const e=t,r={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},n={"arrow-start":180,"arrow-end":0},i=Ke(()=>r[e.type]),a=Ke(()=>n[`${e.type}-${e.position}`]||0),o=Ke(()=>e.baseSize<2?2:e.baseSize),s=Ke(()=>e.preview?o.value*1.5:e.position==="start"?0:o.value*3),l=Ke(()=>o.value*1.5);return(u,c)=>(Fe(),it("marker",{id:`${t.id}-${t.type}-${t.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:o.value*3,markerHeight:o.value*3,refX:s.value,refY:l.value},[me("path",{d:i.value,fill:t.color,transform:`scale(${o.value*.3}, ${o.value*.3}) rotate(${a.value}, 5, 5)`},null,8,R5)],8,P5))}}),O5=["width","height"],B5=["d","stroke","stroke-width","stroke-dasharray"],N5=["d","stroke-width","marker-start","marker-end"],F5=Ir(cr({__name:"BaseLineElement",props:{elementInfo:{}},setup(t){const e=t,r=Ke(()=>e.elementInfo.shadow),{shadowStyle:n}=Md(r),i=Ke(()=>{const u=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return u<24?24:u}),a=Ke(()=>{const u=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return u<24?24:u}),o=Ke(()=>{const u=e.elementInfo.width;return e.elementInfo.style==="dashed"?u<=8?`${u*5} ${u*2.5}`:`${u*5} ${u*1.5}`:e.elementInfo.style==="dotted"?u<=8?`${u*1.8} ${u*1.6}`:`${u*1.5} ${u*1.2}`:"0 0"}),s=Ke(()=>KN(e.elementInfo)),l=Ke(()=>UN(e.elementInfo));return(u,c)=>(Fe(),it("div",{class:"base-element-line",style:ft({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px"})},[me("div",{class:"element-content",style:ft({filter:et(n)?`drop-shadow(${et(n)})`:""})},[(Fe(),it("svg",{overflow:"visible",width:i.value,height:a.value},[me("defs",null,[t.elementInfo.points[0]?(Fe(),Xt(NT,{key:0,id:t.elementInfo.id,position:"start",type:t.elementInfo.points[0],color:t.elementInfo.color,baseSize:t.elementInfo.width},null,8,["id","type","color","baseSize"])):Sr("",!0),t.elementInfo.points[1]?(Fe(),Xt(NT,{key:1,id:t.elementInfo.id,position:"end",type:t.elementInfo.points[1],color:t.elementInfo.color,baseSize:t.elementInfo.width},null,8,["id","type","color","baseSize"])):Sr("",!0)]),me("path",{d:s.value,stroke:t.elementInfo.color,"stroke-width":t.elementInfo.width,"stroke-dasharray":o.value,fill:"none"},null,8,B5),me("path",{d:l.value,stroke:"transparent","stroke-width":t.elementInfo.width,fill:"none","marker-start":t.elementInfo.points[0]?`url(#${t.elementInfo.id}-${t.elementInfo.points[0]}-start)`:"","marker-end":t.elementInfo.points[1]?`url(#${t.elementInfo.id}-${t.elementInfo.points[1]}-end)`:""},null,8,N5)],8,O5))],4)],4))}}),[["__scopeId","data-v-ca5f345d"]]),A0=5,$5=[4,5,6],z5=(t,e)=>{if(t<=0)return 0;const r=t/e,n=Math.floor(Math.log10(r)),i=Math.pow(10,n),a=r/i;let o=10;return a<=1?o=1:a<=2?o=2:a<=3?o=3:a<=5&&(o=5),o*i*e},H5=t=>t<=0?{max:0,splitNumber:A0}:$5.map(e=>({max:z5(t,e),splitNumber:e})).reduce((e,r)=>{const n=e.max-t,i=r.max-t;if(i<n)return r;const a=Math.abs(e.splitNumber-A0),o=Math.abs(r.splitNumber-A0);return i===n&&o<a?r:e}),V5=({type:t,data:e,themeColors:r,textColor:n,lineColor:i,lineSmooth:a,stack:o})=>{const s=n?{color:n}:{},l=n?{lineStyle:{color:n}}:void 0,u=n?{color:n}:void 0,c=i?{lineStyle:{color:i}}:{},h=e.series.length>1?{top:"bottom",textStyle:s}:void 0;if(t==="bar")return{color:r,textStyle:s,legend:h,xAxis:{type:"category",data:e.labels,axisLine:l,axisLabel:u},yAxis:{type:"value",axisLine:l,axisLabel:u,splitLine:c},series:e.series.map((p,d)=>{const g={data:p,name:e.legends[d],type:"bar",label:{show:!0},itemStyle:{borderRadius:[2,2,0,0]}};return o&&(g.stack="A"),g})};if(t==="column")return{color:r,textStyle:s,legend:h,yAxis:{type:"category",data:e.labels,axisLine:l,axisLabel:u},xAxis:{type:"value",axisLine:l,axisLabel:u,splitLine:c},series:e.series.map((p,d)=>{const g={data:p,name:e.legends[d],type:"bar",label:{show:!0},itemStyle:{borderRadius:[0,2,2,0]}};return o&&(g.stack="A"),g})};if(t==="line")return{color:r,textStyle:s,legend:h,xAxis:{type:"category",data:e.labels,axisLine:l,axisLabel:u},yAxis:{type:"value",axisLine:l,axisLabel:u,splitLine:c},series:e.series.map((p,d)=>{const g={data:p,name:e.legends[d],type:"line",smooth:a,label:{show:!0}};return o&&(g.stack="A"),g})};if(t==="pie")return{color:r,textStyle:s,legend:{top:"bottom",textStyle:s},series:[{data:e.series[0].map((p,d)=>({value:p,name:e.labels[d]})),label:n?{color:n}:{},type:"pie",radius:"70%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(t==="ring")return{color:r,textStyle:s,legend:{top:"bottom",textStyle:s},series:[{data:e.series[0].map((p,d)=>({value:p,name:e.labels[d]})),label:n?{color:n}:{},type:"pie",radius:["40%","70%"],padAngle:1,avoidLabelOverlap:!1,itemStyle:{borderRadius:4},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(t==="area")return{color:r,textStyle:s,legend:h,xAxis:{type:"category",boundaryGap:!1,data:e.labels,axisLine:l,axisLabel:u},yAxis:{type:"value",axisLine:l,axisLabel:u,splitLine:c},series:e.series.map((p,d)=>{const g={data:p,name:e.legends[d],type:"line",areaStyle:{},label:{show:!0}};return o&&(g.stack="A"),g})};if(t==="radar"){const p=[];for(const y of e.series)p.push(...y);const{max:d,splitNumber:g}=H5(Math.max(...p));return{color:r,textStyle:s,legend:h,radar:{splitNumber:g,indicator:e.labels.map(y=>({name:y,max:d})),splitLine:c,axisLine:i?{lineStyle:{color:i}}:void 0},series:[{data:e.series.map((y,w)=>({value:y,name:e.legends[w]})),type:"radar"}]}}if(t==="scatter"){const p=e.series[0],g=(e.series.length>1?e.series.slice(1):[p]).map((y,w)=>({symbolSize:12,data:p.map((b,S)=>[b,y[S]]),name:e.legends[w+1],type:"scatter"}));return{color:r,textStyle:s,legend:e.series.length>2?{top:"bottom",textStyle:s}:void 0,xAxis:{axisLine:l,axisLabel:u,splitLine:c},yAxis:{axisLine:l,axisLabel:u,splitLine:c},series:g}}return null};/*! *****************************************************************************
|
|
65
|
+
Copyright (c) Microsoft Corporation.
|
|
66
|
+
|
|
67
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
68
|
+
purpose with or without fee is hereby granted.
|
|
69
|
+
|
|
70
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
71
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
72
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
73
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
74
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
75
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
76
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
77
|
+
***************************************************************************** */var M0=function(t,e){return M0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},M0(t,e)};function Ye(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");M0(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var G5=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),W5=function(){function t(){this.browser=new G5,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=typeof window<"u"}return t}(),tr=new W5;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(tr.wxa=!0,tr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?tr.worker=!0:!tr.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(tr.node=!0,tr.svgSupported=!0):U5(navigator.userAgent,tr);function U5(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var I0=12,FT="sans-serif",yo=I0+"px "+FT,q5=20,K5=100,Y5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function X5(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-q5)/K5;e[n]=i}return e}var j5=X5(Y5),Zo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var i=Zo.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||yo),t.measureText(r);r=r||"",n=n||yo;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||I0,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=j5[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},$T=Jo(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),zT=Jo(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ic=Object.prototype.toString,Id=Array.prototype,Z5=Id.forEach,J5=Id.filter,D0=Id.slice,Q5=Id.map,HT=(function(){}).constructor,Dd=HT?HT.prototype:null,k0="__proto__",eF=2311;function VT(){return eF++}function GT(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Vt(t){if(t==null||typeof t!="object")return t;var e=t,r=Ic.call(t);if(r==="[object Array]"){if(!kc(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=Vt(t[n])}}else if(zT[r]){if(!kc(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!$T[r]&&!kc(t)&&!L0(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==k0&&(e[o]=Vt(t[o]))}return e}function or(t,e,r){if(!mt(e)||!mt(t))return r?Vt(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==k0){var i=t[n],a=e[n];mt(a)&&mt(i)&&!st(a)&&!st(i)&&!L0(a)&&!L0(i)&&!UT(a)&&!UT(i)&&!kc(a)&&!kc(i)?or(i,a,r):(r||!(n in t))&&(t[n]=Vt(e[n]))}return t}function We(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==k0&&(t[r]=e[r]);return t}function Wt(t,e,r){for(var n=Ut(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function Zt(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function tF(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Zi(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else Wt(t,e)}function zn(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function ne(t,e,r){if(t&&e)if(t.forEach&&t.forEach===Z5)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function tt(t,e,r){if(!t)return[];if(!e)return P0(t);if(t.map&&t.map===Q5)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function Jo(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function qr(t,e,r){if(!t)return[];if(!e)return P0(t);if(t.filter&&t.filter===J5)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function WT(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function Ut(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function rF(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(D0.call(arguments)))}}var br=Dd&&St(Dd.bind)?Dd.call.bind(Dd.bind):rF;function oi(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(D0.call(arguments)))}}function st(t){return Array.isArray?Array.isArray(t):Ic.call(t)==="[object Array]"}function St(t){return typeof t=="function"}function ct(t){return typeof t=="string"}function nF(t){return Ic.call(t)==="[object String]"}function sr(t){return typeof t=="number"}function mt(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function UT(t){return!!$T[Ic.call(t)]}function Hn(t){return!!zT[Ic.call(t)]}function L0(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function E0(t){return t.colorStops!=null}function Dc(t){return t!==t}function kd(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function ut(t,e){return t??e}function vl(t,e,r){return t??e??r}function P0(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return D0.apply(t,e)}function R0(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Ea(t,e){if(!t)throw new Error(e)}function Qo(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var qT="__ec_primitive__";function O0(t){t[qT]=!0}function kc(t){return t[qT]}var iF=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Ut(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),KT=typeof Map=="function";function aF(){return KT?new Map:new iF}var oF=function(){function t(e){var r=st(e);this.data=aF();var n=this;e instanceof t?e.each(i):e&&ne(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return KT?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function kt(t){return new oF(t)}function sF(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function Ld(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&We(r,e),r}function Pa(t,e){return t.hasOwnProperty(e)}function si(){}var Ed=180/Math.PI;function Lu(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function lF(t){return[t[0],t[1]]}function YT(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function uF(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function fF(t){return Math.sqrt(cF(t))}function cF(t){return t[0]*t[0]+t[1]*t[1]}function B0(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function hF(t,e){var r=fF(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function N0(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var F0=N0;function vF(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Eu=vF;function $0(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function Mi(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Pu(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ru(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Ou=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),dF=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ou(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Ou(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ou(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ou(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ou(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ou(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),_o=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,c=a[e][u];return c&&c.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t}(),pF=Math.log(2);function z0(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/pF);return t[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var h=0,p=0,d=0;p<s;p++){var g=1<<p;g&i||(h+=(d%2?-1:1)*t[r][p]*z0(t,e-1,c,u,i|g,a),d++)}return a[o]=h,h}function gF(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=z0(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*z0(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,c){var h=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/h,l[1]=(u*a[3]+c*a[4]+a[5])/h}}}var XT="___zrEVENTSAVED";function mF(t,e,r,n,i){if(e.getBoundingClientRect&&tr.domSupported&&!jT(e)){var a=e[XT]||(e[XT]={}),o=yF(e,a),s=_F(o,a);if(s)return s(t,r,n),!0}return!1}function yF(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){ne(r,function(c){c.parentNode&&c.parentNode.removeChild(c)})},r}function _F(t,e,r){for(var n="trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,d=c.top;o.push(p,d),l=l&&a&&p===a[h]&&d===a[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=gF(o,s))}function jT(t){return t.nodeName.toUpperCase()==="CANVAS"}var bF=/([&<>"'])/g,wF={"&":"&","<":"<",">":">",'"':""","'":"'"};function xF(t){return t==null?"":(t+"").replace(bF,function(e,r){return wF[r]})}var SF=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,H0=[],TF=tr.browser.firefox&&+tr.browser.version.split(".")[0]<39;function V0(t,e,r,n){return r=r||{},n?ZT(t,e,r):TF&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):ZT(t,e,r),r}function ZT(t,e,r){if(tr.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(jT(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(mF(H0,t,n,i)){r.zrX=H0[0],r.zrY=H0[1];return}}r.zrX=r.zrY=0}function G0(t){return t||window.event}function Ji(t,e,r){if(e=G0(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&V0(t,o,e,r)}else{V0(t,e,e,r);var a=CF(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&SF.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function CF(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function AF(t,e,r,n){t.addEventListener(e,r,n)}function MF(t,e,r,n){t.removeEventListener(e,r,n)}var IF=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},DF=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=V0(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in W0)if(W0.hasOwnProperty(r)){var n=W0[r](this._track,e);if(n)return n}},t}();function JT(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function kF(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var W0={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=JT(n)/JT(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=kF(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function es(){return[1,0,0,1,0,0]}function U0(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function QT(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 Lc(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function eC(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function tC(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(r),h=Math.cos(r);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=a*h+l*c,t[3]=-a*c+h*l,t[4]=h*(o-n[0])+c*(u-n[1])+n[0],t[5]=h*(u-n[1])-c*(o-n[0])+n[1],t}function LF(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Ec(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var wt=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}(),dl=Math.min,Bu=Math.max,q0=Math.abs,rC=["x","y"],EF=["width","height"],pl=new wt,gl=new wt,ml=new wt,yl=new wt,li=iC(),Pc=li.minTv,K0=li.maxTv,Rc=[0,0],Nt=function(){function t(e,r,n,i){t.set(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=dl(e.x,this.x),n=dl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Bu(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Bu(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=es();return eC(a,a,[-r.x,-r.y]),LF(a,a,[n,i]),eC(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&wt.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(PF,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(RF,r.x,r.y,r.width,r.height));var s=!!n;li.reset(i,s);var l=li.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,p=e.y+e.height-l,d=r.x+l,g=r.x+r.width-l,y=r.y+l,w=r.y+r.height-l;if(u>c||h>p||d>g||y>w)return!1;var b=!(c<d||g<u||p<y||w<h);return(s||a)&&(Rc[0]=1/0,Rc[1]=0,nC(u,c,d,g,0,s,a,o),nC(h,p,y,w,1,s,a,o),s&&wt.copy(n,b?li.useDir?li.dirMinTv:Pc:K0)),b},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},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 this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}pl.x=ml.x=r.x,pl.y=yl.y=r.y,gl.x=yl.x=r.x+r.width,gl.y=ml.y=r.y+r.height,pl.transform(n),yl.transform(n),gl.transform(n),ml.transform(n),e.x=dl(pl.x,gl.x,ml.x,yl.x),e.y=dl(pl.y,gl.y,ml.y,yl.y);var l=Bu(pl.x,gl.x,ml.x,yl.x),u=Bu(pl.y,gl.y,ml.y,yl.y);e.width=l-e.x,e.height=u-e.y},t}(),PF=new Nt(0,0,0,0),RF=new Nt(0,0,0,0);function nC(t,e,r,n,i,a,o,s){var l=q0(e-r),u=q0(n-t),c=dl(l,u),h=rC[i],p=rC[1-i],d=EF[i];e<r||n<t?l<u?(a&&(K0[h]=-l),s&&(o[h]=e,o[d]=0)):(a&&(K0[h]=u),s&&(o[h]=t,o[d]=0)):(o&&(o[h]=Bu(t,r),o[d]=dl(e,n)-o[h]),a&&(c<Rc[0]||li.useDir)&&(Rc[0]=dl(c,Rc[0]),(l<u||!li.bidirectional)&&(Pc[h]=l,Pc[p]=0,li.useDir&&li.calcDirMTV()),(l>=u||!li.bidirectional)&&(Pc[h]=-u,Pc[p]=0,li.useDir&&li.calcDirMTV())))}function iC(){var t=0,e=new wt,r=new wt,n={minTv:new wt,maxTv:new wt,useDir:!1,dirMinTv:new wt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Bu(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),c=l*a.y+u*a.x;if(i(c)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/c,r.y=s*l/c,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return q0(a)<1e-10}return n}var aC="silent";function OF(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:BF}}function BF(){IF(this.event)}var NF=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(_o),Oc=function(){function t(e,r){this.x=e,this.y=r}return t}(),FF=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Y0=new Nt(0,0,0,0),oC=function(t){Ye(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Oc(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new NF,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new dF(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(ne(FF,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=lC(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Oc(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Oc(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=OF(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Oc(r,n);if(sC(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Nt(r-u,n-u,l,l),h=a.length-1;h>=0;h--){var p=a[h];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Y0.copy(p.getBoundingRect()),p.transform&&Y0.applyTransform(p.transform),Y0.intersect(c)&&s.push(p))}if(s.length)for(var d=4,g=Math.PI/12,y=Math.PI*2,w=0;w<u;w+=d)for(var b=0;b<y;b+=g){var S=r+w*Math.cos(b),A=n+w*Math.sin(b);if(sC(s,o,S,A,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new DF);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Oc;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(_o);ne(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){oC.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=lC(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||F0(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function $F(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?aC:!0}return!1}function sC(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=$F(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==aC)){e.target=o;break}}}function lC(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var uC=32,Bc=7;function zF(t){for(var e=0;t>=uC;)e|=t&1,t>>=1;return t+e}function fC(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;HF(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function HF(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function cC(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function X0(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(t,e[r+c])>0?o=c+1:l=c}return l}function j0(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(t,e[r+c])<0?l=c:o=c+1}return l}function VF(t,e){var r=Bc,n,i,a=0,o=[];n=[],i=[];function s(d,g){n[a]=d,i[a]=g,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,c(d)}}function c(d){var g=n[d],y=i[d],w=n[d+1],b=i[d+1];i[d]=y+b,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var S=j0(t[w],t,g,y,0,e);g+=S,y-=S,y!==0&&(b=X0(t[g+y-1],t,w,b,b-1,e),b!==0&&(y<=b?h(g,y,w,b):p(g,y,w,b)))}function h(d,g,y,w){var b=0;for(b=0;b<g;b++)o[b]=t[d+b];var S=0,A=y,I=d;if(t[I++]=t[A++],--w===0){for(b=0;b<g;b++)t[I+b]=o[S+b];return}if(g===1){for(b=0;b<w;b++)t[I+b]=t[A+b];t[I+w]=o[S];return}for(var L=r,k,P,z;;){k=0,P=0,z=!1;do if(e(t[A],o[S])<0){if(t[I++]=t[A++],P++,k=0,--w===0){z=!0;break}}else if(t[I++]=o[S++],k++,P=0,--g===1){z=!0;break}while((k|P)<L);if(z)break;do{if(k=j0(t[A],o,S,g,0,e),k!==0){for(b=0;b<k;b++)t[I+b]=o[S+b];if(I+=k,S+=k,g-=k,g<=1){z=!0;break}}if(t[I++]=t[A++],--w===0){z=!0;break}if(P=X0(o[S],t,A,w,0,e),P!==0){for(b=0;b<P;b++)t[I+b]=t[A+b];if(I+=P,A+=P,w-=P,w===0){z=!0;break}}if(t[I++]=o[S++],--g===1){z=!0;break}L--}while(k>=Bc||P>=Bc);if(z)break;L<0&&(L=0),L+=2}if(r=L,r<1&&(r=1),g===1){for(b=0;b<w;b++)t[I+b]=t[A+b];t[I+w]=o[S]}else{if(g===0)throw new Error;for(b=0;b<g;b++)t[I+b]=o[S+b]}}function p(d,g,y,w){var b=0;for(b=0;b<w;b++)o[b]=t[y+b];var S=d+g-1,A=w-1,I=y+w-1,L=0,k=0;if(t[I--]=t[S--],--g===0){for(L=I-(w-1),b=0;b<w;b++)t[L+b]=o[b];return}if(w===1){for(I-=g,S-=g,k=I+1,L=S+1,b=g-1;b>=0;b--)t[k+b]=t[L+b];t[I]=o[A];return}for(var P=r;;){var z=0,F=0,W=!1;do if(e(o[A],t[S])<0){if(t[I--]=t[S--],z++,F=0,--g===0){W=!0;break}}else if(t[I--]=o[A--],F++,z=0,--w===1){W=!0;break}while((z|F)<P);if(W)break;do{if(z=g-j0(o[A],t,d,g,g-1,e),z!==0){for(I-=z,S-=z,g-=z,k=I+1,L=S+1,b=z-1;b>=0;b--)t[k+b]=t[L+b];if(g===0){W=!0;break}}if(t[I--]=o[A--],--w===1){W=!0;break}if(F=w-X0(t[S],o,0,w,w-1,e),F!==0){for(I-=F,A-=F,w-=F,k=I+1,L=A+1,b=0;b<F;b++)t[k+b]=o[L+b];if(w<=1){W=!0;break}}if(t[I--]=t[S--],--g===0){W=!0;break}P--}while(z>=Bc||F>=Bc);if(W)break;P<0&&(P=0),P+=2}if(r=P,r<1&&(r=1),w===1){for(I-=g,S-=g,k=I+1,L=S+1,b=g-1;b>=0;b--)t[k+b]=t[L+b];t[I]=o[A]}else{if(w===0)throw new Error;for(L=I-(w-1),b=0;b<w;b++)t[L+b]=o[b]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Pd(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<uC){a=fC(t,r,n,e),cC(t,r,n,r+a,e);return}var o=VF(t,e),s=zF(i);do{if(a=fC(t,r,n,e),a<s){var l=i;l>s&&(l=s),cC(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ra=1,Nc=2,Nu=4,hC=!1;function Z0(){hC||(hC=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function vC(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var GF=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=vC}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,Pd(n,vC)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,c=e;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var h=e.childrenRef(),p=0;p<h.length;p++){var d=h[p];e.__dirty&&(d.__dirty|=Ra),this._updateAndAddDisplayable(d,s,n)}e.__dirty=0}else{var g=e;isNaN(g.z)&&(Z0(),g.z=0),isNaN(g.z2)&&(Z0(),g.z2=0),isNaN(g.zlevel)&&(Z0(),g.zlevel=0),this._displayList[this._displayListLen++]=g}var y=e.getDecalElement&&e.getDecalElement();y&&this._updateAndAddDisplayable(y,s,n);var w=e.getTextGuideLine();w&&this._updateAndAddDisplayable(w,s,n);var b=e.getTextContent();b&&this._updateAndAddDisplayable(b,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=Zt(this._roots,e);i>=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}(),J0;J0=tr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Fc={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 t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},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,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.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?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Fc.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?Fc.bounceIn(t*2)*.5:Fc.bounceOut(t*2-1)*.5+.5}},Rd=Math.pow,ts=Math.sqrt,Od=1e-8,dC=1e-4,pC=ts(3),Bd=1/3,Oa=Lu(),Ii=Lu(),Fu=Lu();function rs(t){return t>-Od&&t<Od}function gC(t){return t>Od||t<-Od}function on(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function mC(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function Nd(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,c=s*s-3*o*l,h=s*l-9*o*u,p=l*l-3*s*u,d=0;if(rs(c)&&rs(h))if(rs(s))a[0]=0;else{var g=-l/s;g>=0&&g<=1&&(a[d++]=g)}else{var y=h*h-4*c*p;if(rs(y)){var w=h/c,g=-s/o+w,b=-w/2;g>=0&&g<=1&&(a[d++]=g),b>=0&&b<=1&&(a[d++]=b)}else if(y>0){var S=ts(y),A=c*s+1.5*o*(-h+S),I=c*s+1.5*o*(-h-S);A<0?A=-Rd(-A,Bd):A=Rd(A,Bd),I<0?I=-Rd(-I,Bd):I=Rd(I,Bd);var g=(-s-(A+I))/(3*o);g>=0&&g<=1&&(a[d++]=g)}else{var L=(2*c*s-3*o*h)/(2*ts(c*c*c)),k=Math.acos(L)/3,P=ts(c),z=Math.cos(k),g=(-s-2*P*z)/(3*o),b=(-s+P*(z+pC*Math.sin(k)))/(3*o),F=(-s+P*(z-pC*Math.sin(k)))/(3*o);g>=0&&g<=1&&(a[d++]=g),b>=0&&b<=1&&(a[d++]=b),F>=0&&F<=1&&(a[d++]=F)}}return d}function yC(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(rs(o)){if(gC(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(rs(c))i[0]=-a/(2*o);else if(c>0){var h=ts(c),u=(-a+h)/(2*o),p=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function Fd(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,h=(c-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=n}function WF(t,e,r,n,i,a,o,s,l,u,c){var h,p=.005,d=1/0,g,y,w,b;Oa[0]=l,Oa[1]=u;for(var S=0;S<1;S+=.05)Ii[0]=on(t,r,i,o,S),Ii[1]=on(e,n,a,s,S),w=Eu(Oa,Ii),w<d&&(h=S,d=w);d=1/0;for(var A=0;A<32&&!(p<dC);A++)g=h-p,y=h+p,Ii[0]=on(t,r,i,o,g),Ii[1]=on(e,n,a,s,g),w=Eu(Ii,Oa),g>=0&&w<d?(h=g,d=w):(Fu[0]=on(t,r,i,o,y),Fu[1]=on(e,n,a,s,y),b=Eu(Fu,Oa),y<=1&&b<d?(h=y,d=b):p*=.5);return ts(d)}function UF(t,e,r,n,i,a,o,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var g=d*p,y=on(t,r,i,o,g),w=on(e,n,a,s,g),b=y-u,S=w-c;h+=Math.sqrt(b*b+S*S),u=y,c=w}return h}function Vn(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function _C(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function qF(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(rs(a)){if(gC(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(rs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=ts(c),u=(-o+h)/(2*a),p=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function bC(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function $d(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function KF(t,e,r,n,i,a,o,s,l){var u,c=.005,h=1/0;Oa[0]=o,Oa[1]=s;for(var p=0;p<1;p+=.05){Ii[0]=Vn(t,r,i,p),Ii[1]=Vn(e,n,a,p);var d=Eu(Oa,Ii);d<h&&(u=p,h=d)}h=1/0;for(var g=0;g<32&&!(c<dC);g++){var y=u-c,w=u+c;Ii[0]=Vn(t,r,i,y),Ii[1]=Vn(e,n,a,y);var d=Eu(Ii,Oa);if(y>=0&&d<h)u=y,h=d;else{Fu[0]=Vn(t,r,i,w),Fu[1]=Vn(e,n,a,w);var b=Eu(Fu,Oa);w<=1&&b<h?(u=w,h=b):c*=.5}}return ts(h)}function YF(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,c=1/o,h=1;h<=o;h++){var p=h*c,d=Vn(t,r,i,p),g=Vn(e,n,a,p),y=d-s,w=g-l;u+=Math.sqrt(y*y+w*w),s=d,l=g}return u}var XF=/cubic-bezier\(([0-9,\.e ]+)\)/;function Q0(t){var e=t&&XF.exec(t);if(e){var r=e[1].split(","),n=+Qo(r[0]),i=+Qo(r[1]),a=+Qo(r[2]),o=+Qo(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Nd(0,n,a,1,l,s)&&on(0,i,o,1,s[0])}}}var jF=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||si,this.ondestroy=e.ondestroy||si,this.onrestart=e.onrestart||si,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=St(e)?e:Fc[e]||Q0(e)},t}(),wC=function(){function t(e){this.value=e}return t}(),ZF=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new wC(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),$u=function(){function t(e){this._list=new ZF,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new wC(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),xC={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 ns(t){return t=Math.round(t),t<0?0:t>255?255:t}function ey(t){return t<0?0:t>1?1:t}function ty(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ns(parseFloat(e)/100*255):ns(parseInt(e,10))}function _l(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ey(parseFloat(e)/100):ey(parseFloat(e))}function ry(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function zd(t,e,r){return t+(e-t)*r}function Di(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function ny(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var SC=new $u(20),Hd=null;function zu(t,e){Hd&&ny(Hd,e),Hd=SC.put(t,Hd||e.slice())}function Qi(t,e){if(t){e=e||[];var r=SC.get(t);if(r)return ny(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in xC)return ny(e,xC[n]),zu(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Di(e,0,0,0,1);return}return Di(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),zu(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Di(e,0,0,0,1);return}return Di(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),zu(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Di(e,+u[0],+u[1],+u[2],1):Di(e,0,0,0,1);c=_l(u.pop());case"rgb":if(u.length>=3)return Di(e,ty(u[0]),ty(u[1]),ty(u[2]),u.length===3?c:_l(u[3])),zu(t,e),e;Di(e,0,0,0,1);return;case"hsla":if(u.length!==4){Di(e,0,0,0,1);return}return u[3]=_l(u[3]),iy(u,e),zu(t,e),e;case"hsl":if(u.length!==3){Di(e,0,0,0,1);return}return iy(u,e),zu(t,e),e;default:return}}Di(e,0,0,0,1)}}function iy(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=_l(t[1]),i=_l(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Di(e,ns(ry(o,a,r+1/3)*255),ns(ry(o,a,r)*255),ns(ry(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function JF(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-e)/6+o/2)/o,h=((a-r)/6+o/2)/o,p=((a-n)/6+o/2)/o;e===a?l=p-h:r===a?l=1/3+c-p:n===a&&(l=2/3+h-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return t[3]!=null&&d.push(t[3]),d}}function TC(t,e){var r=Qi(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return $c(r,r.length===4?"rgba":"rgb")}}function QF(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Qi(e[i]),s=Qi(e[a]),l=n-i,u=$c([ns(zd(o[0],s[0],l)),ns(zd(o[1],s[1],l)),ns(zd(o[2],s[2],l)),ey(zd(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function ay(t,e,r,n){var i=Qi(t);if(t)return i=JF(i),r!=null&&(i[1]=_l(St(r)?r(i[1]):r)),n!=null&&(i[2]=_l(St(n)?n(i[2]):n)),$c(iy(i),"rgba")}function $c(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Vd(t,e){var r=Qi(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var CC=new $u(100);function oy(t){if(ct(t)){var e=CC.get(t);return e||(e=TC(t,-.1),CC.put(t,e)),e}else if(E0(t)){var r=We({},t);return r.colorStops=tt(t.colorStops,function(n){return{offset:n.offset,color:TC(n.color,-.1)}}),r}return t}var Gd=Math.round;function zc(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Qi(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var AC=1e-4;function is(t){return t<AC&&t>-AC}function Wd(t){return Gd(t*1e3)/1e3}function sy(t){return Gd(t*1e4)/1e4}function e3(t){return"matrix("+Wd(t[0])+","+Wd(t[1])+","+Wd(t[2])+","+Wd(t[3])+","+sy(t[4])+","+sy(t[5])+")"}var t3={left:"start",right:"end",center:"middle",middle:"middle"};function r3(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function n3(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function i3(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function MC(t){return t&&!!t.image}function a3(t){return t&&!!t.svgElement}function ly(t){return MC(t)||a3(t)}function IC(t){return t.type==="linear"}function DC(t){return t.type==="radial"}function kC(t){return t&&(t.type==="linear"||t.type==="radial")}function Ud(t){return"url(#"+t+")"}function LC(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function EC(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Ed,i=ut(t.scaleX,1),a=ut(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Gd(o*Ed)+"deg, "+Gd(s*Ed)+"deg)"),l.join(" ")}var o3=function(){return tr.hasGlobalWindow&&St(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),uy=Array.prototype.slice;function bo(t,e,r){return(e-t)*r+t}function fy(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=bo(e[a],r[a],n);return t}function s3(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=bo(e[o][s],r[o][s],n)}return t}function qd(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function PC(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function l3(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function u3(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:uy.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function Kd(t){if(zn(t)){var e=t.length;if(zn(t[0])){for(var r=[],n=0;n<e;n++)r.push(uy.call(t[n]));return r}return uy.call(t)}return t}function Yd(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function f3(t){return zn(t&&t[0])?2:1}var Xd=0,jd=1,RC=2,Hc=3,cy=4,hy=5,OC=6;function BC(t){return t===cy||t===hy}function Zd(t){return t===jd||t===RC}var Vc=[0,0,0,0],c3=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=OC,l=r;if(zn(r)){var u=f3(r);s=u,(u===1&&!sr(r[0])||u===2&&!sr(r[0][0]))&&(o=!0)}else if(sr(r)&&!Dc(r))s=Xd;else if(ct(r))if(!isNaN(+r))s=Xd;else{var c=Qi(r);c&&(l=c,s=Hc)}else if(E0(r)){var h=We({},l);h.colorStops=tt(r.colorStops,function(d){return{offset:d.offset,color:Qi(d.color)}}),IC(r)?s=cy:DC(r)&&(s=hy),l=h}a===0?this.valType=s:(s!==this.valType||s===OC)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return n&&(p.easing=n,p.easingFunc=St(n)?n:Fc[n]||Q0(n)),i.push(p),p},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(y,w){return y.time-w.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Zd(i),u=BC(i),c=0;c<a;c++){var h=n[c],p=h.value,d=o.value;h.percent=h.time/e,s||(l&&c!==a-1?u3(p,d,i):u&&l3(p.colorStops,d.colorStops))}if(!s&&i!==hy&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var g=n[0].value,c=0;c<a;c++)i===Xd?n[c].additiveValue=n[c].value-g:i===Hc?n[c].additiveValue=qd([],n[c].value,g,-1):Zd(i)&&(n[c].additiveValue=i===jd?qd([],n[c].value,g,-1):PC([],n[c].value,g,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Hc,c,h=this._lastFr,p=Math.min,d,g;if(s===1)d=g=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var y=p(h+1,s-1);for(c=y;c>=0&&!(o[c].percent<=r);c--);c=p(c,s-2)}else{for(c=h;c<s&&!(o[c].percent>r);c++);c=p(c-1,s-2)}g=o[c+1],d=o[c]}if(d&&g){this._lastFr=c,this._lastFrP=r;var w=g.percent-d.percent,b=w===0?1:p((r-d.percent)/w,1);g.easingFunc&&(b=g.easingFunc(b));var S=n?this._additiveValue:u?Vc:e[l];if((Zd(a)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)e[l]=b<1?d.rawValue:g.rawValue;else if(Zd(a))a===jd?fy(S,d[i],g[i],b):s3(S,d[i],g[i],b);else if(BC(a)){var A=d[i],I=g[i],L=a===cy;e[l]={type:L?"linear":"radial",x:bo(A.x,I.x,b),y:bo(A.y,I.y,b),colorStops:tt(A.colorStops,function(P,z){var F=I.colorStops[z];return{offset:bo(P.offset,F.offset,b),color:Yd(fy([],P.color,F.color,b))}}),global:I.global},L?(e[l].x2=bo(A.x2,I.x2,b),e[l].y2=bo(A.y2,I.y2,b)):e[l].r=bo(A.r,I.r,b)}else if(u)fy(S,d[i],g[i],b),n||(e[l]=Yd(S));else{var k=bo(d[i],g[i],b);n?this._additiveValue=k:e[l]=k}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Xd?e[n]=e[n]+i:r===Hc?(Qi(e[n],Vc),qd(Vc,Vc,i,1),e[n]=Yd(Vc)):r===jd?qd(e[n],e[n],i,1):r===RC&&PC(e[n],e[n],i,1)},t}(),vy=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){GT("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Ut(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new c3(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var h=c.keyframes,p=h[h.length-1];u=p&&p.value,c.valType===Hc&&u&&(u=Yd(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Kd(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Kd(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var p=new jF({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var g=r._additiveAnimators;if(g){for(var y=!1,w=0;w<g.length;w++)if(g[w]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var w=0;w<n.length;w++)n[w].step(r._target,d);var b=r._onframeCbs;if(b)for(var w=0;w<b.length;w++)b[w](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return tt(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=Kd(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Ut(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();function Hu(){return new Date().getTime()}var h3=function(t){Ye(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Hu()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(J0(n),!r._paused&&r.update())}J0(n)},e.prototype.start=function(){this._running||(this._time=Hu(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Hu(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Hu()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new vy(r,n.loop);return this.addAnimator(i),i},e}(_o),v3=300,dy=tr.domSupported,py=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=tt(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),NC={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},FC=!1;function gy(t){var e=t.pointerType;return e==="pen"||e==="touch"}function d3(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function my(t){t&&(t.zrByTouch=!0)}function p3(t,e){return Ji(t.dom,new g3(t,e),!0)}function $C(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var g3=function(){function t(e,r){this.stopPropagation=si,this.stopImmediatePropagation=si,this.preventDefault=si,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),ea={mousedown:function(t){t=Ji(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ji(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=Ji(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Ji(this.dom,t);var e=t.toElement||t.relatedTarget;$C(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){FC=!0,t=Ji(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){FC||(t=Ji(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Ji(this.dom,t),my(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ea.mousemove.call(this,t),ea.mousedown.call(this,t)},touchmove:function(t){t=Ji(this.dom,t),my(t),this.handler.processGesture(t,"change"),ea.mousemove.call(this,t)},touchend:function(t){t=Ji(this.dom,t),my(t),this.handler.processGesture(t,"end"),ea.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<v3&&ea.click.call(this,t)},pointerdown:function(t){ea.mousedown.call(this,t)},pointermove:function(t){gy(t)||ea.mousemove.call(this,t)},pointerup:function(t){ea.mouseup.call(this,t)},pointerout:function(t){gy(t)||ea.mouseout.call(this,t)}};ne(["click","dblclick","contextmenu"],function(t){ea[t]=function(e){e=Ji(this.dom,e),this.trigger(t,e)}});var yy={pointermove:function(t){gy(t)||yy.mousemove.call(this,t)},pointerup:function(t){yy.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 m3(t,e){var r=e.domHandlers;tr.pointerEventsSupported?ne(py.pointer,function(n){Jd(e,n,function(i){r[n].call(t,i)})}):(tr.touchEventsSupported&&ne(py.touch,function(n){Jd(e,n,function(i){r[n].call(t,i),d3(e)})}),ne(py.mouse,function(n){Jd(e,n,function(i){i=G0(i),e.touching||r[n].call(t,i)})}))}function y3(t,e){tr.pointerEventsSupported?ne(NC.pointer,r):tr.touchEventsSupported||ne(NC.mouse,r);function r(n){function i(a){a=G0(a),$C(t,a.target)||(a=p3(t,a),e.domHandlers[n].call(t,a))}Jd(e,n,i,{capture:!0})}}function Jd(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,AF(t.domTarget,e,r,n)}function _y(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&MF(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var zC=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),_3=function(t){Ye(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new zC(r,ea),dy&&(i._globalHandlerScope=new zC(document,yy)),m3(i,i._localHandlerScope),i}return e.prototype.dispose=function(){_y(this._localHandlerScope),dy&&_y(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,dy&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?y3(this,n):_y(n)}},e}(_o),HC=1;tr.hasGlobalWindow&&(HC=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var VC=HC,by=.4,wy="#333",xy="#ccc",b3="#eee",GC=U0,WC=5e-5;function bl(t){return t>WC||t<-WC}var wl=[],Vu=[],Sy=es(),Ty=Math.abs,Cy=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return bl(this.rotation)||bl(this.x)||bl(this.y)||bl(this.scaleX-1)||bl(this.scaleY-1)||bl(this.skewX)||bl(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(GC(n),this.invTransform=null);return}n=n||es(),r?this.getLocalTransform(n):GC(n),e&&(r?Lc(n,e,n):QT(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(wl);var n=wl[0]<0?-1:1,i=wl[1]<0?-1:1,a=((wl[0]-n)*r+n)/wl[0]||0,o=((wl[1]-i)*r+i)/wl[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||es(),Ec(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||es(),Lc(Vu,e.invTransform,r),r=Vu);var n=this.originX,i=this.originY;(n||i)&&(Sy[4]=n,Sy[5]=i,Lc(Vu,r,Sy),Vu[4]-=n,Vu[5]-=i,r=Vu),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&Mi(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&Mi(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Ty(e[0]-1)>1e-10&&Ty(e[3]-1)>1e-10?Math.sqrt(Ty(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Qd(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,h=e.y,p=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var g=n+s,y=i+l;r[4]=-g*a-p*y*o,r[5]=-y*o-d*g*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=p*o,u&&tC(r,r,u),r[4]+=n+c,r[5]+=i+h,r},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}(),Gc=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Qd(t,e){for(var r=0;r<Gc.length;r++){var n=Gc[r];t[n]=e[n]}}function Ba(t){ep||(ep=new $u(100)),t=t||yo;var e=ep.get(t);return e||(e={font:t,strWidthCache:new $u(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Zo.measureText("国",t).width,asciiCharWidth:Zo.measureText("a",t).width},ep.put(t,e)),e}var ep;function w3(t){if(!(Ay>=UC)){t=t||yo;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=Zo.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Ay=UC:i>2&&Ay++,e}}var Ay=0,UC=5;function qC(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=w3(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Na(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=Zo.measureText(e,t.font).width,r.put(e,n)),n}function KC(t,e,r,n){var i=Na(Ba(e),t),a=Wc(e),o=Gu(0,i,r),s=xl(0,a,n),l=new Nt(o,s,i,a);return l}function x3(t,e,r,n){var i=((t||"")+"").split(`
|
|
78
|
+
`),a=i.length;if(a===1)return KC(i[0],e,r,n);for(var o=new Nt(0,0,0,0),s=0;s<i.length;s++){var l=KC(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function Gu(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function xl(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function Wc(t){return Ba(t).stWideCharWidth}function as(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function tp(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",h="top";if(n instanceof Array)l+=as(n[0],r.width),u+=as(n[1],r.height),c=null,h=null;else switch(n){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,c="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,c="right",h="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var My="__zr_normal__",Iy=Gc.concat(["ignore"]),S3=Jo(Gc,function(t,e){return t[e]=!0,t},{ignore:!1}),Wu={},T3=new Nt(0,0,0,0),rp=[],np=function(){function t(e){this.id=VT(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,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(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var c=n.position!=null,h=n.autoOverflowArea,p=void 0;if((h||c)&&(p=T3,n.layoutRect?p.copy(n.layoutRect):p.copy(this.getBoundingRect()),i||p.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(Wu,n,p):tp(Wu,n,p),a.x=Wu.x,a.y=Wu.y,o=Wu.align,s=Wu.verticalAlign;var d=n.origin;if(d&&n.rotation!=null){var g=void 0,y=void 0;d==="center"?(g=p.width*.5,y=p.height*.5):(g=as(d[0],p.width),y=as(d[1],p.height)),u=!0,a.originX=-a.x+g+(i?0:p.x),a.originY=-a.y+y+(i?0:p.y)}}n.rotation!=null&&(a.rotation=n.rotation);var w=n.offset;w&&(a.x+=w[0],a.y+=w[1],u||(a.originX=-w[0],a.originY=-w[1]));var b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var S=b.overflowRect=b.overflowRect||new Nt(0,0,0,0);a.getLocalTransform(rp),Ec(rp,rp),Nt.copy(S,p),S.applyTransform(rp)}else b.overflowRect=null;var A=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,I=void 0,L=void 0,k=void 0;A&&this.canBeInsideText()?(I=n.insideFill,L=n.insideStroke,(I==null||I==="auto")&&(I=this.getInsideTextFill()),(L==null||L==="auto")&&(L=this.getInsideTextStroke(I),k=!0)):(I=n.outsideFill,L=n.outsideStroke,(I==null||I==="auto")&&(I=this.getOutsideFill()),(L==null||L==="auto")&&(L=this.getOutsideStroke(I),k=!0)),I=I||"#000",(I!==b.fill||L!==b.stroke||k!==b.autoStroke||o!==b.align||s!==b.verticalAlign)&&(l=!0,b.fill=I,b.stroke=L,b.autoStroke=k,b.align=o,b.verticalAlign=s,r.setDefaultTextStyle(b)),r.__dirty|=Ra,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?xy:wy},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Qi(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,$c(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},We(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(mt(e))for(var n=e,i=Ut(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==My)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Iy)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(My,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===My,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Zt(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){GT("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,p=this._textGuide;return h&&h.useState(e,r,n,c),p&&p.useState(e,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ra),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&i.push(c)}var h=i[o-1],p=!!(h&&h.hoverLayer||n);p&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!r&&!this.__inHover&&g&&g.duration>0,g);var y=this._textContent,w=this._textGuide;y&&y.useStates(e,r,p),w&&w.useStates(e,r,p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ra)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=Zt(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=Zt(i,e),o=Zt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];We(r,a),a.textConfig&&(n=n||{},We(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=We({},i?this.textConfig:n.textConfig),We(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<Iy.length;c++){var h=Iy[c],p=a&&S3[h];r&&r[h]!=null?p?(u=!0,l[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(p?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],g=d.targetName;d.getLoop()||d.__changeFinalValue(g?(r||n)[g]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Cy,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),We(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ra;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new vy(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=Zt(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){Dy(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Dy(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=Dy(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Ra;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();Zi(np,_o),Zi(np,Cy);function Dy(t,e,r,n,i){r=r||{};var a=[];YC(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(g,y){r.during(y)});for(var p=0;p<a.length;p++){var d=a[p];c&&d.done(c),h&&d.aborted(h),r.force&&d.duration(r.duration),d.start(r.easing)}return a}function ky(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function C3(t){return zn(t[0])}function A3(t,e,r){if(zn(e[r]))if(zn(t[r])||(t[r]=[]),Hn(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),ky(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(C3(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?ky(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else ky(a,i,o);a.length=i.length}else t[r]=e[r]}function M3(t,e){return t===e||zn(t)&&zn(e)&&I3(t,e)}function I3(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function YC(t,e,r,n,i,a,o,s){for(var l=Ut(n),u=i.duration,c=i.delay,h=i.additive,p=i.setToFinal,d=!mt(a),g=t.animators,y=[],w=0;w<l.length;w++){var b=l[w],S=n[b];if(S!=null&&r[b]!=null&&(d||a[b]))if(mt(S)&&!zn(S)&&!E0(S)){if(e){s||(r[b]=S,t.updateDuringAnimation(e));continue}YC(t,b,r[b],S,i,a&&a[b],o,s)}else y.push(b);else s||(r[b]=S,t.updateDuringAnimation(e),y.push(b))}var A=y.length;if(!h&&A)for(var I=0;I<g.length;I++){var L=g[I];if(L.targetName===e){var k=L.stopTracks(y);if(k){var P=Zt(g,L);g.splice(P,1)}}}if(i.force||(y=qr(y,function(G){return!M3(n[G],r[G])}),A=y.length),A>0||i.force&&!o.length){var z=void 0,F=void 0,W=void 0;if(s){F={},p&&(z={});for(var I=0;I<A;I++){var b=y[I];F[b]=r[b],p?z[b]=n[b]:r[b]=n[b]}}else if(p){W={};for(var I=0;I<A;I++){var b=y[I];W[b]=Kd(r[b]),A3(r,n,b)}}var L=new vy(r,!1,!1,h?qr(g,function(K){return K.targetName===e}):null);L.targetName=e,i.scope&&(L.scope=i.scope),p&&z&&L.whenWithKeys(0,z,y),W&&L.whenWithKeys(0,W,y),L.whenWithKeys(u??500,s?F:n,y).delay(c||0),t.addAnimator(L,e),o.push(L)}}var $r=function(t){Ye(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=Zt(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Zt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new Nt(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(Nt.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(np);$r.prototype.type="group";/*!
|
|
79
|
+
* ZRender, a high performance 2d drawing library.
|
|
80
|
+
*
|
|
81
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
82
|
+
* All rights reserved.
|
|
83
|
+
*
|
|
84
|
+
* LICENSE
|
|
85
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
86
|
+
*/var ip={},XC={};function D3(t){delete XC[t]}function k3(t){if(!t)return!1;if(typeof t=="string")return Vd(t,1)<by;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Vd(e[i].color,1);return r/=n,r<by}return!1}var L3=function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new GF,o=n.renderer||"canvas";ip[o]||(o=Ut(ip)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ip[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!tr.node&&!tr.worker&&!l?new _3(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,h=c==null||c==="auto"?tr.touchEventsSupported:!!c,p=44,d;h&&(d=ut(n.pointerSize,p)),this.handler=new oC(a,s,u,s.root,d),this.animation=new h3({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=k3(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=Hu();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Hu();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof $r&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,D3(this.id))},t}();function jC(t,e){var r=new L3(VT(),t,e);return XC[r.id]=r,r}function E3(t,e){ip[t]=e}var Ly;function P3(t){if(typeof Ly=="function")return Ly(t)}function R3(t){Ly=t}var ZC=1e-4,JC=20;function O3(t){return t.replace(/^\s+|\s+$/g,"")}var Uc=Math.min,ui=Math.max,Fa=Math.abs;function Ey(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var hr=B3;function B3(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Py(t,e,r)}function Py(t,e,r){return ct(t)?O3(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function sn(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),JC),t=(+t).toFixed(e),r?t:+t}function wo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return N3(t)}function N3(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function F3(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Fa(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function $3(t,e){var r=Jo(t,function(d,g){return d+(isNaN(g)?0:g)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=tt(t,function(d){return(isNaN(d)?0:d)/r*n*100}),a=n*100,o=tt(i,function(d){return Math.floor(d)}),s=Jo(o,function(d,g){return d+g},0),l=tt(i,function(d,g){return d-o[g]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],c=h);++o[c],l[c]=0,++s}return tt(o,function(d){return d/n})}function z3(t,e){var r=Math.max(wo(t),wo(e)),n=t+e;return r>JC?n:sn(n,r)}function QC(t){var e=Math.PI*2;return(t%e+e)%e}function ap(t){return t>-ZC&&t<ZC}var H3=/^(?:(\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 qc(t){if(t instanceof Date)return t;if(ct(t)){var e=H3.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else 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)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function V3(t){return Math.pow(10,Ry(t))}function Ry(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function eA(t,e){var r=Ry(t),n=Math.pow(10,r),i=t/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function G3(t){var e=parseFloat(t);return e==t&&(e!==0||!ct(t)||t.indexOf("x")<=0)?e:NaN}function W3(t){return!isNaN(G3(t))}function U3(){return Math.round(Math.random()*9)}function tA(t,e){return e===0?t:tA(e,t%e)}function rA(t,e){return t==null?e:e==null?t:t*e/tA(t,e)}var q3="[ECharts] ",K3=typeof console<"u"&&console.warn&&console.log;function Y3(t,e,r){K3&&console[t](q3+e)}function nA(t,e){Y3("error",t)}function fi(t){throw new Error(t)}function iA(t,e,r){return(e-t)*r+t}var aA="series\0",X3="\0_ec_\0";function kn(t){return t instanceof Array?t:t==null?[]:[t]}function Oy(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var oA=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Kc(t){return mt(t)&&!st(t)&&!(t instanceof Date)?t.value:t}function j3(t){return mt(t)&&!(t instanceof Array)}function Z3(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=kt();ne(e,function(l,u){if(!mt(l)){e[u]=null;return}});var s=J3(t,o,r);return(n||i)&&Q3(s,t,o,e),n&&e4(s,e),n||i?t4(s,e,i):a&&r4(s,e),n4(s),s}function J3(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||Xc(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Q3(t,e,r,n){ne(n,function(i,a){if(!(!i||i.id==null)){var o=Yc(i.id),s=r.get(o);if(s!=null){var l=t[s];Ea(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function e4(t,e){ne(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!Xc(r)&&!Xc(a)&&sA("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function t4(t,e,r){ne(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||Xc(i.existing)||i.existing&&n.id!=null&&!sA("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function r4(t,e){ne(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function n4(t){var e=kt();ne(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),ne(t,function(r){var n=r.newOption;Ea(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),ne(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(mt(a)){if(o.name=a.name!=null?Yc(a.name):i?i.name:aA+n,i)o.id=Yc(i.id);else if(a.id!=null)o.id=Yc(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function sA(t,e,r){var n=$a(e[t],null),i=$a(r[t],null);return n!=null&&i!=null&&n===i}function Yc(t){return $a(t,"")}function $a(t,e){return t==null?e:ct(t)?t:sr(t)||nF(t)?t+"":e}function By(t){var e=t.name;return!!(e&&e.indexOf(aA))}function Xc(t){return t&&t.id!=null&&Yc(t.id).indexOf(X3)===0}function i4(t,e,r){ne(t,function(n){var i=n.newOption;mt(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=a4(e,i,n.existing,r))})}function a4(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Uu(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return st(e.dataIndex)?tt(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return st(e.name)?tt(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Rr(){var t="__ec_inner_"+o4++;return function(e){return e[t]||(e[t]={})}}var o4=U3();function Ny(t,e,r){var n=lA(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var h=op(t,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=h.models,s[c+"Model"]=h.models[0]}),s}function lA(t,e){var r;if(ct(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=kt(),a={},o=!1;return ne(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],h=(u[2]||"").toLowerCase();if(!(!c||!h||e&&e.includeMainTypes&&Zt(e.includeMainTypes,c)<0)){o=o||!!c;var p=i.get(c)||i.set(c,{});p[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ki={useDefault:!0,enableAll:!1,enableNone:!1};function op(t,e,r,n){n=n||ki;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function uA(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function s4(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function l4(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(sr(n)){var o=iA(r||0,n,i);return sn(o,a?Math.max(wo(r||0),wo(n)):e)}else{if(ct(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var p=t.getDimensionInfo(h);if(p&&p.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var d=l&&l[h]?l[h]:0,g=u[h],o=iA(d,g,i);s[h]=sn(o,a?Math.max(wo(d),wo(g)):e)}}return s}}var u4=".",Sl="___EC__COMPONENT__CONTAINER___",fA="___EC__EXTENDED_CLASS___";function za(t){var e={main:"",sub:""};if(t){var r=t.split(u4);e.main=r[0]||"",e.sub=r[1]||""}return e}function f4(t){Ea(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function c4(t){return!!(t&&t[fA])}function Fy(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return h4(n)?i=function(a){Ye(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},tF(i,this)),We(i.prototype,r),i[fA]=!0,i.extend=this.extend,i.superCall=p4,i.superApply=g4,i.superClass=n,i}}function h4(t){return St(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function cA(t,e){t.extend=e.extend}var v4=Math.round(Math.random()*10);function d4(t){var e=["__\0is_clz",v4++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function p4(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function g4(t,e,r){return this.superClass.prototype[e].apply(t,r)}function sp(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){f4(i),n.prototype.type=i;var a=za(i);if(!a.sub)e[a.main]=n;else if(a.sub!==Sl){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Sl]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=za(n),a=[],o=e[i.main];return o&&o[Sl]?ne(o,function(s,l){l!==Sl&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=za(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return ne(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=za(n),a=e[i.main];return a&&a[Sl]};function r(n){var i=e[n.main];return(!i||!i[Sl])&&(i=e[n.main]={},i[Sl]=!0),i}}function jc(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&Zt(i,l)>=0||a&&Zt(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var m4=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],y4=jc(m4),_4=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return y4(this,e,r)},t}(),$y=new $u(50);function b4(t){if(typeof t=="string"){var e=$y.get(t);return e&&e.image}else return t}function zy(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=$y.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!lp(e)&&a.pending.push(o)):(e=Zo.loadImage(t,hA,hA),e.__zrImageSrc=t,$y.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function hA(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function lp(t){return t&&t.width&&t.height}var Hy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function w4(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
87
|
+
`);a=vA(r,n,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)dA(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
88
|
+
`),t.isTruncated=s}function vA(t,e,r,n){n=n||{};var i=We({},n);r=ut(r,"..."),i.maxIterations=ut(n.maxIterations,2);var a=i.minChar=ut(n.minChar,0),o=i.fontMeasureInfo=Ba(e),s=o.asciiCharWidth;i.placeholder=ut(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var c=Na(o,r);return c>l&&(r="",c=0),l=t-c,i.ellipsis=r,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=t,i}function dA(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=Na(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?x4(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Na(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function x4(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=qC(r,t.charCodeAt(i));return i}function S4(t,e,r,n){var i=Gy(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c=a==="truncate",h=Wc(u),p=ut(e.lineHeight,h),d=e.lineOverflow==="truncate",g=!1,y=e.width;y==null&&r!=null&&(y=r-s);var w=e.height;w==null&&n!=null&&(w=n-l);var b;y!=null&&(a==="break"||a==="breakAll")?b=i?gA(i,e.font,y,a==="breakAll",0).lines:[]:b=i?i.split(`
|
|
89
|
+
`):[];var S=b.length*p;if(w==null&&(w=S),S>w&&d){var A=Math.floor(w/p);g=g||b.length>A,b=b.slice(0,A),S=b.length*p}if(i&&c&&y!=null)for(var I=vA(y,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),L={},k=0;k<b.length;k++)dA(L,b[k],I),b[k]=L.textLine,g=g||L.isTruncated;for(var P=w,z=0,F=Ba(u),k=0;k<b.length;k++)z=Math.max(Na(F,b[k]),z);y==null&&(y=z);var W=y;return P+=l,W+=s,{lines:b,height:w,outerWidth:W,outerHeight:P,lineHeight:p,calculatedLineHeight:h,contentWidth:z,contentHeight:S,width:y,isTruncated:g}}var T4=function(){function t(){}return t}(),pA=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),C4=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function A4(t,e,r,n,i){var a=new C4,o=Gy(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;c==null&&r!=null&&(c=r-l);var h=e.height;h==null&&n!=null&&(h=n-u);for(var p=e.overflow,d=(p==="break"||p==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:p==="breakAll"}:null,g=Hy.lastIndex=0,y;(y=Hy.exec(o))!=null;){var w=y.index;w>g&&Vy(a,o.substring(g,w),e,d),Vy(a,y[2],e,d,y[1]),g=Hy.lastIndex}g<o.length&&Vy(a,o.substring(g,o.length),e,d);var b=[],S=0,A=0,I=p==="truncate",L=e.lineOverflow==="truncate",k={};function P(Oe,lt,dt){Oe.width=lt,Oe.lineHeight=dt,S+=dt,A=Math.max(A,lt)}e:for(var z=0;z<a.lines.length;z++){for(var F=a.lines[z],W=0,G=0,K=0;K<F.tokens.length;K++){var q=F.tokens[K],ie=q.styleName&&e.rich[q.styleName]||{},ve=q.textPadding=ie.padding,ye=ve?ve[1]+ve[3]:0,be=q.font=ie.font||e.font;q.contentHeight=Wc(be);var ue=ut(ie.height,q.contentHeight);if(q.innerHeight=ue,ve&&(ue+=ve[0]+ve[2]),q.height=ue,q.lineHeight=vl(ie.lineHeight,e.lineHeight,ue),q.align=ie&&ie.align||i,q.verticalAlign=ie&&ie.verticalAlign||"middle",L&&h!=null&&S+q.lineHeight>h){var Me=a.lines.length;K>0?(F.tokens=F.tokens.slice(0,K),P(F,G,W),a.lines=a.lines.slice(0,z+1)):a.lines=a.lines.slice(0,z),a.isTruncated=a.isTruncated||a.lines.length<Me;break e}var ke=ie.width,ce=ke==null||ke==="auto";if(typeof ke=="string"&&ke.charAt(ke.length-1)==="%")q.percentWidth=ke,b.push(q),q.contentWidth=Na(Ba(be),q.text);else{if(ce){var fe=ie.backgroundColor,Pe=fe&&fe.image;Pe&&(Pe=b4(Pe),lp(Pe)&&(q.width=Math.max(q.width,Pe.width*ue/Pe.height)))}var Qe=I&&c!=null?c-G:null;Qe!=null&&Qe<q.width?!ce||Qe<ye?(q.text="",q.width=q.contentWidth=0):(w4(k,q.text,Qe-ye,be,e.ellipsis,{minChar:e.truncateMinChar}),q.text=k.text,a.isTruncated=a.isTruncated||k.isTruncated,q.width=q.contentWidth=Na(Ba(be),q.text)):q.contentWidth=Na(Ba(be),q.text)}q.width+=ye,G+=q.width,ie&&(W=Math.max(W,q.lineHeight))}P(F,G,W)}a.outerWidth=a.width=ut(c,A),a.outerHeight=a.height=ut(h,S),a.contentHeight=S,a.contentWidth=A,a.outerWidth+=l,a.outerHeight+=u;for(var z=0;z<b.length;z++){var q=b[z],Ae=q.percentWidth;q.width=parseInt(Ae,10)/100*a.width}return a}function Vy(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,c,h;if(n){var p=o.padding,d=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var g=as(o.width,n.width)+d;s.length>0&&g+n.accumWidth>n.width&&(c=e.split(`
|
|
90
|
+
`),u=!0),n.accumWidth=g}else{var y=gA(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+d,h=y.linesWidths,c=y.lines}}c||(c=e.split(`
|
|
91
|
+
`));for(var w=Ba(l),b=0;b<c.length;b++){var S=c[b],A=new T4;if(A.styleName=i,A.text=S,A.isLineHolder=!S&&!a,typeof o.width=="number"?A.width=o.width:A.width=h?h[b]:Na(w,S),!b&&!u){var I=(s[s.length-1]||(s[0]=new pA)).tokens,L=I.length;L===1&&I[0].isLineHolder?I[0]=A:(S||!L||a)&&I.push(A)}else s.push(new pA([A]))}}function M4(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var I4=Jo(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function D4(t){return M4(t)?!!I4[t]:!0}function gA(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,h=Ba(e),p=0;p<t.length;p++){var d=t.charAt(p);if(d===`
|
|
92
|
+
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var g=qC(h,d.charCodeAt(0)),y=n?!1:!D4(d);if(a.length?c+g>r:i+c+g>r){c?(s||l)&&(y?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=g,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=g)):y?(a.push(l),o.push(u),l=d,u=g):(a.push(d),o.push(g));continue}c+=g,y?(l+=d,u+=g):(l&&(s+=l,l="",u=0),s+=d)}return l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}function mA(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;Nt.set(yA,Gu(r,o,i),xl(n,s,a),o,s),Nt.intersect(e,yA,null,_A);var l=_A.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Gu(l.x,l.width,i,!0),t.baseY=xl(l.y,l.height,a,!0)}}var yA=new Nt(0,0,0,0),_A={outIntersectRect:{},clamp:!0};function Gy(t){return t!=null?t+="":t=""}function k4(t){var e=Gy(t.text),r=t.font,n=Na(Ba(r),e),i=Wc(r);return Wy(t,n,i,null)}function Wy(t,e,r,n){var i=new Nt(Gu(t.x||0,e,t.textAlign),xl(t.y||0,r,t.textBaseline),e,r),a=n??(bA(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function bA(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Uy="__zr_style_"+Math.round(Math.random()*10),Tl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},up={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Tl[Uy]=!0;var wA=["z","z2","invisible"],L4=["invisible"],Zc=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Ut(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&E4(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Nt(0,0,0,0)),n?Nt.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Nt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:We(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Nc,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Nc)},e.prototype.styleUpdated=function(){this.__dirty&=~Nc},e.prototype.createStyle=function(r){return Ld(Tl,r)},e.prototype.useStyle=function(r){r[Uy]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Uy]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,wA)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=Ut(c),p=0;p<h.length;p++){var d=h[p];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var g=Ut(u),p=0;p<g.length;p++){var d=g[p];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var y=this.__inHover?L4:wA,p=0;p<y.length;p++){var d=y[p];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return We(r,n),r},e.prototype.getAnimationStyleProps=function(){return up},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ra|Nc}(),e}(np),qy=new Nt(0,0,0,0),Ky=new Nt(0,0,0,0);function E4(t,e,r){return qy.copy(t.getBoundingRect()),t.transform&&qy.applyTransform(t.transform),Ky.width=e,Ky.height=r,!qy.intersect(Ky)}var Li=Math.min,Ei=Math.max,Yy=Math.sin,Xy=Math.cos,Cl=Math.PI*2,fp=Lu(),cp=Lu(),hp=Lu();function xA(t,e,r,n,i,a){i[0]=Li(t,r),i[1]=Li(e,n),a[0]=Ei(t,r),a[1]=Ei(e,n)}var SA=[],TA=[];function P4(t,e,r,n,i,a,o,s,l,u){var c=yC,h=on,p=c(t,r,i,o,SA);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var g=h(t,r,i,o,SA[d]);l[0]=Li(g,l[0]),u[0]=Ei(g,u[0])}p=c(e,n,a,s,TA);for(var d=0;d<p;d++){var y=h(e,n,a,s,TA[d]);l[1]=Li(y,l[1]),u[1]=Ei(y,u[1])}l[0]=Li(t,l[0]),u[0]=Ei(t,u[0]),l[0]=Li(o,l[0]),u[0]=Ei(o,u[0]),l[1]=Li(e,l[1]),u[1]=Ei(e,u[1]),l[1]=Li(s,l[1]),u[1]=Ei(s,u[1])}function R4(t,e,r,n,i,a,o,s){var l=bC,u=Vn,c=Ei(Li(l(t,r,i),1),0),h=Ei(Li(l(e,n,a),1),0),p=u(t,r,i,c),d=u(e,n,a,h);o[0]=Li(t,i,p),o[1]=Li(e,a,d),s[0]=Ei(t,i,p),s[1]=Ei(e,a,d)}function O4(t,e,r,n,i,a,o,s,l){var u=Pu,c=Ru,h=Math.abs(i-a);if(h%Cl<1e-4&&h>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(fp[0]=Xy(i)*r+t,fp[1]=Yy(i)*n+e,cp[0]=Xy(a)*r+t,cp[1]=Yy(a)*n+e,u(s,fp,cp),c(l,fp,cp),i=i%Cl,i<0&&(i=i+Cl),a=a%Cl,a<0&&(a=a+Cl),i>a&&!o?a+=Cl:i<a&&o&&(i+=Cl),o){var p=a;a=i,i=p}for(var d=0;d<a;d+=Math.PI/2)d>i&&(hp[0]=Xy(d)*r+t,hp[1]=Yy(d)*n+e,u(s,hp,s),c(l,hp,l))}var Jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Al=[],Ml=[],Ha=[],os=[],Va=[],Ga=[],jy=Math.min,Zy=Math.max,Il=Math.cos,Dl=Math.sin,xo=Math.abs,Jy=Math.PI,ss=Jy*2,Qy=typeof Float32Array<"u",Jc=[];function e_(t){var e=Math.round(t/Jy*1e8)/1e8;return e%2*Jy}function CA(t,e){var r=e_(t[0]);r<0&&(r+=ss);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=ss?i=r+ss:e&&r-i>=ss?i=r-ss:!e&&r>i?i=r+(ss-e_(r-i)):e&&r<i&&(i=r-(ss-e_(i-r))),t[0]=r,t[1]=i}var ls=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=xo(n/VC/e)||0,this._uy=xo(n/VC/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},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(e,r){return this._drawPendingPt(),this.addData(Jt.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=xo(e-this._xi),i=xo(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Jt.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Jt.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Jt.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Jc[0]=i,Jc[1]=a,CA(Jc,o),i=Jc[0],a=Jc[1];var s=a-i;return this.addData(Jt.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Il(a)*n+e,this._yi=Dl(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Jt.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Jt.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Qy&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(Qy&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var h=0;h<arguments.length;h++)c[this._len++]=arguments[h]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Qy&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Ha[0]=Ha[1]=Va[0]=Va[1]=Number.MAX_VALUE,os[0]=os[1]=Ga[0]=Ga[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case Jt.M:r=i=e[o++],n=a=e[o++],Va[0]=i,Va[1]=a,Ga[0]=i,Ga[1]=a;break;case Jt.L:xA(r,n,e[o],e[o+1],Va,Ga),r=e[o++],n=e[o++];break;case Jt.C:P4(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Va,Ga),r=e[o++],n=e[o++];break;case Jt.Q:R4(r,n,e[o++],e[o++],e[o],e[o+1],Va,Ga),r=e[o++],n=e[o++];break;case Jt.A:var u=e[o++],c=e[o++],h=e[o++],p=e[o++],d=e[o++],g=e[o++]+d;o+=1;var y=!e[o++];l&&(i=Il(d)*h+u,a=Dl(d)*p+c),O4(u,c,h,p,d,g,y,Va,Ga),r=Il(g)*h+u,n=Dl(g)*p+c;break;case Jt.R:i=r=e[o++],a=n=e[o++];var w=e[o++],b=e[o++];xA(i,a,i+w,a+b,Va,Ga);break;case Jt.Z:r=i,n=a;break}Pu(Ha,Ha,Va),Ru(os,os,Ga)}return o===0&&(Ha[0]=Ha[1]=os[0]=os[1]=0),new Nt(Ha[0],Ha[1],os[0]-Ha[0],os[1]-Ha[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,h=0,p=0;p<r;){var d=e[p++],g=p===1;g&&(a=e[p],o=e[p+1],s=a,l=o);var y=-1;switch(d){case Jt.M:a=s=e[p++],o=l=e[p++];break;case Jt.L:{var w=e[p++],b=e[p++],S=w-a,A=b-o;(xo(S)>n||xo(A)>i||p===r-1)&&(y=Math.sqrt(S*S+A*A),a=w,o=b);break}case Jt.C:{var I=e[p++],L=e[p++],w=e[p++],b=e[p++],k=e[p++],P=e[p++];y=UF(a,o,I,L,w,b,k,P,10),a=k,o=P;break}case Jt.Q:{var I=e[p++],L=e[p++],w=e[p++],b=e[p++];y=YF(a,o,I,L,w,b,10),a=w,o=b;break}case Jt.A:var z=e[p++],F=e[p++],W=e[p++],G=e[p++],K=e[p++],q=e[p++],ie=q+K;p+=1,g&&(s=Il(K)*W+z,l=Dl(K)*G+F),y=Zy(W,G)*jy(ss,Math.abs(q)),a=Il(ie)*W+z,o=Dl(ie)*G+F;break;case Jt.R:{s=a=e[p++],l=o=e[p++];var ve=e[p++],ye=e[p++];y=ve*2+ye*2;break}case Jt.Z:{var S=s-a,A=l-o;y=Math.sqrt(S*S+A*A),a=s,o=l;break}}y>=0&&(u[h++]=y,c+=y)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,h,p,d=r<1,g,y,w=0,b=0,S,A=0,I,L;if(!(d&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,y=this._pathLen,S=r*y,!S)))e:for(var k=0;k<o;){var P=n[k++],z=k===1;switch(z&&(u=n[k],c=n[k+1],s=u,l=c),P!==Jt.L&&A>0&&(e.lineTo(I,L),A=0),P){case Jt.M:s=u=n[k++],l=c=n[k++],e.moveTo(u,c);break;case Jt.L:{h=n[k++],p=n[k++];var F=xo(h-u),W=xo(p-c);if(F>i||W>a){if(d){var G=g[b++];if(w+G>S){var K=(S-w)/G;e.lineTo(u*(1-K)+h*K,c*(1-K)+p*K);break e}w+=G}e.lineTo(h,p),u=h,c=p,A=0}else{var q=F*F+W*W;q>A&&(I=h,L=p,A=q)}break}case Jt.C:{var ie=n[k++],ve=n[k++],ye=n[k++],be=n[k++],ue=n[k++],Me=n[k++];if(d){var G=g[b++];if(w+G>S){var K=(S-w)/G;Fd(u,ie,ye,ue,K,Al),Fd(c,ve,be,Me,K,Ml),e.bezierCurveTo(Al[1],Ml[1],Al[2],Ml[2],Al[3],Ml[3]);break e}w+=G}e.bezierCurveTo(ie,ve,ye,be,ue,Me),u=ue,c=Me;break}case Jt.Q:{var ie=n[k++],ve=n[k++],ye=n[k++],be=n[k++];if(d){var G=g[b++];if(w+G>S){var K=(S-w)/G;$d(u,ie,ye,K,Al),$d(c,ve,be,K,Ml),e.quadraticCurveTo(Al[1],Ml[1],Al[2],Ml[2]);break e}w+=G}e.quadraticCurveTo(ie,ve,ye,be),u=ye,c=be;break}case Jt.A:var ke=n[k++],ce=n[k++],fe=n[k++],Pe=n[k++],Qe=n[k++],Ae=n[k++],Oe=n[k++],lt=!n[k++],dt=fe>Pe?fe:Pe,$e=xo(fe-Pe)>.001,Tt=Qe+Ae,rt=!1;if(d){var G=g[b++];w+G>S&&(Tt=Qe+Ae*(S-w)/G,rt=!0),w+=G}if($e&&e.ellipse?e.ellipse(ke,ce,fe,Pe,Oe,Qe,Tt,lt):e.arc(ke,ce,dt,Qe,Tt,lt),rt)break e;z&&(s=Il(Qe)*fe+ke,l=Dl(Qe)*Pe+ce),u=Il(Tt)*fe+ke,c=Dl(Tt)*Pe+ce;break;case Jt.R:s=u=n[k],l=c=n[k+1],h=n[k++],p=n[k++];var $=n[k++],J=n[k++];if(d){var G=g[b++];if(w+G>S){var se=S-w;e.moveTo(h,p),e.lineTo(h+jy(se,$),p),se-=$,se>0&&e.lineTo(h+$,p+jy(se,J)),se-=J,se>0&&e.lineTo(h+Zy($-se,0),p+J),se-=$,se>0&&e.lineTo(h,p+Zy(J-se,0));break e}w+=G}e.rect(h,p,$,J);break;case Jt.Z:if(d){var G=g[b++];if(w+G>S){var K=(S-w)/G;e.lineTo(u*(1-K)+s*K,c*(1-K)+l*K);break e}w+=G}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Jt,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function qu(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var c=l*a-o+u,h=c*c/(l*l+1);return h<=s/2*s/2}function B4(t,e,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var h=l;if(c>e+h&&c>n+h&&c>a+h&&c>s+h||c<e-h&&c<n-h&&c<a-h&&c<s-h||u>t+h&&u>r+h&&u>i+h&&u>o+h||u<t-h&&u<r-h&&u<i-h&&u<o-h)return!1;var p=WF(t,e,r,n,i,a,o,s,u,c);return p<=h/2}function N4(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var c=KF(t,e,r,n,i,a,s,l);return c<=u/2}var AA=Math.PI*2;function vp(t){return t%=AA,t<0&&(t+=AA),t}var Qc=Math.PI*2;function F4(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%Qc<1e-4)return!0;if(a){var h=n;n=vp(i),i=vp(h)}else n=vp(n),i=vp(i);n>i&&(i+=Qc);var p=Math.atan2(l,s);return p<0&&(p+=Qc),p>=n&&p<=i||p+Qc>=n&&p+Qc<=i}function kl(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var us=ls.CMD,Ll=Math.PI*2,$4=1e-4;function z4(t,e){return Math.abs(t-e)<$4}var Ln=[-1,-1,-1],Pi=[-1,-1];function H4(){var t=Pi[0];Pi[0]=Pi[1],Pi[1]=t}function V4(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var c=Nd(e,n,a,s,u,Ln);if(c===0)return 0;for(var h=0,p=-1,d=void 0,g=void 0,y=0;y<c;y++){var w=Ln[y],b=w===0||w===1?.5:1,S=on(t,r,i,o,w);S<l||(p<0&&(p=yC(e,n,a,s,Pi),Pi[1]<Pi[0]&&p>1&&H4(),d=on(e,n,a,s,Pi[0]),p>1&&(g=on(e,n,a,s,Pi[1]))),p===2?w<Pi[0]?h+=d<e?b:-b:w<Pi[1]?h+=g<d?b:-b:h+=s<g?b:-b:w<Pi[0]?h+=d<e?b:-b:h+=s<d?b:-b)}return h}function G4(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=qF(e,n,a,s,Ln);if(l===0)return 0;var u=bC(e,n,a);if(u>=0&&u<=1){for(var c=0,h=Vn(e,n,a,u),p=0;p<l;p++){var d=Ln[p]===0||Ln[p]===1?.5:1,g=Vn(t,r,i,Ln[p]);g<o||(Ln[p]<u?c+=h<e?d:-d:c+=a<h?d:-d)}return c}else{var d=Ln[0]===0||Ln[0]===1?.5:1,g=Vn(t,r,i,Ln[0]);return g<o?0:a<e?d:-d}}function W4(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Ln[0]=-l,Ln[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ll-1e-4){n=0,i=Ll;var c=a?1:-1;return o>=Ln[0]+t&&o<=Ln[1]+t?c:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Ll,i+=Ll);for(var p=0,d=0;d<2;d++){var g=Ln[d];if(g+t>o){var y=Math.atan2(s,g),c=a?1:-1;y<0&&(y=Ll+y),(y>=n&&y<=i||y+Ll>=n&&y+Ll<=i)&&(y>Math.PI/2&&y<Math.PI*1.5&&(c=-c),p+=c)}}return p}function MA(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,c=0,h=0,p,d,g=0;g<o;){var y=a[g++],w=g===1;switch(y===us.M&&g>1&&(r||(s+=kl(l,u,c,h,n,i))),w&&(l=a[g],u=a[g+1],c=l,h=u),y){case us.M:c=a[g++],h=a[g++],l=c,u=h;break;case us.L:if(r){if(qu(l,u,a[g],a[g+1],e,n,i))return!0}else s+=kl(l,u,a[g],a[g+1],n,i)||0;l=a[g++],u=a[g++];break;case us.C:if(r){if(B4(l,u,a[g++],a[g++],a[g++],a[g++],a[g],a[g+1],e,n,i))return!0}else s+=V4(l,u,a[g++],a[g++],a[g++],a[g++],a[g],a[g+1],n,i)||0;l=a[g++],u=a[g++];break;case us.Q:if(r){if(N4(l,u,a[g++],a[g++],a[g],a[g+1],e,n,i))return!0}else s+=G4(l,u,a[g++],a[g++],a[g],a[g+1],n,i)||0;l=a[g++],u=a[g++];break;case us.A:var b=a[g++],S=a[g++],A=a[g++],I=a[g++],L=a[g++],k=a[g++];g+=1;var P=!!(1-a[g++]);p=Math.cos(L)*A+b,d=Math.sin(L)*I+S,w?(c=p,h=d):s+=kl(l,u,p,d,n,i);var z=(n-b)*I/A+b;if(r){if(F4(b,S,I,L,L+k,P,e,z,i))return!0}else s+=W4(b,S,I,L,L+k,P,z,i);l=Math.cos(L+k)*A+b,u=Math.sin(L+k)*I+S;break;case us.R:c=l=a[g++],h=u=a[g++];var F=a[g++],W=a[g++];if(p=c+F,d=h+W,r){if(qu(c,h,p,h,e,n,i)||qu(p,h,p,d,e,n,i)||qu(p,d,c,d,e,n,i)||qu(c,d,c,h,e,n,i))return!0}else s+=kl(p,h,p,d,n,i),s+=kl(c,d,c,h,n,i);break;case us.Z:if(r){if(qu(l,u,c,h,e,n,i))return!0}else s+=kl(l,u,c,h,n,i);l=c,u=h;break}}return!r&&!z4(u,h)&&(s+=kl(l,u,c,h,n,i)||0),s!==0}function U4(t,e,r){return MA(t,0,!1,e,r)}function q4(t,e,r,n){return MA(t,e,!0,r,n)}var dp=Wt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Tl),K4={style:Wt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},up.style)},t_=Gc.concat(["invisible","culling","z","z2","zlevel","parent"]),Kt=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<t_.length;++s)i[t_[s]]=this[t_[s]];i.__dirty|=Ra}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Ut(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?We(this.style,s):this.useStyle(s):o==="shape"?We(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(ct(r)){var n=Vd(r,0);return n>.5?wy:n>.2?b3:xy}else if(r)return xy}return wy},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(ct(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Vd(r,0)<by;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Nu},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new ls(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Nu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),q4(s,l/u,r,n)))return!0}if(this.hasFill())return U4(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Nu,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:We(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Nu)},e.prototype.createStyle=function(r){return Ld(dp,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=We({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=We({},i.shape),We(u,n.shape)):(u=We({},a?this.shape:i.shape),We(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=We({},this.shape);for(var c={},h=Ut(u),p=0;p<h.length;p++){var d=h[p];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return K4},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(a){Ye(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Vt(r.style)},o.prototype.getDefaultShape=function(){return Vt(r.shape)},o}(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ra|Nc|Nu}(),e}(Zc),Y4=Wt({strokeFirst:!0,font:yo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},dp),eh=function(t){Ye(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return bA(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return Ld(Y4,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=k4(this.style)),this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(Zc);eh.prototype.type="tspan";var X4=Wt({x:0,y:0},Tl),j4={style:Wt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},up.style)};function Z4(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var ta=function(t){Ye(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Ld(X4,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Z4(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return j4},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Nt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Zc);ta.prototype.type="image";function J4(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+c>i&&(h=u+c,u*=i/h,c*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+c>a&&(h=s+c,s*=a/h,c*=a/h),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+c,n+a),c!==0&&t.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Ku=Math.round;function IA(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Ku(n*2)===Ku(i*2)&&(t.x1=t.x2=El(n,s,!0)),Ku(a*2)===Ku(o*2)&&(t.y1=t.y2=El(a,s,!0))),t}}function DA(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=El(n,s,!0),t.y=El(i,s,!0),t.width=Math.max(El(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(El(i+o,s,!1)-t.y,o===0?0:1)),t}}function El(t,e,r){if(!e)return t;var n=Ku(t*2);return(n+Ku(e))%2===0?n/2:(n+(r?1:-1))/2}var Q4=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),e$={},zr=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Q4},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=DA(e$,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?J4(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Kt);zr.prototype.type="rect";var kA={fill:"#000"},LA=2,Wa={},t$={style:Wt({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},up.style)},ci=function(t){Ye(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=kA,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,i$(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Nt(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||kA},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return We(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Ut(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},We(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return t$},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||yo,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";mA(Wa,a.overflowRect,o,s,l,u),o=Wa.baseX,s=Wa.baseY;var c=zA(r),h=S4(c,r,Wa.outerWidth,Wa.outerHeight),p=r_(r),d=!!r.backgroundColor,g=h.outerHeight,y=h.outerWidth,w=h.lines,b=h.lineHeight;this.isTruncated=!!h.isTruncated;var S=o,A=xl(s,h.contentHeight,u);if(p||i){var I=Gu(o,y,l),L=xl(s,g,u);p&&this._renderBackground(r,r,I,L,y,g)}A+=b/2,i&&(S=$A(o,l,i),u==="top"?A+=i[0]:u==="bottom"&&(A-=i[2]));for(var k=0,P=!1,z=!1,F=FA("fill"in r?r.fill:(z=!0,a.fill)),W=NA("stroke"in r?r.stroke:!d&&(!a.autoStroke||z)?(k=LA,P=!0,a.stroke):null),G=r.textShadowBlur>0,K=0;K<w.length;K++){var q=this._getOrCreateChild(eh),ie=q.createStyle();q.useStyle(ie),ie.text=w[K],ie.x=S,ie.y=A,ie.textAlign=l,ie.textBaseline="middle",ie.opacity=r.opacity,ie.strokeFirst=!0,G&&(ie.shadowBlur=r.textShadowBlur||0,ie.shadowColor=r.textShadowColor||"transparent",ie.shadowOffsetX=r.textShadowOffsetX||0,ie.shadowOffsetY=r.textShadowOffsetY||0),ie.stroke=W,ie.fill=F,W&&(ie.lineWidth=r.lineWidth||k,ie.lineDash=r.lineDash,ie.lineDashOffset=r.lineDashOffset||0),ie.font=n,RA(ie,r),A+=b,q.setBoundingRect(Wy(ie,h.contentWidth,h.calculatedLineHeight,P?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;mA(Wa,n.overflowRect,o,s,i,a),o=Wa.baseX,s=Wa.baseY;var l=zA(r),u=A4(l,r,Wa.outerWidth,Wa.outerHeight,i),c=u.width,h=u.outerWidth,p=u.outerHeight,d=r.padding;this.isTruncated=!!u.isTruncated;var g=Gu(o,h,i),y=xl(s,p,a),w=g,b=y;d&&(w+=d[3],b+=d[0]);var S=w+c;r_(r)&&this._renderBackground(r,r,g,y,h,p);for(var A=!!r.backgroundColor,I=0;I<u.lines.length;I++){for(var L=u.lines[I],k=L.tokens,P=k.length,z=L.lineHeight,F=L.width,W=0,G=w,K=S,q=P-1,ie=void 0;W<P&&(ie=k[W],!ie.align||ie.align==="left");)this._placeToken(ie,r,z,b,G,"left",A),F-=ie.width,G+=ie.width,W++;for(;q>=0&&(ie=k[q],ie.align==="right");)this._placeToken(ie,r,z,b,K,"right",A),F-=ie.width,K-=ie.width,q--;for(G+=(c-(G-w)-(S-K)-F)/2;W<=q;)ie=k[W],this._placeToken(ie,r,z,b,G+ie.width/2,"center",A),G+=ie.width,W++;b+=z}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,h=a+i/2;c==="top"?h=a+r.height/2:c==="bottom"&&(h=a+i-r.height/2);var p=!r.isLineHolder&&r_(u);p&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var d=!!u.backgroundColor,g=r.textPadding;g&&(o=$A(o,s,g),h-=r.height/2-g[0]-r.innerHeight/2);var y=this._getOrCreateChild(eh),w=y.createStyle();y.useStyle(w);var b=this._defaultStyle,S=!1,A=0,I=!1,L=FA("fill"in u?u.fill:"fill"in n?n.fill:(S=!0,b.fill)),k=NA("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!b.autoStroke||S)?(A=LA,I=!0,b.stroke):null),P=u.textShadowBlur>0||n.textShadowBlur>0;w.text=r.text,w.x=o,w.y=h,P&&(w.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,w.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",w.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,w.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),w.textAlign=s,w.textBaseline="middle",w.font=r.font||yo,w.opacity=vl(u.opacity,n.opacity,1),RA(w,u),k&&(w.lineWidth=vl(u.lineWidth,n.lineWidth,A),w.lineDash=ut(u.lineDash,n.lineDash),w.lineDashOffset=n.lineDashOffset||0,w.stroke=k),L&&(w.fill=L),y.setBoundingRect(Wy(w,r.contentWidth,r.contentHeight,I?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,h=l&&l.image,p=l&&!h,d=r.borderRadius,g=this,y,w;if(p||r.lineHeight||u&&c){y=this._getOrCreateChild(zr),y.useStyle(y.createStyle()),y.style.fill=null;var b=y.shape;b.x=i,b.y=a,b.width=o,b.height=s,b.r=d,y.dirtyShape()}if(p){var S=y.style;S.fill=l||null,S.fillOpacity=ut(r.fillOpacity,1)}else if(h){w=this._getOrCreateChild(ta),w.onload=function(){g.dirtyStyle()};var A=w.style;A.image=l.image,A.x=i,A.y=a,A.width=o,A.height=s}if(u&&c){var S=y.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=ut(r.strokeOpacity,1),S.lineDash=r.borderDash,S.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var I=(y||w).style;I.shadowBlur=r.shadowBlur||0,I.shadowColor=r.shadowColor||"transparent",I.shadowOffsetX=r.shadowOffsetX||0,I.shadowOffsetY=r.shadowOffsetY||0,I.opacity=vl(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return OA(r)&&(n=[r.fontStyle,r.fontWeight,PA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Qo(n)||r.textFont||r.font},e}(Zc),r$={left:!0,right:1,center:1},n$={top:1,bottom:1,middle:1},EA=["fontStyle","fontWeight","fontSize","fontFamily"];function PA(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?I0+"px":t+"px"}function RA(t,e){for(var r=0;r<EA.length;r++){var n=EA[r],i=e[n];i!=null&&(t[n]=i)}}function OA(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function i$(t){return BA(t),ne(t.rich,BA),t}function BA(t){if(t){t.font=ci.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||r$[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||n$[r]?r:"top";var n=t.padding;n&&(t.padding=R0(t.padding))}}function NA(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function FA(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function $A(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function zA(t){var e=t.text;return e!=null&&(e+=""),e}function r_(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var vr=Rr(),a$=function(t,e,r,n){if(n){var i=vr(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=vr(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},HA=1,VA={},GA=Rr(),n_=Rr(),i_=0,pp=1,gp=2,Ri=["emphasis","blur","select"],mp=["normal","emphasis","blur","select"],o$=10,s$=9,Pl="highlight",yp="downplay",_p="select",a_="unselect",bp="toggleSelect",o_="selectchanged";function Yu(t){return t!=null&&t!=="none"}function wp(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function WA(t){wp(t,"emphasis",gp)}function UA(t){t.hoverState===gp&&wp(t,"normal",i_)}function s_(t){wp(t,"blur",pp)}function qA(t){t.hoverState===pp&&wp(t,"normal",i_)}function l$(t){t.selected=!0}function u$(t){t.selected=!1}function KA(t,e,r){e(t,r)}function So(t,e,r){KA(t,e,r),t.isGroup&&t.traverse(function(n){KA(n,e,r)})}function YA(t,e){switch(e){case"emphasis":t.hoverState=gp;break;case"normal":t.hoverState=i_;break;case"blur":t.hoverState=pp;break;case"select":t.selected=!0}}function f$(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function c$(t,e,r,n){var i=r&&Zt(r,"select")>=0,a=!1;if(t instanceof Kt){var o=GA(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Yu(s)||Yu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=We({},n),u=We({},u),u.fill=s):!Yu(u.fill)&&Yu(s)?(a=!0,n=We({},n),u=We({},u),u.fill=oy(s)):!Yu(u.stroke)&&Yu(l)&&(a||(n=We({},n),u=We({},u)),u.stroke=oy(l)),n.style=u}}if(n&&n.z2==null){a||(n=We({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(c??o$)}return n}function h$(t,e,r){if(r&&r.z2==null){r=We({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??s$)}return r}function v$(t,e,r){var n=Zt(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:f$(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=We({},r),o=We({opacity:n?i:a.opacity*.1},o),r.style=o),r}function l_(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return c$(this,t,e,r);if(t==="blur")return v$(this,t,r);if(t==="select")return h$(this,t,r)}return r}function d$(t){t.stateProxy=l_;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=l_),r&&(r.stateProxy=l_)}function XA(t,e){!eM(t,e)&&!t.__highByOuter&&So(t,WA)}function jA(t,e){!eM(t,e)&&!t.__highByOuter&&So(t,UA)}function xp(t,e){t.__highByOuter|=1<<(e||0),So(t,WA)}function Sp(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&So(t,UA)}function p$(t){So(t,s_)}function ZA(t){So(t,qA)}function JA(t){So(t,l$)}function QA(t){So(t,u$)}function eM(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function tM(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=n_(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){qA(u)}),s&&r.push(a)),o.isBlured=!1}),ne(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function u_(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var h=0;h<c.length;h++){var p=u.getItemGraphicEl(c[h]);p&&ZA(p)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var p=h&&s?h===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!p||e==="series"&&c)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(w){w.__highByOuter&&c&&e==="self"||s_(w)}),zn(e))a(u.getData(),e);else if(mt(e))for(var g=Ut(e),y=0;y<g.length;y++)a(u.getData(g[y]),e[g[y]]);l.push(u),n_(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var h=n.getViewOfComponentModel(c);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function f_(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){n_(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){s_(a)})}}}function g$(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Uu(i,e);a=(st(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=vr(o);u_(n,u.focus,u.blurScope,r)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);c!=null&&u_(n,c,h,r)}}}function c_(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(vr(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function m$(t,e,r){var n=vr(t),i=c_(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&f_(n.componentMainType,n.componentIndex,r),ne(a,function(s){return XA(s,e)})):(u_(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&f_(n.componentMainType,n.componentIndex,r),XA(t,e))}function y$(t,e,r){tM(r);var n=vr(t),i=c_(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?ne(i,function(a){return jA(a,e)}):jA(t,e)}function _$(t,e,r){if(d_(e)){var n=e.dataType,i=t.getData(n),a=Uu(i,e);st(a)||(a=[a]),t[e.type===bp?"toggleSelect":e.type===_p?"select":"unselect"](a,n)}}function rM(t){var e=t.getAllData();ne(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?JA(a):QA(a)})})}function b$(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();ne(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function h_(t,e,r){iM(t,!0),So(t,d$),x$(t,e,r)}function w$(t){iM(t,!1)}function Xu(t,e,r,n){n?w$(t):h_(t,e,r)}function x$(t,e,r){var n=vr(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var nM=["emphasis","blur","select"],S$={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ju(t,e,r,n){r=r||"itemStyle";for(var i=0;i<nM.length;i++){var a=nM[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[S$[r]]()}}function iM(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function v_(t){return!!(t&&t.__highDownDispatcher)}function T$(t){var e=VA[t];return e==null&&HA<=32&&(e=VA[t]=HA++),e}function d_(t){var e=t.type;return e===_p||e===a_||e===bp}function aM(t){var e=t.type;return e===Pl||e===yp}function C$(t){var e=GA(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var Zu=ls.CMD,A$=[[],[],[]],oM=Math.sqrt,M$=Math.atan2;function I$(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,c=Zu.M,h=Zu.C,p=Zu.L,d=Zu.R,g=Zu.A,y=Zu.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case p:a=1;break;case h:a=3;break;case y:a=2;break;case g:var w=e[4],b=e[5],S=oM(e[0]*e[0]+e[1]*e[1]),A=oM(e[2]*e[2]+e[3]*e[3]),I=M$(-e[1]/A,e[0]/S);r[o]*=S,r[o++]+=w,r[o]*=A,r[o++]+=b,r[o++]*=S,r[o++]*=A,r[o++]+=I,r[o++]+=I,o+=2,s=o;break;case d:u[0]=r[o++],u[1]=r[o++],Mi(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Mi(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var L=A$[l];L[0]=r[o++],L[1]=r[o++],Mi(L,L,e),r[s++]=L[0],r[s++]=L[1]}}t.increaseVersion()}}var p_=Math.sqrt,Tp=Math.sin,Cp=Math.cos,th=Math.PI;function sM(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function g_(t,e){return(t[0]*e[0]+t[1]*e[1])/(sM(t)*sM(e))}function lM(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(g_(t,e))}function uM(t,e,r,n,i,a,o,s,l,u,c){var h=l*(th/180),p=Cp(h)*(t-r)/2+Tp(h)*(e-n)/2,d=-1*Tp(h)*(t-r)/2+Cp(h)*(e-n)/2,g=p*p/(o*o)+d*d/(s*s);g>1&&(o*=p_(g),s*=p_(g));var y=(i===a?-1:1)*p_((o*o*(s*s)-o*o*(d*d)-s*s*(p*p))/(o*o*(d*d)+s*s*(p*p)))||0,w=y*o*d/s,b=y*-s*p/o,S=(t+r)/2+Cp(h)*w-Tp(h)*b,A=(e+n)/2+Tp(h)*w+Cp(h)*b,I=lM([1,0],[(p-w)/o,(d-b)/s]),L=[(p-w)/o,(d-b)/s],k=[(-1*p-w)/o,(-1*d-b)/s],P=lM(L,k);if(g_(L,k)<=-1&&(P=th),g_(L,k)>=1&&(P=0),P<0){var z=Math.round(P/th*1e6)/1e6;P=th*2+z%2*th}c.addData(u,S,A,o,s,I,P,h,a)}var D$=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,k$=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function L$(t){var e=new ls;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=ls.CMD,l=t.match(D$);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,d=c.match(k$)||[],g=d.length,y=0;y<g;y++)d[y]=parseFloat(d[y]);for(var w=0;w<g;){var b=void 0,S=void 0,A=void 0,I=void 0,L=void 0,k=void 0,P=void 0,z=r,F=n,W=void 0,G=void 0;switch(h){case"l":r+=d[w++],n+=d[w++],p=s.L,e.addData(p,r,n);break;case"L":r=d[w++],n=d[w++],p=s.L,e.addData(p,r,n);break;case"m":r+=d[w++],n+=d[w++],p=s.M,e.addData(p,r,n),i=r,a=n,h="l";break;case"M":r=d[w++],n=d[w++],p=s.M,e.addData(p,r,n),i=r,a=n,h="L";break;case"h":r+=d[w++],p=s.L,e.addData(p,r,n);break;case"H":r=d[w++],p=s.L,e.addData(p,r,n);break;case"v":n+=d[w++],p=s.L,e.addData(p,r,n);break;case"V":n=d[w++],p=s.L,e.addData(p,r,n);break;case"C":p=s.C,e.addData(p,d[w++],d[w++],d[w++],d[w++],d[w++],d[w++]),r=d[w-2],n=d[w-1];break;case"c":p=s.C,e.addData(p,d[w++]+r,d[w++]+n,d[w++]+r,d[w++]+n,d[w++]+r,d[w++]+n),r+=d[w-2],n+=d[w-1];break;case"S":b=r,S=n,W=e.len(),G=e.data,o===s.C&&(b+=r-G[W-4],S+=n-G[W-3]),p=s.C,z=d[w++],F=d[w++],r=d[w++],n=d[w++],e.addData(p,b,S,z,F,r,n);break;case"s":b=r,S=n,W=e.len(),G=e.data,o===s.C&&(b+=r-G[W-4],S+=n-G[W-3]),p=s.C,z=r+d[w++],F=n+d[w++],r+=d[w++],n+=d[w++],e.addData(p,b,S,z,F,r,n);break;case"Q":z=d[w++],F=d[w++],r=d[w++],n=d[w++],p=s.Q,e.addData(p,z,F,r,n);break;case"q":z=d[w++]+r,F=d[w++]+n,r+=d[w++],n+=d[w++],p=s.Q,e.addData(p,z,F,r,n);break;case"T":b=r,S=n,W=e.len(),G=e.data,o===s.Q&&(b+=r-G[W-4],S+=n-G[W-3]),r=d[w++],n=d[w++],p=s.Q,e.addData(p,b,S,r,n);break;case"t":b=r,S=n,W=e.len(),G=e.data,o===s.Q&&(b+=r-G[W-4],S+=n-G[W-3]),r+=d[w++],n+=d[w++],p=s.Q,e.addData(p,b,S,r,n);break;case"A":A=d[w++],I=d[w++],L=d[w++],k=d[w++],P=d[w++],z=r,F=n,r=d[w++],n=d[w++],p=s.A,uM(z,F,r,n,k,P,A,I,L,p,e);break;case"a":A=d[w++],I=d[w++],L=d[w++],k=d[w++],P=d[w++],z=r,F=n,r+=d[w++],n+=d[w++],p=s.A,uM(z,F,r,n,k,P,A,I,L,p,e);break}}(h==="z"||h==="Z")&&(p=s.Z,e.addData(p),r=i,n=a),o=p}return e.toStatic(),e}var fM=function(t){Ye(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(Kt);function cM(t){return t.setData!=null}function hM(t,e){var r=L$(t),n=We({},e);return n.buildPath=function(i){var a=cM(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){I$(r,i),this.dirtyShape()},n}function E$(t,e){return new fM(hM(t,e))}function P$(t,e){var r=hM(t,e),n=function(i){Ye(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(fM);return n}function R$(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Kt(e);return o.createPathProxy(),o.buildPath=function(s){if(cM(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var O$=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),rh=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new O$},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(Kt);rh.prototype.type="circle";var B$=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),m_=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new B$},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},e}(Kt);m_.prototype.type="ellipse";var vM=Math.PI,y_=vM*2,Rl=Math.sin,Ju=Math.cos,N$=Math.acos,pn=Math.atan2,dM=Math.abs,nh=Math.sqrt,ih=Math.max,Ua=Math.min,ra=1e-4;function F$(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,h=s-a,p=h*l-c*u;if(!(p*p<ra))return p=(c*(e-a)-h*(t-i))/p,[t+p*l,e+p*u]}function Ap(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/nh(s*s+l*l),c=u*l,h=-u*s,p=t+c,d=e+h,g=r+c,y=n+h,w=(p+g)/2,b=(d+y)/2,S=g-p,A=y-d,I=S*S+A*A,L=i-a,k=p*y-g*d,P=(A<0?-1:1)*nh(ih(0,L*L*I-k*k)),z=(k*A-S*P)/I,F=(-k*S-A*P)/I,W=(k*A+S*P)/I,G=(-k*S+A*P)/I,K=z-w,q=F-b,ie=W-w,ve=G-b;return K*K+q*q>ie*ie+ve*ve&&(z=W,F=G),{cx:z,cy:F,x0:-c,y0:-h,x1:z*(i/L-1),y1:F*(i/L-1)}}function $$(t){var e;if(st(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function z$(t,e){var r,n=ih(e.r,0),i=ih(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,h=e.cy,p=!!e.clockwise,d=dM(u-l),g=d>y_&&d%y_;if(g>ra&&(d=g),!(n>ra))t.moveTo(c,h);else if(d>y_-ra)t.moveTo(c+n*Ju(l),h+n*Rl(l)),t.arc(c,h,n,l,u,!p),i>ra&&(t.moveTo(c+i*Ju(u),h+i*Rl(u)),t.arc(c,h,i,u,l,p));else{var y=void 0,w=void 0,b=void 0,S=void 0,A=void 0,I=void 0,L=void 0,k=void 0,P=void 0,z=void 0,F=void 0,W=void 0,G=void 0,K=void 0,q=void 0,ie=void 0,ve=n*Ju(l),ye=n*Rl(l),be=i*Ju(u),ue=i*Rl(u),Me=d>ra;if(Me){var ke=e.cornerRadius;ke&&(r=$$(ke),y=r[0],w=r[1],b=r[2],S=r[3]);var ce=dM(n-i)/2;if(A=Ua(ce,b),I=Ua(ce,S),L=Ua(ce,y),k=Ua(ce,w),F=P=ih(A,I),W=z=ih(L,k),(P>ra||z>ra)&&(G=n*Ju(u),K=n*Rl(u),q=i*Ju(l),ie=i*Rl(l),d<vM)){var fe=F$(ve,ye,q,ie,G,K,be,ue);if(fe){var Pe=ve-fe[0],Qe=ye-fe[1],Ae=G-fe[0],Oe=K-fe[1],lt=1/Rl(N$((Pe*Ae+Qe*Oe)/(nh(Pe*Pe+Qe*Qe)*nh(Ae*Ae+Oe*Oe)))/2),dt=nh(fe[0]*fe[0]+fe[1]*fe[1]);F=Ua(P,(n-dt)/(lt+1)),W=Ua(z,(i-dt)/(lt-1))}}}if(!Me)t.moveTo(c+ve,h+ye);else if(F>ra){var $e=Ua(b,F),Tt=Ua(S,F),rt=Ap(q,ie,ve,ye,n,$e,p),$=Ap(G,K,be,ue,n,Tt,p);t.moveTo(c+rt.cx+rt.x0,h+rt.cy+rt.y0),F<P&&$e===Tt?t.arc(c+rt.cx,h+rt.cy,F,pn(rt.y0,rt.x0),pn($.y0,$.x0),!p):($e>0&&t.arc(c+rt.cx,h+rt.cy,$e,pn(rt.y0,rt.x0),pn(rt.y1,rt.x1),!p),t.arc(c,h,n,pn(rt.cy+rt.y1,rt.cx+rt.x1),pn($.cy+$.y1,$.cx+$.x1),!p),Tt>0&&t.arc(c+$.cx,h+$.cy,Tt,pn($.y1,$.x1),pn($.y0,$.x0),!p))}else t.moveTo(c+ve,h+ye),t.arc(c,h,n,l,u,!p);if(!(i>ra)||!Me)t.lineTo(c+be,h+ue);else if(W>ra){var $e=Ua(y,W),Tt=Ua(w,W),rt=Ap(be,ue,G,K,i,-Tt,p),$=Ap(ve,ye,q,ie,i,-$e,p);t.lineTo(c+rt.cx+rt.x0,h+rt.cy+rt.y0),W<z&&$e===Tt?t.arc(c+rt.cx,h+rt.cy,W,pn(rt.y0,rt.x0),pn($.y0,$.x0),!p):(Tt>0&&t.arc(c+rt.cx,h+rt.cy,Tt,pn(rt.y0,rt.x0),pn(rt.y1,rt.x1),!p),t.arc(c,h,i,pn(rt.cy+rt.y1,rt.cx+rt.x1),pn($.cy+$.y1,$.cx+$.x1),p),$e>0&&t.arc(c+$.cx,h+$.cy,$e,pn($.y1,$.x1),pn($.y0,$.x0),!p))}else t.lineTo(c+be,h+ue),t.arc(c,h,i,u,l,p)}t.closePath()}}}var H$=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),fs=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new H$},e.prototype.buildPath=function(r,n){z$(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Kt);fs.prototype.type="sector";var V$=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Mp=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new V$},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e}(Kt);Mp.prototype.type="ring";function G$(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,c,h;if(n){c=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)Pu(c,c,t[p]),Ru(h,h,t[p]);Pu(c,c,n[0]),Ru(h,h,n[1])}for(var p=0,d=t.length;p<d;p++){var g=t[p];if(r)l=t[p?p-1:d-1],u=t[(p+1)%d];else if(p===0||p===d-1){i.push(lF(t[p]));continue}else l=t[p-1],u=t[p+1];uF(a,u,l),B0(a,a,e);var y=N0(g,l),w=N0(g,u),b=y+w;b!==0&&(y/=b,w/=b),B0(o,a,-y),B0(s,a,w);var S=YT([],g,o),A=YT([],g,s);n&&(Ru(S,S,c),Pu(S,S,h),Ru(A,A,c),Pu(A,A,h)),i.push(S),i.push(A)}return r&&i.push(i.shift()),i}function pM(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=G$(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var W$=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),ah=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new W$},e.prototype.buildPath=function(r,n){pM(r,n,!0)},e}(Kt);ah.prototype.type="polygon";var U$=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Ol=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new U$},e.prototype.buildPath=function(r,n){pM(r,n,!1)},e}(Kt);Ol.prototype.type="polyline";var q$={},K$=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),cs=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new K$},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=IA(q$,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(Kt);cs.prototype.type="line";var Gn=[],Y$=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function gM(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?mC:on)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?mC:on)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?_C:Vn)(t.x1,t.cpx1,t.x2,e),(r?_C:Vn)(t.y1,t.cpy1,t.y2,e)]}var __=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Y$},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,h=n.cpy2,p=n.percent;p!==0&&(r.moveTo(i,a),c==null||h==null?(p<1&&($d(i,l,o,p,Gn),l=Gn[1],o=Gn[2],$d(a,u,s,p,Gn),u=Gn[1],s=Gn[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(Fd(i,l,c,o,p,Gn),l=Gn[1],c=Gn[2],o=Gn[3],Fd(a,u,h,s,p,Gn),u=Gn[1],h=Gn[2],s=Gn[3]),r.bezierCurveTo(l,u,c,h,o,s)))},e.prototype.pointAt=function(r){return gM(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=gM(this.shape,r,!0);return hF(n,n)},e}(Kt);__.prototype.type="bezier-curve";var X$=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Ip=function(t){Ye(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new X$},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),h=Math.sin(s);r.moveTo(c*o+i,h*o+a),r.arc(i,a,o,s,l,!u)},e}(Kt);Ip.prototype.type="arc";var mM=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Kt.prototype.getBoundingRect.call(this)},e}(Kt),yM=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),_M=function(t){Ye(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e}(yM),j$=function(t){Ye(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e}(yM),b_=Math.min,Z$=Math.max,Dp=Math.abs,Bl=[0,0],Nl=[0,0],en=iC(),kp=en.minTv,Lp=en.maxTv,bM=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new wt;for(var n=0;n<2;n++)this._axes[n]=new wt;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);wt.sub(i[0],n[1],n[0]),wt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&wt.set(r,0,0),en.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!en.negativeSize&&wt.copy(r,i?en.useDir?en.dirMinTv:kp:Lp),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Bl),e._getProjMinMaxOnAxis(o,r._corners,Nl),en.negativeSize||Bl[1]<Nl[0]||Bl[0]>Nl[1]){if(a=!1,en.negativeSize||n)return a;var l=Dp(Nl[0]-Bl[1]),u=Dp(Bl[0]-Nl[1]);b_(l,u)>Lp.len()&&(l<u?wt.scale(Lp,s,-l*i):wt.scale(Lp,s,u*i))}else if(!n){var l=Dp(Nl[0]-Bl[1]),u=Dp(Bl[0]-Nl[1]);(en.useDir||b_(l,u)<kp.len())&&((l<u||!en.bidirectional)&&(wt.scale(kp,s,l*i),en.useDir&&en.calcDirMTV()),(l>=u||!en.bidirectional)&&(wt.scale(kp,s,-u*i),en.useDir&&en.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[e];s=b_(c,s),l=Z$(c,l)}n[0]=s+en.touchThreshold,n[1]=l-en.touchThreshold,en.negativeSize=n[1]<n[0]},t}(),J$=[],Q$=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Nt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(J$)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e}(Zc),ez=Rr();function tz(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,h=void 0;n?(u=ut(n.duration,200),c=ut(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(h=a.delay)),St(h)&&(h=h(r,i)),St(u)&&(u=u(r));var p={duration:u||0,delay:h,easing:c};return p}else return null}function w_(t,e,r,n,i,a,o){var s=!1,l;St(i)?(o=a,a=i,i=null):mt(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=tz(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h=c.duration,p=c.delay,d=c.easing,g={duration:h,delay:p||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,g):e.animateTo(r,g)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function gn(t,e,r,n,i,a){w_("update",t,e,r,n,i,a)}function Wn(t,e,r,n,i,a){w_("enter",t,e,r,n,i,a)}function oh(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Ep(t,e,r,n,i,a){oh(t)||w_("leave",t,e,r,n,i,a)}function wM(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Ep(t,{style:{opacity:0}},e,r,n)}function sh(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||wM(i,e,r,n)}):wM(t,e,r,n)}function lh(t){ez(t).oldStyle=t.style}var x_={},hs=["x","y"],Qu=["width","height"];function rz(t){return Kt.extend(t)}var nz=P$;function iz(t,e){return nz(t,e)}function na(t,e){x_[t]=e}function az(t){if(x_.hasOwnProperty(t))return x_[t]}function S_(t,e,r,n){var i=E$(t,e);return r&&(n==="center"&&(r=SM(r,i.getBoundingRect())),TM(i,r)),i}function xM(t,e,r){var n=new ta({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(SM(e,a))}}});return n}function SM(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var T_=R$;function TM(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function uh(t,e){return IA(t,t,{lineWidth:e}),t}function oz(t,e){return DA(t,t,e),t}var sz=El;function lz(t,e){for(var r=U0([]);t&&t!==e;)Lc(r,t.getLocalTransform(),r),t=t.parent;return r}function CM(t,e,r){return e&&!zn(e)&&(e=Cy.getLocalTransform(e)),r&&(e=Ec([],e)),Mi([],t,e)}function uz(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Fa(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Fa(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=CM(a,e,r),Fa(a[0])>Fa(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function AM(t){return!t.isGroup}function fz(t){return t.shape!=null}function MM(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){AM(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return fz(o)&&(s.shape=Vt(o.shape)),s}var a=n(t);e.traverse(function(o){if(AM(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),gn(o,l,r,vr(o).dataIndex)}}})}function cz(t,e){return tt(t,function(r){var n=r[0];n=ui(n,e.x),n=Uc(n,e.x+e.width);var i=r[1];return i=ui(i,e.y),i=Uc(i,e.y+e.height),[n,i]})}function hz(t,e){var r=ui(t.x,e.x),n=Uc(t.x+t.width,e.x+e.width),i=ui(t.y,e.y),a=Uc(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function IM(t,e,r){var n=We({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Wt(i,r),new ta(n)):S_(t.replace("path://",""),n,r,"center")}function vz(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(DM(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function DM(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,h=s-a,p=C_(c,h,l,u);if(dz(p))return!1;var d=t-i,g=e-a,y=C_(d,g,l,u)/p;if(y<0||y>1)return!1;var w=C_(d,g,c,h)/p;return!(w<0||w>1)}function C_(t,e,r,n){return t*n-r*e}function dz(t){return t<=1e-6&&t>=-1e-6}function Pp(t,e,r,n,i){return e==null||(sr(e)?dr[0]=dr[1]=dr[2]=dr[3]=e:(dr[0]=e[0],dr[1]=e[1],dr[2]=e[2],dr[3]=e[3]),n&&(dr[0]=ui(0,dr[0]),dr[1]=ui(0,dr[1]),dr[2]=ui(0,dr[2]),dr[3]=ui(0,dr[3])),r&&(dr[0]=-dr[0],dr[1]=-dr[1],dr[2]=-dr[2],dr[3]=-dr[3]),kM(t,dr,"x","width",3,1,i&&i[0]||0),kM(t,dr,"y","height",0,2,i&&i[1]||0)),t}var dr=[0,0,0,0];function kM(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=ui(0,Uc(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Fa(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function Rp(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=ct(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&ne(Ut(l),function(c){Pa(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=vr(t.el);u.componentMainType=a,u.componentIndex=o,u.pptSuiteTooltipConfig={name:n,option:Wt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function A_(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Op(t,e){if(t)if(st(t))for(var r=0;r<t.length;r++)A_(t[r],e);else A_(t,e)}function M_(t){return!t||Fa(t[1])<Bp&&Fa(t[2])<Bp||Fa(t[0])<Bp&&Fa(t[3])<Bp}var Bp=1e-5;function fh(t,e){return t?Nt.copy(t,e):e.clone()}function I_(t,e){return e?QT(t||es(),e):void 0}function LM(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function pz(t){var e=-1/0,r=1/0;A_(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function EM(t,e,r){PM(t,e,r,-1/0)}function PM(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=ui(PM(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=ui(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}na("circle",rh),na("ellipse",m_),na("sector",fs),na("ring",Mp),na("polygon",ah),na("polyline",Ol),na("rect",zr),na("line",cs),na("bezierCurve",__),na("arc",Ip);const gz=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ip,BezierCurve:__,BoundingRect:Nt,Circle:rh,CompoundPath:mM,Ellipse:m_,Group:$r,Image:ta,IncrementalDisplayable:Q$,Line:cs,LinearGradient:_M,OrientedBoundingRect:bM,Path:Kt,Point:wt,Polygon:ah,Polyline:Ol,RadialGradient:j$,Rect:zr,Ring:Mp,Sector:fs,Text:ci,WH:Qu,XY:hs,applyTransform:CM,calcZ2Range:pz,clipPointsByRect:cz,clipRectByRect:hz,createIcon:IM,ensureCopyRect:fh,ensureCopyTransform:I_,expandOrShrinkRect:Pp,extendPath:iz,extendShape:rz,getShapeClass:az,getTransform:lz,groupTransition:MM,initProps:Wn,isBoundingRectAxisAligned:M_,isElementRemoved:oh,lineLineIntersect:DM,linePolygonIntersect:vz,makeImage:xM,makePath:S_,mergePath:T_,registerShape:na,removeElement:Ep,removeElementWithFadeOut:sh,resizePath:TM,retrieveZInfo:LM,setTooltipConfig:Rp,subPixelOptimize:sz,subPixelOptimizeLine:uh,subPixelOptimizeRect:oz,transformDirection:uz,traverseElements:Op,traverseUpdateZ:EM,updateProps:gn},Symbol.toStringTag,{value:"Module"}));var Np={};function mz(t,e){for(var r=0;r<Ri.length;r++){var n=Ri[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function RM(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=St(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<Ri.length;u++){var c=Ri[u],h=e[c];l[c]=ut(n?n.getFormattedLabel(i,c,null,a,h&&h.get("formatter")):null,s)}return l}function ef(t,e,r,n){r=r||Np;for(var i=t instanceof ci,a=!1,o=0;o<mp.length;o++){var s=e[mp[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new ci,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=RM(r,e),c=e.normal,h=!!c.getShallow("show"),p=ch(c,n&&n.normal,r,!1,!i);p.text=u.normal,i||t.setTextConfig(OM(c,r,!1));for(var o=0;o<Ri.length;o++){var d=Ri[o],s=e[d];if(s){var g=l.ensureState(d),y=!!ut(s.getShallow("show"),h);if(y!==h&&(g.ignore=!y),g.style=ch(s,n&&n[d],r,!0,!i),g.style.text=u[d],!i){var w=t.ensureState(d);w.textConfig=OM(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!h,l.useStyle(p),l.dirty(),r.enableTextSetter&&(Fp(l).setLabelText=function(b){var S=RM(r,e,b);mz(l,S)})}else l&&(l.ignore=!0);t.dirty()}function tf(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Ri.length;n++){var i=Ri[n];r[i]=t.getModel([i,e])}return r}function ch(t,e,r,n,i){var a={};return yz(a,t,r,n,i),e&&We(a,e),a}function OM(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=ut(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function yz(t,e,r,n,i){r=r||Np;var a=e.ecModel,o=a&&a.option.textStyle,s=_z(e),l;if(s){l={};var u="richInheritPlainLabel",c=ut(e.get(u),a?a.get(u):void 0);for(var h in s)if(s.hasOwnProperty(h)){var p=e.getModel(["rich",h]);$M(l[h]={},p,o,e,c,r,n,i,!1,!0)}}l&&(t.rich=l);var d=e.get("overflow");d&&(t.overflow=d);var g=e.get("lineOverflow");g&&(t.lineOverflow=g);var y=t,w=e.get("minMargin");if(w!=null)w=sr(w)?w/2:0,y.margin=[w,w,w,w],y.__marginType=rf.minMargin;else{var b=e.get("textMargin");b!=null&&(y.margin=R0(b),y.__marginType=rf.textMargin)}$M(t,e,o,null,null,r,n,i,!0,!1)}function _z(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Np).rich;if(r){e=e||{};for(var n=Ut(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var BM=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],NM=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],FM=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function $M(t,e,r,n,i,a,o,s,l,u){r=!o&&r||Np;var c=a&&a.inheritColor,h=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=ut(e.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(c?h=c:h=null),(p==="inherit"||p==="auto")&&(c?p=c:p=null),s||(h=h||r.color,p=p||r.textBorderColor),h!=null&&(t.fill=h),p!=null&&(t.stroke=p);var g=ut(e.getShallow("textBorderWidth"),r.textBorderWidth);g!=null&&(t.lineWidth=g);var y=ut(e.getShallow("textBorderType"),r.textBorderType);y!=null&&(t.lineDash=y);var w=ut(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);w!=null&&(t.lineDashOffset=w),!o&&d==null&&!u&&(d=a&&a.defaultOpacity),d!=null&&(t.opacity=d),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var b=0;b<BM.length;b++){var S=BM[b],A=i!==!1&&n?vl(e.getShallow(S),n.getShallow(S),r[S]):ut(e.getShallow(S),r[S]);A!=null&&(t[S]=A)}for(var b=0;b<NM.length;b++){var S=NM[b],A=e.getShallow(S);A!=null&&(t[S]=A)}if(t.verticalAlign==null){var I=e.getShallow("baseline");I!=null&&(t.verticalAlign=I)}if(!l||!a.disableBox){for(var b=0;b<FM.length;b++){var S=FM[b],A=e.getShallow(S);A!=null&&(t[S]=A)}var L=e.getShallow("borderType");L!=null&&(t.borderDash=L),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&c&&(t.backgroundColor=c),(t.borderColor==="auto"||t.borderColor==="inherit")&&c&&(t.borderColor=c)}}function bz(t,e){var r=e&&e.getModel("textStyle");return Qo([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Fp=Rr();function wz(t,e,r,n){if(t){var i=Fp(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}var rf={minMargin:1,textMargin:2},xz=["textStyle","color"],D_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],k_=new ci,Sz=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(xz):null)},t.prototype.getFont=function(){return bz({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<D_.length;n++)r[D_[n]]=this.getShallow(D_[n]);return k_.useStyle(r),k_.update(),k_.getBoundingRect()},t}(),zM=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Tz=jc(zM),Cz=function(){function t(){}return t.prototype.getLineStyle=function(e){return Tz(this,e)},t}(),HM=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Az=jc(HM),Mz=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return Az(this,e,r)},t}(),Kr=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){or(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Vt(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!tr.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();Fy(Kr),d4(Kr),Zi(Kr,Cz),Zi(Kr,Mz),Zi(Kr,_4),Zi(Kr,Sz);var Iz=Math.round(Math.random()*10);function $p(t){return[t||"",Iz++].join("_")}function Dz(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=za(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=za(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function kz(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,h=u.noEntryList,p={};for(ne(a,function(S){p[S]=!0});h.length;){var d=h.pop(),g=c[d],y=!!p[d];y&&(s.call(l,d,g.originalDeps.slice()),delete p[d]),ne(g.successor,y?b:w)}ne(p,function(){var S="";throw new Error(S)});function w(S){c[S].entryCount--,c[S].entryCount===0&&h.push(S)}function b(S){p[S]=!0,w(S)}};function r(a){var o={},s=[];return ne(a,function(l){var u=n(o,l),c=u.originalDeps=e(l),h=i(c,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),ne(h,function(p){Zt(u.predecessor,p)<0&&u.predecessor.push(p);var d=n(o,p);Zt(d.successor,p)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return ne(a,function(l){Zt(o,l)>=0&&s.push(l)}),s}}function VM(t,e){return or(or({},t,!0),e,!0)}const Lz={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",custom:"Custom chart",chart:"Chart"}},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:". "}}}},Ez={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:"旭日图",custom:"自定义图表",chart:"图表"}},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 zp="ZH",L_="EN",nf=L_,Hp={},E_={},GM=tr.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||nf).toUpperCase();return t.indexOf(zp)>-1?zp:nf}():nf;function WM(t,e){t=t.toUpperCase(),E_[t]=new Kr(e),Hp[t]=e}function Pz(t){if(ct(t)){var e=Hp[t.toUpperCase()]||{};return t===zp||t===L_?Vt(e):or(Vt(e),Vt(Hp[nf]),!1)}else return or(Vt(t),Vt(Hp[nf]),!1)}function Rz(t){return E_[t]}function Oz(){return E_[nf]}WM(L_,Lz),WM(zp,Ez);var Bz=null;function Un(){return Bz}var P_=1e3,R_=P_*60,hh=R_*60,Oi=hh*24,UM=Oi*365,Nz={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Vp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Fz="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Gp="{yyyy}-{MM}-{dd}",qM={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gp,hour:Gp+" "+Vp.hour,minute:Gp+" "+Vp.minute,second:Gp+" "+Vp.second,millisecond:Fz},hi=["year","month","day","hour","minute","second","millisecond"],$z=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function zz(t){return!ct(t)&&!St(t)?Hz(t):t}function Hz(t){t=t||{};var e={},r=!0;return ne(hi,function(n){r&&(r=t[n]==null)}),ne(hi,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=hi[s],u=mt(a)&&!st(a)?a[l]:a,c=void 0;st(u)?(c=u.slice(),o=c[0]||""):ct(u)?(o=u,c=[o]):(o==null?o=Vp[n]:Nz[l].test(o)||(o=e[l][l][0]+" "+o),c=[o],r&&(c[1]="{primary|"+o+"}")),e[n][l]=c}}),e}function vs(t,e){return t+="","0000".substr(0,e-t.length)+t}function vh(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 Vz(t){return t===vh(t)}function Gz(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function KM(t,e,r,n){var i=qc(t),a=i[YM(r)](),o=i[B_(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[N_(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[F_(r)](),h=(c-1)%12+1,p=i[$_(r)](),d=i[z_(r)](),g=i[H_(r)](),y=c>=12?"pm":"am",w=y.toUpperCase(),b=n instanceof Kr?n:Rz(n||GM)||Oz(),S=b.getModel("time"),A=S.get("month"),I=S.get("monthAbbr"),L=S.get("dayOfWeek"),k=S.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,y+"").replace(/{A}/g,w+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,vs(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,A[o-1]).replace(/{MMM}/g,I[o-1]).replace(/{MM}/g,vs(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,vs(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,L[u]).replace(/{ee}/g,k[u]).replace(/{e}/g,u+"").replace(/{HH}/g,vs(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,vs(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,vs(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,vs(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,vs(g,3)).replace(/{S}/g,g+"")}function Wz(t,e,r,n,i){var a=null;if(ct(r))a=r;else if(St(r)){var o={time:t.time,level:t.time.level},s=Un();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var c=af(t.value,i);a=r[c][c][0]}}return KM(new Date(t.value),a,i,n)}function af(t,e){var r=qc(t),n=r[B_(e)]()+1,i=r[N_(e)](),a=r[F_(e)](),o=r[$_(e)](),s=r[z_(e)](),l=r[H_(e)](),u=l===0,c=u&&s===0,h=c&&o===0,p=h&&a===0,d=p&&i===1,g=d&&n===1;return g?"year":d?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function O_(t,e,r){switch(e){case"year":t[XM(r)](0);case"month":t[jM(r)](1);case"day":t[ZM(r)](0);case"hour":t[JM(r)](0);case"minute":t[QM(r)](0);case"second":t[eI(r)](0)}return t}function YM(t){return t?"getUTCFullYear":"getFullYear"}function B_(t){return t?"getUTCMonth":"getMonth"}function N_(t){return t?"getUTCDate":"getDate"}function F_(t){return t?"getUTCHours":"getHours"}function $_(t){return t?"getUTCMinutes":"getMinutes"}function z_(t){return t?"getUTCSeconds":"getSeconds"}function H_(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Uz(t){return t?"setUTCFullYear":"setFullYear"}function XM(t){return t?"setUTCMonth":"setMonth"}function jM(t){return t?"setUTCDate":"setDate"}function ZM(t){return t?"setUTCHours":"setHours"}function JM(t){return t?"setUTCMinutes":"setMinutes"}function QM(t){return t?"setUTCSeconds":"setSeconds"}function eI(t){return t?"setUTCMilliseconds":"setMilliseconds"}function qz(t){if(!W3(t))return ct(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}var tI=R0,rI=["a","b","c","d","e","f","g"],V_=function(t,e){return"{"+t+(e??"")+"}"};function Kz(t,e,r){st(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=rI[a];t=t.replace(V_(o),V_(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(V_(rI[l],s),u)}return t}function G_(t,e){return e=e||"transparent",ct(t)?t:mt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Wp={},W_={},U_=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Wp),this._normalMasterList=n(W_);function n(i,a){var o=[];return ne(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){ne(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Wp[e]=r;return}W_[e]=r},t.get=function(e){return W_[e]||Wp[e]},t}();function Yz(t){return!!Wp[t]}var q_={coord:1,coord2:2};function Xz(t){nI.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var nI=kt();function jz(t){var e=t.getShallow("coord",!0),r=q_.coord;if(e==null){var n=nI.get(t.type);n&&n.getCoord2&&(r=q_.coord2,e=n.getCoord2(t))}return{coord:e,from:r}}var To={none:0,dataCoordSys:1,boxCoordSys:2};function Zz(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=To.none;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=To.dataCoordSys,a||(i=To.none)):n==="box"&&(i=To.boxCoordSys,!a&&!Yz(r)&&(i=To.none))}return{coordSysType:r,kind:i}}function Jz(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=Zz(e),o=a.kind,s=a.coordSysType;if(i&&o!==To.dataCoordSys&&(o=To.dataCoordSys,s=r),o===To.none||s!==r)return!1;var l=n(r,e);return l?(o===To.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var Up=ne,Qz=["left","right","top","bottom","width","height"],qp=[["width","left","right"],["height","top","bottom"]];function K_(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),h=e.childAt(u+1),p=h&&h.getBoundingRect(),d,g;if(t==="horizontal"){var y=c.width+(p?-p.x+c.x:0);d=a+y,d>n||l.newline?(a=0,d=y,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var w=c.height+(p?-p.y+c.y:0);g=o+w,g>i||l.newline?(a+=s+r,o=0,g=w,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=d+r:o=g+r)})}var dh=K_;oi(K_,"vertical"),oi(K_,"horizontal");function e8(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function t8(t,e){var r=Kp(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===ph.point)a=r.refPoint,i=of(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=st(o)?o:[o,o];i=of(n,r.refContainer),a=r.boxCoordFrom===q_.coord2?r.refPoint:[hr(s[0],i.width)+i.x,hr(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function r8(t,e){var r=t8(t,e),n=r.viewRect,i=r.center,a=t.get("radius");st(a)||(a=[0,a]);var o=hr(n.width,e.getWidth()),s=hr(n.height,e.getHeight()),l=Math.min(o,s),u=hr(a[0],l/2),c=hr(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:c,viewRect:n}}function of(t,e,r){r=tI(r||0);var n=e.width,i=e.height,a=hr(t.left,n),o=hr(t.top,i),s=hr(t.right,n),l=hr(t.bottom,i),u=hr(t.width,n),c=hr(t.height,i),h=r[2]+r[0],p=r[1]+r[3],d=t.aspect;switch(isNaN(u)&&(u=n-s-p-a),isNaN(c)&&(c=i-l-h-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=n-s-u-p),isNaN(o)&&(o=i-l-c-h),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-p-a-(s||0)),isNaN(c)&&(c=i-h-o-(l||0));var g=new Nt((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,c);return g.margin=r,g}var ph={rect:1,point:2};function Kp(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=jz(t),u=l.coord,c=l.from;if(o.dataToLayout){a=ph.rect,s=c;var h=o.dataToLayout(u);n=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=ph.point,s=c,i=o.dataToPoint(u))}return a==null&&(a=ph.rect),a===ph.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function gh(t){var e=t.layoutMode||t.constructor.layoutMode;return mt(e)?e:e?{type:e}:null}function ds(t,e,r){var n=r&&r.ignoreSize;!st(n)&&(n=[n,n]);var i=o(qp[0],0),a=o(qp[1],1);l(qp[0],t,i),l(qp[1],t,a);function o(u,c){var h={},p=0,d={},g=0,y=2;if(Up(u,function(S){d[S]=t[S]}),Up(u,function(S){Pa(e,S)&&(h[S]=d[S]=e[S]),s(h,S)&&p++,s(d,S)&&g++}),n[c])return s(e,u[1])?d[u[2]]=null:s(e,u[2])&&(d[u[1]]=null),d;if(g===y||!p)return d;if(p>=y)return h;for(var w=0;w<u.length;w++){var b=u[w];if(!Pa(h,b)&&Pa(t,b)){h[b]=t[b];break}}return h}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,h){Up(u,function(p){c[p]=h[p]})}}function mh(t){return n8({},t)}function n8(t,e){return e&&t&&Up(Qz,function(r){Pa(e,r)&&(t[r]=e[r])}),t}var i8=Rr(),lr=function(t){Ye(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=$p("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=gh(this),a=i?mh(r):{},o=n.getTheme();or(r,o.get(this.mainType)),or(r,this.getDefaultOption()),i&&ds(r,a,i)},e.prototype.mergeOption=function(r,n){or(this.option,r,!0);var i=gh(this);i&&ds(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!c4(r))return r.defaultOption;var n=i8(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=or(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return op(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return e8(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Kr);cA(lr,Kr),sp(lr),Dz(lr),kz(lr,a8);function a8(t){var e=[];return ne(lr.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=tt(e,function(r){return za(r).main}),t!=="dataset"&&Zt(e,"dataset")<=0&&e.unshift("dataset"),e}var At={color:{},darkColor:{},size:{}},Dr=At.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};We(Dr,{primary:Dr.neutral80,secondary:Dr.neutral70,tertiary:Dr.neutral60,quaternary:Dr.neutral50,disabled:Dr.neutral20,border:Dr.neutral30,borderTint:Dr.neutral20,borderShade:Dr.neutral40,background:Dr.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Dr.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Dr.neutral70,axisLineTint:Dr.neutral40,axisTick:Dr.neutral70,axisTickMinor:Dr.neutral60,axisLabel:Dr.neutral70,axisSplitLine:Dr.neutral15,axisMinorSplitLine:Dr.neutral05});for(var Fl in Dr)if(Dr.hasOwnProperty(Fl)){var iI=Dr[Fl];Fl==="theme"?At.darkColor.theme=Dr.theme.slice():Fl==="highlight"?At.darkColor.highlight="rgba(255,231,130,0.4)":Fl.indexOf("accent")===0?At.darkColor[Fl]=ay(iI,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):At.darkColor[Fl]=ay(iI,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}At.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var aI="";typeof navigator<"u"&&(aI=navigator.platform||"");var sf="rgba(0, 0, 0, 0.2)",oI=At.color.theme[0],o8=ay(oI,null,null,.9);const s8={darkMode:"auto",colorBy:"series",color:At.color.theme,gradientColor:[o8,oI],aria:{decal:{decals:[{color:sf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:aI.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};var sI=kt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),vi="original",mn="arrayRows",Bi="objectRows",ia="keyedColumns",ps="typedArray",lI="unknown",qa="column",$l="row",ln={Must:1,Might:2,Not:3},uI=Rr();function l8(t){uI(t).datasetMap=kt()}function u8(t,e,r){var n={},i=Y_(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=uI(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,h;t=t.slice(),ne(t,function(y,w){var b=mt(y)?y:t[w]={name:y};b.type==="ordinal"&&c==null&&(c=w,h=g(b)),n[b.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});ne(t,function(y,w){var b=y.name,S=g(y);if(c==null){var A=p.valueWayDim;d(n[b],A,S),d(o,A,S),p.valueWayDim+=S}else if(c===w)d(n[b],0,S),d(a,0,S);else{var A=p.categoryWayDim;d(n[b],A,S),d(o,A,S),p.categoryWayDim+=S}});function d(y,w,b){for(var S=0;S<b;S++)y.push(w+S)}function g(y){var w=y.dimsDef;return w?w.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function f8(t,e,r){var n={},i=Y_(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Bi||a===ia)&&ne(o,function(c,h){(mt(c)?c.name:c)==="name"&&(s=h)});var l=function(){for(var c={},h={},p=[],d=0,g=Math.min(5,r);d<g;d++){var y=cI(e.data,a,e.seriesLayoutBy,o,e.startIndex,d);p.push(y);var w=y===ln.Not;if(w&&c.v==null&&d!==s&&(c.v=d),(c.n==null||c.n===c.v||!w&&p[c.n]===ln.Not)&&(c.n=d),b(c)&&p[c.n]!==ln.Not)return c;w||(y===ln.Might&&h.v==null&&d!==s&&(h.v=d),(h.n==null||h.n===h.v)&&(h.n=d))}function b(S){return S.v!=null&&S.n!=null}return b(c)?c:b(h)?h:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Y_(t){var e=t.get("data",!0);if(!e)return op(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ki).models[0]}function c8(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:op(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ki).models}function fI(t,e){return cI(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function cI(t,e,r,n,i,a){var o,s=5;if(Hn(t))return ln.Not;var l,u;if(n){var c=n[a];mt(c)?(l=c.name,u=c.type):ct(c)&&(l=c)}if(u!=null)return u==="ordinal"?ln.Must:ln.Not;if(e===mn){var h=t;if(r===$l){for(var p=h[a],d=0;d<(p||[]).length&&d<s;d++)if((o=I(p[i+d]))!=null)return o}else for(var d=0;d<h.length&&d<s;d++){var g=h[i+d];if(g&&(o=I(g[a]))!=null)return o}}else if(e===Bi){var y=t;if(!l)return ln.Not;for(var d=0;d<y.length&&d<s;d++){var w=y[d];if(w&&(o=I(w[l]))!=null)return o}}else if(e===ia){var b=t;if(!l)return ln.Not;var p=b[l];if(!p||Hn(p))return ln.Not;for(var d=0;d<p.length&&d<s;d++)if((o=I(p[d]))!=null)return o}else if(e===vi)for(var S=t,d=0;d<S.length&&d<s;d++){var w=S[d],A=Kc(w);if(!st(A))return ln.Not;if((o=I(A[a]))!=null)return o}function I(L){var k=ct(L);if(L!=null&&Number.isFinite(Number(L))&&L!=="")return k?ln.Might:ln.Not;if(k&&L!=="-")return ln.Must}return ln.Not}var h8=kt();function v8(t,e,r){var n=h8.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var hI=Rr();Rr();var X_=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=kn(this.get("color",!0)),a=this.get("colorLayer",!0);return p8(this,hI,i,a,e,r,n)},t.prototype.clearColorPalette=function(){g8(this,hI)},t}();function d8(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function p8(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.pptSuitePaletteNameMap=s.pptSuitePaletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:d8(n,o);if(c=c||r,!(!c||!c.length)){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function g8(t,e){e(t).paletteIdx=0,e(t).pptSuitePaletteNameMap={}}var Yp,yh,vI,dI="\0_ec_inner",m8=1,j_=function(t){Ye(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Kr(a),this._locale=new Kr(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=mI(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,mI(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?vI(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&ne(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=kt(),u=n&&n.replaceMergeMainTypeMap;l8(this),ne(r,function(h,p){h!=null&&(lr.hasClass(p)?p&&(s.push(p),l.set(p,!0)):i[p]=i[p]==null?Vt(h):or(i[p],h,!0))}),u&&u.each(function(h,p){lr.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),lr.topologicalTravel(s,lr.getAllClassMainTypes(),c,this);function c(h){var p=v8(this,h,kn(r[h])),d=a.get(h),g=d?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=Z3(d,p,g);i4(y,h,lr),i[h]=null,a.set(h,null),o.set(h,0);var w=[],b=[],S=0,A;ne(y,function(I,L){var k=I.existing,P=I.newOption;if(!P)k&&(k.mergeOption({},this),k.optionUpdated({},!1));else{var z=h==="series",F=lr.getClass(h,I.keyInfo.subType,!z);if(!F)return;if(h==="tooltip"){if(A)return;A=!0}if(k&&k.constructor===F)k.name=I.keyInfo.name,k.mergeOption(P,this),k.optionUpdated(P,!1);else{var W=We({componentIndex:L},I.keyInfo);k=new F(P,this,this,W),We(k,W),I.brandNew&&(k.__requireNewView=!0),k.init(P,this,this),k.optionUpdated(null,!0)}}k?(w.push(k.option),b.push(k),S++):(w.push(void 0),b.push(void 0))},this),i[h]=w,a.set(h,b),o.set(h,S),h==="series"&&Yp(this)}this._seriesIndices||Yp(this)},e.prototype.getOption=function(){var r=Vt(this.option);return ne(r,function(n,i){if(lr.hasClass(i)){for(var a=kn(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Xc(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[dI],r},e.prototype.setTheme=function(r){this._theme=new Kr(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],ne(kn(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=pI("id",a,s):o!=null?l=pI("name",o,s):l=qr(s,function(u){return!!u}),gI(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):qr(this._componentsMap.get(i),function(u){return!!u});return l(gI(o,r));function s(u){var c=i+"Index",h=i+"Id",p=i+"Name";return u&&(u[c]!=null||u[h]!=null||u[p]!=null)?{mainType:i,index:u[c],id:u[h],name:u[p]}:null}function l(u){return r.filter?qr(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(St(r)){var o=n,s=r;a.each(function(h,p){for(var d=0;h&&d<h.length;d++){var g=h[d];g&&s.call(o,p,g,g.componentIndex)}})}else for(var l=ct(r)?a.get(r):mt(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=$a(r,null);return qr(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return qr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return qr(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){yh(this),ne(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){ne(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){yh(this),ne(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return ne(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return yh(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){yh(this);var i=[];ne(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=kt(i)},e.prototype.restoreData=function(r){Yp(this);var n=this._componentsMap,i=[];n.each(function(a,o){lr.hasClass(o)&&i.push(o)}),lr.topologicalTravel(i,lr.getAllClassMainTypes(),function(a){ne(n.get(a),function(o){o&&(a!=="series"||!y8(o,r))&&o.restoreData()})})},e.internalField=function(){Yp=function(r){var n=r._seriesIndices=[];ne(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=kt(n)},yh=function(r){},vI=function(r,n){r.option={},r.option[dI]=m8,r._componentsMap=kt({series:[]}),r._componentsCount=kt();var i=n.aria;mt(i)&&i.enabled==null&&(i.enabled=!0),_8(n,r._theme.option),or(n,s8,!1),r._mergeOption(n,null)}}(),e}(Kr);function y8(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function _8(t,e){var r=t.color&&!t.colorLayer;ne(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||lr.hasClass(i)||(typeof n=="object"?t[i]=t[i]?or(t[i],n,!1):Vt(n):t[i]==null&&(t[i]=n))})}function pI(t,e,r){if(st(e)){var n=kt();return ne(e,function(a){if(a!=null){var o=$a(a,null);o!=null&&n.set(a,!0)}}),qr(r,function(a){return a&&n.get(a[t])})}else{var i=$a(e,null);return qr(r,function(a){return a&&i!=null&&a[t]===i})}}function gI(t,e){return e.hasOwnProperty("subType")?qr(t,function(r){return r&&r.subType===e.subType}):t}function mI(t){var e=kt();return t&&ne(kn(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Zi(j_,X_);var b8=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],yI=function(){function t(e){ne(b8,function(r){this[r]=br(e[r],e)},this)}return t}(),w8=/^(min|max)?(.+)$/,x8=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(ne(kn(e.series),function(o){o&&o.data&&Hn(o.data)&&O0(o.data)}),ne(kn(e.dataset),function(o){o&&o.source&&Hn(o.source)&&O0(o.source)})),e=Vt(e);var i=this._optionBackup,a=S8(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Vt(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=Vt(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)T8(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!A8(o,this._currentMediaIndices)&&(s=tt(o,function(c){return Vt(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},t}();function S8(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||c)&&(t.options=t.media=null),a=t),c&&st(u)&&ne(u,function(d){d&&d.option&&(d.query?n.push(d):i||(i=d))}),p(a),ne(l,function(d){return p(d)}),ne(n,function(d){return p(d.option)});function p(d){ne(e,function(g){g(d,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function T8(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return ne(t,function(a,o){var s=o.match(w8);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();C8(n[u],a,l)||(i=!1)}}),i}function C8(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function A8(t,e){return t.join(",")===e.join(",")}var aa=ne,_h=mt,_I=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Z_(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=_I.length;r<n;r++){var i=_I[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?or(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?or(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function yn(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Wt(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function bh(t){yn(t,"itemStyle"),yn(t,"lineStyle"),yn(t,"areaStyle"),yn(t,"label"),yn(t,"labelLine"),yn(t,"upperLabel"),yn(t,"edgeLabel")}function Or(t,e){var r=_h(t)&&t[e],n=_h(r)&&r.textStyle;if(n)for(var i=0,a=oA.length;i<a;i++){var o=oA[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Ni(t){t&&(bh(t),Or(t,"label"),t.emphasis&&Or(t.emphasis,"label"))}function M8(t){if(_h(t)){Z_(t),bh(t),Or(t,"label"),Or(t,"upperLabel"),Or(t,"edgeLabel"),t.emphasis&&(Or(t.emphasis,"label"),Or(t.emphasis,"upperLabel"),Or(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Z_(e),Ni(e));var r=t.markLine;r&&(Z_(r),Ni(r));var n=t.markArea;n&&Ni(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!Hn(a))for(var o=0;o<a.length;o++)Ni(a[o]);ne(t.categories,function(u){bh(u)})}if(i&&!Hn(i))for(var o=0;o<i.length;o++)Ni(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Ni(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)st(l[o])?(Ni(l[o][0]),Ni(l[o][1])):Ni(l[o]);t.type==="gauge"?(Or(t,"axisLabel"),Or(t,"title"),Or(t,"detail")):t.type==="treemap"?(yn(t.breadcrumb,"itemStyle"),ne(t.levels,function(u){bh(u)})):t.type==="tree"&&bh(t.leaves)}}function Co(t){return st(t)?t:t?[t]:[]}function bI(t){return(st(t)?t[0]:t)||{}}function I8(t,e){aa(Co(t.series),function(n){_h(n)&&M8(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),aa(r,function(n){aa(Co(t[n]),function(i){i&&(Or(i,"axisLabel"),Or(i.axisPointer,"label"))})}),aa(Co(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Or(i,"axisLabel"),Or(i&&i.axisPointer,"label")}),aa(Co(t.calendar),function(n){yn(n,"itemStyle"),Or(n,"dayLabel"),Or(n,"monthLabel"),Or(n,"yearLabel")}),aa(Co(t.radar),function(n){Or(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),aa(Co(t.geo),function(n){_h(n)&&(Ni(n),aa(Co(n.regions),function(i){Ni(i)}))}),aa(Co(t.timeline),function(n){Ni(n),yn(n,"label"),yn(n,"itemStyle"),yn(n,"controlStyle",!0);var i=n.data;st(i)&&ne(i,function(a){mt(a)&&(yn(a,"label"),yn(a,"itemStyle"))})}),aa(Co(t.toolbox),function(n){yn(n,"iconStyle"),aa(n.feature,function(i){yn(i,"iconStyle")})}),Or(bI(t.axisPointer),"label"),Or(bI(t.tooltip).axisPointer,"label")}function D8(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function k8(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function wI(t){t&&ne(L8,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var L8=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],E8=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],J_=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function wh(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<J_.length;r++){var n=J_[r][1],i=J_[r][0];e[n]!=null&&(e[i]=e[n])}}function xI(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function SI(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function P8(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function TI(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&TI(t[r].children,e)}function CI(t,e){I8(t,e),t.series=kn(t.series),ne(t.series,function(r){if(mt(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),xI(r.label);var i=r.data;if(i&&!Hn(i))for(var a=0;a<i.length;a++)xI(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=D8(r,"pointer.color");o!=null&&k8(r,"itemStyle.color",o)}else if(n==="bar"){wh(r),wh(r.backgroundStyle),wh(r.emphasis);var i=r.data;if(i&&!Hn(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(wh(i[a]),wh(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),SI(r),TI(r.data,SI)}else n==="graph"||n==="sankey"?P8(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Wt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),wI(r)}}),t.dataRange&&(t.visualMap=t.dataRange),ne(E8,function(r){var n=t[r];n&&(st(n)||(n=[n]),ne(n,function(i){wI(i)}))})}function R8(t){var e=kt();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),ne(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),O8(r)}})}function O8(t){ne(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,h){var p=o.get(e.stackedDimension,h);if(isNaN(p))return i;var d,g;s?g=o.getRawIndex(h):d=o.get(e.stackedByDimension,h);for(var y=NaN,w=r-1;w>=0;w--){var b=t[w];if(s||(g=b.data.rawIndexOf(b.stackedByDimension,d)),g>=0){var S=b.data.getByRawIndex(b.stackResultDimension,g);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&p>=0&&S>0||l==="samesign"&&p<=0&&S<0){p=z3(p,S),y=S;break}}}return n[0]=p,n[1]=y,n})})}var Xp=function(){function t(e){this.data=e.data||(e.sourceFormat===ia?{}:[]),this.sourceFormat=e.sourceFormat||lI,this.seriesLayoutBy=e.seriesLayoutBy||qa,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&fI(this,n)===ln.Must&&(i.type="ordinal")}}return t}();function Q_(t){return t instanceof Xp}function e1(t,e,r){r=r||MI(t);var n=e.seriesLayoutBy,i=N8(t,r,n,e.sourceHeader,e.dimensions),a=new Xp({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Vt(e)});return a}function AI(t){return new Xp({data:t,sourceFormat:Hn(t)?ps:vi})}function B8(t){return new Xp({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Vt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function MI(t){var e=lI;if(Hn(t))e=ps;else if(st(t)){t.length===0&&(e=mn);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(st(i)||Hn(i)){e=mn;break}else if(mt(i)){e=Bi;break}}}}else if(mt(t)){for(var a in t)if(Pa(t,a)&&zn(t[a])){e=ia;break}}return e}function N8(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:II(i),startIndex:o,dimensionsDetectedCount:a};if(e===mn){var s=t;n==="auto"||n==null?DI(function(u){u!=null&&u!=="-"&&(ct(u)?o==null&&(o=1):o=0)},r,s,10):o=sr(n)?n:n?1:0,!i&&o===1&&(i=[],DI(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===$l?s.length:s[0]?s[0].length:null}else if(e===Bi)i||(i=F8(t));else if(e===ia)i||(i=[],ne(t,function(u,c){i.push(c)}));else if(e===vi){var l=Kc(t[0]);a=st(l)&&l.length||1}return{startIndex:o,dimensionsDefine:II(i),dimensionsDetectedCount:a}}function F8(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Ut(r)}function II(t){if(t){var e=kt();return tt(t,function(r,n){r=mt(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function DI(t,e,r,n){if(e===$l)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function kI(t){var e=t.sourceFormat;return e===Bi||e===ia}var zl,Hl,Vl,Gl,LI,EI,PI=function(){function t(e,r){var n=Q_(e)?e:AI(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===ps&&(this._offset=0,this._dimSize=r,this._data=i),EI(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;EI=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,h=l.startIndex,p=l.dimensionsDefine,d=LI[r1(u,c)];if(We(o,d),u===ps)o.getItem=r,o.count=i,o.fillStorage=n;else{var g=OI(u,c);o.getItem=br(g,null,s,h,p);var y=NI(u,c);o.count=br(y,null,s,h,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,h=0;h<u;h++)s[h]=l[c+h];return s},n=function(o,s,l,u){for(var c=this._data,h=this._dimSize,p=0;p<h;p++){for(var d=u[p],g=d[0]==null?1/0:d[0],y=d[1]==null?-1/0:d[1],w=s-o,b=l[p],S=0;S<w;S++){var A=c[S*h+p];b[o+S]=A,A<g&&(g=A),A>y&&(y=A)}d[0]=g,d[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};LI=(e={},e[mn+"_"+qa]={pure:!0,appendData:a},e[mn+"_"+$l]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Bi]={pure:!0,appendData:a},e[ia]={pure:!0,appendData:function(o){var s=this._data;ne(o,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},e[vi]={appendData:a},e[ps]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),jp=function(t){st(t)||nA("series.data or dataset.source must be an array.")};zl={},zl[mn+"_"+qa]=jp,zl[mn+"_"+$l]=jp,zl[Bi]=jp,zl[ia]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&nA("dimension name must not be null/undefined.")}},zl[vi]=jp;var RI=function(t,e,r,n){return t[n]},$8=(Hl={},Hl[mn+"_"+qa]=function(t,e,r,n){return t[n+e]},Hl[mn+"_"+$l]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Hl[Bi]=RI,Hl[ia]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},Hl[vi]=RI,Hl);function OI(t,e){var r=$8[r1(t,e)];return r}var BI=function(t,e,r){return t.length},z8=(Vl={},Vl[mn+"_"+qa]=function(t,e,r){return Math.max(0,t.length-e)},Vl[mn+"_"+$l]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Vl[Bi]=BI,Vl[ia]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},Vl[vi]=BI,Vl);function NI(t,e){var r=z8[r1(t,e)];return r}var t1=function(t,e,r){return t[e]},H8=(Gl={},Gl[mn]=t1,Gl[Bi]=function(t,e,r){return t[r]},Gl[ia]=t1,Gl[vi]=function(t,e,r){var n=Kc(t);return n instanceof Array?n[e]:n},Gl[ps]=t1,Gl);function FI(t){var e=H8[t];return e}function r1(t,e){return t===mn?t+"_"+e:t}function lf(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return FI(a)(n,o,s)}else{var l=n;return a===vi&&(l=Kc(n)),l}}}}var V8=/\{@(.+?)\}/g,G8=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,p=h==="series",d=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&st(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(St(a))return l.status=r,l.dimensionIndex=i,a(l);if(ct(a)){var c=Kz(a,l);return c.replace(V8,function(h,p){var d=p.length,g=p;g.charAt(0)==="["&&g.charAt(d-1)==="]"&&(g=+g.slice(1,d-1));var y=lf(s,e,g);if(o&&st(o.interpolatedValue)){var w=s.getDimensionIndex(g);w>=0&&(y=o.interpolatedValue[w])}return y!=null?y+"":""})}},t.prototype.getRawValue=function(e,r){return lf(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function xh(t){return new W8(t)}var W8=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(S){return!(S>=1)&&(S=1),S}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(h||d<g)){var y=this._progress;if(st(y))for(var w=0;w<y.length;w++)this._doProgress(y[w],d,g,l,u);else this._doProgress(y,d,g,l,u)}this._dueIndex=g;var b=this._settedOutputEnd!=null?this._settedOutputEnd:g;this._outputDueEnd=b}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){$I.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:$I.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),st(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),$I=function(){var t,e,r,n,i,a={reset:function(l,u,c,h){e=l,t=u,r=c,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}}();function Zp(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!sr(t)&&t!=null&&t!=="-"&&(t=+qc(t)),t==null||t===""?NaN:Number(t))}kt({number:function(t){return parseFloat(t)},time:function(t){return+qc(t)},trim:function(t){return ct(t)?Qo(t):t}});var U8=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Zp(e,r)},t}();function q8(t,e){var r=new U8,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==qa&&fi(o);var s=[],l={},u=t.dimensionsDefine;if(u)ne(u,function(y,w){var b=y.name,S={index:w,name:b,displayName:y.displayName};if(s.push(S),b!=null){var A="";Pa(l,b)&&fi(A),l[b]=S}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=OI(i,qa);e.__isBuiltIn&&(r.getRawDataItem=function(y){return h(n,a,s,y)},r.getRawData=br(K8,null,t)),r.cloneRawData=br(Y8,null,t);var p=NI(i,qa);r.count=br(p,null,n,a,s);var d=FI(i);r.retrieveValue=function(y,w){var b=h(n,a,s,y);return g(b,w)};var g=r.retrieveValueFromItem=function(y,w){if(y!=null){var b=s[w];if(b)return d(y,w,b.name)}};return r.getDimensionInfo=br(X8,null,s,l),r.cloneAllDimensionInfo=br(j8,null,s),r}function K8(t){var e=t.sourceFormat;if(!n1(e)){var r="";fi(r)}return t.data}function Y8(t){var e=t.sourceFormat,r=t.data;if(!n1(e)){var n="";fi(n)}if(e===mn){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Bi){for(var i=[],a=0,o=r.length;a<o;a++)i.push(We({},r[a]));return i}}function X8(t,e,r){if(r!=null){if(sr(r)||!isNaN(r)&&!Pa(e,r))return t[r];if(Pa(e,r))return e[r]}}function j8(t){return Vt(t)}var zI=kt();function Z8(t){t=Vt(t);var e=t.type,r="";e||fi(r);var n=e.split(":");n.length!==2&&fi(r);var i=!1;n[0]==="pptSuiteEcharts"&&(e=n[1],i=!0),t.__isBuiltIn=i,zI.set(e,t)}function J8(t,e,r){var n=kn(t),i=n.length,a="";i||fi(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=Q8(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function Q8(t,e,r,n){var i="";e.length||fi(i),mt(t)||fi(i);var a=t.type,o=zI.get(a);o||fi(i);var s=tt(e,function(u){return q8(u,o)}),l=kn(o.transform({upstream:s[0],upstreamList:s,config:Vt(t.config)}));return tt(l,function(u,c){var h="";mt(u)||fi(h),u.data||fi(h);var p=MI(u.data);n1(p)||fi(h);var d,g=e[0];if(g&&c===0&&!u.dimensions){var y=g.startIndex;y&&(u.data=g.data.slice(0,y).concat(u.data)),d={seriesLayoutBy:qa,sourceHeader:y,dimensions:g.metaRawOption.dimensions}}else d={seriesLayoutBy:qa,sourceHeader:0,dimensions:u.dimensions};return e1(u.data,d,null)})}function n1(t){return t===mn||t===Bi}var Jp="undefined",eH=typeof Uint32Array===Jp?Array:Uint32Array,tH=typeof Uint16Array===Jp?Array:Uint16Array,HI=typeof Int32Array===Jp?Array:Int32Array,VI=typeof Float64Array===Jp?Array:Float64Array,GI={float:VI,int:HI,ordinal:Array,number:Array,time:VI},i1;function uf(t){return t>65535?eH:tH}function ff(){return[1/0,-1/0]}function rH(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function WI(t,e,r,n,i){var a=GI[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var a1=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=kt()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=i1[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],kI(i),this._dimensions=tt(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new GI[r||"float"](this._rawCount),this._rawExtent[a]=ff(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=ff());for(var l=a[e],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var c=i[u];WI(n,u,c.type,l,!0)}for(var h=[],p=s;p<l;p++)for(var d=p-s,g=0;g<a;g++){var c=i[g],y=i1.arrayRows.call(this,e[d]||h,c.property,d,g);n[g][p]=y;var w=o[g];y<w[0]&&(w[0]=y),y>w[1]&&(w[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=tt(o,function(S){return S.property}),c=0;c<s;c++){var h=o[c];l[c]||(l[c]=ff()),WI(a,c,h.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var p=[],d=e;d<r;d++){p=i.getItem(d,p);for(var g=0;g<s;g++){var y=a[g],w=this._dimValueGetter(p,u[g],d,g);y[d]=w;var b=l[g];w<b[0]&&(b[0]=w),w>b[1]&&(b[1]=w)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=uf(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=uf(n._rawCount),o=new a(i),s=[],l=e.length,u=0,c=e[0],h=n._chunks,p=0;p<i;p++){var d=void 0,g=n.getRawIndex(p);if(l===0)d=r(p);else if(l===1){var y=h[c][g];d=r(y,p)}else{for(var w=0;w<l;w++)s[w]=h[e[w]][g];s[w]=p,d=r.apply(null,s)}d&&(o[u++]=g)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Ut(e),a=i.length;if(!a)return this;var o=r.count(),s=uf(r._rawCount),l=new s(o),u=0,c=i[0],h=e[c][0],p=e[c][1],d=r._chunks,g=!1;if(!r._indices){var y=0;if(a===1){for(var w=d[i[0]],b=0;b<n;b++){var S=w[b];(S>=h&&S<=p||isNaN(S))&&(l[u++]=y),y++}g=!0}else if(a===2){for(var w=d[i[0]],A=d[i[1]],I=e[i[1]][0],L=e[i[1]][1],b=0;b<n;b++){var S=w[b],k=A[b];(S>=h&&S<=p||isNaN(S))&&(k>=I&&k<=L||isNaN(k))&&(l[u++]=y),y++}g=!0}}if(!g)if(a===1)for(var b=0;b<o;b++){var P=r.getRawIndex(b),S=d[i[0]][P];(S>=h&&S<=p||isNaN(S))&&(l[u++]=P)}else for(var b=0;b<o;b++){for(var z=!0,P=r.getRawIndex(b),F=0;F<a;F++){var W=i[F],S=d[W][P];(S<e[W][0]||S>e[W][1])&&(z=!1)}z&&(l[u++]=r.getRawIndex(b))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<r.length;c++)u[r[c]]=ff();for(var h=0;h<s;h++){for(var p=e.getRawIndex(h),d=0;d<o;d++)l[d]=i[r[d]][p];l[o]=h;var g=n&&n.apply(null,l);if(g!=null){typeof g!="object"&&(a[0]=g,g=a);for(var c=0;c<g.length;c++){var y=r[c],w=g[c],b=u[y],S=i[y];S&&(S[p]=w),w<b[0]&&(b[0]=w),w>b[1]&&(b[1]=w)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,h,p,d=new(uf(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var g=1;g<o-1;g+=l){for(var y=Math.min(g+l,o-1),w=Math.min(g+l*2,o),b=(w+y)/2,S=0,A=y;A<w;A++){var I=this.getRawIndex(A),L=a[I];isNaN(L)||(S+=L)}S/=w-y;var k=g,P=Math.min(g+l,o),z=g-1,F=a[u];c=-1,p=k;for(var W=-1,G=0,A=k;A<P;A++){var I=this.getRawIndex(A),L=a[I];if(isNaN(L)){G++,W<0&&(W=I);continue}h=Math.abs((z-b)*(L-F)-(z-A)*(S-F)),h>c&&(c=h,p=I)}G>0&&G<P-k&&(d[s++]=Math.min(W,p),p=Math.max(W,p)),d[s++]=p,u=p}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(uf(this._rawCount))(Math.ceil(s/a)*2),u=0,c=0;c<s;c+=a){var h=c,p=o[this.getRawIndex(h)],d=c,g=o[this.getRawIndex(d)],y=a;c+a>s&&(y=s-c);for(var w=0;w<y;w++){var b=this.getRawIndex(c+w),S=o[b];S<p&&(p=S,h=c+w),S>g&&(g=S,d=c+w)}var A=this.getRawIndex(h),I=this.getRawIndex(d);h<d?(l[u++]=A,l[u++]=I):(l[u++]=I,l[u++]=A)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],c=this.count(),h=a._rawExtent[e]=ff(),p=new(uf(this._rawCount))(Math.ceil(c/l)),d=0,g=0;g<c;g+=l){l>c-g&&(l=c-g,s.length=l);for(var y=0;y<l;y++){var w=this.getRawIndex(g+y);s[y]=u[w]}var b=n(s),S=this.getRawIndex(Math.min(g+i(s,b)||0,c-1));u[S]=b,b<h[0]&&(h[0]=b),b>h[1]&&(h[1]=b),p[d++]=S}return a._count=d,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=ff();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),h=r[c];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&Jo(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?rH(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Vt(this._extent),e._rawExtent=Vt(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return Zp(r[a],this._dimensions[a])}i1={arrayRows:e,objectRows:function(r,n,i,a){return Zp(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Zp(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),nH=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,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 e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Qp(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Hn(s)?ps:vi,a=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=ut(h.seriesLayoutBy,p.seriesLayoutBy)||null,g=ut(h.sourceHeader,p.sourceHeader),y=ut(h.dimensions,p.dimensions),w=d!==p.seriesLayoutBy||!!g!=!!p.sourceHeader||y;i=w?[e1(s,{seriesLayoutBy:d,sourceHeader:g,dimensions:y},l)]:[]}else{var b=e;if(n){var S=this._applyTransform(r);i=S.sourceList,a=S.upstreamSignList}else{var A=b.get("source",!0);i=[e1(A,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&UI(a)}var o,s=[],l=[];return ne(e,function(u){u.prepareSource();var c=u.getSource(i||0),h="";i!=null&&!c&&UI(h),s.push(c),l.push(u._getVersionSign())}),n?o=J8(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[B8(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Qp(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new a1,s.initData(new PI(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Qp(e)){var r=Y_(e);return r?[r.getSourceManager()]:[]}else return tt(c8(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Qp(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t}();function Qp(t){return t.mainType==="series"}function UI(t){throw new Error(t)}function Sh(t,e){return e.type=t,e}function qI(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return G_(n)}function iH(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=st(s),u=qI(e,r),c,h,p,d;if(o>1||l&&!o){var g=aH(s,e,r,a,u);c=g.inlineValues,h=g.inlineValueTypes,p=g.blocks,d=g.inlineValues[0]}else if(o){var y=i.getDimensionInfo(a[0]);d=c=lf(i,r,a[0]),h=y.type}else d=c=l?s[0]:s;var w=By(e),b=w&&e.name||"",S=i.getName(r),A=n?b:S;return Sh("section",{header:b,noHeader:n||!w,sortParam:d,blocks:[Sh("nameValue",{markerType:"item",markerColor:u,name:A,noName:!Qo(A),value:c,valueType:h,dataIndex:r})].concat(p||[])})}function aH(t,e,r,n,i){var a=e.getData(),o=Jo(t,function(h,p,d){var g=a.getDimensionInfo(d);return h=h||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];n.length?ne(n,function(h){c(lf(a,r,h),h)}):ne(t,c);function c(h,p){var d=a.getDimensionInfo(p);!d||d.otherDims.tooltip===!1||(o?u.push(Sh("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:h,valueType:d.type})):(s.push(h),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var gs=Rr();function eg(t,e){return t.getName(e)||t.getId(e)}var oH="__universalTransitionEnabled",di=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=xh({count:lH,reset:uH}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=gs(this).sourceManager=new nH(this);a.prepareSource();var o=this.getInitialData(r,i);YI(o,this),this.dataTask.context.data=o,gs(this).dataBeforeProcessed=o,KI(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=gh(this),a=i?mh(r):{},o=this.subType;lr.hasClass(o)&&(o+="Series"),or(r,n.getTheme().get(this.subType)),or(r,this.getDefaultOption()),Oy(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&ds(r,a,i)},e.prototype.mergeOption=function(r,n){r=or(this.option,r,!0),this.fillDataTextStyle(r.data);var i=gh(this);i&&ds(this.option,r,i);var a=gs(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);YI(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,gs(this).dataBeforeProcessed=o,KI(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Hn(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Oy(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=o1(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return gs(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=o1(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}gs(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return kt(r)},e.prototype.getSourceManager=function(){return gs(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return gs(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);var c=[],h=1/0,p=-1,d=0;return o.each(n,function(g,y){var w=l.dataToCoord(g),b=u-w,S=Math.abs(b);S<=a&&((S<h||S===h&&b>=0&&p<0)&&(h=S,p=b,d=0),b===p&&(c[d++]=y))}),c.length=d,c},e.prototype.formatTooltip=function(r,n,i){return iH({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(tr.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=X_.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=eg(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Ut(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[eg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[oH])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){mt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var h=n[c],p=eg(r,h);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var d=n[l-1],p=eg(r,d);o.selectedMap=(i={},i[p]=!0,i),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(d),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return lr.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(lr);Zi(di,G8),Zi(di,X_),cA(di,lr);function KI(t){var e=t.name;By(t)||(t.name=sH(t)||e)}function sH(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return ne(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function lH(t){return t.model.getRawData().count()}function uH(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),fH}function fH(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function YI(t,e){ne(sF(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,oi(cH,e))})}function cH(t,e){var r=o1(t);return r&&r.setOutputEnd((e||this).count()),e}function o1(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var Ao=function(){function t(){this.group=new $r,this.uid=$p("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Fy(Ao),sp(Ao);function s1(){var t=Rr();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var XI=Rr(),hH=s1(),qn=function(){function t(){this.group=new $r,this.uid=$p("viewChart"),this.renderTask=xh({plan:vH,reset:dH}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&ZI(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&ZI(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Op(this.group,e)},t.markUpdateMethod=function(e,r){XI(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function jI(t,e,r){t&&v_(t)&&(e==="emphasis"?xp:Sp)(t,r)}function ZI(t,e,r){var n=Uu(t,e),i=e&&e.highlightKey!=null?T$(e.highlightKey):null;n!=null?ne(kn(n),function(a){jI(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){jI(a,r,i)})}Fy(qn),sp(qn);function vH(t){return hH(t.model)}function dH(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&XI(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),pH[l]}var pH={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)}}};function JI(t,e,r){var n,i=0,a=0,o=null,s,l,u,c;e=e||0;function h(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var d=[],g=0;g<arguments.length;g++)d[g]=arguments[g];n=new Date().getTime(),l=this,u=d;var y=c||e,w=c||r;c=null,s=n-(w?i:a)-y,clearTimeout(o),w?o=setTimeout(h,y):s>=0?h():o=setTimeout(h,-s),i=n};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(d){c=d},p}var QI=Rr(),eD={itemStyle:jc(HM,!0),lineStyle:jc(zM,!0)},gH={lineStyle:"stroke",itemStyle:"fill"};function tD(t,e){var r=t.visualStyleMapper||eD[e];return r||(console.warn("Unknown style type '"+e+"'."),eD.itemStyle)}function rD(t,e){var r=t.visualDrawType||gH[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var mH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=tD(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=rD(t,n),u=o[l],c=St(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||h){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||St(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||St(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,g){var y=t.getDataParams(g),w=We({},o);w[l]=c(y),d.setItemVisual(g,"style",w)}}}},Th=new Kr,yH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=tD(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Th.option=l[n];var u=i(Th),c=o.ensureUniqueItemVisual(s,"style");We(c,u),Th.option.decal&&(o.setItemVisual(s,"decal",Th.option.decal),Th.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},_H={performRawSeries:!0,overallReset:function(t){var e=kt();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),QI(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=QI(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=rD(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],h=a.getItemVisual(c,"colorFromPalette");if(h){var p=a.ensureUniqueItemVisual(c,"style"),d=n.getName(u)||u+"",g=n.count();p[l]=r.getColorFromPalette(d,o,g)}})}})}},tg=Math.PI;function bH(t,e){e=e||{},Wt(e,{text:"loading",textColor:At.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:At.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new $r,n=new zr({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new ci({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 zr({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Ip({shape:{startAngle:-tg/2,endAngle:-tg/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:tg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:tg*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var nD=function(){function t(e,r,n,i){this._stageTaskMap=kt(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=kt();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;ne(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Ea(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;ne(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),h=c.seriesTaskMap,p=c.overallTask;if(p){var d,g=p.agentStubMap;g.each(function(w){s(i,w)&&(w.dirty(),d=!0)}),d&&p.dirty(),o.updatePayload(p,n);var y=o.getPerformArgs(p,i.block);g.each(function(w){w.perform(y)}),p.perform(y)&&(a=!0)}else h&&h.each(function(w,b){s(i,w)&&w.dirty();var S=o.getPerformArgs(w,i.block);S.skip=!l.performRawSeries&&r.isSeriesFiltered(w.context.model),o.updatePayload(w,n),w.perform(S)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=kt(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(h){var p=h.uid,d=s.set(p,o&&o.get(p)||xh({plan:CH,reset:AH,count:IH}));d.context={model:h,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,d)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||xh({reset:wH});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=kt(),u=e.seriesType,c=e.getTargetSeries,h=!0,p=!1,d="";Ea(!e.createOnAllSeries,d),u?n.eachRawSeriesByType(u,g):c?c(n,i).each(g):(h=!1,ne(n.getSeries(),g));function g(y){var w=y.uid,b=l.set(w,s&&s.get(w)||(p=!0,xh({reset:xH,onDirty:TH})));b.context={model:y,overallProgress:h},b.agent=o,b.__block=h,a._pipe(y,b)}p&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return St(e)&&(e={overallReset:e,seriesType:DH(e)}),e.uid=$p("stageHandler"),r&&(e.visualType=r),e},t}();function wH(t){t.overallReset(t.ecModel,t.api,t.payload)}function xH(t){return t.overallProgress&&SH}function SH(){this.agent.dirty(),this.getDownstream().dirty()}function TH(){this.agent&&this.agent.dirty()}function CH(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function AH(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=kn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?tt(e,function(r,n){return iD(n)}):MH}var MH=iD(0);function iD(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function IH(t){return t.data.count()}function DH(t){rg=null;try{t(Ch,aD)}catch{}return rg}var Ch={},aD={},rg;oD(Ch,j_),oD(aD,yI),Ch.eachSeriesByType=Ch.eachRawSeriesByType=function(t){rg=t},Ch.eachComponent=function(t){t.mainType==="series"&&t.subType&&(rg=t.subType)};function oD(t,e){for(var r in e.prototype)t[r]=si}var je=At.darkColor,kH=je.background,Ah=function(){return{axisLine:{lineStyle:{color:je.axisLine}},splitLine:{lineStyle:{color:je.axisSplitLine}},splitArea:{areaStyle:{color:[je.backgroundTint,je.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:je.axisMinorSplitLine}},axisLabel:{color:je.axisLabel},axisName:{}}},sD={label:{color:je.secondary},itemStyle:{borderColor:je.borderTint},dividerLineStyle:{color:je.border}},lD={darkMode:!0,color:je.theme,backgroundColor:kH,axisPointer:{lineStyle:{color:je.border},crossStyle:{color:je.borderShade},label:{color:je.tertiary}},legend:{textStyle:{color:je.secondary},pageTextStyle:{color:je.tertiary}},textStyle:{color:je.secondary},title:{textStyle:{color:je.primary},subtextStyle:{color:je.quaternary}},toolbox:{iconStyle:{borderColor:je.accent50}},tooltip:{backgroundColor:je.neutral20,defaultBorderColor:je.border,textStyle:{color:je.tertiary}},dataZoom:{borderColor:je.accent10,textStyle:{color:je.tertiary},brushStyle:{color:je.backgroundTint},handleStyle:{color:je.neutral00,borderColor:je.accent20},moveHandleStyle:{color:je.accent40},emphasis:{handleStyle:{borderColor:je.accent50}},dataBackground:{lineStyle:{color:je.accent30},areaStyle:{color:je.accent20}},selectedDataBackground:{lineStyle:{color:je.accent50},areaStyle:{color:je.accent30}}},visualMap:{textStyle:{color:je.secondary},handleStyle:{borderColor:je.neutral30}},timeline:{lineStyle:{color:je.accent10},label:{color:je.tertiary},controlStyle:{color:je.accent30,borderColor:je.accent30}},calendar:{itemStyle:{color:je.neutral00,borderColor:je.neutral20},dayLabel:{color:je.tertiary},monthLabel:{color:je.secondary},yearLabel:{color:je.secondary}},matrix:{x:sD,y:sD,backgroundColor:{borderColor:je.axisLine},body:{itemStyle:{borderColor:je.borderTint}}},timeAxis:Ah(),logAxis:Ah(),valueAxis:Ah(),categoryAxis:Ah(),line:{symbol:"circle"},graph:{color:je.theme},gauge:{title:{color:je.secondary},axisLine:{lineStyle:{color:[[1,je.neutral05]]}},axisLabel:{color:je.axisLabel},detail:{color:je.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:je.background}},radar:function(){var t=Ah();return t.axisName={color:je.axisLabel},t.axisLine.lineStyle.color=je.neutral20,t}(),treemap:{breadcrumb:{itemStyle:{color:je.neutral20,textStyle:{color:je.secondary}},emphasis:{itemStyle:{color:je.neutral30}}}},sunburst:{itemStyle:{borderColor:je.background}},map:{itemStyle:{borderColor:je.border,areaColor:je.neutral10},label:{color:je.tertiary},emphasis:{label:{color:je.primary},itemStyle:{areaColor:je.highlight}},select:{label:{color:je.primary},itemStyle:{areaColor:je.highlight}}},geo:{itemStyle:{borderColor:je.border,areaColor:je.neutral10},emphasis:{label:{color:je.primary},itemStyle:{areaColor:je.highlight}},select:{label:{color:je.primary},itemStyle:{color:je.highlight}}}};lD.categoryAxis.splitLine.show=!1;var LH=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(ct(e)){var a=za(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};ne(e,function(l,u){for(var c=!1,h=0;h<o.length;h++){var p=o[h],d=u.lastIndexOf(p);if(d>0&&d===u.length-p.length){var g=u.slice(0,d);g!=="data"&&(r.mainType=g,r[p.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function c(h,p,d,g){return h[d]==null||p[g||d]===h[d]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),l1=["symbol","symbolSize","symbolRotate","symbolOffset"],uD=l1.concat(["symbolKeepAspect"]),EH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<l1.length;o++){var s=l1[o],l=t.get(s);St(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(We({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=Ut(i);function c(h,p){for(var d=t.getRawValue(p),g=t.getDataParams(p),y=0;y<u.length;y++){var w=u[y];h.setItemVisual(p,w,i[w](d,g))}}return{dataEach:a?c:null}}},PH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<uD.length;s++){var l=uD[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function RH(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function OH(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function BH(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}ne([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=We({},i),o.dispatchAction(We(i,{type:n[1],seriesIndex:r(a,i)}))})})}function cf(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var h=o.getData(),p=Uu(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:st(p)?h.getName(p[0]):h.getName(p),selected:ct(l)?l:We({},l)})}})}function NH(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(cf("map","selectchanged",e,i,n),cf("pie","selectchanged",e,i,n)):n.fromAction==="select"?(cf("map","selected",e,i,n),cf("pie","selected",e,i,n)):n.fromAction==="unselect"&&(cf("map","unselected",e,i,n),cf("pie","unselected",e,i,n))})}function ng(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var FH=Math.round(Math.random()*9),$H=typeof Object.defineProperty=="function",zH=function(){function t(){this._id="__ec_inner_"+FH++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return $H?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),HH=Kt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),VH=Kt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),GH=Kt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),p=Math.cos(u),d=o*.6,g=o*.7;t.moveTo(r-c,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+c-h*d,l+s+p*d,r,n-g,r,n),t.bezierCurveTo(r,n-g,r-c+h*d,l+s+p*d,r-c,l+s),t.closePath()}}),WH=Kt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),UH={line:cs,rect:zr,roundRect:zr,square:zr,circle:rh,diamond:VH,pin:GH,arrow:WH,triangle:HH},qH={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},u1={};ne(UH,function(t,e){u1[e]=new t});var KH=Kt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=tp(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=u1[n];i||(n="rect",i=u1[n]),qH[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function YH(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||At.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function ms(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=xM(t.slice(8),new Nt(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=S_(t.slice(7),{},new Nt(e,r,n,i),o?"center":"cover"):l=new KH({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=YH,a&&l.setColor(a),l}function fD(t){return st(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function cD(t,e){if(t!=null)return st(t)||(t=[t,t]),[hr(t[0],e[0])||0,hr(ut(t[1],t[0]),e[1])||0]}function Wl(t){return isFinite(t)}function XH(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Wl(n)?n:0,i=Wl(i)?i:1,a=Wl(a)?a:0,o=Wl(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function jH(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Wl(o)?o:.5,s=Wl(s)?s:.5,l=l>=0&&Wl(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function hD(t,e,r){for(var n=e.type==="radial"?jH(t,e,r):XH(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function ZH(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function ig(t){return parseInt(t,10)}function vD(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||ig(s[n])||ig(t.style[n]))-(ig(s[a])||0)-(ig(s[o])||0)|0}function JH(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:sr(t)?[t]:st(t)?t:null}function f1(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&JH(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=tt(r,function(a){return a/i}),n/=i)}return[r,n]}var QH=new ls(!0);function ag(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function dD(t){return typeof t=="string"&&t!=="none"}function og(t){var e=t.fill;return e!=null&&e!=="none"}function pD(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function gD(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function mD(t,e,r){var n=zy(e.image,e.__image,r);if(lp(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Ed),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function eV(t,e,r,n){var i,a=ag(r),o=og(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||QH,h=e.__dirty;if(!n){var p=r.fill,d=r.stroke,g=o&&!!p.colorStops,y=a&&!!d.colorStops,w=o&&!!p.image,b=a&&!!d.image,S=void 0,A=void 0,I=void 0,L=void 0,k=void 0;(g||y)&&(k=e.getBoundingRect()),g&&(S=h?hD(t,p,k):e.__canvasFillGradient,e.__canvasFillGradient=S),y&&(A=h?hD(t,d,k):e.__canvasStrokeGradient,e.__canvasStrokeGradient=A),w&&(I=h||!e.__canvasFillPattern?mD(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=I),b&&(L=h||!e.__canvasStrokePattern?mD(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=L),g?t.fillStyle=S:w&&(I?t.fillStyle=I:o=!1),y?t.strokeStyle=A:b&&(L?t.strokeStyle=L:a=!1)}var P=e.getGlobalScale();c.setScale(P[0],P[1],e.segmentIgnoreThreshold);var z,F;t.setLineDash&&r.lineDash&&(i=f1(e),z=i[0],F=i[1]);var W=!0;(u||h&Nu)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),W=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),W&&c.rebuildPath(t,l?s:1),z&&(t.setLineDash(z),t.lineDashOffset=F),n||(r.strokeFirst?(a&&gD(t,r),o&&pD(t,r)):(o&&pD(t,r),a&&gD(t,r))),z&&t.setLineDash([])}function tV(t,e,r){var n=e.__image=zy(r.image,e.__image,e,e.onload);if(!(!n||!lp(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;t.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,h=o-u,p=s-c;t.drawImage(n,u,c,h,p,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function rV(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||yo,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=f1(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(ag(r)&&t.strokeText(i,r.x,r.y),og(r)&&t.fillText(i,r.x,r.y)):(og(r)&&t.fillText(i,r.x,r.y),ag(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var yD=["shadowBlur","shadowOffsetX","shadowOffsetY"],_D=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bD(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Kn(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Tl.opacity:o}(n||e.blend!==r.blend)&&(a||(Kn(t,i),a=!0),t.globalCompositeOperation=e.blend||Tl.blend);for(var s=0;s<yD.length;s++){var l=yD[s];(n||e[l]!==r[l])&&(a||(Kn(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Kn(t,i),a=!0),t.shadowColor=e.shadowColor||Tl.shadowColor),a}function wD(t,e,r,n,i){var a=Mh(e,i.inHover),o=n?null:r&&Mh(r,i.inHover)||{};if(a===o)return!1;var s=bD(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Kn(t,i),s=!0),dD(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Kn(t,i),s=!0),dD(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Kn(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Kn(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<_D.length;c++){var h=_D[c],p=h[0];(n||a[p]!==o[p])&&(s||(Kn(t,i),s=!0),t[p]=a[p]||h[1])}return s}function nV(t,e,r,n,i){return bD(t,Mh(e,i.inHover),r&&Mh(r,i.inHover),n,i)}function xD(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function iV(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),xD(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function aV(t,e){return t&&e?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&&!e)}var SD=1,TD=2,CD=3,AD=4;function oV(t){var e=og(t),r=ag(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Kn(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Mh(t,e){return e&&t.__hoverStyle||t.style}function sV(t,e){c1(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function c1(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Ra,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||ZH(a,o))&&(o&&o.length&&(Kn(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Kn(t,r),t.save(),iV(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=e instanceof Kt&&e.autoBatch&&oV(e.style);s||aV(i,u.transform)?(Kn(t,r),xD(t,e)):c||Kn(t,r);var h=Mh(e,r.inHover);e instanceof Kt?(r.lastDrawType!==SD&&(l=!0,r.lastDrawType=SD),wD(t,e,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&t.beginPath(),eV(t,e,h,c),c&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):e instanceof eh?(r.lastDrawType!==CD&&(l=!0,r.lastDrawType=CD),wD(t,e,u,l,r),rV(t,e,h)):e instanceof ta?(r.lastDrawType!==TD&&(l=!0,r.lastDrawType=TD),nV(t,e,u,l,r),tV(t,e,h)):e.getTemporalDisplayables&&(r.lastDrawType!==AD&&(l=!0,r.lastDrawType=AD),lV(t,e,r)),c&&n&&Kn(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function lV(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),c1(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),c1(t,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var h1=new zH,MD=new $u(100),ID=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function v1(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&h1.delete(t);var a=h1.get(t);if(a)return a;var o=Wt(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,h1.set(t,s),t.dirty=!1,s;function l(u){for(var c=[r],h=!0,p=0;p<ID.length;++p){var d=o[ID[p]];if(d!=null&&!st(d)&&!ct(d)&&!sr(d)&&typeof d!="boolean"){h=!1;break}c.push(d)}var g;if(h){g=c.join(",")+(i?"-svg":"");var y=MD.get(g);y&&(i?u.svgElement=y:u.image=y)}var w=kD(o.dashArrayX),b=uV(o.dashArrayY),S=DD(o.symbol),A=fV(w),I=LD(b),L=!i&&Zo.createCanvas(),k=i&&{tag:"g",attrs:{},key:"dcl",children:[]},P=F(),z;L&&(L.width=P.width*r,L.height=P.height*r,z=L.getContext("2d")),W(),h&&MD.put(g,L||k),u.image=L,u.svgElement=k,u.svgWidth=P.width,u.svgHeight=P.height;function F(){for(var G=1,K=0,q=A.length;K<q;++K)G=rA(G,A[K]);for(var ie=1,K=0,q=S.length;K<q;++K)ie=rA(ie,S[K].length);G*=ie;var ve=I*A.length*S.length;return{width:Math.max(1,Math.min(G,o.maxTileWidth)),height:Math.max(1,Math.min(ve,o.maxTileHeight))}}function W(){z&&(z.clearRect(0,0,L.width,L.height),o.backgroundColor&&(z.fillStyle=o.backgroundColor,z.fillRect(0,0,L.width,L.height)));for(var G=0,K=0;K<b.length;++K)G+=b[K];if(G<=0)return;for(var q=-I,ie=0,ve=0,ye=0;q<P.height;){if(ie%2===0){for(var be=ve/2%S.length,ue=0,Me=0,ke=0;ue<P.width*2;){for(var ce=0,K=0;K<w[ye].length;++K)ce+=w[ye][K];if(ce<=0)break;if(Me%2===0){var fe=(1-o.symbolSize)*.5,Pe=ue+w[ye][Me]*fe,Qe=q+b[ie]*fe,Ae=w[ye][Me]*o.symbolSize,Oe=b[ie]*o.symbolSize,lt=ke/2%S[be].length;dt(Pe,Qe,Ae,Oe,S[be][lt])}ue+=w[ye][Me],++ke,++Me,Me===w[ye].length&&(Me=0)}++ye,ye===w.length&&(ye=0)}q+=b[ie],++ve,++ie,ie===b.length&&(ie=0)}function dt($e,Tt,rt,$,J){var se=i?1:r,Te=ms(J,$e*se,Tt*se,rt*se,$*se,o.color,o.symbolKeepAspect);if(i){var xe=n.painter.renderOneToVNode(Te);xe&&k.children.push(xe)}else sV(z,Te)}}}}function DD(t){if(!t||t.length===0)return[["rect"]];if(ct(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!ct(t[r])){e=!1;break}if(e)return DD([t]);for(var n=[],r=0;r<t.length;++r)ct(t[r])?n.push([t[r]]):n.push(t[r]);return n}function kD(t){if(!t||t.length===0)return[[0,0]];if(sr(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!sr(t[n])){r=!1;break}if(r)return kD([t]);for(var i=[],n=0;n<t.length;++n)if(sr(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=tt(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function uV(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(sr(t)){var e=Math.ceil(t);return[e,e]}var r=tt(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function fV(t){return tt(t,function(e){return LD(e)})}function LD(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function cV(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=v1(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=v1(i,e)}}})}var oa=new _o,ED={};function hV(t,e){ED[t]=e}function vV(t){return ED[t]}var dV=1,pV=800,gV=900,mV=1e3,yV=2e3,_V=5e3,PD=1e3,bV=1100,d1=2e3,RD=3e3,wV=4e3,sg=4500,xV=4600,SV=5e3,TV=6e3,OD=7e3,CV={PROCESSOR:{FILTER:mV,SERIES_FILTER:pV,STATISTIC:_V},VISUAL:{LAYOUT:PD,PROGRESSIVE_LAYOUT:bV,GLOBAL:d1,CHART:RD,POST_CHART_LAYOUT:xV,COMPONENT:wV,BRUSH:SV,CHART_ITEM:sg,ARIA:TV,DECAL:OD}},Hr="__flagInMainProcess",lg="__mainProcessVersion",tn="__pendingUpdate",p1="__needsUpdateStatus",BD=/^[a-zA-Z0-9_]+$/,g1="__connectUpdateStatus",ND=0,AV=1,MV=2;function FD(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return zD(this,t,e)}}function $D(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return zD(this,t,e)}}function zD(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),_o.prototype[e].apply(t,r)}var HD=function(t){Ye(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(_o),VD=HD.prototype;VD.on=$D("on"),VD.off=$D("off");var Ul,m1,ug,Mo,fg,y1,_1,hf,vf,GD,WD,b1,UD,cg,qD,KD,Fi,YD,df,XD=function(t){Ye(e,t);function e(r,n,i){var a=t.call(this,new LH)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",l=!1;a[lg]=1,i.ssr&&R3(function(p){var d=vr(p),g=d.dataIndex;if(g!=null){var y=kt();return y.set("series_index",d.seriesIndex),y.set("data_index",g),d.ssrType&&y.set("ssr_type",d.ssrType),y}});var u=a._zr=jC(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ut(i.useDirtyRect,l),useCoarsePointer:ut(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=JI(br(u.flush,u),17),a._updateTheme(n),a._locale=Pz(i.locale||GM),a._coordSysMgr=new U_;var c=a._api=qD(a);function h(p,d){return p.__prio-d.__prio}return Pd(vg,h),Pd(T1,h),a._scheduler=new nD(a,c,T1,vg),a._messageCenter=new HD,a._initEvents(),a.resize=br(a.resize,a),u.animation.on("frame",a._onframe,a),GD(u,a),WD(u,a),O0(a),a}return e.prototype._onframe=function(){if(!this._disposed){YD(this);var r=this._scheduler;if(this[tn]){var n=this[tn].silent;this[Hr]=!0,df(this);try{Ul(this),Mo.update.call(this,null,this[tn].updateParams)}catch(l){throw this[Hr]=!1,this[tn]=null,l}this._zr.flush(),this[Hr]=!1,this[tn]=null,hf.call(this,n),vf.call(this,n)}else if(r.unfinished){var i=dV,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),y1(this,a),r.performVisualTasks(a),cg(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[Hr]){if(this._disposed){this.id;return}var a,o,s;if(mt(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Hr]=!0,df(this),!this._model||n){var l=new x8(this._api),u=this._theme,c=this._model=new j_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},C1);var h={seriesTransition:s,optionChanged:!0};if(i)this[tn]={silent:a,updateParams:h},this[Hr]=!1,this.getZr().wakeUp();else{try{Ul(this),Mo.update.call(this,null,h)}catch(p){throw this[tn]=null,this[Hr]=!1,p}this._ssr||this._zr.flush(),this[tn]=null,this[Hr]=!1,hf.call(this,a),vf.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[Hr]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[tn]&&(a==null&&(a=this[tn].silent),o=this[tn].updateParams,this[tn]=null),this[Hr]=!0,df(this);try{this._updateTheme(r),i.setTheme(this._theme),Ul(this),Mo.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Hr]=!1,s}this[Hr]=!1,hf.call(this,a),vf.call(this,a)}}},e.prototype._updateTheme=function(r){ct(r)&&(r=jD[r]),r&&(r=Vt(r),r&&CI(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tr.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return ne(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;ne(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return ne(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(ZD[i]){var l=s,u=s,c=-s,h=-s,p=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();ne(Ih,function(A,I){if(A.group===i){var L=n?A.getZr().painter.getSvgDom().innerHTML:A.renderToCanvas(Vt(r)),k=A.getDom().getBoundingClientRect();l=a(k.left,l),u=a(k.top,u),c=o(k.right,c),h=o(k.bottom,h),p.push({dom:L,left:k.left,top:k.top})}}),l*=d,u*=d,c*=d,h*=d;var g=c-l,y=h-u,w=Zo.createCanvas(),b=jC(w,{renderer:n?"svg":"canvas"});if(b.resize({width:g,height:y}),n){var S="";return ne(p,function(A){var I=A.left-l,L=A.top-u;S+='<g transform="translate('+I+","+L+')">'+A.dom+"</g>"}),b.painter.getSvgRoot().innerHTML=S,r.connectedBackgroundColor&&b.painter.setBackgroundColor(r.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}else return r.connectedBackgroundColor&&b.add(new zr({shape:{x:0,y:0,width:g,height:y},style:{fill:r.connectedBackgroundColor}})),ne(p,function(A){var I=new ta({style:{x:A.left*d-l,y:A.top*d-u,image:A.dom}});b.add(I)}),b.refreshImmediately(),w.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return fg(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return fg(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return fg(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Ny(i,r);return ne(o,function(s,l){l.indexOf("Models")>=0&&ne(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Ny(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?RH(s,l,n):OH(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;ne(IV,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,c=i==="globalout";if(c?u={}:l&&ng(l,function(y){var w=vr(y);if(w&&w.dataIndex!=null){var b=w.dataModel||s.getSeriesByIndex(w.seriesIndex);return u=b&&b.getDataParams(w.dataIndex,w.dataType,l)||{},!0}else if(w.pptSuiteEventData)return u=We({},w.pptSuiteEventData),!0},!0),u){var h=u.componentType,p=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",p=u.seriesIndex);var d=h&&p!=null&&s.getComponent(h,p),g=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:d,view:g},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;ne(S1,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),NH(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&uA(this.getDom(),M1,"");var n=this,i=n._api,a=n._model;ne(n._componentsViews,function(o){o.dispose(a,i)}),ne(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ih[n.id]},e.prototype.resize=function(r){if(!this[Hr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[tn]&&(a==null&&(a=this[tn].silent),i=!0,this[tn]=null),this[Hr]=!0,df(this);try{i&&Ul(this),Mo.update.call(this,{type:"resize",animation:We({duration:0},r&&r.animation)})}catch(o){throw this[Hr]=!1,o}this[Hr]=!1,hf.call(this,a),vf.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(mt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!A1[r]){var i=A1[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=We({},r);return n.type=x1[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(mt(n)||(n={silent:!!n}),!!hg[r.type]&&this._model){if(this[Hr]){this._pendingActions.push(r);return}var i=n.silent;_1.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tr.browser.weChat&&this._throttledZrFlush(),hf.call(this,i),vf.call(this,i)}},e.prototype.updateLabelLayout=function(){oa.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Ul=function(h){var p=h._scheduler;p.restorePipelines(h._model),p.prepareStageTasks(),m1(h,!0),m1(h,!1),p.plan()},m1=function(h,p){for(var d=h._model,g=h._scheduler,y=p?h._componentsViews:h._chartsViews,w=p?h._componentsMap:h._chartsMap,b=h._zr,S=h._api,A=0;A<y.length;A++)y[A].__alive=!1;p?d.eachComponent(function(k,P){k!=="series"&&I(P)}):d.eachSeries(I);function I(k){var P=k.__requireNewView;k.__requireNewView=!1;var z="_ec_"+k.id+"_"+k.type,F=!P&&w[z];if(!F){var W=za(k.type),G=p?Ao.getClass(W.main,W.sub):qn.getClass(W.sub);F=new G,F.init(d,S),w[z]=F,y.push(F),b.add(F.group)}k.__viewId=F.__id=z,F.__alive=!0,F.__model=k,F.group.__ecComponentInfo={mainType:k.mainType,index:k.componentIndex},!p&&g.prepareView(F,k,d,S)}for(var A=0;A<y.length;){var L=y[A];L.__alive?A++:(!p&&L.renderTask.dispose(),b.remove(L.group),L.dispose(d,S),y.splice(A,1),w[L.__id]===L&&delete w[L.__id],L.__id=L.group.__ecComponentInfo=null)}},ug=function(h,p,d,g,y){var w=h._model;if(w.setUpdatePayload(d),!g){ne([].concat(h._componentsViews).concat(h._chartsViews),L);return}var b={};b[g+"Id"]=d[g+"Id"],b[g+"Index"]=d[g+"Index"],b[g+"Name"]=d[g+"Name"];var S={mainType:g,query:b};y&&(S.subType=y);var A=d.excludeSeriesId,I;A!=null&&(I=kt(),ne(kn(A),function(k){var P=$a(k,null);P!=null&&I.set(P,!0)})),w&&w.eachComponent(S,function(k){var P=I&&I.get(k.id)!=null;if(!P)if(aM(d))if(k instanceof di)d.type===Pl&&!d.notBlur&&!k.get(["emphasis","disabled"])&&g$(k,d,h._api);else{var z=c_(k.mainType,k.componentIndex,d.name,h._api),F=z.focusSelf,W=z.dispatchers;d.type===Pl&&F&&!d.notBlur&&f_(k.mainType,k.componentIndex,h._api),W&&ne(W,function(G){d.type===Pl?xp(G):Sp(G)})}else d_(d)&&k instanceof di&&(_$(k,d,h._api),rM(k),Fi(h))},h),w&&w.eachComponent(S,function(k){var P=I&&I.get(k.id)!=null;P||L(h[g==="series"?"_chartsMap":"_componentsMap"][k.__viewId])},h);function L(k){k&&k.__alive&&k[p]&&k[p](k.__model,w,h._api,d)}},Mo={prepareAndUpdate:function(h){Ul(this),Mo.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,p){var d=this._model,g=this._api,y=this._zr,w=this._coordSysMgr,b=this._scheduler;if(d){d.setUpdatePayload(h),b.restoreData(d,h),b.performSeriesTasks(d),w.create(d,g),b.performDataProcessorTasks(d,h),y1(this,d),w.update(d,g),n(d),b.performVisualTasks(d,h);var S=d.get("backgroundColor")||"transparent";y.setBackgroundColor(S);var A=d.get("darkMode");A!=null&&A!=="auto"&&y.setDarkMode(A),b1(this,d,g,h,p),oa.trigger("afterupdate",d,g)}},updateTransform:function(h){var p=this,d=this._model,g=this._api;if(d){d.setUpdatePayload(h);var y=[];d.eachComponent(function(b,S){if(b!=="series"){var A=p.getViewOfComponentModel(S);if(A&&A.__alive)if(A.updateTransform){var I=A.updateTransform(S,d,g,h);I&&I.update&&y.push(A)}else y.push(A)}});var w=kt();d.eachSeries(function(b){var S=p._chartsMap[b.__viewId];if(S.updateTransform){var A=S.updateTransform(b,d,g,h);A&&A.update&&w.set(b.uid,1)}else w.set(b.uid,1)}),n(d),this._scheduler.performVisualTasks(d,h,{setDirty:!0,dirtyMap:w}),cg(this,d,g,h,{},w),oa.trigger("afterupdate",d,g)}},updateView:function(h){var p=this._model;p&&(p.setUpdatePayload(h),qn.markUpdateMethod(h,"updateView"),n(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0}),b1(this,p,this._api,h,{}),oa.trigger("afterupdate",p,this._api))},updateVisual:function(h){var p=this,d=this._model;d&&(d.setUpdatePayload(h),d.eachSeries(function(g){g.getData().clearAllVisual()}),qn.markUpdateMethod(h,"updateVisual"),n(d),this._scheduler.performVisualTasks(d,h,{visualType:"visual",setDirty:!0}),d.eachComponent(function(g,y){if(g!=="series"){var w=p.getViewOfComponentModel(y);w&&w.__alive&&w.updateVisual(y,d,p._api,h)}}),d.eachSeries(function(g){var y=p._chartsMap[g.__viewId];y.updateVisual(g,d,p._api,h)}),oa.trigger("afterupdate",d,this._api))},updateLayout:function(h){Mo.update.call(this,h)}};function r(h,p,d,g,y){if(h._disposed){h.id;return}for(var w=h._model,b=h._coordSysMgr.getCoordinateSystems(),S,A=Ny(w,d),I=0;I<b.length;I++){var L=b[I];if(L[p]&&(S=L[p](w,A,g,y))!=null)return S}}fg=r,y1=function(h,p){var d=h._chartsMap,g=h._scheduler;p.eachSeries(function(y){g.updateStreamModes(y,d[y.__viewId])})},_1=function(h,p){var d=this,g=this.getModel(),y=h.type,w=h.escapeConnect,b=hg[y],S=(b.update||"update").split(":"),A=S.pop(),I=S[0]!=null&&za(S[0]);this[Hr]=!0,df(this);var L=[h],k=!1;h.batch&&(k=!0,L=tt(h.batch,function(ye){return ye=Wt(We({},ye),h),ye.batch=null,ye}));var P=[],z,F=[],W=b.nonRefinedEventType,G=d_(h),K=aM(h);if(K&&tM(this._api),ne(L,function(ye){var be=b.action(ye,g,d._api);if(b.refineEvent?F.push(be):z=be,z=z||We({},ye),z.type=W,P.push(z),K){var ue=lA(h),Me=ue.queryOptionMap,ke=ue.mainTypeSpecified,ce=ke?Me.keys()[0]:"series";ug(d,A,ye,ce),Fi(d)}else G?(ug(d,A,ye,"series"),Fi(d)):I&&ug(d,A,ye,I.main,I.sub)}),A!=="none"&&!K&&!G&&!I)try{this[tn]?(Ul(this),Mo.update.call(this,h),this[tn]=null):Mo[A].call(this,h)}catch(ye){throw this[Hr]=!1,ye}if(k?z={type:W,escapeConnect:w,batch:P}:z=P[0],this[Hr]=!1,!p){var q=void 0;if(b.refineEvent){var ie=b.refineEvent(F,h,g,this._api).eventContent;Ea(mt(ie)),q=Wt({type:b.refinedEventType},ie),q.fromAction=h.type,q.fromActionPayload=h,q.escapeConnect=!0}var ve=this._messageCenter;ve.trigger(z.type,z),q&&ve.trigger(q.type,q)}},hf=function(h){for(var p=this._pendingActions;p.length;){var d=p.shift();_1.call(this,d,h)}},vf=function(h){!h&&this.trigger("updated")},GD=function(h,p){h.on("rendered",function(d){p.trigger("rendered",d),h.animation.isFinished()&&!p[tn]&&!p._scheduler.unfinished&&!p._pendingActions.length&&p.trigger("finished")})},WD=function(h,p){h.on("mouseover",function(d){var g=d.target,y=ng(g,v_);y&&(m$(y,d,p._api),Fi(p))}).on("mouseout",function(d){var g=d.target,y=ng(g,v_);y&&(y$(y,d,p._api),Fi(p))}).on("click",function(d){var g=d.target,y=ng(g,function(S){return vr(S).dataIndex!=null},!0);if(y){var w=y.selected?"unselect":"select",b=vr(y);p._api.dispatchAction({type:w,dataType:b.dataType,dataIndexInside:b.dataIndex,seriesIndex:b.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(p){p.clearColorPalette()})}function i(h){var p=[],d=[],g=!1;if(h.eachComponent(function(S,A){var I=A.get("zlevel")||0,L=A.get("z")||0,k=A.getZLevelKey();g=g||!!k,(S==="series"?d:p).push({zlevel:I,z:L,idx:A.componentIndex,type:S,key:k})}),g){var y=p.concat(d),w,b;Pd(y,function(S,A){return S.zlevel===A.zlevel?S.z-A.z:S.zlevel-A.zlevel}),ne(y,function(S){var A=h.getComponent(S.type,S.idx),I=S.zlevel,L=S.key;w!=null&&(I=Math.max(w,I)),L?(I===w&&L!==b&&I++,b=L):b&&(I===w&&I++,b=""),w=I,A.setZLevel(I)})}}b1=function(h,p,d,g,y){i(p),UD(h,p,d,g,y),ne(h._chartsViews,function(w){w.__alive=!1}),cg(h,p,d,g,y),ne(h._chartsViews,function(w){w.__alive||w.remove(p,d)})},UD=function(h,p,d,g,y,w){ne(w||h._componentsViews,function(b){var S=b.__model;u(S,b),b.render(S,p,d,g),l(S,b),c(S,b)})},cg=function(h,p,d,g,y,w){var b=h._scheduler;y=We(y||{},{updatedSeries:p.getSeries()}),oa.trigger("series:beforeupdate",p,d,y);var S=!1;p.eachSeries(function(A){var I=h._chartsMap[A.__viewId];I.__alive=!0;var L=I.renderTask;b.updatePayload(L,g),u(A,I),w&&w.get(A.uid)&&L.dirty(),L.perform(b.getPerformArgs(L))&&(S=!0),I.group.silent=!!A.get("silent"),s(A,I),rM(A)}),b.unfinished=S||b.unfinished,oa.trigger("series:layoutlabels",p,d,y),oa.trigger("series:transition",p,d,y),p.eachSeries(function(A){var I=h._chartsMap[A.__viewId];l(A,I),c(A,I)}),o(h,p),oa.trigger("series:afterupdate",p,d,y)},Fi=function(h){h[p1]=!0,h.getZr().wakeUp()},df=function(h){h[lg]=(h[lg]+1)%1e3},YD=function(h){h[p1]&&(h.getZr().storage.traverse(function(p){oh(p)||a(p)}),h[p1]=!1)};function a(h){for(var p=[],d=h.currentStates,g=0;g<d.length;g++){var y=d[g];y==="emphasis"||y==="blur"||y==="select"||p.push(y)}h.selected&&h.states.select&&p.push("select"),h.hoverState===gp&&h.states.emphasis?p.push("emphasis"):h.hoverState===pp&&h.states.blur&&p.push("blur"),h.useStates(p)}function o(h,p){var d=h._zr,g=d.storage,y=0;g.traverse(function(w){w.isGroup||y++}),y>p.get("hoverLayerThreshold")&&!tr.node&&!tr.worker&&p.eachSeries(function(w){if(!w.preventUsingHoverLayer){var b=h._chartsMap[w.__viewId];b.__alive&&b.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function s(h,p){var d=h.get("blendMode")||null;p.eachRendered(function(g){g.isGroup||(g.style.blend=d)})}function l(h,p){if(!h.preventAutoZ){var d=LM(h);p.eachRendered(function(g){return EM(g,d.z,d.zlevel),!0})}}function u(h,p){p.eachRendered(function(d){if(!oh(d)){var g=d.getTextContent(),y=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(h,p){var d=h.getModel("stateAnimation"),g=h.isAnimationEnabled(),y=d.get("duration"),w=y>0?{duration:y,delay:d.get("delay"),easing:d.get("easing")}:null;p.eachRendered(function(b){if(b.states&&b.states.emphasis){if(oh(b))return;if(b instanceof Kt&&C$(b),b.__dirty){var S=b.prevStates;S&&b.useStates(S)}if(g){b.stateTransition=w;var A=b.getTextContent(),I=b.getTextGuideLine();A&&(A.stateTransition=w),I&&(I.stateTransition=w)}b.__dirty&&a(b)}})}qD=function(h){return new(function(p){Ye(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(g){for(;g;){var y=g.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);g=g.parent}},d.prototype.enterEmphasis=function(g,y){xp(g,y),Fi(h)},d.prototype.leaveEmphasis=function(g,y){Sp(g,y),Fi(h)},d.prototype.enterBlur=function(g){p$(g),Fi(h)},d.prototype.leaveBlur=function(g){ZA(g),Fi(h)},d.prototype.enterSelect=function(g){JA(g),Fi(h)},d.prototype.leaveSelect=function(g){QA(g),Fi(h)},d.prototype.getModel=function(){return h.getModel()},d.prototype.getViewOfComponentModel=function(g){return h.getViewOfComponentModel(g)},d.prototype.getViewOfSeriesModel=function(g){return h.getViewOfSeriesModel(g)},d.prototype.getMainProcessVersion=function(){return h[lg]},d}(yI))(h)},KD=function(h){function p(d,g){for(var y=0;y<d.length;y++){var w=d[y];w[g1]=g}}ne(x1,function(d,g){h._messageCenter.on(g,function(y){if(ZD[h.group]&&h[g1]!==ND){if(y&&y.escapeConnect)return;var w=h.makeActionFromEvent(y),b=[];ne(Ih,function(S){S!==h&&S.group===h.group&&b.push(S)}),p(b,ND),ne(b,function(S){S[g1]!==AV&&S.dispatchAction(w)}),p(b,MV)}})})}}(),e}(_o),w1=XD.prototype;w1.on=FD("on"),w1.off=FD("off"),w1.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var IV=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function DJ(t){}var hg={},x1={},S1={},T1=[],C1=[],vg=[],jD={},A1={},Ih={},ZD={},DV=+new Date-0,M1="_echarts_instance_";function kV(t,e,r){var n=!(r&&r.ssr);if(n){var i=LV(t);if(i)return i}var a=new XD(t,e,r);return a.id="ec_"+DV++,Ih[a.id]=a,n&&uA(t,M1,a.id),KD(a),oa.trigger("afterinit",a),a}function LV(t){return Ih[s4(t,M1)]}function JD(t,e){jD[t]=e}function QD(t){Zt(C1,t)<0&&C1.push(t)}function e2(t,e){D1(T1,t,e,yV)}function EV(t){I1("afterinit",t)}function PV(t){I1("afterupdate",t)}function I1(t,e){oa.on(t,e)}function pf(t,e,r){var n,i,a,o,s;St(e)&&(r=e,e=""),mt(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(c){return c.toLowerCase()}i=l(i||n);var u=a?l(n):i;hg[n]||(Ea(BD.test(n)&&BD.test(i)),a&&Ea(i!==n),hg[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},S1[i]=1,a&&s&&(S1[u]=1),x1[u]=n)}function RV(t,e){U_.register(t,e)}function OV(t,e){D1(vg,t,e,PD,"layout")}function ql(t,e){D1(vg,t,e,RD,"visual")}var t2=[];function D1(t,e,r,n,i){if((St(e)||mt(e))&&(r=e,e=n),!(Zt(t2,r)>=0)){t2.push(r);var a=nD.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function r2(t,e){A1[t]=e}function BV(t,e,r){var n=vV("registerMap");n&&n(t,e,r)}var NV=Z8;ql(d1,mH),ql(sg,yH),ql(sg,_H),ql(d1,EH),ql(sg,PH),ql(OD,cV),QD(CI),e2(gV,R8),r2("default",bH),pf({type:Pl,event:Pl,update:Pl},si),pf({type:yp,event:yp,update:yp},si),pf({type:_p,event:o_,update:_p,action:si,refineEvent:k1,publishNonRefinedEvent:!0}),pf({type:a_,event:o_,update:a_,action:si,refineEvent:k1,publishNonRefinedEvent:!0}),pf({type:bp,event:o_,update:bp,action:si,refineEvent:k1,publishNonRefinedEvent:!0});function k1(t,e,r,n){return{eventContent:{selected:b$(r),isFromClick:e.isFromClick||!1}}}JD("default",{}),JD("dark",lD);function Dh(t){return t==null?0:t.length||1}function n2(t){return t}var FV=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||n2,this._newKeyGetter=i||n2,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=Dh(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],h=Dh(u),p=Dh(c);if(h>1&&p===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(h===1&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(h===1&&p===1)this._update&&this._update(c,u),i[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var d=0;d<h;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=Dh(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Dh(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t}(),$V=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function zV(t,e){var r={},n=r.encode={},i=kt(),a=[],o=[],s={};ne(t.dimensions,function(p){var d=t.getDimensionInfo(p),g=d.coordDim;if(g){var y=d.coordDimIndex;L1(n,g)[y]=p,d.isExtraCoord||(i.set(g,1),VV(d.type)&&(a[0]=p),L1(s,g)[y]=t.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(p)}sI.each(function(w,b){var S=L1(n,b),A=d.otherDims[b];A!=null&&A!==!1&&(S[A]=d.name)})});var l=[],u={};i.each(function(p,d){var g=n[d];u[d]=g[0],l=l.concat(g)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=tt(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new $V(s,e),r}function L1(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function HV(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function VV(t){return!(t==="ordinal"||t==="time")}var dg=function(){function t(e){this.otherDims={},e!=null&&We(this,e)}return t}(),GV=Rr(),WV={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},i2=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=s2(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return ut(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=kI(this.source),n=!l2(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=r?h.name:null,u=h.type,c=h.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=WV[u]||"f",c&&(i+=c.uid),i+="$"}var d=this.source,g=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:a,hash:g}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function a2(t){return t instanceof i2}function o2(t){for(var e=kt(),r=0;r<(t||[]).length;r++){var n=t[r],i=mt(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function s2(t){var e=GV(t);return e.dimNameMap||(e.dimNameMap=o2(t.dimensionsDefine))}function l2(t){return t>30}var kh=mt,ys=tt,UV=typeof Int32Array>"u"?Array:Int32Array,qV="e\0\0",u2=-1,KV=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],YV=["_approximateExtent"],f2,pg,Lh,Eh,E1,Ph,P1,c2=function(){function t(e,r){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;a2(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var h=n[c],p=ct(h)?new dg({name:h}):h instanceof dg?h:new dg(h),d=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0);var g=p.otherDims=p.otherDims||{};o.push(d),a[d]=p,u[d]!=null&&(l=!0),p.createInvertedIndices&&(s[d]=[]);var y=c;sr(p.storeDimIndex)&&(y=p.storeDimIndex),g.itemName===0&&(this._nameDimIdx=y),g.itemId===0&&(this._idDimIdx=y),i&&(p.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var w=this._dimIdxToName=kt();ne(o,function(b){w.set(a[b].storeDimIndex,b)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(sr(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof a1&&(a=e),!a){var o=this.dimensions,s=Q_(e)||zn(e)?new PI(e,o.length):e;a=new a1;var l=ys(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=zV(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&P1(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ps&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===vi;if(l&&!i.pure)for(var u=[],c=e;c<r;c++){var h=i.getItem(c,u);if(!this.hasItemOption&&j3(h)&&(this.hasItemOption=!0),h){var p=h.name;a[c]==null&&p!=null&&(a[c]=$a(p,null));var d=h.id;o[c]==null&&d!=null&&(o[c]=$a(d,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<r;c++)P1(this,c);f2(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){kh(e)?We(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Lh(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return pg(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return st(e)?i.getValues(ys(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?u2:i},t.prototype.each=function(e,r,n){St(e)&&(n=r,r=e,e=[]);var i=n||this,a=ys(Eh(e),this._getStoreDimIndex,this);this._store.each(a,i?br(r,i):r)},t.prototype.filterSelf=function(e,r,n){St(e)&&(n=r,r=e,e=[]);var i=n||this,a=ys(Eh(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?br(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Ut(e);return ne(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){St(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=ys(Eh(e),this._getStoreDimIndex,this),s=Ph(this);return s._store=this._store.map(o,a?br(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=ys(Eh(e),this._getStoreDimIndex,this);this._store.modify(o,a?br(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=Ph(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Ph(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Ph(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Kr(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new FV(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return pg(e,n)},function(n){return pg(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},kh(e)?We(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),st(a)?a=a.slice():kh(a)&&(a=We({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,kh(r)?We(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){kh(e)?We(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?We(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;a$(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){ne(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ys(this.dimensions,this._getDimInfo,this),this.hostModel)),E1(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];St(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(P0(arguments)))})},t.internalField=function(){f2=function(e){var r=e._invertedIndicesMap;ne(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new UV(o.categories.length);for(var l=0;l<n.length;l++)n[l]=u2;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Lh=function(e,r,n){return $a(e._getCategory(r,n),null)},pg=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=Lh(e,e._idDimIdx,r)),n==null&&(n=qV+r),n},Eh=function(e){return st(e)||(e=e!=null?[e]:[]),e},Ph=function(e){var r=new t(e._schema?e._schema:ys(e.dimensions,e._getDimInfo,e),e.hostModel);return E1(r,e),r},E1=function(e,r){ne(KV.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,ne(YV,function(n){e[n]=Vt(r[n])}),e._calculationInfo=We({},r._calculationInfo)},P1=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Lh(e,a,r)),l==null&&o!=null&&(i[r]=l=Lh(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}}(),t}();function h2(t,e){Q_(t)||(t=AI(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=kt(),a=[],o=jV(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&l2(o),l=n===t.dimensionsDefine,u=l?s2(t):o2(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var h=kt(c),p=new HI(o),d=0;d<p.length;d++)p[d]=-1;function g(F){var W=p[F];if(W<0){var G=n[F],K=mt(G)?G:{name:G},q=new dg,ie=K.name;ie!=null&&u.get(ie)!=null&&(q.name=q.displayName=ie),K.type!=null&&(q.type=K.type),K.displayName!=null&&(q.displayName=K.displayName);var ve=a.length;return p[F]=ve,q.storeDimIndex=F,a.push(q),q}return a[W]}if(!s)for(var d=0;d<o;d++)g(d);h.each(function(F,W){var G=kn(F).slice();if(G.length===1&&!ct(G[0])&&G[0]<0){h.set(W,!1);return}var K=h.set(W,[]);ne(G,function(q,ie){var ve=ct(q)?u.get(q):q;ve!=null&&ve<o&&(K[ie]=ve,w(g(ve),W,ie))})});var y=0;ne(r,function(F){var W,G,K,q;if(ct(F))W=F,q={};else{q=F,W=q.name;var ie=q.ordinalMeta;q.ordinalMeta=null,q=We({},q),q.ordinalMeta=ie,G=q.dimsDef,K=q.otherDims,q.name=q.coordDim=q.coordDimIndex=q.dimsDef=q.otherDims=null}var ve=h.get(W);if(ve!==!1){if(ve=kn(ve),!ve.length)for(var ye=0;ye<(G&&G.length||1);ye++){for(;y<o&&g(y).coordDim!=null;)y++;y<o&&ve.push(y++)}ne(ve,function(be,ue){var Me=g(be);if(l&&q.type!=null&&(Me.type=q.type),w(Wt(Me,q),W,ue),Me.name==null&&G){var ke=G[ue];!mt(ke)&&(ke={name:ke}),Me.name=Me.displayName=ke.name,Me.defaultTooltip=ke.defaultTooltip}K&&Wt(Me.otherDims,K)})}});function w(F,W,G){sI.get(W)!=null?F.otherDims[W]=G:(F.coordDim=W,F.coordDimIndex=G,i.set(W,!0))}var b=e.generateCoord,S=e.generateCoordCount,A=S!=null;S=b?S||1:0;var I=b||"value";function L(F){F.name==null&&(F.name=F.coordDim)}if(s)ne(a,function(F){L(F)}),a.sort(function(F,W){return F.storeDimIndex-W.storeDimIndex});else for(var k=0;k<o;k++){var P=g(k),z=P.coordDim;z==null&&(P.coordDim=ZV(I,i,A),P.coordDimIndex=0,(!b||S<=0)&&(P.isExtraCoord=!0),S--),L(P),P.type==null&&(fI(t,k)===ln.Must||P.isExtraCoord&&(P.otherDims.itemName!=null||P.otherDims.seriesName!=null))&&(P.type="ordinal")}return XV(a),new i2({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function XV(t){for(var e=kt(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function jV(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return ne(e,function(a){var o;mt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function ZV(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var JV=function(){function t(e){this.coordSysDims=[],this.axisMap=kt(),this.categoryAxisMap=kt(),this.coordSysName=e}return t}();function QV(t){var e=t.get("coordinateSystem"),r=new JV(e),n=eG[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var eG={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",ki).models[0],a=t.getReferringComponents("yAxis",ki).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),gf(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),gf(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",ki).models[0];e.coordSysDims=["single"],r.set("single",i),gf(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",ki).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),gf(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),gf(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();ne(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),gf(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",ki).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function gf(t){return t.get("type")==="category"}function tG(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;rG(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,h,p;if(ne(a,function(S,A){ct(S)&&(a[A]=S={name:S}),l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!i||i===S.coordDim)&&(c=S))}),c&&!n&&!u&&(n=!0),c){h="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,g=c.type,y=0;ne(a,function(S){S.coordDim===d&&y++});var w={name:h,coordDim:d,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},b={name:p,coordDim:p,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(w.storeDimIndex=s.ensureCalculationDimension(p,g),b.storeDimIndex=s.ensureCalculationDimension(h,g)),o.appendCalculationDimension(w),o.appendCalculationDimension(b)):(a.push(w),a.push(b))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:p,stackResultDimension:h}}function rG(t){return!a2(t.schema)}function mf(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function nG(t,e){return mf(t,e)?t.getCalculationInfo("stackResultDimension"):e}function iG(t,e){var r=t.get("coordinateSystem"),n=U_.get(r),i;return e&&e.coordSysDims&&(i=tt(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=HV(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function aG(t,e,r){var n,i;return r&&ne(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function gg(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===vi;var o=QV(e),s=iG(e,o),l=r.useEncodeDefaulter,u=St(l)?l:l?oi(u8,s,e):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=h2(i,c),p=aG(h.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(h),g=tG(e,{schema:h,store:d}),y=new c2(h,e);y.setCalculationInfo(g);var w=p!=null&&oG(i)?function(b,S,A,I){return I===p?A:this.defaultDimValueGetter(b,S,A,I)}:null;return y.hasItemOption=!1,y.initData(a?i:d,null,w),y}function oG(t){if(t.sourceFormat===vi){var e=sG(t.data||[]);return!st(Kc(e))}}function sG(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}function R1(t){return t.type==="interval"||t.type==="log"}function lG(t,e,r,n,i){var a={},o=a.interval=eA(e/r);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=Rh(o),l=a.niceTickExtent=[sn(Math.ceil(t[0]/o)*o,s),sn(Math.floor(t[1]/o)*o,s)];return uG(l,t),a}function O1(t){var e=Math.pow(10,Ry(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,sn(r*e)}function Rh(t){return wo(t)+2}function v2(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function uG(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),v2(t,0,e),v2(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function B1(t,e){return t>=e[0]&&t<=e[1]}var fG=function(){function t(){this.normalize=d2,this.scale=p2}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=br(e.normalize,e),this.scale=br(e.scale,e)):(this.normalize=d2,this.scale=p2)},t}();function d2(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function p2(t,e){return t*(e[1]-e[0])+e[0]}function N1(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var _s=function(){function t(e){this._calculator=new fG,this._setting=e||{},this._extent=[1/0,-1/0];var r=Un();r&&(this._brkCtx=r.createScaleBreakContext(),this._brkCtx.update(this._extent))}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){var r=Un();r&&this._innerSetBreak(r.parseAxisBreakOption(e,br(this.parse,this)))},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();sp(_s);var cG=0,F1=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++cG,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&tt(n,hG);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!ct(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=kt(this.categories))},t}();function hG(t){return mt(t)&&t.value!=null?t.value:t+""}var g2=function(t){Ye(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new F1({})),st(i)&&(i=new F1({categories:tt(i,function(a){return mt(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:ct(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return B1(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(_s);_s.registerClass(g2);var bs=sn,ws=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.contain=function(r){return B1(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Rh(r)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=Un(),l=[];if(!n)return l;if(r.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;i[0]<a[0]&&(r.expandToNicedExtent?l.push({value:bs(a[0]-n,o)}):l.push({value:i[0]}));for(var c=function(g,y){return Math.round((y-g)/n)},h=a[0];h<=a[1];){if(l.push({value:h}),h=bs(h+n,o),this._brkCtx){var p=this._brkCtx.calcNiceTickMultiple(h,c);p>=0&&(h=bs(h+p*n,o))}if(l.length>0&&h===l[l.length-1].value)break;if(l.length>u)return[]}var d=l.length?l[l.length-1].value:a[1];return i[1]>d&&(r.expandToNicedExtent?l.push({value:bs(d+n,o)}):l.push({value:i[1]})),s&&s.pruneTicksByBreak(r.pruneByBreak,l,this._brkCtx.breaks,function(g){return g.value},this._interval,this._extent),r.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,c=[],h=s.value-l.value,p=h/r,d=Rh(p);u<r-1;){var g=bs(l.value+(u+1)*p,d);g>a[0]&&g<a[1]&&c.push(g),u++}var y=Un();y&&y.pruneTicksByBreak("auto",c,this._getNonTransBreaks(),function(w){return w},this._interval,a),i.push(c)}}return i},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=wo(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=bs(r.value,i,!0);return qz(a)},e.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=lG(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=bs(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=bs(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(_s);_s.registerClass(ws);var m2=typeof Float32Array<"u",vG=m2?Float32Array:Array;function Io(t){return st(t)?m2?new Float32Array(t):t:new vG(t)}var dG="__ec_stack_";function y2(t){return t.get("stack")||dG+t.seriesIndex}function $1(t){return t.dim+t.index}function _2(t,e){var r=[];return e.eachSeriesByType(t,function(n){w2(n)&&r.push(n)}),r}function pG(t){var e={};ne(t,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),p=c.dim+"_"+c.index,d=h.getDimensionIndex(h.mapDimension(c.dim)),g=h.getStore(),y=0,w=g.count();y<w;++y){var b=g.get(d,y);e[p]?e[p].push(b):e[p]=[b]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function b2(t){var e=pG(t),r=[];return ne(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],c=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),p=Math.abs(h[1]-h[0]);s=u?c/p*u:c}else{var d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var g=hr(n.get("barWidth"),s),y=hr(n.get("barMaxWidth"),s),w=hr(n.get("barMinWidth")||(x2(n)?.5:1),s),b=n.get("barGap"),S=n.get("barCategoryGap"),A=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:g,barMaxWidth:y,barMinWidth:w,barGap:b,barCategoryGap:S,defaultBarGap:A,axisKey:$1(a),stackId:y2(n)})}),gG(r)}function gG(t){var e={};ne(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var p=n.barMinWidth;p&&(l[u].minWidth=p);var d=n.barGap;d!=null&&(s.gap=d);var g=n.barCategoryGap;g!=null&&(s.categoryGap=g)});var r={};return ne(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ut(a).length;s=Math.max(35-l*4,15)+"%"}var u=hr(s,o),c=hr(n.gap,1),h=n.remainedWidth,p=n.autoWidthCount,d=(h-u)/(p+(p-1)*c);d=Math.max(d,0),ne(a,function(b){var S=b.maxWidth,A=b.minWidth;if(b.width){var I=b.width;S&&(I=Math.min(I,S)),A&&(I=Math.max(I,A)),b.width=I,h-=I+c*I,p--}else{var I=d;S&&S<I&&(I=Math.min(S,h)),A&&A>I&&(I=A),I!==d&&(b.width=I,h-=I+c*I,p--)}}),d=(h-u)/(p+(p-1)*c),d=Math.max(d,0);var g=0,y;ne(a,function(b,S){b.width||(b.width=d),y=b,g+=b.width*(1+c)}),y&&(g-=y.width*c);var w=-g/2;ne(a,function(b,S){r[i][S]=r[i][S]||{bandWidth:o,offset:w,width:b.width},w+=b.width*(1+c)})}),r}function mG(t,e,r){if(t&&e){var n=t[$1(e)];return n}}function yG(t,e){var r=_2(t,e),n=b2(r);ne(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=y2(i),u=n[$1(s)][l],c=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function _G(t){return{seriesType:t,plan:s1(),reset:function(e){if(w2(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),h=mf(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),d=bG(i,a),g=x2(e),y=e.get("barMinHeight")||0,w=c&&r.getDimensionIndex(c),b=r.getLayout("size"),S=r.getLayout("offset");return{progress:function(A,I){for(var L=A.count,k=g&&Io(L*3),P=g&&l&&Io(L*3),z=g&&Io(L),F=n.master.getRect(),W=p?F.width:F.height,G,K=I.getStore(),q=0;(G=A.next())!=null;){var ie=K.get(h?w:o,G),ve=K.get(s,G),ye=d,be=void 0;h&&(be=+ie-K.get(o,G));var ue=void 0,Me=void 0,ke=void 0,ce=void 0;if(p){var fe=n.dataToPoint([ie,ve]);if(h){var Pe=n.dataToPoint([be,ve]);ye=Pe[0]}ue=ye,Me=fe[1]+S,ke=fe[0]-ye,ce=b,Math.abs(ke)<y&&(ke=(ke<0?-1:1)*y)}else{var fe=n.dataToPoint([ve,ie]);if(h){var Pe=n.dataToPoint([ve,be]);ye=Pe[1]}ue=fe[0]+S,Me=ye,ke=b,ce=fe[1]-ye,Math.abs(ce)<y&&(ce=(ce<=0?-1:1)*y)}g?(k[q]=ue,k[q+1]=Me,k[q+2]=p?ke:ce,P&&(P[q]=p?F.x:ue,P[q+1]=p?Me:F.y,P[q+2]=W),z[G]=G):I.setItemLayout(G,{x:ue,y:Me,width:ke,height:ce}),q+=3}g&&I.setLayout({largePoints:k,largeDataIndices:z,largeBackgroundPoints:P,valueAxisHorizontal:p})}}}}}}function w2(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function x2(t){return t.pipelineContext&&t.pipelineContext.large}function bG(t,e){var r=e.model.get("startValue");return r||(r=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?r>0?r:1:r))}var wG=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},S2=function(t){Ye(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return KM(r.value,qM[Gz(vh(this._minLevelUnit))]||qM.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Wz(r,n,i,o,a)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=Un(),o=[];if(!n)return o;var s=this.getSetting("useUTC");if(a&&r.breakTicks==="only_break")return Un().addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var l=af(i[1],s);o.push({value:i[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var u=IG(this._minLevelUnit,this._approxInterval,s,i,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(u);var c=af(i[1],s);o.push({value:i[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var h=this.getSetting("useUTC"),p=hi.length-1,d=0;return ne(o,function(g){p=Math.min(p,Zt(hi,g.time.upperTimeUnit)),d=Math.max(d,g.time.level)}),a&&Un().pruneTicksByBreak(r.pruneByBreak,o,this._brkCtx.breaks,function(g){return g.value},this._approxInterval,this._extent),a&&r.breakTicks!=="none"&&Un().addBreaksToTicks(o,this._brkCtx.breaks,this._extent,function(g){for(var y=Math.max(Zt(hi,af(g.vmin,h)),Zt(hi,af(g.vmax,h))),w=0,b=0;b<hi.length;b++)if(!T2(hi[b],g.vmin,g.vmax,h)){w=b;break}var S=Math.min(w,p),A=Math.max(S,y);return{level:d,lowerTimeUnit:hi[A],upperTimeUnit:hi[S]}}),o},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=Oi,n[1]+=Oi),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Oi}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=mg.length,s=Math.min(wG(mg,this._approxInterval,0,o),o-1);this._interval=mg[s][1],this._intervalPrecision=Rh(this._interval),this._minLevelUnit=mg[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return sr(r)?r:+qc(r)},e.prototype.contain=function(r){return B1(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e}(ws),mg=[["second",P_],["minute",R_],["hour",hh],["quarter-day",hh*6],["half-day",hh*12],["day",Oi*1.2],["half-week",Oi*3.5],["week",Oi*7],["month",Oi*31],["quarter",Oi*95],["half-year",UM/2],["year",UM]];function T2(t,e,r,n){return O_(new Date(e),t,n).getTime()===O_(new Date(r),t,n).getTime()}function xG(t,e){return t/=Oi,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function SG(t){var e=30*Oi;return t/=e,t>6?6:t>3?3:t>2?2:1}function TG(t){return t/=hh,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function C2(t,e){return t/=e?R_:P_,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function CG(t){return eA(t)}function AG(t,e,r){var n=Math.max(0,Zt(hi,e)-1);return O_(new Date(t),hi[n],r).getTime()}function MG(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function IG(t,e,r,n,i,a){var o=1e4,s=$z,l=0;function u(q,ie,ve,ye,be,ue,Me){for(var ke=MG(be,q),ce=ie,fe=new Date(ce);ce<ve&&ce<=n[1]&&(Me.push({value:ce}),!(l++>o));)if(fe[be](fe[ye]()+q),ce=fe.getTime(),a){var Pe=a.calcNiceTickMultiple(ce,ke);Pe>0&&(fe[be](fe[ye]()+Pe*q),ce=fe.getTime())}Me.push({value:ce,notAdd:!0})}function c(q,ie,ve){var ye=[],be=!ie.length;if(!T2(vh(q),n[0],n[1],r)){be&&(ie=[{value:AG(n[0],q,r)},{value:n[1]}]);for(var ue=0;ue<ie.length-1;ue++){var Me=ie[ue].value,ke=ie[ue+1].value;if(Me!==ke){var ce=void 0,fe=void 0,Pe=void 0,Qe=!1;switch(q){case"year":ce=Math.max(1,Math.round(e/Oi/365)),fe=YM(r),Pe=Uz(r);break;case"half-year":case"quarter":case"month":ce=SG(e),fe=B_(r),Pe=XM(r);break;case"week":case"half-week":case"day":ce=xG(e),fe=N_(r),Pe=jM(r),Qe=!0;break;case"half-day":case"quarter-day":case"hour":ce=TG(e),fe=F_(r),Pe=ZM(r);break;case"minute":ce=C2(e,!0),fe=$_(r),Pe=JM(r);break;case"second":ce=C2(e,!1),fe=z_(r),Pe=QM(r);break;case"millisecond":ce=CG(e),fe=H_(r),Pe=eI(r);break}ke>=n[0]&&Me<=n[1]&&u(ce,Me,ke,fe,Pe,Qe,ye),q==="year"&&ve.length>1&&ue===0&&ve.unshift({value:ve[0].value-ce})}}for(var ue=0;ue<ye.length;ue++)ve.push(ye[ue])}}for(var h=[],p=[],d=0,g=0,y=0;y<s.length;++y){var w=vh(s[y]);if(Vz(s[y])){c(s[y],h[h.length-1]||[],p);var b=s[y+1]?vh(s[y+1]):null;if(w!==b){if(p.length){g=d,p.sort(function(q,ie){return q.value-ie.value});for(var S=[],A=0;A<p.length;++A){var I=p[A].value;(A===0||p[A-1].value!==I)&&(S.push(p[A]),I>=n[0]&&I<=n[1]&&d++)}var L=i/e;if(d>L*1.5&&g>L/1.5||(h.push(S),d>L||t===s[y]))break}p=[]}}}for(var k=qr(tt(h,function(q){return qr(q,function(ie){return ie.value>=n[0]&&ie.value<=n[1]&&!ie.notAdd})}),function(q){return q.length>0}),P=[],z=k.length-1,y=0;y<k.length;++y)for(var F=k[y],W=0;W<F.length;++W){var G=af(F[W].value,r);P.push({value:F[W].value,time:{level:z-y,upperTimeUnit:G,lowerTimeUnit:G}})}P.sort(function(q,ie){return q.value-ie.value});for(var K=[],y=0;y<P.length;++y)(y===0||P[y].value!==P[y-1].value)&&K.push(P[y]);return K}_s.registerClass(S2);var z1=sn,DG=Math.floor,kG=Math.ceil,yg=Math.pow,_g=Math.log,A2=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new ws,r}return e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=t.prototype.getTicks.call(this,r),o=this.base,s=this._originalScale._innerGetBreaks(),l=Un();return tt(a,function(u){var c=u.value,h=null,p=yg(o,c);c===n[0]&&this._fixMin?h=i[0]:c===n[1]&&this._fixMax&&(h=i[1]);var d;if(l){var g=l.getTicksLogTransformBreak(u,o,s,bg);d=g.vBreak,h==null&&(h=g.brkRoundingCriterion)}return h!=null&&(p=bg(p,h)),{value:p,break:d}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=N1(this.base,[r,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=yg(r,n[0]),n[1]=yg(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=bg(n[0],i[0])),this._fixMax&&(n[1]=bg(n[1],i[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=N1(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=V3(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[z1(kG(n[0]/a)*a),z1(DG(n[1]/a)*a)];this._interval=a,this._intervalPrecision=Rh(a),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=_g(r)/_g(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=_g(r)/_g(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),yg(this.base,r)},e.prototype.setBreaksFromOption=function(r){var n=Un();if(n){var i=n.logarithmicParseBreaksFromOption(r,this.base,br(this.parse,this)),a=i.parsedOriginal,o=i.parsedLogged;this._originalScale._innerSetBreak(a),this._innerSetBreak(o)}},e.type="log",e}(ws);function bg(t,e){return z1(t,wo(e))}_s.registerClass(A2);var LG=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;St(o)?this._modelMinNum=wg(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=wg(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(St(s)?this._modelMaxNum=wg(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=wg(e,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=st(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[as(u[0],1),as(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?i?0:NaN:r-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Dc(s)||Dc(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(e,r){this[PG[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=EG[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),EG={min:"_determinedMin",max:"_determinedMax"},PG={min:"_dataMin",max:"_dataMax"};function RG(t,e,r){var n=t.rawExtentInfo;return n||(n=new LG(t,e,r),t.rawExtentInfo=n,n)}function wg(t,e){return e==null?null:Dc(e)?NaN:t.parse(e)}function M2(t,e){var r=t.type,n=RG(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=_2("bar",o),l=!1;if(ne(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=b2(s),c=OG(i,a,e,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function OG(t,e,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=mG(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;ne(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;ne(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/a,p=c/h-c;return e+=p*(l/u),t-=p*(s/u),{min:t,max:e}}function I2(t,e){var r=e,n=M2(t,r),i=n.extent,a=r.get("splitNumber");t instanceof A2&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setBreaksFromOption(L2(r)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function BG(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new g2({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new S2({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(_s.getClass(e)||ws)}}function NG(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function Oh(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=zz(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(ct(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(St(e)){if(t.type==="category")return function(i,a){return e(D2(t,i),i.value-t.scale.getExtent()[0],null)};var n=Un();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(D2(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function D2(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function H1(t){var e=t.get("interval");return e??"auto"}function k2(t){return t.type==="category"&&H1(t.getLabelModel())===0}function FG(t,e){var r={};return ne(t.mapDimensionsAll(e),function(n){r[nG(t,n)]=!0}),Ut(r)}function yf(t){return t==="middle"||t==="center"}function Bh(t){return t.getShallow("show")}function L2(t){var e=t.get("breaks",!0);if(e!=null)return!Un()||!$G(t.axis)?void 0:e}function $G(t){return(t.dim==="x"||t.dim==="y"||t.dim==="z"||t.dim==="single")&&t.type!=="category"}var E2=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}(),P2=[],zG={registerPreprocessor:QD,registerProcessor:e2,registerPostInit:EV,registerPostUpdate:PV,registerUpdateLifecycle:I1,registerAction:pf,registerCoordinateSystem:RV,registerLayout:OV,registerVisual:ql,registerTransform:NV,registerLoading:r2,registerMap:BV,registerImpl:hV,PRIORITY:CV,ComponentModel:lr,ComponentView:Ao,SeriesModel:di,ChartView:qn,registerComponentModel:function(t){lr.registerClass(t)},registerComponentView:function(t){Ao.registerClass(t)},registerSeriesModel:function(t){di.registerClass(t)},registerChartView:function(t){qn.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){lr.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){E3(t,e)}};function Kl(t){if(st(t)){ne(t,function(e){Kl(e)});return}Zt(P2,t)>=0||(P2.push(t),St(t)&&(t={install:t}),t.install(zG))}var HG=Rr(),Nh=Rr(),sa={estimate:1,determine:2};function xg(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function R2(t,e){var r=tt(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function VG(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=Oh(t),i=t.scale.getExtent(),a=R2(t,r),o=qr(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:tt(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return t.type==="category"?WG(t,e):qG(t)}function GG(t,e,r){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent(),a=R2(t,n);return{ticks:qr(a,function(o){return o>=i[0]&&o<=i[1]})}}return t.type==="category"?UG(t,e):{ticks:tt(t.scale.getTicks(r),function(o){return o.value})}}function WG(t,e){var r=t.getLabelModel(),n=O2(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function O2(t,e,r){var n=YG(t),i=H1(e),a=r.kind===sa.estimate;if(!a){var o=N2(n,i);if(o)return o}var s,l;St(i)?s=z2(t,i):(l=i==="auto"?XG(t,r):i,s=$2(t,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return V1(n,i,u),!0}):V1(n,i,u),u}function UG(t,e){var r=KG(t),n=H1(e),i=N2(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),St(n))a=z2(t,n,!0);else if(n==="auto"){var s=O2(t,t.getLabelModel(),xg(sa.determine));o=s.labelCategoryInterval,a=tt(s.labels,function(l){return l.tickValue})}else o=n,a=$2(t,o,!0);return V1(r,n,{ticks:a,tickCategoryInterval:o})}function qG(t){var e=t.scale.getTicks(),r=Oh(t);return{labels:tt(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var KG=B2("axisTick"),YG=B2("axisLabel");function B2(t){return function(r){return Nh(r)[t]||(Nh(r)[t]={list:[]})}}function N2(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function V1(t,e,r){return t.list.push({key:e,value:r}),r}function XG(t,e){if(e.kind===sa.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Nh(t).autoInterval=r,!0}),r}var n=Nh(t).autoInterval;return n??(Nh(t).autoInterval=t.calculateCategoryInterval(e))}function jG(t,e){var r=e.kind,n=JG(t),i=Oh(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var h=s[0],p=t.dataToCoord(h+1)-t.dataToCoord(h),d=Math.abs(p*Math.cos(a)),g=Math.abs(p*Math.sin(a)),y=0,w=0;h<=s[1];h+=u){var b=0,S=0,A=x3(i({value:h}),n.font,"center","top");b=A.width*1.3,S=A.height*1.3,y=Math.max(y,b,7),w=Math.max(w,S,7)}var I=y/d,L=w/g;isNaN(I)&&(I=1/0),isNaN(L)&&(L=1/0);var k=Math.max(0,Math.floor(Math.min(I,L)));if(r===sa.estimate)return e.out.noPxChangeTryDetermine.push(br(ZG,null,t,k,l)),k;var P=F2(t,k,l);return P??k}function ZG(t,e,r){return F2(t,e,r)==null}function F2(t,e,r){var n=HG(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function JG(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()}}function $2(t,e,r){var n=Oh(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=k2(t),p=o.get("showMinLabel")||h,d=o.get("showMaxLabel")||h;p&&u!==a[0]&&y(a[0]);for(var g=u;g<=a[1];g+=l)y(g);d&&g-l!==a[1]&&y(a[1]);function y(w){var b={value:w};s.push(r?w:{formattedLabel:n(b),rawLabel:i.getLabel(b),tickValue:w,time:void 0,break:void 0})}return s}function z2(t,e,r){var n=t.scale,i=Oh(t),a=[];return ne(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var H2=[0,1],V2=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return F3(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(i.parse(e)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),G2(n,i.count())),Ey(e,H2,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),G2(n,i.count()));var a=Ey(e,n,H2,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=GG(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=n.ticks,a=tt(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return QG(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=tt(n,function(a){return tt(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||xg(sa.determine),VG(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(e){return e=e||xg(sa.determine),jG(this,e)},t}();function G2(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function QG(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],e[0].onBand=!0,o=e[1]={coord:a[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;ne(e,function(d){d.coord-=u/2,d.onBand=!0});var c=t.scale.getExtent();s=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:c[1]+1,onBand:!0},e.push(o)}var h=a[0]>a[1];p(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&p(a[0],e[0].coord)&&e.unshift({coord:a[0],onBand:!0}),p(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&p(o.coord,a[1])&&e.push({coord:a[1],onBand:!0});function p(d,g){return d=sn(d),g=sn(g),h?d>g:d<g}}function W2(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,c=r-t,h=n-e,p=Math.sqrt(c*c+h*h);c/=p,h/=p;var d=l*c+u*h,g=d/p;g*=p;var y=o[0]=t+g*c,w=o[1]=e+g*h;return Math.sqrt((y-i)*(y-i)+(w-a)*(w-a))}var xs=new wt,kr=new wt,un=new wt,Ss=new wt,Ka=new wt,Sg=[],En=new wt;function eW(t,e){if(e<=180&&e>0){e=e/180*Math.PI,xs.fromArray(t[0]),kr.fromArray(t[1]),un.fromArray(t[2]),wt.sub(Ss,xs,kr),wt.sub(Ka,un,kr);var r=Ss.len(),n=Ka.len();if(!(r<.001||n<.001)){Ss.scale(1/r),Ka.scale(1/n);var i=Ss.dot(Ka),a=Math.cos(e);if(a<i){var o=W2(kr.x,kr.y,un.x,un.y,xs.x,xs.y,Sg);En.fromArray(Sg),En.scaleAndAdd(Ka,o/Math.tan(Math.PI-e));var s=un.x!==kr.x?(En.x-kr.x)/(un.x-kr.x):(En.y-kr.y)/(un.y-kr.y);if(isNaN(s))return;s<0?wt.copy(En,kr):s>1&&wt.copy(En,un),En.toArray(t[1])}}}}function tW(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,xs.fromArray(t[0]),kr.fromArray(t[1]),un.fromArray(t[2]),wt.sub(Ss,kr,xs),wt.sub(Ka,un,kr);var n=Ss.len(),i=Ka.len();if(!(n<.001||i<.001)){Ss.scale(1/n),Ka.scale(1/i);var a=Ss.dot(e),o=Math.cos(r);if(a<o){var s=W2(kr.x,kr.y,un.x,un.y,xs.x,xs.y,Sg);En.fromArray(Sg);var l=Math.PI/2,u=Math.acos(Ka.dot(e)),c=l+u-r;if(c>=l)wt.copy(En,un);else{En.scaleAndAdd(Ka,s/Math.tan(Math.PI/2-c));var h=un.x!==kr.x?(En.x-kr.x)/(un.x-kr.x):(En.y-kr.y)/(un.y-kr.y);if(isNaN(h))return;h<0?wt.copy(En,kr):h>1&&wt.copy(En,un)}En.toArray(t[1])}}}}function G1(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function rW(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=F0(n[0],n[1]),a=F0(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=$0([],n[1],n[0],o/i),l=$0([],n[1],n[2],o/a),u=$0([],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],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)t.lineTo(n[c][0],n[c][1])}function nW(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<mp.length;l++){var u=mp[l],c=e[u],h=u==="normal";if(c){var p=c.get("show"),d=h?s:ut(i.states[u]&&i.states[u].ignore,s);if(d||!ut(p,o)){var g=h?n:n&&n.states[u];g&&(g.ignore=!0),n&&G1(n,!0,u,c);continue}n||(n=new Ol,t.setTextGuideLine(n),!h&&(s||!o)&&G1(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),G1(n,!1,u,c)}}if(n){Wt(n.style,r),n.style.fill=null;var y=a.get("showAbove"),w=t.textGuideLineConfig=t.textGuideLineConfig||{};w.showAbove=y||!1,n.buildPath=rW}}function iW(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Ri.length;n++){var i=Ri[n];r[i]=t.getModel([i,e])}return r}var U2=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],aW=1,Tg=2,q2=aW|Tg;function Cg(t,e,r){r=r||q2,e?t.dirty|=r:t.dirty&=~r}function K2(t,e){return e=e||q2,t.dirty==null||!!(t.dirty&e)}function Ya(t){if(t)return K2(t)&&Y2(t,t.label,t),t}function Y2(t,e,r){var n=e.getComputedTransform();t.transform=I_(t.transform,n);var i=t.localRect=fh(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,c=a.__marginType;c==null&&u&&(o=u,c=rf.textMargin);for(var h=0;h<4;h++)W1[h]=c===rf.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:o?o[h]:0;c===rf.textMargin&&Pp(i,W1,!1,!1);var p=t.rect=fh(t.rect,i);return n&&p.applyTransform(n),c===rf.minMargin&&Pp(p,W1,!1,!1),t.axisAligned=M_(n),(t.label=t.label||{}).ignore=e.ignore,Cg(t,!1),Cg(t,!0,Tg),t}var W1=[0,0,0,0];function oW(t,e,r){return t.transform=I_(t.transform,r),t.localRect=fh(t.localRect,e),t.rect=fh(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=M_(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function sW(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function X2(t,e){for(var r=0;r<U2.length;r++){var n=U2[r];t[n]==null&&(t[n]=e[n])}return Ya(t)}function j2(t){var e=t.obb;return(!e||K2(t,Tg))&&(t.obb=e=e||new bM,e.fromBoundingRect(t.localRect,t.transform),Cg(t,!1,Tg)),e}function lW(t,e,r,n,i){var a=t.length,o=hs[e],s=Qu[e];if(a<2)return!1;t.sort(function(P,z){return P.rect[o]-z.rect[o]});for(var l=0,u,c=!1,h=0;h<a;h++){var p=t[h],d=p.rect;u=d[o]-l,u<0&&(d[o]-=u,p.label[o]-=u,c=!0),l=d[o]+d[s]}var g=t[0],y=t[a-1],w,b;S(),w<0&&L(-w,.8),b<0&&L(b,.8),S(),A(w,b,1),A(b,w,-1),S(),w<0&&k(-w),b<0&&k(b);function S(){w=g.rect[o]-r,b=n-y.rect[o]-y.rect[s]}function A(P,z,F){if(P<0){var W=Math.min(z,-P);if(W>0){I(W*F,0,a);var G=W+P;G<0&&L(-G*F,1)}else L(-P*F,1)}}function I(P,z,F){P!==0&&(c=!0);for(var W=z;W<F;W++){var G=t[W],K=G.rect;K[o]+=P,G.label[o]+=P}}function L(P,z){for(var F=[],W=0,G=1;G<a;G++){var K=t[G-1].rect,q=Math.max(t[G].rect[o]-K[o]-K[s],0);F.push(q),W+=q}if(W){var ie=Math.min(Math.abs(P)/W,z);if(P>0)for(var G=0;G<a-1;G++){var ve=F[G]*ie;I(ve,0,G+1)}else for(var G=a-1;G>0;G--){var ve=F[G-1]*ie;I(-ve,G,a)}}}function k(P){var z=P<0?-1:1;P=Math.abs(P);for(var F=Math.ceil(P/(a-1)),W=0;W<a-1;W++)if(z>0?I(F,0,W+1):I(-F,a-W-1,a),P-=F,P<=0)return}return c}function uW(t){var e=[];t.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function r(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=Ya(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(U1(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function U1(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:j2(t).intersect(j2(e),r,n)}var fW=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return gg(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new $r,i=ms("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=ms(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=At.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(di);function q1(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=lf(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(lf(t,e,r[o]));return a.join(" ")}}function Z2(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!st(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var K1=function(t){Ye(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=ms(r,-1,-1,2,2,null,s);l.attr({z2:ut(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=cW,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){xp(this.childAt(0))},e.prototype.downplay=function(){Sp(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),c=o!==this._symbolType,h=a&&a.disableAnimation;if(c){var p=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,p)}else{var d=this.childAt(0);d.silent=!1;var g={scaleX:l[0]/2,scaleY:l[1]/2};h?d.attr(g):gn(d,g,s,n),lh(d)}if(this._updateCommon(r,n,l,i,a),c){var d=this.childAt(0);if(!h){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Wn(d,g,s,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,h,p,d,g,y,w,b;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,h=a.selectItemStyle,p=a.focus,d=a.blurScope,y=a.labelStatesModels,w=a.hoverScale,b=a.cursorStyle,g=a.emphasisDisabled),!a||r.hasItemOption){var S=a&&a.itemModel?a.itemModel:r.getItemModel(n),A=S.getModel("emphasis");u=A.getModel("itemStyle").getItemStyle(),h=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),p=A.get("focus"),d=A.get("blurScope"),g=A.get("disabled"),y=tf(S),w=A.getShallow("scale"),b=S.getShallow("cursor")}var I=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(I||0)*Math.PI/180||0);var L=cD(r.getItemVisual(n,"symbolOffset"),i);L&&(s.x=L[0],s.y=L[1]),b&&s.attr("cursor",b);var k=r.getItemVisual(n,"style"),P=k.fill;if(s instanceof ta){var z=s.style;s.useStyle(We({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},k))}else s.__isEmptyBrush?s.useStyle(We({},k)):s.useStyle(k),s.style.decal=null,s.setColor(P,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var F=r.getItemVisual(n,"liftZ"),W=this._z2;F!=null?W==null&&(this._z2=s.z2,s.z2+=F):W!=null&&(s.z2=W,this._z2=null);var G=o&&o.useNameLabel;ef(s,y,{labelFetcher:l,labelDataIndex:n,defaultText:K,inheritColor:P,defaultOpacity:k.opacity});function K(ve){return G?r.getName(ve):q1(r,ve)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var q=s.ensureState("emphasis");q.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var ie=w==null||w===!0?Math.max(1.1,3/this._sizeY):isFinite(w)&&w>0?+w:1;q.scaleX=this._sizeX*ie,q.scaleY=this._sizeY*ie,this.setSymbolScale(1),Xu(this,p,d,g)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=vr(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ep(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ep(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return fD(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e}($r);function cW(t,e){this.parent.drift(t,e)}function Y1(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function J2(t){return t!=null&&!mt(t)&&(t={isIgnore:t}),t||{}}function Q2(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:tf(e),cursorStyle:e.get("cursor")}}var ek=function(){function t(e){this.group=new $r,this._SymbolCtor=e||K1}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=J2(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Q2(e),u={disableAnimation:s},c=r.getSymbolPoint||function(h){return e.getItemLayout(h)};a||n.removeAll(),e.diff(a).add(function(h){var p=c(h);if(Y1(e,p,h,r)){var d=new o(e,h,l,u);d.setPosition(p),e.setItemGraphicEl(h,d),n.add(d)}}).update(function(h,p){var d=a.getItemGraphicEl(p),g=c(h);if(!Y1(e,g,h,r)){n.remove(d);return}var y=e.getItemVisual(h,"symbol")||"circle",w=d&&d.getSymbolType&&d.getSymbolType();if(!d||w&&w!==y)n.remove(d),d=new o(e,h,l,u),d.setPosition(g);else{d.updateData(e,h,l,u);var b={x:g[0],y:g[1]};s?d.attr(b):gn(d,b,i)}n.add(d),e.setItemGraphicEl(h,d)}).remove(function(h){var p=a.getItemGraphicEl(h);p&&p.fadeOut(function(){n.remove(p)},i)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Q2(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=J2(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(Y1(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){Op(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t}();function tk(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=hW(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,h=tt(t.dimensions,function(g){return e.mapDimension(g)}),p=!1,d=e.getCalculationInfo("stackResultDimension");return mf(e,h[0])&&(p=!0,h[0]=d),mf(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function hW(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:sr(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function rk(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function vW(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function dW(t,e,r,n,i,a,o,s){for(var l=vW(t,e),u=[],c=[],h=[],p=[],d=[],g=[],y=[],w=tk(i,e,o),b=t.getLayout("points")||[],S=e.getLayout("points")||[],A=0;A<l.length;A++){var I=l[A],L=!0,k=void 0,P=void 0;switch(I.cmd){case"=":k=I.idx*2,P=I.idx1*2;var z=b[k],F=b[k+1],W=S[P],G=S[P+1];(isNaN(z)||isNaN(F))&&(z=W,F=G),u.push(z,F),c.push(W,G),h.push(r[k],r[k+1]),p.push(n[P],n[P+1]),y.push(e.getRawIndex(I.idx1));break;case"+":var K=I.idx,q=w.dataDimsForPoint,ie=i.dataToPoint([e.get(q[0],K),e.get(q[1],K)]);P=K*2,u.push(ie[0],ie[1]),c.push(S[P],S[P+1]);var ve=rk(w,i,e,K);h.push(ve[0],ve[1]),p.push(n[P],n[P+1]),y.push(e.getRawIndex(K));break;case"-":L=!1}L&&(d.push(I),g.push(g.length))}g.sort(function(Ae,Oe){return y[Ae]-y[Oe]});for(var ye=u.length,be=Io(ye),ue=Io(ye),Me=Io(ye),ke=Io(ye),ce=[],A=0;A<g.length;A++){var fe=g[A],Pe=A*2,Qe=fe*2;be[Pe]=u[Qe],be[Pe+1]=u[Qe+1],ue[Pe]=c[Qe],ue[Pe+1]=c[Qe+1],Me[Pe]=h[Qe],Me[Pe+1]=h[Qe+1],ke[Pe]=p[Qe],ke[Pe+1]=p[Qe+1],ce[A]=d[fe]}return{current:be,next:ue,stackedOnCurrent:Me,stackedOnNext:ke,status:ce}}var Ts=Math.min,Cs=Math.max;function Yl(t,e){return isNaN(t)||isNaN(e)}function X1(t,e,r,n,i,a,o,s,l){for(var u,c,h,p,d,g,y=r,w=0;w<n;w++){var b=e[y*2],S=e[y*2+1];if(y>=i||y<0)break;if(Yl(b,S)){if(l){y+=a;continue}break}if(y===r)t[a>0?"moveTo":"lineTo"](b,S),h=b,p=S;else{var A=b-u,I=S-c;if(A*A+I*I<.5){y+=a;continue}if(o>0){for(var L=y+a,k=e[L*2],P=e[L*2+1];k===b&&P===S&&w<n;)w++,L+=a,y+=a,k=e[L*2],P=e[L*2+1],b=e[y*2],S=e[y*2+1],A=b-u,I=S-c;var z=w+1;if(l)for(;Yl(k,P)&&z<n;)z++,L+=a,k=e[L*2],P=e[L*2+1];var F=.5,W=0,G=0,K=void 0,q=void 0;if(z>=n||Yl(k,P))d=b,g=S;else{W=k-u,G=P-c;var ie=b-u,ve=k-b,ye=S-c,be=P-S,ue=void 0,Me=void 0;if(s==="x"){ue=Math.abs(ie),Me=Math.abs(ve);var ke=W>0?1:-1;d=b-ke*ue*o,g=S,K=b+ke*Me*o,q=S}else if(s==="y"){ue=Math.abs(ye),Me=Math.abs(be);var ce=G>0?1:-1;d=b,g=S-ce*ue*o,K=b,q=S+ce*Me*o}else ue=Math.sqrt(ie*ie+ye*ye),Me=Math.sqrt(ve*ve+be*be),F=Me/(Me+ue),d=b-W*o*(1-F),g=S-G*o*(1-F),K=b+W*o*F,q=S+G*o*F,K=Ts(K,Cs(k,b)),q=Ts(q,Cs(P,S)),K=Cs(K,Ts(k,b)),q=Cs(q,Ts(P,S)),W=K-b,G=q-S,d=b-W*ue/Me,g=S-G*ue/Me,d=Ts(d,Cs(u,b)),g=Ts(g,Cs(c,S)),d=Cs(d,Ts(u,b)),g=Cs(g,Ts(c,S)),W=b-d,G=S-g,K=b+W*Me/ue,q=S+G*Me/ue}t.bezierCurveTo(h,p,d,g,b,S),h=K,p=q}else t.lineTo(b,S)}u=b,c=S,y+=a}return w}var nk=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),pW=function(t){Ye(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:At.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new nk},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Yl(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Yl(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=X1(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=ls.CMD,s,l,u=n==="x",c=[],h=0;h<a.length;){var p=a[h++],d=void 0,g=void 0,y=void 0,w=void 0,b=void 0,S=void 0,A=void 0;switch(p){case o.M:s=a[h++],l=a[h++];break;case o.L:if(d=a[h++],g=a[h++],A=u?(r-s)/(d-s):(r-l)/(g-l),A<=1&&A>=0){var I=u?(g-l)*A+l:(d-s)*A+s;return u?[r,I]:[I,r]}s=d,l=g;break;case o.C:d=a[h++],g=a[h++],y=a[h++],w=a[h++],b=a[h++],S=a[h++];var L=u?Nd(s,d,y,b,r,c):Nd(l,g,w,S,r,c);if(L>0)for(var k=0;k<L;k++){var P=c[k];if(P<=1&&P>=0){var I=u?on(l,g,w,S,P):on(s,d,y,b,P);return u?[r,I]:[I,r]}}s=b,l=S;break}}},e}(Kt),gW=function(t){Ye(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(nk),mW=function(t){Ye(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new gW},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Yl(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Yl(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=X1(r,i,o,s,s,1,n.smooth,l,n.connectNulls);X1(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e}(Kt);function ik(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new zr({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),g=p.inverse;d?(g&&(h.shape.x+=l),h.shape.width=0):(g||(h.shape.y+=u),h.shape.height=0);var y=St(i)?function(w){i(w,h)}:null;Wn(h,{shape:{width:l,height:u,x:o,y:s}},r,null,n,y)}return h}function ak(t,e,r){var n=t.getArea(),i=sn(n.r0,1),a=sn(n.r,1),o=new fs({shape:{cx:sn(t.cx,1),cy:sn(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Wn(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function yW(t,e,r,n,i){if(t){if(t.type==="polar")return ak(t,e,r);if(t.type==="cartesian2d")return ik(t,e,r,n,i)}else return null;return null}function j1(t,e){return t.type===e}function ok(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function sk(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[e,r],[n,i]]}function lk(t,e){var r=sk(t),n=r[0],i=r[1],a=sk(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function uk(t){return sr(t)?t:t?.5:0}function _W(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),i=Io(n*2),a=0;a<n;a++){var o=rk(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function As(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],c=[],h=[],p=[];if(i){for(l=0;l<t.length;l+=2){var d=e||t;!isNaN(d[l])&&!isNaN(d[l+1])&&p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),n){case"end":u[o]=h[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var g=(c[o]+h[o])/2,y=[];u[o]=y[o]=g,u[1-o]=c[1-o],y[1-o]=h[1-o],s.push(u[0],u[1]),s.push(y[0],y[1]);break;default:u[o]=c[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function bW(t,e){var r=[],n=t.length,i,a;function o(c,h,p){var d=c.coord,g=(p-d)/(h.coord-d),y=QF(g,[c.color,h.color]);return{coord:p,color:y}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function wW(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=tt(a.stops,function(A){return{coord:l.toGlobalCoord(l.dataToCoord(A.value)),color:A.color}}),c=u.length,h=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=bW(u,i==="x"?r.getWidth():r.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var g=10,y=p[0].coord-g,w=p[d-1].coord+g,b=w-y;if(b<.001)return"transparent";ne(p,function(A){A.offset=(A.coord-y)/b}),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var S=new _M(0,0,0,0,p,!0);return S[i]=y,S[i+"2"]=w,S}}}function xW(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&SW(a,e))){var o=e.mapDimension(a.dim),s={};return ne(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function SW(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(K1.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function TW(t,e){return isNaN(t)||isNaN(e)}function CW(t){for(var e=t.length/2;e>0&&TW(t[e*2-2],t[e*2-1]);e--);return e-1}function fk(t,e){return[t[e*2],t[e*2+1]]}function AW(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!(isNaN(o)||isNaN(t[u*2+1-i]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function ck(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ri.length;e++)if(t.get([Ri[e],"endLabel","show"]))return!0;return!1}function Z1(t,e,r,n){if(j1(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=ck(n)?function(d,g){t._endLabelOnDuring(d,g,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=ik(e,r,n,function(){var d=t._endLabel;d&&r&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=p*2):(h.x-=p,h.width+=p*2)}return l&&l(1,c),c}else return ak(e,r,n)}function MW(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var IW=function(t){Ye(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new $r,n=new ek;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=br(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),c=s.getLayout("points")||[],h=a.type==="polar",p=this._coordSys,d=this._symbolDraw,g=this._polyline,y=this._polygon,w=this._lineGroup,b=!n.ssr&&r.get("animation"),S=!u.isEmpty(),A=u.get("origin"),I=tk(a,s,A),L=S&&_W(a,s,I),k=r.get("showSymbol"),P=r.get("connectNulls"),z=k&&!h&&xW(r,s,a),F=this._data;F&&F.eachItemGraphicEl(function(Ae,Oe){Ae.__temp&&(o.remove(Ae),F.setItemGraphicEl(Oe,null))}),k||d.remove(),o.add(w);var W=h?!1:r.get("step"),G;a&&a.getArea&&r.get("clip",!0)&&(G=a.getArea(),G.width!=null?(G.x-=.1,G.y-=.1,G.width+=.2,G.height+=.2):G.r0&&(G.r0-=.5,G.r+=.5)),this._clipShapeForSymbol=G;var K=wW(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(g&&p.type===a.type&&W===this._step))k&&d.updateData(s,{isIgnore:z,clipShape:G,disableAnimation:!0,getSymbolPoint:function(Ae){return[c[Ae*2],c[Ae*2+1]]}}),b&&this._initSymbolLabelAnimation(s,a,G),W&&(L&&(L=As(L,c,a,W,P)),c=As(c,null,a,W,P)),g=this._newPolyline(c),S?y=this._newPolygon(c,L):y&&(w.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,G_(K)),w.setClipPath(Z1(this,a,!0,r));else{S&&!y?y=this._newPolygon(c,L):y&&!S&&(w.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,G_(K));var q=w.getClipPath();if(q){var ie=Z1(this,a,!1,r);Wn(q,{shape:ie.shape},r)}else w.setClipPath(Z1(this,a,!0,r));k&&d.updateData(s,{isIgnore:z,clipShape:G,disableAnimation:!0,getSymbolPoint:function(Ae){return[c[Ae*2],c[Ae*2+1]]}}),(!ok(this._stackedOnPoints,L)||!ok(this._points,c))&&(b?this._doUpdateAnimation(s,L,a,i,W,A,P):(W&&(L&&(L=As(L,c,a,W,P)),c=As(c,null,a,W,P)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:L})))}var ve=r.getModel("emphasis"),ye=ve.get("focus"),be=ve.get("blurScope"),ue=ve.get("disabled");if(g.useStyle(Wt(l.getLineStyle(),{fill:"none",stroke:K,lineJoin:"bevel"})),ju(g,r,"lineStyle"),g.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var Me=g.getState("emphasis").style;Me.lineWidth=+g.style.lineWidth+1}vr(g).seriesIndex=r.seriesIndex,Xu(g,ye,be,ue);var ke=uk(r.get("smooth")),ce=r.get("smoothMonotone");if(g.setShape({smooth:ke,smoothMonotone:ce,connectNulls:P}),y){var fe=s.getCalculationInfo("stackedOnSeries"),Pe=0;y.useStyle(Wt(u.getAreaStyle(),{fill:K,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),fe&&(Pe=uk(fe.get("smooth"))),y.setShape({smooth:ke,stackedOnSmooth:Pe,smoothMonotone:ce,connectNulls:P}),ju(y,r,"areaStyle"),vr(y).seriesIndex=r.seriesIndex,Xu(y,ye,be,ue)}var Qe=this._changePolyState;s.eachItemGraphicEl(function(Ae){Ae&&(Ae.onHoverStateChange=Qe)}),this._polyline.onHoverStateChange=Qe,this._data=s,this._coordSys=a,this._stackedOnPoints=L,this._points=c,this._step=W,this._valueOrigin=A,r.get("triggerLineEvent")&&(this.packEventData(r,g),y&&this.packEventData(r,y))},e.prototype.packEventData=function(r,n){vr(n).pptSuiteEventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Uu(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var p=r.get("zlevel")||0,d=r.get("z")||0;u=new K1(o,s),u.x=c,u.y=h,u.setZ(p,d);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=p,g.z=d,g.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else qn.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Uu(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else qn.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;YA(this._polyline,r),n&&YA(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new pW({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new mW({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");St(c)&&(c=c(null));var h=u.get("animationDelay")||0,p=St(h)?h(null):h;r.eachItemGraphicEl(function(d,g){var y=d;if(y){var w=[d.x,d.y],b=void 0,S=void 0,A=void 0;if(i)if(o){var I=i,L=n.pointToCoord(w);a?(b=I.startAngle,S=I.endAngle,A=-L[1]/180*Math.PI):(b=I.r0,S=I.r,A=L[0])}else{var k=i;a?(b=k.x,S=k.x+k.width,A=d.x):(b=k.y+k.height,S=k.y,A=d.y)}var P=S===b?0:(A-b)/(S-b);l&&(P=1-P);var z=St(h)?h(g):c*P+p,F=y.getSymbolPath(),W=F.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:z}),W&&W.animateFrom({style:{opacity:0}},{duration:300,delay:z}),F.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(ck(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ci({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=CW(l);c>=0&&(ef(s,tf(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(h,p,d){return d!=null?Z2(o,d):q1(o,h)},enableTextSetter:!0},MW(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),p=i.hostModel,d=p.get("connectNulls"),g=s.get("precision"),y=s.get("distance")||0,w=l.getBaseAxis(),b=w.isHorizontal(),S=w.inverse,A=n.shape,I=S?b?A.x:A.y+A.height:b?A.x+A.width:A.y,L=(b?y:0)*(S?-1:1),k=(b?0:-y)*(S?-1:1),P=b?"x":"y",z=AW(h,I,P),F=z.range,W=F[1]-F[0],G=void 0;if(W>=1){if(W>1&&!d){var K=fk(h,F[0]);u.attr({x:K[0]+L,y:K[1]+k}),o&&(G=p.getRawValue(F[0]))}else{var K=c.getPointOn(I,P);K&&u.attr({x:K[0]+L,y:K[1]+k});var q=p.getRawValue(F[0]),ie=p.getRawValue(F[1]);o&&(G=l4(i,g,q,ie,z.t))}a.lastFrameIndex=F[0]}else{var ve=r===1||a.lastFrameIndex>0?F[0]:0,K=fk(h,ve);o&&(G=p.getRawValue(ve)),u.attr({x:K[0]+L,y:K[1]+k})}if(o){var ye=Fp(u);typeof ye.setLabelText=="function"&&ye.setLabelText(G)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,h=r.hostModel,p=dW(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),d=p.current,g=p.stackedOnCurrent,y=p.next,w=p.stackedOnNext;if(o&&(g=As(p.stackedOnCurrent,p.current,i,o,l),d=As(p.current,null,i,o,l),w=As(p.stackedOnNext,p.next,i,o,l),y=As(p.next,null,i,o,l)),lk(d,y)>3e3||c&&lk(g,w)>3e3){u.stopAnimation(),u.setShape({points:y}),c&&(c.stopAnimation(),c.setShape({points:y,stackedOnPoints:w}));return}u.shape.__points=p.current,u.shape.points=d;var b={shape:{points:y}};p.current!==d&&(b.shape.__points=p.next),u.stopAnimation(),gn(u,b,h),c&&(c.setShape({points:d,stackedOnPoints:g}),c.stopAnimation(),gn(c,{shape:{stackedOnPoints:w}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],A=p.status,I=0;I<A.length;I++){var L=A[I].cmd;if(L==="="){var k=r.getItemGraphicEl(A[I].idx1);k&&S.push({el:k,ptIdx:I})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var P=u.shape.__points,z=0;z<S.length;z++){var F=S[z].el,W=S[z].ptIdx*2;F.x=P[W],F.y=P[W+1],F.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(qn);function J1(t,e){return{seriesType:t,plan:s1(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=tt(i.dimensions,function(d){return n.mapDimension(d)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");mf(n,s[0])&&(s[0]=u),mf(n,s[1])&&(s[1]=u);var c=n.getStore(),h=n.getDimensionIndex(s[0]),p=n.getDimensionIndex(s[1]);return l&&{progress:function(d,g){for(var y=d.end-d.start,w=o&&Io(y*l),b=[],S=[],A=d.start,I=0;A<d.end;A++){var L=void 0;if(l===1){var k=c.get(h,A);L=i.dataToPoint(k,null,S)}else b[0]=c.get(h,A),b[1]=c.get(p,A),L=i.dataToPoint(b,null,S);o?(w[I++]=L[0],w[I++]=L[1]):g.setItemLayout(A,L.slice())}o&&g.setLayout("points",w)}}}}}}var DW={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},kW=function(t){return Math.round(t.length/2)};function hk(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),h=n.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(h||1),d=Math.round(s/p);if(isFinite(d)&&d>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/d));var g=void 0;ct(a)?g=DW[a]:St(a)&&(g=a),g&&e.setData(i.downSample(i.mapDimension(u.dim),1/d,g,kW))}}}}}function LW(t){t.registerChartView(IW),t.registerSeriesModel(fW),t.registerLayout(J1("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,hk("line"))}var Q1=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return gg(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)ne(a.getAxes(),function(p,d){if(p.type==="category"&&n!=null){var g=p.getTicksCoords(),y=p.getTickModel().get("alignWithLabel"),w=o[d],b=n[d]==="x1"||n[d]==="y1";if(b&&!y&&(w+=1),g.length<2)return;if(g.length===2){s[d]=p.toGlobalCoord(p.getExtent()[b?1:0]);return}for(var S=void 0,A=void 0,I=1,L=0;L<g.length;L++){var k=g[L].coord,P=L===g.length-1?g[L-1].tickValue+I:g[L].tickValue;if(P===w){A=k;break}else if(P<w)S=k;else if(S!=null&&P>w){A=(k+S)/2;break}L===1&&(I=P-g[0].tickValue)}A==null&&(S?S&&(A=g[g.length-1].coord):A=g[0].coord),s[d]=p.toGlobalCoord(A)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(di);di.registerClass(Q1);var EW=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return gg(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=VM(Q1.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:At.color.primary,borderWidth:2}},realtimeSort:!1}),e}(Q1),PW=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),vk=function(t){Ye(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new PW},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,h=n.endAngle,p=n.clockwise,d=Math.PI*2,g=p?h-c<d:c-h<d;g||(c=h-(p?d:-d));var y=Math.cos(c),w=Math.sin(c),b=Math.cos(h),S=Math.sin(h);g?(r.moveTo(y*o+i,w*o+a),r.arc(y*u+i,w*u+a,l,-Math.PI+c,c,!p)):r.moveTo(y*s+i,w*s+a),r.arc(i,a,s,c,h,!p),r.arc(b*u+i,S*u+a,l,h-Math.PI*2,h-Math.PI,!p),o!==0&&r.arc(i,a,o,h,c,p)},e}(Kt);function RW(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return tp(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,h=u.cy,p=u.r,d=u.r0,g=(p+d)/2,y=u.startAngle,w=u.endAngle,b=(y+w)/2,S=r?Math.abs(p-d)/2:0,A=Math.cos,I=Math.sin,L=c+p*A(y),k=h+p*I(y),P="left",z="top";switch(s){case"startArc":L=c+(d-l)*A(b),k=h+(d-l)*I(b),P="center",z="top";break;case"insideStartArc":L=c+(d+l)*A(b),k=h+(d+l)*I(b),P="center",z="bottom";break;case"startAngle":L=c+g*A(y)+Ag(y,l+S,!1),k=h+g*I(y)+Mg(y,l+S,!1),P="right",z="middle";break;case"insideStartAngle":L=c+g*A(y)+Ag(y,-l+S,!1),k=h+g*I(y)+Mg(y,-l+S,!1),P="left",z="middle";break;case"middle":L=c+g*A(b),k=h+g*I(b),P="center",z="middle";break;case"endArc":L=c+(p+l)*A(b),k=h+(p+l)*I(b),P="center",z="bottom";break;case"insideEndArc":L=c+(p-l)*A(b),k=h+(p-l)*I(b),P="center",z="top";break;case"endAngle":L=c+g*A(w)+Ag(w,l+S,!0),k=h+g*I(w)+Mg(w,l+S,!0),P="left",z="middle";break;case"insideEndAngle":L=c+g*A(w)+Ag(w,-l+S,!0),k=h+g*I(w)+Mg(w,-l+S,!0),P="right",z="middle";break;default:return tp(n,i,a)}return n=n||{},n.x=L,n.y=k,n.align=P,n.verticalAlign=z,n}}function OW(t,e,r,n){if(sr(n)){t.setTextConfig({rotation:n});return}else if(st(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),t.setTextConfig({rotation:c})}function Ag(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Mg(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Fh(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;st(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:tt(n,function(a){return as(a,i)})}}var eb=Math.max,tb=Math.min;function BW(t,e){var r=t.getArea&&t.getArea();if(j1(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var NW=function(t){Ye(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){Op(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),h;u.type==="cartesian2d"?h=c.isHorizontal():u.type==="polar"&&(h=c.dim==="angle");var p=r.isAnimationEnabled()?r:null,d=FW(r,u);d&&this._enableRealtimeSort(d,s,i);var g=r.get("clip",!0)||d,y=BW(u,s);o.removeClipPath();var w=r.get("roundCap",!0),b=r.get("showBackground",!0),S=r.getModel("backgroundStyle"),A=S.get("borderRadius")||0,I=[],L=this._backgroundEls,k=a&&a.isInitSort,P=a&&a.type==="changeAxisOrder";function z(G){var K=Ig[u.type](s,G);if(!K)return null;var q=UW(u,h,K);return q.useStyle(S.getItemStyle()),u.type==="cartesian2d"?q.setShape("r",A):q.setShape("cornerRadius",A),I[G]=q,q}s.diff(l).add(function(G){var K=s.getItemModel(G),q=Ig[u.type](s,G,K);if(q&&(b&&z(G),!(!s.hasValue(G)||!yk[u.type](q)))){var ie=!1;g&&(ie=dk[u.type](y,q));var ve=pk[u.type](r,s,G,q,h,p,c.model,!1,w);d&&(ve.forceLabelAnimation=!0),bk(ve,s,G,K,q,r,h,u.type==="polar"),k?ve.attr({shape:q}):d?gk(d,p,ve,q,G,h,!1,!1):Wn(ve,{shape:q},r,G),s.setItemGraphicEl(G,ve),o.add(ve),ve.ignore=ie}}).update(function(G,K){var q=s.getItemModel(G),ie=Ig[u.type](s,G,q);if(ie){if(b){var ve=void 0;L.length===0?ve=z(K):(ve=L[K],ve.useStyle(S.getItemStyle()),u.type==="cartesian2d"?ve.setShape("r",A):ve.setShape("cornerRadius",A),I[G]=ve);var ye=Ig[u.type](s,G),be=Tk(h,ye,u);gn(ve,{shape:be},p,G)}var ue=l.getItemGraphicEl(K);if(!s.hasValue(G)||!yk[u.type](ie)){o.remove(ue);return}var Me=!1;g&&(Me=dk[u.type](y,ie),Me&&o.remove(ue));var ke=ue&&(ue.type==="sector"&&w||ue.type==="sausage"&&!w);if(ke&&(ue&&sh(ue,r,K),ue=null),ue?lh(ue):ue=pk[u.type](r,s,G,ie,h,p,c.model,!0,w),d&&(ue.forceLabelAnimation=!0),P){var ce=ue.getTextContent();if(ce){var fe=Fp(ce);fe.prevValue!=null&&(fe.prevValue=fe.value)}}else bk(ue,s,G,q,ie,r,h,u.type==="polar");k?ue.attr({shape:ie}):d?gk(d,p,ue,ie,G,h,!0,P):gn(ue,{shape:ie},r,G,null),s.setItemGraphicEl(G,ue),ue.ignore=Me,o.add(ue)}}).remove(function(G){var K=l.getItemGraphicEl(G);K&&sh(K,r,G)}).execute();var F=this._backgroundGroup||(this._backgroundGroup=new $r);F.removeAll();for(var W=0;W<I.length;++W)F.add(I[W]);o.add(F),this._backgroundEls=I,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),xk(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),xk(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&yW(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:tt(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){sh(a,r,vr(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(qn),dk={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=eb(e.x,t.x),s=tb(e.x+e.width,i),l=eb(e.y,t.y),u=tb(e.y+e.height,a),c=s<o,h=u<l;return e.x=c&&o>i?s:o,e.y=h&&l>a?u:l,e.width=c?0:s-o,e.height=h?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=tb(e.r,t.r),a=eb(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},pk={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new zr({shape:We({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?vk:fs,c=new u({shape:n,z2:1});c.name="item";var h=_k(i);if(c.calculateTextPosition=RW(h,{isRoundCap:u===vk}),a){var p=c.shape,d=i?"r":"endAngle",g={};p[d]=i?n.r0:n.startAngle,g[d]=n[d],(s?gn:Wn)(c,{shape:g},a)}return c}};function FW(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function gk(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?gn:Wn)(r,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(o?gn:Wn)(r,{shape:u},c,i)}function mk(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var $W=["x","y","width","height"],zW=["cx","cy","r","startAngle","endAngle"],yk={cartesian2d:function(t){return!mk(t,$W)},polar:function(t){return!mk(t,zW)}},Ig={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?VW(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function HW(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function _k(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function bk(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=t.shape,h=Fh(n.getModel("itemStyle"),c,!0);We(c,h),t.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var p=n.getShallow("cursor");p&&t.attr("cursor",p);var d=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=tf(n);ef(t,g,{labelFetcher:a,labelDataIndex:r,defaultText:q1(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var y=t.getTextContent();if(s&&y){var w=n.get(["label","position"]);t.textConfig.inside=w==="middle"?!0:null,OW(t,w==="outside"?d:w,_k(o),n.get(["label","rotate"]))}wz(y,g,a.getRawValue(r),function(S){return Z2(e,S)});var b=n.getModel(["emphasis"]);Xu(t,b.get("focus"),b.get("blurScope"),b.get("disabled")),ju(t,n),HW(i)&&(t.style.fill="none",t.style.stroke="none",ne(t.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function VW(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var GW=function(){function t(){}return t}(),wk=function(t){Ye(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new GW},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},e}(Kt);function xk(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new wk({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var h=new wk({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,vr(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",Sk),h.on("mousemove",Sk)),r&&r.push(h)}var Sk=JI(function(t){var e=this,r=WW(e,t.offsetX,t.offsetY);vr(e).dataIndex=r>=0?r:null},30,!1);function WW(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=a.length/3;c<h;c++){var p=c*3;if(l[n]=u,l[i]=a[p+2],s[n]=a[p+n],s[i]=a[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Tk(t,e,r){if(j1(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function UW(t,e,r){var n=t.type==="polar"?fs:zr;return new n({shape:Tk(e,r,t),silent:!0,z2:0})}function qW(t){t.registerChartView(NW),t.registerSeriesModel(EW),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,oi(yG,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_G("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,hk("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Ck=Math.PI*2,Dg=Math.PI/180;function KW(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=r8(n,r),s=o.cx,l=o.cy,u=o.r,c=o.r0,h=o.viewRect,p=-n.get("startAngle")*Dg,d=n.get("endAngle"),g=n.get("padAngle")*Dg;d=d==="auto"?p-Ck:-d*Dg;var y=n.get("minAngle")*Dg,w=y+g,b=0;i.each(a,function(be){!isNaN(be)&&b++});var S=i.getSum(a),A=Math.PI/(S||b)*2,I=n.get("clockwise"),L=n.get("roseType"),k=n.get("stillShowZeroSum"),P=i.getDataExtent(a);P[0]=0;var z=I?1:-1,F=[p,d],W=z*g/2;CA(F,!I),p=F[0],d=F[1];var G=Ak(n);G.startAngle=p,G.endAngle=d,G.clockwise=I,G.cx=s,G.cy=l,G.r=u,G.r0=c;var K=Math.abs(d-p),q=K,ie=0,ve=p;if(i.setLayout({viewRect:h,r:u}),i.each(a,function(be,ue){var Me;if(isNaN(be)){i.setItemLayout(ue,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:I,cx:s,cy:l,r0:c,r:L?NaN:u});return}L!=="area"?Me=S===0&&k?A:be*A:Me=K/b,Me<w?(Me=w,q-=w):ie+=be;var ke=ve+z*Me,ce=0,fe=0;g>Me?(ce=ve+z*Me/2,fe=ce):(ce=ve+W,fe=ke-W),i.setItemLayout(ue,{angle:Me,startAngle:ce,endAngle:fe,clockwise:I,cx:s,cy:l,r0:c,r:L?Ey(be,P,[c,u]):u}),ve=ke}),q<Ck&&b)if(q<=.001){var ye=K/b;i.each(a,function(be,ue){if(!isNaN(be)){var Me=i.getItemLayout(ue);Me.angle=ye;var ke=0,ce=0;ye<g?(ke=p+z*(ue+1/2)*ye,ce=ke):(ke=p+z*ue*ye+W,ce=p+z*(ue+1)*ye-W),Me.startAngle=ke,Me.endAngle=ce}})}else A=q/ie,ve=p,i.each(a,function(be,ue){if(!isNaN(be)){var Me=i.getItemLayout(ue),ke=Me.angle===w?w:be*A,ce=0,fe=0;ke<g?(ce=ve+z*ke/2,fe=ce):(ce=ve+W,fe=ve+z*ke-W),Me.startAngle=ce,Me.endAngle=fe,ve+=z*ke}})})}var Ak=Rr();function Mk(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var YW=Math.PI/180;function Ik(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function c(y){for(var w=y.rB,b=w*w,S=0;S<y.list.length;S++){var A=y.list[S],I=Math.abs(A.label.y-r),L=n+A.len,k=L*L,P=Math.sqrt(Math.abs((1-I*I/b)*k)),z=e+(P+A.len2)*i,F=z-A.label.x,W=A.targetTextWidth-F*i;Dk(A,W,!0),A.label.x=z}}function h(y){for(var w={list:[],maxY:0},b={list:[],maxY:0},S=0;S<y.length;S++)if(y[S].labelAlignTo==="none"){var A=y[S],I=A.label.y>r?b:w,L=Math.abs(A.label.y-r);if(L>=I.maxY){var k=A.label.x-e-A.len2*i,P=n+A.len,z=Math.abs(k)<P?Math.sqrt(L*L/(1-k*k/P/P)):P;I.rB=z,I.maxY=L}I.list.push(A)}c(w),c(b)}for(var p=t.length,d=0;d<p;d++)if(t[d].position==="outer"&&t[d].labelAlignTo==="labelLine"){var g=t[d].label.x-u;t[d].linePoints[1][0]+=g,t[d].label.x=u}lW(t,1,l,l+o)&&h(t)}function XW(t,e,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<t.length;p++){var d=t[p].label;rb(t[p])||(d.x<e?(c=Math.min(c,d.x),l.push(t[p])):(h=Math.max(h,d.x),u.push(t[p])))}for(var p=0;p<t.length;p++){var g=t[p];if(!rb(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var d=g.label,y=g.linePoints,w=void 0;g.labelAlignTo==="edge"?d.x<e?w=y[2][0]-g.labelDistance-o-g.edgeDistance:w=o+i-g.edgeDistance-y[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?d.x<e?w=c-o-g.bleedMargin:w=o+i-h-g.bleedMargin:d.x<e?w=d.x-o-g.bleedMargin:w=o+i-d.x-g.bleedMargin,g.targetTextWidth=w,Dk(g,w,!1)}}Ik(u,e,r,n,1,i,a,o,s,h),Ik(l,e,r,n,-1,i,a,o,s,c);for(var p=0;p<t.length;p++){var g=t[p];if(!rb(g)&&g.linePoints){var d=g.label,y=g.linePoints,b=g.labelAlignTo==="edge",S=d.style.padding,A=S?S[1]+S[3]:0,I=d.style.backgroundColor?0:A,L=g.rect.width+I,k=y[1][0]-y[2][0];b?d.x<e?y[2][0]=o+g.edgeDistance+L+g.labelDistance:y[2][0]=o+i-g.edgeDistance-L-g.labelDistance:(d.x<e?y[2][0]=d.x+g.labelDistance:y[2][0]=d.x-g.labelDistance,y[1][0]=y[2][0]+k),y[1][1]=y[2][1]=d.y}}}function Dk(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(e<c||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var p=e-l,d=e<c?p:r?p>t.unconstrainedWidth?null:p:null;n.setStyle("width",d)}kk(a,n)}}}function kk(t,e){Lk.rect=t,Y2(Lk,e,jW)}var jW={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Lk={};function rb(t){return t.position==="center"}function ZW(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*YW,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function d(k){k.ignore=!0}function g(k){if(!k.ignore)return!0;for(var P in k.states)if(k.states[P].ignore===!1)return!0;return!1}e.each(function(k){var P=e.getItemGraphicEl(k),z=P.shape,F=P.getTextContent(),W=P.getTextGuideLine(),G=e.getItemModel(k),K=G.getModel("label"),q=K.get("position")||G.get(["emphasis","label","position"]),ie=K.get("distanceToLabelLine"),ve=K.get("alignTo"),ye=hr(K.get("edgeDistance"),u),be=K.get("bleedMargin");be==null&&(be=Math.min(u,p)>200?10:2);var ue=G.getModel("labelLine"),Me=ue.get("length");Me=hr(Me,u);var ke=ue.get("length2");if(ke=hr(ke,u),Math.abs(z.endAngle-z.startAngle)<o){ne(F.states,d),F.ignore=!0,W&&(ne(W.states,d),W.ignore=!0);return}if(g(F)){var ce=(z.startAngle+z.endAngle)/2,fe=Math.cos(ce),Pe=Math.sin(ce),Qe,Ae,Oe,lt;n=z.cx,i=z.cy;var dt=q==="inside"||q==="inner";if(q==="center")Qe=z.cx,Ae=z.cy,lt="center";else{var $e=(dt?(z.r+z.r0)/2*fe:z.r*fe)+n,Tt=(dt?(z.r+z.r0)/2*Pe:z.r*Pe)+i;if(Qe=$e+fe*3,Ae=Tt+Pe*3,!dt){var rt=$e+fe*(Me+l-z.r),$=Tt+Pe*(Me+l-z.r),J=rt+(fe<0?-1:1)*ke,se=$;ve==="edge"?Qe=fe<0?c+ye:c+u-ye:Qe=J+(fe<0?-ie:ie),Ae=se,Oe=[[$e,Tt],[rt,$],[J,se]]}lt=dt?"center":ve==="edge"?fe>0?"right":"left":fe>0?"left":"right"}var Te=Math.PI,xe=0,we=K.get("rotate");if(sr(we))xe=we*(Te/180);else if(q==="center")xe=0;else if(we==="radial"||we===!0){var de=fe<0?-ce+Te:-ce;xe=de}else if(we==="tangential"&&q!=="outside"&&q!=="outer"){var le=Math.atan2(fe,Pe);le<0&&(le=Te*2+le);var Se=Pe>0;Se&&(le=Te+le),xe=le-Te}if(a=!!xe,F.x=Qe,F.y=Ae,F.rotation=xe,F.setStyle({verticalAlign:"middle"}),dt){F.setStyle({align:lt});var Ze=F.states.select;Ze&&(Ze.x+=F.x,Ze.y+=F.y)}else{var pe=new Nt(0,0,0,0);kk(pe,F),r.push({label:F,labelLine:W,position:q,len:Me,len2:ke,minTurnAngle:ue.get("minTurnAngle"),maxSurfaceAngle:ue.get("maxSurfaceAngle"),surfaceNormal:new wt(fe,Pe),linePoints:Oe,textAlign:lt,labelDistance:ie,labelAlignTo:ve,edgeDistance:ye,bleedMargin:be,rect:pe,unconstrainedWidth:pe.width,labelStyleWidth:F.style.width})}P.setTextConfig({inside:dt})}}),!a&&t.get("avoidLabelOverlap")&&XW(r,n,i,l,u,p,c,h);for(var y=0;y<r.length;y++){var w=r[y],b=w.label,S=w.labelLine,A=isNaN(b.x)||isNaN(b.y);if(b){b.setStyle({align:w.textAlign}),A&&(ne(b.states,d),b.ignore=!0);var I=b.states.select;I&&(I.x+=b.x,I.y+=b.y)}if(S){var L=w.linePoints;A||!L?(ne(S.states,d),S.ignore=!0):(eW(L,w.minTurnAngle),tW(L,w.surfaceNormal,w.maxSurfaceAngle),S.setShape({points:L}),b.__hostTarget.textGuideLineConfig={anchor:new wt(L[0][0],L[0][1])})}}}var JW=function(t){Ye(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new ci;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),h=We(Fh(l.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var p=s.getShallow("animationType");s.ecModel.ssr?(Wn(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):p==="scale"?(o.shape.r=c.r0,Wn(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Wn(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,gn(o,{shape:{endAngle:c.endAngle}},s,n))}else lh(o),gn(o,{shape:h},s,n);o.useStyle(r.getItemVisual(n,"style")),ju(o,l);var d=(c.startAngle+c.endAngle)/2,g=s.get("selectedOffset"),y=Math.cos(d)*g,w=Math.sin(d)*g,b=l.getShallow("cursor");b&&o.attr("cursor",b),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=We({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Fh(u.getModel("itemStyle"),c)),We(o.ensureState("select"),{x:y,y:w,shape:Fh(l.getModel(["select","itemStyle"]),c)}),We(o.ensureState("blur"),{shape:Fh(l.getModel(["blur","itemStyle"]),c)});var S=o.getTextGuideLine(),A=o.getTextContent();S&&We(S.ensureState("select"),{x:y,y:w}),We(A.ensureState("select"),{x:y,y:w}),Xu(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;ef(a,tf(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Ol,this.setTextGuideLine(d)),nW(this,iW(o),{stroke:u,opacity:vl(s.get(["lineStyle","opacity"]),c,1)})}},e}(fs),QW=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<o.count();++h)c=o.getItemLayout(h);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var p=Ak(r),d=new fs({shape:Vt(p)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(g){var y=new JW(o,g,u);o.setItemGraphicEl(g,y),l.add(y)}).update(function(g,y){var w=s.getItemGraphicEl(y);w.updateData(o,g,u),w.off("click"),l.add(w),o.setItemGraphicEl(g,w)}).remove(function(g){var y=s.getItemGraphicEl(g);sh(y,r,g)}).execute(),ZW(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e}(qn);function Ek(t,e,r){e=st(e)&&{coordDimensions:e}||We({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=h2(n,e).dimensions,a=new c2(i,t);return a.initData(n,r),a}var Pk=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),e6=Rr(),Rk=function(t){Ye(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Pk(br(this.getData,this),br(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ek(this,{coordDimensions:["value"],encodeDefaulter:oi(f8,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=e6(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=$3(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Oy(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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"},e}(di);Xz({fullType:Rk.type,getCoord2:function(t){return t.getShallow("center")}});function t6(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(sr(o)&&!isNaN(o)&&o<0)})}}}function r6(t){t.registerChartView(QW),t.registerSeriesModel(Rk),BH("pie",t.registerAction),t.registerLayout(oi(KW,"pie")),t.registerProcessor(Mk("pie")),t.registerProcessor(t6("pie"))}var n6=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return gg(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:At.color.primary}},universalTransition:{divideShape:"clone"}},e}(di),Ok=4,i6=function(){function t(){}return t}(),a6=function(t){Ye(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new i6},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<Ok,c=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<i.length;){var p=i[h++],d=i[h++];isNaN(p)||isNaN(d)||c&&!c.contain(p,d)||(s.x=p-a[0]/2,s.y=d-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,h=a[c]-s/2,p=a[c+1]-l/2;if(r>=h&&n>=p&&r<=h+s&&n<=p+l)return u}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,h=-1/0,p=0;p<i.length;){var d=i[p++],g=i[p++];l=Math.min(d,l),c=Math.max(d,c),u=Math.min(g,u),h=Math.max(g,h)}r=this._rect=new Nt(l-o/2,u-s/2,c-l+o,h-u+s)}return r},e}(Kt),o6=function(){function t(){this.group=new $r}return t.prototype.updateData=function(e,r){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,i)}n.setShape("points",r),n.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n){var i=this._newAdded[0],a=r.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new a6({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=ms(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Ok;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=vr(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),s6=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=J1("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new o6:new ek,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(qn),Bk={left:0,right:0,top:0,bottom:0},kg=["25%","25%"],l6=function(t){Ye(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=mh(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&ds(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&ds(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Bk,outerBoundsContain:"all",outerBoundsClampWidth:kg[0],outerBoundsClampHeight:kg[1],backgroundColor:At.color.transparent,borderWidth:1,borderColor:At.color.neutral30},e}(lr),nb=function(t){Ye(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ki).models[0]},e.type="cartesian2dAxis",e}(lr);Zi(nb,E2);var Nk={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:At.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:At.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:At.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[At.color.backgroundTint,At.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:At.color.neutral00,borderColor:At.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},u6=or({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Nk),ib=or({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:At.color.axisMinorSplitLine,width:1}}},Nk),f6=or({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ib),c6=Wt({logBase:10},ib);const Fk={category:u6,value:ib,time:f6,log:c6};var h6={value:1,category:1,time:1,log:1},v6=null;function Lg(){return v6}function $k(t,e,r,n){ne(h6,function(i,a){var o=or(or({},Fk[a],!0),n,!0),s=function(l){Ye(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var p=gh(this),d=p?mh(c):{},g=h.getTheme();or(c,g.get(a+"Axis")),or(c,this.getDefaultOption()),c.type=zk(c),p&&ds(c,d,p)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=F1.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){var h=Lg();return h?h.updateModelAxisBreak(this,c):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",zk)}function zk(t){return t.type||(t.data?"category":"value")}var d6=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return tt(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),qr(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}(),ab=["x","y"];function Hk(t){return(t.type==="interval"||t.type==="time")&&!t.hasBreaks()}var p6=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=ab,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Hk(r)||!Hk(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,h=(s[1]-o[1])/u,p=o[0]-i[0]*c,d=o[1]-a[0]*h,g=this._transform=[c,0,0,h,p,d];this._invTransform=Ec([],g)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Nt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Mi(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return Mi(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new Nt(a,o,s,l)},e}(d6),g6=function(t){Ye(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(V2),m6="expandAxisBreak",Ms=Math.PI,y6=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],_6=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],_f=Rr(),Vk=Rr(),Gk=function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t}();function b6(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=sb(t.axisName)&&yf(t.nameLocation);ne(n,function(g){var y=Ya(g);if(!(!y||y.label.ignore)){o.push(y);var w=a.transGroup;l&&(w.transform?Ec($h,w.transform):U0($h),y.transform&&Lc($h,$h,y.transform),Nt.copy(Eg,y.localRect),Eg.applyTransform($h),s?s.union(Eg):Nt.copy(s=new Nt(0,0,0,0),Eg))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(o.sort(function(g,y){return Math.abs(g.label[u]-c)-Math.abs(y.label[u]-c)}),l&&s){var h=i.getExtent(),p=Math.min(h[0],h[1]),d=Math.max(h[0],h[1])-p;s.union(new Nt(p,0,d,1))}a.stOccupiedRect=s,a.labelInfoList=o}var $h=es(),Eg=new Nt(0,0,0,0),Wk=function(t,e,r,n,i,a){if(yf(t.nameLocation)){var o=a.stOccupiedRect;o&&Uk(oW({},o,a.transGroup.transform),n,i)}else qk(a.labelInfoList,a.dirVec,n,i)};function Uk(t,e,r){var n=new wt;U1(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&sW(e,n)}function qk(t,e,r,n){for(var i=wt.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||Uk(s,r,n)}}var Is=function(){function t(e,r,n,i){this.group=new $r,this._axisModel=e,this._api=r,this._local={},this._shared=i||new Gk(Wk),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=ut(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=ut(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:ut(e.nameDirection,1),tickDirection:ut(e.tickDirection,1),labelDirection:ut(e.labelDirection,1),labelOffset:ut(e.labelOffset,0),silent:ut(e.silent,!0),axisName:i,nameLocation:vl(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:sb(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new $r({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new wt(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),ne(w6,function(i){e[i]&&x6[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=QC(r-e),a,o;return ap(i)?(o=n>0?"top":"bottom",a="center"):ap(i-Ms)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Ms?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),w6=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],x6={axisLine:function(t,e,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,c=[l[0],0],h=[l[1],0],p=c[0]>h[0];u&&(Mi(c,c,u),Mi(h,h,u));var d=We({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())Lg().buildAxisBreakLine(n,i,a,g);else{var y=new cs(We({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},g));uh(y.shape,y.style.lineWidth),y.anid="line",i.add(y)}var w=n.get(["axisLine","symbol"]);if(w!=null){var b=n.get(["axisLine","symbolSize"]);ct(w)&&(w=[w,w]),(ct(b)||sr(b))&&(b=[b,b]);var S=cD(n.get(["axisLine","symbolOffset"])||0,b),A=b[0],I=b[1];ne([{rotate:t.rotation+Math.PI/2,offset:S[0],r:0},{rotate:t.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(L,k){if(w[k]!=="none"&&w[k]!=null){var P=ms(w[k],-A/2,-I/2,A,I,d.stroke,!0),z=L.r+L.offset,F=p?h:c;P.attr({rotation:L.rotate,x:F[0]+z*Math.cos(t.rotation),y:F[1]-z*Math.sin(t.rotation),silent:!0,z2:11}),i.add(P)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=Xk(e,i,s);l&&Kk(t,e,r,n,i,a,o,sa.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=Xk(e,i,s);l&&Kk(t,e,r,n,i,a,o,sa.determine);var u=A6(t,i,a,n);C6(t,e.labelLayoutList,u),M6(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(sb(u)){var c=t.nameLocation,h=t.nameDirection,p=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,g=n.axis.getExtent(),y=n.axis.inverse?-1:1,w=new wt(0,0),b=new wt(0,0);c==="start"?(w.x=g[0]-y*d,b.x=-y):c==="end"?(w.x=g[1]+y*d,b.x=y):(w.x=(g[0]+g[1])/2,w.y=t.labelOffset+h*d,b.y=h);var S=es();b.transform(tC(S,S,t.rotation));var A=n.get("nameRotate");A!=null&&(A=A*Ms/180);var I,L;yf(c)?I=Is.innerTextLayout(t.rotation,A??t.rotation,h):(I=S6(t.rotation,c,A||0,g),L=t.raw.axisNameAvailableWidth,L!=null&&(L=Math.abs(L/Math.sin(I.rotation)),!isFinite(L)&&(L=null)));var k=p.getFont(),P=n.get("nameTruncate",!0)||{},z=P.ellipsis,F=kd(t.raw.nameTruncateMaxWidth,P.maxWidth,L),W=s.nameMarginLevel||0,G=new ci({x:w.x,y:w.y,rotation:I.rotation,silent:Is.isLabelSilent(n),style:ch(p,{text:u,font:k,overflow:"truncate",width:F,ellipsis:z,fill:p.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:p.get("align")||I.textAlign,verticalAlign:p.get("verticalAlign")||I.textVerticalAlign}),z2:1});if(Rp({el:G,componentModel:n,itemName:u}),G.__fullText=u,G.anid="name",n.get("triggerEvent")){var K=Is.makeAxisEventDataBase(n);K.targetType="axisName",K.name=u,vr(G).pptSuiteEventData=K}a.add(G),G.updateTransform(),e.nameEl=G;var q=l.nameLayout=Ya({label:G,priority:G.z2,defaultAttr:{ignore:G.ignore},marginDefault:yf(c)?y6[W]:_6[W]});if(l.nameLocation=c,i.add(G),G.decomposeTransform(),t.shouldNameMoveOverlap&&q){var ie=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,q,b,ie)}}}};function Kk(t,e,r,n,i,a,o,s){jk(e)||I6(t,e,i,s,n,o);var l=e.labelLayoutList;D6(t,n,l,a),E6(n,t.rotation,l);var u=t.optionHideOverlap;T6(n,l,u),u&&uW(qr(l,function(c){return c&&!c.label.ignore})),b6(t,r,n,l)}function S6(t,e,r,n){var i=QC(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return ap(i-Ms/2)?(o=l?"bottom":"top",a="center"):ap(i-Ms*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Ms*1.5&&i>Ms/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function T6(t,e,r){if(k2(t.axis))return;function n(s,l,u){var c=Ya(e[l]),h=Ya(e[u]);if(!(!c||!h)){if(s===!1||c.suggestIgnore){zh(c.label);return}if(h.suggestIgnore){zh(h.label);return}var p=.1;if(!r){var d=[0,0,0,0];c=X2({marginForce:d},c),h=X2({marginForce:d},h)}U1(c,h,null,{touchThreshold:p})&&zh(s?h.label:c.label)}}var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(i,0,1),n(a,o-1,o-2)}function C6(t,e,r){t.showMinorTicks||ne(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=Vk(a),s=_f(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){zh(a);return}}})}function zh(t){t&&(t.ignore=!0)}function Yk(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Mi(o,o,e),Mi(s,s,e));var c=new cs({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});uh(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,a.push(c);var h=Vk(c);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return a}function A6(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),c=Yk(u,r.transform,l,Wt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)e.add(c[h]);return c}function M6(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),c=Wt(l.getLineStyle(),Wt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var p=Yk(s[h],r.transform,u,c,"minorticks_"+h),d=0;d<p.length;d++)e.add(p[d])}}function Xk(t,e,r){if(jk(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),ob(t,null,null,null))}return!0}function I6(t,e,r,n,i,a){var o=i.axis,s=kd(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new $r;r.add(l);var u=xg(n);if(!s||o.scale.isBlank()){ob(e,[],l,u);return}var c=i.getModel("axisLabel"),h=o.getViewLabels(u),p=(kd(t.raw.labelRotate,c.get("rotate"))||0)*Ms/180,d=Is.innerTextLayout(t.rotation,p,t.labelDirection),g=i.getCategories&&i.getCategories(!0),y=[],w=i.get("triggerEvent"),b=1/0,S=-1/0;ne(h,function(I,L){var k,P=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(I.tickValue):I.tickValue,z=I.formattedLabel,F=I.rawLabel,W=c;if(g&&g[P]){var G=g[P];mt(G)&&G.textStyle&&(W=new Kr(G.textStyle,c,i.ecModel))}var K=W.getTextColor()||i.get(["axisLine","lineStyle","color"]),q=W.getShallow("align",!0)||d.textAlign,ie=ut(W.getShallow("alignMinLabel",!0),q),ve=ut(W.getShallow("alignMaxLabel",!0),q),ye=W.getShallow("verticalAlign",!0)||W.getShallow("baseline",!0)||d.textVerticalAlign,be=ut(W.getShallow("verticalAlignMinLabel",!0),ye),ue=ut(W.getShallow("verticalAlignMaxLabel",!0),ye),Me=10+(((k=I.time)===null||k===void 0?void 0:k.level)||0);b=Math.min(b,Me),S=Math.max(S,Me);var ke=new ci({x:0,y:0,rotation:0,silent:Is.isLabelSilent(i),z2:Me,style:ch(W,{text:z,align:L===0?ie:L===h.length-1?ve:q,verticalAlign:L===0?be:L===h.length-1?ue:ye,fill:St(K)?K(o.type==="category"?F:o.type==="value"?P+"":P,L):K})});ke.anid="label_"+P;var ce=_f(ke);if(ce.break=I.break,ce.tickValue=P,ce.layoutRotation=d.rotation,Rp({el:ke,componentModel:i,itemName:z,formatterParamsExtra:{isTruncated:function(){return ke.isTruncated},value:F,tickIndex:L}}),w){var fe=Is.makeAxisEventDataBase(i);fe.targetType="axisLabel",fe.value=F,fe.tickIndex=L,I.break&&(fe.break={start:I.break.parsedBreak.vmin,end:I.break.parsedBreak.vmax}),o.type==="category"&&(fe.dataIndex=P),vr(ke).pptSuiteEventData=fe,I.break&&L6(i,a,ke,I.break)}y.push(ke),l.add(ke)});var A=tt(y,function(I){return{label:I,priority:_f(I).break?I.z2+(S-b+1):I.z2,defaultAttr:{ignore:I.ignore}}});ob(e,A,l,u)}function jk(t){return!!t.labelLayoutList}function ob(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function D6(t,e,r,n){var i=e.get(["axisLabel","margin"]);ne(r,function(a,o){var s=Ya(a);if(s){var l=s.label,u=_f(l);s.suggestIgnore=l.ignore,l.ignore=!1,Qd(Do,k6),Do.x=e.axis.dataToCoord(u.tickValue),Do.y=t.labelOffset+t.labelDirection*i,Do.rotation=u.layoutRotation,n.add(Do),Do.updateTransform(),n.remove(Do),Do.decomposeTransform(),Qd(l,Do),l.markRedraw(),Cg(s,!0),Ya(s)}})}var Do=new zr,k6=new zr;function sb(t){return!!t}function L6(t,e,r,n){r.on("click",function(i){var a={type:m6,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function E6(t,e,r){var n=Un();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&_f(o.label).break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&ne(i,function(o){Lg().adjustBreakLabelPair(t.axis.inverse,e,[Ya(r[o[0]]),Ya(r[o[1]])])})}}function Zk(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(a){var d=a.toGlobalCoord(a.dataToCoord(0));p[c.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[l==="y"?p[c[s]]:u[0],l==="x"?p[c[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[o],i.labelOffset=a?p[c[o]]-p[c.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),kd(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-y:y,i.z2=1,i}function P6(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function Jk(t){var e={xAxisModel:null,yAxisModel:null};return ne(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,ki).models[0];e[n]=a}),e}function R6(t,e,r,n,i,a){for(var o=Zk(t,r),s=!1,l=!1,u=0;u<e.length;u++)R1(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Is(r,n,o,i)}function O6(t,e,r){var n=Zk(e,r);t.updateCfg(n)}function Qk(t,e,r){var n=ws.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,{expandToNicedExtent:!0}),o=i.length-1,s=n.getInterval.call(r),l=M2(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;t.type==="log"&&(u=N1(t.base,u,!0)),t.setBreaksFromOption(L2(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var p=n.getExtent.call(t);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var d=n.getInterval.call(t),g=u[0],y=u[1];if(c&&h)d=(y-g)/o;else if(c)for(y=u[0]+d*o;y<u[1]&&isFinite(y)&&isFinite(u[1]);)d=O1(d),y=u[0]+d*o;else if(h)for(g=u[1]-d*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=O1(d),g=u[1]-d*o;else{var w=t.getTicks().length-1;w>o&&(d=O1(d));var b=d*o;y=Math.ceil(u[1]/d)*d,g=sn(y-b),g<0&&u[0]>=0?(g=0,y=sn(b)):y>0&&u[1]<=0&&(y=0,g=-sn(b))}var S=(i[0].value-a[0].value)/s,A=(i[o].value-a[o].value)/s;n.setExtent.call(t,g+d*S,y+d*A),n.setInterval.call(t,d),(S||A)&&n.setNiceExtent.call(t,g+d,y-d)}var eL=[[3,1],[0,2]],B6=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ab,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Ut(o),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var p=+l[h],d=o[p],g=d.model,y=d.scale;R1(y)&&g.get("alignTicks")&&g.get("interval")==null?c.push(d):(I2(y,g),R1(y)&&(s=d))}c.length&&(s||(s=c.pop(),I2(s.scale,s.model)),ne(c,function(w){Qk(w.scale,w.model,s.scale)}))}}i(n.x),i(n.y);var a={};ne(n.x,function(o){tL(n,"y",o,a)}),ne(n.y,function(o){tL(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=Kp(e,r),a=this._rect=of(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(nL(o,a),!n){var u=F6(a,s,o,l,r),c=void 0;if(l)c=aL(a.clone(),"axisLabel",null,a,o,u,i);else{var h=$6(e,a,i),p=h.outerBoundsRect,d=h.parsedOuterBoundsContain,g=h.outerBoundsClamp;p&&(c=aL(p,d,g,a,o,u,i))}oL(a,o,sa.determine,null,c,i)}ne(this._coordsList,function(y){y.calcAffineTransform()})},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}mt(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",ki).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",ki).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Zt(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,ne(s.x,function(c,h){ne(s.y,function(p,d){var g="x"+h+"y"+d,y=new p6(g);y.master=i,y.model=e,i._coordsMap[g]=y,i._coordsList.push(y),y.addAxis(c),y.addAxis(p)})});function u(c){return function(h,p){if(lb(h,e)){var d=h.get("position");c==="x"?d!=="top"&&d!=="bottom"&&(d=o.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=o.left?"right":"left"),o[d]=!0;var g=new g6(c,BG(h),[0,0],h.get("type"),d),y=g.type==="category";g.onBand=y&&h.get("boundaryGap"),g.inverse=h.get("inverse"),h.axis=g,g.model=h,g.grid=a,g.index=p,a._axesList.push(g),s[c][p]=g,l[c]++}}}},t.prototype._updateScale=function(e,r){ne(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(P6(i)){var a=Jk(i),o=a.xAxisModel,s=a.yAxisModel;if(!lb(o,r)||!lb(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),h=l.getAxis("y");n(u,c),n(u,h)}},this);function n(i,a){ne(FG(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return ne(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);Zt(r,a)<0&&r.push(a),Zt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){Jz({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=Jk(i),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),c=u.coordinateSystem;return c.getCartesian(s.componentIndex,l.componentIndex)}}),n},t.dimensions=ab,t}();function lb(t,e){return t.getCoordSysModel()===e}function tL(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)rL(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&rL(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(h){return h.dim+"_"+h.index}}function rL(t){return t&&t.type!=="category"&&t.type!=="time"&&NG(t)}function N6(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function nL(t,e){ne(t.x,function(r){return iL(r,e.x,e.width)}),ne(t.y,function(r){return iL(r,e.y,e.height)})}function iL(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),N6(t,e)}function aL(t,e,r,n,i,a,o){oL(n,i,sa.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),c(n,0,NaN),c(n,1,NaN);var l=WT(s,function(p){return p>0})==null;return Pp(n,s,!0,!0,r),nL(i,n),l;function u(p){ne(i[hs[p]],function(d){if(Bh(d.model)){var g=a.ensureRecord(d.model),y=g.labelInfoList;if(y)for(var w=0;w<y.length;w++){var b=y[w],S=d.scale.normalize(_f(b.label).tickValue);S=p===1?1-S:S,c(b.rect,p,S),c(b.rect,1-p,NaN)}var A=g.nameLayout;if(A){var S=yf(g.nameLocation)?.5:NaN;c(A.rect,p,S),c(A.rect,1-p,NaN)}}})}function c(p,d,g){var y=t[hs[d]]-p[hs[d]],w=p[Qu[d]]+p[hs[d]]-(t[Qu[d]]+t[hs[d]]);y=h(y,1-g),w=h(w,g);var b=eL[d][0],S=eL[d][1];s[b]=ui(s[b],y),s[S]=ui(s[S],w)}function h(p,d){return p>0&&!Dc(d)&&d>1e-4&&(p/=d),p}}function F6(t,e,r,n,i){var a=new Gk(z6);return ne(r,function(o){return ne(o,function(s){if(Bh(s.model)){var l=!n;s.axisBuilder=R6(t,e,s.model,i,a,l)}})}),a}function oL(t,e,r,n,i,a){var o=r===sa.determine;ne(e,function(u){return ne(u,function(c){Bh(c.model)&&(O6(c.axisBuilder,t,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[hs[1-u]]=t[Qu[u]]<=a.refContainer[Qu[u]]*.5?0:1-u===1?2:1}ne(e,function(u,c){return ne(u,function(h){Bh(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function $6(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=of(t.get("outerBounds",!0)||Bk,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||Zt(["all","axisLabel"],a)<0?o="all":o=a;var s=[Py(ut(t.get("outerBoundsClampWidth",!0),kg[0]),e.width),Py(ut(t.get("outerBoundsClampHeight",!0),kg[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var z6=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";Wk(t,e,r,n,i,a),yf(t.nameLocation)||ne(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&qk(s.labelInfoList,s.dirVec,n,i)})};function H6(t){var e=sL(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=G6(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function sL(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[W6(t)]}function V6(t){var e=sL(t);return e&&e.axisPointerModel}function G6(t){return!!t.get(["handle","show"])}function W6(t){return t.type+"||"+t.id}var lL={},U6=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&H6(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=V6(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){lL[r]=n},e.getAxisPointerClass=function(r){return r&&lL[r]},e.type="axis",e}(Ao),ub=Rr();function q6(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=ub(t).splitAreaColors,p=kt(),d=0;if(h)for(var g=0;g<u.length;g++){var y=h.get(u[g].tickValue);if(y!=null){d=(y+(c-1)*g)%c;break}}var w=i.toGlobalCoord(u[0].coord),b=o.getAreaStyle();s=st(s)?s:[s];for(var g=1;g<u.length;g++){var S=i.toGlobalCoord(u[g].coord),A=void 0,I=void 0,L=void 0,k=void 0;i.isHorizontal()?(A=w,I=l.y,L=S-A,k=l.height,w=A+L):(A=l.x,I=w,L=l.width,k=S-I,w=I+k);var P=u[g-1].tickValue;P!=null&&p.set(P,d),e.add(new zr({anid:P!=null?"area_"+P:null,shape:{x:A,y:I,width:L,height:k},style:Wt({fill:s[d]},b),autoBatch:!0,silent:!0})),d=(d+1)%c}ub(t).splitAreaColors=p}}}function K6(t){ub(t).splitAreaColors=null}var Y6=["splitArea","splitLine","minorSplitLine","breakArea"],uL=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new $r,this.group.add(this._axisGroup),!!Bh(r)){this._axisGroup.add(r.axis.axisBuilder.group),ne(Y6,function(l){r.get([l,"show"])&&X6[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||MM(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){K6(this)},e.type="cartesianAxis",e}(U6),X6={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;l=st(l)?l:[l];for(var h=n.coordinateSystem.getRect(),p=a.isHorizontal(),d=0,g=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),y=[],w=[],b=s.getLineStyle(),S=0;S<g.length;S++){var A=a.toGlobalCoord(g[S].coord);if(!(S===0&&!u||S===g.length-1&&!c)){var I=g[S].tickValue;p?(y[0]=A,y[1]=h.y,w[0]=A,w[1]=h.y+h.height):(y[0]=h.x,y[1]=A,w[0]=h.x+h.width,w[1]=A);var L=d++%l.length,k=new cs({anid:I!=null?"line_"+I:null,autoBatch:!0,shape:{x1:y[0],y1:y[1],x2:w[0],y2:w[1]},style:Wt({stroke:l[L]},b),silent:!0});uh(k.shape,b.lineWidth),e.add(k)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var h=[],p=[],d=s.getLineStyle(),g=0;g<c.length;g++)for(var y=0;y<c[g].length;y++){var w=a.toGlobalCoord(c[g][y].coord);u?(h[0]=w,h[1]=l.y,p[0]=w,p[1]=l.y+l.height):(h[0]=l.x,h[1]=w,p[0]=l.x+l.width,p[1]=w);var b=new cs({anid:"minor_line_"+c[g][y].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:d,silent:!0});uh(b.shape,d.lineWidth),e.add(b)}},splitArea:function(t,e,r,n,i){q6(t,e,r,n)},breakArea:function(t,e,r,n,i){var a=Lg(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,n.coordinateSystem.getRect(),i)}},fL=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(uL),j6=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=fL.type,r}return e.type="yAxis",e}(uL),Z6=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new zr({shape:r.coordinateSystem.getRect(),style:Wt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Ao),cL={offset:0};function J6(t){t.registerComponentView(Z6),t.registerComponentModel(l6),t.registerCoordinateSystem("cartesian2d",B6),$k(t,"x",nb,cL),$k(t,"y",nb,cL),t.registerComponentView(fL),t.registerComponentView(j6),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Q6(t){Kl(J6),t.registerSeriesModel(n6),t.registerChartView(s6),t.registerLayout(J1("scatter"))}function eU(t){t.eachSeriesByType("radar",function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();ne(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var c=i.dataToPoint(l,s);n[u][s]=hL(c)?c:vL(i)})}),r.each(function(o){var s=WT(n[o],function(l){return hL(l)})||vL(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function hL(t){return!isNaN(t[0])&&!isNaN(t[1])}function vL(t){return[t.cx,t.cy]}function tU(t){var e=t.polar;if(e){st(e)||(e=[e]);var r=[];ne(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],st(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}ne(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var rU=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(p,d){var g=p.getItemVisual(d,"symbol")||"circle";if(g!=="none"){var y=fD(p.getItemVisual(d,"symbolSize")),w=ms(g,-1,-1,2,2),b=p.getItemVisual(d,"symbolRotate")||0;return w.attr({style:{strokeNoScale:!0},z2:100,scaleX:y[0]/2,scaleY:y[1]/2,rotation:b*Math.PI/180||0}),w}}function c(p,d,g,y,w,b){g.removeAll();for(var S=0;S<d.length-1;S++){var A=u(y,w);A&&(A.__dimIdx=S,p[S]?(A.setPosition(p[S]),gz[b?"initProps":"updateProps"](A,{x:d[S][0],y:d[S][1]},r,w)):A.setPosition(d[S]),g.add(A))}}function h(p){return tt(p,function(d){return[a.cx,a.cy]})}s.diff(l).add(function(p){var d=s.getItemLayout(p);if(d){var g=new ah,y=new Ol,w={shape:{points:d}};g.shape.points=h(d),y.shape.points=h(d),Wn(g,w,r,p),Wn(y,w,r,p);var b=new $r,S=new $r;b.add(y),b.add(g),b.add(S),c(y.shape.points,d,S,s,p,!0),s.setItemGraphicEl(p,b)}}).update(function(p,d){var g=l.getItemGraphicEl(d),y=g.childAt(0),w=g.childAt(1),b=g.childAt(2),S={shape:{points:s.getItemLayout(p)}};S.shape.points&&(c(y.shape.points,S.shape.points,b,s,p,!1),lh(w),lh(y),gn(y,S,r),gn(w,S,r),s.setItemGraphicEl(p,g))}).remove(function(p){o.remove(l.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,d){var g=s.getItemModel(d),y=p.childAt(0),w=p.childAt(1),b=p.childAt(2),S=s.getItemVisual(d,"style"),A=S.fill;o.add(p),y.useStyle(Wt(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:A})),ju(y,g,"lineStyle"),ju(w,g,"areaStyle");var I=g.getModel("areaStyle"),L=I.isEmpty()&&I.parentModel.isEmpty();w.ignore=L,ne(["emphasis","select","blur"],function(P){var z=g.getModel([P,"areaStyle"]),F=z.isEmpty()&&z.parentModel.isEmpty();w.ensureState(P).ignore=F&&L;var W=g.getModel([P,"lineStyle"]).getLineStyle();y.ensureState(P).style=W;var G=z.getAreaStyle();w.ensureState(P).style=G;var K=g.getModel([P,"itemStyle"]).getItemStyle();b.eachChild(function(q){q.ensureState(P).style=Vt(K)})}),w.useStyle(Wt(g.getModel("areaStyle").getAreaStyle(),{fill:A,opacity:.7,decal:S.decal}));var k=g.getModel("emphasis");b.eachChild(function(P){if(P instanceof ta){var z=P.style;P.useStyle(We({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},S))}else P.useStyle(S),P.setColor(A),P.style.strokeNoScale=!0;var F=s.getStore().get(s.getDimensionIndex(P.__dimIdx),d);(F==null||isNaN(F))&&(F=""),ef(P,tf(g),{labelFetcher:s.hostModel,labelDataIndex:d,labelDimIndex:P.__dimIdx,defaultText:F,inheritColor:A,defaultOpacity:S.opacity})}),Xu(p,k.get("focus"),k.get("blurScope"),k.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(qn),nU=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Pk(br(this.getData,this),br(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return Ek(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=qI(this,r);return Sh("section",{header:u,sortBlocks:!0,blocks:tt(s,function(h){var p=a.get(a.mapDimension(h.dim),r);return Sh("nameValue",{markerType:"subItem",markerColor:c,name:h.name,value:p,sortParam:p})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(tt(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(di),Hh=Fk.value;function Pg(t,e){return Wt({show:e},t)}var iU=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),p=this.get("triggerEvent"),d=tt(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var y=l;g.color!=null&&(y=Wt({color:g.color},l));var w=or(Vt(g),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:g.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:y,triggerEvent:p},!1);if(ct(c)){var b=w.name;w.name=c.replace("{value}",b??"")}else St(c)&&(w.name=c(w.name,w));var S=new Kr(w,null,this.ecModel);return Zi(S,E2.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:At.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:or({lineStyle:{color:At.color.neutral20}},Hh.axisLine),axisLabel:Pg(Hh.axisLabel,!1),axisTick:Pg(Hh.axisTick,!1),splitLine:Pg(Hh.splitLine,!0),splitArea:Pg(Hh.splitArea,!0),indicator:[]},e}(lr),aU=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r,i),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,n){var i=r.coordinateSystem,a=i.getIndicatorAxes(),o=tt(a,function(s){var l=s.model.get("showName")?s.name:"",u=new Is(s.model,n,{axisName:l,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});ne(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),h=s.get("show"),p=l.get("color"),d=u.get("color"),g=st(p)?p:[p],y=st(d)?d:[d],w=[],b=[];function S(ve,ye,be){var ue=be%ye.length;return ve[ue]=ve[ue]||[],ue}if(a==="circle")for(var A=i[0].getTicksCoords(),I=n.cx,L=n.cy,k=0;k<A.length;k++){if(c){var P=S(w,g,k);w[P].push(new rh({shape:{cx:I,cy:L,r:A[k].coord}}))}if(h&&k<A.length-1){var P=S(b,y,k);b[P].push(new Mp({shape:{cx:I,cy:L,r0:A[k].coord,r:A[k+1].coord}}))}}else for(var z,F=tt(i,function(ve,ye){var be=ve.getTicksCoords();return z=z==null?be.length-1:Math.min(be.length-1,z),tt(be,function(ue){return n.coordToPoint(ue.coord,ye)})}),W=[],k=0;k<=z;k++){for(var G=[],K=0;K<i.length;K++)G.push(F[K][k]);if(G[0]&&G.push(G[0].slice()),c){var P=S(w,g,k);w[P].push(new Ol({shape:{points:G}}))}if(h&&W){var P=S(b,y,k-1);b[P].push(new ah({shape:{points:G.concat(W)}}))}W=G.slice().reverse()}var q=l.getLineStyle(),ie=u.getAreaStyle();ne(b,function(ve,ye){this.group.add(T_(ve,{style:Wt({stroke:"none",fill:y[ye%y.length]},ie),silent:!0}))},this),ne(w,function(ve,ye){this.group.add(T_(ve,{style:Wt({fill:"none",stroke:g[ye%g.length]},q),silent:!0}))},this)},e.type="radar",e}(Ao),oU=function(t){Ye(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e}(V2),sU=function(){function t(e,r,n){this.dimensions=[],this._model=e,this._indicatorAxes=tt(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new oU(o,new ws);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],h=Math.abs(a-c.angle);h<o&&(s=c,l=u,o=h)}return[l,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,r){var n=Kp(e,r).refContainer,i=e.get("center"),a=Math.min(n.width,n.height)/2;this.cx=hr(i[0],n.width)+n.x,this.cy=hr(i[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(ct(o)||sr(o))&&(o=[0,o]),this.r0=hr(o[0],a),this.r=hr(o[1],a),ne(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},t.prototype.update=function(e,r){var n=this._indicatorAxes,i=this._model;ne(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();ne(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new ws;o.setExtent(0,a),o.setInterval(1),ne(n,function(s,l){Qk(s.scale,s.model,o)})},t.prototype.convertToPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var n=[];return e.eachComponent("radar",function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},t.dimensions=[],t}();function lU(t){t.registerCoordinateSystem("radar",sU),t.registerComponentModel(iU),t.registerComponentView(aU),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function uU(t){Kl(lU),t.registerChartView(rU),t.registerSeriesModel(nU),t.registerLayout(eU),t.registerProcessor(Mk("radar")),t.registerPreprocessor(tU)}function fU(t,e){var r=tI(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new zr({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var cU=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},fb=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),st(n)&&ne(n,function(a,o){ct(a)&&(a={type:a}),n[o]=or(a,cU(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var h=l.legendVisualProvider,p=h.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(p)),p.length?n=n.concat(p):c=!0}else c=!0;c&&By(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=kt(),s=tt(a,function(l){return(ct(l)||sr(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Kr(l,this,this.ecModel))},this);this._data=qr(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;ne(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;ne(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;ne(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Zt(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:At.size.m,align:"auto",backgroundColor:At.color.transparent,borderColor:At.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:At.color.disabled,inactiveBorderColor:At.color.disabled,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:At.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:At.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:At.color.tertiary,borderWidth:1,borderColor:At.color.border},emphasis:{selectorLabel:{show:!0,color:At.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(lr),bf=oi,cb=ne,Rg=$r,dL=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Rg),this.group.add(this._selectorGroup=new Rg),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=Kp(r,i).refContainer,h=r.getBoxLayoutParams(),p=r.get("padding"),d=of(h,c,p),g=this.layoutInner(r,o,d,a,l,u),y=of(Wt({width:g.width,height:g.height},h),c,p);this.group.x=y.x-g.x,this.group.y=y.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=fU(g,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=kt(),h=n.get("selectedMode"),p=n.get("triggerEvent"),d=[];i.eachRawSeries(function(g){!g.get("legendHoverLink")&&d.push(g.id)}),cb(n.getData(),function(g,y){var w=this,b=g.get("name");if(!this.newlineDisabled&&(b===""||b===`
|
|
93
|
+
`)){var S=new Rg;S.newline=!0,u.add(S);return}var A=i.getSeriesByName(b)[0];if(!c.get(b))if(A){var I=A.getData(),L=I.getVisual("legendLineStyle")||{},k=I.getVisual("legendIcon"),P=I.getVisual("style"),z=this._createItem(A,b,y,g,n,r,L,P,k,h,a);z.on("click",bf(pL,b,null,a,d)).on("mouseover",bf(hb,A.name,null,a,d)).on("mouseout",bf(vb,A.name,null,a,d)),i.ssr&&z.eachChild(function(F){var W=vr(F);W.seriesIndex=A.seriesIndex,W.dataIndex=y,W.ssrType="legend"}),p&&z.eachChild(function(F){w.packEventData(F,n,A,y,b)}),c.set(b,!0)}else i.eachRawSeries(function(F){var W=this;if(!c.get(b)&&F.legendVisualProvider){var G=F.legendVisualProvider;if(!G.containName(b))return;var K=G.indexOfName(b),q=G.getItemVisual(K,"style"),ie=G.getItemVisual(K,"legendIcon"),ve=Qi(q.fill);ve&&ve[3]===0&&(ve[3]=.2,q=We(We({},q),{fill:$c(ve,"rgba")}));var ye=this._createItem(F,b,y,g,n,r,{},q,ie,h,a);ye.on("click",bf(pL,null,b,a,d)).on("mouseover",bf(hb,null,b,a,d)).on("mouseout",bf(vb,null,b,a,d)),i.ssr&&ye.eachChild(function(be){var ue=vr(be);ue.seriesIndex=F.seriesIndex,ue.dataIndex=y,ue.ssrType="legend"}),p&&ye.eachChild(function(be){W.packEventData(be,n,F,y,b)}),c.set(b,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};vr(r).pptSuiteEventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();cb(r,function(u){var c=u.type,h=new ci({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var p=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);ef(h,{normal:p,emphasis:d},{defaultText:u.title}),h_(h)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,c,h,p){var d=r.visualDrawType,g=o.get("itemWidth"),y=o.get("itemHeight"),w=o.isSelected(n),b=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),A=a.get("icon");c=A||c||"roundRect";var I=hU(c,a,l,u,d,w,p),L=new Rg,k=a.getModel("textStyle");if(St(r.getLegendIcon)&&(!A||A==="inherit"))L.add(r.getLegendIcon({itemWidth:g,itemHeight:y,icon:c,iconRotate:b,itemStyle:I.itemStyle,lineStyle:I.lineStyle,symbolKeepAspect:S}));else{var P=A==="inherit"&&r.getData().getVisual("symbol")?b==="inherit"?r.getData().getVisual("symbolRotate"):b:0;L.add(vU({itemWidth:g,itemHeight:y,icon:c,iconRotate:P,itemStyle:I.itemStyle,symbolKeepAspect:S}))}var z=s==="left"?g+5:-5,F=s,W=o.get("formatter"),G=n;ct(W)&&W?G=W.replace("{name}",n??""):St(W)&&(G=W(n));var K=w?k.getTextColor():a.get("inactiveColor");L.add(new ci({style:ch(k,{text:G,x:z,y:y/2,fill:K,align:F,verticalAlign:"middle"},{inheritColor:K})}));var q=new zr({shape:L.getBoundingRect(),style:{fill:"transparent"}}),ie=a.getModel("tooltip");return ie.get("show")&&Rp({el:q,componentModel:o,itemName:n,itemTooltipOption:ie.option}),L.add(q),L.eachChild(function(ve){ve.silent=!0}),q.silent=!h,this.getContentGroup().add(L),h_(L),L.__legendDataIndex=i,L},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();dh(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){dh("horizontal",u,r.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],g=r.get("selectorButtonGap",!0),y=r.getOrient().index,w=y===0?"width":"height",b=y===0?"height":"width",S=y===0?"y":"x";s==="end"?d[y]+=c[w]+g:h[y]+=p[w]+g,d[1-y]+=c[b]/2-p[b]/2,u.x=d[0],u.y=d[1],l.x=h[0],l.y=h[1];var A={x:0,y:0};return A[w]=c[w]+g+p[w],A[b]=Math.max(c[b],p[b]),A[S]=Math.min(0,p[S]+d[1-y]),A}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ao);function hU(t,e,r,n,i,a,o){function s(w,b){w.lineWidth==="auto"&&(w.lineWidth=b.lineWidth>0?2:0),cb(w,function(S,A){w[A]==="inherit"&&(w[A]=b[A])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:v1(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var g=e.get("inactiveBorderWidth"),y=u[c];u.lineWidth=g==="auto"?n.lineWidth>0&&y?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function vU(t){var e=t.icon||"roundRect",r=ms(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=At.color.neutral00,r.style.lineWidth=2),r}function pL(t,e,r,n){vb(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),hb(t,e,r,n)}function gL(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function hb(t,e,r,n){gL(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function vb(t,e,r,n){gL(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function dU(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function Vh(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),mL(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){ne(i,function(l,u){s[l?"select":"unSelect"](u)}),mL(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function mL(t,e){var r=e||{};return ne(t.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
94
|
+
`||i==="")){var a=t.isSelected(i);Pa(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function pU(t){t.registerAction("legendToggleSelect","legendselectchanged",oi(Vh,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",oi(Vh,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",oi(Vh,"inverseSelect")),t.registerAction("legendSelect","legendselected",oi(Vh,"select")),t.registerAction("legendUnSelect","legendunselected",oi(Vh,"unSelect"))}function yL(t){t.registerComponentModel(fb),t.registerComponentView(dL),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,dU),t.registerSubTypeDefaulter("legend",function(){return"plain"}),pU(t)}var gU=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=mh(r);t.prototype.init.call(this,r,n,i),_L(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),_L(this,this.option,r)},e.type="legend.scroll",e.defaultOption=VM(fb.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:At.color.accent50,pageIconInactiveColor:At.color.accent10,pageIconSize:15,pageTextStyle:{color:At.color.tertiary},animationDurationUpdate:800}),e}(fb);function _L(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,ds(e,r,{type:"box",ignoreSize:!!i})}var bL=$r,db=["width","height"],pb=["x","y"],mU=function(t){Ye(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new bL),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new bL)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,h=n.get("pageIconSize",!0),p=st(h)?h:[h,h];g("pagePrev",0);var d=n.getModel("pageTextStyle");c.add(new ci({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(y,w){var b=y+"DataIndex",S=IM(n.get("pageIcons",!0)[n.getOrient().name][w],{onclick:br(u._pageGo,u,b,n,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});S.name=y,c.add(S)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=db[u],h=pb[u],p=db[1-u],d=pb[1-u];o&&dh("horizontal",l,r.get("selectorItemGap",!0));var g=r.get("selectorButtonGap",!0),y=l.getBoundingRect(),w=[-y.x,-y.y],b=Vt(i);o&&(b[c]=i[c]-y[c]-g);var S=this._layoutContentAndController(r,a,b,u,c,p,d,h);if(o){if(s==="end")w[u]+=S[c]+g;else{var A=y[c]+g;w[u]-=A,S[h]-=A}S[c]+=y[c]+g,w[1-u]+=S[d]+S[p]/2-y[p]/2,S[p]=Math.max(S[p],y[p]),S[d]=Math.min(S[d],y[d]+w[1-u]),l.x=w[0],l.y=w[1],l.markRedraw()}return S},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,p=this._controllerGroup;dh(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),dh("horizontal",p,r.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),g=p.getBoundingRect(),y=this._showController=d[o]>i[o],w=[-d.x,-d.y];n||(w[a]=c[u]);var b=[0,0],S=[-g.x,-g.y],A=ut(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(y){var I=r.get("pageButtonPosition",!0);I==="end"?S[a]+=i[o]-g[o]:b[a]+=g[o]+A}S[1-a]+=d[s]/2-g[s]/2,c.setPosition(w),h.setPosition(b),p.setPosition(S);var L={x:0,y:0};if(L[o]=y?i[o]:d[o],L[s]=Math.max(d[s],g[s]),L[l]=Math.min(0,g[l]+S[1-a]),h.__rectSize=i[o],y){var k={x:0,y:0};k[o]=Math.max(i[o]-g[o]-A,0),k[s]=L[s],h.setClipPath(new zr({shape:k})),h.__rectSize=k[o]}else p.eachChild(function(z){z.attr({invisible:!0,silent:!0})});var P=this._getPageInfo(r);return P.pageIndex!=null&&gn(c,{x:P.contentPosition[0],y:P.contentPosition[1]},y?r:null),this._updatePageInfoView(r,P),L},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;ne(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",p=n[h]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=p?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",ct(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=db[o],l=pb[o],u=this._findTargetItemIndex(n),c=i.children(),h=c[u],p=c.length,d=p?1:0,g={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return g;var y=I(h);g.contentPosition[o]=-y.s;for(var w=u+1,b=y,S=y,A=null;w<=p;++w)A=I(c[w]),(!A&&S.e>b.s+a||A&&!L(A,b.s))&&(S.i>b.i?b=S:b=A,b&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=b.i),++g.pageCount)),S=A;for(var w=u-1,b=y,S=y,A=null;w>=-1;--w)A=I(c[w]),(!A||!L(S,A.s))&&b.i<S.i&&(S=b,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=b.i),++g.pageCount,++g.pageIndex),b=A;return g;function I(k){if(k){var P=k.getBoundingRect(),z=P[l]+k[l];return{s:z,e:z+P[s],i:k.__legendDataIndex}}}function L(k,P){return k.e>=P&&k.s<=P+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e}(dL);function yU(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function _U(t){Kl(yL),t.registerComponentModel(gU),t.registerComponentView(mU),yU(t)}function bU(t){Kl(yL),Kl(_U)}var gb=Math.sin,mb=Math.cos,wL=Math.PI,Xl=Math.PI*2,wU=180/wL,xL=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,l){var u=s-o,c=!l,h=Math.abs(u),p=is(h-Xl)||(c?u>=Xl:-u>=Xl),d=u>0?u%Xl:u%Xl+Xl,g=!1;p?g=!0:is(h)?g=!1:g=d>=wL==!!c;var y=e+n*mb(o),w=r+i*gb(o);this._start&&this._add("M",y,w);var b=Math.round(a*wU);if(p){var S=1/this._p,A=(c?1:-1)*(Xl-S);this._add("A",n,i,b,1,+c,e+n*mb(o+A),r+i*gb(o+A)),S>.01&&this._add("A",n,i,b,0,+c,y,w)}else{var I=e+n*mb(s),L=r+i*gb(s);this._add("A",n,i,b,+g,+c,I,L)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),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(e,r,n,i,a,o,s,l,u){for(var c=[],h=this._p,p=1;p<arguments.length;p++){var d=arguments[p];if(isNaN(d)){this._invalid=!0;return}c.push(Math.round(d*h)/h)}this._d.push(e+c.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),yb="none",xU=Math.round;function SU(t){var e=t.fill;return e!=null&&e!==yb}function TU(t){var e=t.stroke;return e!=null&&e!==yb}var _b=["lineCap","miterLimit","lineJoin"],CU=tt(_b,function(t){return"stroke-"+t.toLowerCase()});function AU(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof ta){t("opacity",i);return}if(SU(e)){var a=zc(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;o<1&&t("fill-opacity",o)}else t("fill",yb);if(TU(e)){var s=zc(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if(u!==1&&t("stroke-width",u),h&&t("paint-order",h?"stroke":"fill"),c<1&&t("stroke-opacity",c),e.lineDash){var p=f1(r),d=p[0],g=p[1];d&&(g=xU(g||0),t("stroke-dasharray",d.join(",")),(g||n)&&t("stroke-dashoffset",g))}for(var y=0;y<_b.length;y++){var w=_b[y];if(e[w]!==dp[w]){var b=e[w]||dp[w];b&&t(CU[y],b)}}}}var SL="http://www.w3.org/2000/svg",TL="http://www.w3.org/1999/xlink",MU="http://www.w3.org/2000/xmlns/",IU="http://www.w3.org/XML/1998/namespace",CL="ecmeta_";function AL(t){return document.createElementNS(SL,t)}function Yr(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function DU(t,e){var r=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function kU(t){return"</"+t+">"}function bb(t,e){e=e||{};var r=e.newline?`
|
|
95
|
+
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return DU(o,s)+(o!=="style"?xF(l):l||"")+(a?""+r+tt(a,function(u){return n(u)}).join(r)+r:"")+kU(o)}return n(t)}function LU(t,e,r){r=r||{};var n=r.newline?`
|
|
96
|
+
`:"",i=" {"+n,a=n+"}",o=tt(Ut(t),function(l){return l+i+tt(Ut(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=tt(Ut(e),function(l){return"@keyframes "+l+i+tt(Ut(e[l]),function(u){return u+i+tt(Ut(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function wb(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ML(t,e,r,n){return Yr("svg","root",{width:t,height:e,xmlns:SL,"xmlns:xlink":TL,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var EU=0;function IL(){return EU++}var DL={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"},jl="transform-origin";function PU(t,e,r){var n=We({},t.shape);We(n,e),t.buildPath(r,n);var i=new xL;return i.reset(LC(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function RU(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[jl]=r+"px "+n+"px")}var OU={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function kL(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function BU(t,e,r){var n=t.shape.paths,i={},a,o;if(ne(n,function(l){var u=wb(r.zrId);u.animation=!0,Og(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,p=Ut(c),d=p.length;if(d){o=p[d-1];var g=c[o];for(var y in g){var w=g[y];i[y]=i[y]||{d:""},i[y].d+=w.d||""}for(var b in h){var S=h[b].animation;S.indexOf(o)>=0&&(a=S)}}}),!!a){e.d=!1;var s=kL(i,r);return a.replace(o,s)}}function LL(t){return ct(t)?DL[t]?"cubic-bezier("+DL[t]+")":Q0(t)?t:"":""}function Og(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof mM){var s=BU(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],p=LL(c.getClip().easing),d=c.getDelay();p?h.push(p):h.push("linear"),d&&h.push(d/1e3+"s"),c.getLoop()&&h.push("infinite");var g=h.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(c)}function y(S){var A=S[1],I=A.length,L={},k={},P={},z="animation-timing-function";function F(dt,$e,Tt){for(var rt=dt.getTracks(),$=dt.getMaxTime(),J=0;J<rt.length;J++){var se=rt[J];if(se.needsAnimate()){var Te=se.keyframes,xe=se.propName;if(Tt&&(xe=Tt(xe)),xe)for(var we=0;we<Te.length;we++){var de=Te[we],le=Math.round(de.time/$*100)+"%",Se=LL(de.easing),pe=de.rawValue;(ct(pe)||sr(pe))&&($e[le]=$e[le]||{},$e[le][xe]=de.rawValue,Se&&($e[le][z]=Se))}}}}for(var W=0;W<I;W++){var G=A[W],K=G.targetName;K?K==="shape"&&F(G,k):!n&&F(G,L)}for(var q in L){var ie={};Qd(ie,t),We(ie,L[q]);var ve=EC(ie),ye=L[q][z];P[q]=ve?{transform:ve}:{},RU(P[q],ie),ye&&(P[q][z]=ye)}var be,ue=!0;for(var q in k){P[q]=P[q]||{};var Me=!be,ye=k[q][z];Me&&(be=new ls);var ke=be.len();be.reset(),P[q].d=PU(t,k[q],be);var ce=be.len();if(!Me&&ke!==ce){ue=!1;break}ye&&(P[q][z]=ye)}if(!ue)for(var q in P)delete P[q].d;if(!n)for(var W=0;W<I;W++){var G=A[W],K=G.targetName;K==="style"&&F(G,P,function(rt){return OU[rt]})}for(var fe=Ut(P),Pe=!0,Qe,W=1;W<fe.length;W++){var Ae=fe[W-1],Oe=fe[W];if(P[Ae][jl]!==P[Oe][jl]){Pe=!1;break}Qe=P[Ae][jl]}if(Pe&&Qe){for(var q in P)P[q][jl]&&delete P[q][jl];e[jl]=Qe}if(qr(fe,function(dt){return Ut(P[dt]).length>0}).length){var lt=kL(P,r);return lt+" "+S[0]+" both"}}for(var w in l){var s=y(l[w]);s&&o.push(s)}if(o.length){var b=r.zrId+"-cls-"+IL();r.cssNodes["."+b]={animation:o.join(",")},e.class=b}}function NU(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};EL(n,e,r)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=oy(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),EL(n,e,r)}}function EL(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+IL(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=t),e.class=e.class?e.class+" "+a:a}var Gh=Math.round;function PL(t){return t&&ct(t.src)}function RL(t){return t&&St(t.toDataURL)}function xb(t,e,r,n){AU(function(i,a){var o=i==="fill"||i==="stroke";o&&kC(a)?zL(e,t,i,n):o&&ly(a)?HL(r,t,i,n):t[i]=a,o&&n.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),WU(r,t,n)}function Sb(t,e){var r=P3(e);r&&(r.each(function(n,i){n!=null&&(t[(CL+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[CL+"silent"]="true"))}function OL(t){return is(t[0]-1)&&is(t[1])&&is(t[2])&&is(t[3]-1)}function FU(t){return is(t[4])&&is(t[5])}function Tb(t,e,r){if(e&&!(FU(e)&&OL(e))){var n=1e4;t.transform=OL(e)?"translate("+Gh(e[4]*n)/n+" "+Gh(e[5]*n)/n+")":e3(e)}}function BL(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(Gh(n[a][0]*r)/r),i.push(Gh(n[a][1]*r)/r);e.points=i.join(" ")}function NL(t){return!t.smooth}function $U(t){var e=tt(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(n[o[1]]=Gh(s*i)/i)}}}var zU={circle:[$U(["cx","cy","r"])],polyline:[BL,NL],polygon:[BL,NL]};function HU(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function FL(t,e){var r=t.style,n=t.shape,i=zU[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&LC(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&HU(t))&&!(l<1)){s=t.type;var c=Math.pow(10,u);i[0](n,a,c)}else{var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;h&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var d=p.getVersion(),g=t,y=g.__svgPathBuilder;(g.__svgPathVersion!==d||!y||l!==g.__svgPathStrokePercent)&&(y||(y=g.__svgPathBuilder=new xL),y.reset(u),p.rebuildPath(y,l),y.generateStr(),g.__svgPathVersion=d,g.__svgPathStrokePercent=l),a.d=y.getStr()}return Tb(a,t.transform),xb(a,r,t,e),Sb(a,t),e.animation&&Og(t,a,e),e.emphasis&&NU(t,a,e),Yr(s,t.id+"",a)}function VU(t,e){var r=t.style,n=r.image;if(n&&!ct(n)&&(PL(n)?n=n.src:RL(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),Tb(l,t.transform),xb(l,r,t,e),Sb(l,t),e.animation&&Og(t,l,e),Yr("image",t.id+"",l)}}function GU(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||yo,a=r.x||0,o=r3(r.y||0,Wc(i),r.textBaseline),s=t3[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(OA(r)){var u="",c=r.fontStyle,h=PA(r.fontSize);if(!parseFloat(h))return;var p=r.fontFamily||FT,d=r.fontWeight;u+="font-size:"+h+";font-family:"+p+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),d&&d!=="normal"&&(u+="font-weight:"+d+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Tb(l,t.transform),xb(l,r,t,e),Sb(l,t),e.animation&&Og(t,l,e),Yr("text",t.id+"",l,void 0,n)}}function $L(t,e){if(t instanceof Kt)return FL(t,e);if(t instanceof ta)return VU(t,e);if(t instanceof eh)return GU(t,e)}function WU(t,e,r){var n=t.style;if(n3(n)){var i=i3(t),a=r.shadowCache,o=a[i];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,h=n.shadowOffsetY||0,p=n.shadowBlur,d=zc(n.shadowColor),g=d.opacity,y=d.color,w=p/2/l,b=p/2/u,S=w+" "+b;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Yr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Yr("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:S,"flood-color":y,"flood-opacity":g})]),a[i]=o}e.filter=Ud(o)}}function zL(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(IC(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(DC(i))a="radialGradient",o.cx=ut(i.x,.5),o.cy=ut(i.y,.5),o.r=ut(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=sy(s[u].offset)*100+"%",p=s[u].color,d=zc(p),g=d.color,y=d.opacity,w={offset:h};w["stop-color"]=g,y<1&&(w["stop-opacity"]=y),l.push(Yr("stop",u+"",w))}var b=Yr(a,"",o,l),S=bb(b),A=n.gradientCache,I=A[S];I||(I=n.zrId+"-g"+n.gradientIdx++,A[S]=I,o.id=I,n.defs[I]=Yr(a,I,o,l)),e[r]=Ud(I)}function HL(t,e,r,n){var i=t.style[r],a=t.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",h;if(MC(i)){var p=i.imageWidth,d=i.imageHeight,g=void 0,y=i.image;if(ct(y)?g=y:PL(y)?g=y.src:RL(y)&&(g=y.toDataURL()),typeof Image>"u"){var w="Image width/height must been given explictly in svg-ssr renderer.";Ea(p,w),Ea(d,w)}else if(p==null||d==null){var b=function(W,G){if(W){var K=W.elm,q=p||G.width,ie=d||G.height;W.tag==="pattern"&&(u?(ie=1,q/=a.width):c&&(q=1,ie/=a.height)),W.attrs.width=q,W.attrs.height=ie,K&&(K.setAttribute("width",q),K.setAttribute("height",ie))}},S=zy(g,null,t,function(W){l||b(k,W),b(h,W)});S&&S.width&&S.height&&(p=p||S.width,d=d||S.height)}h=Yr("image","img",{href:g,width:p,height:d}),o.width=p,o.height=d}else i.svgElement&&(h=Vt(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(h){var A,I;l?A=I=1:u?(I=1,A=o.width/a.width):c?(A=1,I=o.height/a.height):o.patternUnits="userSpaceOnUse",A!=null&&!isNaN(A)&&(o.width=A),I!=null&&!isNaN(I)&&(o.height=I);var L=EC(i);L&&(o.patternTransform=L);var k=Yr("pattern","",o,[h]),P=bb(k),z=n.patternCache,F=z[P];F||(F=n.zrId+"-p"+n.patternIdx++,z[P]=F,o.id=F,k=n.defs[F]=Yr("pattern",F,o,[h])),e[r]=Ud(F)}}function UU(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=Yr("clipPath",a,o,[FL(t,r)])}e["clip-path"]=Ud(a)}function VL(t){return document.createTextNode(t)}function Zl(t,e,r){t.insertBefore(e,r)}function GL(t,e){t.removeChild(e)}function WL(t,e){t.appendChild(e)}function UL(t){return t.parentNode}function qL(t){return t.nextSibling}function Cb(t,e){t.textContent=e}var KL=58,qU=120,KU=Yr("","");function Ab(t){return t===void 0}function Xa(t){return t!==void 0}function YU(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function Wh(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Uh(t){var e,r=t.children,n=t.tag;if(Xa(n)){var i=t.elm=AL(n);if(Mb(KU,t),st(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&WL(i,Uh(a))}else Xa(t.text)&&!mt(t.text)&&WL(i,VL(t.text))}else t.elm=VL(t.text);return t.elm}function YL(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Zl(t,Uh(a),e)}}function Bg(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(Xa(i.tag)){var a=UL(i.elm);GL(a,i.elm)}else GL(t,i.elm)}}function Mb(t,e){var r,n=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==qU?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(MU,r,o):r.charCodeAt(3)===KL?n.setAttributeNS(IU,r,o):r.charCodeAt(5)===KL?n.setAttributeNS(TL,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function XU(t,e,r){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],c=r[l],h,p,d,g;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=r[++i]:c==null?c=r[--l]:Wh(o,u)?(wf(o,u),o=e[++n],u=r[++i]):Wh(s,c)?(wf(s,c),s=e[--a],c=r[--l]):Wh(o,c)?(wf(o,c),Zl(t,o.elm,qL(s.elm)),o=e[++n],c=r[--l]):Wh(s,u)?(wf(s,u),Zl(t,s.elm,o.elm),s=e[--a],u=r[++i]):(Ab(h)&&(h=YU(e,n,a)),p=h[u.key],Ab(p)?Zl(t,Uh(u),o.elm):(d=e[p],d.tag!==u.tag?Zl(t,Uh(u),o.elm):(wf(d,u),e[p]=void 0,Zl(t,d.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(g=r[l+1]==null?null:r[l+1].elm,YL(t,g,r,i,l)):Bg(t,e,n,a))}function wf(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(Mb(t,e),Ab(e.text)?Xa(n)&&Xa(i)?n!==i&&XU(r,n,i):Xa(i)?(Xa(t.text)&&Cb(r,""),YL(r,null,i,0,i.length-1)):Xa(n)?Bg(r,n,0,n.length-1):Xa(t.text)&&Cb(r,""):t.text!==e.text&&(Xa(n)&&Bg(r,n,0,n.length-1),Cb(r,e.text)))}function jU(t,e){if(Wh(t,e))wf(t,e);else{var r=t.elm,n=UL(r);Uh(e),n!==null&&(Zl(n,e.elm,qL(r)),Bg(n,[t],0,0))}return e}var ZU=0,JU=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=XL(),this.configLayer=XL(),this.storage=r,this._opts=n=We({},n),this.root=e,this._id="zr"+ZU++,this._oldVNode=ML(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=AL("svg");Mb(null,this._oldVNode),i.appendChild(a),e.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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",jU(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return $L(e,wb(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=wb(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=QU(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Yr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=tt(Ut(a.defs),function(p){return a.defs[p]});if(u.length&&o.push(Yr("defs","defs",{},u)),e.animation){var c=LU(a.cssNodes,a.cssAnims,{newline:!0});if(c){var h=Yr("style","stl",{},[],c);o.push(h)}}return ML(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},bb(this.renderToVNode({animation:ut(e.cssAnimation,!0),emphasis:ut(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ut(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var h=e[c];if(!h.invisible){var p=h.__clipPaths,d=p&&p.length||0,g=l&&l.length||0,y=void 0;for(y=Math.max(d-1,g-1);y>=0&&!(p&&l&&p[y]===l[y]);y--);for(var w=g-1;w>y;w--)o--,s=a[o-1];for(var b=y+1;b<d;b++){var S={};UU(p[b],S,r);var A=Yr("g","clip-g-"+u++,S,[]);(s?s.children:n).push(A),a[o++]=A,s=A}l=p;var I=$L(h,r);I&&(s?s.children:n).push(I)}}},t.prototype.resize=function(e,r){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),i&&a&&(a.style.display="none",e=vD(i,0,n),r=vD(i,1,n),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(ly(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=o3(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t}();function XL(t){return function(){}}function QU(t,e,r,n){var i;if(r&&r!=="none")if(i=Yr("rect","bg",{width:t,height:e,x:"0",y:"0"}),kC(r))zL({fill:r},i.attrs,"fill",n);else if(ly(r))HL({style:{fill:r},dirty:si,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=zc(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function e9(t){t.registerPainter("svg",JU)}const t9=Ir(cr({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColors:{},textColor:{},lineColor:{},options:{}},setup(t){Kl([qW,LW,r6,Q6,uU,bU,e9]);const e=t;let r=null,n=null;const i=Ma("chartRef"),a=Ke(()=>{let s=[];if(e.themeColors.length>=10)s=e.themeColors;else if(e.themeColors.length===1)s=ot(e.themeColors[0]).analogous(10).map(l=>l.toRgbString());else{const l=e.themeColors.length,u=ot(e.themeColors[l-1]).analogous(11-l).map(c=>c.toRgbString());s=[...e.themeColors.slice(0,l-1),...u]}return s}),o=()=>{var l,u;const s=V5({type:e.type,data:e.data,themeColors:a.value,textColor:e.textColor,lineColor:e.lineColor,lineSmooth:((l=e.options)==null?void 0:l.lineSmooth)||!1,stack:((u=e.options)==null?void 0:u.stack)||!1});s&&r.setOption(s,!0)};return el(()=>{if(r=kV(i.value,null,{renderer:"svg"}),o(),typeof ResizeObserver<"u"&&i.value){const s=()=>r.resize();n=new ResizeObserver(s),n.observe(i.value)}}),Du(()=>{n==null||n.disconnect(),r==null||r.dispose(),r=null}),Ti(()=>e.type,o),Ti(()=>e.data,o),Ti(()=>e.themeColors,o),Ti(()=>e.textColor,o),(s,l)=>(Fe(),it("div",{class:"chart",ref_key:"chartRef",ref:i},null,512))}}),[["__scopeId","data-v-84b6a43a"]]),r9=Ir(cr({__name:"BaseChartElement",props:{elementInfo:{},target:{}},setup(t){return(e,r)=>(Fe(),it("div",{class:An(["base-element-chart",{"is-thumbnail":t.target==="thumbnail"}]),style:ft({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[me("div",{class:"rotate-wrapper",style:ft({transform:`rotate(${t.elementInfo.rotate}deg)`})},[me("div",{class:"element-content",style:ft({backgroundColor:t.elementInfo.fill})},[Cr(BT,{width:t.elementInfo.width,height:t.elementInfo.height,outline:t.elementInfo.outline},null,8,["width","height","outline"]),Cr(t9,{width:t.elementInfo.width,height:t.elementInfo.height,type:t.elementInfo.chartType,data:t.elementInfo.data,themeColors:t.elementInfo.themeColors,textColor:t.elementInfo.textColor,lineColor:t.elementInfo.lineColor,options:t.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","lineColor","options"])],4)],4)],6))}}),[["__scopeId","data-v-cdab124a"]]),n9=(t,e,r)=>Math.max((t==null?void 0:t[e])||r,r),i9=(t,e)=>({backgroundColor:(e==null?void 0:e.backcolor)||"",borderStyle:t.style,borderColor:t.color,borderWidth:t.width+"px"}),a9=(t,e)=>{const{color:r,fontsize:n,fontname:i,align:a,vAlign:o}=e||{};return{color:r||"#000",fontSize:n||"14px",fontFamily:i||"",justifyContent:{top:"flex-start",middle:"center",bottom:"flex-end"}[o||"top"],textAlign:a||"left",minHeight:t-4+"px"}},o9=t=>({hideCells:Ke(()=>{const r=[];for(let n=0;n<t.value.length;n++){const i=t.value[n];for(let a=0;a<i.length;a++){const o=i[a];if(o.colspan>1||o.rowspan>1)for(let s=n;s<n+o.rowspan;s++)for(let l=s===n?a+1:a;l<a+o.colspan;l++)r.push(`${s}_${l}`)}}return r})}),s9=t=>{const e=Dt(["",""]);return Ti(()=>t.value,()=>{t.value&&(e.value=WN(t.value.color))},{immediate:!0}),{subThemeColor:e}},l9=["width"],u9=["rowspan","colspan"],f9=["innerHTML"],c9=Ir(cr({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},rowHeights:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(t){const e=t,r=Dt([]),n=Ke(()=>r.value.reduce((u,c)=>u+c)),i=u=>n9(e.rowHeights,u,e.cellMinHeight);Ti([()=>e.colWidths,()=>e.width],()=>{r.value=e.colWidths.map(u=>u*e.width)},{immediate:!0});const a=Ke(()=>e.data),{hideCells:o}=o9(a),s=Ke(()=>e.theme),{subThemeColor:l}=s9(s);return(u,c)=>{var h,p,d,g,y;return Fe(),it("div",{class:"static-table",style:ft({width:n.value+"px"})},[me("table",{class:An({theme:s.value,"row-header":(h=s.value)==null?void 0:h.rowHeader,"row-footer":(p=s.value)==null?void 0:p.rowFooter,"col-header":(d=s.value)==null?void 0:d.colHeader,"col-footer":(g=s.value)==null?void 0:g.colFooter}),style:ft(`--themeColor: ${(y=s.value)==null?void 0:y.color}; --subThemeColor1: ${et(l)[0]}; --subThemeColor2: ${et(l)[1]}`)},[me("colgroup",null,[(Fe(!0),it(Jr,null,Uo(r.value,(w,b)=>(Fe(),it("col",{span:"1",key:b,width:w},null,8,l9))),128))]),me("tbody",null,[(Fe(!0),it(Jr,null,Uo(t.data,(w,b)=>(Fe(),it("tr",{key:b,style:ft({height:i(b)+"px"})},[(Fe(!0),it(Jr,null,Uo(w,(S,A)=>Dx((Fe(),it("td",{class:"cell",style:ft(et(i9)(t.outline,S.style)),key:S.id,rowspan:S.rowspan,colspan:S.colspan},[me("div",{class:"cell-text",style:ft(et(a9)(i(b),S.style))},[me("div",{class:"cell-text-content",innerHTML:S.text},null,8,f9)],4)],12,u9)),[[BS,!et(o).includes(`${b}_${A}`)]])),128))],4))),128))])],6)],4)}}}),[["__scopeId","data-v-c09e0e36"]]),h9={class:"element-content"},v9=Ir(cr({__name:"BaseTableElement",props:{elementInfo:{}},setup(t){return(e,r)=>(Fe(),it("div",{class:"base-element-table",style:ft({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px"})},[me("div",{class:"rotate-wrapper",style:ft({transform:`rotate(${t.elementInfo.rotate}deg)`})},[me("div",h9,[Cr(c9,{data:t.elementInfo.data,width:t.elementInfo.width,cellMinHeight:t.elementInfo.cellMinHeight,rowHeights:t.elementInfo.rowHeights,colWidths:t.elementInfo.colWidths,outline:t.elementInfo.outline,theme:t.elementInfo.theme},null,8,["data","width","cellMinHeight","rowHeights","colWidths","outline","theme"])])],4)],4))}}),[["__scopeId","data-v-d4fe75cb"]]),d9={class:"element-content"},p9=["width","height","stroke","stroke-width"],g9=["transform"],m9=["d"],y9=Ir(cr({__name:"BaseLatexElement",props:{elementInfo:{}},setup(t){const e=t,r=Ke(()=>{var i;return(i=e.elementInfo.viewBox)!=null&&i[0]?e.elementInfo.width/e.elementInfo.viewBox[0]:1}),n=Ke(()=>{var i;return(i=e.elementInfo.viewBox)!=null&&i[1]?e.elementInfo.height/e.elementInfo.viewBox[1]:1});return(i,a)=>(Fe(),it("div",{class:"base-element-latex",style:ft({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[me("div",{class:"rotate-wrapper",style:ft({transform:`rotate(${t.elementInfo.rotate}deg)`})},[me("div",d9,[(Fe(),it("svg",{overflow:"visible",width:t.elementInfo.width,height:t.elementInfo.height,stroke:t.elementInfo.color,"stroke-width":t.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[me("g",{transform:`scale(${r.value}, ${n.value}) translate(0,0) matrix(1,0,0,1,0,0)`},[me("path",{d:t.elementInfo.path},null,8,m9)],8,g9)],8,p9))])],4)],4))}}),[["__scopeId","data-v-311e9d67"]]),_9={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function b9(t,e){return Fe(),it("svg",_9,[...e[0]||(e[0]=[me("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[me("path",{d:"M24 6v36c-7 0-12.201-9.16-12.201-9.16H6a2 2 0 0 1-2-2V17.01a2 2 0 0 1 2-2h5.799S17 6 24 6Z"}),me("path",{"stroke-linecap":"round",d:"M32 15a12 12 0 0 1 1.684 1.859A12.07 12.07 0 0 1 36 24c0 2.654-.846 5.107-2.278 7.09A12 12 0 0 1 32 33"})],-1)])])}const jL=Fn({name:"icon-park-outline-volume-small",render:b9}),w9={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function x9(t,e){return Fe(),it("svg",w9,[...e[0]||(e[0]=[me("g",{fill:"none",stroke:"currentColor","stroke-width":"4"},[me("path",{"stroke-linejoin":"round",d:"M24 6v36c-7 0-12.201-9.16-12.201-9.16H6a2 2 0 0 1-2-2V17.01a2 2 0 0 1 2-2h5.799S17 6 24 6Z"}),me("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M32 15a12 12 0 0 1 1.684 1.859A12.07 12.07 0 0 1 36 24c0 2.654-.846 5.107-2.278 7.09A12 12 0 0 1 32 33"}),me("path",{"stroke-linecap":"round",d:"M34.236 41.186C40.084 37.696 44 31.305 44 24c0-7.192-3.796-13.496-9.493-17.02"})],-1)])])}const Ib=Fn({name:"icon-park-outline-volume-notice",render:x9}),S9={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},T9=["id"],C9={fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},A9=["mask"];function M9(t,e){return Fe(),it("svg",S9,[me("mask",{id:t.idMap.SVGLLP5OdyS,width:"13",height:"13",x:"30",y:"18",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"}},[...e[0]||(e[0]=[me("path",{fill:"currentColor",d:"M30 18h13v13H30z"},null,-1)])],8,T9),me("g",C9,[me("g",{"stroke-linecap":"round",mask:"url(#"+t.idMap.SVGLLP5OdyS+")"},[...e[1]||(e[1]=[me("path",{d:"m40.735 20.286l-8.486 8.485m.001-8.485l8.485 8.485"},null,-1)])],8,A9),e[2]||(e[2]=me("path",{d:"M24 6v36c-7 0-12.201-9.16-12.201-9.16H6a2 2 0 0 1-2-2V17.01a2 2 0 0 1 2-2h5.799S17 6 24 6Z"},null,-1))])])}const ZL=Fn({name:"icon-park-outline-volume-mute",render:M9,setup(){return{idMap:{SVGLLP5OdyS:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),I9={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function D9(t,e){return Fe(),it("svg",I9,[...e[0]||(e[0]=[me("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4",d:"M15 24V11.876l10.5 6.062L36 24l-10.5 6.062L15 36.124z"},null,-1)])])}const JL=Fn({name:"icon-park-outline-play-one",render:D9}),k9={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function L9(t,e){return Fe(),it("svg",k9,[...e[0]||(e[0]=[me("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M16 12v24m16-24v24"},null,-1)])])}const QL=Fn({name:"icon-park-outline-pause",render:L9}),E9=(t,e)=>{let r=!1,n=null,i=null,a=null;el(()=>{const o=e.value;if(!o||r)return;n=o;let s="normal";if(/m3u8(#|\?|$)/i.exec(t)?s="hls":/.flv(#|\?|$)/i.exec(t)&&(s="flv"),s==="hls"&&(o.canPlayType("application/x-mpegURL")||o.canPlayType("application/vnd.apple.mpegURL"))&&(s="normal"),s==="hls"){const l=window.Hls;l&&l.isSupported()&&!r&&o.isConnected&&(i=new l,i.loadSource(t),!r&&e.value===o&&o.isConnected&&i.attachMedia(o))}else if(s==="flv"){const l=window.flvjs;l&&l.isSupported()&&!r&&o.isConnected&&(a=l.createPlayer({type:"flv",url:t}),a.attachMediaElement(o),!r&&e.value===o&&o.isConnected&&a.load())}}),Du(()=>{var s,l,u,c,h,p;r=!0;const o=n;if(i){try{(s=i.detachMedia)==null||s.call(i)}catch{}try{(l=i.destroy)==null||l.call(i)}catch{}i=null}if(a){try{(u=a.pause)==null||u.call(a)}catch{}try{(c=a.unload)==null||c.call(a)}catch{}if(o)try{(h=a.detachMediaElement)==null||h.call(a)}catch{}try{(p=a.destroy)==null||p.call(a)}catch{}a=null}if(o&&o.isConnected)try{o.pause()}catch{}n=null})},P9={key:0,class:"load-error"},R9=["src","autoplay","poster"],O9={class:"bezel"},B9={class:"controller"},N9={class:"icons icons-left"},F9={class:"icon-content"},$9={class:"volume"},z9={class:"icon-content"},H9={class:"time"},V9={class:"ptime"},G9={class:"dtime"},W9={class:"icons icons-right"},U9={class:"speed"},q9={class:"icon speed-icon"},K9=["onClick"],Y9={class:"icon-content"},X9={class:"bar"},j9=Ir(cr({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(t,{expose:e}){const r=t,n=(de=0)=>{if(de===0||isNaN(de))return"00:00";const le=He=>He<10?"0"+He:""+He,Se=Math.floor(de/3600),pe=Math.floor((de-Se*3600)/60),Ze=Math.floor(de-Se*3600-pe*60);return(Se>0?[Se,pe,Ze]:[pe,Ze]).map(le).join(":")},i=de=>de.getBoundingClientRect().left,a=Ma("videoRef"),o=Ma("playBarWrapRef"),s=Ma("volumeBarRef"),l=Dt(.5),u=Dt(!0),c=Dt(0),h=Dt(0),p=Dt(0),d=Dt(!1),g=Dt(!1),y=Dt(1),w=Dt(!1),b=Dt("00:00"),S=Dt("0"),A=Ke(()=>n(c.value)),I=Ke(()=>n(h.value)),L=Ke(()=>c.value/h.value*100+"%"),k=Ke(()=>p.value/h.value*100+"%"),P=Ke(()=>l.value*100+"%"),z=Dt(!1),F=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],W=de=>{a.value&&(de=Math.max(de,0),de=Math.min(de,h.value),a.value.currentTime=de,c.value=de)},G=()=>{if(Te)return;const de=a.value;if(!de||!de.isConnected)return;u.value=!1;const le=de.play();le&&typeof le.catch=="function"&&le.catch(()=>{}),g.value=!0},K=()=>{a.value&&(u.value=!0,a.value.pause(),g.value=!0)},q=()=>{u.value?G():K()},ie=de=>{a.value&&(de=Math.max(de,0),de=Math.min(de,1),a.value.volume=de,l.value=de,a.value.muted&&de!==0&&(a.value.muted=!1))},ve=de=>{a.value&&(a.value.playbackRate=de),y.value=de},ye=()=>{var de;h.value=((de=a.value)==null?void 0:de.duration)||0},be=()=>{var de;c.value=((de=a.value)==null?void 0:de.currentTime)||0},ue=()=>{d.value?(W(0),G()):K()},Me=()=>{var de;p.value=(de=a.value)!=null&&de.buffered.length?a.value.buffered.end(a.value.buffered.length-1):0},ke=Dt(!1),ce=()=>ke.value=!0,fe=de=>{if(!a.value||!o.value)return;let Se=(("clientX"in de?de.clientX:de.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;Se=Math.max(Se,0),Se=Math.min(Se,1);const pe=Se*h.value;a.value.currentTime=pe,c.value=pe},Pe=de=>{if(!a.value||!o.value)return;let Se=(("clientX"in de?de.clientX:de.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;Se=Math.max(Se,0),Se=Math.min(Se,1);const pe=Se*h.value;a.value.currentTime=pe,c.value=pe,document.removeEventListener("mousemove",fe),document.removeEventListener("touchmove",fe),document.removeEventListener("mouseup",Pe),document.removeEventListener("touchend",Pe)},Qe=()=>{document.addEventListener("mousemove",fe),document.addEventListener("touchmove",fe),document.addEventListener("mouseup",Pe),document.addEventListener("touchend",Pe)},Ae=de=>{if(!s.value)return;const Se=(("clientX"in de?de.clientX:de.changedTouches[0].clientX)-i(s.value))/45;ie(Se)},Oe=()=>{document.removeEventListener("mousemove",Ae),document.removeEventListener("touchmove",Ae),document.removeEventListener("mouseup",Oe),document.removeEventListener("touchend",Oe)},lt=()=>{document.addEventListener("mousemove",Ae),document.addEventListener("touchmove",Ae),document.addEventListener("mouseup",Oe),document.addEventListener("touchend",Oe)},dt=de=>{if(!s.value)return;const le=(de.clientX-i(s.value))/45;ie(le)},$e=de=>{if(h.value&&o.value){const le=o.value.getBoundingClientRect().left,Se=de.clientX-le;if(Se<0||Se>o.value.offsetWidth)return;const pe=h.value*(Se/o.value.offsetWidth);S.value=`${Se-(pe>=3600?25:20)}px`,b.value=n(pe),w.value=!0}},Tt=()=>{a.value&&(a.value.muted?(a.value.muted=!1,ie(.5)):(a.value.muted=!0,ie(0)))},rt=()=>{d.value=!d.value},$=Dt(-1),J=Dt(!1),se=()=>{J.value=!1,clearTimeout($.value),$.value=setTimeout(()=>{var de;(de=a.value)!=null&&de.played.length&&(J.value=!0)},3e3)};let Te=!1,xe=null;const we=Ma("bgCanvasRef");return el(()=>{const de=we.value,le=a.value;if(!de||!le)return;const Se=de.getContext("2d");Se&&le.addEventListener("loadedmetadata",()=>{if(Te)return;const pe=a.value,Ze=we.value;if(!pe||!Ze||!pe.isConnected||!Ze.isConnected)return;const He=()=>{if(Te)return;const nt=a.value,Be=we.value;if(!(!nt||!Be||!nt.isConnected||!Be.isConnected))try{Se.drawImage(nt,0,0,Be.width,Be.height)}catch{}};typeof pe.requestVideoFrameCallback=="function"?xe=pe.requestVideoFrameCallback(He):He()},{once:!0})}),Du(()=>{Te=!0,clearTimeout($.value);const de=a.value;if(de&&xe!==null&&typeof de.cancelVideoFrameCallback=="function")try{de.cancelVideoFrameCallback(xe)}catch{}document.removeEventListener("mousemove",fe),document.removeEventListener("touchmove",fe),document.removeEventListener("mouseup",Pe),document.removeEventListener("touchend",Pe),document.removeEventListener("mousemove",Ae),document.removeEventListener("touchmove",Ae),document.removeEventListener("mouseup",Oe),document.removeEventListener("touchend",Oe),a.value&&a.value.isConnected&&a.value.pause()}),E9(r.src,a),e({pauseVideo:K}),(de,le)=>{const Se=QL,pe=JL,Ze=ZL,He=Ib,nt=jL;return Fe(),it("div",{class:An(["video-player",{"hide-controller":J.value}]),style:ft({width:t.width*t.scale+"px",height:t.height*t.scale+"px",transform:`scale(${1/t.scale})`}),onMousemove:le[22]||(le[22]=Be=>se()),onClick:le[23]||(le[23]=Be=>se())},[me("div",{class:"video-wrap",onClick:le[8]||(le[8]=Be=>q())},[ke.value?(Fe(),it("div",P9,"视频加载失败")):Sr("",!0),me("canvas",{ref_key:"bgCanvasRef",ref:we,class:"bg-canvas"},null,512),me("video",{class:"video",ref_key:"videoRef",ref:a,src:t.src,autoplay:t.autoplay,poster:t.poster,"webkit-playsinline":"",playsinline:"",crossOrigin:"anonymous",onDurationchange:le[0]||(le[0]=Be=>ye()),onTimeupdate:le[1]||(le[1]=Be=>be()),onEnded:le[2]||(le[2]=Be=>ue()),onProgress:le[3]||(le[3]=Be=>Me()),onPlay:le[4]||(le[4]=Be=>{se(),u.value=!1}),onPause:le[5]||(le[5]=Be=>se()),onError:le[6]||(le[6]=Be=>ce())},null,40,R9),me("div",O9,[me("span",{class:An(["bezel-icon",{"bezel-transition":g.value}]),onAnimationend:le[7]||(le[7]=Be=>g.value=!1)},[u.value?(Fe(),Xt(Se,{key:0})):(Fe(),Xt(pe,{key:1}))],34)])]),le[27]||(le[27]=me("div",{class:"controller-mask"},null,-1)),me("div",B9,[me("div",N9,[me("div",{class:"icon play-icon",onClick:le[9]||(le[9]=Be=>q())},[me("span",F9,[u.value?(Fe(),Xt(pe,{key:0})):(Fe(),Xt(Se,{key:1}))])]),me("div",$9,[me("div",{class:"icon volume-icon",onClick:le[10]||(le[10]=Be=>Tt())},[me("span",z9,[l.value===0?(Fe(),Xt(Ze,{key:0})):l.value===1?(Fe(),Xt(He,{key:1})):(Fe(),Xt(nt,{key:2}))])]),me("div",{class:"volume-bar-wrap",onMousedown:le[11]||(le[11]=Be=>lt()),onTouchstart:le[12]||(le[12]=Be=>lt()),onClick:le[13]||(le[13]=Be=>dt(Be))},[me("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[me("div",{class:"volume-bar-inner",style:ft({width:P.value})},[...le[24]||(le[24]=[me("span",{class:"thumb"},null,-1)])],4)],512)],32)]),me("span",H9,[me("span",V9,Nn(A.value),1),le[25]||(le[25]=l0(" / ",-1)),me("span",G9,Nn(I.value),1)])]),me("div",W9,[me("div",U9,[me("div",q9,[me("span",{class:"icon-content",onClick:le[14]||(le[14]=Be=>z.value=!z.value)},Nn(y.value===1?"倍速":y.value+"x"),1),z.value?(Fe(),it("div",{key:0,class:"speed-menu",onMouseleave:le[15]||(le[15]=Be=>z.value=!1)},[(Fe(),it(Jr,null,Uo(F,Be=>me("div",{class:An(["speed-menu-item",{active:Be.value===y.value}]),key:Be.label,onClick:xt=>ve(Be.value)},Nn(Be.label),11,K9)),64))],32)):Sr("",!0)])]),me("div",{class:"loop",onClick:le[16]||(le[16]=Be=>rt())},[me("div",{class:An(["icon loop-icon",{active:d.value}])},[me("span",Y9,"循环"+Nn(d.value?"开":"关"),1)],2)])]),me("div",{class:"bar-wrap",ref_key:"playBarWrapRef",ref:o,onMousedown:le[17]||(le[17]=Be=>Qe()),onTouchstart:le[18]||(le[18]=Be=>Qe()),onMousemove:le[19]||(le[19]=Be=>$e(Be)),onMouseenter:le[20]||(le[20]=Be=>w.value=!0),onMouseleave:le[21]||(le[21]=Be=>w.value=!1)},[me("div",{class:An(["bar-time",{hidden:!w.value}]),style:ft({left:S.value})},Nn(b.value),7),me("div",X9,[me("div",{class:"loaded",style:ft({width:k.value})},null,4),me("div",{class:"played",style:ft({width:L.value})},[...le[26]||(le[26]=[me("span",{class:"thumb"},null,-1)])],4)])],544)])],38)}}}),[["__scopeId","data-v-cee71123"]]),Z9={class:"element-content"},J9=Ir(cr({__name:"ScreenVideoElement",props:{elementInfo:{}},setup(t){const{currentSlide:e}=Xo(jo()),r=Aa(T0)||Dt(1),n=Aa(C0)||Dt(""),i=Ke(()=>e.value.id===n.value),a=Ma("playerRef");return Ti(i,o=>{!o&&a.value&&a.value.pauseVideo()}),(o,s)=>(Fe(),it("div",{class:"base-element-video screen-element-video",style:ft({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[me("div",{class:"rotate-wrapper",style:ft({transform:`rotate(${t.elementInfo.rotate}deg)`})},[me("div",Z9,[Dx(Cr(j9,{ref_key:"playerRef",ref:a,width:t.elementInfo.width,height:t.elementInfo.height,src:t.elementInfo.src,poster:t.elementInfo.poster,autoplay:t.elementInfo.autoplay,scale:et(r)},null,8,["width","height","src","poster","autoplay","scale"]),[[BS,i.value]])])],4)],4))}}),[["__scopeId","data-v-c97c1d3a"]]),Q9={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function eq(t,e){return Fe(),it("svg",Q9,[...e[0]||(e[0]=[me("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"m14 14l20 20m-20 0l20-20"},null,-1)])])}const tq=Fn({name:"icon-park-outline-close-small",render:eq}),rq={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"};function nq(t,e){return Fe(),it("svg",rq,[...e[0]||(e[0]=[me("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M4 24c0 11.046 8.954 20 20 20s20-8.954 20-20S35.046 4 24 4"},null,-1)])])}const iq=Fn({name:"icon-park-outline-loading-four",render:nq}),aq={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},oq=["id"],sq=["mask"];function lq(t,e){return Fe(),it("svg",aq,[me("defs",null,[me("mask",{id:t.idMap.SVGX9qUOAmp},[...e[0]||(e[0]=[me("g",{fill:"none"},[me("path",{fill:"#fff",stroke:"#fff","stroke-linejoin":"round","stroke-width":"4",d:"M24 44a19.94 19.94 0 0 0 14.142-5.858A19.94 19.94 0 0 0 44 24a19.94 19.94 0 0 0-5.858-14.142A19.94 19.94 0 0 0 24 4A19.94 19.94 0 0 0 9.858 9.858A19.94 19.94 0 0 0 4 24a19.94 19.94 0 0 0 5.858 14.142A19.94 19.94 0 0 0 24 44Z"}),me("path",{fill:"#000","fill-rule":"evenodd",d:"M24 11a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5","clip-rule":"evenodd"}),me("path",{stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M24.5 34V20h-2M21 34h7"})],-1)])],8,oq)]),me("path",{fill:"currentColor",d:"M0 0h48v48H0z",mask:"url(#"+t.idMap.SVGX9qUOAmp+")"},null,8,sq)])}const uq=Fn({name:"icon-park-solid-info",render:lq,setup(){return{idMap:{SVGX9qUOAmp:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),fq={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},cq=["id"],hq=["mask"];function vq(t,e){return Fe(),it("svg",fq,[me("defs",null,[me("mask",{id:t.idMap.SVG55HJweZj},[...e[0]||(e[0]=[me("g",{fill:"none","stroke-linejoin":"round","stroke-width":"4"},[me("path",{fill:"#fff",stroke:"#fff",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20Z"}),me("path",{stroke:"#000","stroke-linecap":"round",d:"M29.657 18.343L18.343 29.657m0-11.314l11.314 11.314"})],-1)])],8,cq)]),me("path",{fill:"currentColor",d:"M0 0h48v48H0z",mask:"url(#"+t.idMap.SVG55HJweZj+")"},null,8,hq)])}const dq=Fn({name:"icon-park-solid-close-one",render:vq,setup(){return{idMap:{SVG55HJweZj:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),pq={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},gq=["id"],mq=["mask"];function yq(t,e){return Fe(),it("svg",pq,[me("defs",null,[me("mask",{id:t.idMap.SVGIQLGgV2F},[...e[0]||(e[0]=[me("g",{fill:"none","stroke-linejoin":"round","stroke-width":"4"},[me("path",{fill:"#fff",stroke:"#fff",d:"M24 44a19.94 19.94 0 0 0 14.142-5.858A19.94 19.94 0 0 0 44 24a19.94 19.94 0 0 0-5.858-14.142A19.94 19.94 0 0 0 24 4A19.94 19.94 0 0 0 9.858 9.858A19.94 19.94 0 0 0 4 24a19.94 19.94 0 0 0 5.858 14.142A19.94 19.94 0 0 0 24 44Z"}),me("path",{stroke:"#000","stroke-linecap":"round",d:"m16 24l6 6l12-12"})],-1)])],8,gq)]),me("path",{fill:"currentColor",d:"M0 0h48v48H0z",mask:"url(#"+t.idMap.SVGIQLGgV2F+")"},null,8,mq)])}const _q=Fn({name:"icon-park-solid-check-one",render:yq,setup(){return{idMap:{SVGIQLGgV2F:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),bq={class:"i-icon",viewBox:"0 0 48 48",width:"1em",height:"1em"},wq=["id"],xq=["mask"];function Sq(t,e){return Fe(),it("svg",bq,[me("defs",null,[me("mask",{id:t.idMap.SVGkYaseeMx},[...e[0]||(e[0]=[me("g",{fill:"none"},[me("path",{fill:"#fff",stroke:"#fff","stroke-linejoin":"round","stroke-width":"4",d:"M24 44a19.94 19.94 0 0 0 14.142-5.858A19.94 19.94 0 0 0 44 24a19.94 19.94 0 0 0-5.858-14.142A19.94 19.94 0 0 0 24 4A19.94 19.94 0 0 0 9.858 9.858A19.94 19.94 0 0 0 4 24a19.94 19.94 0 0 0 5.858 14.142A19.94 19.94 0 0 0 24 44Z"}),me("path",{fill:"#000","fill-rule":"evenodd",d:"M24 37a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5","clip-rule":"evenodd"}),me("path",{stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"4",d:"M24 12v16"})],-1)])],8,wq)]),me("path",{fill:"currentColor",d:"M0 0h48v48H0z",mask:"url(#"+t.idMap.SVGkYaseeMx+")"},null,8,xq)])}const Tq=Fn({name:"icon-park-solid-attention",render:Sq,setup(){return{idMap:{SVGkYaseeMx:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),Cq=["id"],Aq={class:"icons"},Mq={class:"content"},Iq={key:0,class:"title"},Dq={class:"description"},kq={key:0,class:"control"},Lq=Ir(cr({__name:"Message",props:{id:{},message:{},type:{default:"success"},title:{default:""},duration:{default:3e3},closable:{type:Boolean,default:!1}},emits:["close","destroy"],setup(t,{expose:e,emit:r}){const n=t,i=r,a=Dt(!0),o=Dt(null),s=()=>{n.duration<=0||(o.value=setTimeout(u,n.duration))},l=()=>{o.value&&clearTimeout(o.value)},u=()=>a.value=!1;return Hx(()=>{l()}),el(()=>{s()}),e({close:u}),(c,h)=>{const p=Tq,d=_q,g=dq,y=uq,w=iq,b=tq;return Fe(),Xt(XO,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:h[3]||(h[3]=S=>i("close")),onAfterLeave:h[4]||(h[4]=S=>i("destroy"))},{default:Ix(()=>[a.value?(Fe(),it("div",{key:0,class:"message",id:t.id},[me("div",{class:"message-container",onMouseenter:h[1]||(h[1]=S=>l()),onMouseleave:h[2]||(h[2]=S=>s())},[me("div",Aq,[t.type==="warning"?(Fe(),Xt(p,{key:0,style:{"font-size":"18px",color:"#faad14"}})):Sr("",!0),t.type==="success"?(Fe(),Xt(d,{key:1,style:{"font-size":"18px",color:"#52c41a"}})):Sr("",!0),t.type==="error"?(Fe(),Xt(g,{key:2,style:{"font-size":"18px",color:"#ff4d4f"}})):Sr("",!0),t.type==="info"?(Fe(),Xt(y,{key:3,style:{"font-size":"18px",color:"#1677ff"}})):Sr("",!0),t.type==="loading"?(Fe(),Xt(w,{key:4,class:"loading-icon",style:{"font-size":"18px",color:"#d14424"}})):Sr("",!0)]),me("div",Mq,[t.title?(Fe(),it("div",Iq,Nn(t.title),1)):Sr("",!0),me("div",Dq,Nn(t.message),1)]),t.closable?(Fe(),it("div",kq,[me("span",{class:"close-btn",onClick:h[0]||(h[0]=S=>u())},[Cr(b)])])):Sr("",!0)],32)],8,Cq)):Sr("",!0)]),_:1})}}}),[["__scopeId","data-v-bfd00cce"]]),Db=[];let ja=null,Eq=0;const Pq={duration:3e3},pi=t=>{const e="message-"+Eq++,r={...Pq,...t,id:e};ja||(ja=document.createElement("div"),ja.className="message-wrap",ja.style.cssText=`
|
|
97
|
+
width: 100%;
|
|
98
|
+
position: fixed;
|
|
99
|
+
top: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
z-index: 6000;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
padding: 15px;
|
|
107
|
+
background-color: rgba(255, 255, 255, 0);
|
|
108
|
+
transition: all 1s ease-in-out;
|
|
109
|
+
align-items: center;
|
|
110
|
+
`,document.body.appendChild(ja));const n=Cr(Lq,r,null),i=document.createElement("div");n.appContext=t.ctx||pi._context||null,n.props.onClose=t.onClose,n.props.onDestroy=()=>{ja&&ja.childNodes.length<=1&&(ja.remove(),ja=null),US(null,i)},US(n,i),ja.appendChild(i.firstElementChild);const a={id:e,close:()=>{var o,s;return(s=(o=n==null?void 0:n.component)==null?void 0:o.exposed)==null?void 0:s.close()}};return Db.push(a),a};pi.success=(t,e)=>pi({...e,type:"success",message:t}),pi.info=(t,e)=>pi({...e,type:"info",message:t}),pi.warning=(t,e)=>pi({...e,type:"warning",message:t}),pi.error=(t,e)=>pi({...e,type:"error",message:t}),pi.loading=(t,e)=>pi({...e,type:"loading",message:t}),pi.closeAll=function(){for(let t=Db.length-1;t>=0;t--)Db[t].close()};const Rq=["src","autoplay"],Oq={class:"controller"},Bq={class:"icons"},Nq={class:"icon-content"},Fq={class:"volume"},$q={class:"icon-content"},zq={class:"time"},Hq={class:"ptime"},Vq={class:"dtime"},Gq={class:"bar"},Wq=Ir(cr({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(t,{expose:e}){const r=t,n=(Ae=0)=>{if(Ae===0||isNaN(Ae))return"00:00";const Oe=Tt=>Tt<10?"0"+Tt:""+Tt,lt=Math.floor(Ae/3600),dt=Math.floor((Ae-lt*3600)/60),$e=Math.floor(Ae-lt*3600-dt*60);return(lt>0?[lt,dt,$e]:[dt,$e]).map(Oe).join(":")},i=Ae=>Ae.getBoundingClientRect().left,a=Ma("audioRef"),o=Ma("playBarWrapRef"),s=Ma("volumeBarRef"),l=Dt(.5),u=Dt(!0),c=Dt(0),h=Dt(0),p=Dt(0),d=Dt(!1),g=Dt("00:00"),y=Dt("0"),w=Ke(()=>n(c.value)),b=Ke(()=>n(h.value)),S=Ke(()=>c.value/h.value*100+"%"),A=Ke(()=>p.value/h.value*100+"%"),I=Ke(()=>l.value*100+"%"),L=Ae=>{a.value&&(Ae=Math.max(Ae,0),Ae=Math.min(Ae,h.value),a.value.currentTime=Ae,c.value=Ae)},k=()=>{if(!a.value)return;u.value=!1;const Ae=a.value.play();Ae&&typeof Ae.catch=="function"&&Ae.catch(()=>{})},P=()=>{a.value&&(u.value=!0,a.value.pause())},z=()=>{u.value?k():P()},F=Ae=>{a.value&&(Ae=Math.max(Ae,0),Ae=Math.min(Ae,1),a.value.volume=Ae,l.value=Ae,a.value.muted&&Ae!==0&&(a.value.muted=!1))},W=()=>{var Ae;h.value=((Ae=a.value)==null?void 0:Ae.duration)||0},G=()=>{var Ae;c.value=((Ae=a.value)==null?void 0:Ae.currentTime)||0},K=()=>{u.value=!1},q=()=>{r.loop?(L(0),k()):P()},ie=()=>{var Ae;p.value=(Ae=a.value)!=null&&Ae.buffered.length?a.value.buffered.end(a.value.buffered.length-1):0},ve=()=>pi.error("视频加载失败"),ye=Ae=>{if(!a.value||!o.value)return;let lt=(("clientX"in Ae?Ae.clientX:Ae.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;lt=Math.max(lt,0),lt=Math.min(lt,1);const dt=lt*h.value;a.value.currentTime=dt,c.value=dt},be=Ae=>{if(!a.value||!o.value)return;let lt=(("clientX"in Ae?Ae.clientX:Ae.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;lt=Math.max(lt,0),lt=Math.min(lt,1);const dt=lt*h.value;a.value.currentTime=dt,c.value=dt,document.removeEventListener("mousemove",ye),document.removeEventListener("touchmove",ye),document.removeEventListener("mouseup",be),document.removeEventListener("touchend",be)},ue=()=>{document.addEventListener("mousemove",ye),document.addEventListener("touchmove",ye),document.addEventListener("mouseup",be),document.addEventListener("touchend",be)},Me=Ae=>{if(!s.value)return;const lt=(("clientX"in Ae?Ae.clientX:Ae.changedTouches[0].clientX)-i(s.value))/45;F(lt)},ke=()=>{document.removeEventListener("mousemove",Me),document.removeEventListener("touchmove",Me),document.removeEventListener("mouseup",ke),document.removeEventListener("touchend",ke)},ce=()=>{document.addEventListener("mousemove",Me),document.addEventListener("touchmove",Me),document.addEventListener("mouseup",ke),document.addEventListener("touchend",ke)},fe=Ae=>{if(!s.value)return;const Oe=(Ae.clientX-i(s.value))/45;F(Oe)},Pe=Ae=>{if(h.value&&o.value){const Oe=o.value.getBoundingClientRect().left,lt=Ae.clientX-Oe;if(lt<0||lt>o.value.offsetWidth)return;const dt=h.value*(lt/o.value.offsetWidth);y.value=`${lt-(dt>=3600?25:20)}px`,g.value=n(dt),d.value=!0}},Qe=()=>{a.value&&(a.value.muted?(a.value.muted=!1,F(.5)):(a.value.muted=!0,F(0)))};return e({toggle:z}),(Ae,Oe)=>{const lt=JL,dt=QL,$e=ZL,Tt=Ib,rt=jL;return Fe(),it("div",{class:"audio-player",style:ft({transform:`scale(${1/t.scale})`})},[me("audio",{class:"audio",ref_key:"audioRef",ref:a,src:t.src,autoplay:t.autoplay,onDurationchange:Oe[0]||(Oe[0]=$=>W()),onTimeupdate:Oe[1]||(Oe[1]=$=>G()),onPlay:Oe[2]||(Oe[2]=$=>K()),onEnded:Oe[3]||(Oe[3]=$=>q()),onProgress:Oe[4]||(Oe[4]=$=>ie()),onError:Oe[5]||(Oe[5]=$=>ve())},null,40,Rq),me("div",Oq,[me("div",Bq,[me("div",{class:"icon play-icon",onClick:Oe[6]||(Oe[6]=$=>z())},[me("span",Nq,[u.value?(Fe(),Xt(lt,{key:0})):(Fe(),Xt(dt,{key:1}))])]),me("div",Fq,[me("div",{class:"icon volume-icon",onClick:Oe[7]||(Oe[7]=$=>Qe())},[me("span",$q,[l.value===0?(Fe(),Xt($e,{key:0})):l.value===1?(Fe(),Xt(Tt,{key:1})):(Fe(),Xt(rt,{key:2}))])]),me("div",{class:"volume-bar-wrap",onMousedown:Oe[8]||(Oe[8]=$=>ce()),onTouchstart:Oe[9]||(Oe[9]=$=>ce()),onClick:Oe[10]||(Oe[10]=$=>fe($))},[me("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[me("div",{class:"volume-bar-inner",style:ft({width:I.value})},[...Oe[16]||(Oe[16]=[me("span",{class:"thumb"},null,-1)])],4)],512)],32)])]),me("span",zq,[me("span",Hq,Nn(w.value),1),Oe[17]||(Oe[17]=l0(" / ",-1)),me("span",Vq,Nn(b.value),1)]),me("div",{class:"bar-wrap",ref_key:"playBarWrapRef",ref:o,onMousedown:Oe[11]||(Oe[11]=$=>ue()),onTouchstart:Oe[12]||(Oe[12]=$=>ue()),onMousemove:Oe[13]||(Oe[13]=$=>Pe($)),onMouseenter:Oe[14]||(Oe[14]=$=>d.value=!0),onMouseleave:Oe[15]||(Oe[15]=$=>d.value=!1)},[me("div",{class:An(["bar-time",{hidden:!d.value}]),style:ft({left:y.value})},Nn(g.value),7),me("div",Gq,[me("div",{class:"loaded",style:ft({width:A.value})},null,4),me("div",{class:"played",style:ft({width:S.value})},[...Oe[18]||(Oe[18]=[me("span",{class:"thumb"},null,-1)])],4)])],544)])],4)}}}),[["__scopeId","data-v-df601eb3"]]),Uq={class:"element-content"},qq=Ir(cr({__name:"ScreenAudioElement",props:{elementInfo:{}},setup(t){const e=t,{viewportRatio:r,currentSlide:n,viewportSize:i}=Xo(jo()),a=Aa(T0)||Dt(1),o=Aa(C0)||Dt(""),s=Ke(()=>n.value.id===o.value),l=Ke(()=>Math.min(e.elementInfo.width,e.elementInfo.height)+"px"),u=Ke(()=>{const p=i.value,d=i.value*r.value,g=280/a.value,y=50/a.value,w=e.elementInfo.width,b=e.elementInfo.height,S=e.elementInfo.left,A=e.elementInfo.top;let I=0,L=b;return S+g>=p&&(I=w-g),A+b+y>=d&&(L=-y),{left:I+"px",top:L+"px"}}),c=Ma("audioPlayerRef"),h=()=>{c.value&&c.value.toggle()};return(p,d)=>{const g=Ib;return Fe(),it("div",{class:"base-element-audio screen-element-audio",style:ft({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[me("div",{class:"rotate-wrapper",style:ft({transform:`rotate(${t.elementInfo.rotate}deg)`})},[me("div",Uq,[Cr(g,{class:"audio-icon",style:ft({fontSize:l.value,color:t.elementInfo.color}),onClick:d[0]||(d[0]=y=>h())},null,8,["style"]),s.value?(Fe(),Xt(Wq,{key:0,class:"audio-player",ref_key:"audioPlayerRef",ref:c,style:ft({...u.value}),src:t.elementInfo.src,loop:t.elementInfo.loop,autoplay:t.elementInfo.autoplay,scale:et(a)},null,8,["style","src","loop","autoplay","scale"])):Sr("",!0)])],4)],4)}}}),[["__scopeId","data-v-ef700f13"]]),Kq=["id","title"],Yq=Ir(cr({__name:"ScreenElement",props:{elementInfo:{},elementIndex:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,r=Ke(()=>({[La.IMAGE]:d5,[La.TEXT]:y5,[La.SHAPE]:E5,[La.LINE]:F5,[La.CHART]:r9,[La.TABLE]:v9,[La.LATEX]:y9,[La.VIDEO]:J9,[La.AUDIO]:qq})[e.elementInfo.type]||null),{formatedAnimations:n,theme:i}=Xo(jo()),a=Ke(()=>{const s=n.value.findIndex(u=>u.animations.map(h=>h.elId).includes(e.elementInfo.id));if(s===-1||s<e.animationIndex)return!1;const l=n.value[s].animations.find(u=>u.elId===e.elementInfo.id);return(l==null?void 0:l.type)==="in"}),o=s=>{if(s.target.tagName==="A"){e.manualExitFullscreen();return}const l=e.elementInfo.link;l&&(l.type==="web"?(e.manualExitFullscreen(),window.open(l.target)):l.type==="slide"&&e.turnSlideToId(l.target))};return(s,l)=>{var u;return Fe(),it("div",{class:An(["screen-element",{link:t.elementInfo.link}]),id:`screen-element-${t.elementInfo.id}`,style:ft({zIndex:t.elementIndex,color:et(i).fontColor,fontFamily:et(i).fontName,visibility:a.value?"hidden":"visible"}),title:((u=t.elementInfo.link)==null?void 0:u.target)||"",onClick:l[0]||(l[0]=c=>o(c))},[(Fe(),Xt(rO(r.value),{elementInfo:t.elementInfo},null,8,["elementInfo"]))],14,Kq)}}}),[["__scopeId","data-v-b43c7d05"]]),Xq=Ir(cr({__name:"ScreenSlide",props:{slide:{},scale:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,{viewportRatio:r,viewportSize:n}=Xo(jo()),i=Ke(()=>e.slide.background),{backgroundStyle:a}=QN(i),o=Ke(()=>e.slide.id);return jm(C0,o),(s,l)=>(Fe(),it("div",{class:"screen-slide",style:ft({width:et(n)+"px",height:et(n)*et(r)+"px",transform:`scale(${t.scale})`})},[me("div",{class:"background",style:ft({...et(a)})},null,4),(Fe(!0),it(Jr,null,Uo(t.slide.elements,(u,c)=>(Fe(),Xt(Yq,{key:u.id,elementInfo:u,elementIndex:c+1,animationIndex:t.animationIndex,turnSlideToId:t.turnSlideToId,manualExitFullscreen:t.manualExitFullscreen},null,8,["elementInfo","elementIndex","animationIndex","turnSlideToId","manualExitFullscreen"]))),128))],4))}}),[["__scopeId","data-v-e7898104"]]),jq={class:"screen-slide-list"},Zq=Ir(cr({__name:"ScreenSlideList",props:{slideWidth:{},slideHeight:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,{slideIndex:r,viewportSize:n}=Xo(jo()),{slidesWithTurningMode:i}=JN(),a=Ke(()=>e.slideWidth/n.value);return jm(T0,a),(o,s)=>(Fe(),it("div",jq,[(Fe(!0),it(Jr,null,Uo(et(i),(l,u)=>{var c;return Fe(),it("div",{class:An(["slide-item",`turning-mode-${l.turningMode}`,{current:u===et(r),before:u<et(r),after:u>et(r),hide:(u===et(r)-1||u===et(r)+1)&&l.turningMode!==et(i)[et(r)].turningMode,last:u===et(r)-1,next:u===et(r)+1}]),key:l.id},[Math.abs(et(r)-u)<2||(c=l.animations)!=null&&c.length?(Fe(),it("div",{key:0,class:"slide-content",style:ft({width:t.slideWidth+"px",height:t.slideHeight+"px"})},[Cr(Xq,{slide:l,scale:a.value,animationIndex:t.animationIndex,turnSlideToId:t.turnSlideToId,manualExitFullscreen:t.manualExitFullscreen},null,8,["slide","scale","animationIndex","turnSlideToId","manualExitFullscreen"])],4)):Sr("",!0)],2)}),128))]))}}),[["__scopeId","data-v-2f7a39f5"]]),Jq={key:0,class:"ppt-kit-count"},Qq=40,eK=Ir(cr({__name:"KitPlayer",setup(t){const e=Aa("suiteDeck"),r=jo();r.setSlides(e.slides,e.theme),r.setViewportSize(e.viewportSize),r.setViewportRatio(e.viewportRatio);const{slides:n,slideIndex:i,viewportSize:a,viewportRatio:o,formatedAnimations:s,theme:l}=Xo(r),u=Dt(null),c=Dt(null),h=Dt(0),p=Dt(0);let d=null;const g=Ke(()=>{const ce=a.value||1e3,fe=o.value||.5625;return!h.value||!p.value?1:Math.min(h.value/ce,p.value/(ce*fe))}),y=Ke(()=>(a.value||1e3)*g.value),w=Ke(()=>y.value*(o.value||.5625)),b=Ke(()=>{const ce=n.value[i.value],fe=ce==null?void 0:ce.background;if(fe&&typeof fe=="object"){const Pe=fe.color;if(fe.type==="solid"&&Pe)return Pe}return l.value.backgroundColor||"#ffffff"}),S=Dt(0),A=Dt(!1),I=Dt(i.value),L=ce=>{ce.style.removeProperty("--animate-duration");for(const fe of ce.classList)fe.indexOf(Ad)!==-1&&ce.classList.remove(fe,`${Ad}animated`)},k=()=>{var Pe;if(A.value)return;const ce=s.value[S.value];if(!ce)return;S.value+=1,A.value=!0;let fe=0;for(const Qe of ce.animations){const Ae=((Pe=u.value)==null?void 0:Pe.querySelector(`#screen-element-${Qe.elId} [class^=base-element-]`))||null;if(!Ae){fe+=1;continue}const Oe=`${Ad}${Qe.effect}`;L(Ae),Ae.style.setProperty("--animate-duration",`${Qe.duration}ms`),Ae.classList.add(Oe,`${Ad}animated`);const lt=()=>{Qe.type!=="out"&&L(Ae),fe+=1,fe===ce.animations.length&&(A.value=!1,ce.autoNext&&k())};Ae.addEventListener("animationend",lt,{once:!0})}fe===ce.animations.length&&(A.value=!1,ce.autoNext&&k())},P=()=>{var fe;if(S.value<=0)return;S.value-=1;const ce=s.value[S.value];if(ce){for(const Pe of ce.animations){const Qe=((fe=u.value)==null?void 0:fe.querySelector(`#screen-element-${Pe.elId} [class^=base-element-]`))||null;Qe&&L(Qe)}ce.animations.length&&ce.animations.every(Pe=>Pe.type==="attention")&&z()}},z=()=>{s.value.length&&S.value>0?P():i.value>0?(r.updateSlideIndex(i.value-1),i.value<I.value?(S.value=0,I.value=i.value):S.value=s.value.length):S.value=0,A.value=!1},F=()=>{s.value.length&&S.value<s.value.length?k():(i.value<n.value.length-1&&(r.updateSlideIndex(i.value+1),S.value=0),A.value=!1)},W=ce=>{const fe=n.value.findIndex(Pe=>Pe.id===ce);fe!==-1&&r.updateSlideIndex(fe)},G=ce=>{ce>=0&&ce<n.value.length&&r.updateSlideIndex(ce)},K=()=>{};Ti(i,()=>{S.value=0,A.value=!1});const q=ce=>{const fe=ce.key;fe==="ArrowLeft"||fe==="ArrowUp"||fe==="PageUp"?(ce.preventDefault(),z()):fe==="ArrowRight"||fe==="ArrowDown"||fe===" "||fe==="Enter"||fe==="PageDown"?(ce.preventDefault(),F()):fe==="Home"?(ce.preventDefault(),G(0)):fe==="End"&&(ce.preventDefault(),G(n.value.length-1))};let ie=0,ve=0,ye=!1;const be=ce=>{const fe=ce.target;ye=!!(fe!=null&&fe.closest("a, button, .video-player, .audio-player, .screen-element-audio, .screen-element.link"))},ue=()=>{ye||F()},Me=ce=>{const fe=ce.touches[0];fe&&(ie=fe.clientX,ve=fe.clientY)},ke=ce=>{const fe=ce.changedTouches[0];if(!fe)return;const Pe=fe.clientX-ie,Qe=fe.clientY-ve;Math.abs(Pe)<Qq||Math.abs(Pe)<Math.abs(Qe)||(ce.preventDefault(),Pe<0?F():z())};return el(()=>{var Pe;const ce=c.value;ce&&(h.value=ce.clientWidth,p.value=ce.clientHeight,typeof ResizeObserver<"u"&&(d=new ResizeObserver(Qe=>{for(const Ae of Qe)h.value=Ae.contentRect.width,p.value=Ae.contentRect.height}),d.observe(ce))),document.addEventListener("keydown",q),(Pe=u.value)==null||Pe.focus();const fe=s.value[0];fe&&fe.animations.length&&fe.animations.every(Ae=>Ae.trigger==="auto"||Ae.trigger==="meantime")&&k()}),Du(()=>{d==null||d.disconnect(),document.removeEventListener("keydown",q)}),(ce,fe)=>(Fe(),it("div",{ref_key:"rootRef",ref:u,class:"ppt-kit",tabindex:"0",style:ft({background:b.value})},[me("div",{ref_key:"stageRef",ref:c,class:"ppt-kit-stage",onClickCapture:be,onClick:ue,onTouchstartPassive:Me,onTouchend:ke},[me("div",{class:"ppt-kit-frame",style:ft({width:y.value+"px",height:w.value+"px"})},[et(n).length?(Fe(),Xt(Zq,{key:0,slideWidth:y.value,slideHeight:w.value,animationIndex:S.value,turnSlideToId:W,manualExitFullscreen:K},null,8,["slideWidth","slideHeight","animationIndex"])):Sr("",!0)],4)],544),et(n).length>1?(Fe(),it("div",Jq,Nn(et(i)+1)+" / "+Nn(et(n).length),1)):Sr("",!0)],4))}}),[["__scopeId","data-v-a83e00de"]]),kb=1e3,eE=.5625,tE={viewportSize:kb,viewportRatio:eE,theme:{backgroundColor:"#ffffff",fontColor:"#333333"},slides:[{id:"suite_cover",elements:[{type:"shape",id:"suite_cover_band",left:0,top:0,width:kb,height:250,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"rgb(209, 68, 36)",fixedRatio:!1,rotate:0},{type:"text",id:"suite_cover_title",left:80,top:90,width:840,height:120,content:'<p style="font-size: 52px;"><strong>PPT 演示文档装饰器套件</strong></p>',defaultColor:"#ffffff",defaultFontName:"",fixedRatio:!1,rotate:0},{type:"text",id:"suite_cover_sub",left:80,top:380,width:840,height:80,content:'<p style="font-size: 22px; color: #666;">宿主作品 view.source 数据分节的只读放映(当前为套件内置示例)</p>',defaultColor:"#333333",defaultFontName:"",fixedRatio:!1,rotate:0}]}]};function tK(t){const e=(t||"").trim();if(!e)return null;try{const r=JSON.parse(e);return!r||typeof r!="object"?null:rK(r)}catch{return null}}function rK(t){const e=Array.isArray(t)?t:t.slides;if(!Array.isArray(e)||!e.length)return null;const r=t,n=Lb(r.viewportSize??r.width,kb),i=Lb(r.viewportRatio,Lb(r.height&&r.width?r.height/r.width:0,eE));return{slides:e,theme:r.theme||{},viewportSize:n,viewportRatio:i}}function Lb(t,e){return typeof t=="number"&&isFinite(t)&&t>0?t:e}let la=null;function rE(t,e){la==null||la.app.unmount(),la=null,t.innerHTML="";const r=_B(eK);r.use(xB()),r.provide("suiteDeck",e),r.mount(t),la={app:r,host:t}}if(typeof window<"u"&&window.Work)window.Work.register({mount:t=>{rE(t.stage,tK(t.viewDoc)??tE),typeof t.ready=="function"&&t.ready()},destroy:()=>{la==null||la.app.unmount(),la&&(la.host.innerHTML=""),la=null}});else{const t=document.querySelector("#app")??document.body;rE(t,tE)}})();
|