From f9d78bfa8daaf4aa582d3090c99ed3357e04ef4d Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Thu, 4 Jan 2024 12:34:56 +0000 Subject: [PATCH] deploy to github pages 8ae915200db7b19f3567cc41c65e3e057344b2dc --- assets/index-kNtj0nJY.css | 7 + assets/index-sCRXAZfx.js | 316 ++++++++++++++++++ .../仓耳小丸子-zHoj3BtX.woff2 | Bin .../优设标题黑-77KEA_p_.woff2 | Bin .../字制区喜脉体-pvg32CQr.woff2 | Bin .../峰广明锐体-JLDToV-Y.woff2 | Bin .../得意黑-WEz-Il5y.woff2 | Bin .../摄图摩登小方体-BT0PmJPE.woff2 | Bin .../站酷快乐体-ZflTFl4E.woff2 | Bin .../素材集市康康体-8m4g7BoU.woff2 | Bin .../素材集市酷方体--hWHoevz.woff2 | Bin .../途牛类圆体-oN1H-nrG.woff2 | Bin .../锐字真言体-RyiJ0iUd.woff2 | Bin css/app.3a39f5ba.css | 1 - css/chunk-vendors.3e867e11.css | 7 - icons/android-chrome-192x192.png | Bin 9988 -> 0 bytes icons/android-chrome-512x512.png | Bin 20792 -> 0 bytes icons/android-chrome-maskable-192x192.png | Bin 9988 -> 0 bytes icons/android-chrome-maskable-512x512.png | Bin 20792 -> 0 bytes icons/apple-touch-icon-152x152.png | Bin 7334 -> 0 bytes icons/favicon-16x16.png | Bin 565 -> 0 bytes icons/favicon-32x32.png | Bin 1158 -> 0 bytes index.html | 34 +- js/app.9b709042.js | 2 - js/app.9b709042.js.map | 1 - js/chunk-vendors.faa37718.js | 72 ---- js/chunk-vendors.faa37718.js.map | 1 - manifest.json | 1 - service-worker.js | 2 - service-worker.js.map | 1 - workbox-0841e663.js | 2 - workbox-0841e663.js.map | 1 - 32 files changed, 355 insertions(+), 93 deletions(-) create mode 100644 assets/index-kNtj0nJY.css create mode 100644 assets/index-sCRXAZfx.js rename fonts/仓耳小丸子.64a7acb4.woff2 => assets/仓耳小丸子-zHoj3BtX.woff2 (100%) rename fonts/优设标题黑.df0c1330.woff2 => assets/优设标题黑-77KEA_p_.woff2 (100%) rename fonts/字制区喜脉体.cb8f58a4.woff2 => assets/字制区喜脉体-pvg32CQr.woff2 (100%) rename fonts/峰广明锐体.8c45ca35.woff2 => assets/峰广明锐体-JLDToV-Y.woff2 (100%) rename fonts/得意黑.7caef6f6.woff2 => assets/得意黑-WEz-Il5y.woff2 (100%) rename fonts/摄图摩登小方体.7d229dc8.woff2 => assets/摄图摩登小方体-BT0PmJPE.woff2 (100%) rename fonts/站酷快乐体.8fd3ebd9.woff2 => assets/站酷快乐体-ZflTFl4E.woff2 (100%) rename fonts/素材集市康康体.ceb20972.woff2 => assets/素材集市康康体-8m4g7BoU.woff2 (100%) rename fonts/素材集市酷方体.42328465.woff2 => assets/素材集市酷方体--hWHoevz.woff2 (100%) rename fonts/途牛类圆体.a94398b6.woff2 => assets/途牛类圆体-oN1H-nrG.woff2 (100%) rename fonts/锐字真言体.487089ad.woff2 => assets/锐字真言体-RyiJ0iUd.woff2 (100%) delete mode 100644 css/app.3a39f5ba.css delete mode 100644 css/chunk-vendors.3e867e11.css delete mode 100644 icons/android-chrome-192x192.png delete mode 100644 icons/android-chrome-512x512.png delete mode 100644 icons/android-chrome-maskable-192x192.png delete mode 100644 icons/android-chrome-maskable-512x512.png delete mode 100644 icons/apple-touch-icon-152x152.png delete mode 100644 icons/favicon-16x16.png delete mode 100644 icons/favicon-32x32.png delete mode 100644 js/app.9b709042.js delete mode 100644 js/app.9b709042.js.map delete mode 100644 js/chunk-vendors.faa37718.js delete mode 100644 js/chunk-vendors.faa37718.js.map delete mode 100644 manifest.json delete mode 100644 service-worker.js delete mode 100644 service-worker.js.map delete mode 100644 workbox-0841e663.js delete mode 100644 workbox-0841e663.js.map diff --git a/assets/index-kNtj0nJY.css b/assets/index-kNtj0nJY.css new file mode 100644 index 00000000..bcda1ba1 --- /dev/null +++ b/assets/index-kNtj0nJY.css @@ -0,0 +1,7 @@ +@charset "UTF-8";.message[data-v-5f638602]{max-width:600px}.message+.message[data-v-5f638602]{margin-top:15px}.message-container[data-v-5f638602]{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-5f638602]{display:flex;align-items:center;margin-right:10px}.message-container .title[data-v-5f638602]{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-container .content[data-v-5f638602]{width:100%}.message-container .description[data-v-5f638602]{line-height:1.5;color:#41464b}.message-container .title+.description[data-v-5f638602]{margin-top:5px}.message-container .control[data-v-5f638602]{position:relative;height:100%;margin-left:10px}.message-container .close-btn[data-v-5f638602]{font-size:15px;color:#666;display:flex;align-items:center;cursor:pointer}.message-container .close-btn[data-v-5f638602]:hover{color:#d14424}.message-fade-enter-active[data-v-5f638602]{animation:message-fade-in-down-5f638602 .3s}.message-fade-leave-active[data-v-5f638602]{animation:message-fade-out-5f638602 .3s}@keyframes message-fade-in-down-5f638602{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes message-fade-out-5f638602{0%{opacity:1;margin-top:0}to{opacity:0;margin-top:-45px}}.hotkey-doc[data-v-0762be00]{height:100%;overflow:auto;font-size:12px;margin:0 -15px;padding:0 15px 15px}.title[data-v-0762be00]{font-size:14px;font-weight:700;border-bottom:1px solid #e5e5e5;padding:25px 0 5px}.title[data-v-0762be00]:first-child{padding-top:0}.hotkey-item[data-v-0762be00]{border-bottom:1px solid #e5e5e5;padding:15px 0 5px;display:flex;align-items:center}.label[data-v-0762be00]{width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input[data-v-1bd53d05]{display:none}.fullscreen-spin[data-v-9856918a]{position:fixed;top:0;bottom:0;left:0;right:0;z-index:100;display:flex;justify-content:center;align-items:center;background-color:#f1f1f1b3}.spin[data-v-9856918a]{width:200px;height:200px;position:fixed;top:50%;left:50%;margin-top:-100px;margin-left:-100px;display:flex;flex-direction:column;justify-content:center;align-items:center}.spinner[data-v-9856918a]{width:36px;height:36px;border:3px solid #d14424;border-top-color:transparent;border-radius:50%;animation:spinner-9856918a .8s linear infinite}.text[data-v-9856918a]{margin-top:20px;color:#d14424}@keyframes spinner-9856918a{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.drawer[data-v-46f39759]{height:100%;position:fixed;top:0;bottom:0;z-index:5000;background:#fff;display:flex;flex-direction:column}.drawer.left[data-v-46f39759]{left:0;box-shadow:3px 0 6px -4px #0000001f,9px 0 28px 8px #0000000d}.drawer.right[data-v-46f39759]{right:0;box-shadow:-3px 0 6px -4px #0000001f,-9px 0 28px 8px #0000000d}.header[data-v-46f39759]{height:50px;padding:0 15px;position:relative;display:flex;align-items:center}.header .close-btn[data-v-46f39759]{width:20px;height:20px;display:flex;justify-content:center;align-items:center;position:absolute;top:15px;right:15px;cursor:pointer}.content[data-v-46f39759]{padding:0 15px;overflow:auto;flex:1}.drawer-slide-right-enter-active[data-v-46f39759]{animation:drawer-slide-right-enter-46f39759 .25s both ease}.drawer-slide-right-leave-active[data-v-46f39759]{animation:drawer-slide-right-leave-46f39759 .25s both ease}.drawer-slide-left-enter-active[data-v-46f39759]{animation:drawer-slide-left-enter-46f39759 .25s both ease}.drawer-slide-left-leave-active[data-v-46f39759]{animation:drawer-slide-left-leave-46f39759 .25s both ease}@keyframes drawer-slide-right-enter-46f39759{0%{transform:translate(100%)}}@keyframes drawer-slide-right-leave-46f39759{to{transform:translate(100%)}}@keyframes drawer-slide-left-enter-46f39759{0%{transform:translate(-100%)}}@keyframes drawer-slide-left-leave-46f39759{to{transform:translate(-100%)}}.input[data-v-08dd2583]{background-color:#fff;border:1px solid #d9d9d9;padding:0 5px;border-radius:2px;transition:border-color .25s;font-size:13px;display:flex}.input input[data-v-08dd2583]{min-width:0;height:30px;outline:0;border:0;line-height:30px;vertical-align:top;color:#41464b;padding:0 5px;flex:1;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.input input[data-v-08dd2583]::placeholder{color:#bfbfbf}.input[data-v-08dd2583]:not(.disabled):hover,.input.focused[data-v-08dd2583]{border-color:#d14424}.input.disabled[data-v-08dd2583]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7}.input .prefix[data-v-08dd2583],.input .suffix[data-v-08dd2583]{display:flex;justify-content:center;align-items:center;line-height:30px;-webkit-user-select:none;user-select:none}.tippy-box[data-animation=scale][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale][data-state=hidden]{transform:scale(.5);opacity:0}.popover.center[data-v-f1b06373]{display:flex;justify-content:center;align-items:center}.popover-content[data-v-f1b06373]{background-color:#fff;padding:10px;border:1px solid #eee;box-shadow:3px 3px 3px #00000026;border-radius:2px;font-size:13px}.tippy-box[data-theme~=popover]{border:0;outline:0}.popover-menu-item[data-v-1f176c16]{min-width:80px;padding:6px 10px;border-radius:2px;font-size:13px;cursor:pointer}.popover-menu-item.center[data-v-1f176c16]{text-align:center}.popover-menu-item[data-v-1f176c16]:hover{background-color:#f1f1f1}.popover-menu-item+.popover-menu-item[data-v-1f176c16]{margin-top:2px}.editor-header[data-v-89efe6b2]{background-color:#fff;-webkit-user-select:none;user-select:none;border-bottom:1px solid #eee;display:flex;justify-content:space-between;padding:0 5px}.left[data-v-89efe6b2],.right[data-v-89efe6b2]{display:flex;justify-content:center;align-items:center}.menu-item[data-v-89efe6b2]{height:30px;display:flex;justify-content:center;align-items:center;font-size:14px;padding:0 10px;border-radius:2px;cursor:pointer}.menu-item .icon[data-v-89efe6b2]{font-size:18px;color:#666}.menu-item[data-v-89efe6b2]:hover{background-color:#f1f1f1}.group-menu-item[data-v-89efe6b2]{height:30px;display:flex;margin:0 8px;padding:0 2px;border-radius:2px}.group-menu-item[data-v-89efe6b2]:hover{background-color:#f1f1f1}.group-menu-item .menu-item[data-v-89efe6b2]{padding:0 3px}.group-menu-item .arrow-btn[data-v-89efe6b2]{display:flex;justify-content:center;align-items:center;cursor:pointer}.title[data-v-89efe6b2]{height:32px;margin-left:2px;font-size:13px}.title .title-input[data-v-89efe6b2]{width:200px;height:100%;padding-left:0;padding-right:0}.title .title-text[data-v-89efe6b2]{min-width:20px;max-width:400px;line-height:32px;padding:0 6px;border-radius:2px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.title .title-text[data-v-89efe6b2]:hover{background-color:#f1f1f1}.github-link[data-v-89efe6b2]{display:inline-block;height:30px}svg[data-v-09a0319c]{overflow:visible;position:absolute;z-index:2;top:0;left:0}svg[data-v-19e68d74]{overflow:visible;position:absolute;z-index:2;top:0;left:0}svg[data-v-a036b0a3]{overflow:visible;position:absolute;z-index:2;top:0;left:0}.image-clip-handler[data-v-cd7d01b2]{width:100%;height:100%;position:relative}.image-clip-handler .bottom-img[data-v-cd7d01b2]{top:0;left:0;width:100%;height:100%;opacity:.5}.image-clip-handler img[data-v-cd7d01b2]{width:100%;height:100%}.image-clip-handler .top-image-content[data-v-cd7d01b2]{position:absolute;overflow:hidden}.image-clip-handler .top-image-content img[data-v-cd7d01b2]{position:absolute}.operate[data-v-cd7d01b2]{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.clip-point[data-v-cd7d01b2]{position:absolute;width:16px;height:16px}.clip-point svg[data-v-cd7d01b2]{overflow:visible}.clip-point.left-top[data-v-cd7d01b2]{left:0;top:0}.clip-point.right-top[data-v-cd7d01b2]{left:100%;top:0;transform:rotate(90deg);transform-origin:0 0}.clip-point.left-bottom[data-v-cd7d01b2]{left:0;top:100%;transform:rotate(-90deg);transform-origin:0 0}.clip-point.right-bottom[data-v-cd7d01b2]{left:100%;top:100%;transform:rotate(180deg);transform-origin:0 0}.clip-point.top[data-v-cd7d01b2]{left:50%;top:0;margin-left:-8px}.clip-point.bottom[data-v-cd7d01b2]{left:50%;bottom:0;margin-left:-8px;transform:rotate(180deg)}.clip-point.left[data-v-cd7d01b2]{left:0;top:50%;margin-top:-8px;transform:rotate(-90deg)}.clip-point.right[data-v-cd7d01b2]{right:0;top:50%;margin-top:-8px;transform:rotate(90deg)}.clip-point.left-top.rotate-0[data-v-cd7d01b2],.clip-point.right-bottom.rotate-0[data-v-cd7d01b2],.clip-point.left.rotate-45[data-v-cd7d01b2],.clip-point.right.rotate-45[data-v-cd7d01b2],.clip-point.left-bottom.rotate-90[data-v-cd7d01b2],.clip-point.right-top.rotate-90[data-v-cd7d01b2],.clip-point.top.rotate-135[data-v-cd7d01b2],.clip-point.bottom.rotate-135[data-v-cd7d01b2]{cursor:nwse-resize}.clip-point.top.rotate-0[data-v-cd7d01b2],.clip-point.bottom.rotate-0[data-v-cd7d01b2],.clip-point.left-top.rotate-45[data-v-cd7d01b2],.clip-point.right-bottom.rotate-45[data-v-cd7d01b2],.clip-point.left.rotate-90[data-v-cd7d01b2],.clip-point.right.rotate-90[data-v-cd7d01b2],.clip-point.left-bottom.rotate-135[data-v-cd7d01b2],.clip-point.right-top.rotate-135[data-v-cd7d01b2]{cursor:ns-resize}.clip-point.left-bottom.rotate-0[data-v-cd7d01b2],.clip-point.right-top.rotate-0[data-v-cd7d01b2],.clip-point.top.rotate-45[data-v-cd7d01b2],.clip-point.bottom.rotate-45[data-v-cd7d01b2],.clip-point.left-top.rotate-90[data-v-cd7d01b2],.clip-point.right-bottom.rotate-90[data-v-cd7d01b2],.clip-point.left.rotate-135[data-v-cd7d01b2],.clip-point.right.rotate-135[data-v-cd7d01b2]{cursor:nesw-resize}.clip-point.left.rotate-0[data-v-cd7d01b2],.clip-point.right.rotate-0[data-v-cd7d01b2],.clip-point.left-bottom.rotate-45[data-v-cd7d01b2],.clip-point.right-top.rotate-45[data-v-cd7d01b2],.clip-point.top.rotate-90[data-v-cd7d01b2],.clip-point.bottom.rotate-90[data-v-cd7d01b2],.clip-point.left-top.rotate-135[data-v-cd7d01b2],.clip-point.right-bottom.rotate-135[data-v-cd7d01b2]{cursor:ew-resize}.editable-element-image[data-v-d615c21a]{position:absolute}.editable-element-image.lock .element-content[data-v-d615c21a]{cursor:default}.rotate-wrapper[data-v-d615c21a]{width:100%;height:100%}.element-content[data-v-d615c21a]{width:100%;height:100%;position:relative;cursor:move}.element-content .image-content[data-v-d615c21a]{width:100%;height:100%;overflow:hidden;position:relative}.element-content img[data-v-d615c21a]{position:absolute}.color-mask[data-v-d615c21a]{position:absolute;top:0;bottom:0;left:0;right:0}svg[data-v-e2ef58f5]{overflow:visible;position:absolute;top:0;left:0}.prosemirror-editor[data-v-23fdc807]{cursor:text}.prosemirror-editor.format-painter[data-v-23fdc807]{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzUuMDEybC0uMDY2Ljk5OGE1LjI3MSA1LjI3MSAwIDAwLTEuMTg0LjA2IDMuOCAzLjggMCAwMC0uOTMzLjQ3MmMtLjQ0LjM1Ni0uNzgzLjgxMS0uOTk4IDEuMzI0bC4wMTgtLjAzNnY1LjEyaDEuMDR2Ljk4aC0xLjA0bC0uMDAyIDQuMTVjLjE4Ny40MjYuNDYuODEuNzkxIDEuMTE3bC4xNzUuMTUyYy4yOTMuMjA4LjYxNS4zNzMuODkuNDcyLjQxLjA4Mi44My4xMTIgMS4yNDkuMDlsLjA1Ny45OTlhNi4wNjMgNi4wNjMgMCAwMS0xLjU4OC0uMTI5IDQuODM2IDQuODM2IDAgMDEtMS4yNS0uNjQ3IDQuNDYzIDQuNDYzIDAgMDEtLjgzOC0uODgzYy0uMjI0LjMzMi0uNS42NDItLjgyNC45MjdhNC4xMSA0LjExIDAgMDEtMS4zMDUuNjMzQTYuMTI2IDYuMTI2IDAgMDEwIDE1LjkwOWwuMDY4LS45OTdjLjQyNC4wMjYuODUtLjAwMSAxLjIxNy0uMDcuMzM2LS4wOTkuNjUxLS4yNTQuODk0LS40My40My0uMzguNzY1LS44NDcuOTgyLTEuMzY4bC0uMDA1LjAxNFY4LjkzSDIuMTE1di0uOThoMS4wNFYyLjg2MmEzLjc3IDMuNzcgMCAwMC0uNzc0LTEuMTY3bC0uMTY1LS4xNTZhMy4wNjQgMy4wNjQgMCAwMC0uODgtLjQ0OEE1LjA2MiA1LjA2MiAwIDAwLjA2NyAxLjAxTDAgLjAxMmE2LjE0IDYuMTQgMCAwMTEuNTkyLjExYy40NTMuMTM1Ljg3Ny4zNDUgMS4yOS42NS4zLjI2NS41NjUuNTY0Ljc4Ny44OS4yMzMtLjMzMS41Mi0uNjM0Ljg1My0uOTA0YTQuODM1IDQuODM1IDAgMDExLjMtLjY0OEE2LjE1NSA2LjE1NSAwIDAxNy4zNS4wMTJ6IiBmaWxsPSIjMEQwRDBEIi8+PHBhdGggZD0iTTE3LjM1IDE0LjVsNC41LTQuNS02LTZjLTIgMi0zIDItNS41IDIuNS40IDMuMiA0LjgzMyA2LjY2NyA3IDh6bTQuNTg4LTQuNDkzYS4zLjMgMCAwMC40MjQgMGwuNjgtLjY4YTEuNSAxLjUgMCAwMDAtMi4xMjJMMjEuNjkgNS44NTNsMi4wMjUtMS41ODNhMS42MjkgMS42MjkgMCAxMC0yLjI3OS0yLjI5NmwtMS42MDMgMi4wMjItMS4zNTctMS4zNTdhMS41IDEuNSAwIDAwLTIuMTIxIDBsLS42OC42OGEuMy4zIDAgMDAwIC40MjVsNi4yNjMgNi4yNjN6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTE1Ljg5MiAzLjk2MnMtMS4wMyAxLjIwMi0yLjQ5NCAxLjg5Yy0xLjAwNi40NzQtMi4xOC41ODYtMi43MzQuNjI3LS4yLjAxNS0uMzQ0LjIxLS4yNzYuMzk5LjI5Mi44MiAxLjExMiAyLjggMi42NTggNC4zNDYgMi4xMjYgMi4xMjcgMy42NTggMi45NjggNC4xNDIgMy4yMDMuMS4wNDguMjE0LjAzLjI5OC0uMDQyLjM4Ni0uMzI1IDEuNS0xLjI3NyAyLjIxLTEuOTg2Ljg5Mi0uODg5IDIuMTg3LTIuNDQ3IDIuMTg3LTIuNDQ3bS40NzkuMDU1YS4zLjMgMCAwMS0uNDI0IDBsLTYuMjY0LTYuMjYzYS4zLjMgMCAwMTAtLjQyNWwuNjgtLjY4YTEuNSAxLjUgMCAwMTIuMTIyIDBsMS4zNTcgMS4zNTcgMS42MDMtMi4wMjJhMS42MjkgMS42MjkgMCAxMTIuMjggMi4yOTZMMjEuNjkgNS44NTNsMS4zNTIgMS4zNTJhMS41IDEuNSAwIDAxMCAyLjEyMmwtLjY4LjY4eiIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+) 2 5,default!important}.editable-element-text[data-v-88c920e1]{position:absolute}.editable-element-text.lock .element-content[data-v-88c920e1]{cursor:default}.rotate-wrapper[data-v-88c920e1]{width:100%;height:100%}.element-content[data-v-88c920e1]{position:relative;padding:10px;line-height:1.5;word-break:break-word;cursor:move}.element-content .text[data-v-88c920e1]{position:relative}.element-content[data-v-88c920e1] a{cursor:text}.drag-handler[data-v-88c920e1]{height:10px;position:absolute;left:0;right:0}.drag-handler.top[data-v-88c920e1]{top:0}.drag-handler.bottom[data-v-88c920e1]{bottom:0}.editable-element-shape[data-v-63255815]{position:absolute;pointer-events:none}.editable-element-shape.lock .element-content[data-v-63255815]{cursor:default}.editable-element-shape.format-painter .element-content[data-v-63255815]{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNzUgMTMuNzY0VjEuNDIxYS4zLjMgMCAwMS40NDgtLjI2bDEwLjkxIDYuMTk3YS4zLjMgMCAwMS0uMTE2LjU1OWwtNC4xOTYuNDQyIDIuNTgyIDQuNDcyYS4zLjMgMCAwMS0uMTEuNDFsLTMuMTg0IDEuODM4YS4zLjMgMCAwMS0uNDEtLjExbC0yLjU4MS00LjQ3Mi0yLjgxIDMuNDU2YS4zLjMgMCAwMS0uNTMzLS4xODl6IiBmaWxsPSIjZmZmIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNMjYgMTQuNWw0LjUtNC41LTYtNmMtMiAyLTMgMi01LjUgMi41LjQgMy4yIDQuODMzIDYuNjY3IDcgOHptNC41ODgtNC40OTRhLjMuMyAwIDAwLjQyNCAwbC42OC0uNjhhMS41IDEuNSAwIDAwMC0yLjEyMUwzMC4zNCA1Ljg1MmwyLjAyNi0xLjU4MmExLjYyOSAxLjYyOSAwIDEwLTIuMjgtMi4yOTZsLTEuNjAzIDIuMDIxLTEuMzU3LTEuMzU2YTEuNSAxLjUgMCAwMC0yLjEyIDBsLS42ODEuNjhhLjMuMyAwIDAwMCAuNDI0bDYuMjYzIDYuMjYzeiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0yNC41NDMgMy45NjFzLTEuMDMgMS4yMDItMi40OTQgMS44OTFjLTEuMDA2LjQ3NC0yLjE4MS41ODUtMi43MzQuNjI3LS4yLjAxNC0uMzQ0LjIwOS0uMjc3LjM5OC4yOTMuODIgMS4xMTIgMi44MDEgMi42NTggNC4zNDcgMi4xMjYgMi4xMjYgMy42NTkgMi45NjggNC4xNDIgMy4yMDIuMS4wNDguMjE1LjAzLjI5OS0uMDQxLjM4NS0uMzI2IDEuNS0xLjI3NyAyLjIxLTEuOTg2Ljg5MS0uODkgMi4xODYtMi40NDggMi4xODYtMi40NDhtLjQ4LjA1NWEuMy4zIDAgMDEtLjQyNSAwbC02LjI2My02LjI2M2EuMy4zIDAgMDEwLS40MjRsLjY4LS42OGExLjUgMS41IDAgMDEyLjEyMiAwbDEuMzU2IDEuMzU2IDEuNjA0LTIuMDIxYTEuNjI5IDEuNjI5IDAgMTEyLjI3OSAyLjI5NkwzMC4zNCA1Ljg1MmwxLjM1MyAxLjM1M2ExLjUgMS41IDAgMDEwIDIuMTIxbC0uNjguNjh6IiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4=) 2 5,default!important}.rotate-wrapper[data-v-63255815]{width:100%;height:100%}.element-content[data-v-63255815]{width:100%;height:100%;position:relative;cursor:move}.element-content svg[data-v-63255815]{transform-origin:0 0;overflow:visible}.element-content .shape-path[data-v-63255815]{pointer-events:all}.shape-text[data-v-63255815]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;padding:10px;line-height:1.2;word-break:break-word;pointer-events:none}.shape-text.editable[data-v-63255815]{pointer-events:all}.shape-text.top[data-v-63255815]{justify-content:flex-start}.shape-text.middle[data-v-63255815]{justify-content:center}.shape-text.bottom[data-v-63255815]{justify-content:flex-end}.editable-element-shape[data-v-7ecafe01]{position:absolute;pointer-events:none}.editable-element-shape.lock .line-path[data-v-7ecafe01],.editable-element-shape.lock .line-point[data-v-7ecafe01]{cursor:default}.element-content[data-v-7ecafe01]{width:100%;height:100%;position:relative}.element-content svg[data-v-7ecafe01]{transform-origin:0 0;overflow:visible}.line-path[data-v-7ecafe01],.line-point[data-v-7ecafe01]{pointer-events:all;cursor:move}.ct-label{fill:#0006;color:#0006;font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:#0003;stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{content:"";display:table;clear:both}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{content:"";display:table;clear:both}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{content:"";display:table;clear:both}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{content:"";display:table;clear:both}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{content:"";display:table;clear:both}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{content:"";display:table;clear:both}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{content:"";display:table;clear:both}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{content:"";display:table;clear:both}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{content:"";display:table;clear:both}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{content:"";display:table;clear:both}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{content:"";display:table;clear:both}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{content:"";display:table;clear:both}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{content:"";display:table;clear:both}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{content:"";display:table;clear:both}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth{display:block;position:relative;width:100%}.ct-major-twelfth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after{content:"";display:table;clear:both}.ct-major-twelfth>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{content:"";display:table;clear:both}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}.chart[data-v-786c4a79]{display:flex}.chart-content[data-v-786c4a79]{transform-origin:0 0}.chart-content{--theme-color-1: #666;--theme-color-2: #666;--theme-color-3: #666;--theme-color-4: #666;--theme-color-5: #666;--theme-color-6: #666;--theme-color-7: #666;--theme-color-8: #666;--theme-color-9: #666;--theme-color-10: #666;--grid-color: rgba(0, 0, 0, .4)}.chart-content .ct-series-a .ct-line,.chart-content .ct-series-a .ct-point{stroke:var(--theme-color-1)}.chart-content .ct-series-a .ct-area{fill:var(--theme-color-1)}.chart-content .ct-series-a .ct-bar{stroke:var(--theme-color-1)}.chart-content .ct-series-a .ct-slice-pie{fill:var(--theme-color-1)}.chart-content .ct-series-a .ct-slice-donut{stroke:var(--theme-color-1)}.chart-content .ct-series-b .ct-line,.chart-content .ct-series-b .ct-point{stroke:var(--theme-color-2)}.chart-content .ct-series-b .ct-area{fill:var(--theme-color-2)}.chart-content .ct-series-b .ct-bar{stroke:var(--theme-color-2)}.chart-content .ct-series-b .ct-slice-pie{fill:var(--theme-color-2)}.chart-content .ct-series-b .ct-slice-donut{stroke:var(--theme-color-2)}.chart-content .ct-series-c .ct-line,.chart-content .ct-series-c .ct-point{stroke:var(--theme-color-3)}.chart-content .ct-series-c .ct-area{fill:var(--theme-color-3)}.chart-content .ct-series-c .ct-bar{stroke:var(--theme-color-3)}.chart-content .ct-series-c .ct-slice-pie{fill:var(--theme-color-3)}.chart-content .ct-series-c .ct-slice-donut{stroke:var(--theme-color-3)}.chart-content .ct-series-d .ct-line,.chart-content .ct-series-d .ct-point{stroke:var(--theme-color-4)}.chart-content .ct-series-d .ct-area{fill:var(--theme-color-4)}.chart-content .ct-series-d .ct-bar{stroke:var(--theme-color-4)}.chart-content .ct-series-d .ct-slice-pie{fill:var(--theme-color-4)}.chart-content .ct-series-d .ct-slice-donut{stroke:var(--theme-color-4)}.chart-content .ct-series-e .ct-line,.chart-content .ct-series-e .ct-point{stroke:var(--theme-color-5)}.chart-content .ct-series-e .ct-area{fill:var(--theme-color-5)}.chart-content .ct-series-e .ct-bar{stroke:var(--theme-color-5)}.chart-content .ct-series-e .ct-slice-pie{fill:var(--theme-color-5)}.chart-content .ct-series-e .ct-slice-donut{stroke:var(--theme-color-5)}.chart-content .ct-series-f .ct-line,.chart-content .ct-series-f .ct-point{stroke:var(--theme-color-6)}.chart-content .ct-series-f .ct-area{fill:var(--theme-color-6)}.chart-content .ct-series-f .ct-bar{stroke:var(--theme-color-6)}.chart-content .ct-series-f .ct-slice-pie{fill:var(--theme-color-6)}.chart-content .ct-series-f .ct-slice-donut{stroke:var(--theme-color-6)}.chart-content .ct-series-g .ct-line,.chart-content .ct-series-g .ct-point{stroke:var(--theme-color-7)}.chart-content .ct-series-g .ct-area{fill:var(--theme-color-7)}.chart-content .ct-series-g .ct-bar{stroke:var(--theme-color-7)}.chart-content .ct-series-g .ct-slice-pie{fill:var(--theme-color-7)}.chart-content .ct-series-g .ct-slice-donut{stroke:var(--theme-color-7)}.chart-content .ct-series-h .ct-line,.chart-content .ct-series-h .ct-point{stroke:var(--theme-color-8)}.chart-content .ct-series-h .ct-area{fill:var(--theme-color-8)}.chart-content .ct-series-h .ct-bar{stroke:var(--theme-color-8)}.chart-content .ct-series-h .ct-slice-pie{fill:var(--theme-color-8)}.chart-content .ct-series-h .ct-slice-donut{stroke:var(--theme-color-8)}.chart-content .ct-series-i .ct-line,.chart-content .ct-series-i .ct-point{stroke:var(--theme-color-9)}.chart-content .ct-series-i .ct-area{fill:var(--theme-color-9)}.chart-content .ct-series-i .ct-bar{stroke:var(--theme-color-9)}.chart-content .ct-series-i .ct-slice-pie{fill:var(--theme-color-9)}.chart-content .ct-series-i .ct-slice-donut{stroke:var(--theme-color-9)}.chart-content .ct-grid{stroke:var(--grid-color)}.chart-content .ct-label{fill:var(--grid-color);color:var(--grid-color)}.legends{height:20px;display:flex;justify-content:center;align-items:center;font-size:14px}.legend{display:flex;align-items:center}.legend+.legend{margin-left:10px}.legend .block{width:10px;height:10px;margin-right:5px}.editable-element-chart[data-v-e98d2ede]{position:absolute}.editable-element-chart.lock .element-content[data-v-e98d2ede]{cursor:default}.rotate-wrapper[data-v-e98d2ede]{width:100%;height:100%}.element-content[data-v-e98d2ede]{width:100%;height:100%;overflow:hidden;cursor:move}.custom-textarea[data-v-cfadb975]{border:0;outline:0;-webkit-user-modify:read-write-plaintext-only}.editable-table[data-v-d040a5e0]{position:relative;-webkit-user-select:none;user-select:none}table[data-v-d040a5e0]{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-d040a5e0]{background-color:#fff}table.theme tr:nth-child(2n) .cell[data-v-d040a5e0]{background-color:var(--subThemeColor1)}table.theme tr:nth-child(odd) .cell[data-v-d040a5e0]{background-color:var(--subThemeColor2)}table.theme.row-header tr:first-child .cell[data-v-d040a5e0]{background-color:var(--themeColor)}table.theme.row-footer tr:last-child .cell[data-v-d040a5e0]{background-color:var(--themeColor)}table.theme.col-header tr .cell[data-v-d040a5e0]:first-child{background-color:var(--themeColor)}table.theme.col-footer tr .cell[data-v-d040a5e0]:last-child{background-color:var(--themeColor)}table .cell[data-v-d040a5e0]{position:relative;white-space:normal;word-wrap:break-word;vertical-align:middle;font-size:14px;background-clip:padding-box;cursor:default}table .cell.selected[data-v-d040a5e0]:after{content:"";width:100%;height:100%;position:absolute;top:0;left:0;background-color:#6666}table .cell-text[data-v-d040a5e0]{padding:5px;line-height:1.5;-webkit-user-select:none;user-select:none;cursor:text}table .cell-text.active[data-v-d040a5e0]{-webkit-user-select:text;user-select:text}.drag-line[data-v-d040a5e0]{position:absolute;top:0;bottom:0;width:3px;background-color:#d14424;margin-left:-1px;opacity:0;z-index:2;cursor:col-resize}.editable-element-table[data-v-7795910a]{position:absolute}.editable-element-table.lock .element-content[data-v-7795910a]{cursor:default}.rotate-wrapper[data-v-7795910a]{width:100%;height:100%}.element-content[data-v-7795910a]{width:100%;height:100%;position:relative;cursor:move}.table-mask[data-v-7795910a]{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .2s}.table-mask .mask-tip[data-v-7795910a]{position:absolute;top:5px;left:5px;background-color:#00000080;color:#fff;padding:6px 12px;font-size:12px;transform-origin:0 0}.table-mask[data-v-7795910a]:hover:not(.lock){opacity:.9}.editable-element-latex[data-v-b73586f6]{position:absolute}.editable-element-latex.lock .element-content[data-v-b73586f6]{cursor:default}.rotate-wrapper[data-v-b73586f6]{width:100%;height:100%}.element-content[data-v-b73586f6]{width:100%;height:100%;position:relative;cursor:move}.element-content svg[data-v-b73586f6]{transform-origin:0 0;overflow:visible}.video-player[data-v-772b3779]{position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;line-height:1;transform-origin:0 0}.video-player.hide-controller[data-v-772b3779]{cursor:none}.video-player.hide-controller .controller-mask[data-v-772b3779],.video-player.hide-controller .controller[data-v-772b3779]{opacity:0;transform:translateY(100%)}.video-wrap[data-v-772b3779]{position:relative;background:#000;font-size:0;width:100%;height:100%}.video-wrap .video[data-v-772b3779]{width:100%;height:100%}.controller-mask[data-v-772b3779]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==) repeat-x bottom;height:98px;width:100%;position:absolute;bottom:0;transition:all .3s ease}.controller[data-v-772b3779]{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-772b3779]{padding:5px 0;cursor:pointer;position:absolute;bottom:33px;width:calc(100% - 40px);height:3px}.controller .bar-wrap:hover .bar .played .thumb[data-v-772b3779]{transform:scale(1)}.controller .bar-wrap .bar-time[data-v-772b3779]{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-772b3779]{opacity:0}.controller .bar-wrap .bar[data-v-772b3779]{position:relative;height:3px;width:100%;background:#fff3;cursor:pointer}.controller .bar-wrap .bar .loaded[data-v-772b3779]{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-772b3779]{position:absolute;left:0;top:0;bottom:0;height:3px;will-change:width;background-color:#fff}.controller .bar-wrap .bar .played .thumb[data-v-772b3779]{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-772b3779]{height:38px;position:absolute;bottom:0;display:flex;align-items:center}.controller .icons.icons-right[data-v-772b3779]{right:15px}.controller .icons .time[data-v-772b3779]{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-772b3779]{width:40px;height:100%;position:relative;cursor:pointer;display:flex;align-items:center;font-size:20px}.controller .icons .icon.play-icon[data-v-772b3779]{font-size:26px}.controller .icons .icon .icon-content[data-v-772b3779]{transition:all .2s ease-in-out;opacity:.8;color:#fff}.controller .icons .icon.loop-icon[data-v-772b3779]{font-size:12px}.controller .icons .icon.loop-icon .icon-content[data-v-772b3779]{opacity:.5}.controller .icons .icon.speed-icon[data-v-772b3779]{font-size:12px;position:relative}.controller .icons .icon .speed-menu[data-v-772b3779]{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-772b3779]{padding:8px 0;text-align:center}.controller .icons .icon .speed-menu .speed-menu-item[data-v-772b3779]:hover{background-color:#393833;color:#fff}.controller .icons .icon .speed-menu .speed-menu-item.active[data-v-772b3779]{font-weight:700;color:#fff}.controller .icons .icon.active .icon-content[data-v-772b3779],.controller .icons .icon:hover .icon-content[data-v-772b3779]{opacity:1}.controller .icons .volume[data-v-772b3779]{height:100%;position:relative;cursor:pointer;display:flex;align-items:center}.controller .icons .volume:hover .volume-bar-wrap .volume-bar[data-v-772b3779]{width:45px}.controller .icons .volume:hover .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-772b3779]{transform:scale(1)}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar[data-v-772b3779]{width:45px}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-772b3779]{transform:scale(1)}.controller .icons .volume-bar-wrap[data-v-772b3779]{display:inline-block;margin:0 15px 0 -5px;vertical-align:middle;height:100%}.controller .icons .volume-bar[data-v-772b3779]{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-772b3779]{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-772b3779]{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-772b3779]{display:inline-block;height:100%}.bezel[data-v-772b3779]{position:absolute;left:0;right:0;top:0;bottom:0;font-size:22px;color:#fff;pointer-events:none}.bezel .bezel-icon[data-v-772b3779]{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-772b3779]{animation:bezel-hide-772b3779 .5s linear}@keyframes bezel-hide-772b3779{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.load-error[data-v-772b3779]{position:absolute;left:0;right:0;top:0;bottom:0;font-size:15px;color:#fff;pointer-events:none;display:flex;justify-content:center;align-items:center}.editable-element-video[data-v-c50d3bc7]{position:absolute}.editable-element-video.lock .handler-border[data-v-c50d3bc7]{cursor:default}.rotate-wrapper[data-v-c50d3bc7]{width:100%;height:100%}.element-content[data-v-c50d3bc7]{width:100%;height:100%;position:relative}.handler-border[data-v-c50d3bc7]{position:absolute;cursor:move}.handler-border.t[data-v-c50d3bc7]{width:100%;height:20px;top:0;left:0}.handler-border.b[data-v-c50d3bc7]{width:100%;height:5px;bottom:0;left:0}.handler-border.l[data-v-c50d3bc7]{width:10px;height:100%;left:0;top:0}.handler-border.r[data-v-c50d3bc7]{width:10px;height:100%;right:0;top:0}.audio-player[data-v-a0b74ebc]{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-a0b74ebc]{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-a0b74ebc]{padding:5px 0;cursor:pointer;position:absolute;bottom:35px;width:calc(100% - 40px);height:3px}.controller .bar-wrap:hover .bar .played .thumb[data-v-a0b74ebc]{transform:scale(1)}.controller .bar-wrap .bar-time[data-v-a0b74ebc]{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-a0b74ebc]{opacity:0}.controller .bar-wrap .bar[data-v-a0b74ebc]{position:relative;height:3px;width:100%;background:#fff3;cursor:pointer}.controller .bar-wrap .bar .loaded[data-v-a0b74ebc]{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-a0b74ebc]{position:absolute;left:0;top:0;bottom:0;height:3px;will-change:width;background-color:#fff}.controller .bar-wrap .bar .played .thumb[data-v-a0b74ebc]{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-a0b74ebc]{height:38px;position:absolute;bottom:0;left:14px;display:flex;align-items:center}.controller .icons .icon[data-v-a0b74ebc]{width:36px;height:100%;position:relative;cursor:pointer;display:flex;align-items:center;font-size:20px}.controller .icons .icon.play-icon[data-v-a0b74ebc]{font-size:26px}.controller .icons .icon .icon-content[data-v-a0b74ebc]{transition:all .2s ease-in-out;opacity:.8;color:#fff}.controller .icons .icon.active .icon-content[data-v-a0b74ebc],.controller .icons .icon:hover .icon-content[data-v-a0b74ebc]{opacity:1}.controller .icons .volume[data-v-a0b74ebc]{height:100%;position:relative;cursor:pointer;display:flex;align-items:center}.controller .icons .volume:hover .volume-bar-wrap .volume-bar[data-v-a0b74ebc]{width:45px}.controller .icons .volume:hover .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-a0b74ebc]{transform:scale(1)}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar[data-v-a0b74ebc]{width:45px}.controller .icons .volume.volume-active .volume-bar-wrap .volume-bar .volume-bar-inner .thumb[data-v-a0b74ebc]{transform:scale(1)}.controller .icons .volume-bar-wrap[data-v-a0b74ebc]{display:inline-block;margin:0 15px 0 -5px;vertical-align:middle;height:100%}.controller .icons .volume-bar[data-v-a0b74ebc]{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-a0b74ebc]{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-a0b74ebc]{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-a0b74ebc]{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-a0b74ebc]{margin-right:2px}.controller .time .dtime[data-v-a0b74ebc]{margin-left:2px}.editable-element-audio[data-v-5d8373ba]{position:absolute}.editable-element-audio.lock .audio-icon[data-v-5d8373ba]{cursor:default}.rotate-wrapper[data-v-5d8373ba]{width:100%;height:100%}.element-content[data-v-5d8373ba]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.audio-icon[data-v-5d8373ba]{cursor:move}.audio-player[data-v-5d8373ba]{position:absolute}.mouse-selection[data-v-053bfa3e]{position:absolute;background-color:#d144241a;border:1px solid #d14424;z-index:200}.mouse-selection.quadrant-1[data-v-053bfa3e]{transform-origin:50% 0;transform:rotate(180deg)}.mouse-selection.quadrant-2[data-v-053bfa3e]{transform-origin:0 0;transform:rotate(180deg)}.mouse-selection.quadrant-3[data-v-053bfa3e]{transform-origin:0 50%;transform:rotate(180deg)}.mouse-selection.quadrant-4[data-v-053bfa3e]{transform-origin:0 0;transform:rotate(0)}.grid-lines[data-v-d6e1ea18]{width:100%;height:100%;overflow:visible;z-index:999;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}.viewport-background[data-v-203ea8ff]{width:100%;height:100%;background-position:center;position:absolute}.alignment-line[data-v-7cd3d25d]{position:absolute;z-index:100}.alignment-line .line[data-v-7cd3d25d]{width:0;height:0;border:0 dashed #d14424}.alignment-line .line.vertical[data-v-7cd3d25d]{transform:translateY(-.5px);border-left-width:1px}.alignment-line .line.horizontal[data-v-7cd3d25d]{transform:translate(-.5px);border-top-width:1px}.ruler[data-v-b01be305]{font-size:12px}.h[data-v-b01be305]{position:absolute;background-color:#fff;border:1px solid #eee;height:20px;top:5px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.h .ruler-marker-100[data-v-b01be305]{height:100%;width:10%;line-height:20px;text-align:right;flex-shrink:0;padding-right:5px;position:relative}.h .ruler-marker-100.hide span[data-v-b01be305]{display:none}.h .ruler-marker-100.omit[data-v-b01be305]:before{display:none}.h .ruler-marker-100[data-v-b01be305]:not(:last-child):after{content:"";width:.1px;height:12px;position:absolute;right:0;bottom:0;background-color:#999}.h .ruler-marker-100[data-v-b01be305]:before{content:"";width:.1px;height:8px;position:absolute;right:50%;bottom:0;background-color:#999}.v[data-v-b01be305]{position:absolute;background-color:#fff;border:1px solid #eee;width:20px;left:5px;overflow:hidden}.v .ruler-marker-100[data-v-b01be305]{width:100%;line-height:20px;text-align:right;padding-bottom:5px;position:relative;writing-mode:vertical-rl}.v .ruler-marker-100.hide span[data-v-b01be305]{display:none}.v .ruler-marker-100.omit[data-v-b01be305]:before{display:none}.v .ruler-marker-100[data-v-b01be305]:not(:last-child):after{content:"";height:.1px;width:12px;position:absolute;bottom:0;right:0;background-color:#999}.v .ruler-marker-100[data-v-b01be305]:before{content:"";height:.1px;width:8px;position:absolute;bottom:50%;right:0;background-color:#999}.element-create-selection[data-v-7b17a883]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;cursor:crosshair}.element-create-selection svg[data-v-7b17a883]{overflow:visible}.selection[data-v-7b17a883]{position:absolute;opacity:.8}.selection[data-v-7b17a883]:not(.line){border:1px solid #d14424}.shape-create-canvas[data-v-541857e0]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;cursor:crosshair}.shape-create-canvas svg[data-v-541857e0]{width:100%;height:100%;overflow:visible}.resize-handler[data-v-bb3f9e62]{position:absolute;width:10px;height:10px;left:0;top:0;margin:-5px 0 0 -5px;border:1px solid #d14424;background-color:#fff;border-radius:1px;cursor:pointer}.resize-handler.left-top.rotate-0[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-0[data-v-bb3f9e62],.resize-handler.left.rotate-45[data-v-bb3f9e62],.resize-handler.right.rotate-45[data-v-bb3f9e62],.resize-handler.left-bottom.rotate-90[data-v-bb3f9e62],.resize-handler.right-top.rotate-90[data-v-bb3f9e62],.resize-handler.top.rotate-135[data-v-bb3f9e62],.resize-handler.bottom.rotate-135[data-v-bb3f9e62]{cursor:nwse-resize}.resize-handler.top.rotate-0[data-v-bb3f9e62],.resize-handler.bottom.rotate-0[data-v-bb3f9e62],.resize-handler.left-top.rotate-45[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-45[data-v-bb3f9e62],.resize-handler.left.rotate-90[data-v-bb3f9e62],.resize-handler.right.rotate-90[data-v-bb3f9e62],.resize-handler.left-bottom.rotate-135[data-v-bb3f9e62],.resize-handler.right-top.rotate-135[data-v-bb3f9e62]{cursor:ns-resize}.resize-handler.left-bottom.rotate-0[data-v-bb3f9e62],.resize-handler.right-top.rotate-0[data-v-bb3f9e62],.resize-handler.top.rotate-45[data-v-bb3f9e62],.resize-handler.bottom.rotate-45[data-v-bb3f9e62],.resize-handler.left-top.rotate-90[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-90[data-v-bb3f9e62],.resize-handler.left.rotate-135[data-v-bb3f9e62],.resize-handler.right.rotate-135[data-v-bb3f9e62]{cursor:nesw-resize}.resize-handler.left.rotate-0[data-v-bb3f9e62],.resize-handler.right.rotate-0[data-v-bb3f9e62],.resize-handler.left-bottom.rotate-45[data-v-bb3f9e62],.resize-handler.right-top.rotate-45[data-v-bb3f9e62],.resize-handler.top.rotate-90[data-v-bb3f9e62],.resize-handler.bottom.rotate-90[data-v-bb3f9e62],.resize-handler.left-top.rotate-135[data-v-bb3f9e62],.resize-handler.right-bottom.rotate-135[data-v-bb3f9e62]{cursor:ew-resize}.border-line[data-v-7114fb45]{position:absolute;width:0;height:0;left:0;top:0;border:0 dashed #d14424}.border-line.top[data-v-7114fb45]{border-top-width:1px}.border-line.bottom[data-v-7114fb45]{border-bottom-width:1px}.border-line.left[data-v-7114fb45]{border-left-width:1px}.border-line.right[data-v-7114fb45]{border-right-width:1px}.border-line.wide[data-v-7114fb45]:before{content:"";position:absolute;background:transparent;cursor:move}.border-line.wide.top[data-v-7114fb45]:before{top:-8px;left:-8px;width:calc(100% + 16px);height:16px}.border-line.wide.bottom[data-v-7114fb45]:before{bottom:-8px;left:-8px;width:calc(100% + 16px);height:16px}.border-line.wide.left[data-v-7114fb45]:before{top:-8px;left:-8px;width:16px;height:calc(100% + 16px)}.border-line.wide.right[data-v-7114fb45]:before{top:-8px;right:-8px;width:16px;height:calc(100% + 16px)}.multi-select-operate[data-v-135c8cb7]{position:absolute;top:0;left:0;z-index:101}.rotate-handler[data-v-9f21fc0f]{position:absolute;width:10px;height:10px;top:-25px;margin-left:-5px;border:1px solid #d14424;background-color:#fff;border-radius:1px;cursor:grab}.rotate-handler[data-v-9f21fc0f]:active{cursor:grabbing}.image-element-operate.cliping[data-v-2a1bef4e]{visibility:hidden}.operate-keypoint-handler[data-v-e65e73bd]{position:absolute;width:10px;height:10px;left:0;top:0;margin:-5px 0 0 -5px;border:1px solid #d14424;background-color:#ffe873;border-radius:1px}svg[data-v-32a06240]{position:absolute;left:0;top:0;pointer-events:none;transform-origin:0 0}.anchor-line[data-v-32a06240]{stroke-width:1px;stroke-dasharray:5 5;opacity:.5}.divider.horizontal[data-v-c7c64e0b]{width:100%;margin:24px 0;border-block-start:1px solid rgba(5,5,5,.06)}.divider.vertical[data-v-c7c64e0b]{position:relative;height:1em;display:inline-block;margin:0 8px;border-inline-start:1px solid rgba(5,5,5,.06)}.link-handler[data-v-f8f46f78]{height:30px;position:absolute;left:0;font-size:12px;padding:0 10px;background-color:#fff;box-shadow:3px 3px 3px #00000026;display:flex;align-items:center;color:#d14424}.link[data-v-f8f46f78]{max-width:300px;margin-right:20px;word-break:keep-all;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.btns[data-v-f8f46f78]{display:flex;align-items:center}.btns .btn[data-v-f8f46f78]{word-break:keep-all;cursor:pointer}.operate[data-v-b96daa51]{position:absolute;z-index:100;-webkit-user-select:none;user-select:none}.operate.multi-select[data-v-b96daa51]{opacity:.2}.animation-index[data-v-b96daa51]{position:absolute;top:0;left:-24px;font-size:12px}.animation-index .index-item[data-v-b96daa51]{width:18px;height:18px;background-color:#fff;color:#d14424;border:1px solid #d14424;display:flex;justify-content:center;align-items:center}.animation-index .index-item+.index-item[data-v-b96daa51]{margin-top:5px}.base-element-image[data-v-71d24108]{position:absolute}.rotate-wrapper[data-v-71d24108]{width:100%;height:100%}.element-content[data-v-71d24108]{width:100%;height:100%;position:relative}.element-content .image-content[data-v-71d24108]{width:100%;height:100%;overflow:hidden;position:relative}.element-content img[data-v-71d24108]{position:absolute}.color-mask[data-v-71d24108]{position:absolute;top:0;bottom:0;left:0;right:0}.base-element-text[data-v-e8894a41]{position:absolute}.rotate-wrapper[data-v-e8894a41]{width:100%;height:100%}.element-content[data-v-e8894a41]{position:relative;padding:10px;line-height:1.5;word-break:break-word}.element-content .text[data-v-e8894a41]{position:relative}.base-element-shape[data-v-2d39d3d1]{position:absolute}.rotate-wrapper[data-v-2d39d3d1]{width:100%;height:100%}.element-content[data-v-2d39d3d1]{width:100%;height:100%;position:relative}.element-content svg[data-v-2d39d3d1]{transform-origin:0 0;overflow:visible}.shape-text[data-v-2d39d3d1]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;padding:10px;line-height:1.2;word-break:break-word}.shape-text.top[data-v-2d39d3d1]{justify-content:flex-start}.shape-text.middle[data-v-2d39d3d1]{justify-content:center}.shape-text.bottom[data-v-2d39d3d1]{justify-content:flex-end}.base-element-line[data-v-e7dc2b42]{position:absolute}.element-content[data-v-e7dc2b42]{width:100%;height:100%;position:relative}.element-content svg[data-v-e7dc2b42]{transform-origin:0 0;overflow:visible}.base-element-chart[data-v-37ca5799]{position:absolute}.rotate-wrapper[data-v-37ca5799],.element-content[data-v-37ca5799]{width:100%;height:100%}.static-table[data-v-6d887dcd]{position:relative;-webkit-user-select:none;user-select:none}table[data-v-6d887dcd]{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-6d887dcd]{background-color:#fff}table.theme tr:nth-child(2n) .cell[data-v-6d887dcd]{background-color:var(--subThemeColor1)}table.theme tr:nth-child(odd) .cell[data-v-6d887dcd]{background-color:var(--subThemeColor2)}table.theme.row-header tr:first-child .cell[data-v-6d887dcd]{background-color:var(--themeColor)}table.theme.row-footer tr:last-child .cell[data-v-6d887dcd]{background-color:var(--themeColor)}table.theme.col-header tr .cell[data-v-6d887dcd]:first-child{background-color:var(--themeColor)}table.theme.col-footer tr .cell[data-v-6d887dcd]:last-child{background-color:var(--themeColor)}table .cell[data-v-6d887dcd]{position:relative;white-space:normal;word-wrap:break-word;vertical-align:middle;background-clip:padding-box}table .cell-text[data-v-6d887dcd]{padding:5px;line-height:1.5}.base-element-table[data-v-77cfa6e4]{position:absolute}.rotate-wrapper[data-v-77cfa6e4]{width:100%;height:100%}.element-content[data-v-77cfa6e4]{width:100%;height:100%;position:relative}.base-element-latex[data-v-93374af9]{position:absolute}.rotate-wrapper[data-v-93374af9]{width:100%;height:100%}.element-content[data-v-93374af9]{width:100%;height:100%;position:relative}.element-content svg[data-v-93374af9]{transform-origin:0 0;overflow:visible}.base-element-video[data-v-2fb0e771]{position:absolute}.rotate-wrapper[data-v-2fb0e771]{width:100%;height:100%}.element-content[data-v-2fb0e771]{width:100%;height:100%;background-color:#000;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;justify-content:center;align-items:center}.icon[data-v-2fb0e771]{font-size:140px;color:#aaa}.base-element-audio[data-v-b33e6120]{position:absolute}.rotate-wrapper[data-v-b33e6120]{width:100%;height:100%}.element-content[data-v-b33e6120]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.audio-icon[data-v-b33e6120]{cursor:move}.thumbnail-slide[data-v-cbd76d0a]{background-color:#fff;overflow:hidden;-webkit-user-select:none;user-select:none}.elements[data-v-cbd76d0a]{transform-origin:0 0}.background[data-v-cbd76d0a]{width:100%;height:100%;background-position:center;position:absolute}.placeholder[data-v-cbd76d0a]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.tabs[data-v-c7f9dce0]{display:flex;-webkit-user-select:none;user-select:none;line-height:1}.tabs[data-v-c7f9dce0]:not(.card){font-size:13px;align-items:center;justify-content:flex-start;border-bottom:1px solid #eee}.tabs:not(.card).space-around[data-v-c7f9dce0]{justify-content:space-around}.tabs:not(.card).space-between[data-v-c7f9dce0]{justify-content:space-between}.tabs:not(.card) .tab[data-v-c7f9dce0]{text-align:center;border-bottom:2px solid transparent;padding:8px 10px;cursor:pointer}.tabs:not(.card) .tab.active[data-v-c7f9dce0]{border-bottom:2px solid var(--color, #d14424)}.tabs.card[data-v-c7f9dce0]{height:40px;font-size:12px;flex-shrink:0}.tabs.card .tab[data-v-c7f9dce0]{flex:1;display:flex;justify-content:center;align-items:center;background-color:#f9f9f9;border-bottom:1px solid #eee;cursor:pointer}.tabs.card .tab.active[data-v-c7f9dce0]{background-color:transparent;border-bottom-color:transparent}.tabs.card .tab+.tab[data-v-c7f9dce0]{border-left:1px solid #eee}.button[data-v-3e3d85be]{height:32px;line-height:32px;outline:0;font-size:13px;padding:0 15px;text-align:center;color:#41464b;border-radius:2px;-webkit-user-select:none;user-select:none;letter-spacing:1px;cursor:pointer}.button.small[data-v-3e3d85be]{height:24px;line-height:24px;padding:0 7px;letter-spacing:0}.button.default[data-v-3e3d85be]{background-color:#fff;border:1px solid #d9d9d9;color:#41464b}.button.default[data-v-3e3d85be]:hover{color:#d14424;border-color:#d14424}.button.primary[data-v-3e3d85be]{background-color:#d14424;border:1px solid #d14424;color:#fff}.button.primary[data-v-3e3d85be]:hover{background-color:#de6949;border-color:#de6949}.button.checkbox[data-v-3e3d85be],.button.radio[data-v-3e3d85be]{background-color:#fff;border:1px solid #d9d9d9;color:#41464b}.button.checkbox[data-v-3e3d85be]:not(.checked):hover,.button.radio[data-v-3e3d85be]:not(.checked):hover{color:#d14424}.button.checked[data-v-3e3d85be]{color:#fff;background-color:#d14424;border-color:#d14424}.button.checked[data-v-3e3d85be]:hover{background-color:#de6949;border-color:#de6949}.button.disabled[data-v-3e3d85be]{background-color:#f5f5f5;border:1px solid #d9d9d9;color:#b7b7b7;cursor:default}.select[data-v-618af0ca]{width:100%;height:32px;padding-right:32px;border-radius:2px;transition:border-color .25s;font-size:13px;-webkit-user-select:none;user-select:none;background-color:#fff;border:1px solid #d9d9d9;position:relative;cursor:pointer}.select[data-v-618af0ca]:not(.disabled):hover{border-color:#d14424}.select.disabled[data-v-618af0ca]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7;cursor:default}.select .selector[data-v-618af0ca]{min-width:50px;height:30px;line-height:30px;padding-left:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.options[data-v-618af0ca]{max-height:260px;padding:5px;overflow:auto;text-align:left;font-size:13px;-webkit-user-select:none;user-select:none}.option[data-v-618af0ca]{height:32px;line-height:32px;padding:0 5px;border-radius:2px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.option.disabled[data-v-618af0ca]{color:#b7b7b7;cursor:default}.option[data-v-618af0ca]:not(.disabled,.selected):hover{background-color:#6666660d}.option.selected[data-v-618af0ca]{background-color:#d144240d}.icon[data-v-618af0ca]{width:32px;height:30px;color:#bfbfbf;position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center}.link-dialog[data-v-de4d9db3]{font-size:13px;line-height:1.675}.input[data-v-de4d9db3]{width:100%;height:32px}.preview[data-v-de4d9db3]{margin-top:12px}.thumbnail[data-v-de4d9db3]{border:1px solid rgba(209,68,36,.15);margin-top:5px}.btns[data-v-de4d9db3]{margin-top:20px;text-align:right}.modal[data-v-4d27bcca],.mask[data-v-4d27bcca]{top:0;left:0;width:100%;height:100%;z-index:5000}.modal[data-v-4d27bcca]{position:fixed;display:flex;justify-content:center;align-items:center;outline:0;border:0}.mask[data-v-4d27bcca]{position:absolute;background:#00000040}.modal-content[data-v-4d27bcca]{z-index:5001;padding:20px;background:#fff;border-radius:2px;overflow:hidden;box-shadow:0 1px 3px #0003;position:relative}.close-btn[data-v-4d27bcca]{width:20px;height:20px;display:flex;justify-content:center;align-items:center;position:absolute;top:16px;right:16px;cursor:pointer}.modal-fade-enter-active[data-v-4d27bcca]{animation:modal-fade-enter-4d27bcca .25s both ease-in}.modal-fade-leave-active[data-v-4d27bcca]{animation:modal-fade-leave-4d27bcca .25s both ease-out}.modal-zoom-enter-active[data-v-4d27bcca]{animation:modal-zoom-enter-4d27bcca .25s both cubic-bezier(.4,0,0,1.5)}.modal-zoom-leave-active[data-v-4d27bcca]{animation:modal-zoom-leave-4d27bcca .25s both}@keyframes modal-fade-enter-4d27bcca{0%{opacity:0}}@keyframes modal-fade-leave-4d27bcca{to{opacity:0}}@keyframes modal-zoom-enter-4d27bcca{0%{transform:scale3d(.3,.3,.3)}}@keyframes modal-zoom-leave-4d27bcca{to{transform:scale3d(.3,.3,.3)}}.canvas[data-v-8da5c669]{height:100%;-webkit-user-select:none;user-select:none;overflow:hidden;background-color:#f9f9f9;position:relative}.drag-mask[data-v-8da5c669]{cursor:grab;position:absolute;top:0;right:0;bottom:0;left:0}.viewport-wrapper[data-v-8da5c669]{position:absolute;box-shadow:0 0 15px #0000001a}.viewport[data-v-8da5c669]{position:absolute;top:0;left:0;transform-origin:0 0}.shape-item-thumbnail[data-v-2896ae03]{position:relative;cursor:pointer}.shape-content[data-v-2896ae03]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center}.shape-content:hover .shape-path[data-v-2896ae03]:not(.outlined){stroke:#d14424}.shape-content:hover .shape-path.outlined[data-v-2896ae03]{fill:#d14424}.shape-content svg[data-v-2896ae03]:not(:root){overflow:visible}.shape-pool[data-v-553b0d02]{width:340px;max-height:520px;overflow:auto;margin-top:-12px;margin-bottom:-12px;margin-right:-12px;padding-right:12px;padding-top:12px}.category-name[data-v-553b0d02]{width:100%;font-size:13px;margin-bottom:10px;border-left:4px solid #aaa;background-color:#eee;padding:2px 0 2px 10px}.shape-list[data-v-553b0d02]{display:flex;flex-wrap:wrap;align-content:flex-start;margin-bottom:10px}.shape-item[data-v-553b0d02]{width:8%;margin-bottom:calc(20% / 9);height:0;padding-bottom:8%;flex-shrink:0}.shape-item[data-v-553b0d02]:not(:nth-child(10n)){margin-right:calc(20% / 9)}.line-pool[data-v-b07efd40]{width:220px;overflow:auto;margin-bottom:-12px;margin-right:-12px;padding-right:12px}.category-name[data-v-b07efd40]{width:100%;font-size:13px;margin-bottom:10px;border-left:4px solid #aaa;background-color:#eee;padding:2px 0 2px 10px}.line-list[data-v-b07efd40]{display:flex;flex-wrap:wrap;align-content:flex-start;margin-bottom:10px}.line-item[data-v-b07efd40]{width:19%;margin-bottom:1.25%;height:0;padding-bottom:19%;flex-shrink:0;position:relative;cursor:pointer}.line-item[data-v-b07efd40]:not(:nth-child(5n)){margin-right:1.25%}.line-content[data-v-b07efd40]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;color:#999}.line-content[data-v-b07efd40]:hover{color:#d14424}.line-content svg[data-v-b07efd40]:not(:root){overflow:visible}.chart-pool[data-v-a4bc3ce2]{width:200px;margin-bottom:-5px;display:flex;flex-wrap:wrap;align-content:flex-start}.chart-item[data-v-a4bc3ce2]{width:19%;margin-bottom:1.25%;height:0;padding-bottom:19%;flex-shrink:0;position:relative;cursor:pointer}.chart-item[data-v-a4bc3ce2]:not(:nth-child(5n)){margin-right:1.25%}.chart-content[data-v-a4bc3ce2]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;color:#999}.chart-content[data-v-a4bc3ce2]:hover{color:#d14424}.number-input[data-v-d97071e3]{background-color:#fff;border:1px solid #d9d9d9;padding:0 0 0 5px;border-radius:2px;transition:border-color .25s;font-size:13px;display:inline-flex}.number-input .input-wrap[data-v-d97071e3]{flex:1;color:#41464b;padding:0 0 0 5px;position:relative}.number-input:not(.disabled) .input-wrap:hover .handlers[data-v-d97071e3]{opacity:1}.number-input .handlers[data-v-d97071e3]{width:20px;position:absolute;top:0;bottom:0;right:0;display:flex;flex-direction:column;font-size:6px;color:#999;opacity:0;-webkit-user-select:none;user-select:none;transition:opacity .25s}.number-input .handlers .handler[data-v-d97071e3]{width:100%;height:50%;display:flex;justify-content:center;align-items:center;border-left:1px solid #d9d9d9;cursor:pointer}.number-input .handlers .handler+.handler[data-v-d97071e3]{border-top:1px solid #d9d9d9}.number-input .handlers .handler[data-v-d97071e3]:hover{color:#d14424}.number-input input[data-v-d97071e3]{width:100%;min-width:0;padding:0;height:30px;line-height:30px;outline:0;border:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.number-input input[data-v-d97071e3]::placeholder{color:#bfbfbf}.number-input[data-v-d97071e3]:not(.disabled):hover,.number-input.focused[data-v-d97071e3]{border-color:#d14424}.number-input.disabled[data-v-d97071e3]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7}.number-input .prefix[data-v-d97071e3],.number-input .suffix[data-v-d97071e3]{display:flex;justify-content:center;align-items:center;line-height:30px;-webkit-user-select:none;user-select:none}.table-generator[data-v-81680e19]{width:100%;margin-top:-12px}.title[data-v-81680e19]{height:28px;line-height:28px;background-color:#ededed;margin:0 -12px 12px;padding:0 14px;font-size:12px;display:flex;justify-content:space-between;-webkit-user-select:none;user-select:none}.title .right[data-v-81680e19]{cursor:pointer}.title .right[data-v-81680e19]:hover{color:#d14424}table[data-v-81680e19]{border-collapse:separate}td[data-v-81680e19]{width:23px;height:23px;line-height:23px;border:2px solid #fff;background-color:#f7f7f7}.cell[data-v-81680e19]{width:100%;height:100%;border:1px solid #dcdcdc}.cell.active[data-v-81680e19]{background-color:#d144241a;border-color:#d14424}.custom[data-v-81680e19]{width:230px}.custom .row[data-v-81680e19]{display:flex;align-items:center}.custom .row+.row[data-v-81680e19]{margin-top:10px}.btns[data-v-81680e19]{margin-top:10px;text-align:right}.btns .btn[data-v-81680e19]{margin-left:10px}.media-input[data-v-999b18ca]{width:480px}.btns[data-v-999b18ca]{margin-top:10px;text-align:right}svg[data-v-fa1b116d]{overflow:hidden}.textarea[data-v-7acfd65e]{outline:0;width:100%;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;padding:10px;transition:border-color .25s;box-sizing:border-box;line-height:1.675;resize:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.textarea[data-v-7acfd65e]:focus{border-color:#d14424;background-color:#fff}.textarea.resizable[data-v-7acfd65e]{resize:vertical}.textarea.disabled[data-v-7acfd65e]{background-color:#f5f5f5;border-color:#dcdcdc;color:#b7b7b7}.textarea[data-v-7acfd65e]::placeholder{color:#bfbfbf}.latex-editor[data-v-44075c46]{height:560px}.container[data-v-44075c46]{height:calc(100% - 50px);display:flex}.left[data-v-44075c46]{width:540px;height:100%;display:flex;flex-direction:column;flex-shrink:0}.input-area[data-v-44075c46]{flex:1}.input-area textarea[data-v-44075c46]{height:100%!important;border-color:#eee!important;padding:10px!important}.input-area textarea[data-v-44075c46]:focus{box-shadow:none!important}.preview[data-v-44075c46]{height:160px;display:flex;justify-content:center;align-items:center;text-align:center;margin-top:20px;border:1px solid #eee;-webkit-user-select:none;user-select:none}.placeholder[data-v-44075c46]{color:#888;font-size:13px}.preview-content[data-v-44075c46]{width:100%;height:100%;padding:10px;display:flex;justify-content:center;align-items:center}.right[data-v-44075c46]{width:280px;height:100%;margin-left:20px;border:solid 1px #eee;background-color:#fff;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.content[data-v-44075c46]{height:calc(100% - 40px);font-size:13px}.formula[data-v-44075c46]{height:100%;padding:12px;overflow:auto;overflow:overlay}.formula-item+.formula-item[data-v-44075c46]{margin-top:10px}.formula-item .formula-title[data-v-44075c46]{margin-bottom:5px}.formula-item .formula-item-content[data-v-44075c46]{height:60px;padding:5px;display:flex;align-items:center;background-color:#f9f9f9;cursor:pointer}.symbol[data-v-44075c46]{height:100%;display:flex;flex-direction:column}.symbol-pool[data-v-44075c46]{display:flex;flex-wrap:wrap;flex:1;padding:12px;overflow:auto;overflow:overlay}.symbol-item[data-v-44075c46]{display:flex;justify-content:center;align-items:center}.symbol-item[data-v-44075c46]:hover{background-color:#f9f9f9;cursor:pointer}.footer[data-v-44075c46]{height:50px;display:flex;justify-content:flex-end;align-items:flex-end}.footer .btn[data-v-44075c46]{margin-left:10px}.canvas-tool[data-v-ce7e5a5b]{position:relative;border-bottom:1px solid #eee;background-color:#fff;display:flex;justify-content:space-between;padding:0 10px;font-size:13px;-webkit-user-select:none;user-select:none}.left-handler[data-v-ce7e5a5b]{display:flex;align-items:center}.add-element-handler[data-v-ce7e5a5b]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex}.add-element-handler .handler-item[data-v-ce7e5a5b]{width:32px}.add-element-handler .handler-item[data-v-ce7e5a5b]:not(.group-btn):hover{background-color:#f1f1f1}.add-element-handler .handler-item.active[data-v-ce7e5a5b]{color:#d14424}.add-element-handler .handler-item.group-btn[data-v-ce7e5a5b]{width:auto;margin-right:4px}.add-element-handler .handler-item.group-btn[data-v-ce7e5a5b]:hover{background-color:#f3f3f3}.add-element-handler .handler-item.group-btn .icon[data-v-ce7e5a5b],.add-element-handler .handler-item.group-btn .arrow[data-v-ce7e5a5b]{height:100%;display:flex;justify-content:center;align-items:center}.add-element-handler .handler-item.group-btn .icon[data-v-ce7e5a5b]{width:26px;padding:0 2px}.add-element-handler .handler-item.group-btn .icon[data-v-ce7e5a5b]:hover{background-color:#e9e9e9}.add-element-handler .handler-item.group-btn .icon.active[data-v-ce7e5a5b]{color:#d14424}.add-element-handler .handler-item.group-btn .arrow[data-v-ce7e5a5b]{font-size:12px}.add-element-handler .handler-item.group-btn .arrow[data-v-ce7e5a5b]:hover{background-color:#e9e9e9}.handler-item[data-v-ce7e5a5b]{height:24px;font-size:14px;margin:0 2px;display:flex;justify-content:center;align-items:center;border-radius:2px;overflow:hidden;cursor:pointer}.handler-item.disable[data-v-ce7e5a5b]{opacity:.5}.left-handler .handler-item[data-v-ce7e5a5b],.right-handler .handler-item[data-v-ce7e5a5b]{padding:0 8px}.left-handler .handler-item.active[data-v-ce7e5a5b],.left-handler .handler-item[data-v-ce7e5a5b]:not(.disable):hover,.right-handler .handler-item.active[data-v-ce7e5a5b],.right-handler .handler-item[data-v-ce7e5a5b]:not(.disable):hover{background-color:#f1f1f1}.right-handler[data-v-ce7e5a5b]{display:flex;align-items:center}.right-handler .text[data-v-ce7e5a5b]{display:inline-block;width:40px;text-align:center;cursor:pointer}.right-handler .viewport-size[data-v-ce7e5a5b]{font-size:13px}@media screen and (width <= 1024px){.text[data-v-ce7e5a5b]{display:none}}@media screen and (width <= 1000px){.left-handler[data-v-ce7e5a5b],.right-handler[data-v-ce7e5a5b]{display:none}}.layout-pool[data-v-7015b27d]{width:394px;height:500px;padding:2px 12px 2px 2px;margin-right:-12px;overflow:auto;display:flex;flex-wrap:wrap;align-content:flex-start}.layout-item[data-v-7015b27d]{width:48%;margin-bottom:4%}.layout-item[data-v-7015b27d]:not(:nth-child(2n)){margin-right:4%}.layout-item[data-v-7015b27d]:nth-last-child(2),.layout-item[data-v-7015b27d]:last-child{margin-bottom:0}.layout-item .thumbnail[data-v-7015b27d]{outline:1px solid #eee;cursor:pointer}.layout-item .thumbnail[data-v-7015b27d]:hover{outline-color:#d14424}.thumbnails[data-v-d7a17fcd]{border-right:solid 1px #eee;background-color:#fff;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.add-slide[data-v-d7a17fcd]{height:40px;font-size:12px;display:flex;flex-shrink:0;border-bottom:1px solid #eee;cursor:pointer}.add-slide .btn[data-v-d7a17fcd]{flex:1;display:flex;justify-content:center;align-items:center}.add-slide .btn[data-v-d7a17fcd]:hover{background-color:#f9f9f9}.add-slide .select-btn[data-v-d7a17fcd]{width:30px;height:100%;display:flex;justify-content:center;align-items:center;border-left:1px solid #eee}.add-slide .select-btn[data-v-d7a17fcd]:hover{background-color:#f9f9f9}.add-slide .icon[data-v-d7a17fcd]{margin-right:3px;font-size:14px}.thumbnail-list[data-v-d7a17fcd]{padding:5px 0;flex:1;overflow:auto}.thumbnail-item[data-v-d7a17fcd]{display:flex;justify-content:center;align-items:center;padding:5px 0}.thumbnail-item .thumbnail[data-v-d7a17fcd]{outline:2px solid rgba(209,68,36,.15)}.thumbnail-item.active .label[data-v-d7a17fcd]{color:#d14424}.thumbnail-item.active .thumbnail[data-v-d7a17fcd],.thumbnail-item.selected .thumbnail[data-v-d7a17fcd]{outline-color:#d14424}.label[data-v-d7a17fcd]{font-size:12px;color:#999;width:20px;cursor:grab}.label.offset-left[data-v-d7a17fcd]{position:relative;left:-4px}.label[data-v-d7a17fcd]:active{cursor:grabbing}.page-number[data-v-d7a17fcd]{height:40px;font-size:12px;border-top:1px solid #eee;line-height:40px;text-align:center;color:#666}.slider[data-v-a7428be4]{width:100%;height:12px;padding:4px 0;-webkit-user-select:none;user-select:none}.slider.disabled .track[data-v-a7428be4]{background-color:#b4b4b4}.slider.disabled .thumb[data-v-a7428be4]{outline:2px solid #b4b4b4}.slider[data-v-a7428be4]:not(.disabled){cursor:pointer}.slider:not(.disabled) .bar[data-v-a7428be4]:hover{background-color:#f0f0f0}.slider:not(.disabled) .track[data-v-a7428be4]:hover{background-color:#de6949}.slider:not(.disabled) .thumb[data-v-a7428be4]:hover,.slider:not(.disabled) .thumb[data-v-a7428be4]:active{outline:4px solid #d14424}.bar[data-v-a7428be4]{width:calc(100% - 10px);margin-left:5px;height:4px;border-radius:2px;position:relative;background-color:#f5f5f5;-webkit-user-select:none;user-select:none;transition:background-color .2s}.track[data-v-a7428be4]{position:absolute;top:0;left:0;height:100%;background-color:#d14424;transition:background-color .2s}.thumb[data-v-a7428be4]{position:absolute;top:50%;left:0;width:10px;height:10px;background-color:#fff;outline:2px solid #d14424;transform:translate(-50%,-50%);border-radius:50%;z-index:100}.thumb[data-v-a7428be4]:hover:before,.thumb[data-v-a7428be4]:hover:after,.thumb[data-v-a7428be4]:active:before,.thumb[data-v-a7428be4]:active:after{display:block}.thumb[data-v-a7428be4]:before{content:attr(data-tooltip);min-width:28px;display:none;position:absolute;left:50%;bottom:24px;transform:translate(-50%);background-color:#262626;text-align:center;color:#fff;border-radius:2px;padding:6px 5px;font-size:12px}.thumb[data-v-a7428be4]:after{content:"";display:none;position:absolute;left:50%;bottom:15px;transform:translate(-50%);border:5px solid transparent;border-top-color:#262626}.row[data-v-c3b27b40]{width:100%;display:flex;align-items:center;margin-bottom:10px}.color-btn[data-v-5e2a7fc5]{width:100%;display:flex!important;align-items:center;justify-content:center;padding:0!important}.color-block[data-v-5e2a7fc5]{height:20px;margin-left:8px;flex:1;outline:1px dashed rgba(102,102,102,.12);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAEBJREFUOE9jfPbs2X8GIoCkpCQRqhgYGEcNxBlOo2GIM2iGQLL5//8/UTnl+fPnxOWUUQNxhtNoGOLOKYM+2QAAh2Nq10DwkukAAAAASUVORK5CYII=)}.content[data-v-5e2a7fc5]{width:100%;height:100%}.color-btn-icon[data-v-5e2a7fc5]{width:32px;font-size:13px;color:#bfbfbf}.checkerboard[data-v-46275348]{background-size:contain;position:absolute;top:0;right:0;bottom:0;left:0}.alpha[data-v-429f62d3]{position:absolute;top:0;right:0;bottom:0;left:0}.alpha-checkboard-wrap[data-v-429f62d3]{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0}.alpha-gradient[data-v-429f62d3]{position:absolute;top:0;right:0;bottom:0;left:0}.alpha-container[data-v-429f62d3]{cursor:pointer;position:relative;z-index:2;height:100%;margin:0 3px}.alpha-pointer[data-v-429f62d3]{z-index:2;position:absolute}.alpha-picker[data-v-429f62d3]{cursor:pointer;width:4px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}.hue[data-v-21ccc370]{background:linear-gradient(to right,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);position:absolute;top:0;right:0;bottom:0;left:0}.hue-container[data-v-21ccc370]{cursor:pointer;margin:0 2px;position:relative;height:100%}.hue-pointer[data-v-21ccc370]{z-index:2;position:absolute;top:0}.hue-picker[data-v-21ccc370]{cursor:pointer;margin-top:1px;width:4px;height:8px;box-shadow:0 0 2px #0009;background:#fff;transform:translate(-2px)}.saturation[data-v-4a728d90],.saturation-white[data-v-4a728d90],.saturation-black[data-v-4a728d90]{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer}.saturation-white[data-v-4a728d90]{background:linear-gradient(to right,#fff,#fff0)}.saturation-black[data-v-4a728d90]{background:linear-gradient(to top,#000,#0000)}.saturation-pointer[data-v-4a728d90]{cursor:pointer;position:absolute}.saturation-circle[data-v-4a728d90]{width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;transform:translate(-2px,-2px)}.editable-input[data-v-573b4dde]{width:100%;position:relative;overflow:hidden;text-align:center;font-size:14px}.editable-input[data-v-573b4dde]:after{content:"#";position:absolute;left:0;top:50%;transform:translateY(-50%);color:#999}.input-content[data-v-573b4dde]{width:100%;padding:3px;border:0;border-bottom:1px solid #ddd;outline:none;text-align:center}.input-label[data-v-573b4dde]{text-transform:capitalize}.color-picker[data-v-7eb7f5d0]{position:relative;width:240px;background:#fff;-webkit-user-select:none;user-select:none;margin-bottom:-10px}.picker-saturation-wrap[data-v-7eb7f5d0]{width:100%;padding-bottom:50%;position:relative;overflow:hidden}.picker-controls[data-v-7eb7f5d0]{display:flex}.picker-sliders[data-v-7eb7f5d0]{padding:4px 0;flex:1}.picker-hue-wrap[data-v-7eb7f5d0]{position:relative;height:10px}.picker-alpha-wrap[data-v-7eb7f5d0]{position:relative;height:10px;margin-top:4px;overflow:hidden}.picker-color-wrap[data-v-7eb7f5d0]{width:24px;height:24px;position:relative;margin-top:4px;margin-right:4px;outline:1px dashed rgba(102,102,102,.12)}.picker-color-wrap .checkerboard[data-v-7eb7f5d0]{background-size:auto}.picker-current-color[data-v-7eb7f5d0]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.picker-field[data-v-7eb7f5d0]{display:flex;margin-bottom:8px}.picker-field .transparent[data-v-7eb7f5d0]{width:24px;height:24px;margin-top:4px;margin-left:8px;position:relative;cursor:pointer}.picker-field .transparent[data-v-7eb7f5d0]:after{content:"";width:26px;height:2px;position:absolute;top:11px;left:-1px;transform:rotate(-45deg);background-color:red}.picker-field .transparent .checkerboard[data-v-7eb7f5d0]{background-size:auto}.picker-field .straw[data-v-7eb7f5d0]{width:24px;height:24px;margin-top:4px;margin-left:8px;display:flex;justify-content:center;align-items:center;font-size:20px;background-color:#f5f5f5;outline:1px solid #f1f1f1;cursor:pointer}.picker-field .input[data-v-7eb7f5d0]{flex:1}.picker-presets[data-v-7eb7f5d0]{display:flex;flex-wrap:wrap;align-content:flex-start}.picker-presets-color[data-v-7eb7f5d0]{width:7%;margin-bottom:calc(30% / 9);height:0;padding-bottom:7%;flex-shrink:0;position:relative;cursor:pointer}.picker-presets-color[data-v-7eb7f5d0]:not(:nth-child(10n)){margin-right:calc(30% / 9)}.picker-presets-color.alpha[data-v-7eb7f5d0]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAADBJREFUOE9jfPbs2X8GPEBSUhKfNAPjqAHDIgz+//+PNx08f/4cfzoYNYCBceiHAQC5flV5JzgrxQAAAABJRU5ErkJggg==)}.picker-presets-color-content[data-v-7eb7f5d0]{position:absolute;top:0;right:0;bottom:0;left:0}.picker-gradient-presets[data-v-7eb7f5d0]{display:flex;flex-wrap:wrap;align-content:flex-start}.picker-gradient-col[data-v-7eb7f5d0]{width:7%;margin-bottom:calc(30% / 9);display:flex;flex-direction:column}.picker-gradient-col[data-v-7eb7f5d0]:not(:nth-child(10n)){margin-right:calc(30% / 9)}.picker-gradient-color[data-v-7eb7f5d0]{width:100%;height:16px;position:relative;cursor:pointer}.recent-colors-title[data-v-7eb7f5d0]{font-size:12px;margin-bottom:4px}.switch[data-v-a0d44a99]{height:20px;display:inline-block;cursor:pointer}.switch:not(.disabled).active .switch-core[data-v-a0d44a99]{border-color:#d14424;background-color:#d14424}.switch:not(.disabled).active .switch-core[data-v-a0d44a99]:after{left:100%;margin-left:-17px}.switch.disabled[data-v-a0d44a99]{cursor:default}.switch.disabled .switch-core[data-v-a0d44a99]:after{background-color:#f5f5f5}.switch-core[data-v-a0d44a99]{margin:0;display:inline-block;position:relative;width:40px;height:20px;border:1px solid #d9d9d9;outline:none;border-radius:10px;box-sizing:border-box;background:#d9d9d9;transition:border-color .3s,background-color .3s;vertical-align:middle}.switch-core[data-v-a0d44a99]:after{content:"";position:absolute;top:1px;left:1px;border-radius:100%;transition:all .3s;width:16px;height:16px;background-color:#fff}.row[data-v-fd752d80]{width:100%;height:30px;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-fd752d80]{text-align:right}.row[data-v-814f50a5]{width:100%;height:30px;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-814f50a5]{text-align:right}.text-color-btn[data-v-98853be0]{width:100%;display:flex!important;flex-direction:column;justify-content:center;align-items:center;padding:0}.text-color-block[data-v-98853be0]{width:17px;height:4px;margin-top:1px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAACdJREFUGFdjfPbs2X8GBgYGSUlJEMXAiCHw//9/sIrnz59DVKALAADNxxVfaiODNQAAAABJRU5ErkJggg==)}.text-color-block .text-color-block-content[data-v-98853be0]{width:100%;height:100%}.button-group[data-v-6a640ef5]{display:flex;align-items:center}.button-group[data-v-6a640ef5] button.button{border-radius:0;border-left-width:1px;border-right-width:0;display:inline-block}.button-group[data-v-6a640ef5]:not(.passive) button.button:not(:last-child,.radio,.checkbox):hover{position:relative}.button-group[data-v-6a640ef5]:not(.passive) button.button:not(:last-child,.radio,.checkbox):hover:after{content:"";width:1px;height:calc(100% + 2px);background-color:#d14424;position:absolute;top:-1px;right:-1px}.button-group[data-v-6a640ef5]:not(.passive) button.button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left-width:1px}.button-group[data-v-6a640ef5]:not(.passive) button.button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right-width:1px}.button-group.passive[data-v-6a640ef5] button.button:not(.last,.radio,.checkbox):hover{position:relative}.button-group.passive[data-v-6a640ef5] button.button:not(.last,.radio,.checkbox):hover:after{content:"";width:1px;height:calc(100% + 2px);background-color:#d14424;position:absolute;top:-1px;right:-1px}.button-group.passive[data-v-6a640ef5] button.button.first{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left-width:1px}.button-group.passive[data-v-6a640ef5] button.button.last{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right-width:1px}.select-group[data-v-ed58c719]{display:flex;align-items:center}.select-group[data-v-ed58c719] .select-wrap .select{border-radius:0;border-left-width:0;border-right-width:0}.select-group[data-v-ed58c719] .select-wrap+.select-wrap .select{border-left-width:1px}.select-group[data-v-ed58c719] .select-wrap:hover+.select-wrap .select{border-left-color:#d14424}.select-group[data-v-ed58c719] .select-wrap:first-child .select{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left-width:1px}.select-group[data-v-ed58c719] .select-wrap:last-child .select{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right-width:1px}.text-style-panel[data-v-becd4c4e]{-webkit-user-select:none;user-select:none}.row[data-v-becd4c4e]{width:100%;display:flex;align-items:center;margin-bottom:10px}.preset-style[data-v-becd4c4e]{display:flex;flex-wrap:wrap;margin-bottom:10px}.preset-style-item[data-v-becd4c4e]{width:50%;height:50px;border:solid 1px #d6d6d6;box-sizing:border-box;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;transition:all .2s}.preset-style-item[data-v-becd4c4e]:hover{border-color:#d14424;color:#d14424;z-index:1}.preset-style-item[data-v-becd4c4e]:nth-child(2n){margin-left:-1px}.preset-style-item[data-v-becd4c4e]:nth-child(n+3){margin-top:-1px}.font-size-btn[data-v-becd4c4e]{padding:0}.link-popover[data-v-becd4c4e]{width:240px}.link-popover .btns[data-v-becd4c4e]{margin-top:10px;text-align:right}.list-wrap[data-v-becd4c4e]{width:176px;color:#666;padding:8px;margin:-12px;display:flex;flex-wrap:wrap;align-content:flex-start}.list[data-v-becd4c4e]{background-color:#f9f9f9;padding:4px 4px 4px 20px;cursor:pointer}.list[data-v-becd4c4e]:not(:nth-child(3n)){margin-right:8px}.list[data-v-becd4c4e]:nth-child(4),.list[data-v-becd4c4e]:nth-child(5),.list[data-v-becd4c4e]:nth-child(6){margin-top:8px}.list[data-v-becd4c4e]:hover{color:#d14424}.list:hover span[data-v-becd4c4e]{background-color:#d14424}.list-item[data-v-becd4c4e]{width:24px;height:12px;position:relative;font-size:12px;top:-5px}.list-item span[data-v-becd4c4e]{width:100%;height:2px;display:inline-block;position:absolute;top:10px;background-color:#666}.popover-btn[data-v-becd4c4e]{padding:0 3px}.row[data-v-100c8a7c],.row[data-v-44786c09]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-44786c09]{text-align:right}.filter[data-v-44786c09]{font-size:12px}.filter-item[data-v-44786c09]{padding:6px 0;display:flex;justify-content:center;align-items:center}.filter-item .name[data-v-44786c09]{width:60px}.filter-item .filter-slider[data-v-44786c09]{flex:1;margin:0 6px}.row[data-v-d428a4e5]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-d428a4e5]{text-align:right}.row[data-v-0c668b03]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-wrapper[data-v-0c668b03]{text-align:right}.origin-image[data-v-0c668b03]{height:100px;background-size:contain;background-repeat:no-repeat;background-position:center;background-color:#f9f9f9;margin-bottom:10px}.full-width-btn[data-v-0c668b03]{width:100%;margin-bottom:10px}.btn-icon[data-v-0c668b03]{margin-right:3px}.clip[data-v-0c668b03]{width:260px;font-size:12px}.clip .title[data-v-0c668b03]{margin-bottom:5px}.shape-clip[data-v-0c668b03]{margin-bottom:10px;display:flex;flex-wrap:wrap;align-content:flex-start}.shape-clip-item[data-v-0c668b03]{display:flex;justify-content:center;align-items:center;cursor:pointer;width:16%;margin-bottom:5%}.shape-clip-item[data-v-0c668b03]:not(:nth-child(5n)){margin-right:5%}.shape-clip-item:hover .shape[data-v-0c668b03]{background-color:#ccc}.shape-clip-item .shape[data-v-0c668b03]{width:40px;height:40px;background-color:#e1e1e1}.popover-btn[data-v-0c668b03]{padding:0 3px}.shape-style-panel[data-v-830d0c7f]{-webkit-user-select:none;user-select:none}.row[data-v-830d0c7f]{width:100%;display:flex;align-items:center;margin-bottom:10px}.font-size-btn[data-v-830d0c7f]{padding:0}.title[data-v-830d0c7f]{display:flex;justify-content:space-between;margin-bottom:10px}.shape-pool[data-v-830d0c7f]{width:235px;height:150px;overflow:auto;padding:5px 10px 5px 5px;border:1px solid #eee;margin-bottom:20px}.shape-list[data-v-830d0c7f]{display:flex;flex-wrap:wrap;align-content:flex-start}.shape-item[data-v-830d0c7f]{width:14%;margin-bottom:3.2%;height:0;padding-bottom:14%;flex-shrink:0}.shape-item[data-v-830d0c7f]:not(:nth-child(6n)){margin-right:3.2%}.row[data-v-d5f2e330]{width:100%;display:flex;align-items:center;margin-bottom:10px}.line-btn[data-v-d5f2e330]{display:flex;align-items:center;justify-content:space-between;padding:0!important}.line-btn .line-wrapper[data-v-d5f2e330]{margin-left:8px}.line-wrapper[data-v-d5f2e330]{overflow:visible}.line-btn-icon[data-v-d5f2e330]{width:30px;font-size:12px;margin-top:2px;color:#bfbfbf}.preset-point-style[data-v-d5f2e330]{padding:0 10px}.preset-point-style+.preset-point-style[data-v-d5f2e330]{margin-top:10px}.chart-data-editor[data-v-ac578a4f]{width:600px;position:relative}.editor-content[data-v-ac578a4f]{width:100%;height:360px;position:relative;border-right:1px solid #ccc;border-bottom:1px solid #ccc;overflow:auto;overflow:overlay}.range-box[data-v-ac578a4f]{position:absolute;top:0;left:0;z-index:100;-webkit-user-select:none;user-select:none}.temp-range[data-v-ac578a4f]{width:0;height:0;position:absolute;top:0;left:0;background-color:#8888884d}.range-line[data-v-ac578a4f]{width:0;height:0;position:absolute;left:0;top:0;border:0 solid #d14424}.range-line.t[data-v-ac578a4f]{border-top-width:1px}.range-line.b[data-v-ac578a4f]{border-bottom-width:1px}.range-line.l[data-v-ac578a4f]{border-left-width:1px}.range-line.r[data-v-ac578a4f]{border-right-width:1px}.resizable[data-v-ac578a4f]{position:absolute;width:12px;height:12px;left:0;top:0;margin:-9px 0 0 -9px;cursor:nwse-resize}.resizable[data-v-ac578a4f]:after{content:"";position:absolute;width:4px;height:12px;right:0;top:0;background-color:#d14424}.resizable[data-v-ac578a4f]:before{content:"";position:absolute;width:12px;height:4px;right:0;bottom:0;background-color:#d14424}table[data-v-ac578a4f]{width:100%;height:100%;-webkit-user-select:none;user-select:none;table-layout:fixed}table td[data-v-ac578a4f]{text-align:center;border:1px solid #ccc;vertical-align:middle;width:100px;height:32px}table td.head[data-v-ac578a4f]{background-color:#d144241a}table .item[data-v-ac578a4f]{width:100%;height:100%;border:0;outline:0;font-size:13px;text-align:center;background-color:transparent}table .item.selected[data-v-ac578a4f]{background-color:#d1442405}.btns[data-v-ac578a4f]{margin-top:10px;display:flex;justify-content:space-between}.checkbox[data-v-3d20c849]{height:20px;display:flex;align-items:center;cursor:pointer}.checkbox:not(.disabled).checked .checkbox-input[data-v-3d20c849]{background-color:#d14424;border-color:#d14424}.checkbox:not(.disabled).checked .checkbox-input[data-v-3d20c849]:after{transform:rotate(45deg) scaleY(1)}.checkbox:not(.disabled).checked .checkbox-label[data-v-3d20c849]{color:#d14424}.checkbox.disabled[data-v-3d20c849]{color:#b7b7b7;cursor:default}.checkbox.disabled .checkbox-input[data-v-3d20c849]{background-color:#f5f5f5}.checkbox-input[data-v-3d20c849]{display:inline-block;position:relative;border:1px solid #d9d9d9;border-radius:2px;width:16px;height:16px;background-color:#fff;vertical-align:middle;transition:border-color .15s cubic-bezier(.71,-.46,.29,1.46),background-color .15s cubic-bezier(.71,-.46,.29,1.46);z-index:1}.checkbox-input[data-v-3d20c849]:after{content:"";border:2px solid #fff;border-left:0;border-top:0;height:9px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:6px;transition:transform .15s ease-in .05s;transform-origin:center}.checkbox-original[data-v-3d20c849]{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.checkbox-label[data-v-3d20c849]{margin-left:5px;line-height:20px;font-size:13px;-webkit-user-select:none;user-select:none}.chart-style-panel[data-v-63098034]{-webkit-user-select:none;user-select:none}.row[data-v-63098034]{width:100%;display:flex;align-items:center;margin-bottom:10px}.full-width-btn[data-v-63098034]{width:100%}.btn-icon[data-v-63098034]{margin-right:3px}.color-btn-wrap[data-v-63098034]{position:relative}.delete-color-btn[data-v-63098034]{position:absolute;width:30px;right:2px;top:2px;bottom:2px;display:flex;justify-content:center;align-items:center;background-color:#fff;cursor:pointer}.preset-themes[data-v-63098034]{width:250px;margin-bottom:-10px;display:flex;flex-wrap:wrap;align-content:flex-start}.preset-theme[data-v-63098034]{display:flex;cursor:pointer;width:48%;margin-bottom:4%}.preset-theme[data-v-63098034]:not(:nth-child(2n)){margin-right:4%}.preset-theme-color[data-v-63098034]{width:20px;height:20px}.preset-theme-color.select[data-v-63098034]{transform:scale(1.2);transition:transform .1s}.row[data-v-adc75d19]{width:100%;display:flex;align-items:center;margin-bottom:10px}.theme-switch[data-v-adc75d19]{margin-bottom:18px}.switch-wrapper[data-v-adc75d19]{text-align:right}.set-count[data-v-adc75d19]{display:flex;justify-content:center;align-items:center}.set-count .btn[data-v-adc75d19]{padding:0 8px}.set-count .count-text[data-v-adc75d19]{flex:1;text-align:center;margin:0 8px}.row[data-v-6b6e110e],.row[data-v-b289959e]{width:100%;display:flex;align-items:center;margin-bottom:10px}.title[data-v-b289959e],.background-image-wrapper[data-v-b289959e]{margin-bottom:10px}.background-image[data-v-b289959e]{height:0;padding-bottom:56.25%;border:1px dashed #eee;border-radius:2px;position:relative;transition:all .2s}.background-image[data-v-b289959e]:hover{border-color:#d14424;color:#d14424}.background-image .content[data-v-b289959e]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer}.switch-row[data-v-b289959e]{height:32px}.switch-wrapper[data-v-b289959e]{text-align:right}.row[data-v-44ce0855]{width:100%;display:flex;align-items:center;margin-bottom:10px}.switch-row[data-v-44ce0855]{height:32px}.switch-wrapper[data-v-44ce0855]{text-align:right}.row[data-v-a267c062]{width:100%;display:flex;align-items:center;margin-bottom:10px}.font-size-btn[data-v-a267c062]{padding:0}.row[data-v-02ba2ecf]{width:100%;display:flex;align-items:center;margin-bottom:10px}.title[data-v-02ba2ecf]{margin-bottom:10px}.label[data-v-02ba2ecf]{text-align:center}.btn-icon[data-v-02ba2ecf]{margin-right:3px}.icon-btn[data-v-02ba2ecf]{cursor:pointer}.text-btn[data-v-02ba2ecf]{height:30px;line-height:30px;text-align:center;cursor:pointer}.text-btn[data-v-02ba2ecf]:hover{background-color:#efefef;border-radius:2px}.element-animation-panel[data-v-bf835335]{height:100%;display:flex;flex-direction:column}.element-animation[data-v-bf835335]{height:32px;display:flex;align-items:center}.element-animation-btn[data-v-bf835335]{width:100%}.config-item[data-v-bf835335]{display:flex;align-items:center}.config-item+.config-item[data-v-bf835335]{margin-top:5px}.tip[data-v-bf835335]{height:32px;display:flex;justify-content:center;align-items:center;font-style:italic}.animation-pool[data-v-bf835335]{width:400px;height:500px;overflow-y:auto;overflow-x:hidden;font-size:12px;margin-right:-10px;padding-right:5px;position:relative}.animation-pool .mask[data-v-bf835335]{position:absolute;top:0;right:0;bottom:0;left:0}.animation-pool.in .type-title[data-v-bf835335]{border-left-color:#68a490;background-color:#68a49026}.animation-pool.out .type-title[data-v-bf835335]{border-left-color:#d86344;background-color:#d8634426}.animation-pool.attention .type-title[data-v-bf835335]{border-left-color:#e8b76a;background-color:#e8b76a26}.pool-type[data-v-bf835335]:not(:last-child){margin-bottom:5px}.type-title[data-v-bf835335]{width:100%;font-size:13px;margin-bottom:10px;border-left:4px solid #aaa;background-color:#eee;padding:4px 0 4px 10px}.pool-item-wrapper[data-v-bf835335]{display:flex;flex-wrap:wrap;align-content:flex-start}.pool-item[data-v-bf835335]{width:24%;margin-bottom:calc(4% / 3);margin-bottom:5px;height:40px;line-height:40px;text-align:center;cursor:pointer}.pool-item[data-v-bf835335]:not(:nth-child(4n)){margin-right:calc(4% / 3)}.animation-box[data-v-bf835335]{background-color:#f9f9f9;border-radius:2px}.animation-sequence[data-v-bf835335]{flex:1;padding-right:12px;margin-right:-12px;overflow:auto;overflow:overlay}.sequence-item[data-v-bf835335]{border:1px solid #eee;padding:8px;border-radius:2px;margin-bottom:8px;transition:all .5s}.sequence-item.in.active[data-v-bf835335]{border-color:#68a490}.sequence-item.out.active[data-v-bf835335]{border-color:#d86344}.sequence-item.attention.active[data-v-bf835335]{border-color:#e8b76a}.sequence-item.active[data-v-bf835335]{height:auto}.sequence-item .sequence-content[data-v-bf835335]{display:flex;align-items:center;cursor:grab}.sequence-item .sequence-content[data-v-bf835335]:active{cursor:grabbing}.sequence-item .sequence-content .index[data-v-bf835335]{flex:1}.sequence-item .sequence-content .text[data-v-bf835335]{flex:6}.sequence-item .sequence-content .handler[data-v-bf835335]{flex:2;font-size:15px;text-align:right}.sequence-item .sequence-content .handler-btn[data-v-bf835335]{margin-left:8px;cursor:pointer}.slide-design-panel[data-v-04b174a8]{-webkit-user-select:none;user-select:none}.row[data-v-04b174a8]{width:100%;display:flex;align-items:center;margin-bottom:10px}.title[data-v-04b174a8]{display:flex;justify-content:space-between;margin-bottom:10px}.title .more[data-v-04b174a8]{cursor:pointer}.title .more .text[data-v-04b174a8]{font-size:12px;margin-right:3px}.background-image-wrapper[data-v-04b174a8]{margin-bottom:10px}.background-image[data-v-04b174a8]{height:0;padding-bottom:56.25%;border:1px dashed #eee;border-radius:2px;position:relative;transition:all .2s}.background-image[data-v-04b174a8]:hover{border-color:#d14424;color:#d14424}.background-image .content[data-v-04b174a8]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer}.theme-list[data-v-04b174a8]{display:flex;flex-wrap:wrap;align-content:flex-start}.theme-item[data-v-04b174a8]{width:48%;margin-bottom:4%;padding-bottom:30%;border-radius:2px;position:relative;cursor:pointer}.theme-item[data-v-04b174a8]:not(:nth-child(2n)){margin-right:4%}.theme-item .theme-item-content[data-v-04b174a8]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center;padding:8px;border:1px solid #eee;border-radius:2px}.theme-item .text[data-v-04b174a8]{font-size:16px}.theme-item .colors[data-v-04b174a8]{display:flex}.theme-item .color-block[data-v-04b174a8]{margin-top:8px;width:12px;height:12px;margin-right:2px}.theme-item:hover .btns[data-v-04b174a8]{display:flex}.theme-item .btns[data-v-04b174a8]{position:absolute;top:0;right:0;bottom:0;left:0;flex-direction:column;justify-content:center;align-items:center;display:none;background-color:#00000040}.theme-item .btn[data-v-04b174a8]{width:72px;padding:5px 0;text-align:center;background-color:#d14424;color:#fff;font-size:12px;border-radius:2px}.theme-item .btn[data-v-04b174a8]:hover{background-color:#de6949}.theme-item .btn+.btn[data-v-04b174a8]{margin-top:5px}.animation-pool[data-v-ae84c3f4]{display:flex;flex-wrap:wrap;margin-bottom:10px}.animation-item[data-v-ae84c3f4]{width:50%;height:100px;border:solid 1px #d6d6d6;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:20px 0 15px;position:relative;cursor:pointer}.animation-item.active[data-v-ae84c3f4]{border-color:#d14424;z-index:1}.animation-item[data-v-ae84c3f4]:nth-child(2n){margin-left:-1px}.animation-item[data-v-ae84c3f4]:nth-child(n+3){margin-top:-1px}.animation-block[data-v-ae84c3f4]{width:64px;height:36px;background:#666;position:relative;overflow:hidden}.animation-block.fade[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:fade-ae84c3f4 .3s linear}.animation-block.slideX[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideX-ae84c3f4 .3s linear}.animation-block.slideY[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideY-ae84c3f4 .3s linear}.animation-block.slideX3D[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideX3D-ae84c3f4 .3s linear}.animation-block.slideY3D[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:slideY3D-ae84c3f4 .3s linear}.animation-block.rotate[data-v-ae84c3f4]:hover:after{transform-origin:0 0;content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:rotate-ae84c3f4 .3s linear}.animation-block.scaleY[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scaleY-ae84c3f4 .3s linear}.animation-block.scaleX[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scaleX-ae84c3f4 .3s linear}.animation-block.scale[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scale-ae84c3f4 .3s linear}.animation-block.scaleReverse[data-v-ae84c3f4]:hover:after{content:"PPTist";width:100%;height:100%;position:absolute;left:0;top:0;background-color:#d14424bf;color:#fff;display:flex;justify-content:center;align-items:center;animation:scaleReverse-ae84c3f4 .3s linear}.animation-text[data-v-ae84c3f4]{font-size:12px;color:#333;text-align:center}@keyframes fade-ae84c3f4{0%{opacity:0}to{opacity:1}}@keyframes slideX-ae84c3f4{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slideY-ae84c3f4{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideX3D-ae84c3f4{0%{transform:translate(100%) scale(.5)}to{transform:translate(0)}}@keyframes slideY3D-ae84c3f4{0%{transform:translateY(100%) scale(.5)}to{transform:translateY(0)}}@keyframes rotate-ae84c3f4{0%{transform:rotate(-90deg)}to{transform:rotate(0)}}@keyframes scaleY-ae84c3f4{0%{transform:scaleY(.1)}to{transform:scaleY(1)}}@keyframes scaleX-ae84c3f4{0%{transform:scaleX(.1)}to{transform:scaleY(1)}}@keyframes scale-ae84c3f4{0%{transform:scale(.25)}to{transform:scale(1)}}@keyframes scaleReverse-ae84c3f4{0%{transform:scale(2)}to{transform:scale(1)}}.row[data-v-d41009b1]{width:100%;display:flex;align-items:center;margin-bottom:10px}.symbol-panel[data-v-0f662bb0]{height:100%;display:flex;flex-direction:column}.symbol-panel .pool[data-v-0f662bb0]{padding:5px 12px;margin:0 -12px;flex:1;font-size:18px;overflow:auto;overflow:overlay;display:flex;flex-wrap:wrap;align-content:flex-start}.symbol-panel .symbol-item[data-v-0f662bb0]{width:18%;margin-bottom:2.5%;height:0;padding-bottom:18%;position:relative;cursor:pointer;border:1px solid #eee}.symbol-panel .symbol-item[data-v-0f662bb0]:not(:nth-child(5n)){margin-right:2.5%}.symbol-panel .symbol-item[data-v-0f662bb0]:hover{color:#d14424}.symbol-panel .symbol-item .symbol[data-v-0f662bb0]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-color:#fff}.toolbar[data-v-83fff59a]{border-left:solid 1px #eee;background-color:#fff;display:flex;flex-direction:column}.content[data-v-83fff59a]{padding:12px;font-size:13px;overflow:auto;overflow:overlay}.editor[data-v-4042a280]{height:100%;overflow:auto}.prosemirror-editor[data-v-4042a280]{height:100%;cursor:text}.prosemirror-editor[data-v-4042a280] .ProseMirror{height:100%;font-size:12px;overflow:auto;padding:8px;line-height:1.5}.prosemirror-editor[data-v-4042a280] .ProseMirror>p[data-placeholder]:before{content:attr(data-placeholder);pointer-events:none;position:absolute;font-size:12px;color:#66666680}.menu[data-v-4042a280]{display:flex;background-color:#fff;padding:6px 4px;border-radius:2px;box-shadow:0 0 20px #00000026}.menu button[data-v-4042a280]{outline:0;border:0;background-color:#fff;padding:3px;border-radius:2px;font-size:16px;margin:0 3px;display:flex;align-items:center;justify-content:center;cursor:pointer}.menu button[data-v-4042a280]:hover,.menu button.active[data-v-4042a280]{background-color:#d14424;color:#fff}.remark[data-v-1c52a472]{position:relative;border-top:1px solid #eee}.resize-handler[data-v-1c52a472]{height:7px;position:absolute;top:-3px;left:0;right:0;cursor:n-resize;z-index:2}.export-img-dialog[data-v-32b43d99]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.thumbnails-view[data-v-32b43d99]{position:absolute;top:0;right:0;bottom:0;left:0}.thumbnails-view[data-v-32b43d99]:after{content:"";background-color:#fff;position:absolute;top:0;right:0;bottom:0;left:0}.configs[data-v-32b43d99]{width:350px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center;z-index:1}.configs .row[data-v-32b43d99]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-32b43d99]{width:100px;position:relative}.configs .title[data-v-32b43d99]:after{content:attr(data-range);position:absolute;top:20px;left:0}.configs .config-item[data-v-32b43d99]{flex:1}.btns[data-v-32b43d99]{width:300px;height:100px;display:flex;justify-content:center;align-items:center;z-index:1}.btns .export[data-v-32b43d99]{flex:1}.btns .close[data-v-32b43d99]{width:100px;margin-left:10px}.export-json-dialog[data-v-c2d35f76]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.preview[data-v-c2d35f76]{width:100%;height:calc(100% - 100px);background-color:#f9f9f9;color:#0451a5;overflow:auto}pre[data-v-c2d35f76]{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}.btns[data-v-c2d35f76]{width:300px;height:100px;display:flex;justify-content:center;align-items:center}.btns .export[data-v-c2d35f76]{flex:1}.btns .close[data-v-c2d35f76]{width:100px;margin-left:10px}[data-v-c2d35f76]::-webkit-scrollbar{width:10px;height:10px;background-color:#f9f9f9}[data-v-c2d35f76]::-webkit-scrollbar-thumb{background-color:#c1c1c1}.export-pdf-dialog[data-v-d3a30d69]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.thumbnails-view[data-v-d3a30d69]{position:absolute;top:0;right:0;bottom:0;left:0}.thumbnails-view[data-v-d3a30d69]:after{content:"";background-color:#fff;position:absolute;top:0;right:0;bottom:0;left:0}.thumbnail.break-page[data-v-d3a30d69]{break-after:page}.configs[data-v-d3a30d69]{width:300px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center;z-index:1}.configs .row[data-v-d3a30d69]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-d3a30d69]{width:100px}.configs .config-item[data-v-d3a30d69]{flex:1}.configs .tip[data-v-d3a30d69]{font-size:12px;color:#aaa;line-height:1.8;margin-top:25px}.btns[data-v-d3a30d69]{width:300px;height:100px;display:flex;justify-content:center;align-items:center;z-index:1}.btns .export[data-v-d3a30d69]{flex:1}.btns .close[data-v-d3a30d69]{width:100px;margin-left:10px}.export-pptx-dialog[data-v-254b6b07]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.configs[data-v-254b6b07]{width:350px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center}.configs .row[data-v-254b6b07]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-254b6b07]{width:100px;position:relative}.configs .title[data-v-254b6b07]:after{content:attr(data-range);position:absolute;top:20px;left:0}.configs .config-item[data-v-254b6b07]{flex:1}.configs .tip[data-v-254b6b07]{font-size:12px;color:#aaa;line-height:1.8;margin-top:10px}.btns[data-v-254b6b07]{width:300px;height:100px;display:flex;justify-content:center;align-items:center}.btns .export[data-v-254b6b07]{flex:1}.btns .close[data-v-254b6b07]{width:100px;margin-left:10px}.export-pptist-dialog[data-v-bc56c9db]{height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative;overflow:hidden}.configs[data-v-bc56c9db]{width:350px;height:calc(100% - 100px);display:flex;flex-direction:column;justify-content:center}.configs .row[data-v-bc56c9db]{display:flex;justify-content:center;align-items:center;margin-bottom:25px}.configs .title[data-v-bc56c9db]{width:100px;position:relative}.configs .title[data-v-bc56c9db]:after{content:attr(data-range);position:absolute;top:20px;left:0}.configs .config-item[data-v-bc56c9db]{flex:1}.configs .tip[data-v-bc56c9db]{font-size:12px;color:#aaa;line-height:1.8;margin-top:25px}.btns[data-v-bc56c9db]{width:300px;height:100px;display:flex;justify-content:center;align-items:center}.btns .export[data-v-bc56c9db]{flex:1}.btns .close[data-v-bc56c9db]{width:100px;margin-left:10px}.export-dialog[data-v-b54f4542]{margin:-20px}.content[data-v-b54f4542]{height:460px;padding:12px;font-size:13px;overflow:auto;overflow:overlay}.moveable-panel[data-v-0f508223]{position:fixed;background-color:#fff;box-shadow:0 2px 12px #38383826;border:1px solid #eee;border-radius:2px;display:flex;flex-direction:column;z-index:999}.header[data-v-0f508223]{height:40px;display:flex;align-items:center;border-bottom:1px solid #f0f0f0;cursor:move}.title[data-v-0f508223]{flex:1;font-size:13px;padding-left:10px}.close-btn[data-v-0f508223]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;color:#666;font-size:12px;cursor:pointer}.content[data-v-0f508223]{flex:1;padding:10px;overflow:auto}.select-panel[data-v-767b859e]{height:100%;font-size:12px;-webkit-user-select:none;user-select:none}.handler[data-v-767b859e]{height:24px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}.handler .icon-btns[data-v-767b859e]{height:100%;flex:1;display:flex;align-items:center;justify-content:flex-end}.handler .icon-btn[data-v-767b859e]{width:16px;height:100%;display:flex;align-items:center;justify-content:center;cursor:pointer}.handler .icon-btn[data-v-767b859e]:hover{color:#d14424}.element-list[data-v-767b859e]{height:calc(100% - 32px);padding-right:10px;margin-right:-10px;overflow:auto}.item[data-v-767b859e]{padding:5px;font-size:12px;border-radius:2px;display:flex;align-items:center;cursor:pointer}.item.active[data-v-767b859e]{background-color:#d144241a}.item.group-active[data-v-767b859e]{background-color:#d1442433}.item[data-v-767b859e]:hover{background-color:#d1442440}.item .name[data-v-767b859e]{height:18px;line-height:18px;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.item .icons[data-v-767b859e]{width:20px;display:flex;align-items:center;justify-content:center;margin-left:5px}.group-els[data-v-767b859e]{padding:5px 0}.group-els .group-title[data-v-767b859e]{margin-bottom:5px;padding:0 5px}.group-els .item[data-v-767b859e]{margin-left:15px}.input[data-v-767b859e]{width:100%;height:16px;border:0;outline:0;padding-left:0;padding-right:0;flex:1;font-size:12px;background-color:transparent}.search-panel[data-v-2536ae51]{font-size:13px}.content[data-v-2536ae51]{display:flex;flex-direction:column;justify-content:space-between}.input[data-v-2536ae51]{margin-top:10px}.count[data-v-2536ae51]{font-size:12px;margin-right:8px;-webkit-user-select:none;user-select:none}.ignore-case[data-v-2536ae51]{font-size:12px;-webkit-user-select:none;user-select:none;cursor:pointer}.ignore-case.active[data-v-2536ae51]{color:#d14424}.next-btn[data-v-2536ae51]{width:22px;height:100%;display:flex;justify-content:center;align-items:center;margin:0!important;-webkit-user-select:none;user-select:none;cursor:pointer}.next-btn[data-v-2536ae51]:hover{color:#d14424}.footer[data-v-2536ae51]{display:flex;justify-content:flex-end;align-items:center;margin-top:10px}.close-btn[data-v-2536ae51]{width:32px;height:32px;position:absolute;top:8px;right:3px;display:flex;justify-content:center;align-items:center;color:#666;font-size:12px;cursor:pointer}.pptist-editor[data-v-b32ddcff]{height:100%}.layout-header[data-v-b32ddcff]{height:40px}.layout-content[data-v-b32ddcff]{height:calc(100% - 40px);display:flex}.layout-content-left[data-v-b32ddcff]{width:160px;height:100%;flex-shrink:0}.layout-content-center[data-v-b32ddcff]{width:calc(100% - 420px)}.layout-content-center .center-top[data-v-b32ddcff]{height:40px}.layout-content-right[data-v-b32ddcff]{width:260px;height:100%}.screen-element-video[data-v-d9f232b0]{position:absolute}.rotate-wrapper[data-v-d9f232b0],.element-content[data-v-d9f232b0]{width:100%;height:100%}.screen-element-audio[data-v-94802f8e]{position:absolute}.rotate-wrapper[data-v-94802f8e]{width:100%;height:100%}.element-content[data-v-94802f8e]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.element-content:hover .audio-player[data-v-94802f8e]{display:block}.audio-icon[data-v-94802f8e]{cursor:pointer}.audio-player[data-v-94802f8e]{position:absolute;display:none}.link[data-v-da31ab53]{cursor:pointer}.screen-slide[data-v-7ee8460e]{position:absolute;top:0;left:0;transform-origin:0 0;overflow:hidden}.background[data-v-7ee8460e]{width:100%;height:100%;background-position:center;position:absolute}.screen-slide-list[data-v-21b28464]{background:#1d1d1d;position:relative;width:100%;height:100%}.slide-item[data-v-21b28464]{position:absolute;top:0;left:0;width:100%;height:100%}.slide-item.current[data-v-21b28464]{z-index:2}.slide-item.hide[data-v-21b28464]{opacity:0}.slide-item.turning-mode-no.before[data-v-21b28464]{transform:translateY(-100%)}.slide-item.turning-mode-no.after[data-v-21b28464]{transform:translateY(100%)}.slide-item.turning-mode-fade[data-v-21b28464]{transition:opacity .75s}.slide-item.turning-mode-fade.before[data-v-21b28464],.slide-item.turning-mode-fade.after[data-v-21b28464]{pointer-events:none;opacity:0}.slide-item.turning-mode-slideX[data-v-21b28464]{transition:transform .35s}.slide-item.turning-mode-slideX.before[data-v-21b28464]{transform:translate(-100%)}.slide-item.turning-mode-slideX.after[data-v-21b28464]{transform:translate(100%)}.slide-item.turning-mode-slideY[data-v-21b28464]{transition:transform .35s}.slide-item.turning-mode-slideY.before[data-v-21b28464]{transform:translateY(-100%)}.slide-item.turning-mode-slideY.after[data-v-21b28464]{transform:translateY(100%)}.slide-item.turning-mode-slideX3D[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-slideX3D.before[data-v-21b28464]{transform:translate(-100%) scale(.5)}.slide-item.turning-mode-slideX3D.after[data-v-21b28464]{transform:translate(100%) scale(.5)}.slide-item.turning-mode-slideY3D[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-slideY3D.before[data-v-21b28464]{transform:translateY(-100%) scale(.5)}.slide-item.turning-mode-slideY3D.after[data-v-21b28464]{transform:translateY(100%) scale(.5)}.slide-item.turning-mode-rotate[data-v-21b28464]{transition:transform .5s;transform-origin:0 0}.slide-item.turning-mode-rotate.before[data-v-21b28464]{transform:rotate(90deg)}.slide-item.turning-mode-rotate.after[data-v-21b28464]{transform:rotate(-90deg)}.slide-item.turning-mode-scaleY[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scaleY.before[data-v-21b28464],.slide-item.turning-mode-scaleY.after[data-v-21b28464]{transform:scaleY(.1)}.slide-item.turning-mode-scaleX[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scaleX.before[data-v-21b28464],.slide-item.turning-mode-scaleX.after[data-v-21b28464]{transform:scaleX(.1)}.slide-item.turning-mode-scale[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scale.before[data-v-21b28464],.slide-item.turning-mode-scale.after[data-v-21b28464]{transform:scale(.25)}.slide-item.turning-mode-scaleReverse[data-v-21b28464]{transition:transform .5s}.slide-item.turning-mode-scaleReverse.before[data-v-21b28464],.slide-item.turning-mode-scaleReverse.after[data-v-21b28464]{transform:scale(2)}.slide-content[data-v-21b28464]{background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center}.slide-thumbnails[data-v-09d790f0]{width:100%;height:100%;position:fixed;top:0;left:0;background-color:#1a1a1a;z-index:99}.return-button[data-v-09d790f0]{height:60px;padding:20px 30px 0}.return-button .icon[data-v-09d790f0]{color:#fff;font-size:36px;cursor:pointer}.return-button .icon[data-v-09d790f0]:hover{color:#d14424}.slide-thumbnails-content[data-v-09d790f0]{height:calc(100% - 100px);padding:20px 30px 30px;display:flex;flex-wrap:wrap;align-content:flex-start;overflow:auto;overflow:overlay}.slide-thumbnails-content .thumbnail[data-v-09d790f0]{width:150px;outline:2px solid #aaa;margin-right:12px;margin-bottom:12px}.slide-thumbnails-content .thumbnail[data-v-09d790f0]:hover{outline-color:#d14424}.slide-thumbnails-content .thumbnail.active[data-v-09d790f0]{outline-width:3px;outline-color:#d14424}.writing-board[data-v-55ae5f6c]{z-index:8;cursor:none;position:absolute;top:0;right:0;bottom:0;left:0}.blackboard[data-v-55ae5f6c]{width:100%;height:100%;background-color:#0f392b}.canvas[data-v-55ae5f6c]{position:absolute;top:0;left:0}.eraser[data-v-55ae5f6c],.pen[data-v-55ae5f6c]{pointer-events:none;position:absolute;z-index:9}.eraser .icon[data-v-55ae5f6c],.pen .icon[data-v-55ae5f6c]{filter:drop-shadow(2px 2px 2px #555)}.eraser[data-v-55ae5f6c]{display:flex;justify-content:center;align-items:center;border-radius:50%;border:4px solid rgba(85,85,85,.15);color:#555555bf}.writing-board-tool[data-v-47295ef6]{font-size:12px;z-index:10;position:absolute;top:0;right:0;bottom:0;left:0}.writing-board-tool .writing-board-wrap[data-v-47295ef6]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.writing-board-tool .tools[data-v-47295ef6]{width:100%;height:100%;display:flex;align-items:center;justify-content:space-between}.writing-board-tool .tool-content[data-v-47295ef6]{display:flex;align-items:center}.writing-board-tool .btn[data-v-47295ef6]{padding:5px 10px;cursor:pointer}.writing-board-tool .btn[data-v-47295ef6]:hover{color:#d14424}.writing-board-tool .btn.active[data-v-47295ef6]{background-color:#d1442480;color:#fff}.writing-board-tool .icon[data-v-47295ef6]{font-size:20px}.writing-board-tool .colors[data-v-47295ef6]{display:flex;padding:0 10px}.writing-board-tool .color[data-v-47295ef6]{width:16px;height:16px;border-radius:2px;cursor:pointer}.writing-board-tool .color[data-v-47295ef6]:hover{transform:scale(1.15)}.writing-board-tool .color.active[data-v-47295ef6]{transform:scale(1.3)}.writing-board-tool .color+.color[data-v-47295ef6]{margin-left:8px}.size[data-v-47295ef6]{width:200px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;font-size:13px}.size .label[data-v-47295ef6]{width:70px}.size .size-slider[data-v-47295ef6]{flex:1}.countdown-timer[data-v-92c1f9be]{-webkit-user-select:none;user-select:none}.header[data-v-92c1f9be]{height:16px;font-size:13px;margin-bottom:16px;display:flex;align-items:center}.header .text-btn[data-v-92c1f9be]{margin-right:8px;cursor:pointer}.header .text-btn[data-v-92c1f9be]:hover,.header .text-btn.active[data-v-92c1f9be]{color:#d14424}.content[data-v-92c1f9be]{display:flex;justify-content:space-between;padding:0 5px}.timer[data-v-92c1f9be]{width:54px;height:54px;border-radius:50%;background-color:#d144240d;font-size:22px;overflow:hidden}.timer input[data-v-92c1f9be]{width:100%;height:100%;border:0;outline:0;background-color:transparent;text-align:center}.colon[data-v-92c1f9be]{height:54px;line-height:54px;font-size:22px}.icon-btn[data-v-92c1f9be]{width:20px;height:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.pause[data-v-92c1f9be],.play[data-v-92c1f9be]{font-size:17px}.reset[data-v-92c1f9be]{font-size:12px}.close-btn[data-v-92c1f9be]{position:absolute;top:0;right:0;padding:10px;cursor:pointer}.base-view[data-v-85c13201]{width:100%;height:100%}.base-view.laser-pen[data-v-85c13201]{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABHNCSVQICAgIfAhkiAAACCJJREFUWIXtmLuO3MYShv/qZl9IzqwXo2BkSAtsIK+z8wwOBcOJ9C56Cr2LlThQcgBnfofVBnswXlgTaLHaIdk3dtcJOKOzd8n2MeDABRDDgKz/m+pudv0N/BN/Luj/kYSZJQBxJR8DKESU/2zuPwTIzAKnpxqHhxUuLir0vYSUAkS0ewA5F7Rtxv7+iNPTEYeHkYjKXwrIzHK9XtultRohaKSkkFIVhqGCEAIxTvm0ZpRSTNOMUGqEUgnGxLX3cblc+t9T2S8GXK1W9dP53OLiwoLZhMtLQ4CiGBVKkchZIOcpn5QMKQuEyKx1YiCZvb0AooD9ff/rZuMPDg7cl+hWn3uAmQWABut1g/PzOnZdTd5bMY6aQtAIQQGQGEd5bYirKgPIZExiY2IKIbK1XpeinzaN2s7b4XPD/iAgM0ucn7fYbNrQ963Juaauq8k5i3E01PcG46iQs0TO1wGlzJAyo6oS2jagqgLGUQNQwTllvJeYzwUz9w8N+b2AzCxwft6i72fBuZkYhnbcbBqKsSbvazhnEIJBzqrEqGQpAlO1AaKShShC6wQpE4UQUNcBKenReyXm8yoIIYwQtNXq7qvkQxVssNm0wbmZuLiYUQgtnGtps2ngfQ3vLaVkEKOmGKcqMtMWkEnKTFonaB3Z+4AQPFmreD6vSAghxpECAFMKY7EoALovBlytVjXW6yb0fSuGoaUQWrq8nKHvW/R9S943xbmavJ+qmNIO8FMFIWXert7A1gYxjprHsSLmaTHt7UF0HYdSilmv82q1ynctnFuAzCzx8aPF+Xltcq7HzaaBcy36vsUwzKjrZhiGRgxDA+8tUjIUgkbOEqVMgEIUkjLDmAjvgwjBI6WKxlHybp5KyVRKMcaMGIb0dLFIzBxvzsdbgOv12i69t7HrpgURY02bTYO+b6nrZui6qZLONdz3jTg5ORDHx0f48OExQpgBAIzp8OjRez46Oi7Pnq1ot5BKETQVgYmosJRj6rrEQNJCxLX3EUB/LyAzC3z8qOGcIe8tOWdpmm81ed9gGJpdJdF1rXz79jucnX1za454P8fZ2ZzOzr6Rx8fvyvPnP38afiEKVVXmqhrJ+wSlIqoqYj73S2s1M7urC0ZcS3x6qhGCDpeXBuOoMY4Gzhl4b4tzNYahgXMNuq4Vb978cCfczTg7+0a8efMDuq6Fcw2GoSnO1fDewjmDcTQYx0kzBI3TU3319euAh4cVUlIEKApBU98bhGAoJSO8N/Dect834u3b73B+/vVn4XZxfv61ePv2O+77Bt5b4b2hlKbcfW8oBE2AQkoKh4fXRvU64MVFhZQqilEhBLX9CCvEqLer1YiTk4MvqtxdlTw5OcAWDDFq5DxphDBtmSlNzcddgMws0fcyDEOFUiQAiZxliVGVGFVJSXEImo6Pj3433Dbo+PiIQ9AlJbXLi5wnrVIm7b6X223wOiAAASkFhBDIWWAcJXKWshQhcpYiZ0k5S3z48PhO9ZcvgV9+ma6XL+8m/PDhMW1ziW1u5Cy3WpO2lOIq11VAAhEhRkLO0z0RgVmAefotRXz6lNyMV6+AxWK6Xr26GzCEGXZb4i7nTifnSXv6Tn7qssTdmf4+cRWQwczQmiHldM/MICogmn6FKDDmzj0Tr18D5+fT9fr13WrGdBCiXMu505Fy0mZmTJYBwPUPdUHOBaUUSFlQVRlS5rzbtqTMJGXGo0fvcXY2vyX+44/T9VA8evSepcy8zcdCFDG1ZBlSTto5FwC3P9RElNG22TTNCCEygAwps9A6Ca2TUCqRMZGPjo4fprg/+OjomIyJQqm0ywspJy0hJu22zVf34+tzcH9/hFIja51gTEJVJUiZoHWEMQFKhfLs2QpPnrz73XRPnrwrz56toFSAMQFaR0g5aRiTWOsEpUbs749XX7u51Y1QKjGQ2JjIbRtgTGClQrE2wFpPbTuU589/xmLx2xfDLRa/lefPf6a2HWCtL9YG3oJy2wY2JjKQoFTC6ekDgIeHEcZEs7cXUFURVTV1wtZ6UdcOTTOgrgfMZn158eKnL6rkkyfvyosXP2E261HXA5pmEHXtYK1HXU9WoKomTWMiDg/j1devbStEVN6/fx+XRIGt9RhHjZQ0Wat4HCsax//1fEQlf//9v8XJyTF9rt1q2+mPtW2PphnY2gHWOrbWcV17ttaDKKy9j4/398u9gACwXC49Pn7UuhQNQI3eT206s2DadptCFEiZqaoS/+tfvnz77X/oRsPKUmYyJpJSAdZ6NM2Aphl4Pu/QND3P5wO0dmo2c5jNHPb3/fKrr/xNnluARJRXq5V/2jQqOKfE1kPsPC8zM1VVLkqNwpiAEAxbq+hGy89SZtq2/MXaIOrasbUDmqZH2/Zo257bdghSOtM07tfNxh/s799yd3d6koODA8fM0ngvw9bgYG9vatOJClfVSFUVYe3UldxhmiBlxtY0kVLTlLHW8Xw+oG17NqYvs1lv6rrHcjkcEN1p5B9ydQPmc2GEoABAdB1TKYWlnDph5wJvbSdPpwvXbCcLUXhrO2FMQF0HttZBa8dtO5TZrDdt26FtewDDfRD3AhJRYeYemKxh2Bqc1HVTm17Xn4y7yFnyDeMurhh33hp3rmuvZjMXpHSmrqehXiz6h04XHjxZIKLMzB0Wi2LW64xhSAwkVFXEOGpo/dmjD2yPPlBVka31mM2caRqH5XLAnz362FUSQLdarfLTxSJpISLmcx8uLw217R8/PLpnzt3S/5KHdvG3Pn67Afr3PMB8APgvOwL+J/5s/BeEBm1u1Gu4+QAAAABJRU5ErkJggg==) 20 20,default!important}.tools-left[data-v-85c13201]{position:fixed;bottom:8px;left:8px;font-size:25px;color:#666;z-index:10}.tools-left .tool-btn[data-v-85c13201]{opacity:.35;cursor:pointer}.tools-left .tool-btn[data-v-85c13201]:hover{opacity:.9}.tools-left .tool-btn+.tool-btn[data-v-85c13201]{margin-left:8px}.tools-right[data-v-85c13201]{height:66px;position:fixed;bottom:-66px;right:0;z-index:5;padding:8px;transition:bottom .2s}.tools-right.visible[data-v-85c13201]{bottom:0}.tools-right[data-v-85c13201]:after{content:"";width:100%;height:66px;position:absolute;left:0;top:-66px}.tools-right .content[data-v-85c13201]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;border-radius:2px;font-size:25px;background-color:#fff;color:#41464b;padding:8px 10px;box-shadow:0 2px 12px #38383833;border:1px solid #e2e6ed}.tools-right .tool-btn[data-v-85c13201]{cursor:pointer}.tools-right .tool-btn[data-v-85c13201]:hover,.tools-right .tool-btn.active[data-v-85c13201]{color:#d14424}.tools-right .tool-btn+.tool-btn[data-v-85c13201]{margin-left:15px}.tools-right .page-number[data-v-85c13201]{font-size:13px;padding:8px 12px;cursor:pointer}.presenter-view[data-v-691774ef]{width:100%;height:100%;display:flex}.toolbar[data-v-691774ef]{width:70px;height:100%;background-color:#fff;border-right:solid 1px #eee;font-size:12px;margin:20px 0}.toolbar .tool-btn[data-v-691774ef]{display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.toolbar .tool-btn+.tool-btn[data-v-691774ef]{margin-top:22px}.toolbar .tool-btn[data-v-691774ef]:hover,.toolbar .tool-btn.active[data-v-691774ef]{color:#d14424}.toolbar .divider[data-v-691774ef]{width:70%;margin:24px 15%!important}.toolbar .tool-icon[data-v-691774ef]{margin-bottom:8px;font-size:22px}.content[data-v-691774ef]{width:calc(100% - 430px);height:100%;background-color:#1d1d1d}.slide-list-wrap[data-v-691774ef]{height:calc(100% - 190px);margin:20px;overflow:hidden;position:relative}.slide-list-wrap.laser-pen[data-v-691774ef]{cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABHNCSVQICAgIfAhkiAAACCJJREFUWIXtmLuO3MYShv/qZl9IzqwXo2BkSAtsIK+z8wwOBcOJ9C56Cr2LlThQcgBnfofVBnswXlgTaLHaIdk3dtcJOKOzd8n2MeDABRDDgKz/m+pudv0N/BN/Luj/kYSZJQBxJR8DKESU/2zuPwTIzAKnpxqHhxUuLir0vYSUAkS0ewA5F7Rtxv7+iNPTEYeHkYjKXwrIzHK9XtultRohaKSkkFIVhqGCEAIxTvm0ZpRSTNOMUGqEUgnGxLX3cblc+t9T2S8GXK1W9dP53OLiwoLZhMtLQ4CiGBVKkchZIOcpn5QMKQuEyKx1YiCZvb0AooD9ff/rZuMPDg7cl+hWn3uAmQWABut1g/PzOnZdTd5bMY6aQtAIQQGQGEd5bYirKgPIZExiY2IKIbK1XpeinzaN2s7b4XPD/iAgM0ucn7fYbNrQ963Juaauq8k5i3E01PcG46iQs0TO1wGlzJAyo6oS2jagqgLGUQNQwTllvJeYzwUz9w8N+b2AzCxwft6i72fBuZkYhnbcbBqKsSbvazhnEIJBzqrEqGQpAlO1AaKShShC6wQpE4UQUNcBKenReyXm8yoIIYwQtNXq7qvkQxVssNm0wbmZuLiYUQgtnGtps2ngfQ3vLaVkEKOmGKcqMtMWkEnKTFonaB3Z+4AQPFmreD6vSAghxpECAFMKY7EoALovBlytVjXW6yb0fSuGoaUQWrq8nKHvW/R9S943xbmavJ+qmNIO8FMFIWXert7A1gYxjprHsSLmaTHt7UF0HYdSilmv82q1ynctnFuAzCzx8aPF+Xltcq7HzaaBcy36vsUwzKjrZhiGRgxDA+8tUjIUgkbOEqVMgEIUkjLDmAjvgwjBI6WKxlHybp5KyVRKMcaMGIb0dLFIzBxvzsdbgOv12i69t7HrpgURY02bTYO+b6nrZui6qZLONdz3jTg5ORDHx0f48OExQpgBAIzp8OjRez46Oi7Pnq1ot5BKETQVgYmosJRj6rrEQNJCxLX3EUB/LyAzC3z8qOGcIe8tOWdpmm81ed9gGJpdJdF1rXz79jucnX1za454P8fZ2ZzOzr6Rx8fvyvPnP38afiEKVVXmqhrJ+wSlIqoqYj73S2s1M7urC0ZcS3x6qhGCDpeXBuOoMY4Gzhl4b4tzNYahgXMNuq4Vb978cCfczTg7+0a8efMDuq6Fcw2GoSnO1fDewjmDcTQYx0kzBI3TU3319euAh4cVUlIEKApBU98bhGAoJSO8N/Dect834u3b73B+/vVn4XZxfv61ePv2O+77Bt5b4b2hlKbcfW8oBE2AQkoKh4fXRvU64MVFhZQqilEhBLX9CCvEqLer1YiTk4MvqtxdlTw5OcAWDDFq5DxphDBtmSlNzcddgMws0fcyDEOFUiQAiZxliVGVGFVJSXEImo6Pj3433Dbo+PiIQ9AlJbXLi5wnrVIm7b6X223wOiAAASkFhBDIWWAcJXKWshQhcpYiZ0k5S3z48PhO9ZcvgV9+ma6XL+8m/PDhMW1ziW1u5Cy3WpO2lOIq11VAAhEhRkLO0z0RgVmAefotRXz6lNyMV6+AxWK6Xr26GzCEGXZb4i7nTifnSXv6Tn7qssTdmf4+cRWQwczQmiHldM/MICogmn6FKDDmzj0Tr18D5+fT9fr13WrGdBCiXMu505Fy0mZmTJYBwPUPdUHOBaUUSFlQVRlS5rzbtqTMJGXGo0fvcXY2vyX+44/T9VA8evSepcy8zcdCFDG1ZBlSTto5FwC3P9RElNG22TTNCCEygAwps9A6Ca2TUCqRMZGPjo4fprg/+OjomIyJQqm0ywspJy0hJu22zVf34+tzcH9/hFIja51gTEJVJUiZoHWEMQFKhfLs2QpPnrz73XRPnrwrz56toFSAMQFaR0g5aRiTWOsEpUbs749XX7u51Y1QKjGQ2JjIbRtgTGClQrE2wFpPbTuU589/xmLx2xfDLRa/lefPf6a2HWCtL9YG3oJy2wY2JjKQoFTC6ekDgIeHEcZEs7cXUFURVTV1wtZ6UdcOTTOgrgfMZn158eKnL6rkkyfvyosXP2E261HXA5pmEHXtYK1HXU9WoKomTWMiDg/j1devbStEVN6/fx+XRIGt9RhHjZQ0Wat4HCsax//1fEQlf//9v8XJyTF9rt1q2+mPtW2PphnY2gHWOrbWcV17ttaDKKy9j4/398u9gACwXC49Pn7UuhQNQI3eT206s2DadptCFEiZqaoS/+tfvnz77X/oRsPKUmYyJpJSAdZ6NM2Aphl4Pu/QND3P5wO0dmo2c5jNHPb3/fKrr/xNnluARJRXq5V/2jQqOKfE1kPsPC8zM1VVLkqNwpiAEAxbq+hGy89SZtq2/MXaIOrasbUDmqZH2/Zo257bdghSOtM07tfNxh/s799yd3d6koODA8fM0ngvw9bgYG9vatOJClfVSFUVYe3UldxhmiBlxtY0kVLTlLHW8Xw+oG17NqYvs1lv6rrHcjkcEN1p5B9ydQPmc2GEoABAdB1TKYWlnDph5wJvbSdPpwvXbCcLUXhrO2FMQF0HttZBa8dtO5TZrDdt26FtewDDfRD3AhJRYeYemKxh2Bqc1HVTm17Xn4y7yFnyDeMurhh33hp3rmuvZjMXpHSmrqehXiz6h04XHjxZIKLMzB0Wi2LW64xhSAwkVFXEOGpo/dmjD2yPPlBVka31mM2caRqH5XLAnz362FUSQLdarfLTxSJpISLmcx8uLw217R8/PLpnzt3S/5KHdvG3Pn67Afr3PMB8APgvOwL+J/5s/BeEBm1u1Gu4+QAAAABJRU5ErkJggg==) 20 20,default!important}.thumbnails[data-v-691774ef]{height:150px;padding:15px;white-space:nowrap;overflow-x:auto;overflow-y:hidden;border-top:solid 1px #3a3a3a}.thumbnail[data-v-691774ef]{display:inline-block;outline:2px solid #aaa}.thumbnail+.thumbnail[data-v-691774ef]{margin-left:10px}.thumbnail[data-v-691774ef]:hover{outline-color:#d14424}.thumbnail.active[data-v-691774ef]{outline-width:3px;outline-color:#d14424}.remark[data-v-691774ef]{width:360px;height:100%;position:relative;background-color:#2a2a2a;border-left:solid 1px #3a3a3a;color:#fff}.remark .header[data-v-691774ef]{height:60px;padding:0 20px;display:flex;justify-content:space-between;align-items:center;font-size:18px;border-bottom:1px solid #3a3a3a}.remark .remark-content[data-v-691774ef]{height:calc(100% - 60px);padding:20px;line-height:1.5;overflow:auto;overflow:overlay}.remark .remark-scale[data-v-691774ef]{position:absolute;right:5px;bottom:5px;font-size:22px;display:flex}.remark .scale-btn[data-v-691774ef]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer}.remark .scale-btn.disable[data-v-691774ef]{color:#666;cursor:no-drop}.remark .scale-btn[data-v-691774ef]:not(.disable):hover{background-color:#333}[data-v-691774ef]::-webkit-scrollbar{width:0;height:0}.pptist-screen[data-v-2f0dc4b8]{width:100%;height:100%}.mobile-operate[data-v-b61bf2dc]{position:absolute;z-index:100;-webkit-user-select:none;user-select:none}.mobile-thumbnails[data-v-f47af55e]{padding:10px;white-space:nowrap;overflow-x:auto;overflow-y:hidden}.thumbnail-item[data-v-f47af55e]{position:relative;display:inline-block;outline:2px solid #aaa}.thumbnail-item+.thumbnail-item[data-v-f47af55e]{margin-left:10px}.thumbnail-item.active[data-v-f47af55e]{outline-color:#d14424}.thumbnail-item.active .label[data-v-f47af55e]{background-color:#d14424}.thumbnail-item .label[data-v-f47af55e]{min-width:20px;height:14px;line-height:14px;position:absolute;right:-1px;top:-1px;color:#fff;background-color:#aaa;z-index:1;font-size:12px;text-align:center;padding:0 5px}.sortable-chosen[data-v-f47af55e]{top:-5px}[data-v-f47af55e]::-webkit-scrollbar{width:0;height:0}.slide-toolbar[data-v-bceba327]{height:230px;background-color:#fff;box-shadow:0 0 15px #0000001a;display:flex;flex-direction:column;position:relative;z-index:2}.remark[data-v-bceba327]{position:relative;flex:1;border-bottom:1px solid #eee;line-height:1.5}.remark textarea[data-v-bceba327]{width:100%;height:100%;overflow-y:auto;resize:none;border:0;outline:0;padding:8px 10px;font-size:12px;box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;left:0}.toolbar[data-v-bceba327]{height:90px;border-bottom:1px solid #eee;padding:10px}.row[data-v-bceba327]{width:100%;display:flex;align-items:center;margin-bottom:5px}.row .icon[data-v-bceba327]{margin-right:3px}.element-toolbar[data-v-65decaff]{width:100%;height:240px;position:absolute;z-index:99;bottom:0;left:0;background-color:#fff;box-shadow:0 0 15px #0000001a;display:flex;flex-direction:column;animation:slideInUp-65decaff .15s}@keyframes slideInUp-65decaff{0%{transform:translateY(100%)}to{transform:translateY(0)}}.content[data-v-65decaff]{padding:10px;flex:1;overflow:auto}.row[data-v-65decaff]{width:100%;display:flex;align-items:center;margin-bottom:10px}.row .icon[data-v-65decaff]{margin-right:3px}.row-block[data-v-65decaff]{margin-bottom:10px;background-color:#f9f9f9;border-radius:2px;padding:10px}.label[data-v-65decaff]{font-size:13px;margin-bottom:20px;margin-left:6px}.colors[data-v-65decaff]{display:flex;flex-wrap:wrap;align-content:flex-start}.color[data-v-65decaff]{width:12%;margin-bottom:calc(4% / 7);padding-bottom:5px;display:flex;justify-content:center;align-items:center}.color[data-v-65decaff]:not(:nth-child(8n)){margin-right:calc(4% / 7)}.color .color-block[data-v-65decaff]{width:30px;height:30px;border-radius:50%}.mobile-editor-header[data-v-091403e4]{height:50px;background-color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 18px;font-size:13px;box-shadow:0 0 15px #0000001a;position:relative;z-index:2}.history[data-v-091403e4]{display:flex;justify-content:center;align-items:center}.history-item[data-v-091403e4]{margin-right:20px}.history-item.disable[data-v-091403e4]{opacity:.5}.mobile-editor[data-v-8b282f2e]{height:100%;position:relative;background-color:#f9f9f9}.content[data-v-8b282f2e]{height:calc(100% - 280px);display:flex;justify-content:center;align-items:center}.viewport[data-v-8b282f2e]{transform-origin:0 0}.viewport-wrapper[data-v-8b282f2e]{position:relative;box-shadow:0 0 15px #0000001a}.background[data-v-8b282f2e]{width:100%;height:100%;background-position:center;position:absolute}.mobile-player[data-v-c846a018]{transform-origin:0 0;background-color:#1d1d1d;position:relative}.screen-slide-list[data-v-c846a018]{position:relative;width:100%;height:100%}.slide-item[data-v-c846a018]{position:absolute;top:0;left:0;width:100%;height:100%}.slide-item.current[data-v-c846a018]{z-index:2}.slide-item.hide[data-v-c846a018]{opacity:0}.slide-item.turning-mode-no.before[data-v-c846a018]{transform:translateY(-100%)}.slide-item.turning-mode-no.after[data-v-c846a018]{transform:translateY(100%)}.slide-item.turning-mode-fade[data-v-c846a018]{transition:opacity .75s}.slide-item.turning-mode-fade.before[data-v-c846a018],.slide-item.turning-mode-fade.after[data-v-c846a018]{pointer-events:none;opacity:0}.slide-item.turning-mode-slideX[data-v-c846a018]{transition:transform .35s}.slide-item.turning-mode-slideX.before[data-v-c846a018]{transform:translate(-100%)}.slide-item.turning-mode-slideX.after[data-v-c846a018]{transform:translate(100%)}.slide-item.turning-mode-slideY[data-v-c846a018]{transition:transform .35s}.slide-item.turning-mode-slideY.before[data-v-c846a018]{transform:translateY(-100%)}.slide-item.turning-mode-slideY.after[data-v-c846a018]{transform:translateY(100%)}.slide-content[data-v-c846a018]{background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center}.header[data-v-c846a018]{width:100%;height:40px;line-height:40px;padding:0 15px;position:absolute;top:0;left:0;z-index:99;background-color:#1d1d1db3;text-align:right;font-size:13px;color:#fff;animation:slideInDown-c846a018 .15s}.header .back[data-v-c846a018]{height:100%}.thumbnails[data-v-c846a018]{width:100%;position:absolute;bottom:0;left:0;z-index:99;background-color:#1d1d1db3;overflow:auto!important;animation:slideInUp-c846a018 .15s}@keyframes slideInUp-c846a018{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInDown-c846a018{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.mobile-preview[data-v-99aa0ac4]{height:100%;background-color:#f9f9f9}.thumbnail-list[data-v-99aa0ac4]{height:calc(100% - 50px);padding:10px;overflow:auto}.thumbnail-item[data-v-99aa0ac4]{display:flex;justify-content:center;align-items:center;box-shadow:0 0 15px #0000001a}.thumbnail-item+.thumbnail-item[data-v-99aa0ac4]{margin-top:10px}.menu[data-v-99aa0ac4]{height:50px;position:relative;box-shadow:0 -2px 4px #3333330d;background:#fff;display:flex;justify-content:center;align-items:center}.menu .menu-item[data-v-99aa0ac4]{width:50%;height:100%;display:flex;justify-content:center;align-items:center;font-size:13px}.menu .menu-item .icon[data-v-99aa0ac4]{margin-right:8px;font-size:18px}.mobile[data-v-d02011cb],#app{height:100%}.i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ProseMirror{position:relative}.ProseMirror{word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:"liga" 0}.ProseMirror pre{white-space:pre-wrap}.ProseMirror li{position:relative}.ProseMirror-hideselection *::selection{background:transparent}.ProseMirror-hideselection *::-moz-selection{background:transparent}.ProseMirror-hideselection{caret-color:transparent}.ProseMirror [draggable][contenteditable=false]{-webkit-user-select:text;user-select:text}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}img.ProseMirror-separator{display:inline!important;border:none!important;margin:0!important}/*! + * 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:20px;word-break:break-word;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-top:var(--paragraphSpace)}.ProseMirror p:first-child,.ProseMirror-static p:first-child{margin-top:0}.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;padding:2px 0}.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;padding:2px 0}.ProseMirror code,.ProseMirror-static code{background-color:#eee;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-right:1.2em;padding-left:1.2em;margin-left:0;margin-right:0;font-style:italic;border-left:4px solid #ddd}.ProseMirror [data-indent="1"],.ProseMirror-static [data-indent="1"]{padding-left:20px}.ProseMirror [data-indent="2"],.ProseMirror-static [data-indent="2"]{padding-left:40px}.ProseMirror [data-indent="3"],.ProseMirror-static [data-indent="3"]{padding-left:60px}.ProseMirror [data-indent="4"],.ProseMirror-static [data-indent="4"]{padding-left:80px}.ProseMirror [data-indent="5"],.ProseMirror-static [data-indent="5"]{padding-left:100px}.ProseMirror [data-indent="6"],.ProseMirror-static [data-indent="6"]{padding-left:120px}.ProseMirror [data-indent="7"],.ProseMirror-static [data-indent="7"]{padding-left:140px}.ProseMirror [data-indent="8"],.ProseMirror-static [data-indent="8"]{padding-left:160px}.ProseMirror-selectednode{outline:none!important}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;box-sizing:border-box}*:before,*:after{box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}html,body{width:100%;height:100%;overflow:hidden;background-color:#fff;color:#41464b}body{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:""}table{border-collapse:collapse;border-spacing:0}a{text-decoration:none;color:#d14424}img{vertical-align:middle;border-style:none}hr{box-sizing:content-box;height:0;overflow:visible}mark.active{background-color:#ff9632}input,button,select,optgroup,textarea{color:inherit}button,input{overflow:visible}button,select{text-transform:none}textarea{overflow:auto;resize:vertical}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}::-webkit-scrollbar{width:5px;height:5px;background-color:transparent}::-webkit-scrollbar-thumb{background-color:#c1c1c1}@font-face{font-display:swap;font-family:仓耳小丸子;src:url(/assets/仓耳小丸子-zHoj3BtX.woff2) format("woff2")}@font-face{font-display:swap;font-family:优设标题黑;src:url(/assets/优设标题黑-77KEA_p_.woff2) format("woff2")}@font-face{font-display:swap;font-family:字制区喜脉体;src:url(/assets/字制区喜脉体-pvg32CQr.woff2) format("woff2")}@font-face{font-display:swap;font-family:峰广明锐体;src:url(/assets/峰广明锐体-JLDToV-Y.woff2) format("woff2")}@font-face{font-display:swap;font-family:得意黑;src:url(/assets/得意黑-WEz-Il5y.woff2) format("woff2")}@font-face{font-display:swap;font-family:摄图摩登小方体;src:url(/assets/摄图摩登小方体-BT0PmJPE.woff2) format("woff2")}@font-face{font-display:swap;font-family:站酷快乐体;src:url(/assets/站酷快乐体-ZflTFl4E.woff2) format("woff2")}@font-face{font-display:swap;font-family:素材集市康康体;src:url(/assets/素材集市康康体-8m4g7BoU.woff2) format("woff2")}@font-face{font-display:swap;font-family:素材集市酷方体;src:url(/assets/素材集市酷方体--hWHoevz.woff2) format("woff2")}@font-face{font-display:swap;font-family:途牛类圆体;src:url(/assets/途牛类圆体-oN1H-nrG.woff2) format("woff2")}@font-face{font-display:swap;font-family:锐字真言体;src:url(/assets/锐字真言体-RyiJ0iUd.woff2) format("woff2")}.menu-content[data-v-b0ce5ca5]{width:170px;padding:5px 0;background:#fff;border:1px solid #eee;box-shadow:3px 3px 3px #00000026;border-radius:2px;list-style:none;margin:0}.menu-item[data-v-b0ce5ca5]{padding:0 20px;color:#555;font-size:12px;transition:all .1s;white-space:nowrap;height:30px;line-height:30px;background-color:#fff;cursor:pointer}.menu-item:not(.disable):hover>.menu-item-content>.sub-menu[data-v-b0ce5ca5]{display:block}.menu-item:not(.disable):hover>.has-children.has-handler[data-v-b0ce5ca5]:after{transform:scale(1)}.menu-item[data-v-b0ce5ca5]:hover:not(.disable){background-color:#d1442433}.menu-item.divider[data-v-b0ce5ca5]{height:1px;overflow:hidden;margin:5px;background-color:#e5e5e5;line-height:0;padding:0}.menu-item.disable[data-v-b0ce5ca5]{color:#b1b1b1;cursor:no-drop}.menu-item-content[data-v-b0ce5ca5]{display:flex;align-items:center;justify-content:space-between;position:relative}.menu-item-content.has-children[data-v-b0ce5ca5]:before{content:"";display:inline-block;width:8px;height:8px;border-width:1px;border-style:solid;border-color:#666 #666 transparent transparent;position:absolute;right:0;top:50%;transform:translateY(-50%) rotate(45deg)}.menu-item-content.has-children.has-handler[data-v-b0ce5ca5]:after{content:"";display:inline-block;width:1px;height:24px;background-color:#f1f1f1;position:absolute;right:18px;top:3px;transform:scale(0);transition:transform .2s}.menu-item-content .sub-text[data-v-b0ce5ca5]{opacity:.6}.menu-item-content .sub-menu[data-v-b0ce5ca5]{width:120px;position:absolute;display:none;left:112%;top:-6px}.mask{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:9998}.contextmenu{position:fixed;z-index:9999;-webkit-user-select:none;user-select:none}.tippy-box[data-theme~=tooltip]{background-color:#262626;color:#fff;border-radius:2px;padding:8px;font-size:12px;line-height:1.5}.tippy-box[data-theme~=tooltip] .tippy-arrow{width:12px;height:12px;color:#262626}.tippy-box[data-theme~=tooltip] .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-box[data-theme~=tooltip][data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-theme~=tooltip][data-placement^=top]>.tippy-arrow:before{bottom:-5px;left:0;border-width:6px 6px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-theme~=tooltip][data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-theme~=tooltip][data-placement^=bottom]>.tippy-arrow:before{top:-5px;left:0;border-width:0 6px 6px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-theme~=tooltip][data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-theme~=tooltip][data-placement^=left]>.tippy-arrow:before{border-width:6px 0 6px 6px;border-left-color:initial;right:-5px;transform-origin:center left}.tippy-box[data-theme~=tooltip][data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-theme~=tooltip][data-placement^=right]>.tippy-arrow:before{left:-5px;border-width:6px 6px 6px 0;border-right-color:initial;transform-origin:center right} diff --git a/assets/index-sCRXAZfx.js b/assets/index-sCRXAZfx.js new file mode 100644 index 00000000..402bc292 --- /dev/null +++ b/assets/index-sCRXAZfx.js @@ -0,0 +1,316 @@ +var bZ=Object.defineProperty;var SZ=(e,t,n)=>t in e?bZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var UA=(e,t,n)=>(SZ(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function yg(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Qn={},id=[],Fo=()=>{},MZ=()=>!1,mp=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Tx=e=>e.startsWith("onUpdate:"),sr=Object.assign,kx=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wZ=Object.prototype.hasOwnProperty,kn=(e,t)=>wZ.call(e,t),wt=Array.isArray,ad=e=>Vd(e)==="[object Map]",Bu=e=>Vd(e)==="[object Set]",gS=e=>Vd(e)==="[object Date]",LZ=e=>Vd(e)==="[object RegExp]",Dt=e=>typeof e=="function",lr=e=>typeof e=="string",hc=e=>typeof e=="symbol",Dn=e=>e!==null&&typeof e=="object",Px=e=>(Dn(e)||Dt(e))&&Dt(e.then)&&Dt(e.catch),v7=Object.prototype.toString,Vd=e=>v7.call(e),OZ=e=>Vd(e).slice(8,-1),g7=e=>Vd(e)==="[object Object]",Nx=e=>lr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ah=yg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xg=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},TZ=/-(\w)/g,_o=xg(e=>e.replace(TZ,(t,n)=>n?n.toUpperCase():"")),kZ=/\B([A-Z])/g,Gi=xg(e=>e.replace(kZ,"-$1").toLowerCase()),vp=xg(e=>e.charAt(0).toUpperCase()+e.slice(1)),sh=xg(e=>e?`on${vp(e)}`:""),Ia=(e,t)=>!Object.is(e,t),sd=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},pv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},mv=e=>{const t=lr(e)?Number(e):NaN;return isNaN(t)?e:t};let AS;const A7=()=>AS||(AS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),PZ="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",NZ=yg(PZ);function we(e){if(wt(e)){const t={};for(let n=0;n{if(n){const r=n.split(IZ);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function qe(e){let t="";if(lr(e))t=e;else if(wt(e))for(let n=0;npc(n,t))}const St=e=>lr(e)?e:e==null?"":wt(e)||Dn(e)&&(e.toString===v7||!Dt(e.toString))?JSON.stringify(e,y7,2):String(e),y7=(e,t)=>t&&t.__v_isRef?y7(e,t.value):ad(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[YA(r,i)+" =>"]=o,n),{})}:Bu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>YA(n))}:hc(t)?YA(t):Dn(t)&&!wt(t)&&!g7(t)?String(t):t,YA=(e,t="")=>{var n;return hc(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let xi;class Cx{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=xi,!t&&xi&&(this.index=(xi.scopes||(xi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=xi;try{return xi=this,t()}finally{xi=n}}}on(){xi=this}off(){xi=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=2))break;Ku(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ac,n=du;try{return ac=!0,du=this,this._runnings++,RS(this),this.fn()}finally{yS(this),this._runnings--,du=n,ac=t}}stop(){var t;this.active&&(RS(this),yS(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function UZ(e){return e.value}function RS(e){e._trackId++,e._depsLength=0}function yS(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()});t&&(sr(n,t),t.scope&&x7(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function QZ(e){e.effect.stop()}let ac=!0,y4=0;const M7=[];function Du(){M7.push(ac),ac=!1}function Ku(){const e=M7.pop();ac=e===void 0?!0:e}function _x(){y4++}function Xx(){for(y4--;!y4&&x4.length;)x4.shift()()}function w7(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&S7(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const x4=[];function L7(e,t,n){_x();for(const r of e.keys())if(!(!r.allowRecurse&&r._runnings)&&r._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},vv=new WeakMap,hu=Symbol(""),b4=Symbol("");function ii(e,t,n){if(ac&&du){let r=vv.get(e);r||vv.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=O7(()=>r.delete(n))),w7(du,o)}}function tl(e,t,n,r,o,i){const a=vv.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(n==="length"&&wt(e)){const c=Number(r);a.forEach((l,u)=>{(u==="length"||!hc(u)&&u>=c)&&s.push(l)})}else switch(n!==void 0&&s.push(a.get(n)),t){case"add":wt(e)?Nx(n)&&s.push(a.get("length")):(s.push(a.get(hu)),ad(e)&&s.push(a.get(b4)));break;case"delete":wt(e)||(s.push(a.get(hu)),ad(e)&&s.push(a.get(b4)));break;case"set":ad(e)&&s.push(a.get(hu));break}_x();for(const c of s)c&&L7(c,3);Xx()}function ZZ(e,t){var n;return(n=vv.get(e))==null?void 0:n.get(t)}const BZ=yg("__proto__,__v_isRef,__isVue"),T7=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hc)),xS=DZ();function DZ(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=pn(this);for(let i=0,a=this.length;i{e[t]=function(...n){Du(),_x();const r=pn(this)[t].apply(this,n);return Xx(),Ku(),r}}),e}function KZ(e){const t=pn(this);return ii(t,"has",e),t.hasOwnProperty(e)}class k7{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const o=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?_7:F7:i?I7:C7).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=wt(t);if(!o){if(a&&kn(xS,n))return Reflect.get(xS,n,r);if(n==="hasOwnProperty")return KZ}const s=Reflect.get(t,n,r);return(hc(n)?T7.has(n):BZ(n))||(o||ii(t,"get",n),i)?s:cr(s)?a&&Nx(n)?s:s.value:Dn(s)?o?Wx(s):gp(s):s}}class P7 extends k7{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._shallow){const c=Ou(i);if(!ru(r)&&!Ou(r)&&(i=pn(i),r=pn(r)),!wt(t)&&cr(i)&&!cr(r))return c?!1:(i.value=r,!0)}const a=wt(t)&&Nx(n)?Number(n)e,Sg=e=>Reflect.getPrototypeOf(e);function Z1(e,t,n=!1,r=!1){e=e.__v_raw;const o=pn(e),i=pn(t);n||(Ia(t,i)&&ii(o,"get",t),ii(o,"get",i));const{has:a}=Sg(o),s=r?Ex:n?Ux:Vh;if(a.call(o,t))return s(e.get(t));if(a.call(o,i))return s(e.get(i));e!==o&&e.get(t)}function B1(e,t=!1){const n=this.__v_raw,r=pn(n),o=pn(e);return t||(Ia(e,o)&&ii(r,"has",e),ii(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function D1(e,t=!1){return e=e.__v_raw,!t&&ii(pn(e),"iterate",hu),Reflect.get(e,"size",e)}function bS(e){e=pn(e);const t=pn(this);return Sg(t).has.call(t,e)||(t.add(e),tl(t,"add",e,e)),this}function SS(e,t){t=pn(t);const n=pn(this),{has:r,get:o}=Sg(n);let i=r.call(n,e);i||(e=pn(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Ia(t,a)&&tl(n,"set",e,t):tl(n,"add",e,t),this}function MS(e){const t=pn(this),{has:n,get:r}=Sg(t);let o=n.call(t,e);o||(e=pn(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&tl(t,"delete",e,void 0),i}function wS(){const e=pn(this),t=e.size!==0,n=e.clear();return t&&tl(e,"clear",void 0,void 0),n}function K1(e,t){return function(r,o){const i=this,a=i.__v_raw,s=pn(a),c=t?Ex:e?Ux:Vh;return!e&&ii(s,"iterate",hu),a.forEach((l,u)=>r.call(o,c(l),c(u),i))}}function H1(e,t,n){return function(...r){const o=this.__v_raw,i=pn(o),a=ad(i),s=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,l=o[e](...r),u=n?Ex:t?Ux:Vh;return!t&&ii(i,"iterate",c?b4:hu),{next(){const{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:s?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Sl(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function $Z(){const e={get(i){return Z1(this,i)},get size(){return D1(this)},has:B1,add:bS,set:SS,delete:MS,clear:wS,forEach:K1(!1,!1)},t={get(i){return Z1(this,i,!1,!0)},get size(){return D1(this)},has:B1,add:bS,set:SS,delete:MS,clear:wS,forEach:K1(!1,!0)},n={get(i){return Z1(this,i,!0)},get size(){return D1(this,!0)},has(i){return B1.call(this,i,!0)},add:Sl("add"),set:Sl("set"),delete:Sl("delete"),clear:Sl("clear"),forEach:K1(!0,!1)},r={get(i){return Z1(this,i,!0,!0)},get size(){return D1(this,!0)},has(i){return B1.call(this,i,!0)},add:Sl("add"),set:Sl("set"),delete:Sl("delete"),clear:Sl("clear"),forEach:K1(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=H1(i,!1,!1),n[i]=H1(i,!0,!1),t[i]=H1(i,!1,!0),r[i]=H1(i,!0,!0)}),[e,n,t,r]}const[jZ,qZ,eB,tB]=$Z();function Mg(e,t){const n=t?e?tB:eB:e?qZ:jZ;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(kn(n,o)&&o in r?n:r,o,i)}const nB={get:Mg(!1,!1)},rB={get:Mg(!1,!0)},oB={get:Mg(!0,!1)},iB={get:Mg(!0,!0)},C7=new WeakMap,I7=new WeakMap,F7=new WeakMap,_7=new WeakMap;function aB(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sB(e){return e.__v_skip||!Object.isExtensible(e)?0:aB(OZ(e))}function gp(e){return Ou(e)?e:wg(e,!1,HZ,nB,C7)}function X7(e){return wg(e,!1,JZ,rB,I7)}function Wx(e){return wg(e,!0,GZ,oB,F7)}function lB(e){return wg(e,!0,zZ,iB,_7)}function wg(e,t,n,r,o){if(!Dn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=sB(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return o.set(e,s),s}function cs(e){return Ou(e)?cs(e.__v_raw):!!(e&&e.__v_isReactive)}function Ou(e){return!!(e&&e.__v_isReadonly)}function ru(e){return!!(e&&e.__v_isShallow)}function Vx(e){return cs(e)||Ou(e)}function pn(e){const t=e&&e.__v_raw;return t?pn(t):e}function Ap(e){return hv(e,"__v_skip",!0),e}const Vh=e=>Dn(e)?gp(e):e,Ux=e=>Dn(e)?Wx(e):e;class E7{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new yd(()=>t(this._value),()=>Uh(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=pn(this);return Yx(t),(!t._cacheable||t.effect.dirty)&&Ia(t._value,t._value=t.effect.run())&&Uh(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function cB(e,t,n=!1){let r,o;const i=Dt(e);return i?(r=e,o=Fo):(r=e.get,o=e.set),new E7(r,o,i||!o,n)}function Yx(e){ac&&du&&(e=pn(e),w7(du,e.dep||(e.dep=O7(()=>e.dep=void 0,e instanceof E7?e:void 0))))}function Uh(e,t=3,n){e=pn(e);const r=e.dep;r&&L7(r,t)}function cr(e){return!!(e&&e.__v_isRef===!0)}function ve(e){return W7(e,!1)}function uB(e){return W7(e,!0)}function W7(e,t){return cr(e)?e:new fB(e,t)}class fB{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:pn(t),this._value=n?t:Vh(t)}get value(){return Yx(this),this._value}set value(t){const n=this.__v_isShallow||ru(t)||Ou(t);t=n?t:pn(t),Ia(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Vh(t),Uh(this,3))}}function dB(e){Uh(e,3)}function H(e){return cr(e)?e.value:e}function hB(e){return Dt(e)?e():H(e)}const pB={get:(e,t,n)=>H(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return cr(o)&&!cr(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Qx(e){return cs(e)?e:new Proxy(e,pB)}class mB{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Yx(this),()=>Uh(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function V7(e){return new mB(e)}function U7(e){const t=wt(e)?new Array(e.length):{};for(const n in e)t[n]=Y7(e,n);return t}class vB{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ZZ(pn(this._object),this._key)}}class gB{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ud(e,t,n){return cr(e)?e:Dt(e)?new gB(e):Dn(e)&&arguments.length>1?Y7(e,t,n):ve(e)}function Y7(e,t,n){const r=e[t];return cr(r)?r:new vB(e,t,n)}const AB={GET:"get",HAS:"has",ITERATE:"iterate"},RB={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function yB(e,t){}const xB={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},bB={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function nl(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Hu(i,t,n)}return o}function Ni(e,t,n,r){if(Dt(e)){const i=nl(e,t,n,r);return i&&Px(i)&&i.catch(a=>{Hu(a,t,n)}),i}const o=[];for(let i=0;i>>1,o=ho[r],i=Qh(o);its&&ho.splice(t,1)}function gv(e){wt(e)?ld.push(...e):(!Zs||!Zs.includes(e,e.allowRecurse?qc+1:qc))&&ld.push(e),Z7()}function LS(e,t,n=Yh?ts+1:0){for(;nQh(n)-Qh(r)),qc=0;qce.id==null?1/0:e.id,LB=(e,t)=>{const n=Qh(e)-Qh(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function B7(e){S4=!1,Yh=!0,ho.sort(LB);try{for(ts=0;tslr(h)?h.trim():h)),f&&(o=n.map(pv))}let s,c=r[s=sh(t)]||r[s=sh(_o(t))];!c&&i&&(c=r[s=sh(Gi(t))]),c&&Ni(c,e,6,o);const l=r[s+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ni(l,e,6,o)}}function D7(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!Dt(e)){const c=l=>{const u=D7(l,t,!0);u&&(s=!0,sr(a,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!s?(Dn(e)&&r.set(e,null),null):(wt(i)?i.forEach(c=>a[c]=null):sr(a,i),Dn(e)&&r.set(e,a),a)}function Og(e,t){return!e||!mp(t)?!1:(t=t.slice(2).replace(/Once$/,""),kn(e,t[0].toLowerCase()+t.slice(1))||kn(e,Gi(t))||kn(e,t))}let Zr=null,Tg=null;function Zh(e){const t=Zr;return Zr=e,Tg=e&&e.type.__scopeId||null,t}function on(e){Tg=e}function an(){Tg=null}const TB=e=>ne;function ne(e,t=Zr,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&P4(-1);const i=Zh(t);let a;try{a=e(...o)}finally{Zh(i),r._d&&P4(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Fm(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:m}=e;let A,x;const R=Zh(e);try{if(n.shapeFlag&4){const g=o||r,S=g;A=Mi(u.call(S,g,f,i,h,d,p)),x=c}else{const g=t;A=Mi(g.length>1?g(i,{attrs:c,slots:s,emit:l}):g(i,null)),x=t.props?c:PB(c)}}catch(g){uh.length=0,Hu(g,e,1),A=w(go)}let y=A;if(x&&m!==!1){const g=Object.keys(x),{shapeFlag:S}=y;g.length&&S&7&&(a&&g.some(Tx)&&(x=NB(x,a)),y=ms(y,x))}return n.dirs&&(y=ms(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),A=y,Zh(R),A}function kB(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||mp(n))&&((t||(t={}))[n]=e[n]);return t},NB=(e,t)=>{const n={};for(const r in e)(!Tx(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function CB(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?OS(r,a,l):!!a;if(c&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;let kS=0;const FB={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,a,s,c,l){e==null?XB(t,n,r,o,i,a,s,c,l):EB(e,t,n,r,o,a,s,c,l)},hydrate:WB,create:Hx,normalize:VB},_B=FB;function Bh(e,t){const n=e.props&&e.props[t];Dt(n)&&n()}function XB(e,t,n,r,o,i,a,s,c){const{p:l,o:{createElement:u}}=c,f=u("div"),d=e.suspense=Hx(e,o,r,t,f,n,i,a,s,c);l(null,d.pendingBranch=e.ssContent,f,null,r,d,i,a),d.deps>0?(Bh(e,"onPending"),Bh(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,a),cd(d,e.ssFallback)):d.resolve(!1,!0)}function EB(e,t,n,r,o,i,a,s,{p:c,um:l,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:A,isHydrating:x}=f;if(m)f.pendingBranch=d,Oa(d,m)?(c(m,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():A&&(x||(c(p,h,n,r,o,null,i,a,s),cd(f,h)))):(f.pendingId=kS++,x?(f.isHydrating=!1,f.activeBranch=m):l(m,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),A?(c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():(c(p,h,n,r,o,null,i,a,s),cd(f,h))):p&&Oa(d,p)?(c(p,d,n,r,o,f,i,a,s),f.resolve(!0)):(c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0&&f.resolve()));else if(p&&Oa(d,p))c(p,d,n,r,o,f,i,a,s),cd(f,d);else if(Bh(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=kS++,c(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0)f.resolve();else{const{timeout:R,pendingId:y}=f;R>0?setTimeout(()=>{f.pendingId===y&&f.fallback(h)},R):R===0&&f.fallback(h)}}function Hx(e,t,n,r,o,i,a,s,c,l,u=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:m,remove:A}}=l;let x;const R=UB(e);R&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const y=e.props?mv(e.props.timeout):void 0,g={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:o,anchor:i,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(S=!1,O=!1){const{vnode:T,activeBranch:M,pendingBranch:L,pendingId:k,effects:F,parentComponent:N,container:E}=g;let C=!1;if(g.isHydrating)g.isHydrating=!1;else if(!S){C=M&&L.transition&&L.transition.mode==="out-in",C&&(M.transition.afterLeave=()=>{k===g.pendingId&&(d(L,E,p(M),0),gv(F))});let{anchor:V}=g;M&&(V=p(M),h(M,N,g,!0)),C||d(L,E,V,0)}cd(g,L),g.pendingBranch=null,g.isInFallback=!1;let _=g.parent,I=!1;for(;_;){if(_.pendingBranch){_.effects.push(...F),I=!0;break}_=_.parent}!I&&!C&&gv(F),g.effects=[],R&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!O&&t.resolve()),Bh(T,"onResolve")},fallback(S){if(!g.pendingBranch)return;const{vnode:O,activeBranch:T,parentComponent:M,container:L,namespace:k}=g;Bh(O,"onFallback");const F=p(T),N=()=>{g.isInFallback&&(f(null,S,L,F,M,null,k,s,c),cd(g,S))},E=S.transition&&S.transition.mode==="out-in";E&&(T.transition.afterLeave=N),g.isInFallback=!0,h(T,M,null,!0),E||N()},move(S,O,T){g.activeBranch&&d(g.activeBranch,S,O,T),g.container=S},next(){return g.activeBranch&&p(g.activeBranch)},registerDep(S,O){const T=!!g.pendingBranch;T&&g.deps++;const M=S.vnode.el;S.asyncDep.catch(L=>{Hu(L,S,0)}).then(L=>{if(S.isUnmounted||g.isUnmounted||g.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:k}=S;C4(S,L,!1),M&&(k.el=M);const F=!M&&S.subTree.el;O(S,k,m(M||S.subTree.el),M?null:p(S.subTree),g,a,c),F&&A(F),Bx(S,k.el),T&&--g.deps===0&&g.resolve()})},unmount(S,O){g.isUnmounted=!0,g.activeBranch&&h(g.activeBranch,n,S,O),g.pendingBranch&&h(g.pendingBranch,n,S,O)}};return g}function WB(e,t,n,r,o,i,a,s,c){const l=t.suspense=Hx(t,r,n,e.parentNode,document.createElement("div"),null,o,i,a,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,i,a);return l.deps===0&&l.resolve(!1,!0),u}function VB(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=PS(r?n.default:n),e.ssFallback=r?PS(n.fallback):w(go)}function PS(e){let t;if(Dt(e)){const n=Pu&&e._c;n&&(e._d=!1,Q()),e=e(),n&&(e._d=!0,t=jo,Lk())}return wt(e)&&(e=kB(e)),e=Mi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function G7(e,t){t&&t.pendingBranch?wt(e)?t.effects.push(...e):t.effects.push(e):gv(e)}function cd(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,Bx(r,o))}function UB(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const J7=Symbol.for("v-scx"),z7=()=>qo(J7);function kg(e,t){return Rp(e,null,t)}function $7(e,t){return Rp(e,null,{flush:"post"})}function j7(e,t){return Rp(e,null,{flush:"sync"})}const G1={};function Tt(e,t,n){return Rp(e,t,n)}function Rp(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:a,onTrigger:s}=Qn){var c;if(t&&i){const S=t;t=(...O)=>{S(...O),g()}}const l=Fx()===((c=Cr)==null?void 0:c.scope)?Cr:null;let u,f=!1,d=!1;if(cr(e)?(u=()=>e.value,f=ru(e)):cs(e)?(u=ru(e)||r===!1?()=>zs(e,1):()=>zs(e),f=!0):wt(e)?(d=!0,f=e.some(S=>cs(S)||ru(S)),u=()=>e.map(S=>{if(cr(S))return S.value;if(cs(S))return zs(S,ru(S)||r===!1?1:void 0);if(Dt(S))return nl(S,l,2)})):Dt(e)?t?u=()=>nl(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return h&&h(),Ni(e,l,3,[p])}:u=Fo,t&&r){const S=u;u=()=>zs(S())}let h,p=S=>{h=y.onStop=()=>{nl(S,l,4),h=y.onStop=void 0}},m;if(xp)if(p=Fo,t?n&&Ni(t,l,3,[u(),d?[]:void 0,p]):u(),o==="sync"){const S=z7();m=S.__watcherHandles||(S.__watcherHandles=[])}else return Fo;let A=d?new Array(e.length).fill(G1):G1;const x=()=>{if(!(!y.active||!y.dirty))if(t){const S=y.run();(r||f||(d?S.some((O,T)=>Ia(O,A[T])):Ia(S,A)))&&(h&&h(),Ni(t,l,3,[S,A===G1?void 0:d&&A[0]===G1?[]:A,p]),A=S)}else y.run()};x.allowRecurse=!!t;let R;o==="sync"?R=x:o==="post"?R=()=>qr(x,l&&l.suspense):(x.pre=!0,l&&(x.id=l.uid),R=()=>Lg(x));const y=new yd(u,Fo,R),g=()=>{y.stop(),l&&l.scope&&kx(l.scope.effects,y)};return t?n?x():A=y.run():o==="post"?qr(y.run.bind(y),l&&l.suspense):y.run(),m&&m.push(g),g}function YB(e,t,n){const r=this.proxy,o=lr(e)?e.includes(".")?q7(r,e):()=>r[e]:e.bind(r,r);let i;Dt(t)?i=t:(i=t.handler,n=t);const a=Cr;vc(this);const s=Rp(o,i.bind(r),n);return a?vc(a):sc(),s}function q7(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),cr(e))zs(e.value,t,n,r);else if(wt(e))for(let o=0;o{zs(o,t,n,r)});else if(g7(e))for(const o in e)zs(e[o],t,n,r);return e}function Qe(e,t){const n=Zr;if(n===null)return e;const r=Fg(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),Yd(()=>{e.isUnmounting=!0}),e}const Zi=[Function,Array],Jx={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zi,onEnter:Zi,onAfterEnter:Zi,onEnterCancelled:Zi,onBeforeLeave:Zi,onLeave:Zi,onAfterLeave:Zi,onLeaveCancelled:Zi,onBeforeAppear:Zi,onAppear:Zi,onAfterAppear:Zi,onAppearCancelled:Zi},QB={name:"BaseTransition",props:Jx,setup(e,{slots:t}){const n=ul(),r=Gx();let o;return()=>{const i=t.default&&Pg(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const m of i)if(m.type!==go){a=m;break}}const s=pn(e),{mode:c}=s;if(r.isLeaving)return QA(a);const l=NS(a);if(!l)return QA(a);const u=xd(l,s,r,n);Tu(l,u);const f=n.subTree,d=f&&NS(f);let h=!1;const{getTransitionKey:p}=l.type;if(p){const m=p();o===void 0?o=m:m!==o&&(o=m,h=!0)}if(d&&d.type!==go&&(!Oa(l,d)||h)){const m=xd(d,s,r,n);if(Tu(d,m),c==="out-in")return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},QA(a);c==="in-out"&&l.type!==go&&(m.delayLeave=(A,x,R)=>{const y=tk(r,d);y[String(d.key)]=d,A[Ul]=()=>{x(),A[Ul]=void 0,delete u.delayedLeave},u.delayedLeave=R})}return a}}},ek=QB;function tk(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function xd(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:m,onAppear:A,onAfterAppear:x,onAppearCancelled:R}=t,y=String(e.key),g=tk(n,e),S=(M,L)=>{M&&Ni(M,r,9,L)},O=(M,L)=>{const k=L[1];S(M,L),wt(M)?M.every(F=>F.length<=1)&&k():M.length<=1&&k()},T={mode:i,persisted:a,beforeEnter(M){let L=s;if(!n.isMounted)if(o)L=m||s;else return;M[Ul]&&M[Ul](!0);const k=g[y];k&&Oa(e,k)&&k.el[Ul]&&k.el[Ul](),S(L,[M])},enter(M){let L=c,k=l,F=u;if(!n.isMounted)if(o)L=A||c,k=x||l,F=R||u;else return;let N=!1;const E=M[J1]=C=>{N||(N=!0,C?S(F,[M]):S(k,[M]),T.delayedLeave&&T.delayedLeave(),M[J1]=void 0)};L?O(L,[M,E]):E()},leave(M,L){const k=String(e.key);if(M[J1]&&M[J1](!0),n.isUnmounting)return L();S(f,[M]);let F=!1;const N=M[Ul]=E=>{F||(F=!0,L(),E?S(p,[M]):S(h,[M]),M[Ul]=void 0,g[k]===e&&delete g[k])};g[k]=e,d?O(d,[M,N]):N()},clone(M){return xd(M,t,n,r)}};return T}function QA(e){if(yp(e))return e=ms(e),e.children=null,e}function NS(e){return yp(e)?e.children?e.children[0]:void 0:e}function Tu(e,t){e.shapeFlag&6&&e.component?Tu(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pg(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function ZB(e){Dt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:a=!0,onError:s}=e;let c=null,l,u=0;const f=()=>(u++,c=null,d()),d=()=>{let h;return c||(h=c=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((m,A)=>{s(p,()=>m(f()),()=>A(p),u+1)});throw p}).then(p=>h!==c&&c?c:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),l=p,p)))};return Fe({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const h=Cr;if(l)return()=>ZA(l,h);const p=R=>{c=null,Hu(R,h,13,!r)};if(a&&h.suspense||xp)return d().then(R=>()=>ZA(R,h)).catch(R=>(p(R),()=>r?w(r,{error:R}):null));const m=ve(!1),A=ve(),x=ve(!!o);return o&&setTimeout(()=>{x.value=!1},o),i!=null&&setTimeout(()=>{if(!m.value&&!A.value){const R=new Error(`Async component timed out after ${i}ms.`);p(R),A.value=R}},i),d().then(()=>{m.value=!0,h.parent&&yp(h.parent.vnode)&&(h.parent.effect.dirty=!0,Lg(h.parent.update))}).catch(R=>{p(R),A.value=R}),()=>{if(m.value&&l)return ZA(l,h);if(A.value&&r)return w(r,{error:A.value});if(n&&!x.value)return w(n)}}})}function ZA(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,a=w(e,r,o);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const yp=e=>e.type.__isKeepAlive,BB={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ul(),r=n.ctx;if(!r.renderer)return()=>{const R=t.default&&t.default();return R&&R.length===1?R[0]:R};const o=new Map,i=new Set;let a=null;const s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(R,y,g,S,O)=>{const T=R.component;l(R,y,g,0,s),c(T.vnode,R,y,g,T,s,S,R.slotScopeIds,O),qr(()=>{T.isDeactivated=!1,T.a&&sd(T.a);const M=R.props&&R.props.onVnodeMounted;M&&Ho(M,T.parent,R)},s)},r.deactivate=R=>{const y=R.component;l(R,d,null,1,s),qr(()=>{y.da&&sd(y.da);const g=R.props&&R.props.onVnodeUnmounted;g&&Ho(g,y.parent,R),y.isDeactivated=!0},s)};function h(R){BA(R),u(R,n,s,!0)}function p(R){o.forEach((y,g)=>{const S=F4(y.type);S&&(!R||!R(S))&&m(g)})}function m(R){const y=o.get(R);!a||!Oa(y,a)?h(y):a&&BA(a),o.delete(R),i.delete(R)}Tt(()=>[e.include,e.exclude],([R,y])=>{R&&p(g=>N0(R,g)),y&&p(g=>!N0(y,g))},{flush:"post",deep:!0});let A=null;const x=()=>{A!=null&&o.set(A,DA(n.subTree))};return Gt(x),Cg(x),Yd(()=>{o.forEach(R=>{const{subTree:y,suspense:g}=n,S=DA(y);if(R.type===S.type&&R.key===S.key){BA(S);const O=S.component.da;O&&qr(O,g);return}h(R)})}),()=>{if(A=null,!t.default)return null;const R=t.default(),y=R[0];if(R.length>1)return a=null,R;if(!mc(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return a=null,y;let g=DA(y);const S=g.type,O=F4(pu(g)?g.type.__asyncResolved||{}:S),{include:T,exclude:M,max:L}=e;if(T&&(!O||!N0(T,O))||M&&O&&N0(M,O))return a=g,y;const k=g.key==null?S:g.key,F=o.get(k);return g.el&&(g=ms(g),y.shapeFlag&128&&(y.ssContent=g)),A=k,F?(g.el=F.el,g.component=F.component,g.transition&&Tu(g,g.transition),g.shapeFlag|=512,i.delete(k),i.add(k)):(i.add(k),L&&i.size>parseInt(L,10)&&m(i.values().next().value)),g.shapeFlag|=256,a=g,H7(y.type)?y:g}}},DB=BB;function N0(e,t){return wt(e)?e.some(n=>N0(n,t)):lr(e)?e.split(",").includes(t):LZ(e)?e.test(t):!1}function nk(e,t){ok(e,"a",t)}function rk(e,t){ok(e,"da",t)}function ok(e,t,n=Cr){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ng(t,r,n),n){let o=n.parent;for(;o&&o.parent;)yp(o.parent.vnode)&&KB(r,t,n,o),o=o.parent}}function KB(e,t,n,r){const o=Ng(t,e,r,!0);Pn(()=>{kx(r[t],o)},n)}function BA(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function DA(e){return e.shapeFlag&128?e.ssContent:e}function Ng(e,t,n=Cr,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Du(),vc(n);const s=Ni(t,n,e,a);return sc(),Ku(),s});return r?o.unshift(i):o.push(i),i}}const cl=e=>(t,n=Cr)=>(!xp||e==="sp")&&Ng(e,(...r)=>t(...r),n),zx=cl("bm"),Gt=cl("m"),ik=cl("bu"),Cg=cl("u"),Yd=cl("bum"),Pn=cl("um"),ak=cl("sp"),sk=cl("rtg"),lk=cl("rtc");function ck(e,t=Cr){Ng("ec",e,t)}function lt(e,t,n,r){let o;const i=n&&n[r];if(wt(e)||lr(e)){o=new Array(e.length);for(let a=0,s=e.length;at(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);o=new Array(a.length);for(let s=0,c=a.length;s{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function ur(e,t,n={},r,o){if(Zr.isCE||Zr.parent&&pu(Zr.parent)&&Zr.parent.isCE)return t!=="default"&&(n.name=t),w("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Q();const a=i&&uk(i(n)),s=Le(We,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function uk(e){return e.some(t=>mc(t)?!(t.type===go||t.type===We&&!uk(t.children)):!0)?e:null}function GB(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:sh(r)]=e[r];return n}const M4=e=>e?Ck(e)?Fg(e)||e.proxy:M4(e.parent):null,lh=sr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>M4(e.parent),$root:e=>M4(e.root),$emit:e=>e.emit,$options:e=>$x(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Lg(e.update)}),$nextTick:e=>e.n||(e.n=Ur.bind(e.proxy)),$watch:e=>YB.bind(e)}),KA=(e,t)=>e!==Qn&&!e.__isScriptSetup&&kn(e,t),w4={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:c}=e;let l;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(KA(r,t))return a[t]=1,r[t];if(o!==Qn&&kn(o,t))return a[t]=2,o[t];if((l=e.propsOptions[0])&&kn(l,t))return a[t]=3,i[t];if(n!==Qn&&kn(n,t))return a[t]=4,n[t];L4&&(a[t]=0)}}const u=lh[t];let f,d;if(u)return t==="$attrs"&&ii(e,"get",t),u(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Qn&&kn(n,t))return a[t]=4,n[t];if(d=c.config.globalProperties,kn(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return KA(o,t)?(o[t]=n,!0):r!==Qn&&kn(r,t)?(r[t]=n,!0):kn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let s;return!!n[a]||e!==Qn&&kn(e,a)||KA(t,a)||(s=i[0])&&kn(s,a)||kn(r,a)||kn(lh,a)||kn(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:kn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},JB=sr({},w4,{get(e,t){if(t!==Symbol.unscopables)return w4.get(e,t,e)},has(e,t){return t[0]!=="_"&&!NZ(t)}});function zB(){return null}function $B(){return null}function jB(e){}function qB(e){}function eD(){return null}function tD(){}function nD(e,t){return null}function rD(){return fk().slots}function oD(){return fk().attrs}function iD(e,t,n=Qn){const r=ul(),o=_o(t),i=V7((s,c)=>{let l;return j7(()=>{const u=e[t];Ia(l,u)&&(l=u,c())}),{get(){return s(),n.get?n.get(l):l},set(u){const f=r.vnode.props;!(f&&(t in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${o}`in f))&&Ia(u,l)&&(l=u,c()),r.emit(`update:${t}`,n.set?n.set(u):u)}}}),a=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let s=0;return{next(){return s<2?{value:s++?e[a]||{}:i,done:!1}:{done:!0}}}},i}function fk(){const e=ul();return e.setupContext||(e.setupContext=_k(e))}function Dh(e){return wt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function aD(e,t){const n=Dh(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?wt(o)||Dt(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(o=n[r]={default:t[r]}),o&&t[`__skip_${r}`]&&(o.skipFactory=!0)}return n}function sD(e,t){return!e||!t?e||t:wt(e)&&wt(t)?e.concat(t):sr({},Dh(e),Dh(t))}function lD(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function cD(e){const t=ul();let n=e();return sc(),Px(n)&&(n=n.catch(r=>{throw vc(t),r})),[n,()=>vc(t)]}let L4=!0;function uD(e){const t=$x(e),n=e.proxy,r=e.ctx;L4=!1,t.beforeCreate&&CS(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:c,inject:l,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:m,deactivated:A,beforeDestroy:x,beforeUnmount:R,destroyed:y,unmounted:g,render:S,renderTracked:O,renderTriggered:T,errorCaptured:M,serverPrefetch:L,expose:k,inheritAttrs:F,components:N,directives:E,filters:C}=t;if(l&&fD(l,r,null),a)for(const V in a){const B=a[V];Dt(B)&&(r[V]=B.bind(n))}if(o){const V=o.call(n,n);Dn(V)&&(e.data=gp(V))}if(L4=!0,i)for(const V in i){const B=i[V],G=Dt(B)?B.bind(n,n):Dt(B.get)?B.get.bind(n,n):Fo,oe=!Dt(B)&&Dt(B.set)?B.set.bind(n):Fo,W=Se({get:G,set:oe});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>W.value,set:Z=>W.value=Z})}if(s)for(const V in s)dk(s[V],r,n,V);if(c){const V=Dt(c)?c.call(n):c;Reflect.ownKeys(V).forEach(B=>{Gu(B,V[B])})}u&&CS(u,e,"c");function I(V,B){wt(B)?B.forEach(G=>V(G.bind(n))):B&&V(B.bind(n))}if(I(zx,f),I(Gt,d),I(ik,h),I(Cg,p),I(nk,m),I(rk,A),I(ck,M),I(lk,O),I(sk,T),I(Yd,R),I(Pn,g),I(ak,L),wt(k))if(k.length){const V=e.exposed||(e.exposed={});k.forEach(B=>{Object.defineProperty(V,B,{get:()=>n[B],set:G=>n[B]=G})})}else e.exposed||(e.exposed={});S&&e.render===Fo&&(e.render=S),F!=null&&(e.inheritAttrs=F),N&&(e.components=N),E&&(e.directives=E)}function fD(e,t,n=Fo){wt(e)&&(e=O4(e));for(const r in e){const o=e[r];let i;Dn(o)?"default"in o?i=qo(o.from||r,o.default,!0):i=qo(o.from||r):i=qo(o),cr(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function CS(e,t,n){Ni(wt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function dk(e,t,n,r){const o=r.includes(".")?q7(n,r):()=>n[r];if(lr(e)){const i=t[e];Dt(i)&&Tt(o,i)}else if(Dt(e))Tt(o,e.bind(n));else if(Dn(e))if(wt(e))e.forEach(i=>dk(i,t,n,r));else{const i=Dt(e.handler)?e.handler.bind(n):t[e.handler];Dt(i)&&Tt(o,i,e)}}function $x(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let c;return s?c=s:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(l=>Rv(c,l,a,!0)),Rv(c,t,a)),Dn(t)&&i.set(t,c),c}function Rv(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Rv(e,i,n,!0),o&&o.forEach(a=>Rv(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=dD[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const dD={data:IS,props:FS,emits:FS,methods:C0,computed:C0,beforeCreate:wo,created:wo,beforeMount:wo,mounted:wo,beforeUpdate:wo,updated:wo,beforeDestroy:wo,beforeUnmount:wo,destroyed:wo,unmounted:wo,activated:wo,deactivated:wo,errorCaptured:wo,serverPrefetch:wo,components:C0,directives:C0,watch:pD,provide:IS,inject:hD};function IS(e,t){return t?e?function(){return sr(Dt(e)?e.call(this,this):e,Dt(t)?t.call(this,this):t)}:t:e}function hD(e,t){return C0(O4(e),O4(t))}function O4(e){if(wt(e)){const t={};for(let n=0;n1)return n&&Dt(t)?t.call(r&&r.proxy):t}}function pk(){return!!(Cr||Zr||Kh)}function gD(e,t,n,r=!1){const o={},i={};hv(i,Ig,1),e.propsDefaults=Object.create(null),mk(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:X7(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function AD(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=pn(o),[c]=e.propsOptions;let l=!1;if((r||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[d,h]=vk(f,t,!0);sr(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return Dn(e)&&r.set(e,id),id;if(wt(i))for(let u=0;u-1,h[1]=m<0||p-1||kn(h,"default"))&&s.push(f)}}}const l=[a,s];return Dn(e)&&r.set(e,l),l}function _S(e){return e[0]!=="$"}function XS(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ES(e,t){return XS(e)===XS(t)}function WS(e,t){return wt(t)?t.findIndex(n=>ES(n,e)):Dt(t)&&ES(t,e)?0:-1}const gk=e=>e[0]==="_"||e==="$stable",jx=e=>wt(e)?e.map(Mi):[Mi(e)],RD=(e,t,n)=>{if(t._n)return t;const r=ne((...o)=>jx(t(...o)),n);return r._c=!1,r},Ak=(e,t,n)=>{const r=e._ctx;for(const o in e){if(gk(o))continue;const i=e[o];if(Dt(i))t[o]=RD(o,i,r);else if(i!=null){const a=jx(i);t[o]=()=>a}}},Rk=(e,t)=>{const n=jx(t);e.slots.default=()=>n},yD=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=pn(t),hv(t,"_",n)):Ak(t,e.slots={})}else e.slots={},t&&Rk(e,t);hv(e.slots,Ig,1)},xD=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Qn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(sr(o,t),!n&&s===1&&delete o._):(i=!t.$stable,Ak(t,o)),a=t}else t&&(Rk(e,t),a={default:1});if(i)for(const s in o)!gk(s)&&a[s]==null&&delete o[s]};function yv(e,t,n,r,o=!1){if(wt(e)){e.forEach((d,h)=>yv(d,t&&(wt(t)?t[h]:t),n,r,o));return}if(pu(r)&&!o)return;const i=r.shapeFlag&4?Fg(r.component)||r.component.proxy:r.el,a=o?null:i,{i:s,r:c}=e,l=t&&t.r,u=s.refs===Qn?s.refs={}:s.refs,f=s.setupState;if(l!=null&&l!==c&&(lr(l)?(u[l]=null,kn(f,l)&&(f[l]=null)):cr(l)&&(l.value=null)),Dt(c))nl(c,s,12,[a,u]);else{const d=lr(c),h=cr(c);if(d||h){const p=()=>{if(e.f){const m=d?kn(f,c)?f[c]:u[c]:c.value;o?wt(m)&&kx(m,i):wt(m)?m.includes(i)||m.push(i):d?(u[c]=[i],kn(f,c)&&(f[c]=u[c])):(c.value=[i],e.k&&(u[e.k]=c.value))}else d?(u[c]=a,kn(f,c)&&(f[c]=a)):h&&(c.value=a,e.k&&(u[e.k]=a))};a?(p.id=-1,qr(p,n)):p()}}}let Ml=!1;const bD=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",SD=e=>e.namespaceURI.includes("MathML"),z1=e=>{if(bD(e))return"svg";if(SD(e))return"mathml"},$1=e=>e.nodeType===8;function MD(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:a,remove:s,insert:c,createComment:l}}=e,u=(y,g)=>{if(!g.hasChildNodes()){n(null,y,g),Av(),g._vnode=y;return}Ml=!1,f(g.firstChild,y,null,null,null),Av(),g._vnode=y,Ml&&console.error("Hydration completed but contains mismatches.")},f=(y,g,S,O,T,M=!1)=>{const L=$1(y)&&y.data==="[",k=()=>m(y,g,S,O,T,L),{type:F,ref:N,shapeFlag:E,patchFlag:C}=g;let _=y.nodeType;g.el=y,C===-2&&(M=!1,g.dynamicChildren=null);let I=null;switch(F){case ku:_!==3?g.children===""?(c(g.el=o(""),a(y),y),I=y):I=k():(y.data!==g.children&&(Ml=!0,y.data=g.children),I=i(y));break;case go:R(y)?(I=i(y),x(g.el=y.content.firstChild,y,S)):_!==8||L?I=k():I=i(y);break;case mu:if(L&&(y=i(y),_=y.nodeType),_===1||_===3){I=y;const V=!g.children.length;for(let B=0;B{M=M||!!g.dynamicChildren;const{type:L,props:k,patchFlag:F,shapeFlag:N,dirs:E,transition:C}=g,_=L==="input"||L==="option";if(_||F!==-1){E&&$a(g,null,S,"created");let I=!1;if(R(y)){I=Sk(O,C)&&S&&S.vnode.props&&S.vnode.props.appear;const B=y.content.firstChild;I&&C.beforeEnter(B),x(B,y,S),g.el=y=B}if(N&16&&!(k&&(k.innerHTML||k.textContent))){let B=h(y.firstChild,g,y,S,O,T,M);for(;B;){Ml=!0;const G=B;B=B.nextSibling,s(G)}}else N&8&&y.textContent!==g.children&&(Ml=!0,y.textContent=g.children);if(k)if(_||!M||F&48)for(const B in k)(_&&(B.endsWith("value")||B==="indeterminate")||mp(B)&&!ah(B)||B[0]===".")&&r(y,B,null,k[B],void 0,void 0,S);else k.onClick&&r(y,"onClick",null,k.onClick,void 0,void 0,S);let V;(V=k&&k.onVnodeBeforeMount)&&Ho(V,S,g),E&&$a(g,null,S,"beforeMount"),((V=k&&k.onVnodeMounted)||E||I)&&G7(()=>{V&&Ho(V,S,g),I&&C.enter(y),E&&$a(g,null,S,"mounted")},O)}return y.nextSibling},h=(y,g,S,O,T,M,L)=>{L=L||!!g.dynamicChildren;const k=g.children,F=k.length;for(let N=0;N{const{slotScopeIds:L}=g;L&&(T=T?T.concat(L):L);const k=a(y),F=h(i(y),g,k,S,O,T,M);return F&&$1(F)&&F.data==="]"?i(g.anchor=F):(Ml=!0,c(g.anchor=l("]"),k,F),F)},m=(y,g,S,O,T,M)=>{if(Ml=!0,g.el=null,M){const F=A(y);for(;;){const N=i(y);if(N&&N!==F)s(N);else break}}const L=i(y),k=a(y);return s(y),n(null,g,k,L,S,O,z1(k),T),L},A=(y,g="[",S="]")=>{let O=0;for(;y;)if(y=i(y),y&&$1(y)&&(y.data===g&&O++,y.data===S)){if(O===0)return i(y);O--}return y},x=(y,g,S)=>{const O=g.parentNode;O&&O.replaceChild(y,g);let T=S;for(;T;)T.vnode.el===g&&(T.vnode.el=T.subTree.el=y),T=T.parent},R=y=>y.nodeType===1&&y.tagName.toLowerCase()==="template";return[u,f]}const qr=G7;function yk(e){return bk(e)}function xk(e){return bk(e,MD)}function bk(e,t){const n=A7();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:c,setText:l,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=Fo,insertStaticContent:p}=e,m=(J,ae,X,$=null,ue=null,j=null,q=void 0,re=null,pe=!!ae.dynamicChildren)=>{if(J===ae)return;J&&!Oa(J,ae)&&($=se(J),Z(J,ue,j,!0),J=null),ae.patchFlag===-2&&(pe=!1,ae.dynamicChildren=null);const{type:le,ref:ce,shapeFlag:be}=ae;switch(le){case ku:A(J,ae,X,$);break;case go:x(J,ae,X,$);break;case mu:J==null&&R(ae,X,$,q);break;case We:N(J,ae,X,$,ue,j,q,re,pe);break;default:be&1?S(J,ae,X,$,ue,j,q,re,pe):be&6?E(J,ae,X,$,ue,j,q,re,pe):(be&64||be&128)&&le.process(J,ae,X,$,ue,j,q,re,pe,me)}ce!=null&&ue&&yv(ce,J&&J.ref,j,ae||J,!ae)},A=(J,ae,X,$)=>{if(J==null)r(ae.el=s(ae.children),X,$);else{const ue=ae.el=J.el;ae.children!==J.children&&l(ue,ae.children)}},x=(J,ae,X,$)=>{J==null?r(ae.el=c(ae.children||""),X,$):ae.el=J.el},R=(J,ae,X,$)=>{[J.el,J.anchor]=p(J.children,ae,X,$,J.el,J.anchor)},y=({el:J,anchor:ae},X,$)=>{let ue;for(;J&&J!==ae;)ue=d(J),r(J,X,$),J=ue;r(ae,X,$)},g=({el:J,anchor:ae})=>{let X;for(;J&&J!==ae;)X=d(J),o(J),J=X;o(ae)},S=(J,ae,X,$,ue,j,q,re,pe)=>{ae.type==="svg"?q="svg":ae.type==="math"&&(q="mathml"),J==null?O(ae,X,$,ue,j,q,re,pe):L(J,ae,ue,j,q,re,pe)},O=(J,ae,X,$,ue,j,q,re)=>{let pe,le;const{props:ce,shapeFlag:be,transition:Ce,dirs:ge}=J;if(pe=J.el=a(J.type,j,ce&&ce.is,ce),be&8?u(pe,J.children):be&16&&M(J.children,pe,null,$,ue,HA(J,j),q,re),ge&&$a(J,null,$,"created"),T(pe,J,J.scopeId,q,$),ce){for(const nt in ce)nt!=="value"&&!ah(nt)&&i(pe,nt,null,ce[nt],j,J.children,$,ue,fe);"value"in ce&&i(pe,"value",null,ce.value,j),(le=ce.onVnodeBeforeMount)&&Ho(le,$,J)}ge&&$a(J,null,$,"beforeMount");const He=Sk(ue,Ce);He&&Ce.beforeEnter(pe),r(pe,ae,X),((le=ce&&ce.onVnodeMounted)||He||ge)&&qr(()=>{le&&Ho(le,$,J),He&&Ce.enter(pe),ge&&$a(J,null,$,"mounted")},ue)},T=(J,ae,X,$,ue)=>{if(X&&h(J,X),$)for(let j=0;j<$.length;j++)h(J,$[j]);if(ue){let j=ue.subTree;if(ae===j){const q=ue.vnode;T(J,q,q.scopeId,q.slotScopeIds,ue.parent)}}},M=(J,ae,X,$,ue,j,q,re,pe=0)=>{for(let le=pe;le{const re=ae.el=J.el;let{patchFlag:pe,dynamicChildren:le,dirs:ce}=ae;pe|=J.patchFlag&16;const be=J.props||Qn,Ce=ae.props||Qn;let ge;if(X&&Yc(X,!1),(ge=Ce.onVnodeBeforeUpdate)&&Ho(ge,X,ae,J),ce&&$a(ae,J,X,"beforeUpdate"),X&&Yc(X,!0),le?k(J.dynamicChildren,le,re,X,$,HA(ae,ue),j):q||B(J,ae,re,null,X,$,HA(ae,ue),j,!1),pe>0){if(pe&16)F(re,ae,be,Ce,X,$,ue);else if(pe&2&&be.class!==Ce.class&&i(re,"class",null,Ce.class,ue),pe&4&&i(re,"style",be.style,Ce.style,ue),pe&8){const He=ae.dynamicProps;for(let nt=0;nt{ge&&Ho(ge,X,ae,J),ce&&$a(ae,J,X,"updated")},$)},k=(J,ae,X,$,ue,j,q)=>{for(let re=0;re{if(X!==$){if(X!==Qn)for(const re in X)!ah(re)&&!(re in $)&&i(J,re,X[re],null,q,ae.children,ue,j,fe);for(const re in $){if(ah(re))continue;const pe=$[re],le=X[re];pe!==le&&re!=="value"&&i(J,re,le,pe,q,ae.children,ue,j,fe)}"value"in $&&i(J,"value",X.value,$.value,q)}},N=(J,ae,X,$,ue,j,q,re,pe)=>{const le=ae.el=J?J.el:s(""),ce=ae.anchor=J?J.anchor:s("");let{patchFlag:be,dynamicChildren:Ce,slotScopeIds:ge}=ae;ge&&(re=re?re.concat(ge):ge),J==null?(r(le,X,$),r(ce,X,$),M(ae.children,X,ce,ue,j,q,re,pe)):be>0&&be&64&&Ce&&J.dynamicChildren?(k(J.dynamicChildren,Ce,X,ue,j,q,re),(ae.key!=null||ue&&ae===ue.subTree)&&qx(J,ae,!0)):B(J,ae,X,ce,ue,j,q,re,pe)},E=(J,ae,X,$,ue,j,q,re,pe)=>{ae.slotScopeIds=re,J==null?ae.shapeFlag&512?ue.ctx.activate(ae,X,$,q,pe):C(ae,X,$,ue,j,q,pe):_(J,ae,pe)},C=(J,ae,X,$,ue,j,q)=>{const re=J.component=Nk(J,$,ue);if(yp(J)&&(re.ctx.renderer=me),Ik(re),re.asyncDep){if(ue&&ue.registerDep(re,I),!J.el){const pe=re.subTree=w(go);x(null,pe,ae,X)}}else I(re,J,ae,X,ue,j,q)},_=(J,ae,X)=>{const $=ae.component=J.component;if(CB(J,ae,X))if($.asyncDep&&!$.asyncResolved){V($,ae,X);return}else $.next=ae,wB($.update),$.effect.dirty=!0,$.update();else ae.el=J.el,$.vnode=ae},I=(J,ae,X,$,ue,j,q)=>{const re=()=>{if(J.isMounted){let{next:ce,bu:be,u:Ce,parent:ge,vnode:He}=J;{const Ie=Mk(J);if(Ie){ce&&(ce.el=He.el,V(J,ce,q)),Ie.asyncDep.then(()=>{J.isUnmounted||re()});return}}let nt=ce,_e;Yc(J,!1),ce?(ce.el=He.el,V(J,ce,q)):ce=He,be&&sd(be),(_e=ce.props&&ce.props.onVnodeBeforeUpdate)&&Ho(_e,ge,ce,He),Yc(J,!0);const Oe=Fm(J),Te=J.subTree;J.subTree=Oe,m(Te,Oe,f(Te.el),se(Te),J,ue,j),ce.el=Oe.el,nt===null&&Bx(J,Oe.el),Ce&&qr(Ce,ue),(_e=ce.props&&ce.props.onVnodeUpdated)&&qr(()=>Ho(_e,ge,ce,He),ue)}else{let ce;const{el:be,props:Ce}=ae,{bm:ge,m:He,parent:nt}=J,_e=pu(ae);if(Yc(J,!1),ge&&sd(ge),!_e&&(ce=Ce&&Ce.onVnodeBeforeMount)&&Ho(ce,nt,ae),Yc(J,!0),be&&ye){const Oe=()=>{J.subTree=Fm(J),ye(be,J.subTree,J,ue,null)};_e?ae.type.__asyncLoader().then(()=>!J.isUnmounted&&Oe()):Oe()}else{const Oe=J.subTree=Fm(J);m(null,Oe,X,$,J,ue,j),ae.el=Oe.el}if(He&&qr(He,ue),!_e&&(ce=Ce&&Ce.onVnodeMounted)){const Oe=ae;qr(()=>Ho(ce,nt,Oe),ue)}(ae.shapeFlag&256||nt&&pu(nt.vnode)&&nt.vnode.shapeFlag&256)&&J.a&&qr(J.a,ue),J.isMounted=!0,ae=X=$=null}},pe=J.effect=new yd(re,Fo,()=>Lg(le),J.scope),le=J.update=()=>{pe.dirty&&pe.run()};le.id=J.uid,Yc(J,!0),le()},V=(J,ae,X)=>{ae.component=J;const $=J.vnode.props;J.vnode=ae,J.next=null,AD(J,ae.props,$,X),xD(J,ae.children,X),Du(),LS(J),Ku()},B=(J,ae,X,$,ue,j,q,re,pe=!1)=>{const le=J&&J.children,ce=J?J.shapeFlag:0,be=ae.children,{patchFlag:Ce,shapeFlag:ge}=ae;if(Ce>0){if(Ce&128){oe(le,be,X,$,ue,j,q,re,pe);return}else if(Ce&256){G(le,be,X,$,ue,j,q,re,pe);return}}ge&8?(ce&16&&fe(le,ue,j),be!==le&&u(X,be)):ce&16?ge&16?oe(le,be,X,$,ue,j,q,re,pe):fe(le,ue,j,!0):(ce&8&&u(X,""),ge&16&&M(be,X,$,ue,j,q,re,pe))},G=(J,ae,X,$,ue,j,q,re,pe)=>{J=J||id,ae=ae||id;const le=J.length,ce=ae.length,be=Math.min(le,ce);let Ce;for(Ce=0;Cece?fe(J,ue,j,!0,!1,be):M(ae,X,$,ue,j,q,re,pe,be)},oe=(J,ae,X,$,ue,j,q,re,pe)=>{let le=0;const ce=ae.length;let be=J.length-1,Ce=ce-1;for(;le<=be&&le<=Ce;){const ge=J[le],He=ae[le]=pe?Yl(ae[le]):Mi(ae[le]);if(Oa(ge,He))m(ge,He,X,null,ue,j,q,re,pe);else break;le++}for(;le<=be&&le<=Ce;){const ge=J[be],He=ae[Ce]=pe?Yl(ae[Ce]):Mi(ae[Ce]);if(Oa(ge,He))m(ge,He,X,null,ue,j,q,re,pe);else break;be--,Ce--}if(le>be){if(le<=Ce){const ge=Ce+1,He=geCe)for(;le<=be;)Z(J[le],ue,j,!0),le++;else{const ge=le,He=le,nt=new Map;for(le=He;le<=Ce;le++){const Be=ae[le]=pe?Yl(ae[le]):Mi(ae[le]);Be.key!=null&&nt.set(Be.key,le)}let _e,Oe=0;const Te=Ce-He+1;let Ie=!1,Je=0;const Ge=new Array(Te);for(le=0;le=Te){Z(Be,ue,j,!0);continue}let tt;if(Be.key!=null)tt=nt.get(Be.key);else for(_e=He;_e<=Ce;_e++)if(Ge[_e-He]===0&&Oa(Be,ae[_e])){tt=_e;break}tt===void 0?Z(Be,ue,j,!0):(Ge[tt-He]=le+1,tt>=Je?Je=tt:Ie=!0,m(Be,ae[tt],X,null,ue,j,q,re,pe),Oe++)}const ke=Ie?wD(Ge):id;for(_e=ke.length-1,le=Te-1;le>=0;le--){const Be=He+le,tt=ae[Be],At=Be+1{const{el:j,type:q,transition:re,children:pe,shapeFlag:le}=J;if(le&6){W(J.component.subTree,ae,X,$);return}if(le&128){J.suspense.move(ae,X,$);return}if(le&64){q.move(J,ae,X,me);return}if(q===We){r(j,ae,X);for(let be=0;bere.enter(j),ue);else{const{leave:be,delayLeave:Ce,afterLeave:ge}=re,He=()=>r(j,ae,X),nt=()=>{be(j,()=>{He(),ge&&ge()})};Ce?Ce(j,He,nt):nt()}else r(j,ae,X)},Z=(J,ae,X,$=!1,ue=!1)=>{const{type:j,props:q,ref:re,children:pe,dynamicChildren:le,shapeFlag:ce,patchFlag:be,dirs:Ce}=J;if(re!=null&&yv(re,null,X,J,!0),ce&256){ae.ctx.deactivate(J);return}const ge=ce&1&&Ce,He=!pu(J);let nt;if(He&&(nt=q&&q.onVnodeBeforeUnmount)&&Ho(nt,ae,J),ce&6)z(J.component,X,$);else{if(ce&128){J.suspense.unmount(X,$);return}ge&&$a(J,null,ae,"beforeUnmount"),ce&64?J.type.remove(J,ae,X,ue,me,$):le&&(j!==We||be>0&&be&64)?fe(le,ae,X,!1,!0):(j===We&&be&384||!ue&&ce&16)&&fe(pe,ae,X),$&&K(J)}(He&&(nt=q&&q.onVnodeUnmounted)||ge)&&qr(()=>{nt&&Ho(nt,ae,J),ge&&$a(J,null,ae,"unmounted")},X)},K=J=>{const{type:ae,el:X,anchor:$,transition:ue}=J;if(ae===We){U(X,$);return}if(ae===mu){g(J);return}const j=()=>{o(X),ue&&!ue.persisted&&ue.afterLeave&&ue.afterLeave()};if(J.shapeFlag&1&&ue&&!ue.persisted){const{leave:q,delayLeave:re}=ue,pe=()=>q(X,j);re?re(J.el,j,pe):pe()}else j()},U=(J,ae)=>{let X;for(;J!==ae;)X=d(J),o(J),J=X;o(ae)},z=(J,ae,X)=>{const{bum:$,scope:ue,update:j,subTree:q,um:re}=J;$&&sd($),ue.stop(),j&&(j.active=!1,Z(q,J,ae,X)),re&&qr(re,ae),qr(()=>{J.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&J.asyncDep&&!J.asyncResolved&&J.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},fe=(J,ae,X,$=!1,ue=!1,j=0)=>{for(let q=j;qJ.shapeFlag&6?se(J.component.subTree):J.shapeFlag&128?J.suspense.next():d(J.anchor||J.el),ie=(J,ae,X)=>{J==null?ae._vnode&&Z(ae._vnode,null,null,!0):m(ae._vnode||null,J,ae,null,null,null,X),LS(),Av(),ae._vnode=J},me={p:m,um:Z,m:W,r:K,mt:C,mc:M,pc:B,pbc:k,n:se,o:e};let Ae,ye;return t&&([Ae,ye]=t(me)),{render:ie,hydrate:Ae,createApp:vD(ie,Ae)}}function HA({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Yc({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Sk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function qx(e,t,n=!1){const r=e.children,o=t.children;if(wt(r)&&wt(o))for(let i=0;i>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function Mk(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Mk(t)}const LD=e=>e.__isTeleport,ch=e=>e&&(e.disabled||e.disabled===""),VS=e=>typeof SVGElement<"u"&&e instanceof SVGElement,US=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,k4=(e,t)=>{const n=e&&e.to;return lr(n)?t?t(n):null:n},OD={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,c,l){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:m,createComment:A}}=l,x=ch(t.props);let{shapeFlag:R,children:y,dynamicChildren:g}=t;if(e==null){const S=t.el=m(""),O=t.anchor=m("");h(S,n,r),h(O,n,r);const T=t.target=k4(t.props,p),M=t.targetAnchor=m("");T&&(h(M,T),a==="svg"||VS(T)?a="svg":(a==="mathml"||US(T))&&(a="mathml"));const L=(k,F)=>{R&16&&u(y,k,F,o,i,a,s,c)};x?L(n,O):T&&L(T,M)}else{t.el=e.el;const S=t.anchor=e.anchor,O=t.target=e.target,T=t.targetAnchor=e.targetAnchor,M=ch(e.props),L=M?n:O,k=M?S:T;if(a==="svg"||VS(O)?a="svg":(a==="mathml"||US(O))&&(a="mathml"),g?(d(e.dynamicChildren,g,L,o,i,a,s),qx(e,t,!0)):c||f(e,t,L,k,o,i,a,s,!1),x)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):j1(t,n,S,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=k4(t.props,p);F&&j1(t,F,null,l,0)}else M&&j1(t,O,T,l,1)}wk(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:c,anchor:l,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),a&&i(l),s&16){const h=a||!ch(d);for(let p=0;p0?jo||id:null,Lk(),Pu>0&&jo&&jo.push(e),e}function ee(e,t,n,r,o,i){return Ok(Y(e,t,n,r,o,i,!0))}function Le(e,t,n,r,o){return Ok(w(e,t,n,r,o,!0))}function mc(e){return e?e.__v_isVNode===!0:!1}function Oa(e,t){return e.type===t.type&&e.key===t.key}function kD(e){}const Ig="__vInternal",Tk=({key:e})=>e??null,_m=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?lr(e)||cr(e)||Dt(e)?{i:Zr,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,r=0,o=null,i=e===We?0:1,a=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tk(t),ref:t&&_m(t),scopeId:Tg,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Zr};return s?(tb(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=lr(n)?8:16),Pu>0&&!a&&jo&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&jo.push(c),c}const w=PD;function PD(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===K7)&&(e=go),mc(e)){const s=ms(e,t,!0);return n&&tb(s,n),Pu>0&&!i&&jo&&(s.shapeFlag&6?jo[jo.indexOf(e)]=s:jo.push(s)),s.patchFlag|=-2,s}if(WD(e)&&(e=e.__vccOpts),t){t=kk(t);let{class:s,style:c}=t;s&&!lr(s)&&(t.class=qe(s)),Dn(c)&&(Vx(c)&&!wt(c)&&(c=sr({},c)),t.style=we(c))}const a=lr(e)?1:H7(e)?128:LD(e)?64:Dn(e)?4:Dt(e)?2:0;return Y(e,t,n,r,o,a,i,!0)}function kk(e){return e?Vx(e)||Ig in e?sr({},e):e:null}function ms(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,s=t?Pk(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Tk(s),ref:t&&t.ref?n&&o?wt(o)?o.concat(_m(t)):[o,_m(t)]:_m(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==We?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ms(e.ssContent),ssFallback:e.ssFallback&&ms(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ve(e=" ",t=0){return w(ku,null,e,t)}function ND(e,t){const n=w(mu,null,e);return n.staticCount=t,n}function Ze(e="",t=!1){return t?(Q(),Le(go,null,e)):w(go,null,e)}function Mi(e){return e==null||typeof e=="boolean"?w(go):wt(e)?w(We,null,e.slice()):typeof e=="object"?Yl(e):w(ku,null,String(e))}function Yl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ms(e)}function tb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(wt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),tb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Ig in t)?t._ctx=Zr:o===3&&Zr&&(Zr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Dt(t)?(t={default:t,_ctx:Zr},n=32):(t=String(t),r&64?(n=16,t=[Ve(t)]):n=8);e.children=t,e.shapeFlag|=n}function Pk(...e){const t={};for(let n=0;nCr||Zr;let nb,N4;{const e=A7(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};nb=t("__VUE_INSTANCE_SETTERS__",n=>Cr=n),N4=t("__VUE_SSR_SETTERS__",n=>xp=n)}const vc=e=>{nb(e),e.scope.on()},sc=()=>{Cr&&Cr.scope.off(),nb(null)};function Ck(e){return e.vnode.shapeFlag&4}let xp=!1;function Ik(e,t=!1){t&&N4(t);const{props:n,children:r}=e.vnode,o=Ck(e);gD(e,n,o,t),yD(e,r);const i=o?FD(e,t):void 0;return t&&N4(!1),i}function FD(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ap(new Proxy(e.ctx,w4));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?_k(e):null;vc(e),Du();const i=nl(r,e,0,[e.props,o]);if(Ku(),sc(),Px(i)){if(i.then(sc,sc),t)return i.then(a=>{C4(e,a,t)}).catch(a=>{Hu(a,e,0)});e.asyncDep=i}else C4(e,i,t)}else Fk(e,t)}function C4(e,t,n){Dt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Dn(t)&&(e.setupState=Qx(t)),Fk(e,n)}let xv,I4;function _D(e){xv=e,I4=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,JB))}}const XD=()=>!xv;function Fk(e,t,n){const r=e.type;if(!e.render){if(!t&&xv&&!r.render){const o=r.template||$x(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:c}=r,l=sr(sr({isCustomElement:i,delimiters:s},a),c);r.render=xv(o,l)}}e.render=r.render||Fo,I4&&I4(e)}{vc(e),Du();try{uD(e)}finally{Ku(),sc()}}}function ED(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ii(e,"get","$attrs"),t[n]}}))}function _k(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ED(e)},slots:e.slots,emit:e.emit,expose:t}}function Fg(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Qx(Ap(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in lh)return lh[n](e)},has(t,n){return n in t||n in lh}}))}function F4(e,t=!0){return Dt(e)?e.displayName||e.name:e.name||t&&e.__name}function WD(e){return Dt(e)&&"__vccOpts"in e}const Se=(e,t)=>cB(e,t,xp);function Xk(e,t,n){const r=arguments.length;return r===2?Dn(t)&&!wt(t)?mc(t)?w(e,null,[t]):w(e,t):w(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&mc(n)&&(n=[n]),w(e,t,n))}function VD(){}function UD(e,t,n,r){const o=n[r];if(o&&Ek(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function Ek(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&jo&&jo.push(e),!0}const Wk="3.4.3",YD=Fo,QD=bB,ZD=void 0,BD=Fo,DD={createComponentInstance:Nk,setupComponent:Ik,renderComponentRoot:Fm,setCurrentRenderingInstance:Zh,isVNode:mc,normalizeVNode:Mi},KD=DD,HD=null,GD=null,JD=null,zD="http://www.w3.org/2000/svg",$D="http://www.w3.org/1998/Math/MathML",Ql=typeof document<"u"?document:null,YS=Ql&&Ql.createElement("template"),jD={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Ql.createElementNS(zD,e):t==="mathml"?Ql.createElementNS($D,e):Ql.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Ql.createTextNode(e),createComment:e=>Ql.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ql.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{YS.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const s=YS.content;if(r==="svg"||r==="mathml"){const c=s.firstChild;for(;c.firstChild;)s.appendChild(c.firstChild);s.removeChild(c)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wl="transition",p0="animation",bd=Symbol("_vtc"),Nu=(e,{slots:t})=>Xk(ek,Uk(e),t);Nu.displayName="Transition";const Vk={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},qD=Nu.props=sr({},Jx,Vk),Qc=(e,t=[])=>{wt(e)?e.forEach(n=>n(...t)):e&&e(...t)},QS=e=>e?wt(e)?e.some(t=>t.length>1):e.length>1:!1;function Uk(e){const t={};for(const N in e)N in Vk||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=a,appearToClass:u=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=eK(o),m=p&&p[0],A=p&&p[1],{onBeforeEnter:x,onEnter:R,onEnterCancelled:y,onLeave:g,onLeaveCancelled:S,onBeforeAppear:O=x,onAppear:T=R,onAppearCancelled:M=y}=t,L=(N,E,C)=>{Nl(N,E?u:s),Nl(N,E?l:a),C&&C()},k=(N,E)=>{N._isLeaving=!1,Nl(N,f),Nl(N,h),Nl(N,d),E&&E()},F=N=>(E,C)=>{const _=N?T:R,I=()=>L(E,N,C);Qc(_,[E,I]),ZS(()=>{Nl(E,N?c:i),Ys(E,N?u:s),QS(_)||BS(E,r,m,I)})};return sr(t,{onBeforeEnter(N){Qc(x,[N]),Ys(N,i),Ys(N,a)},onBeforeAppear(N){Qc(O,[N]),Ys(N,c),Ys(N,l)},onEnter:F(!1),onAppear:F(!0),onLeave(N,E){N._isLeaving=!0;const C=()=>k(N,E);Ys(N,f),Qk(),Ys(N,d),ZS(()=>{N._isLeaving&&(Nl(N,f),Ys(N,h),QS(g)||BS(N,r,A,C))}),Qc(g,[N,C])},onEnterCancelled(N){L(N,!1),Qc(y,[N])},onAppearCancelled(N){L(N,!0),Qc(M,[N])},onLeaveCancelled(N){k(N),Qc(S,[N])}})}function eK(e){if(e==null)return null;if(Dn(e))return[GA(e.enter),GA(e.leave)];{const t=GA(e);return[t,t]}}function GA(e){return mv(e)}function Ys(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[bd]||(e[bd]=new Set)).add(t)}function Nl(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[bd];n&&(n.delete(t),n.size||(e[bd]=void 0))}function ZS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let tK=0;function BS(e,t,n,r){const o=e._endId=++tK,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:c}=Yk(e,t);if(!a)return r();const l=a+"end";let u=0;const f=()=>{e.removeEventListener(l,d),i()},d=h=>{h.target===e&&++u>=c&&f()};setTimeout(()=>{u(n[p]||"").split(", "),o=r(`${wl}Delay`),i=r(`${wl}Duration`),a=DS(o,i),s=r(`${p0}Delay`),c=r(`${p0}Duration`),l=DS(s,c);let u=null,f=0,d=0;t===wl?a>0&&(u=wl,f=a,d=i.length):t===p0?l>0&&(u=p0,f=l,d=c.length):(f=Math.max(a,l),u=f>0?a>l?wl:p0:null,d=u?u===wl?i.length:c.length:0);const h=u===wl&&/\b(transform|all)(,|$)/.test(r(`${wl}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function DS(e,t){for(;e.lengthKS(n)+KS(e[r])))}function KS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Qk(){return document.body.offsetHeight}function nK(e,t,n){const r=e[bd];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const rb=Symbol("_vod"),al={beforeMount(e,{value:t},{transition:n}){e[rb]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):m0(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),m0(e,!0),r.enter(e)):r.leave(e,()=>{m0(e,!1)}):m0(e,t))},beforeUnmount(e,{value:t}){m0(e,t)}};function m0(e,t){e.style.display=t?e[rb]:"none"}function rK(){al.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Zk=Symbol("");function oK(e){const t=ul();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>X4(i,o))},r=()=>{const o=e(t.proxy);_4(t.subTree,o),n(o)};$7(r),Gt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Pn(()=>o.disconnect())})}function _4(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{_4(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)X4(e.el,t);else if(e.type===We)e.children.forEach(n=>_4(n,t));else if(e.type===mu){let{el:n,anchor:r}=e;for(;n&&(X4(n,t),n!==r);)n=n.nextSibling}}function X4(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[Zk]=r}}function iK(e,t,n){const r=e.style,o=lr(n);if(n&&!o){if(t&&!lr(t))for(const i in t)n[i]==null&&E4(r,i,"");for(const i in n)E4(r,i,n[i])}else{const i=r.display;if(o){if(t!==n){const a=r[Zk];a&&(n+=";"+a),r.cssText=n}}else t&&e.removeAttribute("style");rb in e&&(r.display=i)}}const HS=/\s*!important$/;function E4(e,t,n){if(wt(n))n.forEach(r=>E4(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=aK(e,t);HS.test(n)?e.setProperty(Gi(r),n.replace(HS,""),"important"):e[r]=n}}const GS=["Webkit","Moz","ms"],JA={};function aK(e,t){const n=JA[t];if(n)return n;let r=_o(t);if(r!=="filter"&&r in e)return JA[t]=r;r=vp(r);for(let o=0;ozA||(dK.then(()=>zA=0),zA=Date.now());function pK(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ni(mK(r,n.value),t,5,[r])};return n.value=e,n.attached=hK(),n}function mK(e,t){if(wt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const jS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,vK=(e,t,n,r,o,i,a,s,c)=>{const l=o==="svg";t==="class"?nK(e,r,l):t==="style"?iK(e,n,r):mp(t)?Tx(t)||uK(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gK(e,t,r,l))?lK(e,t,r,i,a,s,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),sK(e,t,r,l))};function gK(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&jS(t)&&Dt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return jS(t)&&lr(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Bk(e,t){const n=Fe(e);class r extends _g{constructor(i){super(n,i,t)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const AK=e=>Bk(e,tP),RK=typeof HTMLElement<"u"?HTMLElement:class{};class _g extends RK{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Ur(()=>{this._connected||(Md(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const o of r)this._setAttr(o.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:i,styles:a}=r;let s;if(i&&!wt(i))for(const c in i){const l=i[c];(l===Number||l&&l.type===Number)&&(c in this._props&&(this._props[c]=mv(this._props[c])),(s||(s=Object.create(null)))[_o(c)]=!0)}this._numberProps=s,o&&this._resolveProps(r),this._applyStyles(a),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=wt(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(_o))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=_o(t);this._numberProps&&this._numberProps[r]&&(n=mv(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Gi(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Gi(t),n+""):n||this.removeAttribute(Gi(t))))}_update(){Md(this._createVNode(),this.shadowRoot)}_createVNode(){const t=w(this._def,sr({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,a)=>{this.dispatchEvent(new CustomEvent(i,{detail:a}))};n.emit=(i,...a)=>{r(i,a),Gi(i)!==i&&r(Gi(i),a)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof _g){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function yK(e="$style"){{const t=ul();if(!t)return Qn;const n=t.type.__cssModules;if(!n)return Qn;const r=n[e];return r||Qn}}const Dk=new WeakMap,Kk=new WeakMap,bv=Symbol("_moveCb"),qS=Symbol("_enterCb"),Hk={name:"TransitionGroup",props:sr({},qD,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ul(),r=Gx();let o,i;return Cg(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!LK(o[0].el,n.vnode.el,a))return;o.forEach(SK),o.forEach(MK);const s=o.filter(wK);Qk(),s.forEach(c=>{const l=c.el,u=l.style;Ys(l,a),u.transform=u.webkitTransform=u.transitionDuration="";const f=l[bv]=d=>{d&&d.target!==l||(!d||/transform$/.test(d.propertyName))&&(l.removeEventListener("transitionend",f),l[bv]=null,Nl(l,a))};l.addEventListener("transitionend",f)})}),()=>{const a=pn(e),s=Uk(a);let c=a.tag||We;o=i,i=t.default?Pg(t.default()):[];for(let l=0;ldelete e.mode;Hk.props;const bK=Hk;function SK(e){const t=e.el;t[bv]&&t[bv](),t[qS]&&t[qS]()}function MK(e){Kk.set(e,e.el.getBoundingClientRect())}function wK(e){const t=Dk.get(e),n=Kk.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function LK(e,t,n){const r=e.cloneNode(),o=e[bd];o&&o.forEach(s=>{s.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=Yk(r);return i.removeChild(r),a}const gc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return wt(t)?n=>sd(t,n):t};function OK(e){e.target.composing=!0}function eM(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $i=Symbol("_assign"),Hh={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[$i]=gc(o);const i=r||o.props&&o.props.type==="number";Hs(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=pv(s)),e[$i](s)}),n&&Hs(e,"change",()=>{e.value=e.value.trim()}),t||(Hs(e,"compositionstart",OK),Hs(e,"compositionend",eM),Hs(e,"change",eM))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e[$i]=gc(i),e.composing)return;const a=o||e.type==="number"?pv(e.value):e.value,s=t??"";a!==s&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===s)||(e.value=s))}},ob={deep:!0,created(e,t,n){e[$i]=gc(n),Hs(e,"change",()=>{const r=e._modelValue,o=Sd(e),i=e.checked,a=e[$i];if(wt(r)){const s=bg(r,o),c=s!==-1;if(i&&!c)a(r.concat(o));else if(!i&&c){const l=[...r];l.splice(s,1),a(l)}}else if(Bu(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(Jk(e,i))})},mounted:tM,beforeUpdate(e,t,n){e[$i]=gc(n),tM(e,t,n)}};function tM(e,{value:t,oldValue:n},r){e._modelValue=t,wt(t)?e.checked=bg(t,r.props.value)>-1:Bu(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=pc(t,Jk(e,!0)))}const ib={created(e,{value:t},n){e.checked=pc(t,n.props.value),e[$i]=gc(n),Hs(e,"change",()=>{e[$i](Sd(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[$i]=gc(r),t!==n&&(e.checked=pc(t,r.props.value))}},Gk={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Bu(t);Hs(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?pv(Sd(a)):Sd(a));e[$i](e.multiple?o?new Set(i):i:i[0])}),e[$i]=gc(r)},mounted(e,{value:t}){nM(e,t)},beforeUpdate(e,t,n){e[$i]=gc(n)},updated(e,{value:t}){nM(e,t)}};function nM(e,t){const n=e.multiple;if(!(n&&!wt(t)&&!Bu(t))){for(let r=0,o=e.options.length;r-1:i.selected=t.has(a);else if(pc(Sd(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Sd(e){return"_value"in e?e._value:e.value}function Jk(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const zk={created(e,t,n){q1(e,t,n,null,"created")},mounted(e,t,n){q1(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){q1(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){q1(e,t,n,r,"updated")}};function $k(e,t){switch(e){case"SELECT":return Gk;case"TEXTAREA":return Hh;default:switch(t){case"checkbox":return ob;case"radio":return ib;default:return Hh}}}function q1(e,t,n,r,o){const a=$k(e.tagName,n.props&&n.props.type)[o];a&&a(e,t,n,r)}function TK(){Hh.getSSRProps=({value:e})=>({value:e}),ib.getSSRProps=({value:e},t)=>{if(t.props&&pc(t.props.value,e))return{checked:!0}},ob.getSSRProps=({value:e},t)=>{if(wt(e)){if(t.props&&bg(e,t.props.value)>-1)return{checked:!0}}else if(Bu(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},zk.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=$k(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const kK=["ctrl","shift","alt","meta"],PK={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>kK.some(n=>e[`${n}Key`]&&!t.includes(n))},Kt=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...i)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=Gi(o.key);if(t.some(a=>a===i||NK[a]===i))return e(o)})},jk=sr({patchProp:vK},jD);let fh,rM=!1;function qk(){return fh||(fh=yk(jk))}function eP(){return fh=rM?fh:xk(jk),rM=!0,fh}const Md=(...e)=>{qk().render(...e)},tP=(...e)=>{eP().hydrate(...e)},nP=(...e)=>{const t=qk().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=oP(r);if(!o)return;const i=t._component;!Dt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,rP(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t},CK=(...e)=>{const t=eP().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=oP(r);if(o)return n(o,!0,rP(o))},t};function rP(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function oP(e){return lr(e)?document.querySelector(e):e}let oM=!1;const IK=()=>{oM||(oM=!0,TK(),rK())},FK=()=>{},_K=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:ek,BaseTransitionPropsValidators:Jx,Comment:go,DeprecationTypes:JD,EffectScope:Cx,ErrorCodes:xB,ErrorTypeStrings:QD,Fragment:We,KeepAlive:DB,ReactiveEffect:yd,Static:mu,Suspense:_B,Teleport:eb,Text:ku,TrackOpTypes:AB,Transition:Nu,TransitionGroup:bK,TriggerOpTypes:RB,VueElement:_g,assertNumber:yB,callWithAsyncErrorHandling:Ni,callWithErrorHandling:nl,camelize:_o,capitalize:vp,cloneVNode:ms,compatUtils:GD,compile:FK,computed:Se,createApp:nP,createBlock:Le,createCommentVNode:Ze,createElementBlock:ee,createElementVNode:Y,createHydrationRenderer:xk,createPropsRestProxy:lD,createRenderer:yk,createSSRApp:CK,createSlots:HB,createStaticVNode:ND,createTextVNode:Ve,createVNode:w,customRef:V7,defineAsyncComponent:ZB,defineComponent:Fe,defineCustomElement:Bk,defineEmits:$B,defineExpose:jB,defineModel:tD,defineOptions:qB,defineProps:zB,defineSSRCustomElement:AK,defineSlots:eD,devtools:ZD,effect:YZ,effectScope:Ix,getCurrentInstance:ul,getCurrentScope:Fx,getTransitionRawChildren:Pg,guardReactiveProps:kk,h:Xk,handleError:Hu,hasInjectionContext:pk,hydrate:tP,initCustomFormatter:VD,initDirectivesForSSR:IK,inject:qo,isMemoSame:Ek,isProxy:Vx,isReactive:cs,isReadonly:Ou,isRef:cr,isRuntimeOnly:XD,isShallow:ru,isVNode:mc,markRaw:Ap,mergeDefaults:aD,mergeModels:sD,mergeProps:Pk,nextTick:Ur,normalizeClass:qe,normalizeProps:XZ,normalizeStyle:we,onActivated:nk,onBeforeMount:zx,onBeforeUnmount:Yd,onBeforeUpdate:ik,onDeactivated:rk,onErrorCaptured:ck,onMounted:Gt,onRenderTracked:lk,onRenderTriggered:sk,onScopeDispose:b7,onServerPrefetch:ak,onUnmounted:Pn,onUpdated:Cg,openBlock:Q,popScopeId:an,provide:Gu,proxyRefs:Qx,pushScopeId:on,queuePostFlushCb:gv,reactive:gp,readonly:Wx,ref:ve,registerRuntimeCompiler:_D,render:Md,renderList:lt,renderSlot:ur,resolveComponent:xe,resolveDirective:Tn,resolveDynamicComponent:bs,resolveFilter:HD,resolveTransitionHooks:xd,setBlockTracking:P4,setDevtoolsHook:BD,setTransitionHooks:Tu,shallowReactive:X7,shallowReadonly:lB,shallowRef:uB,ssrContextKey:J7,ssrUtils:KD,stop:QZ,toDisplayString:St,toHandlerKey:sh,toHandlers:GB,toRaw:pn,toRef:Ud,toRefs:U7,toValue:hB,transformVNodeArgs:kD,triggerRef:dB,unref:H,useAttrs:oD,useCssModule:yK,useCssVars:oK,useModel:iD,useSSRContext:z7,useSlots:rD,useTransitionState:Gx,vModelCheckbox:ob,vModelDynamic:zk,vModelRadio:ib,vModelSelect:Gk,vModelText:Hh,vShow:al,version:Wk,warn:YD,watch:Tt,watchEffect:kg,watchPostEffect:$7,watchSyncEffect:j7,withAsyncContext:cD,withCtx:ne,withDefaults:nD,withDirectives:Qe,withKeys:Ac,withMemo:UD,withModifiers:Kt,withScopeId:TB},Symbol.toStringTag,{value:"Module"}));var XK=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let iP;const Xg=e=>iP=e,aP=Symbol();function W4(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var dh;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(dh||(dh={}));function EK(){const e=Ix(!0),t=e.run(()=>ve({}));let n=[],r=[];const o=Ap({install(i){Xg(o),o._a=i,i.provide(aP,o),i.config.globalProperties.$pinia=o,r.forEach(a=>n.push(a)),r=[]},use(i){return!this._a&&!XK?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const sP=()=>{};function iM(e,t,n,r=sP){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Fx()&&b7(o),o}function Sf(e,...t){e.slice().forEach(n=>{n(...t)})}const WK=e=>e();function V4(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];W4(o)&&W4(r)&&e.hasOwnProperty(n)&&!cr(r)&&!cs(r)?e[n]=V4(o,r):e[n]=r}return e}const VK=Symbol();function UK(e){return!W4(e)||!e.hasOwnProperty(VK)}const{assign:Cl}=Object;function YK(e){return!!(cr(e)&&e.effect)}function QK(e,t,n,r){const{state:o,actions:i,getters:a}=t,s=n.state.value[e];let c;function l(){s||(n.state.value[e]=o?o():{});const u=U7(n.state.value[e]);return Cl(u,i,Object.keys(a||{}).reduce((f,d)=>(f[d]=Ap(Se(()=>{Xg(n);const h=n._s.get(e);return a[d].call(h,h)})),f),{}))}return c=lP(e,l,t,n,r,!0),c}function lP(e,t,n={},r,o,i){let a;const s=Cl({actions:{}},n),c={deep:!0};let l,u,f=[],d=[],h;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),ve({});let m;function A(M){let L;l=u=!1,typeof M=="function"?(M(r.state.value[e]),L={type:dh.patchFunction,storeId:e,events:h}):(V4(r.state.value[e],M),L={type:dh.patchObject,payload:M,storeId:e,events:h});const k=m=Symbol();Ur().then(()=>{m===k&&(l=!0)}),u=!0,Sf(f,L,r.state.value[e])}const x=i?function(){const{state:L}=n,k=L?L():{};this.$patch(F=>{Cl(F,k)})}:sP;function R(){a.stop(),f=[],d=[],r._s.delete(e)}function y(M,L){return function(){Xg(r);const k=Array.from(arguments),F=[],N=[];function E(I){F.push(I)}function C(I){N.push(I)}Sf(d,{args:k,name:M,store:S,after:E,onError:C});let _;try{_=L.apply(this&&this.$id===e?this:S,k)}catch(I){throw Sf(N,I),I}return _ instanceof Promise?_.then(I=>(Sf(F,I),I)).catch(I=>(Sf(N,I),Promise.reject(I))):(Sf(F,_),_)}}const g={_p:r,$id:e,$onAction:iM.bind(null,d),$patch:A,$reset:x,$subscribe(M,L={}){const k=iM(f,M,L.detached,()=>F()),F=a.run(()=>Tt(()=>r.state.value[e],N=>{(L.flush==="sync"?u:l)&&M({storeId:e,type:dh.direct,events:h},N)},Cl({},c,L)));return k},$dispose:R},S=gp(g);r._s.set(e,S);const T=(r._a&&r._a.runWithContext||WK)(()=>r._e.run(()=>(a=Ix()).run(t)));for(const M in T){const L=T[M];if(cr(L)&&!YK(L)||cs(L))i||(p&&UK(L)&&(cr(L)?L.value=p[M]:V4(L,p[M])),r.state.value[e][M]=L);else if(typeof L=="function"){const k=y(M,L);T[M]=k,s.actions[M]=L}}return Cl(S,T),Cl(pn(S),T),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:M=>{A(L=>{Cl(L,M)})}}),r._p.forEach(M=>{Cl(S,a.run(()=>M({store:S,app:r._a,pinia:r,options:s})))}),p&&i&&n.hydrate&&n.hydrate(S.$state,p),l=!0,u=!0,S}function bp(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function a(s,c){const l=pk();return s=s||(l?qo(aP,null):null),s&&Xg(s),s=iP,s._s.has(r)||(i?lP(r,t,o,s):QK(r,o,s)),s._s.get(r)}return a.$id=r,a}function Xe(e){{e=pn(e);const t={};for(const n in e){const r=e[n];(cr(r)||cs(r))&&(t[n]=Ud(e,n))}return t}}let ZK=e=>crypto.getRandomValues(new Uint8Array(e)),BK=(e,t,n)=>{let r=(2<{let a="";for(;;){let s=n(o),c=o;for(;c--;)if(a+=e[s[c]&r]||"",a.length===i)return a}}},DK=(e,t=21)=>BK(e,t,ZK),xn=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var Mr=(e=>(e.SYMBOL="symbol",e.EL_ANIMATION="elAnimation",e.EL_STYLE="elStyle",e.EL_POSITION="elPosition",e.SLIDE_DESIGN="slideDesign",e.SLIDE_ANIMATION="slideAnimation",e.MULTI_POSITION="multiPosition",e))(Mr||{});function jr(e){this.content=e}jr.prototype={constructor:jr,find:function(e){for(var t=0;t>1}};jr.from=function(e){if(e instanceof jr)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new jr(t)};function cP(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),i=t.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let a=0;o.text[a]==i.text[a];a++)n++;return n}if(o.content.size||i.content.size){let a=cP(o.content,i.content,n+1);if(a!=null)return a}n+=o.nodeSize}}function uP(e,t,n,r){for(let o=e.childCount,i=t.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let a=e.child(--o),s=t.child(--i),c=a.nodeSize;if(a==s){n-=c,r-=c;continue}if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let l=0,u=Math.min(a.text.length,s.text.length);for(;lt&&r(c,o+s,i||null,a)!==!1&&c.content.size){let u=s+1;c.nodesBetween(Math.max(0,t-u),Math.min(c.content.size,n-u),r,o+u)}s=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,o){let i="",a=!0;return this.nodesBetween(t,n,(s,c)=>{let l=s.isText?s.text.slice(Math.max(t,c)-c,n-c):s.isLeaf?o?typeof o=="function"?o(s):o:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&r&&(a?a=!1:i+=r),i+=l},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);it)for(let i=0,a=0;at&&((an)&&(s.isText?s=s.cut(Math.max(0,t-a),Math.min(s.text.length,n-a)):s=s.cut(Math.max(0,t-a-1),Math.min(s.content.size,n-a-1))),r.push(s),o+=s.nodeSize),a=c}return new ct(r,o)}cutByIndex(t,n){return t==n?ct.empty:t==0&&n==this.content.length?this:new ct(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[t]=n,new ct(o,i)}addToStart(t){return new ct([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new ct(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),a=o+i.nodeSize;if(a>=t)return a==t||n>0?em(r+1,a):em(r,o);o=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return ct.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ct(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return ct.empty;let n,r=0;for(let o=0;othis.type.rank&&(n||(n=t.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-o.type.rank),n}}_n.none=[];class Mv extends Error{}class Rt{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=dP(this.content,t+this.openStart,n);return r&&new Rt(r,this.openStart,this.openEnd)}removeBetween(t,n){return new Rt(fP(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Rt.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Rt(ct.fromJSON(t,n.content),r,o)}static maxOpen(t,n=!0){let r=0,o=0;for(let i=t.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=t.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new Rt(t,r,o)}}Rt.empty=new Rt(ct.empty,0,0);function fP(e,t,n){let{index:r,offset:o}=e.findIndex(t),i=e.maybeChild(r),{index:a,offset:s}=e.findIndex(n);if(o==t||i.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(r,i.copy(fP(i.content,t-o-1,n-o-1)))}function dP(e,t,n,r){let{index:o,offset:i}=e.findIndex(t),a=e.maybeChild(o);if(i==t||a.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=dP(a.content,t-i-1,n);return s&&e.replaceChild(o,a.copy(s))}function KK(e,t,n){if(n.openStart>e.depth)throw new Mv("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Mv("Inconsistent open depths");return hP(e,t,n,0)}function hP(e,t,n,r){let o=e.index(r),i=e.node(r);if(o==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function hh(e,t,n,r){let o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(vu(e.nodeAfter,r),i++));for(let s=i;so&&U4(e,t,o+1),a=r.depth>o&&U4(n,r,o+1),s=[];return hh(null,e,o,s),i&&a&&t.index(o)==n.index(o)?(pP(i,a),vu(gu(i,mP(e,t,n,r,o+1)),s)):(i&&vu(gu(i,wv(e,t,o+1)),s),hh(t,n,o,s),a&&vu(gu(a,wv(n,r,o+1)),s)),hh(r,null,o,s),new ct(s)}function wv(e,t,n){let r=[];if(hh(null,e,n,r),e.depth>n){let o=U4(e,t,n+1);vu(gu(o,wv(e,t,n+1)),r)}return hh(t,null,n,r),new ct(r)}function HK(e,t){let n=t.depth-e.openStart,o=t.node(n).copy(e.content);for(let i=n-1;i>=0;i--)o=t.node(i).copy(ct.from(o));return{start:o.resolveNoCache(e.openStart+n),end:o.resolveNoCache(o.content.size-e.openEnd-n)}}class Gh{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=t.child(n);return r?t.child(n).cut(r):o}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new Lv(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let a=t;;){let{index:s,offset:c}=a.content.findIndex(i),l=i-c;if(r.push(a,s,o+c),!l||(a=a.child(s),a.isText))break;i=l-1,o+=c+1}return new Gh(n,r,i)}static resolveCached(t,n){for(let o=0;ot&&this.nodesBetween(t,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}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 t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),vP(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=ct.empty,o=0,i=r.childCount){let a=this.contentMatchAt(t).matchFragment(r,o,i),s=a&&a.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let c=o;cn.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let o=ct.fromJSON(t,n.content);return t.nodeType(n.type).create(n.attrs,o,r)}}us.prototype.text=void 0;class Ov extends us{constructor(t,n,r,o){if(super(t,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):vP(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Ov(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Ov(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function vP(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Cu{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new zK(t,n);if(r.next==null)return Cu.empty;let o=gP(r);r.next&&r.err("Unexpected trailing text");let i=rH(nH(o));return oH(i,r),i}matchType(t){for(let n=0;nl.createAndFill()));for(let l=0;l=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let o=0;o{let i=o+(r.validEnd?"*":" ")+" ";for(let a=0;a"+t.indexOf(r.next[a].next);return i}).join(` +`)}}Cu.empty=new Cu(!0);class zK{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.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(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function gP(e){let t=[];do t.push($K(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function $K(e){let t=[];do t.push(jK(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function jK(e){let t=tH(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=qK(e,t);else break;return t}function aM(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function qK(e,t){let n=aM(e),r=n;return e.eat(",")&&(e.next!="}"?r=aM(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function eH(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let i in n){let a=n[i];a.groups.indexOf(t)>-1&&o.push(a)}return o.length==0&&e.err("No node type or group '"+t+"' found"),o}function tH(e){if(e.eat("(")){let t=gP(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=eH(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function nH(e){let t=[[]];return o(i(e,0),n()),t;function n(){return t.push([])-1}function r(a,s,c){let l={term:c,to:s};return t[a].push(l),l}function o(a,s){a.forEach(c=>c.to=s)}function i(a,s){if(a.type=="choice")return a.exprs.reduce((c,l)=>c.concat(i(l,s)),[]);if(a.type=="seq")for(let c=0;;c++){let l=i(a.exprs[c],s);if(c==a.exprs.length-1)return l;o(l,s=n())}else if(a.type=="star"){let c=n();return r(s,c),o(i(a.expr,c),c),[r(c)]}else if(a.type=="plus"){let c=n();return o(i(a.expr,s),c),o(i(a.expr,c),c),[r(c)]}else{if(a.type=="opt")return[r(s)].concat(i(a.expr,s));if(a.type=="range"){let c=s;for(let l=0;l{e[a].forEach(({term:s,to:c})=>{if(!s)return;let l;for(let u=0;u{l||o.push([s,l=[]]),l.indexOf(u)==-1&&l.push(u)})})});let i=t[r.join(",")]=new Cu(r.indexOf(e.length-1)>-1);for(let a=0;a-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;nr[i]=new bP(i,n,a));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class iH{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class Eg{constructor(t,n,r,o){this.name=t,this.rank=n,this.schema=r,this.spec=o,this.attrs=xP(o.attrs),this.excluded=null;let i=RP(this.attrs);this.instance=i?new _n(this,i):null}create(t=null){return!t&&this.instance?this.instance:new _n(this,yP(this.attrs,t))}static compile(t,n){let r=Object.create(null),o=0;return t.forEach((i,a)=>r[i]=new Eg(i,o++,n,a)),r}removeFromSet(t){for(var n=0;n-1}}class SP{constructor(t){this.cached=Object.create(null);let n=this.spec={};for(let o in t)n[o]=t[o];n.nodes=jr.from(t.nodes),n.marks=jr.from(t.marks||{}),this.nodes=lM.compile(this.spec.nodes,this),this.marks=Eg.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],a=i.spec.content||"",s=i.spec.marks;i.contentMatch=r[a]||(r[a]=Cu.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=s=="_"?null:s?cM(this,s.split(" ")):s==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],a=i.spec.excludes;i.excluded=a==null?[i]:a==""?[]:cM(this,a.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(t,n=null,r,o){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof lM){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,o)}text(t,n){let r=this.nodes.text;return new Ov(r,r.defaultAttrs,t,_n.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return us.fromJSON(this,t)}markFromJSON(t){return _n.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function cM(e,t){let n=[];for(let r=0;r-1)&&n.push(a=c)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class wd{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=t.nodes[r.node];return o.contentMatch.matchType(o)})}parse(t,n={}){let r=new fM(this,n,!1);return r.addAll(t,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new fM(this,n,!0);return r.addAll(t,n.from,n.to),Rt.maxOpen(r.finish())}matchTag(t,n,r){for(let o=r?this.tags.indexOf(r)+1:0;ot.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(a.getAttrs){let c=a.getAttrs(n);if(c===!1)continue;a.attrs=c||void 0}return a}}}static schemaRules(t){let n=[];function r(o){let i=o.priority==null?50:o.priority,a=0;for(;a{r(a=dM(a)),a.mark||a.ignore||a.clearMark||(a.mark=o)})}for(let o in t.nodes){let i=t.nodes[o].spec.parseDOM;i&&i.forEach(a=>{r(a=dM(a)),a.node||a.ignore||a.mark||(a.node=o)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new wd(t,wd.schemaRules(t)))}}const MP={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},aH={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},wP={ol:!0,ul:!0},Tv=1,kv=2,ph=4;function uM(e,t,n){return t!=null?(t?Tv:0)|(t==="full"?kv:0):e&&e.whitespace=="pre"?Tv|kv:n&~ph}class tm{constructor(t,n,r,o,i,a,s){this.type=t,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=s,this.content=[],this.activeMarks=_n.none,this.stashMarks=[],this.match=a||(s&ph?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(ct.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(t.type))?(this.match=r,o):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Tv)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=ct.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(ct.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(t){for(let n=this.stashMarks.length-1;n>=0;n--)if(t.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(t){for(let n=0,r=this.pendingMarks;nthis.addAll(t)),a&&this.sync(s),this.needsBlock=c}else this.withStyleRules(t,()=>{this.addElementByRule(t,i,i.consuming===!1?o:void 0)})}leafFallback(t){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` +`))}ignoreFallback(t){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(t){let n=_n.none,r=_n.none;for(let o=0;o{a.clearMark(s)&&(r=s.addToSet(r))}):n=this.parser.schema.marks[a.mark].create(a.attrs).addToSet(n),a.consuming===!1)i=a;else break}return[n,r]}addElementByRule(t,n,r){let o,i,a;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(t):o=this.enter(i,n.attrs||null,n.preserveWhitespace)):(a=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(a));let s=this.top;if(i&&i.isLeaf)this.findInside(t);else if(r)this.addElement(t,r);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=t;typeof n.contentElement=="string"?c=t.querySelector(n.contentElement):typeof n.contentElement=="function"?c=n.contentElement(t):n.contentElement&&(c=n.contentElement),this.findAround(t,c,!0),this.addAll(c)}o&&this.sync(s)&&this.open--,a&&this.removePendingMark(a,s)}addAll(t,n,r){let o=n||0;for(let i=n?t.childNodes[n]:t.firstChild,a=r==null?null:t.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(i);this.findAtPoint(t,o)}findPlace(t){let n,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],a=i.findWrapping(t);if(a&&(!n||n.length>a.length)&&(n=a,r=i,!a.length)||i.solid)break}if(!n)return!1;this.sync(r);for(let o=0;othis.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let n=this.open;n>=0;n--)if(this.nodes[n]==t)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)t+=r[o].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),a=(s,c)=>{for(;s>=0;s--){let l=n[s];if(l==""){if(s==n.length-1||s==0)continue;for(;c>=i;c--)if(a(s-1,c))return!0;return!1}else{let u=c>0||c==0&&o?this.nodes[c].type:r&&c>=i?r.node(c-i).type:null;if(!u||u.name!=l&&u.groups.indexOf(l)==-1)return!1;c--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(t){let n=fH(t,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=t.addToSet(this.top.pendingMarks)}removePendingMark(t,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(t)>-1)o.pendingMarks=t.removeFromSet(o.pendingMarks);else{o.activeMarks=t.removeFromSet(o.activeMarks);let a=o.popFromStashMark(t);a&&o.type&&o.type.allowsMarkType(a.type)&&(o.activeMarks=a.addToSet(o.activeMarks))}if(o==n)break}}}function sH(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&wP.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function lH(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function cH(e){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=t.exec(e);)r.push(n[1],n[2].trim());return r}function dM(e){let t={};for(let n in e)t[n]=e[n];return t}function uH(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let i=[],a=s=>{i.push(s);for(let c=0;c{if(i.length||a.marks.length){let s=0,c=0;for(;s=0;o--){let i=this.serializeMark(t.marks[o],t.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(t,n,r={}){let o=this.marks[t.type.name];return o&&$s.renderSpec(eR(r),o(t,n))}static renderSpec(t,n,r=null){if(typeof n=="string")return{dom:t.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let a,s=r?t.createElementNS(r,o):t.createElement(o),c=n[1],l=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){l=2;for(let u in c)if(c[u]!=null){let f=u.indexOf(" ");f>0?s.setAttributeNS(u.slice(0,f),u.slice(f+1),c[u]):s.setAttribute(u,c[u])}}for(let u=l;ul)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}else{let{dom:d,contentDOM:h}=$s.renderSpec(t,f,r);if(s.appendChild(d),h){if(a)throw new RangeError("Multiple content holes");a=h}}}return{dom:s,contentDOM:a}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new $s(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=hM(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return hM(t.marks)}}function hM(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function eR(e){return e.document||window.document}const LP=65535,OP=Math.pow(2,16);function dH(e,t){return e+t*OP}function pM(e){return e&LP}function hH(e){return(e-(e&LP))/OP}const TP=1,kP=2,Xm=4,PP=8;class Y4{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&PP)>0}get deletedBefore(){return(this.delInfo&(TP|Xm))>0}get deletedAfter(){return(this.delInfo&(kP|Xm))>0}get deletedAcross(){return(this.delInfo&Xm)>0}}class Li{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Li.empty)return Li.empty}recover(t){let n=0,r=pM(t);if(!this.inverted)for(let o=0;ot)break;let l=this.ranges[s+i],u=this.ranges[s+a],f=c+l;if(t<=f){let d=l?t==c?-1:t==f?1:n:n,h=c+o+(d<0?0:u);if(r)return h;let p=t==(n<0?c:f)?null:dH(s/3,t-c),m=t==c?kP:t==f?TP:Xm;return(n<0?t!=c:t!=f)&&(m|=PP),new Y4(h,m,p)}o+=u-l}return r?t+o:new Y4(t+o,0,null)}touches(t,n){let r=0,o=pM(n),i=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;st)break;let l=this.ranges[s+i],u=c+l;if(t<=u&&s==o*3)return!0;r+=this.ranges[s+a]-l}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o=0;n--){let o=t.getMirror(n);this.appendMap(t.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let t=new ud;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;ri&&c!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),o),n.openStart,n.openEnd);return Ir.fromReplace(t,this.from,this.to,i)}invert(){return new ss(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new ec(n.pos,r.pos,this.mark)}merge(t){return t instanceof ec&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new ec(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new ec(n.from,n.to,t.markFromJSON(n.mark))}}Ro.jsonID("addMark",ec);class ss extends Ro{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new Rt(ab(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),t),n.openStart,n.openEnd);return Ir.fromReplace(t,this.from,this.to,r)}invert(){return new ec(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new ss(n.pos,r.pos,this.mark)}merge(t){return t instanceof ss&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new ss(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new ss(n.from,n.to,t.markFromJSON(n.mark))}}Ro.jsonID("removeMark",ss);class tc extends Ro{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Ir.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Ir.fromReplace(t,this.pos,this.pos+1,new Rt(ct.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;or.pos?null:new oo(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new oo(n.from,n.to,n.gapFrom,n.gapTo,Rt.fromJSON(t,n.slice),n.insert,!!n.structure)}}Ro.jsonID("replaceAround",oo);function Q4(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let a=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}}return!1}function pH(e,t,n,r){let o=[],i=[],a,s;e.doc.nodesBetween(t,n,(c,l,u)=>{if(!c.isInline)return;let f=c.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){let d=Math.max(l,t),h=Math.min(l+c.nodeSize,n),p=r.addToSet(f);for(let m=0;me.step(c)),i.forEach(c=>e.step(c))}function mH(e,t,n,r){let o=[],i=0;e.doc.nodesBetween(t,n,(a,s)=>{if(!a.isInline)return;i++;let c=null;if(r instanceof Eg){let l=a.marks,u;for(;u=r.isInSet(l);)(c||(c=[])).push(u),l=u.removeFromSet(l)}else r?r.isInSet(a.marks)&&(c=[r]):c=a.marks;if(c&&c.length){let l=Math.min(s+a.nodeSize,n);for(let u=0;ue.step(new ss(a.from,a.to,a.style)))}function vH(e,t,n,r=n.contentMatch){let o=e.doc.nodeAt(t),i=[],a=t+1;for(let s=0;s=0;s--)e.step(i[s])}function gH(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Sp(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let o=e.$from.node(r),i=e.$from.index(r),a=e.$to.indexAfter(r);if(rn;p--)m||r.index(p)>0?(m=!0,u=ct.from(r.node(p).copy(u)),f++):c--;let d=ct.empty,h=0;for(let p=i,m=!1;p>n;p--)m||o.after(p+1)=0;a--){if(r.size){let s=n[a].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=ct.from(n[a].type.create(n[a].attrs,r))}let o=t.start,i=t.end;e.step(new oo(o,i,o,i,new Rt(r,0,0),n.length,!0))}function bH(e,t,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,n,(a,s)=>{if(a.isTextblock&&!a.hasMarkup(r,o)&&SH(e.doc,e.mapping.slice(i).map(s),r)){e.clearIncompatible(e.mapping.slice(i).map(s,1),r);let c=e.mapping.slice(i),l=c.map(s,1),u=c.map(s+a.nodeSize,1);return e.step(new oo(l,u,l+1,u-1,new Rt(ct.from(r.create(o,null,a.marks)),0,0),1,!0)),!1}})}function SH(e,t,n){let r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function MH(e,t,n,r,o){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let a=n.create(r,null,o||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,a);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new oo(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new Rt(ct.from(a),0,0),1,!0))}function fd(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let l=o.depth-1,u=n-2;l>i;l--,u--){let f=o.node(l),d=o.index(l);if(f.type.spec.isolating)return!1;let h=f.content.cutByIndex(d,f.childCount),p=r&&r[u+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[u]||f;if(!f.canReplace(d+1,f.childCount)||!m.type.validContent(h))return!1}let s=o.indexAfter(i),c=r&&r[0];return o.node(i).canReplaceWith(s,s,c?c.type:o.node(i+1).type)}function wH(e,t,n=1,r){let o=e.doc.resolve(t),i=ct.empty,a=ct.empty;for(let s=o.depth,c=o.depth-n,l=n-1;s>c;s--,l--){i=ct.from(o.node(s).copy(i));let u=r&&r[l];a=ct.from(u?u.type.create(u.attrs,a):o.node(s).copy(a))}e.step(new fo(t,t,new Rt(i.append(a),n,n),!0))}function Qd(e,t){let n=e.resolve(t),r=n.index();return NP(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function NP(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function CP(e,t,n=-1){let r=e.resolve(t);for(let o=r.depth;;o--){let i,a,s=r.index(o);if(o==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(o+1),s++,a=r.node(o).maybeChild(s)):(i=r.node(o).maybeChild(s-1),a=r.node(o+1)),i&&!i.isTextblock&&NP(i,a)&&r.node(o).canReplace(s,s+1))return t;if(o==0)break;t=n<0?r.before(o):r.after(o)}}function LH(e,t,n){let r=new fo(t-n,t+n,Rt.empty,!0);e.step(r)}function OH(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,n))return r.after(o+1);if(i=0;a--){let s=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,c=r.index(a)+(s>0?1:0),l=r.node(a),u=!1;if(i==1)u=l.canReplace(c,c,o);else{let f=l.contentMatchAt(c).findWrapping(o.firstChild.type);u=f&&l.canReplaceWith(c,c,f[0])}if(u)return s==0?r.pos:s<0?r.before(a+1):r.after(a+1)}return null}function lb(e,t,n=t,r=Rt.empty){if(t==n&&!r.size)return null;let o=e.resolve(t),i=e.resolve(n);return FP(o,i,r)?new fo(t,n,r):new TH(o,i,r).fit()}function FP(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class TH{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=ct.empty;for(let o=0;o<=t.depth;o++){let i=t.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(t.indexAfter(o))})}for(let o=t.depth;o>0;o--)this.placed=ct.from(t.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let l=this.findFittable();l?this.placeNodes(l):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(t<0?this.$to:r.doc.resolve(t));if(!o)return null;let i=this.placed,a=r.depth,s=o.depth;for(;a&&s&&i.childCount==1;)i=i.firstChild.content,a--,s--;let c=new Rt(i,a,s);return t>-1?new oo(r.pos,t,this.$to.pos,this.$to.end(),c,n):c.size||r.pos!=this.$to.pos?new fo(r.pos,o.pos,c):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r1&&(o=0),i.type.spec.isolating&&o<=r){t=r;break}n=i.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=nR(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let a=o.firstChild;for(let s=this.depth;s>=0;s--){let{type:c,match:l}=this.frontier[s],u,f=null;if(n==1&&(a?l.matchType(a.type)||(f=l.fillBefore(ct.from(a),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:s,parent:i,inject:f};if(n==2&&a&&(u=l.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:s,parent:i,wrap:u};if(i&&l.matchType(i.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,o=nR(t,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new Rt(t,n+1,Math.max(r,o.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,o=nR(t,n);if(o.childCount<=1&&n>0){let i=t.size-n<=n+o.size;this.unplaced=new Rt(I0(t,n-1,1),n-1,i?n-1:r)}else this.unplaced=new Rt(I0(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:o,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let m=0;m1||c==0||m.content.size)&&(f=A,u.push(_P(m.mark(d.allowedMarks(m.marks)),l==1?c:0,l==s.childCount?h:-1)))}let p=l==s.childCount;p||(h=-1),this.placed=F0(this.placed,n,ct.from(u)),this.frontier[n].match=f,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,A=s;m1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:o}=this.frontier[n],i=n=0;s--){let{match:c,type:l}=this.frontier[s],u=rR(t,s,l,c,!0);if(!u||u.childCount)continue e}return{depth:n,fit:a,move:i?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=F0(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let o=t.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,t.index(r));this.openFrontierNode(o.type,o.attrs,i)}return t}openFrontierNode(t,n=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(t),this.placed=F0(this.placed,this.depth,ct.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(ct.empty,!0);n.childCount&&(this.placed=F0(this.placed,this.frontier.length,n))}}function I0(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(I0(e.firstChild.content,t-1,n)))}function F0(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(F0(e.lastChild.content,t-1,n)))}function nR(e,t){for(let n=0;n1&&(r=r.replaceChild(0,_P(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(ct.empty,!0)))),e.copy(r)}function rR(e,t,n,r,o){let i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let s=r.fillBefore(i.content,!0,a);return s&&!kH(n,i.content,a)?s:null}function kH(e,t,n){for(let r=n;r0;d--,h--){let p=o.node(d).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;a.indexOf(d)>-1?s=d:o.before(d)==h&&a.splice(1,0,-d)}let c=a.indexOf(s),l=[],u=r.openStart;for(let d=r.content,h=0;;h++){let p=d.firstChild;if(l.push(p),h==r.openStart)break;d=p.content}for(let d=u-1;d>=0;d--){let h=l[d],p=PH(h.type);if(p&&!h.sameMarkup(o.node(Math.abs(s)-1)))u=d;else if(p||!h.type.isTextblock)break}for(let d=r.openStart;d>=0;d--){let h=(d+u+1)%(r.openStart+1),p=l[h];if(p)for(let m=0;m=0&&(e.replace(t,n,r),!(e.steps.length>f));d--){let h=a[d];h<0||(t=o.before(h),n=i.after(h))}}function XP(e,t,n,r,o){if(tr){let i=o.contentMatchAt(0),a=i.fillBefore(e).append(e);e=a.append(i.matchFragment(a).fillBefore(ct.empty,!0))}return e}function CH(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let o=OH(e.doc,t,r.type);o!=null&&(t=n=o)}e.replaceRange(t,n,new Rt(ct.from(r),0,0))}function IH(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n),i=EP(r,o);for(let a=0;a0&&(c||r.node(s-1).canReplace(r.index(s-1),o.indexAfter(s-1))))return e.delete(r.before(s),o.after(s))}for(let a=1;a<=r.depth&&a<=o.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&o.end(a)-n!=o.depth-a)return e.delete(r.before(a),n);e.delete(t,n)}function EP(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let o=r;o>=0;o--){let i=e.start(o);if(it.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(i==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==i-1)&&n.push(o)}return n}class dd extends Ro{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Ir.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return Ir.fromReplace(t,this.pos,this.pos+1,new Rt(ct.from(o),0,n.isLeaf?0:1))}getMap(){return Li.empty}invert(t){return new dd(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new dd(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new dd(n.pos,n.attr,n.value)}}Ro.jsonID("attr",dd);class Jh extends Ro{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let o in t.attrs)n[o]=t.attrs[o];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return Ir.ok(r)}getMap(){return Li.empty}invert(t){return new Jh(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Jh(n.attr,n.value)}}Ro.jsonID("docAttr",Jh);let Od=class extends Error{};Od=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};Od.prototype=Object.create(Error.prototype);Od.prototype.constructor=Od;Od.prototype.name="TransformError";let FH=class{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new ud}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new Od(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=Rt.empty){let o=lb(this.doc,t,n,r);return o&&this.step(o),this}replaceWith(t,n,r){return this.replace(t,n,new Rt(ct.from(r),0,0))}delete(t,n){return this.replace(t,n,Rt.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return NH(this,t,n,r),this}replaceRangeWith(t,n,r){return CH(this,t,n,r),this}deleteRange(t,n){return IH(this,t,n),this}lift(t,n){return AH(this,t,n),this}join(t,n=1){return LH(this,t,n),this}wrap(t,n){return xH(this,t,n),this}setBlockType(t,n=t,r,o=null){return bH(this,t,n,r,o),this}setNodeMarkup(t,n,r=null,o){return MH(this,t,n,r,o),this}setNodeAttribute(t,n,r){return this.step(new dd(t,n,r)),this}setDocAttribute(t,n){return this.step(new Jh(t,n)),this}addNodeMark(t,n){return this.step(new tc(t,n)),this}removeNodeMark(t,n){if(!(n instanceof _n)){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n=n.isInSet(r.marks),!n)return this}return this.step(new Ld(t,n)),this}split(t,n=1,r){return wH(this,t,n,r),this}addMark(t,n,r){return pH(this,t,n,r),this}removeMark(t,n,r){return mH(this,t,n,r),this}clearIncompatible(t,n,r){return vH(this,t,n,r),this}};const oR=Object.create(null);class Sn{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new _H(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;i--){let a=n<0?Xf(t.node(0),t.node(i),t.before(i+1),t.index(i),n,r):Xf(t.node(0),t.node(i),t.after(i+1),t.index(i)+1,n,r);if(a)return a}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new ei(t.node(0))}static atStart(t){return Xf(t,t,0,0,1)||new ei(t)}static atEnd(t){return Xf(t,t,t.content.size,t.childCount,-1)||new ei(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=oR[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in oR)throw new RangeError("Duplicate use of selection JSON ID "+t);return oR[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Wn.between(this.$anchor,this.$head).getBookmark()}}Sn.prototype.visible=!0;class _H{constructor(t,n){this.$from=t,this.$to=n}}let vM=!1;function gM(e){!vM&&!e.parent.inlineContent&&(vM=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Wn extends Sn{constructor(t,n=t){gM(t),gM(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Sn.near(r);let o=t.resolve(n.map(this.anchor));return new Wn(o.parent.inlineContent?o:r,r)}replace(t,n=Rt.empty){if(super.replace(t,n),n==Rt.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Wn&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Wg(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Wn(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let o=t.resolve(n);return new this(o,r==n?o:t.resolve(r))}static between(t,n,r){let o=t.pos-n.pos;if((!r||o)&&(r=o>=0?1:-1),!n.parent.inlineContent){let i=Sn.findFrom(n,r,!0)||Sn.findFrom(n,-r,!0);if(i)n=i.$head;else return Sn.near(n,r)}return t.parent.inlineContent||(o==0?t=n:(t=(Sn.findFrom(t,-r,!0)||Sn.findFrom(t,r,!0)).$anchor,t.pos0?0:1);o>0?a=0;a+=o){let s=t.child(a);if(s.isAtom){if(!i&&Yt.isSelectable(s))return Yt.create(e,n-(o<0?s.nodeSize:0))}else{let c=Xf(e,s,n+o,o<0?s.childCount:0,o,i);if(c)return c}n+=s.nodeSize*o}return null}function AM(e,t,n){let r=e.steps.length-1;if(r{a==null&&(a=u)}),e.setSelection(Sn.near(e.doc.resolve(a),n))}const RM=1,nm=2,yM=4;let EH=class extends FH{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=nm,this}ensureMarks(t){return _n.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&nm)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~nm,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||_n.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let o=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(o.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!t)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let a=this.doc.resolve(n);i=r==n?a.marks():a.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(t,i)),this.selection.empty||this.setSelection(Sn.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=yM,this}get scrolledIntoView(){return(this.updated&yM)>0}};function xM(e,t){return!t||!e?e:e.bind(t)}class _0{constructor(t,n,r){this.name=t,this.init=xM(n.init,r),this.apply=xM(n.apply,r)}}const WH=[new _0("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new _0("selection",{init(e,t){return e.selection||Sn.atStart(t.doc)},apply(e){return e.selection}}),new _0("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new _0("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class iR{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=WH.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new _0(r.key,r.spec.state,r))})}}class Gf{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;rr.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=t[r],i=o.spec.state;i&&i.toJSON&&(n[r]=i.toJSON.call(o,this[o.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let o=new iR(t.schema,t.plugins),i=new Gf(o);return o.fields.forEach(a=>{if(a.name=="doc")i.doc=us.fromJSON(t.schema,n.doc);else if(a.name=="selection")i.selection=Sn.fromJSON(i.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let s in r){let c=r[s],l=c.spec.state;if(c.key==a.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){i[a.name]=l.fromJSON.call(c,t,n[s],i);return}}i[a.name]=a.init(t,i)}}),i}}function WP(e,t,n){for(let r in e){let o=e[r];o instanceof Function?o=o.bind(t):r=="handleDOMEvents"&&(o=WP(o,t,{})),n[r]=o}return n}class Zd{constructor(t){this.spec=t,this.props={},t.props&&WP(t.props,this,this.props),this.key=t.key?t.key.key:VP("plugin")}getState(t){return t[this.key]}}const aR=Object.create(null);function VP(e){return e in aR?e+"$"+ ++aR[e]:(aR[e]=0,e+"$")}class UP{constructor(t="key"){this.key=VP(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const YP=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function VH(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const UH=(e,t,n)=>{let r=VH(e,n);if(!r)return!1;let o=QP(r);if(!o){let a=r.blockRange(),s=a&&Sp(a);return s==null?!1:(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&JP(e,o,t))return!0;if(r.parent.content.size==0&&(Td(i,"end")||Yt.isSelectable(i))){let a=lb(e.doc,r.before(),r.after(),Rt.empty);if(a&&a.slice.size{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;i=QP(r)}let a=i&&i.nodeBefore;return!a||!Yt.isSelectable(a)?!1:(t&&t(e.tr.setSelection(Yt.create(e.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function QP(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function QH(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let r=QH(e,n);if(!r)return!1;let o=ZP(r);if(!o)return!1;let i=o.nodeAfter;if(JP(e,o,t))return!0;if(r.parent.content.size==0&&(Td(i,"start")||Yt.isSelectable(i))){let a=lb(e.doc,r.before(),r.after(),Rt.empty);if(a&&a.slice.size{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let n=e.selection,r=n instanceof Yt,o;if(r){if(n.node.isTextblock||!Qd(e.doc,n.from))return!1;o=n.from}else if(o=CP(e.doc,n.from,-1),o==null)return!1;if(t){let i=e.tr.join(o);r&&i.setSelection(Yt.create(i.doc,o-e.doc.resolve(o).nodeBefore.nodeSize)),t(i.scrollIntoView())}return!0},KH=(e,t)=>{let n=e.selection,r;if(n instanceof Yt){if(n.node.isTextblock||!Qd(e.doc,n.to))return!1;r=n.to}else if(r=CP(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},HH=(e,t)=>{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),i=o&&Sp(o);return i==null?!1:(t&&t(e.tr.lift(o,i).scrollIntoView()),!0)},BP=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` +`).scrollIntoView()),!0)};function ub(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),a=ub(o.contentMatchAt(i));if(!a||!o.canReplaceWith(i,i,a))return!1;if(t){let s=n.after(),c=e.tr.replaceWith(s,s,a.createAndFill());c.setSelection(Sn.near(c.doc.resolve(s),1)),t(c.scrollIntoView())}return!0},DP=(e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof ei||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=ub(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let a=(!r.parentOffset&&o.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(fd(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Sp(r);return o==null?!1:(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)};function JH(e){return(t,n)=>{let{$from:r,$to:o}=t.selection;if(t.selection instanceof Yt&&t.selection.node.isBlock)return!r.parentOffset||!fd(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.parent.isBlock)return!1;if(n){let i=o.parentOffset==o.parent.content.size,a=t.tr;(t.selection instanceof Wn||t.selection instanceof ei)&&a.deleteSelection();let s=r.depth==0?null:ub(r.node(-1).contentMatchAt(r.indexAfter(-1))),c=e&&e(o.parent,i),l=c?[c]:i&&s?[{type:s}]:void 0,u=fd(a.doc,a.mapping.map(r.pos),1,l);if(!l&&!u&&fd(a.doc,a.mapping.map(r.pos),1,s?[{type:s}]:void 0)&&(s&&(l=[{type:s}]),u=!0),u&&(a.split(a.mapping.map(r.pos),1,l),!i&&!r.parentOffset&&r.parent.type!=s)){let f=a.mapping.map(r.before()),d=a.doc.resolve(f);s&&r.node(-1).canReplaceWith(d.index(),d.index()+1,s)&&a.setNodeMarkup(a.mapping.map(r.before()),s)}n(a.scrollIntoView())}return!0}}const HP=JH(),zH=(e,t)=>HP(e,t&&(n=>{let r=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();r&&n.ensureMarks(r),t(n)})),$H=(e,t)=>{let{$from:n,to:r}=e.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),t&&t(e.tr.setSelection(Yt.create(e.doc,o))),!0)},GP=(e,t)=>(t&&t(e.tr.setSelection(new ei(e.doc))),!0);function jH(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,i=t.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(i,i+1)||!(o.isTextblock||Qd(e.doc,t.pos))?!1:(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0)}function JP(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,i,a;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(jH(e,t,n))return!0;let s=t.parent.canReplace(t.index(),t.index()+1);if(s&&(i=(a=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&a.matchType(i[0]||o.type).validEnd){if(n){let f=t.pos+o.nodeSize,d=ct.empty;for(let m=i.length-1;m>=0;m--)d=ct.from(i[m].create(null,d));d=ct.from(r.copy(d));let h=e.tr.step(new oo(t.pos-1,f,t.pos,f,new Rt(d,1,0),i.length,!0)),p=f+2*i.length;Qd(h.doc,p)&&h.join(p),n(h.scrollIntoView())}return!0}let c=Sn.findFrom(t,1),l=c&&c.$from.blockRange(c.$to),u=l&&Sp(l);if(u!=null&&u>=t.depth)return n&&n(e.tr.lift(l,u).scrollIntoView()),!0;if(s&&Td(o,"start",!0)&&Td(r,"end")){let f=r,d=[];for(;d.push(f),!f.isTextblock;)f=f.lastChild;let h=o,p=1;for(;!h.isTextblock;h=h.firstChild)p++;if(f.canReplace(f.childCount,f.childCount,h.content)){if(n){let m=ct.empty;for(let x=d.length-1;x>=0;x--)m=ct.from(d[x].copy(m));let A=e.tr.step(new oo(t.pos-d.length,t.pos+o.nodeSize,t.pos+p,t.pos+o.nodeSize-p,new Rt(m,d.length,0),0,!0));n(A.scrollIntoView())}return!0}}return!1}function zP(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(n&&n(t.tr.setSelection(Wn.create(t.doc,e<0?o.start(i):o.end(i)))),!0):!1}}const qH=zP(-1),eG=zP(1);function tG(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=a&&sb(a,e,t);return s?(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0):!1}}function nG(e,t,n){for(let r=0;r{if(a)return!1;a=s.inlineContent&&s.type.allowsMarkType(n)}),a)return!0}return!1}function Pr(e,t=null){return function(n,r){let{empty:o,$cursor:i,ranges:a}=n.selection;if(o&&!i||!nG(n.doc,a,e))return!1;if(r)if(i)e.isInSet(n.storedMarks||i.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{let s=!1,c=n.tr;for(let l=0;!s&&le.type===t.nodes.bullet_list||e.type===t.nodes.ordered_list,Er=e=>{const{empty:t}=e.state.selection;t&&GP(e.state,e.dispatch)},Ha=(e,t,n)=>{if(n)e.dispatch(e.state.tr.addMark(n.from,n.to,t));else{const{$from:r,$to:o}=e.state.selection;e.dispatch(e.state.tr.addMark(r.pos,o.pos,t))}},iG=(e,t,n,r)=>{let o=t;const i=d=>d.type===r;let a=null,s=null,c=null;for(;o<=n;){const d=e.nodeAt(o);if(!d||!d.marks)return null;const h=d.marks.find(i);if(!h||a&&h!==a)return null;s=s||d,a=a||h,c=d,o++}let l=t,u=n,f=0;for(o=t-1;o>f;){const d=e.nodeAt(o),h=d&&d.marks.find(i);if(!h||h!==a)break;l=o,s=d,o--}for(o=n+1,f=e.nodeSize-2;oArray.isArray(e)&&e.indexOf(t.type)>-1||t.type===e,sG=(e,t)=>{for(let n=e.depth;n>0;n--){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}},jP=e=>t=>sG(t.$from,e),lG=e=>t=>jP(n=>aG(e,n))(t),Em=(e,t)=>{const n=t.schema.nodes[e];return!!lG(n)(t.selection)},qP=e=>e?e.type.name==="text"?e:e.lastChild?qP(e.lastChild):null:null,eN=e=>{const{selection:t,doc:n}=e.state,{from:r}=t;let o=n.nodeAt(r)||n.nodeAt(r-1);return o=qP(o),(o==null?void 0:o.marks)||[]},Ef=(e,t,n)=>{for(const r of e)if(r.type.name===t&&r.attrs[n])return r.attrs[n];return null},Zc=(e,t)=>{for(const n of e)if(n.type.name===t)return!0;return!1},cG=(e,t)=>{const{from:n,$from:r,to:o,empty:i}=e.selection;return i?t.isInSet(e.storedMarks||r.marks()):e.doc.rangeHasMark(n,o,t)},uG=(e,t)=>{const{selection:n,doc:r}=e.state,{from:o,to:i}=n;let a=!0,s="";return r.nodesBetween(o,i,c=>(a&&c.attrs[t]&&(a=!1,s=c.attrs[t]),a)),s},tN={color:"#000",backcolor:"",fontsize:"20px",fontname:"微软雅黑",align:"left"},Z4=(e,t={})=>{const n={...tN,...t},r=eN(e),o=Zc(r,"strong"),i=Zc(r,"em"),a=Zc(r,"underline"),s=Zc(r,"strikethrough"),c=Zc(r,"superscript"),l=Zc(r,"subscript"),u=Zc(r,"code"),f=Ef(r,"forecolor","color")||n.color,d=Ef(r,"backcolor","backcolor")||n.backcolor,h=Ef(r,"fontsize","fontsize")||n.fontsize,p=Ef(r,"fontname","fontname")||n.fontname,m=Ef(r,"link","href")||"",A=uG(e,"align")||n.align,x=Em("bullet_list",e.state),R=Em("ordered_list",e.state),y=Em("blockquote",e.state);return{bold:o,em:i,underline:a,strikethrough:s,superscript:c,subscript:l,code:u,color:f,backcolor:d,fontsize:h,fontname:p,link:m,align:A,bulletList:x,orderedList:R,blockquote:y}},SM=e=>{const t=eN(e),n=Ef(t,"fontsize","fontsize")||tN.fontsize;return parseInt(n)},fG={bold:!1,em:!1,underline:!1,strikethrough:!1,superscript:!1,subscript:!1,code:!1,color:"#000",backcolor:"",fontsize:"20px",fontname:"微软雅黑",link:"",align:"left",bulletList:!1,orderedList:!1,blockquote:!1},MM=[{label:"Arial",value:"Arial"},{label:"微软雅黑",value:"Microsoft Yahei"},{label:"宋体",value:"SimSun"},{label:"黑体",value:"SimHei"},{label:"楷体",value:"KaiTi"},{label:"新宋体",value:"NSimSun"},{label:"仿宋",value:"FangSong"},{label:"苹方",value:"PingFang SC"},{label:"华文黑体",value:"STHeiti"},{label:"华文楷体",value:"STKaiti"},{label:"华文宋体",value:"STSong"},{label:"华文仿宋",value:"STFangSong"},{label:"华文中宋",value:"STZhongSong"},{label:"华文琥珀",value:"STHupo"},{label:"华文新魏",value:"STXinwei"},{label:"华文隶书",value:"STLiti"},{label:"华文行楷",value:"STXingkai"},{label:"冬青黑体",value:"Hiragino Sans GB"},{label:"兰亭黑",value:"Lantinghei SC"},{label:"偏偏体",value:"Hanzipen SC"},{label:"手札体",value:"Hannotate SC"},{label:"宋体",value:"Songti SC"},{label:"娃娃体",value:"Wawati SC"},{label:"行楷",value:"Xingkai SC"},{label:"圆体",value:"Yuanti SC"},{label:"华文细黑",value:"STXihei"},{label:"幼圆",value:"YouYuan"},{label:"隶书",value:"LiSu"}],Mp=[{label:"得意黑",value:"得意黑"},{label:"仓耳小丸子",value:"仓耳小丸子"},{label:"优设标题黑",value:"优设标题黑"},{label:"峰广明锐体",value:"峰广明锐体"},{label:"摄图摩登小方体",value:"摄图摩登小方体"},{label:"站酷快乐体",value:"站酷快乐体"},{label:"字制区喜脉体",value:"字制区喜脉体"},{label:"素材集市康康体",value:"素材集市康康体"},{label:"素材集市酷方体",value:"素材集市酷方体"},{label:"途牛类圆体",value:"途牛类圆体"},{label:"锐字真言体",value:"锐字真言体"}],dG=e=>{if(typeof e!="string")return!1;const t="Arial";if(e.toLowerCase()===t.toLowerCase())return!0;const n=100,r=100,o=100,i="a",a=document.createElement("canvas"),s=a.getContext("2d",{willReadFrequently:!0});if(!s)return!1;a.width=r,a.height=o,s.textAlign="center",s.fillStyle="black",s.textBaseline="middle";const c=l=>{s.clearRect(0,0,r,o),s.font=`${n}px ${l}, ${t}`,s.fillText(i,r/2,o/2);const u=s.getImageData(0,0,r,o).data;return[].slice.call(u).filter(f=>f!==0)};return c(t).join("")!==c(e).join("")};function Nv(e){"@babel/helpers - typeof";return Nv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nv(e)}var hG=/^\s+/,pG=/\s+$/;function it(e,t){if(e=e||"",t=t||{},e instanceof it)return e;if(!(this instanceof it))return new it(e,t);var n=mG(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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=n.ok}it.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 t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,o,i,a,s;return n=t.r/255,r=t.g/255,o=t.b/255,n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(t){return this._a=nN(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=LM(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=LM(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+o+"%)":"hsva("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=wM(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=wM(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+o+"%)":"hsla("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return OM(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return RG(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},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(rr(this._r,255)*100)+"%",g:Math.round(rr(this._g,255)*100)+"%",b:Math.round(rr(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(rr(this._r,255)*100)+"%, "+Math.round(rr(this._g,255)*100)+"%, "+Math.round(rr(this._b,255)*100)+"%)":"rgba("+Math.round(rr(this._r,255)*100)+"%, "+Math.round(rr(this._g,255)*100)+"%, "+Math.round(rr(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:NG[OM(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+TM(this._r,this._g,this._b,this._a),r=n,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=it(t);r="#"+TM(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,o=this._a<1&&this._a>=0,i=!n&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return it(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(SG,arguments)},brighten:function(){return this._applyModification(MG,arguments)},darken:function(){return this._applyModification(wG,arguments)},desaturate:function(){return this._applyModification(yG,arguments)},saturate:function(){return this._applyModification(xG,arguments)},greyscale:function(){return this._applyModification(bG,arguments)},spin:function(){return this._applyModification(LG,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(kG,arguments)},complement:function(){return this._applyCombination(OG,arguments)},monochromatic:function(){return this._applyCombination(PG,arguments)},splitcomplement:function(){return this._applyCombination(TG,arguments)},triad:function(){return this._applyCombination(kM,[3])},tetrad:function(){return this._applyCombination(kM,[4])}};it.fromRatio=function(e,t){if(Nv(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=X0(e[r]));e=n}return it(e,t)};function mG(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=_G(e)),Nv(e)=="object"&&(_s(e.r)&&_s(e.g)&&_s(e.b)?(t=vG(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_s(e.h)&&_s(e.s)&&_s(e.v)?(r=X0(e.s),o=X0(e.v),t=AG(e.h,r,o),a=!0,s="hsv"):_s(e.h)&&_s(e.s)&&_s(e.l)&&(r=X0(e.s),i=X0(e.l),t=gG(e.h,r,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=nN(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function vG(e,t,n){return{r:rr(e,255)*255,g:rr(t,255)*255,b:rr(n,255)*255}}function wM(e,t,n){e=rr(e,255),t=rr(t,255),n=rr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i,a,s=(r+o)/2;if(r==o)i=a=0;else{var c=r-o;switch(a=s>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t1&&(f-=1),f<1/6?l+(u-l)*6*f:f<1/2?u:f<2/3?l+(u-l)*(2/3-f)*6:l}if(t===0)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=a(c,s,e+1/3),o=a(c,s,e),i=a(c,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function LM(e,t,n){e=rr(e,255),t=rr(t,255),n=rr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i,a,s=r,c=r-o;if(a=r===0?0:c/r,r==o)i=0;else{switch(r){case e:i=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(it(r));return i}function PG(e,t){t=t||6;for(var n=it(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(it({h:r,s:o,v:i})),i=(i+s)%1;return a}it.mix=function(e,t,n){n=n===0?0:n||50;var r=it(e).toRgb(),o=it(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return it(a)};it.readability=function(e,t){var n=it(e),r=it(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};it.isReadable=function(e,t,n){var r=it.readability(e,t),o,i;switch(i=!1,o=XG(n),o.level+o.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i};it.mostReadable=function(e,t,n){var r=null,o=0,i,a,s,c;n=n||{},a=n.includeFallbackColors,s=n.level,c=n.size;for(var l=0;lo&&(o=i,r=it(t[l]));return it.isReadable(e,r,{level:s,size:c})||!a?r:(n.includeFallbackColors=!1,it.mostReadable(e,["#fff","#000"],n))};var B4=it.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"},NG=it.hexNames=CG(B4);function CG(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function nN(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function rr(e,t){IG(e)&&(e="100%");var n=FG(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Ug(e){return Math.min(1,Math.max(0,e))}function pi(e){return parseInt(e,16)}function IG(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function FG(e){return typeof e=="string"&&e.indexOf("%")!=-1}function ka(e){return e.length==1?"0"+e:""+e}function X0(e){return e<=1&&(e=e*100+"%"),e}function rN(e){return Math.round(parseFloat(e)*255).toString(16)}function PM(e){return pi(e)/255}var va=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),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 _s(e){return!!va.CSS_UNIT.exec(e)}function _G(e){e=e.replace(hG,"").replace(pG,"").toLowerCase();var t=!1;if(B4[e])e=B4[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=va.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=va.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=va.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=va.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=va.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=va.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=va.hex8.exec(e))?{r:pi(n[1]),g:pi(n[2]),b:pi(n[3]),a:PM(n[4]),format:t?"name":"hex8"}:(n=va.hex6.exec(e))?{r:pi(n[1]),g:pi(n[2]),b:pi(n[3]),format:t?"name":"hex"}:(n=va.hex4.exec(e))?{r:pi(n[1]+""+n[1]),g:pi(n[2]+""+n[2]),b:pi(n[3]+""+n[3]),a:PM(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=va.hex3.exec(e))?{r:pi(n[1]+""+n[1]),g:pi(n[2]+""+n[2]),b:pi(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function XG(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var Ct=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fb(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Cv={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Cv.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",f=1,d=2,h=4,p=1,m=2,A=1,x=2,R=4,y=8,g=16,S=32,O=64,T=128,M=256,L=512,k=30,F="...",N=800,E=16,C=1,_=2,I=3,V=1/0,B=9007199254740991,G=17976931348623157e292,oe=NaN,W=4294967295,Z=W-1,K=W>>>1,U=[["ary",T],["bind",A],["bindKey",x],["curry",y],["curryRight",g],["flip",L],["partial",S],["partialRight",O],["rearg",M]],z="[object Arguments]",fe="[object Array]",se="[object AsyncFunction]",ie="[object Boolean]",me="[object Date]",Ae="[object DOMException]",ye="[object Error]",J="[object Function]",ae="[object GeneratorFunction]",X="[object Map]",$="[object Number]",ue="[object Null]",j="[object Object]",q="[object Promise]",re="[object Proxy]",pe="[object RegExp]",le="[object Set]",ce="[object String]",be="[object Symbol]",Ce="[object Undefined]",ge="[object WeakMap]",He="[object WeakSet]",nt="[object ArrayBuffer]",_e="[object DataView]",Oe="[object Float32Array]",Te="[object Float64Array]",Ie="[object Int8Array]",Je="[object Int16Array]",Ge="[object Int32Array]",ke="[object Uint8Array]",Be="[object Uint8ClampedArray]",tt="[object Uint16Array]",At="[object Uint32Array]",ot=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kt=/&(?:amp|lt|gt|quot|#39);/g,It=/[&<>"']/g,An=RegExp(kt.source),sa=RegExp(It.source),Ea=/<%-([\s\S]+?)%>/g,ao=/<%([\s\S]+?)%>/g,sf=/<%=([\s\S]+?)%>/g,Nc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ws=/^\w*$/,T2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lf=/[\\^$.*+?()[\]{}|]/g,yo=RegExp(lf.source),Fi=/^\s+/,e1=/\s/,k2=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nX=/\{\n\/\* \[wrapped with (.+)\] \*/,rX=/,? & /,oX=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,iX=/[()=,{}\[\]\/\s]/,aX=/\\(\\)?/g,sX=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,D5=/\w*$/,lX=/^[-+]0x[0-9a-f]+$/i,cX=/^0b[01]+$/i,uX=/^\[object .+?Constructor\]$/,fX=/^0o[0-7]+$/i,dX=/^(?:0|[1-9]\d*)$/,hX=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,t1=/($^)/,pX=/['\n\r\u2028\u2029\\]/g,n1="\\ud800-\\udfff",mX="\\u0300-\\u036f",vX="\\ufe20-\\ufe2f",gX="\\u20d0-\\u20ff",K5=mX+vX+gX,H5="\\u2700-\\u27bf",G5="a-z\\xdf-\\xf6\\xf8-\\xff",AX="\\xac\\xb1\\xd7\\xf7",RX="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yX="\\u2000-\\u206f",xX=" \\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",J5="A-Z\\xc0-\\xd6\\xd8-\\xde",z5="\\ufe0e\\ufe0f",$5=AX+RX+yX+xX,P2="['’]",bX="["+n1+"]",j5="["+$5+"]",r1="["+K5+"]",q5="\\d+",SX="["+H5+"]",e8="["+G5+"]",t8="[^"+n1+$5+q5+H5+G5+J5+"]",N2="\\ud83c[\\udffb-\\udfff]",MX="(?:"+r1+"|"+N2+")",n8="[^"+n1+"]",C2="(?:\\ud83c[\\udde6-\\uddff]){2}",I2="[\\ud800-\\udbff][\\udc00-\\udfff]",cf="["+J5+"]",r8="\\u200d",o8="(?:"+e8+"|"+t8+")",wX="(?:"+cf+"|"+t8+")",i8="(?:"+P2+"(?:d|ll|m|re|s|t|ve))?",a8="(?:"+P2+"(?:D|LL|M|RE|S|T|VE))?",s8=MX+"?",l8="["+z5+"]?",LX="(?:"+r8+"(?:"+[n8,C2,I2].join("|")+")"+l8+s8+")*",OX="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TX="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",c8=l8+s8+LX,kX="(?:"+[SX,C2,I2].join("|")+")"+c8,PX="(?:"+[n8+r1+"?",r1,C2,I2,bX].join("|")+")",NX=RegExp(P2,"g"),CX=RegExp(r1,"g"),F2=RegExp(N2+"(?="+N2+")|"+PX+c8,"g"),IX=RegExp([cf+"?"+e8+"+"+i8+"(?="+[j5,cf,"$"].join("|")+")",wX+"+"+a8+"(?="+[j5,cf+o8,"$"].join("|")+")",cf+"?"+o8+"+"+i8,cf+"+"+a8,TX,OX,q5,kX].join("|"),"g"),FX=RegExp("["+r8+n1+K5+z5+"]"),_X=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,XX=["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"],EX=-1,qn={};qn[Oe]=qn[Te]=qn[Ie]=qn[Je]=qn[Ge]=qn[ke]=qn[Be]=qn[tt]=qn[At]=!0,qn[z]=qn[fe]=qn[nt]=qn[ie]=qn[_e]=qn[me]=qn[ye]=qn[J]=qn[X]=qn[$]=qn[j]=qn[pe]=qn[le]=qn[ce]=qn[ge]=!1;var Hn={};Hn[z]=Hn[fe]=Hn[nt]=Hn[_e]=Hn[ie]=Hn[me]=Hn[Oe]=Hn[Te]=Hn[Ie]=Hn[Je]=Hn[Ge]=Hn[X]=Hn[$]=Hn[j]=Hn[pe]=Hn[le]=Hn[ce]=Hn[be]=Hn[ke]=Hn[Be]=Hn[tt]=Hn[At]=!0,Hn[ye]=Hn[J]=Hn[ge]=!1;var WX={À:"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"},VX={"&":"&","<":"<",">":">",'"':""","'":"'"},UX={"&":"&","<":"<",">":">",""":'"',"'":"'"},YX={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QX=parseFloat,ZX=parseInt,u8=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct,BX=typeof self=="object"&&self&&self.Object===Object&&self,Gr=u8||BX||Function("return this")(),_2=t&&!t.nodeType&&t,Cc=_2&&!0&&e&&!e.nodeType&&e,f8=Cc&&Cc.exports===_2,X2=f8&&u8.process,_i=function(){try{var Pe=Cc&&Cc.require&&Cc.require("util").types;return Pe||X2&&X2.binding&&X2.binding("util")}catch{}}(),d8=_i&&_i.isArrayBuffer,h8=_i&&_i.isDate,p8=_i&&_i.isMap,m8=_i&&_i.isRegExp,v8=_i&&_i.isSet,g8=_i&&_i.isTypedArray;function si(Pe,De,Ue){switch(Ue.length){case 0:return Pe.call(De);case 1:return Pe.call(De,Ue[0]);case 2:return Pe.call(De,Ue[0],Ue[1]);case 3:return Pe.call(De,Ue[0],Ue[1],Ue[2])}return Pe.apply(De,Ue)}function DX(Pe,De,Ue,xt){for(var $t=-1,In=Pe==null?0:Pe.length;++$t-1}function E2(Pe,De,Ue){for(var xt=-1,$t=Pe==null?0:Pe.length;++xt<$t;)if(Ue(De,Pe[xt]))return!0;return!1}function tr(Pe,De){for(var Ue=-1,xt=Pe==null?0:Pe.length,$t=Array(xt);++Ue-1;);return Ue}function w8(Pe,De){for(var Ue=Pe.length;Ue--&&uf(De,Pe[Ue],0)>-1;);return Ue}function eE(Pe,De){for(var Ue=Pe.length,xt=0;Ue--;)Pe[Ue]===De&&++xt;return xt}var tE=Y2(WX),nE=Y2(VX);function rE(Pe){return"\\"+YX[Pe]}function oE(Pe,De){return Pe==null?n:Pe[De]}function ff(Pe){return FX.test(Pe)}function iE(Pe){return _X.test(Pe)}function aE(Pe){for(var De,Ue=[];!(De=Pe.next()).done;)Ue.push(De.value);return Ue}function D2(Pe){var De=-1,Ue=Array(Pe.size);return Pe.forEach(function(xt,$t){Ue[++De]=[$t,xt]}),Ue}function L8(Pe,De){return function(Ue){return Pe(De(Ue))}}function vl(Pe,De){for(var Ue=-1,xt=Pe.length,$t=0,In=[];++Ue-1}function HE(v,b){var P=this.__data__,D=x1(P,v);return D<0?(++this.size,P.push([v,b])):P[D][1]=b,this}Ls.prototype.clear=ZE,Ls.prototype.delete=BE,Ls.prototype.get=DE,Ls.prototype.has=KE,Ls.prototype.set=HE;function Os(v){var b=-1,P=v==null?0:v.length;for(this.clear();++b=b?v:b)),v}function Vi(v,b,P,D,te,he){var Re,Me=b&f,Ne=b&d,$e=b&h;if(P&&(Re=te?P(v,D,te,he):P(v)),Re!==n)return Re;if(!fr(v))return v;var je=qt(v);if(je){if(Re=$W(v),!Me)return Vo(v,Re)}else{var rt=lo(v),gt=rt==J||rt==ae;if(bl(v))return l6(v,Me);if(rt==j||rt==z||gt&&!te){if(Re=Ne||gt?{}:O6(v),!Me)return Ne?UW(v,cW(Re,v)):VW(v,W8(Re,v))}else{if(!Hn[rt])return te?v:{};Re=jW(v,rt,Me)}}he||(he=new ca);var Ot=he.get(v);if(Ot)return Ot;he.set(v,Re),nS(v)?v.forEach(function(Et){Re.add(Vi(Et,b,P,Et,v,he))}):eS(v)&&v.forEach(function(Et,fn){Re.set(fn,Vi(Et,b,P,fn,v,he))});var Xt=$e?Ne?gA:vA:Ne?Yo:Yr,sn=je?n:Xt(v);return Xi(sn||v,function(Et,fn){sn&&(fn=Et,Et=v[fn]),i0(Re,fn,Vi(Et,b,P,fn,v,he))}),Re}function uW(v){var b=Yr(v);return function(P){return V8(P,v,b)}}function V8(v,b,P){var D=P.length;if(v==null)return!D;for(v=Kn(v);D--;){var te=P[D],he=b[te],Re=v[te];if(Re===n&&!(te in v)||!he(Re))return!1}return!0}function U8(v,b,P){if(typeof v!="function")throw new Ei(a);return d0(function(){v.apply(n,P)},b)}function a0(v,b,P,D){var te=-1,he=o1,Re=!0,Me=v.length,Ne=[],$e=b.length;if(!Me)return Ne;P&&(b=tr(b,li(P))),D?(he=E2,Re=!1):b.length>=o&&(he=qd,Re=!1,b=new _c(b));e:for(;++tete?0:te+P),D=D===n||D>te?te:rn(D),D<0&&(D+=te),D=P>D?0:oS(D);P0&&P(Me)?b>1?Jr(Me,b-1,P,D,te):ml(te,Me):D||(te[te.length]=Me)}return te}var j2=p6(),Z8=p6(!0);function Wa(v,b){return v&&j2(v,b,Yr)}function q2(v,b){return v&&Z8(v,b,Yr)}function S1(v,b){return pl(b,function(P){return Cs(v[P])})}function Ec(v,b){b=yl(b,v);for(var P=0,D=b.length;v!=null&&Pb}function hW(v,b){return v!=null&&Un.call(v,b)}function pW(v,b){return v!=null&&b in Kn(v)}function mW(v,b,P){return v>=so(b,P)&&v=120&&je.length>=120)?new _c(Re&&je):n}je=v[0];var rt=-1,gt=Me[0];e:for(;++rt-1;)Me!==v&&p1.call(Me,Ne,1),p1.call(v,Ne,1);return v}function e6(v,b){for(var P=v?b.length:0,D=P-1;P--;){var te=b[P];if(P==D||te!==he){var he=te;Ns(te)?p1.call(v,te,1):cA(v,te)}}return v}function aA(v,b){return v+g1(F8()*(b-v+1))}function TW(v,b,P,D){for(var te=-1,he=Xr(v1((b-v)/(P||1)),0),Re=Ue(he);he--;)Re[D?he:++te]=v,v+=P;return Re}function sA(v,b){var P="";if(!v||b<1||b>B)return P;do b%2&&(P+=v),b=g1(b/2),b&&(v+=v);while(b);return P}function ln(v,b){return MA(P6(v,b,Qo),v+"")}function kW(v){return E8(bf(v))}function PW(v,b){var P=bf(v);return F1(P,Xc(b,0,P.length))}function c0(v,b,P,D){if(!fr(v))return v;b=yl(b,v);for(var te=-1,he=b.length,Re=he-1,Me=v;Me!=null&&++tete?0:te+b),P=P>te?te:P,P<0&&(P+=te),te=b>P?0:P-b>>>0,b>>>=0;for(var he=Ue(te);++D>>1,Re=v[he];Re!==null&&!ui(Re)&&(P?Re<=b:Re=o){var $e=b?null:BW(v);if($e)return a1($e);Re=!1,te=qd,Ne=new _c}else Ne=b?[]:Me;e:for(;++D=D?v:Ui(v,b,P)}var s6=xE||function(v){return Gr.clearTimeout(v)};function l6(v,b){if(b)return v.slice();var P=v.length,D=k8?k8(P):new v.constructor(P);return v.copy(D),D}function hA(v){var b=new v.constructor(v.byteLength);return new d1(b).set(new d1(v)),b}function _W(v,b){var P=b?hA(v.buffer):v.buffer;return new v.constructor(P,v.byteOffset,v.byteLength)}function XW(v){var b=new v.constructor(v.source,D5.exec(v));return b.lastIndex=v.lastIndex,b}function EW(v){return o0?Kn(o0.call(v)):{}}function c6(v,b){var P=b?hA(v.buffer):v.buffer;return new v.constructor(P,v.byteOffset,v.length)}function u6(v,b){if(v!==b){var P=v!==n,D=v===null,te=v===v,he=ui(v),Re=b!==n,Me=b===null,Ne=b===b,$e=ui(b);if(!Me&&!$e&&!he&&v>b||he&&Re&&Ne&&!Me&&!$e||D&&Re&&Ne||!P&&Ne||!te)return 1;if(!D&&!he&&!$e&&v=Me)return Ne;var $e=P[D];return Ne*($e=="desc"?-1:1)}}return v.index-b.index}function f6(v,b,P,D){for(var te=-1,he=v.length,Re=P.length,Me=-1,Ne=b.length,$e=Xr(he-Re,0),je=Ue(Ne+$e),rt=!D;++Me1?P[te-1]:n,Re=te>2?P[2]:n;for(he=v.length>3&&typeof he=="function"?(te--,he):n,Re&&bo(P[0],P[1],Re)&&(he=te<3?n:he,te=1),b=Kn(b);++D-1?te[he?b[Re]:Re]:n}}function g6(v){return Ps(function(b){var P=b.length,D=P,te=Wi.prototype.thru;for(v&&b.reverse();D--;){var he=b[D];if(typeof he!="function")throw new Ei(a);if(te&&!Re&&C1(he)=="wrapper")var Re=new Wi([],!0)}for(D=Re?D:P;++D1&&Rn.reverse(),je&&NeMe))return!1;var $e=he.get(v),je=he.get(b);if($e&&je)return $e==b&&je==v;var rt=-1,gt=!0,Ot=P&m?new _c:n;for(he.set(v,b),he.set(b,v);++rt1?"& ":"")+b[D],b=b.join(P>2?", ":" "),v.replace(k2,`{ +/* [wrapped with `+b+`] */ +`)}function eV(v){return qt(v)||Uc(v)||!!(C8&&v&&v[C8])}function Ns(v,b){var P=typeof v;return b=b??B,!!b&&(P=="number"||P!="symbol"&&dX.test(v))&&v>-1&&v%1==0&&v0){if(++b>=N)return arguments[0]}else b=0;return v.apply(n,arguments)}}function F1(v,b){var P=-1,D=v.length,te=D-1;for(b=b===n?D:b;++P1?v[b-1]:n;return P=typeof P=="function"?(v.pop(),P):n,Q6(v,P)});function Z6(v){var b=de(v);return b.__chain__=!0,b}function fU(v,b){return b(v),v}function _1(v,b){return b(v)}var dU=Ps(function(v){var b=v.length,P=b?v[0]:0,D=this.__wrapped__,te=function(he){return $2(he,v)};return b>1||this.__actions__.length||!(D instanceof mn)||!Ns(P)?this.thru(te):(D=D.slice(P,+P+(b?1:0)),D.__actions__.push({func:_1,args:[te],thisArg:n}),new Wi(D,this.__chain__).thru(function(he){return b&&!he.length&&he.push(n),he}))});function hU(){return Z6(this)}function pU(){return new Wi(this.value(),this.__chain__)}function mU(){this.__values__===n&&(this.__values__=rS(this.value()));var v=this.__index__>=this.__values__.length,b=v?n:this.__values__[this.__index__++];return{done:v,value:b}}function vU(){return this}function gU(v){for(var b,P=this;P instanceof y1;){var D=X6(P);D.__index__=0,D.__values__=n,b?te.__wrapped__=D:b=D;var te=D;P=P.__wrapped__}return te.__wrapped__=v,b}function AU(){var v=this.__wrapped__;if(v instanceof mn){var b=v;return this.__actions__.length&&(b=new mn(this)),b=b.reverse(),b.__actions__.push({func:_1,args:[wA],thisArg:n}),new Wi(b,this.__chain__)}return this.thru(wA)}function RU(){return i6(this.__wrapped__,this.__actions__)}var yU=O1(function(v,b,P){Un.call(v,P)?++v[P]:Ts(v,P,1)});function xU(v,b,P){var D=qt(v)?A8:fW;return P&&bo(v,b,P)&&(b=n),D(v,_t(b,3))}function bU(v,b){var P=qt(v)?pl:Q8;return P(v,_t(b,3))}var SU=v6(E6),MU=v6(W6);function wU(v,b){return Jr(X1(v,b),1)}function LU(v,b){return Jr(X1(v,b),V)}function OU(v,b,P){return P=P===n?1:rn(P),Jr(X1(v,b),P)}function B6(v,b){var P=qt(v)?Xi:Al;return P(v,_t(b,3))}function D6(v,b){var P=qt(v)?KX:Y8;return P(v,_t(b,3))}var TU=O1(function(v,b,P){Un.call(v,P)?v[P].push(b):Ts(v,P,[b])});function kU(v,b,P,D){v=Uo(v)?v:bf(v),P=P&&!D?rn(P):0;var te=v.length;return P<0&&(P=Xr(te+P,0)),Y1(v)?P<=te&&v.indexOf(b,P)>-1:!!te&&uf(v,b,P)>-1}var PU=ln(function(v,b,P){var D=-1,te=typeof b=="function",he=Uo(v)?Ue(v.length):[];return Al(v,function(Re){he[++D]=te?si(b,Re,P):s0(Re,b,P)}),he}),NU=O1(function(v,b,P){Ts(v,P,b)});function X1(v,b){var P=qt(v)?tr:G8;return P(v,_t(b,3))}function CU(v,b,P,D){return v==null?[]:(qt(b)||(b=b==null?[]:[b]),P=D?n:P,qt(P)||(P=P==null?[]:[P]),j8(v,b,P))}var IU=O1(function(v,b,P){v[P?0:1].push(b)},function(){return[[],[]]});function FU(v,b,P){var D=qt(v)?W2:b8,te=arguments.length<3;return D(v,_t(b,4),P,te,Al)}function _U(v,b,P){var D=qt(v)?HX:b8,te=arguments.length<3;return D(v,_t(b,4),P,te,Y8)}function XU(v,b){var P=qt(v)?pl:Q8;return P(v,V1(_t(b,3)))}function EU(v){var b=qt(v)?E8:kW;return b(v)}function WU(v,b,P){(P?bo(v,b,P):b===n)?b=1:b=rn(b);var D=qt(v)?aW:PW;return D(v,b)}function VU(v){var b=qt(v)?sW:CW;return b(v)}function UU(v){if(v==null)return 0;if(Uo(v))return Y1(v)?df(v):v.length;var b=lo(v);return b==X||b==le?v.size:rA(v).length}function YU(v,b,P){var D=qt(v)?V2:IW;return P&&bo(v,b,P)&&(b=n),D(v,_t(b,3))}var QU=ln(function(v,b){if(v==null)return[];var P=b.length;return P>1&&bo(v,b[0],b[1])?b=[]:P>2&&bo(b[0],b[1],b[2])&&(b=[b[0]]),j8(v,Jr(b,1),[])}),E1=bE||function(){return Gr.Date.now()};function ZU(v,b){if(typeof b!="function")throw new Ei(a);return v=rn(v),function(){if(--v<1)return b.apply(this,arguments)}}function K6(v,b,P){return b=P?n:b,b=v&&b==null?v.length:b,ks(v,T,n,n,n,n,b)}function H6(v,b){var P;if(typeof b!="function")throw new Ei(a);return v=rn(v),function(){return--v>0&&(P=b.apply(this,arguments)),v<=1&&(b=n),P}}var OA=ln(function(v,b,P){var D=A;if(P.length){var te=vl(P,yf(OA));D|=S}return ks(v,D,b,P,te)}),G6=ln(function(v,b,P){var D=A|x;if(P.length){var te=vl(P,yf(G6));D|=S}return ks(b,D,v,P,te)});function J6(v,b,P){b=P?n:b;var D=ks(v,y,n,n,n,n,n,b);return D.placeholder=J6.placeholder,D}function z6(v,b,P){b=P?n:b;var D=ks(v,g,n,n,n,n,n,b);return D.placeholder=z6.placeholder,D}function $6(v,b,P){var D,te,he,Re,Me,Ne,$e=0,je=!1,rt=!1,gt=!0;if(typeof v!="function")throw new Ei(a);b=Qi(b)||0,fr(P)&&(je=!!P.leading,rt="maxWait"in P,he=rt?Xr(Qi(P.maxWait)||0,b):he,gt="trailing"in P?!!P.trailing:gt);function Ot(Sr){var fa=D,Fs=te;return D=te=n,$e=Sr,Re=v.apply(Fs,fa),Re}function Xt(Sr){return $e=Sr,Me=d0(fn,b),je?Ot(Sr):Re}function sn(Sr){var fa=Sr-Ne,Fs=Sr-$e,vS=b-fa;return rt?so(vS,he-Fs):vS}function Et(Sr){var fa=Sr-Ne,Fs=Sr-$e;return Ne===n||fa>=b||fa<0||rt&&Fs>=he}function fn(){var Sr=E1();if(Et(Sr))return Rn(Sr);Me=d0(fn,sn(Sr))}function Rn(Sr){return Me=n,gt&&D?Ot(Sr):(D=te=n,Re)}function fi(){Me!==n&&s6(Me),$e=0,D=Ne=te=Me=n}function So(){return Me===n?Re:Rn(E1())}function di(){var Sr=E1(),fa=Et(Sr);if(D=arguments,te=this,Ne=Sr,fa){if(Me===n)return Xt(Ne);if(rt)return s6(Me),Me=d0(fn,b),Ot(Ne)}return Me===n&&(Me=d0(fn,b)),Re}return di.cancel=fi,di.flush=So,di}var BU=ln(function(v,b){return U8(v,1,b)}),DU=ln(function(v,b,P){return U8(v,Qi(b)||0,P)});function KU(v){return ks(v,L)}function W1(v,b){if(typeof v!="function"||b!=null&&typeof b!="function")throw new Ei(a);var P=function(){var D=arguments,te=b?b.apply(this,D):D[0],he=P.cache;if(he.has(te))return he.get(te);var Re=v.apply(this,D);return P.cache=he.set(te,Re)||he,Re};return P.cache=new(W1.Cache||Os),P}W1.Cache=Os;function V1(v){if(typeof v!="function")throw new Ei(a);return function(){var b=arguments;switch(b.length){case 0:return!v.call(this);case 1:return!v.call(this,b[0]);case 2:return!v.call(this,b[0],b[1]);case 3:return!v.call(this,b[0],b[1],b[2])}return!v.apply(this,b)}}function HU(v){return H6(2,v)}var GU=FW(function(v,b){b=b.length==1&&qt(b[0])?tr(b[0],li(_t())):tr(Jr(b,1),li(_t()));var P=b.length;return ln(function(D){for(var te=-1,he=so(D.length,P);++te=b}),Uc=D8(function(){return arguments}())?D8:function(v){return vr(v)&&Un.call(v,"callee")&&!N8.call(v,"callee")},qt=Ue.isArray,cY=d8?li(d8):gW;function Uo(v){return v!=null&&U1(v.length)&&!Cs(v)}function br(v){return vr(v)&&Uo(v)}function uY(v){return v===!0||v===!1||vr(v)&&xo(v)==ie}var bl=ME||VA,fY=h8?li(h8):AW;function dY(v){return vr(v)&&v.nodeType===1&&!h0(v)}function hY(v){if(v==null)return!0;if(Uo(v)&&(qt(v)||typeof v=="string"||typeof v.splice=="function"||bl(v)||xf(v)||Uc(v)))return!v.length;var b=lo(v);if(b==X||b==le)return!v.size;if(f0(v))return!rA(v).length;for(var P in v)if(Un.call(v,P))return!1;return!0}function pY(v,b){return l0(v,b)}function mY(v,b,P){P=typeof P=="function"?P:n;var D=P?P(v,b):n;return D===n?l0(v,b,n,P):!!D}function kA(v){if(!vr(v))return!1;var b=xo(v);return b==ye||b==Ae||typeof v.message=="string"&&typeof v.name=="string"&&!h0(v)}function vY(v){return typeof v=="number"&&I8(v)}function Cs(v){if(!fr(v))return!1;var b=xo(v);return b==J||b==ae||b==se||b==re}function q6(v){return typeof v=="number"&&v==rn(v)}function U1(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=B}function fr(v){var b=typeof v;return v!=null&&(b=="object"||b=="function")}function vr(v){return v!=null&&typeof v=="object"}var eS=p8?li(p8):yW;function gY(v,b){return v===b||nA(v,b,RA(b))}function AY(v,b,P){return P=typeof P=="function"?P:n,nA(v,b,RA(b),P)}function RY(v){return tS(v)&&v!=+v}function yY(v){if(rV(v))throw new $t(i);return K8(v)}function xY(v){return v===null}function bY(v){return v==null}function tS(v){return typeof v=="number"||vr(v)&&xo(v)==$}function h0(v){if(!vr(v)||xo(v)!=j)return!1;var b=h1(v);if(b===null)return!0;var P=Un.call(b,"constructor")&&b.constructor;return typeof P=="function"&&P instanceof P&&c1.call(P)==AE}var PA=m8?li(m8):xW;function SY(v){return q6(v)&&v>=-B&&v<=B}var nS=v8?li(v8):bW;function Y1(v){return typeof v=="string"||!qt(v)&&vr(v)&&xo(v)==ce}function ui(v){return typeof v=="symbol"||vr(v)&&xo(v)==be}var xf=g8?li(g8):SW;function MY(v){return v===n}function wY(v){return vr(v)&&lo(v)==ge}function LY(v){return vr(v)&&xo(v)==He}var OY=N1(oA),TY=N1(function(v,b){return v<=b});function rS(v){if(!v)return[];if(Uo(v))return Y1(v)?la(v):Vo(v);if(e0&&v[e0])return aE(v[e0]());var b=lo(v),P=b==X?D2:b==le?a1:bf;return P(v)}function Is(v){if(!v)return v===0?v:0;if(v=Qi(v),v===V||v===-V){var b=v<0?-1:1;return b*G}return v===v?v:0}function rn(v){var b=Is(v),P=b%1;return b===b?P?b-P:b:0}function oS(v){return v?Xc(rn(v),0,W):0}function Qi(v){if(typeof v=="number")return v;if(ui(v))return oe;if(fr(v)){var b=typeof v.valueOf=="function"?v.valueOf():v;v=fr(b)?b+"":b}if(typeof v!="string")return v===0?v:+v;v=S8(v);var P=cX.test(v);return P||fX.test(v)?ZX(v.slice(2),P?2:8):lX.test(v)?oe:+v}function iS(v){return Va(v,Yo(v))}function kY(v){return v?Xc(rn(v),-B,B):v===0?v:0}function En(v){return v==null?"":ci(v)}var PY=Af(function(v,b){if(f0(b)||Uo(b)){Va(b,Yr(b),v);return}for(var P in b)Un.call(b,P)&&i0(v,P,b[P])}),aS=Af(function(v,b){Va(b,Yo(b),v)}),Q1=Af(function(v,b,P,D){Va(b,Yo(b),v,D)}),NY=Af(function(v,b,P,D){Va(b,Yr(b),v,D)}),CY=Ps($2);function IY(v,b){var P=gf(v);return b==null?P:W8(P,b)}var FY=ln(function(v,b){v=Kn(v);var P=-1,D=b.length,te=D>2?b[2]:n;for(te&&bo(b[0],b[1],te)&&(D=1);++P1),he}),Va(v,gA(v),P),D&&(P=Vi(P,f|d|h,DW));for(var te=b.length;te--;)cA(P,b[te]);return P});function jY(v,b){return lS(v,V1(_t(b)))}var qY=Ps(function(v,b){return v==null?{}:LW(v,b)});function lS(v,b){if(v==null)return{};var P=tr(gA(v),function(D){return[D]});return b=_t(b),q8(v,P,function(D,te){return b(D,te[0])})}function eQ(v,b,P){b=yl(b,v);var D=-1,te=b.length;for(te||(te=1,v=n);++Db){var D=v;v=b,b=D}if(P||v%1||b%1){var te=F8();return so(v+te*(b-v+QX("1e-"+((te+"").length-1))),b)}return aA(v,b)}var fQ=Rf(function(v,b,P){return b=b.toLowerCase(),v+(P?fS(b):b)});function fS(v){return IA(En(v).toLowerCase())}function dS(v){return v=En(v),v&&v.replace(hX,tE).replace(CX,"")}function dQ(v,b,P){v=En(v),b=ci(b);var D=v.length;P=P===n?D:Xc(rn(P),0,D);var te=P;return P-=b.length,P>=0&&v.slice(P,te)==b}function hQ(v){return v=En(v),v&&sa.test(v)?v.replace(It,nE):v}function pQ(v){return v=En(v),v&&yo.test(v)?v.replace(lf,"\\$&"):v}var mQ=Rf(function(v,b,P){return v+(P?"-":"")+b.toLowerCase()}),vQ=Rf(function(v,b,P){return v+(P?" ":"")+b.toLowerCase()}),gQ=m6("toLowerCase");function AQ(v,b,P){v=En(v),b=rn(b);var D=b?df(v):0;if(!b||D>=b)return v;var te=(b-D)/2;return P1(g1(te),P)+v+P1(v1(te),P)}function RQ(v,b,P){v=En(v),b=rn(b);var D=b?df(v):0;return b&&D>>0,P?(v=En(v),v&&(typeof b=="string"||b!=null&&!PA(b))&&(b=ci(b),!b&&ff(v))?xl(la(v),0,P):v.split(b,P)):[]}var LQ=Rf(function(v,b,P){return v+(P?" ":"")+IA(b)});function OQ(v,b,P){return v=En(v),P=P==null?0:Xc(rn(P),0,v.length),b=ci(b),v.slice(P,P+b.length)==b}function TQ(v,b,P){var D=de.templateSettings;P&&bo(v,b,P)&&(b=n),v=En(v),b=Q1({},b,D,b6);var te=Q1({},b.imports,D.imports,b6),he=Yr(te),Re=B2(te,he),Me,Ne,$e=0,je=b.interpolate||t1,rt="__p += '",gt=K2((b.escape||t1).source+"|"+je.source+"|"+(je===sf?sX:t1).source+"|"+(b.evaluate||t1).source+"|$","g"),Ot="//# sourceURL="+(Un.call(b,"sourceURL")?(b.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++EX+"]")+` +`;v.replace(gt,function(Et,fn,Rn,fi,So,di){return Rn||(Rn=fi),rt+=v.slice($e,di).replace(pX,rE),fn&&(Me=!0,rt+=`' + +__e(`+fn+`) + +'`),So&&(Ne=!0,rt+=`'; +`+So+`; +__p += '`),Rn&&(rt+=`' + +((__t = (`+Rn+`)) == null ? '' : __t) + +'`),$e=di+Et.length,Et}),rt+=`'; +`;var Xt=Un.call(b,"variable")&&b.variable;if(!Xt)rt=`with (obj) { +`+rt+` +} +`;else if(iX.test(Xt))throw new $t(s);rt=(Ne?rt.replace(ot,""):rt).replace(ft,"$1").replace(ht,"$1;"),rt="function("+(Xt||"obj")+`) { +`+(Xt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(Me?", __e = _.escape":"")+(Ne?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+rt+`return __p +}`;var sn=pS(function(){return In(he,Ot+"return "+rt).apply(n,Re)});if(sn.source=rt,kA(sn))throw sn;return sn}function kQ(v){return En(v).toLowerCase()}function PQ(v){return En(v).toUpperCase()}function NQ(v,b,P){if(v=En(v),v&&(P||b===n))return S8(v);if(!v||!(b=ci(b)))return v;var D=la(v),te=la(b),he=M8(D,te),Re=w8(D,te)+1;return xl(D,he,Re).join("")}function CQ(v,b,P){if(v=En(v),v&&(P||b===n))return v.slice(0,O8(v)+1);if(!v||!(b=ci(b)))return v;var D=la(v),te=w8(D,la(b))+1;return xl(D,0,te).join("")}function IQ(v,b,P){if(v=En(v),v&&(P||b===n))return v.replace(Fi,"");if(!v||!(b=ci(b)))return v;var D=la(v),te=M8(D,la(b));return xl(D,te).join("")}function FQ(v,b){var P=k,D=F;if(fr(b)){var te="separator"in b?b.separator:te;P="length"in b?rn(b.length):P,D="omission"in b?ci(b.omission):D}v=En(v);var he=v.length;if(ff(v)){var Re=la(v);he=Re.length}if(P>=he)return v;var Me=P-df(D);if(Me<1)return D;var Ne=Re?xl(Re,0,Me).join(""):v.slice(0,Me);if(te===n)return Ne+D;if(Re&&(Me+=Ne.length-Me),PA(te)){if(v.slice(Me).search(te)){var $e,je=Ne;for(te.global||(te=K2(te.source,En(D5.exec(te))+"g")),te.lastIndex=0;$e=te.exec(je);)var rt=$e.index;Ne=Ne.slice(0,rt===n?Me:rt)}}else if(v.indexOf(ci(te),Me)!=Me){var gt=Ne.lastIndexOf(te);gt>-1&&(Ne=Ne.slice(0,gt))}return Ne+D}function _Q(v){return v=En(v),v&&An.test(v)?v.replace(kt,uE):v}var XQ=Rf(function(v,b,P){return v+(P?" ":"")+b.toUpperCase()}),IA=m6("toUpperCase");function hS(v,b,P){return v=En(v),b=P?n:b,b===n?iE(v)?hE(v):zX(v):v.match(b)||[]}var pS=ln(function(v,b){try{return si(v,n,b)}catch(P){return kA(P)?P:new $t(P)}}),EQ=Ps(function(v,b){return Xi(b,function(P){P=Ua(P),Ts(v,P,OA(v[P],v))}),v});function WQ(v){var b=v==null?0:v.length,P=_t();return v=b?tr(v,function(D){if(typeof D[1]!="function")throw new Ei(a);return[P(D[0]),D[1]]}):[],ln(function(D){for(var te=-1;++teB)return[];var P=W,D=so(v,W);b=_t(b),v-=W;for(var te=Z2(D,b);++P0||b<0)?new mn(P):(v<0?P=P.takeRight(-v):v&&(P=P.drop(v)),b!==n&&(b=rn(b),P=b<0?P.dropRight(-b):P.take(b-v)),P)},mn.prototype.takeRightWhile=function(v){return this.reverse().takeWhile(v).reverse()},mn.prototype.toArray=function(){return this.take(W)},Wa(mn.prototype,function(v,b){var P=/^(?:filter|find|map|reject)|While$/.test(b),D=/^(?:head|last)$/.test(b),te=de[D?"take"+(b=="last"?"Right":""):b],he=D||/^find/.test(b);te&&(de.prototype[b]=function(){var Re=this.__wrapped__,Me=D?[1]:arguments,Ne=Re instanceof mn,$e=Me[0],je=Ne||qt(Re),rt=function(fn){var Rn=te.apply(de,ml([fn],Me));return D&>?Rn[0]:Rn};je&&P&&typeof $e=="function"&&$e.length!=1&&(Ne=je=!1);var gt=this.__chain__,Ot=!!this.__actions__.length,Xt=he&&!gt,sn=Ne&&!Ot;if(!he&&je){Re=sn?Re:new mn(this);var Et=v.apply(Re,Me);return Et.__actions__.push({func:_1,args:[rt],thisArg:n}),new Wi(Et,gt)}return Xt&&sn?v.apply(this,Me):(Et=this.thru(rt),Xt?D?Et.value()[0]:Et.value():Et)})}),Xi(["pop","push","shift","sort","splice","unshift"],function(v){var b=s1[v],P=/^(?:push|sort|unshift)$/.test(v)?"tap":"thru",D=/^(?:pop|shift)$/.test(v);de.prototype[v]=function(){var te=arguments;if(D&&!this.__chain__){var he=this.value();return b.apply(qt(he)?he:[],te)}return this[P](function(Re){return b.apply(qt(Re)?Re:[],te)})}}),Wa(mn.prototype,function(v,b){var P=de[b];if(P){var D=P.name+"";Un.call(vf,D)||(vf[D]=[]),vf[D].push({name:b,func:P})}}),vf[T1(n,x).name]=[{name:"wrapper",func:n}],mn.prototype.clone=_E,mn.prototype.reverse=XE,mn.prototype.value=EE,de.prototype.at=dU,de.prototype.chain=hU,de.prototype.commit=pU,de.prototype.next=mU,de.prototype.plant=gU,de.prototype.reverse=AU,de.prototype.toJSON=de.prototype.valueOf=de.prototype.value=RU,de.prototype.first=de.prototype.head,e0&&(de.prototype[e0]=vU),de},hf=pE();Cc?((Cc.exports=hf)._=hf,_2._=hf):Gr._=hf}).call(Ct)})(Cv,Cv.exports);var Xn=Cv.exports;const EG=[{id:"test-slide-1",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"idn7Mx",left:355,top:65.25,width:585,height:188,lineHeight:1.2,content:"

PPTIST

",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"

基于 Vue 3.x + TypeScript 的在线演示文稿应用

",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"#5b9bd5",style:"solid",width:2}],background:{type:"solid",color:"#ffffff"}},{id:"test-slide-2",elements:[{type:"text",id:"ptNnUJ",left:145,top:148,width:711,height:77,lineHeight:1.2,content:"

在此处添加标题

",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"mRHvQN",left:207.50000000000003,top:249.84259259259264,width:585,height:56,content:"

在此处添加副标题

",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"7CQDwc",left:323.09259259259267,top:238.33333333333334,start:[0,0],end:[354.8148148148148,0],points:["",""],color:"#5b9bd5",style:"solid",width:4},{type:"shape",id:"09wqWw",left:-27.648148148148138,top:432.73148148148147,width:1056.2962962962963,height:162.96296296296296,viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z",fill:"#5b9bd5",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"#fff"}},{id:"test-slide-3",elements:[{type:"shape",id:"vSheCJ",left:183.5185185185185,top:175.5092592592593,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"#5b9bd5",fixedRatio:!1,rotate:0},{type:"shape",id:"Mpwv7x",left:211.29629629629628,top:201.80555555555557,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"#5b9bd5",fixedRatio:!1,rotate:0,opacity:.7},{type:"text",id:"WQOTAp",left:304.9074074074074,top:198.10185185185182,width:417.9629629629629,height:140,content:"

感谢观看

",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",wordSpace:5}],background:{type:"solid",color:"#fff"}}],WG={themeColor:"#5b9bd5",fontColor:"#333",fontName:"Microsoft Yahei",backgroundColor:"#fff",shadow:{h:3,v:3,blur:2,color:"#808080"},outline:{width:2,color:"#525252",style:"solid"}},VG=[{id:"template",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"{{themeColor}}",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"{{themeColor}}",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"AkIh3E",left:355,top:95.11111111111111,width:585,height:116,lineHeight:1.2,content:"

输入标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:6},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"

请在此处输入副标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"{{themeColor}}",style:"solid",width:2}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"ptNnUJ",left:145,top:148,width:711,height:77,lineHeight:1.2,content:"

在此处添加标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"mRHvQN",left:207.50000000000003,top:249.84259259259264,width:585,height:56,content:"

在此处添加副标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"line",id:"7CQDwc",left:323.09259259259267,top:238.33333333333334,start:[0,0],end:[354.8148148148148,0],points:["",""],color:"{{themeColor}}",style:"solid",width:4},{type:"shape",id:"09wqWw",left:-27.648148148148138,top:432.73148148148147,width:1056.2962962962963,height:162.96296296296296,viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"vSheCJ",left:183.5185185185185,top:175.5092592592593,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0},{type:"shape",id:"Mpwv7x",left:211.29629629629628,top:201.80555555555557,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,opacity:.7},{type:"text",id:"WQOTAp",left:304.9074074074074,top:198.10185185185182,width:417.9629629629629,height:140,content:"

感谢观看

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:5}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"MZVO1kkj",elements:[{type:"shape",id:"cql0h8",left:0,top:0,width:352.59259259259255,height:562.5,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0},{type:"shape",id:"_RTaF4",left:171.4814814814814,top:100.13888888888887,width:362.22222222222223,height:362.22222222222223,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"rgba(255,255,255,0)",fixedRatio:!1,rotate:0,outline:{width:10,color:"{{backgroundColor}}",style:"solid"}},{type:"shape",id:"UZfo8N",left:216.66666666666663,top:145.32407407407408,width:271.85185185185185,height:271.85185185185185,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0,text:{content:"

01

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"ysqtBg",left:561.4814814814814,top:100.1388888888889,width:359.25925925925924,height:80,content:"

在此处输入标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"lXsoHa",left:572.5925925925925,top:202.3611111111111,width:257.77777777777777,height:260,content:"
  1. 在此处输入内容

  2. 在此处输入内容

  3. 在此处输入内容

  4. 在此处输入内容

  5. 在此处输入内容

  6. 在此处输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",lineHeight:2,fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"EBBnTr",left:360.5996472663139,top:141.8496472663139,width:278.80070546737215,height:278.80070546737215,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:0,color:"{{backgroundColor}}",style:"solid"}},{type:"shape",id:"gDIWDH",left:456.4373897707231,top:98.287037037037,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"

1

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"DUWT7E",left:317.037037037037,top:237.68738977072314,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"

4

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"pbhn38",left:456.43738977072303,top:377.08774250440916,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"

3

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"CvMKrO",left:595.8377425044091,top:237.6873897707231,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"

2

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"adudHB",left:402.962962962963,top:39.39814814814815,width:194.07407407407408,height:50,content:"

在此输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"9UpDwg",left:402.962962962963,top:473.1018518518518,width:194.07407407407408,height:50,content:"

在此输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"GERdpB",left:111.48148148148151,top:256.25,width:194.07407407407408,height:50,content:"

在此输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"G5qoho",left:691.1111111111111,top:256.25,width:194.07407407407408,height:50,content:"

在此输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"shape",id:"vdZcI6",left:415.18518518518516,top:196.4351851851852,width:169.62962962962962,height:169.62962962962962,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"tYUmrx",left:156.66666666666683,top:149.02777777777771,width:264.4444444444445,height:264.4444444444445,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

01

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"0GVHf8",left:342.2222222222223,top:217.17592592592587,width:128.14814814814812,height:128.14814814814812,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0},{type:"text",id:"BO33Sv",left:378.8888888888889,top:235.24999999999994,width:464.4444444444444,height:92,content:"

在此处添加标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Hj7ttp",left:69.35185185185185,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"

1.请输入标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"FmKMNB",left:69.35185185185185,top:129.28240740740745,width:420,height:384,content:"

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"rI7ZeO",left:510.64814814814815,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"

2.请输入标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"KspwGc",left:510.64814814814815,top:129.28240740740745,width:420,height:384,content:"

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

在此处输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Rx63Jo",left:69.35185185185179,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"

1.请输入标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"ulyuzE",left:69.35185185185179,top:131.78240740740745,width:420,height:129,content:"

在此处输入内容

在此处输入内容

在此处输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"kr35Ca",left:510.6481481481481,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"

2.请输入标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"BNQSpC",left:510.6481481481481,top:131.78240740740745,width:420,height:129,content:"

在此处输入内容

在此处输入内容

在此处输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"Vr38Nu",left:69.35185185185185,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"

3.请输入标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"IwKRSu",left:69.35185185185185,top:381.7824074074074,width:420,height:129,content:"

在此处输入内容

在此处输入内容

在此处输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"0Opr1v",left:510.64814814814815,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"

4.请输入标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"4L9Uzz",left:510.64814814814815,top:381.7824074074074,width:420,height:129,content:"

在此处输入内容

在此处输入内容

在此处输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"GdEGxg",left:134.53703703703704,top:127.25,width:152.77777777777777,height:308,lineHeight:1.8,content:"

请在此处输入标题

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:8,fill:"{{themeColor}}"},{type:"text",id:"y5sAfw",left:332.8703703703704,top:127.25,width:532.5925925925926,height:50,content:"

请在此处输入内容1

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"VeuocM",left:332.8703703703704,top:212.0648148148148,width:532.5925925925926,height:50,content:"

请在此处输入内容2

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"RyFWQe",left:332.8703703703704,top:296.8796296296296,width:532.5925925925926,height:50,content:"

请在此处输入内容3

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"Q56viI",left:332.8703703703704,top:381.69444444444446,width:532.5925925925926,height:50,content:"

请在此处输入内容4

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"SUWirT",left:73.8888888888889,top:64.21296296296302,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

1

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"YjzN1M",left:148.70370370370372,top:64.21296296296302,width:323.7037037037037,height:120,content:"

在此输入内容

在此输入内容

在此输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"fS09I7",left:527.5925925925926,top:64.21296296296302,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

2

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"qCnfB1",left:602.4074074074074,top:64.21296296296302,width:323.7037037037037,height:120,content:"

在此输入内容

在此输入内容

在此输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"difAAT",left:73.8888888888889,top:221.25000000000003,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

3

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"EUlvMo",left:148.70370370370372,top:221.25000000000003,width:323.7037037037037,height:120,content:"

在此输入内容

在此输入内容

在此输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"US_9jB",left:527.5925925925926,top:221.25000000000003,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

4

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"243MnQ",left:602.4074074074074,top:221.25000000000003,width:323.7037037037037,height:120,content:"

在此输入内容

在此输入内容

在此输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"Y_KUj0",left:73.8888888888889,top:378.287037037037,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

5

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"9GglMe",left:148.70370370370372,top:378.287037037037,width:323.7037037037037,height:120,content:"

在此输入内容

在此输入内容

在此输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"eSInje",left:527.5925925925926,top:378.287037037037,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

6

",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"0S3yUg",left:602.4074074074074,top:378.287037037037,width:323.7037037037037,height:120,content:"

在此输入内容

在此输入内容

在此输入内容

",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}}],ut=bp("slides",{state:()=>({title:"未命名演示文稿",theme:WG,slides:EG,slideIndex:0,viewportRatio:.5625}),getters:{currentSlide(e){return e.slides[e.slideIndex]},currentSlideAnimations(e){const t=e.slides[e.slideIndex];if(!(t!=null&&t.animations))return[];const r=t.elements.map(o=>o.id);return t.animations.filter(o=>r.includes(o.elId))},formatedAnimations(e){const t=e.slides[e.slideIndex];if(!(t!=null&&t.animations))return[];const r=t.elements.map(a=>a.id),o=t.animations.filter(a=>r.includes(a.elId)),i=[];for(const a of o)if(a.trigger==="click"||!i.length)i.push({animations:[a],autoNext:!1});else if(a.trigger==="meantime"){const s=i[i.length-1];s.animations=s.animations.filter(c=>c.elId!==a.elId),s.animations.push(a),i[i.length-1]=s}else if(a.trigger==="auto"){const s=i[i.length-1];s.autoNext=!0,i[i.length-1]=s,i.push({animations:[a],autoNext:!1})}return i},layouts(e){const{themeColor:t,fontColor:n,fontName:r,backgroundColor:o}=e.theme,i=it(n).isDark()?"rgba(230, 230, 230, 0.5)":"rgba(180, 180, 180, 0.5)",a=JSON.stringify(VG).replace(/{{themeColor}}/g,t).replace(/{{fontColor}}/g,n).replace(/{{fontName}}/g,r).replace(/{{backgroundColor}}/g,o).replace(/{{subColor}}/g,i);return JSON.parse(a)}},actions:{setTitle(e){e?this.title=e:this.title="未命名演示文稿"},setTheme(e){this.theme={...this.theme,...e}},setViewportRatio(e){this.viewportRatio=e},setSlides(e){this.slides=e},addSlide(e){const t=Array.isArray(e)?e:[e],n=this.slideIndex+1;this.slides.splice(n,0,...t),this.slideIndex=n},updateSlide(e){const t=this.slideIndex;this.slides[t]={...this.slides[t],...e}},deleteSlide(e){const t=Array.isArray(e)?e:[e],n=[];for(let i=0;is.id===t[i]);n.push(a)}let r=Math.min(...n);const o=this.slides.length-t.length-1;r>o&&(r=o),this.slideIndex=r,this.slides=this.slides.filter(i=>!t.includes(i.id))},updateSlideIndex(e){this.slideIndex=e},addElement(e){const t=Array.isArray(e)?e:[e],r=[...this.slides[this.slideIndex].elements,...t];this.slides[this.slideIndex].elements=r},deleteElement(e){const t=Array.isArray(e)?e:[e],r=this.slides[this.slideIndex].elements.filter(o=>!t.includes(o.id));this.slides[this.slideIndex].elements=r},updateElement(e){const{id:t,props:n,slideId:r}=e,o=typeof t=="string"?[t]:t,i=r?this.slides.findIndex(c=>c.id===r):this.slideIndex,s=this.slides[i].elements.map(c=>o.includes(c.id)?{...c,...n}:c);this.slides[i].elements=s},removeElementProps(e){const{id:t,propName:n}=e,r=typeof n=="string"?[n]:n,o=this.slideIndex,a=this.slides[o].elements.map(s=>s.id===t?Xn.omit(s,r):s);this.slides[o].elements=a}}}),UG=DK("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"),oN=UG(10),dt=bp("main",{state:()=>({activeElementIdList:[],handleElementId:"",activeGroupElementId:"",hiddenElementIdList:[],canvasPercentage:90,canvasScale:1,canvasDragged:!1,thumbnailsFocus:!1,editorAreaFocus:!1,disableHotkeys:!1,gridLineSize:0,showRuler:!1,creatingElement:null,creatingCustomShape:!1,availableFonts:MM,toolbarState:Mr.SLIDE_DESIGN,clipingImageElementId:"",richTextAttrs:fG,selectedTableCells:[],isScaling:!1,selectedSlidesIndex:[],dialogForExport:"",databaseId:oN,textFormatPainter:null,shapeFormatPainter:null,showSelectPanel:!1,showSearchPanel:!1}),getters:{activeElementList(e){const n=ut().currentSlide;return!n||!n.elements?[]:n.elements.filter(r=>e.activeElementIdList.includes(r.id))},handleElement(e){const n=ut().currentSlide;return!n||!n.elements?null:n.elements.find(r=>e.handleElementId===r.id)||null}},actions:{setActiveElementIdList(e){e.length===1?this.handleElementId=e[0]:this.handleElementId="",this.activeElementIdList=e},setHandleElementId(e){this.handleElementId=e},setActiveGroupElementId(e){this.activeGroupElementId=e},setHiddenElementIdList(e){this.hiddenElementIdList=e},setCanvasPercentage(e){this.canvasPercentage=e},setCanvasScale(e){this.canvasScale=e},setCanvasDragged(e){this.canvasDragged=e},setThumbnailsFocus(e){this.thumbnailsFocus=e},setEditorareaFocus(e){this.editorAreaFocus=e},setDisableHotkeysState(e){this.disableHotkeys=e},setGridLineSize(e){this.gridLineSize=e},setRulerState(e){this.showRuler=e},setCreatingElement(e){this.creatingElement=e},setCreatingCustomShapeState(e){this.creatingCustomShape=e},setAvailableFonts(){this.availableFonts=MM.filter(e=>dG(e.value))},setToolbarState(e){this.toolbarState=e},setClipingImageElementId(e){this.clipingImageElementId=e},setRichtextAttrs(e){this.richTextAttrs=e},setSelectedTableCells(e){this.selectedTableCells=e},setScalingState(e){this.isScaling=e},updateSelectedSlidesIndex(e){this.selectedSlidesIndex=e},setDialogForExport(e){this.dialogForExport=e},setTextFormatPainter(e){this.textFormatPainter=e},setShapeFormatPainter(e){this.shapeFormatPainter=e},setSelectPanelState(e){this.showSelectPanel=e},setSearchPanelState(e){this.showSearchPanel=e}}});var zn=function(){return zn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0)t=e;else{t=e.constructor?Object.create(e.constructor.prototype):{};for(var o in e)ta(e,o)&&(t[o]=$h(e[o]))}return t}var GG={}.toString;function K4(e){return GG.call(e).slice(8,-1)}var H4=function(e,t){return t==="Array"?""+e.map(function(n){return H4(n,K4(n))}):t==="ArrayBuffer"?""+new Uint8Array(e):t==="Date"?e.getTime():ArrayBuffer.isView(e)?""+new Uint8Array(e.buffer):e};function hb(e,t,n,r){return n=n||{},r=r||"",io(e).forEach(function(o){if(!ta(t,o))n[r+o]=void 0;else{var i=e[o],a=t[o];if(typeof i=="object"&&typeof a=="object"&&i&&a){var s=K4(i),c=K4(a);s===c?HG[s]?H4(i,s)!==H4(a,c)&&(n[r+o]=t[o]):hb(i,a,n,r+o+"."):n[r+o]=t[o]}else i!==a&&(n[r+o]=t[o])}}),io(t).forEach(function(o){ta(e,o)||(n[r+o]=t[o])}),n}var NM=typeof Symbol<"u"&&Symbol.iterator,JG=NM?function(e){var t;return e!=null&&(t=e[NM])&&t.apply(e)}:function(){return null},Wf={};function Gs(e){var t,n,r,o;if(arguments.length===1){if(Io(e))return e.slice();if(this===Wf&&typeof e=="string")return[e];if(o=JG(e)){for(n=[];r=o.next(),!r.done;)n.push(r.value);return n}if(e==null)return[e];if(t=e.length,typeof t=="number"){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var pN=typeof Symbol<"u"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Ss=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function mN(e,t){Ss=e,vN=t}var vN=function(){return!0},zG=!new Error("").stack;function Dd(){if(zG)try{throw new Error}catch(e){return e}return new Error}function G4(e,t){var n=e.stack;return n?(t=t||0,n.indexOf(e.name)===0&&(t+=(e.name+e.message).split(` +`).length),n.split(` +`).slice(t).filter(vN).map(function(r){return` +`+r}).join("")):""}var $G=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],gN=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],pb=$G.concat(gN),jG={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed"};function Kd(e,t){this._e=Dd(),this.name=e,this.message=t}Bd(Kd).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+G4(this._e,2))}},toString:function(){return this.name+": "+this.message}});function AN(e,t){return e+". Errors: "+Object.keys(t).map(function(n){return t[n].toString()}).filter(function(n,r,o){return o.indexOf(n)===r}).join(` +`)}function Iv(e,t,n,r){this._e=Dd(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=AN(e,t)}Bd(Iv).from(Kd);function mh(e,t){this._e=Dd(),this.name="BulkError",this.failures=t,this.message=AN(e,t)}Bd(mh).from(Kd);var qG=pb.reduce(function(e,t){return e[t]=t+"Error",e},{}),eJ=Kd,zt=pb.reduce(function(e,t){var n=t+"Error";function r(o,i){this._e=Dd(),this.name=n,o?typeof o=="string"?(this.message=""+o+(i?` + `+i:""),this.inner=i||null):typeof o=="object"&&(this.message=o.name+" "+o.message,this.inner=o):(this.message=jG[t]||n,this.inner=null)}return Bd(r).from(eJ),e[t]=r,e},{});zt.Syntax=SyntaxError;zt.Type=TypeError;zt.Range=RangeError;var CM=gN.reduce(function(e,t){return e[t+"Error"]=zt[t],e},{});function tJ(e,t){if(!e||e instanceof Kd||e instanceof TypeError||e instanceof SyntaxError||!e.name||!CM[e.name])return e;var n=new CM[e.name](t||e.message,e);return"stack"in e&&sl(n,"stack",{get:function(){return this.inner.stack}}),n}var Zg=pb.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=zt[t]),e},{});Zg.ModifyError=Iv;Zg.DexieError=Kd;Zg.BulkError=mh;function $n(){}function wp(e){return e}function nJ(e,t){return e==null||e===wp?t:function(n){return t(e(n))}}function Iu(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function rJ(e,t){return e===$n?t:function(){var n=e.apply(this,arguments);n!==void 0&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?Iu(r,this.onsuccess):r),o&&(this.onerror=this.onerror?Iu(o,this.onerror):o),i!==void 0?i:n}}function oJ(e,t){return e===$n?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?Iu(n,this.onsuccess):n),r&&(this.onerror=this.onerror?Iu(r,this.onerror):r)}}function iJ(e,t){return e===$n?t:function(n){var r=e.apply(this,arguments);ea(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?Iu(o,this.onsuccess):o),i&&(this.onerror=this.onerror?Iu(i,this.onerror):i),r===void 0?a===void 0?void 0:a:ea(r,a)}}function aJ(e,t){return e===$n?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function RN(e,t){return e===$n?t:function(){var n=e.apply(this,arguments);if(n&&typeof n.then=="function"){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then(function(){return t.apply(r,i)})}return t.apply(this,arguments)}}var jh={},sJ=100,lJ=20,yN=100,mb=typeof Promise>"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,e.__proto__,e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,t.__proto__,e]}(),J4=mb[0],Fv=mb[1],z4=mb[2],xN=Fv&&Fv.then,Wm=J4&&J4.constructor,vb=!!z4,$4=!1,cJ=z4?function(){z4.then(rm)}:er.setImmediate?setImmediate.bind(null,rm):er.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){rm(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(rm,0)},qh=function(e,t){W0.push([e,t]),_v&&(cJ(),_v=!1)},j4=!0,_v=!0,Au=[],Vm=[],q4=null,e3=wp,hd={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:_M,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{_M(e[0],e[1])}catch{}})}},Wt=hd,W0=[],Ru=0,Um=[];function Mt(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=$n,this._lib=!1;var t=this._PSD=Wt;if(Ss&&(this._stackHolder=Dd(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==jh)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&n3(this,this._value);return}this._state=null,this._value=null,++t.ref,SN(this,e)}var t3={get:function(){var e=Wt,t=Xv;function n(r,o){var i=this,a=!e.global&&(e!==Wt||t!==Xv),s=a&&!_u(),c=new Mt(function(l,u){gb(i,new bN(Wv(r,e,a,s),Wv(o,e,a,s),l,u,e))});return Ss&&LN(c,this),c}return n.prototype=jh,n},set:function(e){sl(this,"then",e&&e.prototype===jh?t3:{get:function(){return e},set:t3.set})}};zh(Mt.prototype,{then:t3,_then:function(e,t){gb(this,new bN(null,null,e,t,Wt))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],n=arguments[1];return typeof t=="function"?this.then(null,function(r){return r instanceof t?n(r):Ym(r)}):this.then(null,function(r){return r&&r.name===t?n(r):Ym(r)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),Ym(t)})},stack:{get:function(){if(this._stack)return this._stack;try{$4=!0;var e=wN(this,[],lJ),t=e.join(` +From previous: `);return this._state!==null&&(this._stack=t),t}finally{$4=!1}}},timeout:function(e,t){var n=this;return e<1/0?new Mt(function(r,o){var i=setTimeout(function(){return o(new zt.Timeout(t))},e);n.then(r,o).finally(clearTimeout.bind(null,i))}):this}});typeof Symbol<"u"&&Symbol.toStringTag&&sl(Mt.prototype,Symbol.toStringTag,"Dexie.Promise");hd.env=ON();function bN(e,t,n,r,o){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=n,this.reject=r,this.psd=o}zh(Mt,{all:function(){var e=Gs.apply(null,arguments).map(Ev);return new Mt(function(t,n){e.length===0&&t([]);var r=e.length;e.forEach(function(o,i){return Mt.resolve(o).then(function(a){e[i]=a,--r||t(e)},n)})})},resolve:function(e){if(e instanceof Mt)return e;if(e&&typeof e.then=="function")return new Mt(function(n,r){e.then(n,r)});var t=new Mt(jh,!0,e);return LN(t,q4),t},reject:Ym,race:function(){var e=Gs.apply(null,arguments).map(Ev);return new Mt(function(t,n){e.map(function(r){return Mt.resolve(r).then(t,n)})})},PSD:{get:function(){return Wt},set:function(e){return Wt=e}},totalEchoes:{get:function(){return Xv}},newPSD:Fu,usePSD:kp,scheduler:{get:function(){return qh},set:function(e){qh=e}},rejectionMapper:{get:function(){return e3},set:function(e){e3=e}},follow:function(e,t){return new Mt(function(n,r){return Fu(function(o,i){var a=Wt;a.unhandleds=[],a.onunhandled=i,a.finalize=Iu(function(){var s=this;fJ(function(){s.unhandleds.length===0?o():i(s.unhandleds[0])})},a.finalize),e()},t,n,r)})}});Wm&&(Wm.allSettled&&sl(Mt,"allSettled",function(){var e=Gs.apply(null,arguments).map(Ev);return new Mt(function(t){e.length===0&&t([]);var n=e.length,r=new Array(n);e.forEach(function(o,i){return Mt.resolve(o).then(function(a){return r[i]={status:"fulfilled",value:a}},function(a){return r[i]={status:"rejected",reason:a}}).then(function(){return--n||t(r)})})})}),Wm.any&&typeof AggregateError<"u"&&sl(Mt,"any",function(){var e=Gs.apply(null,arguments).map(Ev);return new Mt(function(t,n){e.length===0&&n(new AggregateError([]));var r=e.length,o=new Array(r);e.forEach(function(i,a){return Mt.resolve(i).then(function(s){return t(s)},function(s){o[a]=s,--r||n(new AggregateError(o))})})})}));function SN(e,t){try{t(function(n){if(e._state===null){if(n===e)throw new TypeError("A promise cannot be resolved with itself.");var r=e._lib&&Lp();n&&typeof n.then=="function"?SN(e,function(o,i){n instanceof Mt?n._then(o,i):n.then(o,i)}):(e._state=!0,e._value=n,MN(e)),r&&Op()}},n3.bind(null,e))}catch(n){n3(e,n)}}function n3(e,t){if(Vm.push(t),e._state===null){var n=e._lib&&Lp();t=e3(t),e._state=!1,e._value=t,Ss&&t!==null&&typeof t=="object"&&!t._promise&&BG(function(){var r=db(t,"stack");t._promise=e,sl(t,"stack",{get:function(){return $4?r&&(r.get?r.get.apply(t):r.value):e.stack}})}),dJ(e),MN(e),n&&Op()}}function MN(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n0;)for(e=W0,W0=[],n=e.length,t=0;t0);j4=!0,_v=!0}function Ab(){var e=Au;Au=[],e.forEach(function(r){r._PSD.onunhandled.call(null,r._value,r)});for(var t=Um.slice(0),n=t.length;n;)t[--n]()}function fJ(e){function t(){e(),Um.splice(Um.indexOf(t),1)}Um.push(t),++Ru,qh(function(){--Ru===0&&Ab()},[])}function dJ(e){Au.some(function(t){return t._value===e._value})||Au.push(e)}function hJ(e){for(var t=Au.length;t;)if(Au[--t]._value===e._value){Au.splice(t,1);return}}function Ym(e){return new Mt(jh,!1,e)}function pr(e,t){var n=Wt;return function(){var r=Lp(),o=Wt;try{return Rc(n,!0),e.apply(this,arguments)}catch(i){t&&t(i)}finally{Rc(o,!1),r&&Op()}}}var po={awaits:0,echoes:0,id:0},pJ=0,Qm=[],lR=0,Xv=0,mJ=0;function Fu(e,t,n,r){var o=Wt,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++mJ;var a=hd.env;i.env=vb?{Promise:Mt,PromiseProp:{value:Mt,configurable:!0,writable:!0},all:Mt.all,race:Mt.race,allSettled:Mt.allSettled,any:Mt.any,resolve:Mt.resolve,reject:Mt.reject,nthen:IM(a.nthen,i),gthen:IM(a.gthen,i)}:{},t&&ea(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=kp(i,e,n,r);return i.ref===0&&i.finalize(),s}function Tp(){return po.id||(po.id=++pJ),++po.awaits,po.echoes+=yN,po.id}function _u(){return po.awaits?(--po.awaits===0&&(po.id=0),po.echoes=po.awaits*yN,!0):!1}(""+xN).indexOf("[native code]")===-1&&(Tp=_u=$n);function Ev(e){return po.echoes&&e&&e.constructor===Wm?(Tp(),e.then(function(t){return _u(),t},function(t){return _u(),Ao(t)})):e}function vJ(e){++Xv,(!po.echoes||--po.echoes===0)&&(po.echoes=po.id=0),Qm.push(Wt),Rc(e,!0)}function gJ(){var e=Qm[Qm.length-1];Qm.pop(),Rc(e,!1)}function Rc(e,t){var n=Wt;if((t?po.echoes&&(!lR++||e!==Wt):lR&&(!--lR||e!==Wt))&&TN(t?vJ.bind(null,e):gJ),e!==Wt&&(Wt=e,n===hd&&(hd.env=ON()),vb)){var r=hd.env.Promise,o=e.env;Fv.then=o.nthen,r.prototype.then=o.gthen,(n.global||e.global)&&(Object.defineProperty(er,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject,o.allSettled&&(r.allSettled=o.allSettled),o.any&&(r.any=o.any))}}function ON(){var e=er.Promise;return vb?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(er,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Fv.then,gthen:e.prototype.then}:{}}function kp(e,t,n,r,o){var i=Wt;try{return Rc(e,!0),t(n,r,o)}finally{Rc(i,!1)}}function TN(e){xN.call(J4,e)}function Wv(e,t,n,r){return typeof e!="function"?e:function(){var o=Wt;n&&Tp(),Rc(t,!0);try{return e.apply(this,arguments)}finally{Rc(o,!1),r&&TN(_u)}}}function IM(e,t){return function(n,r){return e.call(this,Wv(n,t),Wv(r,t))}}var FM="unhandledrejection";function _M(e,t){var n;try{n=t.onuncatched(e)}catch{}if(n!==!1)try{var r,o={promise:t,reason:e};if(er.document&&document.createEvent?(r=document.createEvent("Event"),r.initEvent(FM,!0,!0),ea(r,o)):er.CustomEvent&&(r=new CustomEvent(FM,{detail:o}),ea(r,o)),r&&er.dispatchEvent&&(dispatchEvent(r),!er.PromiseRejectionEvent&&er.onunhandledrejection))try{er.onunhandledrejection(r)}catch{}Ss&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch{}}var Ao=Mt.reject;function kN(e,t,n,r){if(!e._state.openComplete&&!Wt.letThrough){if(!e._state.isBeingOpened){if(!e._options.autoOpen)return Ao(new zt.DatabaseClosed);e.open().catch($n)}return e._state.dbReadyPromise.then(function(){return kN(e,t,n,r)})}else{var o=e._createTransaction(t,n,e._dbSchema);try{o.create()}catch(i){return Ao(i)}return o._promise(t,function(i,a){return Fu(function(){return Wt.trans=o,r(i,a,o)})}).then(function(i){return o._completion.then(function(){return i})})}}var XM="3.0.3",Jf="￿",r3=-1/0,Xs="Invalid key provided. Keys must be of type string, number, Date or Array.",PN="String expected.",vh=[],Rb=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),AJ=Rb,RJ=Rb,NN=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},om="__dbnames",cR="readonly",uR="readwrite";function Xu(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var CN={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function im(e){return function(t){return fs(t,e)===void 0&&(t=$h(t),uN(t,e)),t}}var yJ=function(){function e(){}return e.prototype._trans=function(t,n,r){var o=this._tx||Wt.trans,i=this.name;function a(c,l,u){if(!u.schema[i])throw new zt.NotFound("Table "+i+" not part of transaction");return n(u.idbtrans,u)}var s=Lp();try{return o&&o.db===this.db?o===Wt.trans?o._promise(t,a,r):Fu(function(){return o._promise(t,a,r)},{trans:o,transless:Wt.transless||Wt}):kN(this.db,t,[this.name],a)}finally{s&&Op()}},e.prototype.get=function(t,n){var r=this;return t&&t.constructor===Object?this.where(t).first(n):this._trans("readonly",function(o){return r.core.get({trans:o,key:t}).then(function(i){return r.hook.reading.fire(i)})}).then(n)},e.prototype.where=function(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(Io(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var n=io(t);if(n.length===1)return this.where(n[0]).equals(t[n[0]]);var r=this.schema.indexes.concat(this.schema.primKey).filter(function(u){return u.compound&&n.every(function(f){return u.keyPath.indexOf(f)>=0})&&u.keyPath.every(function(f){return n.indexOf(f)>=0})})[0];if(r&&this.db._maxKey!==Jf)return this.where(r.name).equals(r.keyPath.map(function(u){return t[u]}));!r&&Ss&&console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a "+("compound index ["+n.join("+")+"]"));var o=this.schema.idxByName,i=this.db._deps.indexedDB;function a(u,f){try{return i.cmp(u,f)===0}catch{return!1}}var s=n.reduce(function(u,f){var d=u[0],h=u[1],p=o[f],m=t[f];return[d||p,d||!p?Xu(h,p&&p.multi?function(A){var x=fs(A,f);return Io(x)&&x.some(function(R){return a(m,R)})}:function(A){return a(m,fs(A,f))}):h]},[null,null]),c=s[0],l=s[1];return c?this.where(c.name).equals(t[c.keyPath]).filter(l):r?this.filter(l):this.where(n).equals("")},e.prototype.filter=function(t){return this.toCollection().and(t)},e.prototype.count=function(t){return this.toCollection().count(t)},e.prototype.offset=function(t){return this.toCollection().offset(t)},e.prototype.limit=function(t){return this.toCollection().limit(t)},e.prototype.each=function(t){return this.toCollection().each(t)},e.prototype.toArray=function(t){return this.toCollection().toArray(t)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(t){return new this.db.Collection(new this.db.WhereClause(this,Io(t)?"["+t.join("+")+"]":t))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(t){this.schema.mappedClass=t;var n=function(r){if(!r)return r;var o=Object.create(t.prototype);for(var i in r)if(ta(r,i))try{o[i]=r[i]}catch{}return o};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=n,this.hook("reading",n),t},e.prototype.defineClass=function(){function t(n){ea(this,n)}return this.mapToClass(t)},e.prototype.add=function(t,n){var r=this,o=this.schema.primKey,i=o.auto,a=o.keyPath,s=t;return a&&i&&(s=im(a)(t)),this._trans("readwrite",function(c){return r.core.mutate({trans:c,type:"add",keys:n!=null?[n]:null,values:[s]})}).then(function(c){return c.numFailures?Mt.reject(c.failures[0]):c.lastResult}).then(function(c){if(a)try{Ca(t,a,c)}catch{}return c})},e.prototype.update=function(t,n){if(typeof n!="object"||Io(n))throw new zt.InvalidArgument("Modifications must be an object.");if(typeof t=="object"&&!Io(t)){io(n).forEach(function(o){Ca(t,o,n[o])});var r=fs(t,this.schema.primKey.keyPath);return r===void 0?Ao(new zt.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(r).modify(n)}else return this.where(":id").equals(t).modify(n)},e.prototype.put=function(t,n){var r=this,o=this.schema.primKey,i=o.auto,a=o.keyPath,s=t;return a&&i&&(s=im(a)(t)),this._trans("readwrite",function(c){return r.core.mutate({trans:c,type:"put",values:[s],keys:n!=null?[n]:null})}).then(function(c){return c.numFailures?Mt.reject(c.failures[0]):c.lastResult}).then(function(c){if(a)try{Ca(t,a,c)}catch{}return c})},e.prototype.delete=function(t){var n=this;return this._trans("readwrite",function(r){return n.core.mutate({trans:r,type:"delete",keys:[t]})}).then(function(r){return r.numFailures?Mt.reject(r.failures[0]):void 0})},e.prototype.clear=function(){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"deleteRange",range:CN})}).then(function(n){return n.numFailures?Mt.reject(n.failures[0]):void 0})},e.prototype.bulkGet=function(t){var n=this;return this._trans("readonly",function(r){return n.core.getMany({keys:t,trans:r}).then(function(o){return o.map(function(i){return n.hook.reading.fire(i)})})})},e.prototype.bulkAdd=function(t,n,r){var o=this,i=Array.isArray(n)?n:void 0;r=r||(i?void 0:n);var a=r?r.allKeys:void 0;return this._trans("readwrite",function(s){var c=o.schema.primKey,l=c.auto,u=c.keyPath;if(u&&i)throw new zt.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new zt.InvalidArgument("Arguments objects and keys must have the same length");var f=t.length,d=u&&l?t.map(im(u)):t;return o.core.mutate({trans:s,type:"add",keys:i,values:d,wantResults:a}).then(function(h){var p=h.numFailures,m=h.results,A=h.lastResult,x=h.failures,R=a?m:A;if(p===0)return R;throw new mh(o.name+".bulkAdd(): "+p+" of "+f+" operations failed",Object.keys(x).map(function(y){return x[y]}))})})},e.prototype.bulkPut=function(t,n,r){var o=this,i=Array.isArray(n)?n:void 0;r=r||(i?void 0:n);var a=r?r.allKeys:void 0;return this._trans("readwrite",function(s){var c=o.schema.primKey,l=c.auto,u=c.keyPath;if(u&&i)throw new zt.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(i&&i.length!==t.length)throw new zt.InvalidArgument("Arguments objects and keys must have the same length");var f=t.length,d=u&&l?t.map(im(u)):t;return o.core.mutate({trans:s,type:"put",keys:i,values:d,wantResults:a}).then(function(h){var p=h.numFailures,m=h.results,A=h.lastResult,x=h.failures,R=a?m:A;if(p===0)return R;throw new mh(o.name+".bulkPut(): "+p+" of "+f+" operations failed",Object.keys(x).map(function(y){return x[y]}))})})},e.prototype.bulkDelete=function(t){var n=this,r=t.length;return this._trans("readwrite",function(o){return n.core.mutate({trans:o,type:"delete",keys:t})}).then(function(o){var i=o.numFailures,a=o.lastResult,s=o.failures;if(i===0)return a;throw new mh(n.name+".bulkDelete(): "+i+" of "+r+" operations failed",s)})},e}();function Bg(e){var t={},n=function(s,c){if(c){for(var l=arguments.length,u=new Array(l-1);--l;)u[l-1]=arguments[l];return t[s].subscribe.apply(null,u),e}else if(typeof s=="string")return t[s]};n.addEventType=i;for(var r=1,o=arguments.length;rd?s:0}return this.toArray(function(l){return l.sort(c)}).then(n)},e.prototype.toArray=function(t){var n=this;return this._read(function(r){var o=n._ctx;if(o.dir==="next"&&v0(o,!0)&&o.limit>0){var i=o.valueMapper,a=Zm(o,o.table.core.schema);return o.table.core.query({trans:r,limit:o.limit,values:!0,query:{index:a,range:o.range}}).then(function(c){var l=c.result;return i?l.map(i):l})}else{var s=[];return am(o,function(c){return s.push(c)},r,o.table.core).then(function(){return s})}},t)},e.prototype.offset=function(t){var n=this._ctx;return t<=0?this:(n.offset+=t,v0(n)?dR(n,function(){var r=t;return function(o,i){return r===0?!0:r===1?(--r,!1):(i(function(){o.advance(r),r=0}),!1)}}):dR(n,function(){var r=t;return function(){return--r<0}}),this)},e.prototype.limit=function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),dR(this._ctx,function(){var n=t;return function(r,o,i){return--n<=0&&o(i),n>=0}},!0),this},e.prototype.until=function(t,n){return fR(this._ctx,function(r,o,i){return t(r.value)?(o(i),n):!0}),this},e.prototype.first=function(t){return this.limit(1).toArray(function(n){return n[0]}).then(t)},e.prototype.last=function(t){return this.reverse().first(t)},e.prototype.filter=function(t){return fR(this._ctx,function(n){return t(n.value)}),bJ(this._ctx,t),this},e.prototype.and=function(t){return this.filter(t)},e.prototype.or=function(t){return new this.db.WhereClause(this._ctx.table,t,this)},e.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(t){var n=this._ctx;return n.keysOnly=!n.isMatch,this.each(function(r,o){t(o.key,o)})},e.prototype.eachUniqueKey=function(t){return this._ctx.unique="unique",this.eachKey(t)},e.prototype.eachPrimaryKey=function(t){var n=this._ctx;return n.keysOnly=!n.isMatch,this.each(function(r,o){t(o.primaryKey,o)})},e.prototype.keys=function(t){var n=this._ctx;n.keysOnly=!n.isMatch;var r=[];return this.each(function(o,i){r.push(i.key)}).then(function(){return r}).then(t)},e.prototype.primaryKeys=function(t){var n=this._ctx;if(n.dir==="next"&&v0(n,!0)&&n.limit>0)return this._read(function(o){var i=Zm(n,n.table.core.schema);return n.table.core.query({trans:o,values:!1,limit:n.limit,query:{index:i,range:n.range}})}).then(function(o){var i=o.result;return i}).then(t);n.keysOnly=!n.isMatch;var r=[];return this.each(function(o,i){r.push(i.primaryKey)}).then(function(){return r}).then(t)},e.prototype.uniqueKeys=function(t){return this._ctx.unique="unique",this.keys(t)},e.prototype.firstKey=function(t){return this.limit(1).keys(function(n){return n[0]}).then(t)},e.prototype.lastKey=function(t){return this.reverse().firstKey(t)},e.prototype.distinct=function(){var t=this._ctx,n=t.index&&t.table.schema.idxByName[t.index];if(!n||!n.multi)return this;var r={};return fR(this._ctx,function(o){var i=o.primaryKey.toString(),a=ta(r,i);return r[i]=!0,!a}),this},e.prototype.modify=function(t){var n=this,r=this._ctx;return this._write(function(o){var i;if(typeof t=="function")i=t;else{var a=io(t),s=a.length;i=function(R){for(var y=!1,g=0;g0&&c.mutate({trans:o,type:"add",values:T}).then(function(C){for(var _ in C.failures)k.splice(parseInt(_),1);x(T.length,C)})).then(function(C){return M.length>0&&c.mutate({trans:o,type:"put",keys:L,values:M}).then(function(_){return x(M.length,_)})}).then(function(){return k.length>0&&c.mutate({trans:o,type:"delete",keys:k}).then(function(C){return x(k.length,C)})}).then(function(){return R.length>g+S&&y(g+d)})})};return y(0).then(function(){if(p.length>0)throw new Iv("Error modifying one or more objects",p,m,A);return R.length})})})},e.prototype.delete=function(){var t=this._ctx,n=t.range;return v0(t)&&(t.isPrimKey&&!RJ||n.type===3)?this._write(function(r){var o=t.table.core.schema.primaryKey,i=n;return t.table.core.count({trans:r,query:{index:o,range:i}}).then(function(a){return t.table.core.mutate({trans:r,type:"deleteRange",range:i}).then(function(s){var c=s.failures;s.lastResult,s.results;var l=s.numFailures;if(l)throw new Iv("Could not delete some values",Object.keys(c).map(function(u){return c[u]}),a-l);return a-l})})}):this.modify(function(r,o){return o.value=null})},e}();function MJ(e){return Pp(SJ.prototype,function(n,r){this.db=e;var o=CN,i=null;if(r)try{o=r()}catch(l){i=l}var a=n._ctx,s=a.table,c=s.hook.reading.fire;this._ctx={table:s,index:a.index,isPrimKey:!a.index||s.schema.primKey.keyPath&&a.index===s.schema.primKey.name,range:o,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:a.or,valueMapper:c!==wp?c:null}})}function wJ(e,t){return et?-1:e===t?0:1}function mi(e,t,n){var r=e instanceof FN?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Mf(e){return new e.Collection(e,function(){return IN("")}).limit(0)}function OJ(e){return e==="next"?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function TJ(e){return e==="next"?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function kJ(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),s=-1,c=0;c=0?e.substr(0,s)+t[s]+n.substr(s+1):null;o(e[c],l)<0&&(s=c)}return a0)&&(g=O)}return A(g!==null?function(){m.continue(g+u)}:x),!1}),h}function Il(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function IN(e){return{type:1,lower:e,upper:e}}var FN=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!0,configurable:!0}),e.prototype.between=function(t,n,r,o){r=r!==!1,o=o===!0;try{return this._cmp(t,n)>0||this._cmp(t,n)===0&&(r||o)&&!(r&&o)?Mf(this):new this.Collection(this,function(){return Il(t,n,!r,!o)})}catch{return mi(this,Xs)}},e.prototype.equals=function(t){return t==null?mi(this,Xs):new this.Collection(this,function(){return IN(t)})},e.prototype.above=function(t){return t==null?mi(this,Xs):new this.Collection(this,function(){return Il(t,void 0,!0)})},e.prototype.aboveOrEqual=function(t){return t==null?mi(this,Xs):new this.Collection(this,function(){return Il(t,void 0,!1)})},e.prototype.below=function(t){return t==null?mi(this,Xs):new this.Collection(this,function(){return Il(void 0,t,!1,!0)})},e.prototype.belowOrEqual=function(t){return t==null?mi(this,Xs):new this.Collection(this,function(){return Il(void 0,t)})},e.prototype.startsWith=function(t){return typeof t!="string"?mi(this,PN):this.between(t,t+Jf,!0,!0)},e.prototype.startsWithIgnoreCase=function(t){return t===""?this.startsWith(t):sm(this,function(n,r){return n.indexOf(r[0])===0},[t],Jf)},e.prototype.equalsIgnoreCase=function(t){return sm(this,function(n,r){return n===r[0]},[t],"")},e.prototype.anyOfIgnoreCase=function(){var t=Gs.apply(Wf,arguments);return t.length===0?Mf(this):sm(this,function(n,r){return r.indexOf(n)!==-1},t,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var t=Gs.apply(Wf,arguments);return t.length===0?Mf(this):sm(this,function(n,r){return r.some(function(o){return n.indexOf(o)===0})},t,Jf)},e.prototype.anyOf=function(){var t=this,n=Gs.apply(Wf,arguments),r=this._cmp;try{n.sort(r)}catch{return mi(this,Xs)}if(n.length===0)return Mf(this);var o=new this.Collection(this,function(){return Il(n[0],n[n.length-1])});o._ondirectionchange=function(a){r=a==="next"?t._ascending:t._descending,n.sort(r)};var i=0;return o._addAlgorithm(function(a,s,c){for(var l=a.key;r(l,n[i])>0;)if(++i,i===n.length)return s(c),!1;return r(l,n[i])===0?!0:(s(function(){a.continue(n[i])}),!1)}),o},e.prototype.notEqual=function(t){return this.inAnyRange([[r3,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var t=Gs.apply(Wf,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return mi(this,Xs)}var n=t.reduce(function(r,o){return r?r.concat([[r[r.length-1][1],o]]):[[r3,o]]},null);return n.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(t,n){var r=this,o=this._cmp,i=this._ascending,a=this._descending,s=this._min,c=this._max;if(t.length===0)return Mf(this);if(!t.every(function(S){return S[0]!==void 0&&S[1]!==void 0&&i(S[0],S[1])<=0}))return mi(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",zt.InvalidArgument);var l=!n||n.includeLowers!==!1,u=n&&n.includeUppers===!0;function f(S,O){for(var T=0,M=S.length;T0){L[0]=s(L[0],O[0]),L[1]=c(L[1],O[1]);break}}return T===M&&S.push(O),S}var d=i;function h(S,O){return d(S[0],O[0])}var p;try{p=t.reduce(f,[]),p.sort(h)}catch{return mi(this,Xs)}var m=0,A=u?function(S){return i(S,p[m][1])>0}:function(S){return i(S,p[m][1])>=0},x=l?function(S){return a(S,p[m][0])>0}:function(S){return a(S,p[m][0])>=0};function R(S){return!A(S)&&!x(S)}var y=A,g=new this.Collection(this,function(){return Il(p[0][0],p[p.length-1][1],!l,!u)});return g._ondirectionchange=function(S){S==="next"?(y=A,d=i):(y=x,d=a),p.sort(h)},g._addAlgorithm(function(S,O,T){for(var M=S.key;y(M);)if(++m,m===p.length)return O(T),!1;return R(M)?!0:(r._cmp(M,p[m][1])===0||r._cmp(M,p[m][0])===0||O(function(){d===i?S.continue(p[m][0]):S.continue(p[m][1])}),!1)}),g},e.prototype.startsWithAnyOf=function(){var t=Gs.apply(Wf,arguments);return t.every(function(n){return typeof n=="string"})?t.length===0?Mf(this):this.inAnyRange(t.map(function(n){return[n,n+Jf]})):mi(this,"startsWithAnyOf() only works with strings")},e}();function PJ(e){return Pp(FN.prototype,function(n,r,o){this.db=e,this._ctx={table:n,index:r===":id"?null:r,or:o};var i=e._deps.indexedDB;if(!i)throw new zt.MissingAPI("indexedDB API missing");this._cmp=this._ascending=i.cmp.bind(i),this._descending=function(a,s){return i.cmp(s,a)},this._max=function(a,s){return i.cmp(a,s)>0?a:s},this._min=function(a,s){return i.cmp(a,s)<0?a:s},this._IDBKeyRange=e._deps.IDBKeyRange})}function _N(e){return e.length===1?e[0]:e}function yb(e){try{return e.only([[]]),[[]]}catch{return Jf}}function ja(e){return pr(function(t){return ep(t),e(t.target.error),!1})}function ep(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var NJ=function(){function e(){}return e.prototype._lock=function(){return E0(!Wt.global),++this._reculock,this._reculock===1&&!Wt.global&&(Wt.lockOwnerFor=this),this},e.prototype._unlock=function(){if(E0(!Wt.global),--this._reculock===0)for(Wt.global||(Wt.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{kp(t[1],t[0])}catch{}}return this},e.prototype._locked=function(){return this._reculock&&Wt.lockOwnerFor!==this},e.prototype.create=function(t){var n=this;if(!this.mode)return this;var r=this.db.idbdb,o=this.db._state.dbOpenError;if(E0(!this.idbtrans),!t&&!r)switch(o&&o.name){case"DatabaseClosedError":throw new zt.DatabaseClosed(o);case"MissingAPIError":throw new zt.MissingAPI(o.message,o);default:throw new zt.OpenFailed(o)}if(!this.active)throw new zt.TransactionInactive;return E0(this._completion._state===null),t=this.idbtrans=t||r.transaction(_N(this.storeNames),this.mode),t.onerror=pr(function(i){ep(i),n._reject(t.error)}),t.onabort=pr(function(i){ep(i),n.active&&n._reject(new zt.Abort(t.error)),n.active=!1,n.on("abort").fire(i)}),t.oncomplete=pr(function(){n.active=!1,n._resolve()}),this},e.prototype._promise=function(t,n,r){var o=this;if(t==="readwrite"&&this.mode!=="readwrite")return Ao(new zt.ReadOnly("Transaction is readonly"));if(!this.active)return Ao(new zt.TransactionInactive);if(this._locked())return new Mt(function(a,s){o._blockedFuncs.push([function(){o._promise(t,n,r).then(a,s)},Wt])});if(r)return Fu(function(){var a=new Mt(function(s,c){o._lock();var l=n(s,c,o);l&&l.then&&l.then(s,c)});return a.finally(function(){return o._unlock()}),a._lib=!0,a});var i=new Mt(function(a,s){var c=n(a,s,o);c&&c.then&&c.then(a,s)});return i._lib=!0,i},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(t){var n=this._root(),r=Mt.resolve(t);if(n._waitingFor)n._waitingFor=n._waitingFor.then(function(){return r});else{n._waitingFor=r,n._waitingQueue=[];var o=n.idbtrans.objectStore(n.storeNames[0]);(function a(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(o.get(-1/0).onsuccess=a)})()}var i=n._waitingFor;return new Mt(function(a,s){r.then(function(c){return n._waitingQueue.push(pr(a.bind(null,c)))},function(c){return n._waitingQueue.push(pr(s.bind(null,c)))}).finally(function(){n._waitingFor===i&&(n._waitingFor=null)})})},e.prototype.abort=function(){this.active&&this._reject(new zt.Abort),this.active=!1},e.prototype.table=function(t){var n=this._memoizedTables||(this._memoizedTables={});if(ta(n,t))return n[t];var r=this.schema[t];if(!r)throw new zt.NotFound("Table "+t+" not part of transaction");var o=new this.db.Table(t,r,this);return o.core=this.db.core.table(t),n[t]=o,o},e}();function CJ(e){return Pp(NJ.prototype,function(n,r,o,i){var a=this;this.db=e,this.mode=n,this.storeNames=r,this.schema=o,this.idbtrans=null,this.on=Bg(this,"complete","error","abort"),this.parent=i||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 Mt(function(s,c){a._resolve=s,a._reject=c}),this._completion.then(function(){a.active=!1,a.on.complete.fire()},function(s){var c=a.active;return a.active=!1,a.on.error.fire(s),a.parent?a.parent._reject(s):c&&a.idbtrans&&a.idbtrans.abort(),Ao(s)})})}function o3(e,t,n,r,o,i,a){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+XN(t)}}function XN(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function EN(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:cN(n,function(r){return[r.name,r]})}}function i3(e){return e==null?function(){}:typeof e=="string"?IJ(e):function(t){return fs(t,e)}}function IJ(e){var t=e.split(".");return t.length===1?function(n){return n[e]}:function(n){return fs(n,e)}}function WN(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}function FJ(e,t,n){return t.type==="add"?Promise.resolve(new Array(t.values.length)):e.getMany({trans:t.trans,keys:n})}function VM(e){return[].slice.call(e)}var _J=0;function gh(e){return e==null?":id":typeof e=="string"?e:"["+e.join("+")+"]"}function XJ(e,t,n,r){var o=t.cmp.bind(t);function i(h,p){var m=VM(h.objectStoreNames);return{schema:{name:h.name,tables:m.map(function(A){return p.objectStore(A)}).map(function(A){var x=A.keyPath,R=A.autoIncrement,y=Io(x),g=x==null,S={},O={name:A.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:g,compound:y,keyPath:x,autoIncrement:R,unique:!0,extractKey:i3(x)},indexes:VM(A.indexNames).map(function(T){return A.index(T)}).map(function(T){var M=T.name,L=T.unique,k=T.multiEntry,F=T.keyPath,N=Io(F),E={name:M,compound:N,keyPath:F,unique:L,multiEntry:k,extractKey:i3(F)};return S[gh(F)]=E,E}),getIndexByKeyPath:function(T){return S[gh(T)]}};return S[":id"]=O.primaryKey,x!=null&&(S[gh(x)]=O.primaryKey),O})},hasGetAll:m.length>0&&"getAll"in p.objectStore(m[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function a(h){if(h.type===3)return null;if(h.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var p=h.lower,m=h.upper,A=h.lowerOpen,x=h.upperOpen,R=p===void 0?m===void 0?null:n.upperBound(m,!!x):m===void 0?n.lowerBound(p,!!A):n.bound(p,m,!!A,!!x);return R}function s(h){var p=h.name;function m(R){var y=R.trans,g=R.type,S=R.keys,O=R.values,T=R.range,M=R.wantResults;return new Promise(function(L,k){L=pr(L);var F=y.objectStore(p),N=F.keyPath==null,E=g==="put"||g==="add";if(!E&&g!=="delete"&&g!=="deleteRange")throw new Error("Invalid operation type: "+g);var C=(S||O||{length:1}).length;if(S&&O&&S.length!==O.length)throw new Error("Given keys array must have same length as given values array.");if(C===0)return L({numFailures:0,failures:{},results:[],lastResult:void 0});var _=M&&D4(S||WN(h.primaryKey,{type:g,keys:S,values:O})),I,V=[],B=0,G=function(fe){++B,ep(fe),_&&(_[fe.target._reqno]=void 0),V[fe.target._reqno]=fe.target.error},oe=function(fe){var se=fe.target;_[se._reqno]=se.result};if(g==="deleteRange"){if(T.type===4)return L({numFailures:B,failures:V,results:_,lastResult:void 0});T.type===3?I=F.clear():I=F.delete(a(T))}else{var W=E?N?[O,S]:[O,null]:[S,null],Z=W[0],K=W[1];if(E)for(var U=0;U=t});c.forEach(function(u){o.push(function(){var f=a,d=u._cfg.dbschema;l3(e,f,r),l3(e,d,r),a=e._dbSchema=d;var h=VN(f,d);h.add.forEach(function(y){bb(r,y[0],y[1].primKey,y[1].indexes)}),h.change.forEach(function(y){if(y.recreate)throw new zt.Upgrade("Not yet support for changing primary key");var g=r.objectStore(y.name);y.add.forEach(function(S){return s3(g,S)}),y.change.forEach(function(S){g.deleteIndex(S.name),s3(g,S)}),y.del.forEach(function(S){return g.deleteIndex(S)})});var p=u._cfg.contentUpgrade;if(p&&u._cfg.version>t){xb(e,r),n._memoizedTables={},s=!0;var m=fN(d);h.del.forEach(function(y){m[y]=f[y]}),a3(e,[e.Transaction.prototype]),Vv(e,[e.Transaction.prototype],io(m),m),n.schema=m;var A=pN(p);A&&Tp();var x,R=Mt.follow(function(){if(x=p(n),x&&A){var y=_u.bind(null,null);x.then(y,y)}});return x&&typeof x.then=="function"?Mt.resolve(x):R.then(function(){return x})}}),o.push(function(f){if(!s||!AJ){var d=u._cfg.dbschema;ZJ(d,f)}a3(e,[e.Transaction.prototype]),Vv(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema})});function l(){return o.length?Mt.resolve(o.shift()(n.idbtrans)).then(l):Mt.resolve()}return l().then(function(){QJ(a,r)})}function VN(e,t){var n={del:[],add:[],change:[]},r;for(r in e)t[r]||n.del.push(r);for(r in t){var o=e[r],i=t[r];if(!o)n.add.push([r,i]);else{var a={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!Rb)a.recreate=!0,n.change.push(a);else{var s=o.idxByName,c=i.idxByName,l=void 0;for(l in s)c[l]||a.del.push(l);for(l in c){var u=s[l],f=c[l];u?u.src!==f.src&&a.change.push(f):a.add.push(f)}(a.del.length>0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}}return n}function bb(e,t,n,r){var o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(i){return s3(o,i)}),o}function QJ(e,t){io(e).forEach(function(n){t.db.objectStoreNames.contains(n)||bb(t,n,e[n].primKey,e[n].indexes)})}function ZJ(e,t){for(var n=0;nMath.pow(2,62)?0:l.oldVersion;e.idbdb=c.result,UJ(e,f/10,o,a)}},a),c.onsuccess=pr(function(){o=null;var l=e.idbdb=c.result,u=Qg(l.objectStoreNames);if(u.length>0)try{var f=l.transaction(_N(u),"readonly");t.autoSchema?BJ(e,l,f):(l3(e,e._dbSchema,f),DJ(e,f)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),xb(e,f)}catch{}vh.push(e),l.onversionchange=pr(function(d){t.vcFired=!0,e.on("versionchange").fire(d)}),tp.add(s),i()},a)})]).then(function(){return t.onReadyBeingFired=[],Mt.resolve(c3(e.on.ready.fire)).then(function i(){if(t.onReadyBeingFired.length>0){var a=t.onReadyBeingFired.reduce(RN,$n);return t.onReadyBeingFired=[],Mt.resolve(c3(a)).then(i)}})}).finally(function(){t.onReadyBeingFired=null}).then(function(){return t.isBeingOpened=!1,e}).catch(function(i){try{o&&o.abort()}catch{}return t.isBeingOpened=!1,e.close(),t.dbOpenError=i,Ao(t.dbOpenError)}).finally(function(){t.openComplete=!0,r()})}function u3(e){var t=function(a){return e.next(a)},n=function(a){return e.throw(a)},r=i(t),o=i(n);function i(a){return function(s){var c=a(s),l=c.value;return c.done?l:!l||typeof l.then!="function"?Io(l)?Promise.all(l).then(r,o):r(l):l.then(r,o)}}return i(t)()}function jJ(e,t,n){var r=arguments.length;if(r<2)throw new zt.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];n=o.pop();var i=dN(o);return[e,i,n]}function qJ(e,t,n,r,o){return Mt.resolve().then(function(){var i=Wt.transless||Wt,a=e._createTransaction(t,n,e._dbSchema,r),s={trans:a,transless:i};r?a.idbtrans=r.idbtrans:a.create();var c=pN(o);c&&Tp();var l,u=Mt.follow(function(){if(l=o.call(a,a),l)if(c){var f=_u.bind(null,null);l.then(f,f)}else typeof l.next=="function"&&typeof l.throw=="function"&&(l=u3(l))},s);return(l&&typeof l.then=="function"?Mt.resolve(l).then(function(f){return a.active?f:Ao(new zt.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):u.then(function(){return l})).then(function(f){return r&&a._resolve(),a._completion.then(function(){return f})}).catch(function(f){return a._reject(f),Ao(f)})})}function g0(e,t,n){for(var r=Io(e)?e.slice():[e],o=0;o0,O=zn(zn({},x),{isVirtual:S,isPrimaryKey:!S&&x.isPrimaryKey,keyTail:A,keyLength:g,extractKey:i3(m),unique:!S&&x.unique});if(y.push(O),O.isPrimaryKey||i.push(O),g>1){var T=g===2?m[0]:m.slice(0,g-1);a(T,A+1,x)}return y.sort(function(M,L){return M.keyTail-L.keyTail}),O}var s=a(r.primaryKey.keyPath,0,r.primaryKey);o[":id"]=[s];for(var c=0,l=r.indexes;c0?Promise.reject(y.failures[0]):R.length0?console.warn("Another connection wants to upgrade database '"+r.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+r.name+"'. Closing db now to resume the delete request."),r.close()}),this.on("blocked",function(s){!s.newVersion||s.newVersion=0&&vh.splice(t,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}this._options.autoOpen=!1,n.dbOpenError=new zt.DatabaseClosed,n.isBeingOpened&&n.cancelOpen(n.dbOpenError),n.dbReadyPromise=new Mt(function(r){n.dbReadyResolve=r}),n.openCanceller=new Mt(function(r,o){n.cancelOpen=o})},e.prototype.delete=function(){var t=this,n=arguments.length>0,r=this._state;return new Mt(function(o,i){var a=function(){t.close();var s=t._deps.indexedDB.deleteDatabase(t.name);s.onsuccess=pr(function(){tp.remove(t.name),o()}),s.onerror=ja(i),s.onblocked=t._fireOnBlocked};if(n)throw new zt.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(a):a()})},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return this.idbdb!==null},e.prototype.hasBeenClosed=function(){var t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"},e.prototype.hasFailed=function(){return this._state.dbOpenError!==null},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var t=this;return io(this._allTables).map(function(n){return t._allTables[n]})},enumerable:!0,configurable:!0}),e.prototype.transaction=function(){var t=jJ.apply(this,arguments);return this._transaction.apply(this,t)},e.prototype._transaction=function(t,n,r){var o=this,i=Wt.trans;(!i||i.db!==this||t.indexOf("!")!==-1)&&(i=null);var a=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");var s,c;try{if(c=n.map(function(u){var f=u instanceof o.Table?u.name:u;if(typeof f!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return f}),t=="r"||t===cR)s=cR;else if(t=="rw"||t==uR)s=uR;else throw new zt.InvalidArgument("Invalid transaction mode: "+t);if(i){if(i.mode===cR&&s===uR)if(a)i=null;else throw new zt.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i&&c.forEach(function(u){if(i&&i.storeNames.indexOf(u)===-1)if(a)i=null;else throw new zt.SubTransaction("Table "+u+" not included in parent transaction.")}),a&&i&&!i.active&&(i=null)}}catch(u){return i?i._promise(null,function(f,d){d(u)}):Ao(u)}var l=qJ.bind(null,this,s,c,i,r);return i?i._promise(s,l,"lock"):Wt.trans?kp(Wt.transless,function(){return o._whenReady(l)}):this._whenReady(l)},e.prototype.table=function(t){if(!ta(this._allTables,t))throw new zt.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},e}(),Zl=Eu;zh(Zl,zn(zn({},Zg),{delete:function(e){var t=new Zl(e);return t.delete()},exists:function(e){return new Zl(e,{addons:[]}).open().then(function(t){return t.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){return tp?tp.getDatabaseNames().then(e):Mt.resolve([])},defineClass:function(){function e(t){ea(this,t)}return e},ignoreTransaction:function(e){return Wt.trans?kp(Wt.transless,e):e()},vip:c3,async:function(e){return function(){try{var t=u3(e.apply(this,arguments));return!t||typeof t.then!="function"?Mt.resolve(t):t}catch(n){return Ao(n)}}},spawn:function(e,t,n){try{var r=u3(e.apply(n,t||[]));return!r||typeof r.then!="function"?Mt.resolve(r):r}catch(o){return Ao(o)}},currentTransaction:{get:function(){return Wt.trans||null}},waitFor:function(e,t){var n=Mt.resolve(typeof e=="function"?Zl.ignoreTransaction(e):e).timeout(t||6e4);return Wt.trans?Wt.trans.waitFor(n):n},Promise:Mt,debug:{get:function(){return Ss},set:function(e){mN(e,e==="dexie"?function(){return!0}:NN)}},derive:Bd,extend:ea,props:zh,override:sN,Events:Bg,getByKeyPath:fs,setByKeyPath:Ca,delByKeyPath:uN,shallowClone:fN,deepClone:$h,getObjectDiff:hb,asap:lN,minKey:r3,addons:[],connections:vh,errnames:qG,dependencies:function(){try{return{indexedDB:er.indexedDB||er.mozIndexedDB||er.webkitIndexedDB||er.msIndexedDB,IDBKeyRange:er.IDBKeyRange||er.webkitIDBKeyRange}}catch{return{indexedDB:null,IDBKeyRange:null}}}(),semVer:XM,version:XM.split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,n*2)}),default:Zl,Dexie:Zl}));Zl.maxKey=yb(Zl.dependencies.IDBKeyRange);zJ(Eu.dependencies.indexedDB);Mt.rejectionMapper=tJ;mN(Ss,NN);const Uv="PPTIST_DISCARDED_DB",f3="PPTist",rz=async()=>{const e=new Date().getTime(),t=localStorage.getItem(Uv),n=t?JSON.parse(t):[],o=(await Eu.getDatabaseNames()).filter(i=>{if(i.indexOf(f3)===-1)return!1;const[a,s,c]=i.split("_");return!!(a!==f3||!s||!c||n.includes(s)||e-+c>=1e3*60*60*12)});for(const i of o)Eu.delete(i);localStorage.removeItem(Uv)};class oz extends Eu{constructor(){super(`${f3}_${oN}_${new Date().getTime()}`);UA(this,"snapshots");UA(this,"writingBoardImgs");this.version(1).stores({snapshots:"++id",writingBoardImgs:"++id"}),this.snapshots=this.table("snapshots"),this.writingBoardImgs=this.table("writingBoardImgs")}}const ba=new oz,Dg=bp("snapshot",{state:()=>({snapshotCursor:-1,snapshotLength:0}),getters:{canUndo(e){return e.snapshotCursor>0},canRedo(e){return e.snapshotCursor=0&&this.snapshotCursor20&&(n.push(t[0]),o--),o>=2&&ba.snapshots.update(t[o-2],{index:e.slideIndex}),await ba.snapshots.bulkDelete(n),this.setSnapshotCursor(o-1),this.setSnapshotLength(o)},async unDo(){if(this.snapshotCursor<=0)return;const e=ut(),t=dt(),n=this.snapshotCursor-1,o=(await ba.snapshots.orderBy("id").toArray())[n],{index:i,slides:a}=o,s=i>a.length-1?a.length-1:i;e.setSlides(a),e.updateSlideIndex(s),this.setSnapshotCursor(n),t.setActiveElementIdList([])},async reDo(){if(this.snapshotCursor>=this.snapshotLength-1)return;const e=ut(),t=dt(),n=this.snapshotCursor+1,o=(await ba.snapshots.orderBy("id").toArray())[n],{index:i,slides:a}=o,s=i>a.length-1?a.length-1:i;e.setSlides(a),e.updateSlideIndex(s),this.setSnapshotCursor(n),t.setActiveElementIdList([])}}}),Ms=bp("keyboard",{state:()=>({ctrlKeyState:!1,shiftKeyState:!1,spaceKeyState:!1}),getters:{ctrlOrShiftKeyActive(e){return e.ctrlKeyState||e.shiftKeyState}},actions:{setCtrlKeyState(e){this.ctrlKeyState=e},setShiftKeyState(e){this.shiftKeyState=e},setSpaceKeyState(e){this.spaceKeyState=e}}}),UN=bp("screen",{state:()=>({screening:!1}),actions:{setScreening(e){this.screening=e}}}),V0=(e,t)=>Xn.padStart(""+e,t,"0"),iz=()=>!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|Mobile|BlackBerry|Symbian|Windows Phone)/i);var mr=(e=>(e.UP="up",e.DOWN="down",e.TOP="top",e.BOTTOM="bottom",e))(mr||{}),nn=(e=>(e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right",e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e.CENTER="center",e))(nn||{}),U0=(e=>(e.T="top",e.B="bottom",e.L="left",e.R="right",e))(U0||{}),vt=(e=>(e.LEFT_TOP="left-top",e.TOP="top",e.RIGHT_TOP="right-top",e.LEFT="left",e.RIGHT="right",e.LEFT_BOTTOM="left-bottom",e.BOTTOM="bottom",e.RIGHT_BOTTOM="right-bottom",e))(vt||{}),Jo=(e=>(e.START="start",e.END="end",e.C="ctrl",e.C1="ctrl1",e.C2="ctrl2",e))(Jo||{}),yt=(e=>(e.C="C",e.X="X",e.Z="Z",e.Y="Y",e.A="A",e.G="G",e.L="L",e.F="F",e.D="D",e.B="B",e.P="P",e.MINUS="-",e.EQUAL="=",e.DIGIT_0="0",e.DELETE="DELETE",e.UP="ARROWUP",e.DOWN="ARROWDOWN",e.LEFT="ARROWLEFT",e.RIGHT="ARROWRIGHT",e.ENTER="ENTER",e.SPACE=" ",e.TAB="TAB",e.BACKSPACE="BACKSPACE",e.ESC="ESCAPE",e.PAGEUP="PAGEUP",e.PAGEDOWN="PAGEDOWN",e.F5="F5",e))(yt||{});const az=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"粘贴为纯文本",value:"Ctrl + Shift + V"},{label:"快速复制粘贴",value:"Ctrl + D"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"},{label:"打开搜索替换",value:"Ctrl + F"},{label:"打印",value:"Ctrl + P"},{label:"关闭弹窗",value:"ESC"}]},{type:"幻灯片放映",children:[{label:"从头开始放映幻灯片",value:"F5"},{label:"从当前开始放映幻灯片",value:"Shift + F5"},{label:"切换上一页",value:"↑ / ← / PgUp"},{label:"切换下一页",value:"↓ / → / PgDown"},{label:"切换下一页",value:"Enter / Space"},{label:"退出放映",value:"ESC"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"移动画布",value:"Space + 鼠标拖拽"},{label:"缩放画布",value:"Ctrl + 鼠标滚轮"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"使画布适应当前屏幕",value:"Ctrl + 0"},{label:"上一页(未选中元素)",value:"↑ / ←"},{label:"下一页(未选中元素)",value:"↓ / →"},{label:"上一页",value:"鼠标上滚 / PgUp"},{label:"下一页",value:"鼠标下滚 / PgDown"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"},{label:"完成自定义形状绘制",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"图表数据编辑",children:[{label:"聚焦到下一行",value:"Enter"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"行内代码",value:"Ctrl + E"},{label:"上角标",value:"Ctrl + ;"},{label:"下角标",value:"Ctrl + '"},{label:"选中段落",value:"ESC"}]}];var YN={exports:{}};/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(e,t){(function(r,o){e.exports=o()})(Ct,function(){return function(){var n={686:function(i,a,s){s.d(a,{default:function(){return W}});var c=s(279),l=s.n(c),u=s(370),f=s.n(u),d=s(817),h=s.n(d);function p(Z){try{return document.execCommand(Z)}catch{return!1}}var m=function(K){var U=h()(K);return p("cut"),U},A=m;function x(Z){var K=document.documentElement.getAttribute("dir")==="rtl",U=document.createElement("textarea");U.style.fontSize="12pt",U.style.border="0",U.style.padding="0",U.style.margin="0",U.style.position="absolute",U.style[K?"right":"left"]="-9999px";var z=window.pageYOffset||document.documentElement.scrollTop;return U.style.top="".concat(z,"px"),U.setAttribute("readonly",""),U.value=Z,U}var R=function(K,U){var z=x(K);U.container.appendChild(z);var fe=h()(z);return p("copy"),z.remove(),fe},y=function(K){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},z="";return typeof K=="string"?z=R(K,U):K instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(K==null?void 0:K.type)?z=R(K.value,U):(z=h()(K),p("copy")),z},g=y;function S(Z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(U){return typeof U}:S=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},S(Z)}var O=function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=K.action,z=U===void 0?"copy":U,fe=K.container,se=K.target,ie=K.text;if(z!=="copy"&&z!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(se!==void 0)if(se&&S(se)==="object"&&se.nodeType===1){if(z==="copy"&&se.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(z==="cut"&&(se.hasAttribute("readonly")||se.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ie)return g(ie,{container:fe});if(se)return z==="cut"?A(se):g(se,{container:fe})},T=O;function M(Z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?M=function(U){return typeof U}:M=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},M(Z)}function L(Z,K){if(!(Z instanceof K))throw new TypeError("Cannot call a class as a function")}function k(Z,K){for(var U=0;U"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function B(Z){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},B(Z)}function G(Z,K){var U="data-clipboard-".concat(Z);if(K.hasAttribute(U))return K.getAttribute(U)}var oe=function(Z){N(U,Z);var K=C(U);function U(z,fe){var se;return L(this,U),se=K.call(this),se.resolveOptions(fe),se.listenClick(z),se}return F(U,[{key:"resolveOptions",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof fe.action=="function"?fe.action:this.defaultAction,this.target=typeof fe.target=="function"?fe.target:this.defaultTarget,this.text=typeof fe.text=="function"?fe.text:this.defaultText,this.container=M(fe.container)==="object"?fe.container:document.body}},{key:"listenClick",value:function(fe){var se=this;this.listener=f()(fe,"click",function(ie){return se.onClick(ie)})}},{key:"onClick",value:function(fe){var se=fe.delegateTarget||fe.currentTarget,ie=this.action(se)||"copy",me=T({action:ie,container:this.container,target:this.target(se),text:this.text(se)});this.emit(me?"success":"error",{action:ie,text:me,trigger:se,clearSelection:function(){se&&se.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(fe){return G("action",fe)}},{key:"defaultTarget",value:function(fe){var se=G("target",fe);if(se)return document.querySelector(se)}},{key:"defaultText",value:function(fe){return G("text",fe)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(fe){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return g(fe,se)}},{key:"cut",value:function(fe){return A(fe)}},{key:"isSupported",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],se=typeof fe=="string"?[fe]:fe,ie=!!document.queryCommandSupported;return se.forEach(function(me){ie=ie&&!!document.queryCommandSupported(me)}),ie}}]),U}(l()),W=oe},828:function(i){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function c(l,u){for(;l&&l.nodeType!==a;){if(typeof l.matches=="function"&&l.matches(u))return l;l=l.parentNode}}i.exports=c},438:function(i,a,s){var c=s(828);function l(d,h,p,m,A){var x=f.apply(this,arguments);return d.addEventListener(p,x,A),{destroy:function(){d.removeEventListener(p,x,A)}}}function u(d,h,p,m,A){return typeof d.addEventListener=="function"?l.apply(null,arguments):typeof p=="function"?l.bind(null,document).apply(null,arguments):(typeof d=="string"&&(d=document.querySelectorAll(d)),Array.prototype.map.call(d,function(x){return l(x,h,p,m,A)}))}function f(d,h,p,m){return function(A){A.delegateTarget=c(A.target,h),A.delegateTarget&&m.call(d,A)}}i.exports=u},879:function(i,a){a.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},a.nodeList=function(s){var c=Object.prototype.toString.call(s);return s!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in s&&(s.length===0||a.node(s[0]))},a.string=function(s){return typeof s=="string"||s instanceof String},a.fn=function(s){var c=Object.prototype.toString.call(s);return c==="[object Function]"}},370:function(i,a,s){var c=s(879),l=s(438);function u(p,m,A){if(!p&&!m&&!A)throw new Error("Missing required arguments");if(!c.string(m))throw new TypeError("Second argument must be a String");if(!c.fn(A))throw new TypeError("Third argument must be a Function");if(c.node(p))return f(p,m,A);if(c.nodeList(p))return d(p,m,A);if(c.string(p))return h(p,m,A);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(p,m,A){return p.addEventListener(m,A),{destroy:function(){p.removeEventListener(m,A)}}}function d(p,m,A){return Array.prototype.forEach.call(p,function(x){x.addEventListener(m,A)}),{destroy:function(){Array.prototype.forEach.call(p,function(x){x.removeEventListener(m,A)})}}}function h(p,m,A){return l(document.body,p,m,A)}i.exports=u},817:function(i){function a(s){var c;if(s.nodeName==="SELECT")s.focus(),c=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var l=s.hasAttribute("readonly");l||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),l||s.removeAttribute("readonly"),c=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(s),u.removeAllRanges(),u.addRange(f),c=u.toString()}return c}i.exports=a},279:function(i){function a(){}a.prototype={on:function(s,c,l){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:c,ctx:l}),this},once:function(s,c,l){var u=this;function f(){u.off(s,f),c.apply(l,arguments)}return f._=c,this.on(s,f,l)},emit:function(s){var c=[].slice.call(arguments,1),l=((this.e||(this.e={}))[s]||[]).slice(),u=0,f=l.length;for(u;u>>2]>>>24-T%4*8&255;y[S+T>>>2]|=M<<24-(S+T)%4*8}else for(var L=0;L>>2]=g[L>>>2];return this.sigBytes+=O,this},clamp:function(){var R=this.words,y=this.sigBytes;R[y>>>2]&=4294967295<<32-y%4*8,R.length=r.ceil(y/4)},clone:function(){var R=u.clone.call(this);return R.words=this.words.slice(0),R},random:function(R){for(var y=[],g=0;g>>2]>>>24-O%4*8&255;S.push((T>>>4).toString(16)),S.push((T&15).toString(16))}return S.join("")},parse:function(R){for(var y=R.length,g=[],S=0;S>>3]|=parseInt(R.substr(S,2),16)<<24-S%8*4;return new f.init(g,y/2)}},p=d.Latin1={stringify:function(R){for(var y=R.words,g=R.sigBytes,S=[],O=0;O>>2]>>>24-O%4*8&255;S.push(String.fromCharCode(T))}return S.join("")},parse:function(R){for(var y=R.length,g=[],S=0;S>>2]|=(R.charCodeAt(S)&255)<<24-S%4*8;return new f.init(g,y)}},m=d.Utf8={stringify:function(R){try{return decodeURIComponent(escape(p.stringify(R)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(R){return p.parse(unescape(encodeURIComponent(R)))}},A=l.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(R){typeof R=="string"&&(R=m.parse(R)),this._data.concat(R),this._nDataBytes+=R.sigBytes},_process:function(R){var y,g=this._data,S=g.words,O=g.sigBytes,T=this.blockSize,M=T*4,L=O/M;R?L=r.ceil(L):L=r.max((L|0)-this._minBufferSize,0);var k=L*T,F=r.min(k*4,O);if(k){for(var N=0;N>>2]|=c[f]<<24-f%4*8;a.call(this,u,l)}else a.apply(this,arguments)};s.prototype=i}}(),n.lib.WordArray})}(mR)),mR.exports}var vR={exports:{}},ZM;function hz(){return ZM||(ZM=1,function(e,t){(function(n,r){e.exports=r(Mn())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.enc;a.Utf16=a.Utf16BE={stringify:function(c){for(var l=c.words,u=c.sigBytes,f=[],d=0;d>>2]>>>16-d%4*8&65535;f.push(String.fromCharCode(h))}return f.join("")},parse:function(c){for(var l=c.length,u=[],f=0;f>>1]|=c.charCodeAt(f)<<16-f%2*16;return i.create(u,l*2)}},a.Utf16LE={stringify:function(c){for(var l=c.words,u=c.sigBytes,f=[],d=0;d>>2]>>>16-d%4*8&65535);f.push(String.fromCharCode(h))}return f.join("")},parse:function(c){for(var l=c.length,u=[],f=0;f>>1]|=s(c.charCodeAt(f)<<16-f%2*16);return i.create(u,l*2)}};function s(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(vR)),vR.exports}var gR={exports:{}},BM;function Ju(){return BM||(BM=1,function(e,t){(function(n,r){e.exports=r(Mn())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.enc;a.Base64={stringify:function(c){var l=c.words,u=c.sigBytes,f=this._map;c.clamp();for(var d=[],h=0;h>>2]>>>24-h%4*8&255,m=l[h+1>>>2]>>>24-(h+1)%4*8&255,A=l[h+2>>>2]>>>24-(h+2)%4*8&255,x=p<<16|m<<8|A,R=0;R<4&&h+R*.75>>6*(3-R)&63));var y=f.charAt(64);if(y)for(;d.length%4;)d.push(y);return d.join("")},parse:function(c){var l=c.length,u=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d>>6-h%4*2,A=p|m;f[d>>>2]|=A<<24-d%4*8,d++}return i.create(f,d)}}(),n.enc.Base64})}(gR)),gR.exports}var AR={exports:{}},DM;function pz(){return DM||(DM=1,function(e,t){(function(n,r){e.exports=r(Mn())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.enc;a.Base64url={stringify:function(c,l){l===void 0&&(l=!0);var u=c.words,f=c.sigBytes,d=l?this._safe_map:this._map;c.clamp();for(var h=[],p=0;p>>2]>>>24-p%4*8&255,A=u[p+1>>>2]>>>24-(p+1)%4*8&255,x=u[p+2>>>2]>>>24-(p+2)%4*8&255,R=m<<16|A<<8|x,y=0;y<4&&p+y*.75>>6*(3-y)&63));var g=d.charAt(64);if(g)for(;h.length%4;)h.push(g);return h.join("")},parse:function(c,l){l===void 0&&(l=!0);var u=c.length,f=l?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h>>6-h%4*2,A=p|m;f[d>>>2]|=A<<24-d%4*8,d++}return i.create(f,d)}}(),n.enc.Base64url})}(AR)),AR.exports}var RR={exports:{}},KM;function zu(){return KM||(KM=1,function(e,t){(function(n,r){e.exports=r(Mn())})(Ct,function(n){return function(r){var o=n,i=o.lib,a=i.WordArray,s=i.Hasher,c=o.algo,l=[];(function(){for(var m=0;m<64;m++)l[m]=r.abs(r.sin(m+1))*4294967296|0})();var u=c.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,A){for(var x=0;x<16;x++){var R=A+x,y=m[R];m[R]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var g=this._hash.words,S=m[A+0],O=m[A+1],T=m[A+2],M=m[A+3],L=m[A+4],k=m[A+5],F=m[A+6],N=m[A+7],E=m[A+8],C=m[A+9],_=m[A+10],I=m[A+11],V=m[A+12],B=m[A+13],G=m[A+14],oe=m[A+15],W=g[0],Z=g[1],K=g[2],U=g[3];W=f(W,Z,K,U,S,7,l[0]),U=f(U,W,Z,K,O,12,l[1]),K=f(K,U,W,Z,T,17,l[2]),Z=f(Z,K,U,W,M,22,l[3]),W=f(W,Z,K,U,L,7,l[4]),U=f(U,W,Z,K,k,12,l[5]),K=f(K,U,W,Z,F,17,l[6]),Z=f(Z,K,U,W,N,22,l[7]),W=f(W,Z,K,U,E,7,l[8]),U=f(U,W,Z,K,C,12,l[9]),K=f(K,U,W,Z,_,17,l[10]),Z=f(Z,K,U,W,I,22,l[11]),W=f(W,Z,K,U,V,7,l[12]),U=f(U,W,Z,K,B,12,l[13]),K=f(K,U,W,Z,G,17,l[14]),Z=f(Z,K,U,W,oe,22,l[15]),W=d(W,Z,K,U,O,5,l[16]),U=d(U,W,Z,K,F,9,l[17]),K=d(K,U,W,Z,I,14,l[18]),Z=d(Z,K,U,W,S,20,l[19]),W=d(W,Z,K,U,k,5,l[20]),U=d(U,W,Z,K,_,9,l[21]),K=d(K,U,W,Z,oe,14,l[22]),Z=d(Z,K,U,W,L,20,l[23]),W=d(W,Z,K,U,C,5,l[24]),U=d(U,W,Z,K,G,9,l[25]),K=d(K,U,W,Z,M,14,l[26]),Z=d(Z,K,U,W,E,20,l[27]),W=d(W,Z,K,U,B,5,l[28]),U=d(U,W,Z,K,T,9,l[29]),K=d(K,U,W,Z,N,14,l[30]),Z=d(Z,K,U,W,V,20,l[31]),W=h(W,Z,K,U,k,4,l[32]),U=h(U,W,Z,K,E,11,l[33]),K=h(K,U,W,Z,I,16,l[34]),Z=h(Z,K,U,W,G,23,l[35]),W=h(W,Z,K,U,O,4,l[36]),U=h(U,W,Z,K,L,11,l[37]),K=h(K,U,W,Z,N,16,l[38]),Z=h(Z,K,U,W,_,23,l[39]),W=h(W,Z,K,U,B,4,l[40]),U=h(U,W,Z,K,S,11,l[41]),K=h(K,U,W,Z,M,16,l[42]),Z=h(Z,K,U,W,F,23,l[43]),W=h(W,Z,K,U,C,4,l[44]),U=h(U,W,Z,K,V,11,l[45]),K=h(K,U,W,Z,oe,16,l[46]),Z=h(Z,K,U,W,T,23,l[47]),W=p(W,Z,K,U,S,6,l[48]),U=p(U,W,Z,K,N,10,l[49]),K=p(K,U,W,Z,G,15,l[50]),Z=p(Z,K,U,W,k,21,l[51]),W=p(W,Z,K,U,V,6,l[52]),U=p(U,W,Z,K,M,10,l[53]),K=p(K,U,W,Z,_,15,l[54]),Z=p(Z,K,U,W,O,21,l[55]),W=p(W,Z,K,U,E,6,l[56]),U=p(U,W,Z,K,oe,10,l[57]),K=p(K,U,W,Z,F,15,l[58]),Z=p(Z,K,U,W,B,21,l[59]),W=p(W,Z,K,U,L,6,l[60]),U=p(U,W,Z,K,I,10,l[61]),K=p(K,U,W,Z,T,15,l[62]),Z=p(Z,K,U,W,C,21,l[63]),g[0]=g[0]+W|0,g[1]=g[1]+Z|0,g[2]=g[2]+K|0,g[3]=g[3]+U|0},_doFinalize:function(){var m=this._data,A=m.words,x=this._nDataBytes*8,R=m.sigBytes*8;A[R>>>5]|=128<<24-R%32;var y=r.floor(x/4294967296),g=x;A[(R+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,A[(R+64>>>9<<4)+14]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,m.sigBytes=(A.length+1)*4,this._process();for(var S=this._hash,O=S.words,T=0;T<4;T++){var M=O[T];O[T]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return S},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m}});function f(m,A,x,R,y,g,S){var O=m+(A&x|~A&R)+y+S;return(O<>>32-g)+A}function d(m,A,x,R,y,g,S){var O=m+(A&R|x&~R)+y+S;return(O<>>32-g)+A}function h(m,A,x,R,y,g,S){var O=m+(A^x^R)+y+S;return(O<>>32-g)+A}function p(m,A,x,R,y,g,S){var O=m+(x^(A|~R))+y+S;return(O<>>32-g)+A}o.MD5=s._createHelper(u),o.HmacMD5=s._createHmacHelper(u)}(Math),n.MD5})}(RR)),RR.exports}var yR={exports:{}},HM;function ZN(){return HM||(HM=1,function(e,t){(function(n,r){e.exports=r(Mn())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=o.Hasher,s=r.algo,c=[],l=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,f){for(var d=this._hash.words,h=d[0],p=d[1],m=d[2],A=d[3],x=d[4],R=0;R<80;R++){if(R<16)c[R]=u[f+R]|0;else{var y=c[R-3]^c[R-8]^c[R-14]^c[R-16];c[R]=y<<1|y>>>31}var g=(h<<5|h>>>27)+x+c[R];R<20?g+=(p&m|~p&A)+1518500249:R<40?g+=(p^m^A)+1859775393:R<60?g+=(p&m|p&A|m&A)-1894007588:g+=(p^m^A)-899497514,x=A,A=m,m=p<<30|p>>>2,p=h,h=g}d[0]=d[0]+h|0,d[1]=d[1]+p|0,d[2]=d[2]+m|0,d[3]=d[3]+A|0,d[4]=d[4]+x|0},_doFinalize:function(){var u=this._data,f=u.words,d=this._nDataBytes*8,h=u.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),f[(h+64>>>9<<4)+15]=d,u.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var u=a.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=a._createHelper(l),r.HmacSHA1=a._createHmacHelper(l)}(),n.SHA1})}(yR)),yR.exports}var xR={exports:{}},GM;function Mb(){return GM||(GM=1,function(e,t){(function(n,r){e.exports=r(Mn())})(Ct,function(n){return function(r){var o=n,i=o.lib,a=i.WordArray,s=i.Hasher,c=o.algo,l=[],u=[];(function(){function h(x){for(var R=r.sqrt(x),y=2;y<=R;y++)if(!(x%y))return!1;return!0}function p(x){return(x-(x|0))*4294967296|0}for(var m=2,A=0;A<64;)h(m)&&(A<8&&(l[A]=p(r.pow(m,1/2))),u[A]=p(r.pow(m,1/3)),A++),m++})();var f=[],d=c.SHA256=s.extend({_doReset:function(){this._hash=new a.init(l.slice(0))},_doProcessBlock:function(h,p){for(var m=this._hash.words,A=m[0],x=m[1],R=m[2],y=m[3],g=m[4],S=m[5],O=m[6],T=m[7],M=0;M<64;M++){if(M<16)f[M]=h[p+M]|0;else{var L=f[M-15],k=(L<<25|L>>>7)^(L<<14|L>>>18)^L>>>3,F=f[M-2],N=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;f[M]=k+f[M-7]+N+f[M-16]}var E=g&S^~g&O,C=A&x^A&R^x&R,_=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),I=(g<<26|g>>>6)^(g<<21|g>>>11)^(g<<7|g>>>25),V=T+I+E+u[M]+f[M],B=_+C;T=O,O=S,S=g,g=y+V|0,y=R,R=x,x=A,A=V+B|0}m[0]=m[0]+A|0,m[1]=m[1]+x|0,m[2]=m[2]+R|0,m[3]=m[3]+y|0,m[4]=m[4]+g|0,m[5]=m[5]+S|0,m[6]=m[6]+O|0,m[7]=m[7]+T|0},_doFinalize:function(){var h=this._data,p=h.words,m=this._nDataBytes*8,A=h.sigBytes*8;return p[A>>>5]|=128<<24-A%32,p[(A+64>>>9<<4)+14]=r.floor(m/4294967296),p[(A+64>>>9<<4)+15]=m,h.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});o.SHA256=s._createHelper(d),o.HmacSHA256=s._createHmacHelper(d)}(Math),n.SHA256})}(xR)),xR.exports}var bR={exports:{}},JM;function mz(){return JM||(JM=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Mb())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=r.algo,s=a.SHA256,c=a.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var l=s._doFinalize.call(this);return l.sigBytes-=4,l}});r.SHA224=s._createHelper(c),r.HmacSHA224=s._createHmacHelper(c)}(),n.SHA224})}(bR)),bR.exports}var SR={exports:{}},zM;function BN(){return zM||(zM=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Kg())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.Hasher,a=r.x64,s=a.Word,c=a.WordArray,l=r.algo;function u(){return s.create.apply(s,arguments)}var f=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var p=0;p<80;p++)d[p]=u()})();var h=l.SHA512=i.extend({_doReset:function(){this._hash=new c.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(p,m){for(var A=this._hash.words,x=A[0],R=A[1],y=A[2],g=A[3],S=A[4],O=A[5],T=A[6],M=A[7],L=x.high,k=x.low,F=R.high,N=R.low,E=y.high,C=y.low,_=g.high,I=g.low,V=S.high,B=S.low,G=O.high,oe=O.low,W=T.high,Z=T.low,K=M.high,U=M.low,z=L,fe=k,se=F,ie=N,me=E,Ae=C,ye=_,J=I,ae=V,X=B,$=G,ue=oe,j=W,q=Z,re=K,pe=U,le=0;le<80;le++){var ce,be,Ce=d[le];if(le<16)be=Ce.high=p[m+le*2]|0,ce=Ce.low=p[m+le*2+1]|0;else{var ge=d[le-15],He=ge.high,nt=ge.low,_e=(He>>>1|nt<<31)^(He>>>8|nt<<24)^He>>>7,Oe=(nt>>>1|He<<31)^(nt>>>8|He<<24)^(nt>>>7|He<<25),Te=d[le-2],Ie=Te.high,Je=Te.low,Ge=(Ie>>>19|Je<<13)^(Ie<<3|Je>>>29)^Ie>>>6,ke=(Je>>>19|Ie<<13)^(Je<<3|Ie>>>29)^(Je>>>6|Ie<<26),Be=d[le-7],tt=Be.high,At=Be.low,ot=d[le-16],ft=ot.high,ht=ot.low;ce=Oe+At,be=_e+tt+(ce>>>0>>0?1:0),ce=ce+ke,be=be+Ge+(ce>>>0>>0?1:0),ce=ce+ht,be=be+ft+(ce>>>0>>0?1:0),Ce.high=be,Ce.low=ce}var kt=ae&$^~ae&j,It=X&ue^~X&q,An=z&se^z&me^se&me,sa=fe&ie^fe&Ae^ie&Ae,Ea=(z>>>28|fe<<4)^(z<<30|fe>>>2)^(z<<25|fe>>>7),ao=(fe>>>28|z<<4)^(fe<<30|z>>>2)^(fe<<25|z>>>7),sf=(ae>>>14|X<<18)^(ae>>>18|X<<14)^(ae<<23|X>>>9),Nc=(X>>>14|ae<<18)^(X>>>18|ae<<14)^(X<<23|ae>>>9),ws=f[le],T2=ws.high,lf=ws.low,yo=pe+Nc,Fi=re+sf+(yo>>>0>>0?1:0),yo=yo+It,Fi=Fi+kt+(yo>>>0>>0?1:0),yo=yo+lf,Fi=Fi+T2+(yo>>>0>>0?1:0),yo=yo+ce,Fi=Fi+be+(yo>>>0>>0?1:0),e1=ao+sa,k2=Ea+An+(e1>>>0>>0?1:0);re=j,pe=q,j=$,q=ue,$=ae,ue=X,X=J+yo|0,ae=ye+Fi+(X>>>0>>0?1:0)|0,ye=me,J=Ae,me=se,Ae=ie,se=z,ie=fe,fe=yo+e1|0,z=Fi+k2+(fe>>>0>>0?1:0)|0}k=x.low=k+fe,x.high=L+z+(k>>>0>>0?1:0),N=R.low=N+ie,R.high=F+se+(N>>>0>>0?1:0),C=y.low=C+Ae,y.high=E+me+(C>>>0>>0?1:0),I=g.low=I+J,g.high=_+ye+(I>>>0>>0?1:0),B=S.low=B+X,S.high=V+ae+(B>>>0>>0?1:0),oe=O.low=oe+ue,O.high=G+$+(oe>>>0>>0?1:0),Z=T.low=Z+q,T.high=W+j+(Z>>>0>>0?1:0),U=M.low=U+pe,M.high=K+re+(U>>>0>>0?1:0)},_doFinalize:function(){var p=this._data,m=p.words,A=this._nDataBytes*8,x=p.sigBytes*8;m[x>>>5]|=128<<24-x%32,m[(x+128>>>10<<5)+30]=Math.floor(A/4294967296),m[(x+128>>>10<<5)+31]=A,p.sigBytes=m.length*4,this._process();var R=this._hash.toX32();return R},clone:function(){var p=i.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});r.SHA512=i._createHelper(h),r.HmacSHA512=i._createHmacHelper(h)}(),n.SHA512})}(SR)),SR.exports}var MR={exports:{}},$M;function vz(){return $M||($M=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Kg(),BN())})(Ct,function(n){return function(){var r=n,o=r.x64,i=o.Word,a=o.WordArray,s=r.algo,c=s.SHA512,l=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var u=c._doFinalize.call(this);return u.sigBytes-=16,u}});r.SHA384=c._createHelper(l),r.HmacSHA384=c._createHmacHelper(l)}(),n.SHA384})}(MR)),MR.exports}var wR={exports:{}},jM;function gz(){return jM||(jM=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Kg())})(Ct,function(n){return function(r){var o=n,i=o.lib,a=i.WordArray,s=i.Hasher,c=o.x64,l=c.Word,u=o.algo,f=[],d=[],h=[];(function(){for(var A=1,x=0,R=0;R<24;R++){f[A+5*x]=(R+1)*(R+2)/2%64;var y=x%5,g=(2*A+3*x)%5;A=y,x=g}for(var A=0;A<5;A++)for(var x=0;x<5;x++)d[A+5*x]=x+(2*A+3*x)%5*5;for(var S=1,O=0;O<24;O++){for(var T=0,M=0,L=0;L<7;L++){if(S&1){var k=(1<>>24)&16711935|(S<<24|S>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360;var T=R[g];T.high^=O,T.low^=S}for(var M=0;M<24;M++){for(var L=0;L<5;L++){for(var k=0,F=0,N=0;N<5;N++){var T=R[L+5*N];k^=T.high,F^=T.low}var E=p[L];E.high=k,E.low=F}for(var L=0;L<5;L++)for(var C=p[(L+4)%5],_=p[(L+1)%5],I=_.high,V=_.low,k=C.high^(I<<1|V>>>31),F=C.low^(V<<1|I>>>31),N=0;N<5;N++){var T=R[L+5*N];T.high^=k,T.low^=F}for(var B=1;B<25;B++){var k,F,T=R[B],G=T.high,oe=T.low,W=f[B];W<32?(k=G<>>32-W,F=oe<>>32-W):(k=oe<>>64-W,F=G<>>64-W);var Z=p[d[B]];Z.high=k,Z.low=F}var K=p[0],U=R[0];K.high=U.high,K.low=U.low;for(var L=0;L<5;L++)for(var N=0;N<5;N++){var B=L+5*N,T=R[B],z=p[B],fe=p[(L+1)%5+5*N],se=p[(L+2)%5+5*N];T.high=z.high^~fe.high&se.high,T.low=z.low^~fe.low&se.low}var T=R[0],ie=h[M];T.high^=ie.high,T.low^=ie.low}},_doFinalize:function(){var A=this._data,x=A.words;this._nDataBytes*8;var R=A.sigBytes*8,y=this.blockSize*32;x[R>>>5]|=1<<24-R%32,x[(r.ceil((R+1)/y)*y>>>5)-1]|=128,A.sigBytes=x.length*4,this._process();for(var g=this._state,S=this.cfg.outputLength/8,O=S/8,T=[],M=0;M>>24)&16711935|(k<<24|k>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,T.push(F),T.push(k)}return new a.init(T,S)},clone:function(){for(var A=s.clone.call(this),x=A._state=this._state.slice(0),R=0;R<25;R++)x[R]=x[R].clone();return A}});o.SHA3=s._createHelper(m),o.HmacSHA3=s._createHmacHelper(m)}(Math),n.SHA3})}(wR)),wR.exports}var LR={exports:{}},qM;function Az(){return qM||(qM=1,function(e,t){(function(n,r){e.exports=r(Mn())})(Ct,function(n){/** @preserve + (c) 2012 by Cédric Mesnil. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */return function(r){var o=n,i=o.lib,a=i.WordArray,s=i.Hasher,c=o.algo,l=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=a.create([0,1518500249,1859775393,2400959708,2840853838]),p=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=c.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(O,T){for(var M=0;M<16;M++){var L=T+M,k=O[L];O[L]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var F=this._hash.words,N=h.words,E=p.words,C=l.words,_=u.words,I=f.words,V=d.words,B,G,oe,W,Z,K,U,z,fe,se;K=B=F[0],U=G=F[1],z=oe=F[2],fe=W=F[3],se=Z=F[4];for(var ie,M=0;M<80;M+=1)ie=B+O[T+C[M]]|0,M<16?ie+=A(G,oe,W)+N[0]:M<32?ie+=x(G,oe,W)+N[1]:M<48?ie+=R(G,oe,W)+N[2]:M<64?ie+=y(G,oe,W)+N[3]:ie+=g(G,oe,W)+N[4],ie=ie|0,ie=S(ie,I[M]),ie=ie+Z|0,B=Z,Z=W,W=S(oe,10),oe=G,G=ie,ie=K+O[T+_[M]]|0,M<16?ie+=g(U,z,fe)+E[0]:M<32?ie+=y(U,z,fe)+E[1]:M<48?ie+=R(U,z,fe)+E[2]:M<64?ie+=x(U,z,fe)+E[3]:ie+=A(U,z,fe)+E[4],ie=ie|0,ie=S(ie,V[M]),ie=ie+se|0,K=se,se=fe,fe=S(z,10),z=U,U=ie;ie=F[1]+oe+fe|0,F[1]=F[2]+W+se|0,F[2]=F[3]+Z+K|0,F[3]=F[4]+B+U|0,F[4]=F[0]+G+z|0,F[0]=ie},_doFinalize:function(){var O=this._data,T=O.words,M=this._nDataBytes*8,L=O.sigBytes*8;T[L>>>5]|=128<<24-L%32,T[(L+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,O.sigBytes=(T.length+1)*4,this._process();for(var k=this._hash,F=k.words,N=0;N<5;N++){var E=F[N];F[N]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return k},clone:function(){var O=s.clone.call(this);return O._hash=this._hash.clone(),O}});function A(O,T,M){return O^T^M}function x(O,T,M){return O&T|~O&M}function R(O,T,M){return(O|~T)^M}function y(O,T,M){return O&M|T&~M}function g(O,T,M){return O^(T|~M)}function S(O,T){return O<>>32-T}o.RIPEMD160=s._createHelper(m),o.HmacRIPEMD160=s._createHmacHelper(m)}(),n.RIPEMD160})}(LR)),LR.exports}var OR={exports:{}},ew;function wb(){return ew||(ew=1,function(e,t){(function(n,r){e.exports=r(Mn())})(Ct,function(n){(function(){var r=n,o=r.lib,i=o.Base,a=r.enc,s=a.Utf8,c=r.algo;c.HMAC=i.extend({init:function(l,u){l=this._hasher=new l.init,typeof u=="string"&&(u=s.parse(u));var f=l.blockSize,d=f*4;u.sigBytes>d&&(u=l.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),p=this._iKey=u.clone(),m=h.words,A=p.words,x=0;x>>2]&255;k.sigBytes-=F}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:A,padding:R}),reset:function(){var k;h.reset.call(this);var F=this.cfg,N=F.iv,E=F.mode;this._xformMode==this._ENC_XFORM_MODE?k=E.createEncryptor:(k=E.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,N&&N.words):(this._mode=k.call(E,this,N&&N.words),this._mode.__creator=k)},_doProcessBlock:function(k,F){this._mode.processBlock(k,F)},_doFinalize:function(){var k,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),F.unpad(k)),k},blockSize:128/32});var y=i.CipherParams=a.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),g=o.format={},S=g.OpenSSL={stringify:function(k){var F,N=k.ciphertext,E=k.salt;return E?F=s.create([1398893684,1701076831]).concat(E).concat(N):F=N,F.toString(u)},parse:function(k){var F,N=u.parse(k),E=N.words;return E[0]==1398893684&&E[1]==1701076831&&(F=s.create(E.slice(2,4)),E.splice(0,4),N.sigBytes-=16),y.create({ciphertext:N,salt:F})}},O=i.SerializableCipher=a.extend({cfg:a.extend({format:S}),encrypt:function(k,F,N,E){E=this.cfg.extend(E);var C=k.createEncryptor(N,E),_=C.finalize(F),I=C.cfg;return y.create({ciphertext:_,key:N,iv:I.iv,algorithm:k,mode:I.mode,padding:I.padding,blockSize:k.blockSize,formatter:E.format})},decrypt:function(k,F,N,E){E=this.cfg.extend(E),F=this._parse(F,E.format);var C=k.createDecryptor(N,E).finalize(F.ciphertext);return C},_parse:function(k,F){return typeof k=="string"?F.parse(k,this):k}}),T=o.kdf={},M=T.OpenSSL={execute:function(k,F,N,E,C){if(E||(E=s.random(64/8)),C)var _=d.create({keySize:F+N,hasher:C}).compute(k,E);else var _=d.create({keySize:F+N}).compute(k,E);var I=s.create(_.words.slice(F),N*4);return _.sigBytes=F*4,y.create({key:_,iv:I,salt:E})}},L=i.PasswordBasedCipher=O.extend({cfg:O.cfg.extend({kdf:M}),encrypt:function(k,F,N,E){E=this.cfg.extend(E);var C=E.kdf.execute(N,k.keySize,k.ivSize,E.salt,E.hasher);E.iv=C.iv;var _=O.encrypt.call(this,k,F,C.key,E);return _.mixIn(C),_},decrypt:function(k,F,N,E){E=this.cfg.extend(E),F=this._parse(F,E.format);var C=E.kdf.execute(N,k.keySize,k.ivSize,F.salt,E.hasher);E.iv=C.iv;var _=O.decrypt.call(this,k,F,C.key,E);return _}})}()})}(PR)),PR.exports}var NR={exports:{}},ow;function yz(){return ow||(ow=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Hr())})(Ct,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(i,a){var s=this._cipher,c=s.blockSize;o.call(this,i,a,c,s),this._prevBlock=i.slice(a,a+c)}}),r.Decryptor=r.extend({processBlock:function(i,a){var s=this._cipher,c=s.blockSize,l=i.slice(a,a+c);o.call(this,i,a,c,s),this._prevBlock=l}});function o(i,a,s,c){var l,u=this._iv;u?(l=u.slice(0),this._iv=void 0):l=this._prevBlock,c.encryptBlock(l,0);for(var f=0;f>24&255)===255){var c=s>>16&255,l=s>>8&255,u=s&255;c===255?(c=0,l===255?(l=0,u===255?u=0:++u):++l):++c,s=0,s+=c<<16,s+=l<<8,s+=u}else s+=1<<24;return s}function i(s){return(s[0]=o(s[0]))===0&&(s[1]=o(s[1])),s}var a=r.Encryptor=r.extend({processBlock:function(s,c){var l=this._cipher,u=l.blockSize,f=this._iv,d=this._counter;f&&(d=this._counter=f.slice(0),this._iv=void 0),i(d);var h=d.slice(0);l.encryptBlock(h,0);for(var p=0;p>>2]|=s<<24-c%4*8,r.sigBytes+=s},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Ansix923})}(XR)),XR.exports}var ER={exports:{}},uw;function Lz(){return uw||(uw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Hr())})(Ct,function(n){return n.pad.Iso10126={pad:function(r,o){var i=o*4,a=i-r.sigBytes%i;r.concat(n.lib.WordArray.random(a-1)).concat(n.lib.WordArray.create([a<<24],1))},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Iso10126})}(ER)),ER.exports}var WR={exports:{}},fw;function Oz(){return fw||(fw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Hr())})(Ct,function(n){return n.pad.Iso97971={pad:function(r,o){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,o)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(WR)),WR.exports}var VR={exports:{}},dw;function Tz(){return dw||(dw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Hr())})(Ct,function(n){return n.pad.ZeroPadding={pad:function(r,o){var i=o*4;r.clamp(),r.sigBytes+=i-(r.sigBytes%i||i)},unpad:function(r){for(var o=r.words,i=r.sigBytes-1,i=r.sigBytes-1;i>=0;i--)if(o[i>>>2]>>>24-i%4*8&255){r.sigBytes=i+1;break}}},n.pad.ZeroPadding})}(VR)),VR.exports}var UR={exports:{}},hw;function kz(){return hw||(hw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Hr())})(Ct,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(UR)),UR.exports}var YR={exports:{}},pw;function Pz(){return pw||(pw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Hr())})(Ct,function(n){return function(r){var o=n,i=o.lib,a=i.CipherParams,s=o.enc,c=s.Hex,l=o.format;l.Hex={stringify:function(u){return u.ciphertext.toString(c)},parse:function(u){var f=c.parse(u);return a.create({ciphertext:f})}}}(),n.format.Hex})}(YR)),YR.exports}var QR={exports:{}},mw;function Nz(){return mw||(mw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Ju(),zu(),Mc(),Hr())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.BlockCipher,a=r.algo,s=[],c=[],l=[],u=[],f=[],d=[],h=[],p=[],m=[],A=[];(function(){for(var y=[],g=0;g<256;g++)g<128?y[g]=g<<1:y[g]=g<<1^283;for(var S=0,O=0,g=0;g<256;g++){var T=O^O<<1^O<<2^O<<3^O<<4;T=T>>>8^T&255^99,s[S]=T,c[T]=S;var M=y[S],L=y[M],k=y[L],F=y[T]*257^T*16843008;l[S]=F<<24|F>>>8,u[S]=F<<16|F>>>16,f[S]=F<<8|F>>>24,d[S]=F;var F=k*16843009^L*65537^M*257^S*16843008;h[T]=F<<24|F>>>8,p[T]=F<<16|F>>>16,m[T]=F<<8|F>>>24,A[T]=F,S?(S=M^y[y[y[k^M]]],O^=y[y[O]]):S=O=1}})();var x=[0,1,2,4,8,16,32,64,128,27,54],R=a.AES=i.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var g=this._keyPriorReset=this._key,S=g.words,O=g.sigBytes/4,T=this._nRounds=O+6,M=(T+1)*4,L=this._keySchedule=[],k=0;k6&&k%O==4&&(y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255]):(y=y<<8|y>>>24,y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255],y^=x[k/O|0]<<24),L[k]=L[k-O]^y);for(var F=this._invKeySchedule=[],N=0;N>>24]]^p[s[y>>>16&255]]^m[s[y>>>8&255]]^A[s[y&255]]}}},encryptBlock:function(y,g){this._doCryptBlock(y,g,this._keySchedule,l,u,f,d,s)},decryptBlock:function(y,g){var S=y[g+1];y[g+1]=y[g+3],y[g+3]=S,this._doCryptBlock(y,g,this._invKeySchedule,h,p,m,A,c);var S=y[g+1];y[g+1]=y[g+3],y[g+3]=S},_doCryptBlock:function(y,g,S,O,T,M,L,k){for(var F=this._nRounds,N=y[g]^S[0],E=y[g+1]^S[1],C=y[g+2]^S[2],_=y[g+3]^S[3],I=4,V=1;V>>24]^T[E>>>16&255]^M[C>>>8&255]^L[_&255]^S[I++],G=O[E>>>24]^T[C>>>16&255]^M[_>>>8&255]^L[N&255]^S[I++],oe=O[C>>>24]^T[_>>>16&255]^M[N>>>8&255]^L[E&255]^S[I++],W=O[_>>>24]^T[N>>>16&255]^M[E>>>8&255]^L[C&255]^S[I++];N=B,E=G,C=oe,_=W}var B=(k[N>>>24]<<24|k[E>>>16&255]<<16|k[C>>>8&255]<<8|k[_&255])^S[I++],G=(k[E>>>24]<<24|k[C>>>16&255]<<16|k[_>>>8&255]<<8|k[N&255])^S[I++],oe=(k[C>>>24]<<24|k[_>>>16&255]<<16|k[N>>>8&255]<<8|k[E&255])^S[I++],W=(k[_>>>24]<<24|k[N>>>16&255]<<16|k[E>>>8&255]<<8|k[C&255])^S[I++];y[g]=B,y[g+1]=G,y[g+2]=oe,y[g+3]=W},keySize:256/32});r.AES=i._createHelper(R)}(),n.AES})}(QR)),QR.exports}var ZR={exports:{}},vw;function Cz(){return vw||(vw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Ju(),zu(),Mc(),Hr())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.WordArray,a=o.BlockCipher,s=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=s.DES=a.extend({_doReset:function(){for(var x=this._key,R=x.words,y=[],g=0;g<56;g++){var S=c[g]-1;y[g]=R[S>>>5]>>>31-S%32&1}for(var O=this._subKeys=[],T=0;T<16;T++){for(var M=O[T]=[],L=u[T],g=0;g<24;g++)M[g/6|0]|=y[(l[g]-1+L)%28]<<31-g%6,M[4+(g/6|0)]|=y[28+(l[g+24]-1+L)%28]<<31-g%6;M[0]=M[0]<<1|M[0]>>>31;for(var g=1;g<7;g++)M[g]=M[g]>>>(g-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var k=this._invSubKeys=[],g=0;g<16;g++)k[g]=O[15-g]},encryptBlock:function(x,R){this._doCryptBlock(x,R,this._subKeys)},decryptBlock:function(x,R){this._doCryptBlock(x,R,this._invSubKeys)},_doCryptBlock:function(x,R,y){this._lBlock=x[R],this._rBlock=x[R+1],p.call(this,4,252645135),p.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),p.call(this,1,1431655765);for(var g=0;g<16;g++){for(var S=y[g],O=this._lBlock,T=this._rBlock,M=0,L=0;L<8;L++)M|=f[L][((T^S[L])&d[L])>>>0];this._lBlock=T,this._rBlock=O^M}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,p.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),x[R]=this._lBlock,x[R+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(x,R){var y=(this._lBlock>>>x^this._rBlock)&R;this._rBlock^=y,this._lBlock^=y<>>x^this._lBlock)&R;this._lBlock^=y,this._rBlock^=y<192.");var y=R.slice(0,2),g=R.length<4?R.slice(0,2):R.slice(2,4),S=R.length<6?R.slice(0,2):R.slice(4,6);this._des1=h.createEncryptor(i.create(y)),this._des2=h.createEncryptor(i.create(g)),this._des3=h.createEncryptor(i.create(S))},encryptBlock:function(x,R){this._des1.encryptBlock(x,R),this._des2.decryptBlock(x,R),this._des3.encryptBlock(x,R)},decryptBlock:function(x,R){this._des3.decryptBlock(x,R),this._des2.encryptBlock(x,R),this._des1.decryptBlock(x,R)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=a._createHelper(A)}(),n.TripleDES})}(ZR)),ZR.exports}var BR={exports:{}},gw;function Iz(){return gw||(gw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Ju(),zu(),Mc(),Hr())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.StreamCipher,a=r.algo,s=a.RC4=i.extend({_doReset:function(){for(var u=this._key,f=u.words,d=u.sigBytes,h=this._S=[],p=0;p<256;p++)h[p]=p;for(var p=0,m=0;p<256;p++){var A=p%d,x=f[A>>>2]>>>24-A%4*8&255;m=(m+h[p]+x)%256;var R=h[p];h[p]=h[m],h[m]=R}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var u=this._S,f=this._i,d=this._j,h=0,p=0;p<4;p++){f=(f+1)%256,d=(d+u[f])%256;var m=u[f];u[f]=u[d],u[d]=m,h|=u[(u[f]+u[d])%256]<<24-p*8}return this._i=f,this._j=d,h}r.RC4=i._createHelper(s);var l=a.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)c.call(this)}});r.RC4Drop=i._createHelper(l)}(),n.RC4})}(BR)),BR.exports}var DR={exports:{}},Aw;function Fz(){return Aw||(Aw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Ju(),zu(),Mc(),Hr())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.StreamCipher,a=r.algo,s=[],c=[],l=[],u=a.Rabbit=i.extend({_doReset:function(){for(var d=this._key.words,h=this.cfg.iv,p=0;p<4;p++)d[p]=(d[p]<<8|d[p]>>>24)&16711935|(d[p]<<24|d[p]>>>8)&4278255360;var m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],A=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var p=0;p<4;p++)f.call(this);for(var p=0;p<8;p++)A[p]^=m[p+4&7];if(h){var x=h.words,R=x[0],y=x[1],g=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,S=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,O=g>>>16|S&4294901760,T=S<<16|g&65535;A[0]^=g,A[1]^=O,A[2]^=S,A[3]^=T,A[4]^=g,A[5]^=O,A[6]^=S,A[7]^=T;for(var p=0;p<4;p++)f.call(this)}},_doProcessBlock:function(d,h){var p=this._X;f.call(this),s[0]=p[0]^p[5]>>>16^p[3]<<16,s[1]=p[2]^p[7]>>>16^p[5]<<16,s[2]=p[4]^p[1]>>>16^p[7]<<16,s[3]=p[6]^p[3]>>>16^p[1]<<16;for(var m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,d[h+m]^=s[m]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,h=this._C,p=0;p<8;p++)c[p]=h[p];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var p=0;p<8;p++){var m=d[p]+h[p],A=m&65535,x=m>>>16,R=((A*A>>>17)+A*x>>>15)+x*x,y=((m&4294901760)*m|0)+((m&65535)*m|0);l[p]=R^y}d[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,d[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,d[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,d[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,d[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,d[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,d[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,d[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}r.Rabbit=i._createHelper(u)}(),n.Rabbit})}(DR)),DR.exports}var KR={exports:{}},Rw;function _z(){return Rw||(Rw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Ju(),zu(),Mc(),Hr())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.StreamCipher,a=r.algo,s=[],c=[],l=[],u=a.RabbitLegacy=i.extend({_doReset:function(){var d=this._key.words,h=this.cfg.iv,p=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],m=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var A=0;A<4;A++)f.call(this);for(var A=0;A<8;A++)m[A]^=p[A+4&7];if(h){var x=h.words,R=x[0],y=x[1],g=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,S=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,O=g>>>16|S&4294901760,T=S<<16|g&65535;m[0]^=g,m[1]^=O,m[2]^=S,m[3]^=T,m[4]^=g,m[5]^=O,m[6]^=S,m[7]^=T;for(var A=0;A<4;A++)f.call(this)}},_doProcessBlock:function(d,h){var p=this._X;f.call(this),s[0]=p[0]^p[5]>>>16^p[3]<<16,s[1]=p[2]^p[7]>>>16^p[5]<<16,s[2]=p[4]^p[1]>>>16^p[7]<<16,s[3]=p[6]^p[3]>>>16^p[1]<<16;for(var m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,d[h+m]^=s[m]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,h=this._C,p=0;p<8;p++)c[p]=h[p];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var p=0;p<8;p++){var m=d[p]+h[p],A=m&65535,x=m>>>16,R=((A*A>>>17)+A*x>>>15)+x*x,y=((m&4294901760)*m|0)+((m&65535)*m|0);l[p]=R^y}d[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,d[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,d[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,d[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,d[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,d[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,d[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,d[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}r.RabbitLegacy=i._createHelper(u)}(),n.RabbitLegacy})}(KR)),KR.exports}var HR={exports:{}},yw;function Xz(){return yw||(yw=1,function(e,t){(function(n,r,o){e.exports=r(Mn(),Ju(),zu(),Mc(),Hr())})(Ct,function(n){return function(){var r=n,o=r.lib,i=o.BlockCipher,a=r.algo;const s=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],l=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function f(A,x){let R=x>>24&255,y=x>>16&255,g=x>>8&255,S=x&255,O=A.sbox[0][R]+A.sbox[1][y];return O=O^A.sbox[2][g],O=O+A.sbox[3][S],O}function d(A,x,R){let y=x,g=R,S;for(let O=0;O1;--O)y=y^A.pbox[O],g=f(A,y)^g,S=y,y=g,g=S;return S=y,y=g,g=S,g=g^A.pbox[1],y=y^A.pbox[0],{left:y,right:g}}function p(A,x,R){for(let T=0;T<4;T++){A.sbox[T]=[];for(let M=0;M<256;M++)A.sbox[T][M]=l[T][M]}let y=0;for(let T=0;T=R&&(y=0);let g=0,S=0,O=0;for(let T=0;Td3.AES.encrypt(e,DN).toString(),KN=e=>d3.AES.decrypt(e,DN).toString(d3.enc.Utf8),HN=e=>new Promise((t,n)=>{const r=document.createElement("button"),o=new lz(r,{text:()=>e,action:()=>"copy",container:document.body});o.on("success",i=>{o.destroy(),t(i)}),o.on("error",i=>{o.destroy(),n(i)}),document.body.appendChild(r),r.click(),document.body.removeChild(r)}),GN=()=>new Promise((e,t)=>{var n;(n=navigator.clipboard)!=null&&n.readText?navigator.clipboard.readText().then(r=>(r||t("剪贴板为空或者不包含文本"),e(r))):t("浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V")}),Ob=e=>{let t;try{t=JSON.parse(KN(e))}catch{t=e}return t},JN=e=>{const t=e.split(`\r +`);t[t.length-1]===""&&t.pop();let n=-1;const r=[];for(const o in t){if(r[o]=t[o].split(" "),r[o].length===1)return null;if(n===-1)n=r[o].length;else if(n!==r[o].length)return null}return r},pd=e=>{const{left:t,top:n,width:r,height:o,rotate:i=0}=e,a=Math.sqrt(Math.pow(r,2)+Math.pow(o,2))/2,s=Math.atan(o/r)*180/Math.PI,c=(180-i-s)*Math.PI/180,l=(s-i)*Math.PI/180,u=t+r/2,f=n+o/2,d=[u+a*Math.cos(c),u+a*Math.cos(l),u-a*Math.cos(c),u-a*Math.cos(l)],h=[f-a*Math.sin(c),f-a*Math.sin(l),f+a*Math.sin(c),f+a*Math.sin(l)];return{xRange:[Math.min(...d),Math.max(...d)],yRange:[Math.min(...h),Math.max(...h)]}},zf=e=>{const{xRange:t,yRange:n}=pd({left:e.left,top:e.top,width:e.width,height:e.height,rotate:0}),{xRange:r,yRange:o}=pd({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate});return{offsetX:r[0]-t[0],offsetY:o[0]-n[0]}},wa=e=>{let t,n,r,o;if(e.type==="line")t=e.left,n=e.left+Math.max(e.start[0],e.end[0]),r=e.top,o=e.top+Math.max(e.start[1],e.end[1]);else if("rotate"in e&&e.rotate){const{left:i,top:a,width:s,height:c,rotate:l}=e,{xRange:u,yRange:f}=pd({left:i,top:a,width:s,height:c,rotate:l});t=u[0],n=u[1],r=f[0],o=f[1]}else t=e.left,n=e.left+e.width,r=e.top,o=e.top+e.height;return{minX:t,maxX:n,minY:r,maxY:o}},nc=e=>{const t=[],n=[],r=[],o=[];e.forEach(l=>{const{minX:u,maxX:f,minY:d,maxY:h}=wa(l);t.push(u),n.push(d),r.push(f),o.push(h)});const i=Math.min(...t),a=Math.max(...r),s=Math.min(...n),c=Math.max(...o);return{minX:i,maxX:a,minY:s,maxY:c}},Yv=e=>{const t=[];return e.forEach(n=>{const r=t.findIndex(o=>o.value===n.value);if(r===-1)t.push(n);else{const o=t[r],i=Math.min(o.range[0],n.range[0]),a=Math.max(o.range[1],n.range[1]),s=[i,a],c={value:n.value,range:s};t[r]=c}}),t},Wz=e=>{const t={};for(const n of e)t[n.id]=xn(10);return t},h3=e=>{const t={},n={};for(const r of e){const o=r.groupId;o&&!t[o]&&(t[o]=xn(10)),n[r.id]=xn(10)}return{groupIdMap:t,elIdMap:n}},zN=e=>{const t=it(e);return[t.setAlpha(.3).toRgbString(),t.setAlpha(.1).toRgbString()]},Tb=e=>{const t=e.start.join(","),n=e.end.join(",");if(e.broken){const r=e.broken.join(",");return`M${t} L${r} L${n}`}else if(e.curve){const r=e.curve.join(",");return`M${t} Q${r} ${n}`}else if(e.cubic){const[r,o]=e.cubic,i=r.join(","),a=o.join(",");return`M${t} C${i} ${a} ${n}`}return`M${t} L${n}`},Vz=(e,t)=>{const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom};var Uz={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function Yz(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function Qz(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],i=t.theme||n.theme;switch(i){case"outline":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),o.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),o.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return{size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:o,id:e}}var Zz=Symbol("icon-context");function ze(e,t,n){var r={name:"icon-"+e,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","spin"],setup:function(i){var a=Yz(),s=qo(Zz,Uz);return function(){var c=i.size,l=i.strokeWidth,u=i.strokeLinecap,f=i.strokeLinejoin,d=i.theme,h=i.fill,p=i.spin,m=Qz(a,{size:c,strokeWidth:l,strokeLinecap:u,strokeLinejoin:f,theme:d,fill:h},s),A=[s.prefix+"-icon"];return A.push(s.prefix+"-icon-"+e),t&&s.rtl&&A.push(s.prefix+"-icon-rtl"),p&&A.push(s.prefix+"-icon-spin"),w("span",{class:A.join(" ")},[n(m)])}}};return r}const Bz=ze("add-text",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M4 8H32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M28 21H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M18 42L18 8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M36 42L36 21",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])}),Dz=ze("align-bottom",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"17",y:"6",width:"14",height:"28",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 42H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Kz=ze("align-horizontally",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"7",y:"17",width:"34",height:"14",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Hz=ze("align-left",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"14.5",y:"17",width:"28",height:"14",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6.5 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Gz=ze("align-right",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"6",y:"17",width:"28",height:"14",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Jz=ze("align-text-both",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M42 19H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 9H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 29H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 39H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),zz=ze("align-text-bottom-one",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34 27H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M27 34H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),$z=ze("align-text-center",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M36 19H12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 9H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 29H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M36 39H12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),jz=ze("align-text-left",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M42 9H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34 19H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 29H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34 39H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),qz=ze("align-text-middle-one",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34 20H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M26 27H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),e$=ze("align-text-right",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M42 9H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 19H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 29H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 39H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),t$=ze("align-text-top-one",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M26 20H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34 13H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),n$=ze("align-top",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"17",y:"14.5",width:"14",height:"28",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 6.5H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),r$=ze("align-vertically",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"17",y:"7",width:"14",height:"34",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 24H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),o$=ze("arrow-circle-left",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32.4917 24.5H14.4917",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M23.4917 15.5L14.4917 24.5L23.4917 33.5",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),i$=ze("attention",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 37C25.3807 37 26.5 35.8807 26.5 34.5C26.5 33.1193 25.3807 32 24 32C22.6193 32 21.5 33.1193 21.5 34.5C21.5 35.8807 22.6193 37 24 37Z",fill:e.colors[2]},null),w("path",{d:"M24 12V28",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),a$=ze("back",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 40.8361C39.1069 34.8632 34.7617 31.4739 30.9644 30.6682C27.1671 29.8625 23.5517 29.7408 20.1182 30.303V41L4 23.5453L20.1182 7V17.167C26.4667 17.2172 31.8638 19.4948 36.3095 24C40.7553 28.5052 43.3187 34.1172 44 40.8361Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),s$=ze("background-color",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37 37C39.2091 37 41 35.2091 41 33C41 31.5272 39.6667 29.5272 37 27C34.3333 29.5272 33 31.5272 33 33C33 35.2091 34.7909 37 37 37Z",fill:e.colors[0]},null),w("path",{d:"M20.8535 5.50439L24.389 9.03993",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M23.6818 8.33281L8.12549 23.8892L19.4392 35.2029L34.9955 19.6465L23.6818 8.33281Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 20.0732L28.961 25.6496",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M4 43H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])}),l$=ze("bring-to-front",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M41 18H19C18.4477 18 18 18.4477 18 19V41C18 41.5523 18.4477 42 19 42H41C41.5523 42 42 41.5523 42 41V19C42 18.4477 41.5523 18 41 18Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M9.96906 6H6V10.0336",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M9.99705 30H6V26.012",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M26.0023 6H30V10.0152",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16.0283 6H20.0083",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 16C6 18.6536 6 19.9869 6 20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M30 16C30 18.6765 30 19.3456 30 18.0074",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M15.9922 30H17.9996",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])}),c$=ze("bring-to-front-one",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M14 21V34H27",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M21 14H34V27",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M5 21V5H21V21H5Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M27 43V27H43V43H27Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),u$=ze("chart-histogram",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 6V42H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 30V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M22 22V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M30 6V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M38 14V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),f$=ze("chart-histogram-one",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 6V42H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M18 34H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M26 26H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 18H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34 10L14 10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),d$=ze("chart-line",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 6V42H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 34L22 18L32 27L42 6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),h$=ze("chart-line-area",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 6V42H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 34L22 18L32 27L42 6V34H14Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),p$=ze("chart-pie",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M44 24C44 35.0457 35.0457 44 24 44C12.9543 44 4 35.0457 4 24C4 12.9543 12.9543 4 24 4V24H44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M43.0844 18H30V4.91553C36.2202 6.86917 41.1308 11.7798 43.0844 18Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),m$=ze("chart-proportion",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M16.3446 5.51758C13.9 6.53124 11.7001 8.01574 9.85786 9.85797C6.23858 13.4773 4 18.4773 4 24.0001C4 35.0458 12.9543 44.0001 24 44.0001V44.0001C29.5228 44.0001 34.5228 41.7615 38.1421 38.1422C39.9844 36.3 41.4689 34.1001 42.4825 31.6555",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 24H44C44 12.9543 35.0457 4 24 4L24 24Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),v$=ze("chart-ring",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M43.7756 20.9938C42.4735 12.3555 35.6463 5.5277 27.0084 4.22461M20.9757 4.22702C11.3651 5.68478 4 13.9822 4 23.9998C4 34.0212 11.3705 42.321 20.9863 43.7743C21.9692 43.9228 22.9756 43.9998 24 43.9998C25.0209 43.9998 26.024 43.9233 27.0038 43.7758C35.6458 42.4741 42.4762 35.6427 43.7764 27.0003",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 16C19.5817 16 16 19.5817 16 24C16 28.4183 19.5817 32 24 32C28.4183 32 32 28.4183 32 24C32 19.5817 28.4183 16 24 16Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),g$=ze("chart-scatter",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 6V42H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 24C22.2091 24 24 22.2091 24 20C24 17.7909 22.2091 16 20 16C17.7909 16 16 17.7909 16 20C16 22.2091 17.7909 24 20 24Z",fill:e.colors[0]},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37 16C39.7614 16 42 13.7614 42 11C42 8.23858 39.7614 6 37 6C34.2386 6 32 8.23858 32 11C32 13.7614 34.2386 16 37 16Z",fill:e.colors[0]},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 36C16.6569 36 18 34.6569 18 33C18 31.3431 16.6569 30 15 30C13.3431 30 12 31.3431 12 33C12 34.6569 13.3431 36 15 36Z",fill:e.colors[0]},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 32C34.6569 32 36 30.6569 36 29C36 27.3431 34.6569 26 33 26C31.3431 26 30 27.3431 30 29C30 30.6569 31.3431 32 33 32Z",fill:e.colors[0]},null)])}),A$=ze("check-one",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 24L22 30L34 18",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),R$=ze("clear",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 5.91406H28V13.9141H43V21.9141H5V13.9141H20V5.91406Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M8 40H40V22H8V40Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 39.8976V33.9141",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 39.8977V33.8977",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32 39.8976V33.9141",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 40H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),y$=ze("click",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 4V12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22 22L42 26L36 30L42 36L36 42L30 36L26 42L22 22Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M38.1421 9.85789L32.4853 15.5147",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M9.85787 38.1421L15.5147 32.4853",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M4 24H12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M9.85795 9.85787L15.5148 15.5147",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),x$=ze("close",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M8 8L40 40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M8 40L40 8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),b$=ze("close-one",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M29.6567 18.3432L18.343 29.6569",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M18.3433 18.3432L29.657 29.6569",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),S$=ze("close-small",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M14 14L34 34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 34L34 14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),M$=ze("code",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M16 13L4 25.4322L16 37",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32 13L44 25.4322L32 37",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M28 4L21 44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])}),w$=ze("color-filter",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 40.9444C26.123 42.8446 28.9266 44 32 44C38.6274 44 44 38.6274 44 32C44 26.4085 40.1757 21.7102 35 20.3781",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M13 20.3781C7.82432 21.7102 4 26.4085 4 32C4 38.6274 9.37258 44 16 44C22.6274 44 28 38.6274 28 32C28 30.4506 27.7063 28.9697 27.1716 27.6101",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 28C30.6274 28 36 22.6274 36 16C36 9.37258 30.6274 4 24 4C17.3726 4 12 9.37258 12 16C12 22.6274 17.3726 28 24 28Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),L$=ze("connection",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M39 34L44 39L39 44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 8L20 8C22.2091 8 24 9.79086 24 12V35C24 37.2091 25.7909 39 28 39H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),O$=ze("copy",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),T$=ze("delete",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M20 20V33",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M28 20V33",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M4 10H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),k$=ze("down",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M36 18L24 30L12 18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),P$=ze("download",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 24.0083V42H42V24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M33 23L24 32L15 23",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M23.9917 6V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),N$=ze("edit",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M7 42H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M11 26.7199V34H18.3172L39 13.3081L31.6951 6L11 26.7199Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),C$=ze("effects",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24.9507 42.3603L30.4164 30.3695L43.1046 26.6501L33.3383 17.7699L33.7059 4.60732L22.2044 11.1099L9.74329 6.69439L12.4013 19.5934L4.33228 30.027L17.4766 31.4965L24.9507 42.3603Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M36.1777 36.0537L44.1777 44.0179",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),I$=ze("erase",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M4 42H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M31 4L7 28L13 34H21L41 14L31 4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),F$=ze("fill",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("rect",{x:"14",y:"14",width:"20",height:"20",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34 23L23 34",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M25 14L14 25",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34 14L14 34",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 22V34H26",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M22 14H34V26",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),_$=ze("flip-horizontally",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M4 34L16 12V34H4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M44 34H32V12L44 34Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),X$=ze("flip-vertically",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M42 24L6 24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 4L36 16H14V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 44V32H36L14 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),E$=ze("font-size",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M8 10.9333L8 6H40V10.9333",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 42H32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),W$=ze("format",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"8",y:"24",width:"32",height:"18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M4 13H18V6H30V13H44V24H4V13Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 32L16 42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])}),V$=ze("format-brush",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M34 5H6V20H34V5Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34.0251 12H43V28.1014L19 31.2004V43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),U$=ze("formula",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M40 9L37 6H8L26 24L8 42H37L40 39",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Y$=ze("full-screen",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M33 6H42V15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 33V42H33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M15 42H6V33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 15V6H15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Q$=ze("full-screen-one",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 6L16 15.8995",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 41.8995L16 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42.0001 41.8995L32.1006 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M41.8995 6L32 15.8995",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M33 6H42V15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 33V42H33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M15 42H6V33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 15V6H15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Z$=ze("full-screen-play",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M16 40H6C4.89543 40 4 39.1046 4 38V10C4 8.89543 4.89543 8 6 8H42C43.1046 8 44 8.89543 44 10V16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 24H26C24.8954 24 24 24.8954 24 26V38C24 39.1046 24.8954 40 26 40H42C43.1046 40 44 39.1046 44 38V26C44 24.8954 43.1046 24 42 24Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),B$=ze("fullwidth",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M42 6V42M17 19L12 24M12 24L17 29M12 24H36M31 19L36 24M36 24L31 29M6 6L6 42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),D$=ze("github",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4ZM0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24Z",fill:e.colors[0]},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.1833 45.4716C18.9898 45.2219 18.9898 42.9973 19.1833 38.798C17.1114 38.8696 15.8024 38.7258 15.2563 38.3667C14.437 37.828 13.6169 36.1667 12.8891 34.9959C12.1614 33.8251 10.5463 33.64 9.89405 33.3783C9.24182 33.1165 9.07809 32.0496 11.6913 32.8565C14.3044 33.6634 14.4319 35.8607 15.2563 36.3745C16.0806 36.8883 18.0515 36.6635 18.9448 36.2519C19.8382 35.8403 19.7724 34.3078 19.9317 33.7007C20.1331 33.134 19.4233 33.0083 19.4077 33.0037C18.5355 33.0037 13.9539 32.0073 12.6955 27.5706C11.437 23.134 13.0581 20.2341 13.9229 18.9875C14.4995 18.1564 14.4485 16.3852 13.7699 13.6737C16.2335 13.3589 18.1347 14.1343 19.4734 16.0001C19.4747 16.0108 21.2285 14.9572 24.0003 14.9572C26.772 14.9572 27.7553 15.8154 28.5142 16.0001C29.2731 16.1848 29.88 12.7341 34.5668 13.6737C33.5883 15.5969 32.7689 18.0001 33.3943 18.9875C34.0198 19.9749 36.4745 23.1147 34.9666 27.5706C33.9614 30.5413 31.9853 32.3523 29.0384 33.0037C28.7005 33.1115 28.5315 33.2855 28.5315 33.5255C28.5315 33.8856 28.9884 33.9249 29.6465 35.6117C30.0853 36.7362 30.117 39.948 29.7416 45.247C28.7906 45.4891 28.0508 45.6516 27.5221 45.7347C26.5847 45.882 25.5669 45.9646 24.5669 45.9965C23.5669 46.0284 23.2196 46.0248 21.837 45.8961C20.9154 45.8103 20.0308 45.6688 19.1833 45.4716Z",fill:e.colors[0]},null)])}),K$=ze("graphic-design",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M19 32C11.268 32 5 25.732 5 18C5 10.268 11.268 4 19 4C26.732 4 33 10.268 33 18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M44 18H18V44H44V18Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),H$=ze("group",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M12 4H4V12H12V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M44 36H36V44H44V36Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 36H4V44H12V36Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M44 4H36V12H44V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M8 36V12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M40 36V12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 8H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 40H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 16H25.6V22.4H32V32H22.4V25.6H16V16Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),G$=ze("hamburger-button",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M7.94971 11.9497H39.9497",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M7.94971 23.9497H39.9497",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M7.94971 35.9497H39.9497",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),J$=ze("high-light",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 44L6 25H12V17H36V25H42V44H6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M17 17V8L31 4V17",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),z$=ze("indent-left",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 9H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M19 19H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M19 29H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M11 19L6 24L11 29",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 39H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),$$=ze("indent-right",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M42 9H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M29 19H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M29 29H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M37 19L42 24L37 29",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42 39H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),j$=ze("info",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]},null),w("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M21 34H28",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),q$=ze("insert-table",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M39.3 6H8.7C7.20883 6 6 7.20883 6 8.7V39.3C6 40.7912 7.20883 42 8.7 42H39.3C40.7912 42 42 40.7912 42 39.3V8.7C42 7.20883 40.7912 6 39.3 6Z",stroke:e.colors[0],"stroke-width":e.strokeWidth},null),w("path",{d:"M18 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M30 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M6 18H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M6 30H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])}),ej=ze("left",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M31 36L19 24L31 12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),tj=ze("left-two",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 5L6 24L24 43L24 31L42 31V17H24V5Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),nj=ze("link-one",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M26.2401 16.373L17.1001 7.23303C14.4388 4.57168 10.0653 4.6303 7.33158 7.36397C4.59791 10.0976 4.53929 14.4712 7.20064 17.1325L15.1359 25.0678",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32.9027 23.0031L40.838 30.9384C43.4994 33.5998 43.4407 37.9733 40.7071 40.707C37.9734 43.4407 33.5999 43.4993 30.9385 40.8379L21.7985 31.6979",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M26.1093 26.1416C28.843 23.4079 28.9016 19.0344 26.2403 16.373",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M21.7989 21.7984C19.0652 24.5321 19.0066 28.9056 21.6679 31.5669",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),rj=ze("list",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M5 10L8 13L14 7",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M5 24L8 27L14 21",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M5 38L8 41L14 35",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M21 24H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M21 38H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M21 10H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),oj=ze("list-view",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"4",y:"6",width:"40",height:"36",rx:"3",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M4 14H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M20 24H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M20 32H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 24H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 32H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),ij=ze("lock",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 30V36",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),aj=ze("logout",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M23.9917 6H6V42H24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 23.9917H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),sj=ze("magic",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M20.1005 8.1005L24.3431 12.3431M30 4V10V4ZM39.8995 8.1005L35.6569 12.3431L39.8995 8.1005ZM44 18H38H44ZM39.8995 27.8995L35.6569 23.6569L39.8995 27.8995ZM30 32V26V32ZM20.1005 27.8995L24.3431 23.6569L20.1005 27.8995ZM16 18H22H16Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M29.5856 18.4143L5.54395 42.4559",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),lj=ze("minus",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M10.5 24L38.5 24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),cj=ze("move-one",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M8 6L43 25L24 27L13.9948 44L8 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),uj=ze("needle",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("g",{"clip-path":"url(#"+e.id+"3d50a8e2)"},[w("path",{d:"M39 23L25 9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M43.9995 17L30.9995 4",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34.999 18.999L39.999 13.999",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M28.999 12.999L33.999 7.99902",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M11 37L6 42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M27.9999 12.0001L11.9999 27.9998L10.9999 37L19.9999 35.9998L35.9999 20.0001L27.9999 12.0001Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)]),w("defs",null,[w("clipPath",{id:e.id+"3d50a8e2"},[w("rect",{width:"48",height:"48",fill:e.colors[2]},null)])])])}),fj=ze("next",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 40.8361C8.89307 34.8632 13.2383 31.4739 17.0356 30.6682C20.8329 29.8625 24.4483 29.7408 27.8818 30.303V41L44 23.5453L27.8818 7V17.167C21.5333 17.2172 16.1362 19.4948 11.6905 24C7.24474 28.5052 4.68126 34.1172 4 40.8361Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),dj=ze("off-screen-one",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 6L16 15.8995",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 41.8995L16 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M42.0001 41.8995L32.1006 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M41.8995 6L32 15.8995",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32 7V16H41",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 7V16H7",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 41V32H7",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32 41V32H40.8995",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),hj=ze("ordered-list",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M9 4V13",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 13H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 27H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 19.9998C6 19.9998 9 16.9998 11 19.9998C13 22.9999 6 26.9998 6 26.9998",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6.00016 34.5001C6.00016 34.5001 8.00016 31.5 11.0002 33.5C14.0002 35.5 11.0002 38 11.0002 38C11.0002 38 14.0002 40.5 11.0002 42.5C8.00015 44.5 6.00015 41.5 6.00015 41.5",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M11 38H9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M9 4L6 6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M21 24H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M21 38H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M21 10H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),pj=ze("pause",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M16 12V36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32 12V36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),mj=ze("picture",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M18 23C20.7614 23 23 20.7614 23 18C23 15.2386 20.7614 13 18 13C15.2386 13 13 15.2386 13 18C13 20.7614 15.2386 23 18 23Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M27.7901 26.2194C28.6064 25.1269 30.2528 25.1538 31.0329 26.2725L39.8077 38.8561C40.7322 40.182 39.7835 42.0001 38.1671 42.0001H16L27.7901 26.2194Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),vj=ze("platte",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 44C29.9601 44 26.3359 35.136 30 31C33.1264 27.4709 44 29.0856 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M28 17C29.6569 17 31 15.6569 31 14C31 12.3431 29.6569 11 28 11C26.3431 11 25 12.3431 25 14C25 15.6569 26.3431 17 28 17Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 21C17.6569 21 19 19.6569 19 18C19 16.3431 17.6569 15 16 15C14.3431 15 13 16.3431 13 18C13 19.6569 14.3431 21 16 21Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M17 34C18.6569 34 20 32.6569 20 31C20 29.3431 18.6569 28 17 28C15.3431 28 14 29.3431 14 31C14 32.6569 15.3431 34 17 34Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),gj=ze("play-one",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),Aj=ze("plus",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24.0605 10L24.0239 38",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M10 24L38 24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Rj=ze("power",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M14.5 8C13.8406 8.37652 13.2062 8.79103 12.6 9.24051C11.5625 10.0097 10.6074 10.8814 9.75 11.8402C6.79377 15.1463 5 19.4891 5 24.2455C5 34.6033 13.5066 43 24 43C34.4934 43 43 34.6033 43 24.2455C43 19.4891 41.2062 15.1463 38.25 11.8402C37.3926 10.8814 36.4375 10.0097 35.4 9.24051C34.7938 8.79103 34.1594 8.37652 33.5 8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 4V24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),yj=ze("ppt",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M4 8H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 8H40V34H8V8Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M22 16L27 21L22 26",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 42L24 34L32 42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),xj=ze("preview-close",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M6 16C6.63472 17.2193 7.59646 18.3504 8.82276 19.3554C12.261 22.1733 17.779 24 24 24C30.221 24 35.739 22.1733 39.1772 19.3554C40.4035 18.3504 41.3653 17.2193 42 16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M28.9775 24L31.048 31.7274",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M37.3535 21.3536L43.0103 27.0104",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M5.00004 27.0103L10.6569 21.3534",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16.9278 31.7276L18.9983 24.0001",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),bj=ze("preview-open",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),Sj=ze("quote",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.8533 9.11587C11.3227 13.9521 7.13913 19.5811 6.30256 26.0028C5.00021 35.9999 13.9404 40.8932 18.4703 36.4966C23.0002 32.1 20.2848 26.5195 17.0047 24.9941C13.7246 23.4686 11.7187 23.9999 12.0686 21.9614C12.4185 19.923 17.0851 14.2712 21.1849 11.6391C21.4569 11.4078 21.5604 10.959 21.2985 10.6185C21.1262 10.3946 20.7883 9.95545 20.2848 9.30102C19.8445 8.72875 19.4227 8.75017 18.8533 9.11587Z",fill:e.colors[0]},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.6789 9.11587C31.1484 13.9521 26.9648 19.5811 26.1282 26.0028C24.8259 35.9999 33.7661 40.8932 38.296 36.4966C42.8259 32.1 40.1105 26.5195 36.8304 24.9941C33.5503 23.4686 31.5443 23.9999 31.8943 21.9614C32.2442 19.923 36.9108 14.2712 41.0106 11.6391C41.2826 11.4078 41.3861 10.959 41.1241 10.6185C40.9519 10.3946 40.614 9.95545 40.1105 9.30102C39.6702 8.72875 39.2484 8.75017 38.6789 9.11587Z",fill:e.colors[0]},null)])}),Mj=ze("right",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M19 12L31 24L19 36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),wj=ze("right-two",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 43L42 24L24 5L24 17L6 17V31H24V43Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Lj=ze("rotate",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M12 24H42V42H12V24Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 8V17H15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M38.4747 13.2985C35.1956 8.87049 29.933 6 24 6C18.1788 6 13.0029 8.76334 9.71272 13.0498L6 17",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Oj=ze("round",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("circle",{cx:"24",cy:"24",r:"20",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth},null)])}),Tj=ze("row-height",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M16 35L10 41L4 35",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 13L10 7L4 13",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M10 7V41",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M44 9H22",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M36 19H22",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M44 29H22",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M36 39H22",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),kj=ze("search",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M21 38C30.3888 38 38 30.3888 38 21C38 11.6112 30.3888 4 21 4C11.6112 4 4 11.6112 4 21C4 30.3888 11.6112 38 21 38Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M26.657 14.3431C25.2093 12.8954 23.2093 12 21.0001 12C18.791 12 16.791 12.8954 15.3433 14.3431",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M33.2216 33.2217L41.7069 41.707",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Pj=ze("send-to-back",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M14 21H5V5H21V14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32 27H43V43H27V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 32V14H32V32H14Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),Nj=ze("sent-to-back",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M30 18H41C41.5523 18 42 18.4477 42 19V41C42 41.5523 41.5523 42 41 42H19C18.4477 42 18 41.5523 18 41V30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M9.96906 6H6V10.0336",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M9.99705 30H6V26.012",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M26 30H29.9971V26.012",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M26.0023 6H30V9.99785",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16.0283 6H20.0083",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M6 16V20.0148",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M30 16V20.0148",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M15.9922 30H19.9996",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Cj=ze("square",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth},null)])}),Ij=ze("stopwatch-start",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 44C33.3888 44 41 36.3888 41 27C41 17.6112 33.3888 10 24 10C14.6112 10 7 17.6112 7 27C7 36.3888 14.6112 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M18 4H30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 19V27",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32 27H24",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 4V8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Fj=ze("strikethrough",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M5 24H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 24C40 30 34 44 24 44C13.9999 44 12 36 12 36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M35.9999 12C35.9999 12 33 4 23.9999 4C14.9999 4 11.4359 11.5995 15.6096 18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 36C12 36 15.9999 44 24 44C32 44 36.564 36.4005 32.3903 30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),_j=ze("tailoring",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M12 4V36H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M20 12H36V28",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 12H4",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M36 44V36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])}),Xj=ze("text",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M16 19V16H32V19",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M22 34H26",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 18L24 34",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Ej=ze("text-bold",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 24C29.5056 24 33.9688 19.5228 33.9688 14C33.9688 8.47715 29.5056 4 24 4H11V24H24Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28.0312 44C33.5368 44 38 39.5228 38 34C38 28.4772 33.5368 24 28.0312 24H11V44H28.0312Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Wj=ze("text-italic",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M20 6H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M12 42H28",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M29 5.95215L19 41.9998",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Vj=ze("text-rotation-down",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M29 35L21 31.3333M29 13L21 16.6667M21 16.6667L17 18.5L5 24L17 29.5L21 31.3333M21 16.6667V31.3333",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M37 6V42L43 36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Uj=ze("text-rotation-none",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M13 29L16.6667 21M35 29L31.3333 21M31.3333 21L29.5 17L24 5L18.5 17L16.6667 21M31.3333 21H16.6667",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 37H42L36 43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Yj=ze("text-underline",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M8 44H40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M37 6.09717C37 12.7638 37 15.3335 37 22.0002C37 29.1799 31.1797 35.0002 24 35.0002C16.8203 35.0002 11 29.1799 11 22.0002C11 15.3335 11 12.7638 11 6.09717",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])}),Qj=ze("theme",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M18 6C18 9.31371 20.6863 12 24 12C27.3137 12 30 9.31371 30 6H35.4545L42 15.8182L36.2727 20.7273V42H11.7273V20.7273L6 15.8182L12.5455 6H18Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),Zj=ze("transform",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("circle",{cx:"13.7146",cy:"13.7141",r:"6.85714",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("circle",{cx:"34.2859",cy:"34.2854",r:"6.85714",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24.001 44C12.9553 44 4.00098 35.0457 4.00098 24L10.6676 27.3333",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24.001 4C35.0467 4 44.001 12.9543 44.001 24L37.3343 20.6667",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Bj=ze("undo",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.61407 12.9301 6 17 6 17",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 9V17H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Dj=ze("ungroup",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M11.2727 4H4V11.2727H11.2727V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M43.9998 36.7271H36.7271V43.9998H43.9998V36.7271Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M11.2727 24H4V31.2727H11.2727V24Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M23.9998 36.7271H16.7271V43.9998H23.9998V36.7271Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M31.2727 4H24V11.2727H31.2727V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M43.9998 16.7271H36.7271V23.9998H43.9998V16.7271Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M11.2729 7.63623H24.0002",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 40.3638H36.7273",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M11.2729 27.6366H27.6366V11.2729",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M28.8275 20.3633H36.7269M20.3633 36.7269V27.6282V36.7269Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M7.63672 11.2725V23.9997",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M40.3633 24V36.7273",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Kj=ze("unlock",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M24 30V36",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Hj=ze("up",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M13 30L25 18L37 30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Gj=ze("vertical-spacing-between-items",!1,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M8 6V12H40V6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M14 24H34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),w("path",{d:"M8 42V36H40V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Jj=ze("video-two",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M20.5 28V21.9378L25.75 24.9689L31 28L25.75 31.0311L20.5 34.0622V28Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M6 15H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M33 6L27 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M21 6L15 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),zj=ze("volume-mute",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("rect",{opacity:"0.01",x:"30",y:"18",width:"13",height:"13",fill:e.colors[2]},null),w("mask",{id:e.id+"603476ab",maskUnits:"userSpaceOnUse",x:"30",y:"18",width:"13",height:"13",style:{maskType:"alpha"}},[w("rect",{x:"30",y:"18",width:"13",height:"13",fill:e.colors[2]},null)]),w("g",{mask:"url(#"+e.id+"603476ab)"},[w("path",{d:"M40.7348 20.2858L32.2495 28.7711",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32.2496 20.2858L40.7349 28.7711",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)]),w("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])}),$j=ze("volume-notice",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])}),jj=ze("volume-small",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),qj=ze("write",!0,function(e){return w("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[w("path",{d:"M5.32497 43.4996L13.81 43.4998L44.9227 12.3871L36.4374 3.90186L5.32471 35.0146L5.32497 43.4996Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),w("path",{d:"M27.9521 12.3872L36.4374 20.8725",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),Qv={IconPlayOne:gj,IconFullScreenPlay:Z$,IconLock:ij,IconUnlock:Kj,IconPpt:yj,IconFormat:W$,IconPicture:mj,IconFullScreen:Y$,IconList:rj,IconOrderedList:hj,IconFlipVertically:X$,IconFlipHorizontally:_$,IconFontSize:E$,IconCode:M$,IconTextBold:Ej,IconTextItalic:Wj,IconTextUnderline:Yj,IconStrikethrough:Fj,IconEdit:N$,IconQuote:Sj,IconBackgroundColor:s$,IconGroup:H$,IconUngroup:Dj,IconBack:a$,IconNext:fj,IconFullwidth:B$,IconAlignTop:n$,IconAlignLeft:Hz,IconAlignRight:Gz,IconAlignBottom:Dz,IconAlignVertically:r$,IconAlignHorizontally:Kz,IconBringToFront:l$,IconSendToBack:Pj,IconAlignTextLeft:jz,IconAlignTextRight:e$,IconAlignTextCenter:$z,IconAlignTextBoth:Jz,IconRowHeight:Tj,IconWrite:qj,IconInsertTable:q$,IconAddText:Bz,IconFill:F$,IconTailoring:_j,IconEffects:C$,IconColorFilter:w$,IconUp:Hj,IconDown:k$,IconPlus:Aj,IconMinus:lj,IconConnection:L$,IconBringToFrontOne:c$,IconSentToBack:Nj,IconGithub:D$,IconChartProportion:m$,IconChartHistogram:u$,IconChartHistogramOne:f$,IconChartLineArea:h$,IconChartRing:v$,IconChartScatter:g$,IconChartLine:d$,IconChartPie:p$,IconText:Xj,IconRotate:Lj,IconLeftTwo:tj,IconRightTwo:wj,IconPlatte:vj,IconClose:x$,IconCloseSmall:S$,IconUndo:Bj,IconTransform:Zj,IconClick:y$,IconTheme:Qj,IconArrowCircleLeft:o$,IconGraphicDesign:K$,IconLogout:aj,IconErase:I$,IconClear:R$,IconAlignTextTopOne:t$,IconAlignTextBottomOne:zz,IconAlignTextMiddleOne:qz,IconPause:pj,IconVolumeMute:zj,IconVolumeNotice:$j,IconVolumeSmall:jj,IconVideoTwo:Jj,IconFormula:U$,IconLinkOne:nj,IconFullScreenOne:Q$,IconOffScreenOne:dj,IconPower:Rj,IconListView:oj,IconMagic:sj,IconHighLight:J$,IconDownload:P$,IconIndentLeft:z$,IconIndentRight:$$,IconVerticalSpacingBetweenItems:Gj,IconCopy:O$,IconDelete:T$,IconSquare:Cj,IconRound:Oj,IconNeedle:uj,IconTextRotationNone:Uj,IconTextRotationDown:Vj,IconFormatBrush:V$,IconPreviewOpen:bj,IconPreviewClose:xj,IconStopwatchStart:Ij,IconSearch:kj,IconLeft:ej,IconRight:Mj,IconMoveOne:cj,IconHamburgerButton:G$,IconAttention:i$,IconCheckOne:A$,IconCloseOne:b$,IconInfo:j$},eq={install(e){for(const t of Object.keys(Qv))e.component(t,Qv[t])}},tq=["id"],nq={class:"icons"},rq={class:"content"},oq={key:0,class:"title"},iq={class:"description"},aq={key:0,class:"control"},sq=Fe({__name:"Message",props:{id:{},message:{},type:{default:"success"},title:{default:""},duration:{default:3e3},closable:{type:Boolean,default:!1}},emits:["close","destroy"],setup(e,{expose:t,emit:n}){const{IconAttention:r,IconCheckOne:o,IconCloseOne:i,IconInfo:a,IconCloseSmall:s}=Qv,c=e,l=n,u=ve(!0),f=ve(null),d=()=>{c.duration<=0||(f.value=setTimeout(p,c.duration))},h=()=>{f.value&&clearTimeout(f.value)},p=()=>u.value=!1;return zx(()=>{h()}),Gt(()=>{d()}),t({close:p}),(m,A)=>(Q(),Le(Nu,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:A[3]||(A[3]=x=>l("close")),onAfterLeave:A[4]||(A[4]=x=>l("destroy"))},{default:ne(()=>[u.value?(Q(),ee("div",{key:0,class:"message",id:m.id},[Y("div",{class:"message-container",onMouseenter:A[1]||(A[1]=x=>h()),onMouseleave:A[2]||(A[2]=x=>d())},[Y("div",nq,[m.type==="warning"?(Q(),Le(H(r),{key:0,theme:"filled",size:"18",fill:"#faad14"})):Ze("",!0),m.type==="success"?(Q(),Le(H(o),{key:1,theme:"filled",size:"18",fill:"#52c41a"})):Ze("",!0),m.type==="error"?(Q(),Le(H(i),{key:2,theme:"filled",size:"18",fill:"#ff4d4f"})):Ze("",!0),m.type==="info"?(Q(),Le(H(a),{key:3,theme:"filled",size:"18",fill:"#1677ff"})):Ze("",!0)]),Y("div",rq,[m.title?(Q(),ee("div",oq,St(m.title),1)):Ze("",!0),Y("div",iq,St(m.message),1)]),m.closable?(Q(),ee("div",aq,[Y("span",{class:"close-btn",onClick:A[0]||(A[0]=x=>p())},[w(H(s))])])):Ze("",!0)],32)],8,tq)):Ze("",!0)]),_:1}))}}),Ee=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},lq=Ee(sq,[["__scopeId","data-v-5f638602"]]),p3=[];let Ya=null,cq=0;const uq={duration:3e3},On=e=>{const t="message-"+cq++,n={...uq,...e,id:t};Ya||(Ya=document.createElement("div"),Ya.className="message-wrap",Ya.style.cssText=` + width: 100%; + position: fixed; + top: 0; + left: 0; + z-index: 6000; + pointer-events: none; + display: flex; + flex-direction: column; + box-sizing: border-box; + padding: 15px; + background-color: rgba(255, 255, 255, 0); + transition: all 1s ease-in-out; + align-items: center; + `,document.body.appendChild(Ya));const r=w(lq,n,null),o=document.createElement("div");r.appContext=e.ctx||On._context||null,r.props.onClose=e.onClose,r.props.onDestroy=()=>{Ya&&Ya.childNodes.length<=1&&(Ya.remove(),Ya=null),Md(null,o)},Md(r,o),Ya.appendChild(o.firstElementChild);const i={id:t,close:()=>{var a,s;return(s=(a=r==null?void 0:r.component)==null?void 0:a.exposed)==null?void 0:s.close()}};return p3.push(i),i};On.success=(e,t)=>On({...t,type:"success",message:e});On.info=(e,t)=>On({...t,type:"info",message:e});On.warning=(e,t)=>On({...t,type:"warning",message:e});On.error=(e,t)=>On({...t,type:"error",message:e});On.closeAll=function(){for(let e=p3.length-1;e>=0;e--)p3[e].close()};const kb=e=>{const n=e.replace(/[\n\r]+/g,"
").split("
");let r="";for(const o of n)o&&(r+=`
${o}
`);return r},fq=e=>new Promise(t=>{const n=document.createElement("img");n.src=e,n.style.opacity="0",document.body.appendChild(n),n.onload=()=>{const r=n.clientWidth,o=n.clientHeight;n.onload=null,n.onerror=null,document.body.removeChild(n),t({width:r,height:o})},n.onerror=()=>{n.onload=null,n.onerror=null}}),$u=e=>new Promise(t=>{const n=new FileReader;n.addEventListener("load",()=>{t(n.result)}),n.readAsDataURL(e)}),Ht=1e3;var cn=(e=>(e.ROUND_RECT="roundRect",e.ROUND_RECT_DIAGONAL="roundRectDiagonal",e.ROUND_RECT_SINGLE="roundRectSingle",e.ROUND_RECT_SAMESIDE="roundRectSameSide",e.CUT_RECT_DIAGONAL="cutRectDiagonal",e.CUT_RECT_SINGLE="cutRectSingle",e.CUT_RECT_SAMESIDE="cutRectSameSide",e.CUT_ROUND_RECT="cutRoundRect",e.MESSAGE="message",e.ROUND_MESSAGE="roundMessage",e.L="L",e.RING_RECT="ringRect",e.PLUS="plus",e.TRIANGLE="triangle",e.PARALLELOGRAM_LEFT="parallelogramLeft",e.PARALLELOGRAM_RIGHT="parallelogramRight",e.TRAPEZOID="trapezoid",e.BULLET="bullet",e.INDICATOR="indicator",e))(cn||{}),Nt=(e=>(e.TEXT="text",e.IMAGE="image",e.SHAPE="shape",e.LINE="line",e.CHART="chart",e.TABLE="table",e.LATEX="latex",e.VIDEO="video",e.AUDIO="audio",e))(Nt||{});const ju={[cn.ROUND_RECT]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${r} 0 L ${e-r} 0 Q ${e} 0 ${e} ${r} L ${e} ${t-r} Q ${e} ${t} ${e-r} ${t} L ${r} ${t} Q 0 ${t} 0 ${t-r} L 0 ${r} Q 0 0 ${r} 0 Z`}},[cn.CUT_RECT_DIAGONAL]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${t-r} L 0 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} L ${r} ${t} Z`}},[cn.CUT_RECT_SINGLE]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${t} L 0 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} Z`}},[cn.CUT_RECT_SAMESIDE]:{editable:!0,defaultValue:.2,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${r} L ${r} 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} L 0 ${t} Z`}},[cn.ROUND_RECT_DIAGONAL]:{editable:!0,defaultValue:.125,range:[0,1],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${r} 0 L ${e} 0 L ${e} ${t-r} Q ${e} ${t} ${e-r} ${t} L 0 ${t} L 0 ${r} Q 0 0 ${r} 0 Z`}},[cn.ROUND_RECT_SINGLE]:{editable:!0,defaultValue:.125,range:[0,1],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 0 L ${e-r} 0 Q ${e} 0 ${e} ${r} L ${e} ${t} L 0 ${t} L 0 0 Z`}},[cn.ROUND_RECT_SAMESIDE]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 ${r} Q 0 0 ${r} 0 L ${e-r} 0 Q ${e} 0 ${e} ${r} L ${e} ${t} L 0 ${t} Z`}},[cn.CUT_ROUND_RECT]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${r} 0 L ${e-r} 0 L ${e} ${r} L ${e} ${t} L 0 ${t} L 0 ${r} Q 0 0 ${r} 0 Z`}},[cn.MESSAGE]:{formula:(e,t)=>{const n=e*.2,r=t*.2;return`M 0 0 L ${e} 0 L ${e} ${t-r} L ${e/2} ${t-r} L ${e/2-n} ${t} L ${e/2-n} ${t-r} L 0 ${t-r} Z`}},[cn.ROUND_MESSAGE]:{formula:(e,t)=>{const n=Math.min(e,t)*.125,r=e*.2,o=t*.2;return`M 0 ${n} Q 0 0 ${n} 0 L ${e-n} 0 Q ${e} 0 ${e} ${n} L ${e} ${t-n-o} Q ${e} ${t-o} ${e-n} ${t-o} L ${e/2} ${t-o} L ${e/2-r} ${t} L ${e/2-r} ${t-o} L ${n} ${t-o} Q 0 ${t-o} 0 ${t-n-o} L 0 ${n} Z`}},[cn.L]:{editable:!0,defaultValue:.25,range:[.1,.9],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 0 L 0 ${t} L ${e} ${t} L ${e} ${t-r} L ${r} ${t-r} L ${r} 0 Z`}},[cn.RING_RECT]:{editable:!0,defaultValue:.25,range:[.1,.45],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M 0 0 ${e} 0 ${e} ${t} L 0 ${t} L 0 0 Z M ${r} ${r} L ${r} ${t-r} L ${e-r} ${t-r} L ${e-r} ${r} Z`}},[cn.PLUS]:{editable:!0,defaultValue:.25,range:[.1,.9],relative:"center",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,n)=>{const r=Math.min(e,t)*n;return`M ${e/2-r/2} 0 L ${e/2-r/2} ${t/2-r/2} L 0 ${t/2-r/2} L 0 ${t/2+r/2} L ${e/2-r/2} ${t/2+r/2} L ${e/2-r/2} ${t} L ${e/2+r/2} ${t} L ${e/2+r/2} ${t/2+r/2} L ${e} ${t/2+r/2} L ${e} ${t/2-r/2} L ${e/2+r/2} ${t/2-r/2} L ${e/2+r/2} 0 Z`}},[cn.TRIANGLE]:{editable:!0,defaultValue:.5,range:[0,1],relative:"left",getBaseSize:e=>e,formula:(e,t,n)=>`M ${e*n} 0 L 0 ${t} L ${e} ${t} Z`},[cn.PARALLELOGRAM_LEFT]:{editable:!0,defaultValue:.25,range:[0,.9],relative:"left",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M ${r} 0 L ${e} 0 L ${e-r} ${t} L 0 ${t} Z`}},[cn.PARALLELOGRAM_RIGHT]:{editable:!0,defaultValue:.25,range:[0,.9],relative:"right",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M 0 0 L ${e-r} 0 L ${e} ${t} L ${r} ${t} Z`}},[cn.TRAPEZOID]:{editable:!0,defaultValue:.25,range:[0,.5],relative:"left",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M ${r} 0 L ${e-r} 0 L ${e} ${t} L 0 ${t} Z`}},[cn.BULLET]:{editable:!0,defaultValue:.2,range:[0,1],relative:"top",getBaseSize:(e,t)=>t,formula:(e,t,n)=>{const r=t*n;return`M ${e/2} 0 L 0 ${r} L 0 ${t} L ${e} ${t} L ${e} ${r} Z`}},[cn.INDICATOR]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:e=>e,formula:(e,t,n)=>{const r=e*n;return`M ${e} ${t/2} L ${e-r} 0 L 0 0 L ${r} ${t/2} L 0 ${t} L ${e-r} ${t} Z`}}},Pb=[{type:"矩形",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",pptxShapeType:"rect"},{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z",pathFormula:cn.ROUND_RECT,pptxShapeType:"roundRect"},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z",pathFormula:cn.CUT_RECT_SINGLE,pptxShapeType:"snip1Rect"},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z",pathFormula:cn.CUT_RECT_SAMESIDE,pptxShapeType:"snip2SameRect"},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z",pathFormula:cn.CUT_RECT_DIAGONAL,pptxShapeType:"snip2DiagRect"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 50 L 200 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:cn.CUT_ROUND_RECT,pptxShapeType:"snipRoundRect"},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z",pathFormula:cn.ROUND_RECT_SINGLE,pptxShapeType:"round1Rect"},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z",pathFormula:cn.ROUND_RECT_SAMESIDE,pptxShapeType:"round2SameRect"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 200 150 Q 200 200 150 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:cn.ROUND_RECT_DIAGONAL,pptxShapeType:"round2DiagRect"},{viewBox:[200,200],path:"M 0 80 L 60 0 L 100 40 L 180 20 L 200 120 L 160 200 L 0 200 L 60 140 Z",title:"任意多边形"}]},{type:"常用形状",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",pptxShapeType:"ellipse"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:cn.TRIANGLE,pptxShapeType:"triangle"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 70 20 L 0 160 Q 0 200 40 200 L 160 200 Q 200 200 200 160 L 130 20 Q 100 -20 70 20 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z",pathFormula:cn.PARALLELOGRAM_LEFT,pptxShapeType:"parallelogram"},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z",pathFormula:cn.PARALLELOGRAM_RIGHT},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z",pathFormula:cn.TRAPEZOID,pptxShapeType:"trapezoid"},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z",pptxShapeType:"diamond"},{viewBox:[200,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z",pathFormula:cn.BULLET},{viewBox:[200,200],path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z",pathFormula:cn.INDICATOR},{viewBox:[200,200],path:"M 0 0 C 80 20 120 20 200 0 C 180 80 180 120 200 200 C 80 180 120 180 0 200 C 20 120 20 80 0 0 Z"},{viewBox:[200,200],path:"M 10 10 C 60 0 140 0 190 10 C 200 60 200 140 190 190 C 140 200 60 200 10 190 C 0 140 0 60 10 10 Z"},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z",pptxShapeType:"pie"},{viewBox:[200,200],path:"M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z",pptxShapeType:"chord"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z",pptxShapeType:"teardrop"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z",pptxShapeType:"pentagon"},{viewBox:[200,200],path:"M 40 0 L 160 0 L 200 100 L 160 200 L 40 200 L 0 100 Z",pptxShapeType:"hexagon"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z",pptxShapeType:"octagon"},{viewBox:[200,200],path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z",pathFormula:cn.L},{viewBox:[200,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z",pathFormula:cn.RING_RECT},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:[200,200],path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z",pathFormula:cn.PLUS},{viewBox:[200,200],path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:cn.MESSAGE},{viewBox:[200,200],path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z",pathFormula:cn.ROUND_MESSAGE},{viewBox:[200,200],path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:[200,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z"},{viewBox:[200,200],path:"M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 120 80 L 200 100 L 120 120 L 100 200 L 80 120 L 0 100 L 80 80 L 100 0 Z",pptxShapeType:"star4"},{viewBox:[1024,1024],path:"M1018.67652554 400.05983681l-382.95318779-5.89158658L512 34.78141155 388.27666225 394.16825023l-382.95318779 5.89158658L311.68602415 629.83174977l-117.83174978 365.27842665 312.25413766-223.88032637 312.25413904 223.88032637-117.83175116-365.27842665 318.14572563-229.77191296z",pptxShapeType:"star5",special:!0},{viewBox:[200,200],path:"M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 140 60 L 200 60 L 160 100 L 200 140 L 140 140 L 100 200 L 60 140 L 0 140 L 40 100 L 0 60 L 60 60 L 100 0 Z",pptxShapeType:"star6"},{viewBox:[200,200],path:"M 100 0 L 80 40 L 20 20 L 40 80 L 0 100 L 40 120 L 20 180 L 80 160 L 100 200 L 120 160 L 180 180 L 160 120 L 200 100 L 160 80 L 180 20 L 120 40 L 100 0 Z"},{viewBox:[200,200],path:"M 200 0 C 80 40 80 160 200 200 C -60 200 -60 0 200 0 Z"}]},{type:"箭头",children:[{viewBox:[200,200],path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z",pptxShapeType:"upArrow"},{viewBox:[200,200],path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z",pptxShapeType:"downArrow"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z",pptxShapeType:"leftArrow"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z",pptxShapeType:"rightArrow"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z",pptxShapeType:"upDownArrow"},{viewBox:[200,200],path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z",pptxShapeType:"leftRightArrow"},{viewBox:[200,200],path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z",pptxShapeType:"notchedRightArrow"},{viewBox:[200,200],path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:[200,200],path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z",pptxShapeType:"chevron"},{viewBox:[200,200],path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:[200,200],path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z",pptxShapeType:"homePlate"},{viewBox:[200,200],path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:[1024,1024],path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z",special:!0},{viewBox:[1024,1024],path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z",special:!0}]},{type:"其他形状",children:[{viewBox:[1024,1024],path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z",special:!0},{viewBox:[1024,1024],path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z",special:!0},{viewBox:[1024,1024],path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z",special:!0},{viewBox:[1024,1024],path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z",special:!0},{viewBox:[1024,1024],path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z",special:!0},{viewBox:[1024,1024],path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z",special:!0},{viewBox:[1024,1024],path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z",special:!0},{viewBox:[1024,1024],path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z",special:!0},{viewBox:[1024,1024],path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z",special:!0},{viewBox:[1024,1024],path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z",special:!0},{viewBox:[1024,1024],path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z",special:!0},{viewBox:[1024,1024],path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z",special:!0},{viewBox:[1024,1024],path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z",special:!0},{viewBox:[1024,1024],path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z",special:!0},{viewBox:[1024,1024],path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z",special:!0},{viewBox:[1024,1024],path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z",special:!0},{viewBox:[1024,1024],path:"M997.8886764 504.17210418L537.2729208 43.89182982c-13.97838539-13.97838539-36.56745619-13.97838539-50.5458416 0L26.1113236 504.17210418c-13.41924998 13.41924998-21.02349164 31.64706454-21.02349163 50.65766867 0 39.47496036 32.09437288 71.56933323 71.56933324 71.56933323h48.53295408V954.83524937c0 19.79339373 15.99127289 35.78466661 35.78466663 35.78466662H440.43066677V740.12724968h125.24633315v250.49266631h297.34821416c19.79339373 0 35.78466661-15.99127289 35.78466663-35.78466662V626.39910608h48.53295408c19.01060414 0 37.23841869-7.49241457 50.65766869-21.02349163 27.84494371-27.95677079 27.84494371-73.24673948-0.11182708-101.20351027z",special:!0},{viewBox:[1024,1024],path:"M1009.13013121 349.27572283L674.72427717 14.86986879c-8.82158299-8.82158299-20.35749924-13.16451618-31.89341544-13.16451618s-23.07183245 4.34293316-31.89341547 13.16451618L392.29790453 233.6451272c-16.5574327-1.90003326-33.25058207-2.71433322-49.94373146-2.71433324-99.34459624 0-198.68919249 32.70771543-280.25490606 98.12314628-20.90036589 16.69314938-22.52896582 48.04369819-3.66434987 67.04403081l246.59717401 246.59717401-292.33368895 292.06225564c-3.52863319 3.52863319-5.83581644 8.27871636-6.24296642 13.30023282l-4.61436649 50.48659809c-1.22144996 12.75736619 8.95729967 23.6146991 21.57894918 23.6146991 0.6785833 0 1.35716662 0 2.03574992-0.13571666l50.48659809-4.61436649c5.02151649-0.40714999 9.77159962-2.71433322 13.30023282-6.24296643l292.33368896-292.33368896 246.59717402 246.59717401c8.82158299 8.82158299 20.35749924 13.16451618 31.89341544 13.16451618 13.16451618 0 26.19331567-5.70009979 35.15061536-16.82886604 76.40848044-95.40881307 108.16617924-214.83947521 95.27309638-330.33435417l218.63954175-218.63954173c17.50744934-17.37173267 17.50744934-45.8722316 0-63.51539759z",special:!0},{viewBox:[1024,1024],path:"M976.62005979 160.47737905c-0.39452595-0.39452595-80.35178503 78.64217259-239.47725131 237.50462156l-111.6508437-111.65084369 237.89914752-237.89914752c-125.19623464-75.35445635-286.03131335-56.02268482-390.31767264 48.26367449-81.92988882 81.92988882-112.57140424 200.15616502-83.37648398 310.09739626l2.36715569 8.81107954-372.82702222 372.69551356c-8.15353628 8.15353628-8.15353628 21.56741857 0 29.72095487l185.95323084 185.95323084c8.15353628 8.15353628 21.56741857 8.15353628 29.72095485 0l372.56400493-372.56400493 8.81107953 2.3671557c110.07273989 29.32642892 228.29901608-1.18357785 310.36041356-83.24497533 104.41786795-104.2863593 123.74963948-265.12143802 49.97328693-390.05465535z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m220.16 343.26755556l-239.616 332.23111111c-14.44977778 20.13866667-44.37333333 20.13866667-58.82311111 0L291.84 481.16622222c-4.32355555-6.03022222 0-14.44977778 7.39555555-14.44977777h53.36177778c11.60533333 0 22.64177778 5.57511111 29.46844445 15.13244444l81.00977777 112.41244444 178.85866667-248.03555555c6.82666667-9.44355555 17.74933333-15.13244445 29.46844445-15.13244445H724.76444445c7.39555555 0 11.71911111 8.41955555 7.39555555 14.44977778z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h418.70222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m188.18844445 703.37422223l-75.09333334-0.34133333L512 570.48177778l-112.98133333 134.71288889-75.20711112 0.34133333c-5.00622222 0-9.10222222-3.98222222-9.10222222-9.10222222 0-2.16177778 0.79644445-4.20977778 2.16177778-5.91644445l148.02488889-176.35555555L316.87111111 337.92c-1.36533333-1.70666667-2.16177778-3.75466667-2.16177778-5.91644445 0-5.00622222 4.096-9.10222222 9.10222222-9.10222222l75.20711112 0.34133334L512 458.06933333l112.98133333-134.71288888 75.09333334-0.34133334c5.00622222 0 9.10222222 3.98222222 9.10222222 9.10222222 0 2.16177778-0.79644445 4.20977778-2.16177778 5.91644445L559.21777778 514.27555555l147.91111111 176.35555556c1.36533333 1.70666667 2.16177778 3.75466667 2.16177778 5.91644444 0 5.00622222-4.096 9.10222222-9.10222222 9.10222223z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H548.40888889v172.94222222c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222h-54.61333334c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V548.40888889H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h172.94222222V302.64888889c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h54.61333334c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v172.94222222h172.94222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m163.95377778 517.57511112L427.46311111 700.64355555c-1.59288889 1.13777778-3.41333333 1.70666667-5.34755556 1.70666667-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V331.88977778c0-1.93422222 0.56888889-3.75466667 1.70666667-5.34755556 2.95822222-4.096 8.64711111-5.00622222 12.74311111-2.048L675.95377778 505.17333333c0.79644445 0.56888889 1.47911111 1.25155555 2.048 2.048 2.95822222 3.98222222 2.048 9.67111111-2.048 12.62933334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m200.81777778 666.39644445l-32.54044445 44.37333333c-2.95822222 4.096-8.64711111 4.89244445-12.74311111 1.93422222L479.34577778 577.76355555c-2.38933333-1.70666667-3.75466667-4.43733333-3.75466667-7.39555555V257.13777778c0-5.00622222 4.096-9.10222222 9.10222222-9.10222223h54.72711112c5.00622222 0 9.10222222 4.096 9.10222222 9.10222223v281.6l162.24711111 117.30488889c4.096 2.84444445 5.00622222 8.53333333 2.048 12.62933333z",special:!0},{viewBox:[1024,1024],path:"M981.10577778 314.48177778c-25.6-61.09866667-62.464-115.93955555-109.34044445-163.04355556-46.87644445-46.99022222-101.60355555-83.968-162.70222222-109.568C646.59911111 15.58755555 580.38044445 2.27555555 512 2.27555555h-2.27555555c-68.83555555 0.34133333-135.39555555 13.99466667-198.08711112 40.84622223-60.52977778 25.94133333-114.80177778 62.80533333-161.22311111 109.79555555-46.42133333 46.99022222-82.83022222 101.60355555-108.08888889 162.47466667C16.27022222 378.42488889 3.072 445.44 3.41333333 514.38933333c0.34133333 78.96177778 19.22844445 157.35466667 54.49955556 227.44177778v172.94222222c0 28.89955555 23.43822222 52.33777778 52.224 52.33777778h172.71466666c69.97333333 35.38488889 148.13866667 54.272 226.98666667 54.61333334h2.38933333c68.03911111 0 133.91644445-13.19822222 196.03911112-39.02577778 60.75733333-25.37244445 115.37066667-61.78133333 162.13333333-108.31644445 46.87644445-46.53511111 83.74044445-100.92088889 109.568-161.56444444 26.73777778-62.80533333 40.39111111-129.59288889 40.73244445-198.54222223 0.22755555-69.29066667-13.19822222-136.53333333-39.59466667-199.79377777zM284.89955555 566.61333333c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955556 54.61333333-24.34844445 54.61333333-54.49955556 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955556-54.61333333s24.46222222-54.61333333 54.49955556-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM745.4750693 325.8561164l-267.95558363 371.52436096c-16.15876501 22.52048353-49.62140436 22.52048353-65.78016939 0L253.07805667 477.51948567c-4.83490607-6.74342161 0-16.15876501 8.27023406-16.15876499h59.67291961c12.97790576 0 25.31963967 6.23448413 32.95370188 16.92217123l90.59087157 125.70755774 200.01242995-277.37092701c7.63406221-10.56045272 19.84856175-16.92217125 32.95370189-16.92217124H737.20483524c8.27023407 0 13.10514012 9.41534338 8.27023406 16.158765z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h468.2224823c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM720.79160148 697.63494611c5.59831228 6.61618726 0.8906406 16.6677025-7.76129658 16.66770249h-74.94104404c-5.98001539 0-11.70556205-2.67192177-15.64982754-7.25235911L512 575.36271635l-110.43943332 131.68757314c-3.81703111 4.58043732-9.54257777 7.25235911-15.64982754 7.25235911H310.9696951c-8.65193717 0-13.35960887-10.05151525-7.76129658-16.66770249L458.81603326 512 303.20839852 326.36505389c-5.59831228-6.61618726-0.8906406-16.6677025 7.76129658-16.66770249h74.94104404c5.98001539 0 11.70556205 2.67192177 15.64982754 7.25235911L512 448.63728365l110.43943332-131.68757314c3.81703111-4.58043732 9.54257777-7.25235911 15.64982754-7.25235911H713.0303049c8.65193717 0 13.35960887 10.05151525 7.76129658 16.66770249L565.18396674 512l155.60763474 185.63494611z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM677.02297814 523.19662459L423.31764398 722.70011704c-9.41534338 7.37959347-23.28388974 0.76340622-23.28388975-11.19662459V312.62374191c0-11.9600308 13.86854636-18.70345241 23.28388975-11.19662457l253.70533416 199.37625807c7.25235911 5.72554666 7.25235911 16.6677025 0 22.39324918z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H552.71499847v193.39624268c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962h-61.0724977c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962V552.71499847H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h193.39624268V277.88875885c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h61.0724977c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v193.39624268h193.39624268c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z",special:!0},{viewBox:[1024,1024],path:"M902.67315697 135.41705551L528.62204754 7.94466448C524.10877635 6.40354749 518.05438818 5.63298899 512 5.63298899s-12.10877635 0.7705585-16.62204754 2.31167549L121.32684303 135.41705551c-9.13662215 3.08223399-16.62204754 13.64989334-16.62204753 23.33691443v531.02488283c0 9.68702108 6.27454775 22.45627614 13.87005291 28.51066431L498.0198673 1013.9638196c3.85279247 2.9721542 8.8063828 4.51327118 13.87005291 4.51327118s10.12734022-1.54111698 13.87005291-4.51327118l379.4450189-295.67430252c7.59550517-5.94430839 13.87005291-18.71356345 13.87005291-28.51066431V158.75396994c0.22015956-9.68702108-7.26526581-20.14460066-16.40188796-23.33691443zM712.89560763 323.43332829L478.86598471 645.63685899c-7.04510625 9.68702108-21.57563786 9.68702108-28.6207441 0l-139.14084824-191.5388259c-4.18303182-5.8342286 0-13.9801327 7.15518603-13.9801327h60.76404132c5.61406904 0 11.0079785 2.75199463 14.31037204 7.26526582l71.22162091 97.97100864 166.11039557-228.74579323c3.30239355-4.51327118 8.58622323-7.26526581 14.31037204-7.26526581H705.7404216c7.15518602 0.11007979 11.33821785 8.25598388 7.15518603 14.09021248z",special:!0},{viewBox:[1024,1024],path:"M959.86498307 186.28001231H797.00498922v-101.78749614c0-44.91373267-36.51626425-81.42999692-81.42999691-81.42999693H308.42500769c-44.91373267 0-81.42999692 36.51626425-81.42999691 81.42999693v101.78749614H64.13501693c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499847v40.71499845c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874962h76.8495596l31.42688945 665.43575611c2.03574992 43.38692024 37.91584233 77.61296581 81.30276254 77.6129658h577.64404066c43.5141546 0 79.26701262-34.09881122 81.30276254-77.6129658l31.42688945-665.43575611H990.40123192c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874962v-40.71499845c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499847z m-254.46874039 0H318.60375732v-91.60874653h386.79248536v91.60874653z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 248.62485371H654.50249462V104.85001539c0-22.52048353-18.19451494-40.71499847-40.71499847-40.71499846H94.67126578v-50.89374808c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-71.25124732c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v997.5174623c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h71.25124732c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961V674.85999383h315.54123807v143.77483833c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h529.29497999c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V289.33985217c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846z",special:!0},{viewBox:[1024,1024],path:"M804.63905145 265.16532183V94.67126578h109.42155836c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961H109.93939019c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h109.42155836v170.49405605c0 103.6960117 53.94737296 194.92305513 135.3773699 246.83467817-81.42999692 51.91162303-135.37736988 143.13866646-135.3773699 246.83467817v170.49405605h-109.42155836c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h804.12121962c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-109.42155836V758.83467817c0-103.6960117-53.94737296-194.92305513-135.3773699-246.83467817 81.42999692-51.91162303 135.37736988-143.13866646 135.3773699-246.83467817z",special:!0},{viewBox:[1024,1024],path:"M1020.928 448.44373333l-35.36213334-373.4528c-1.79200001-19.3536-17.2032-34.64533332-36.55679999-36.55679999L575.55626667 3.072h-0.47786666c-3.82293334 0-6.8096 1.19466667-9.07946669 3.46453333L6.53653333 565.99893332c-4.65919999 4.65919999-4.65919999 12.1856 0 16.84480001l434.61973334 434.61973334c2.26986667 2.26986667 5.25653333 3.46453333 8.48213333 3.46453333s6.21226667-1.19466667 8.48213333-3.46453333l559.46239999-559.46239999c2.38933332-2.5088 3.584-5.97333334 3.34506668-9.55733335zM735.40266668 362.66666667c-42.17173333 0-76.45866667-34.28693333-76.45866667-76.45866667s34.28693333-76.45866667 76.45866667-76.45866667 76.45866667 34.28693333 76.45866665 76.45866667-34.28693333 76.45866667-76.45866665 76.45866667z",special:!0}]},{type:"线性",children:[{viewBox:[1024,1024],path:"M1009.55537674 75.96950982l-61.38012212-61.38012214c-4.48769762-4.48769762-11.870684-4.48769762-16.3583816 0L14.44462326 931.67210859c-4.48769762 4.48769762-4.48769762 11.870684 0 16.35838159l61.38012212 61.38012214c4.48769762 4.48769762 11.870684 4.48769762 16.3583816 0L1009.41061232 92.18312698c4.63246205-4.34293316 4.63246205-11.72591956 0.14476442-16.21361716zM210.88996692 419.35075905c114.94296453 0 208.46079213-93.51782759 208.46079213-208.46079213s-93.51782759-208.46079213-208.46079213-208.4607921-208.46079213 93.51782759-208.4607921 208.4607921 93.51782759 208.46079213 208.4607921 208.46079213z m0-312.69118816c57.47148228 0 104.23039605 46.75891379 104.23039607 104.23039603s-46.75891379 104.23039605-104.23039607 104.23039607-104.23039605-46.75891379-104.23039603-104.23039607 46.75891379-104.23039605 104.23039603-104.23039603zM813.11003308 604.64924095c-114.94296453 0-208.46079213 93.51782759-208.46079213 208.46079213s93.51782759 208.46079213 208.46079213 208.4607921 208.46079213-93.51782759 208.4607921-208.4607921-93.51782759-208.46079213-208.4607921-208.46079213z m0 312.69118816c-57.47148228 0-104.23039605-46.75891379-104.23039607-104.23039603s46.75891379-104.23039605 104.23039607-104.23039607 104.23039605 46.75891379 104.23039603 104.23039607-46.75891379 104.23039605-104.23039603 104.23039603z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1004.96017383 478.58365209L483.27851088 25.80594621c-4.00443838-3.45210207-9.11354943-5.3852792-14.49882864-5.38527921h-122.20441284c-10.21822208 0-14.91308089 12.70373557-7.18037228 19.33177152l483.57045622 419.77561022H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672657v82.85044938c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672657h807.92996557L339.25681303 984.24756148c-7.7327086 6.76612003-3.0378498 19.33177153 7.18037229 19.33177152h126.34693531c2.62359757 0 5.24719513-0.96658859 7.18037228-2.76168164L1004.96017383 545.41634791c20.2983601-17.67476253 20.2983601-49.1579333 0-66.83269582z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1011.38217956 558.9924242L545.80649025 22.43713295c-17.81503843-20.62055629-49.79794206-20.62055629-67.75325638 0L12.61782044 558.9924242c-6.31241519 7.29434645-1.12220714 18.51641789 8.41655359 18.51641789h113.62347344c6.45269109 0 12.62483038-2.80551785 16.97338308-7.71517411L458.69516062 215.87758959V1005.77114384c0 6.1721393 5.04993216 11.22207145 11.22207144 11.22207145h84.16553588c6.1721393 0 11.22207145-5.04993216 11.22207144-11.22207145V215.87758959l307.06393007 353.91607839c4.20827679 4.90965626 10.38041608 7.71517413 16.97338308 7.71517411h113.62347344c9.53876074 0 14.72896878-11.22207145 8.41655359-18.51641789z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1009.1026963 459.52804874H201.17273073l483.57045624-419.77561022c7.7327086-6.76612003 3.0378498-19.33177153-7.18037229-19.33177152h-122.20441283c-5.3852792 0-10.49439025 1.93317715-14.49882866 5.38527921L19.03982617 478.58365209c-20.2983601 17.67476253-20.2983601 49.1579333 0 66.69461175L543.89742302 1000.81765136c2.07126124 1.79509307 4.55677472 2.76168163 7.18037228 2.76168164h126.3469353c10.21822208 0 14.91308089-12.70373557 7.18037228-19.33177152L201.17273073 564.47195126H1009.1026963c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672657v-82.85044938c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672657z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1002.96562597 446.49115791h-113.62347344c-6.45269109 0-12.62483038 2.80551785-16.97338308 7.71517411L565.30483938 808.12241041V18.22885616c0-6.1721393-5.04993216-11.22207145-11.22207144-11.22207145h-84.16553588c-6.1721393 0-11.22207145 5.04993216-11.22207144 11.22207145v789.89355425L151.63123055 454.20633202c-4.20827679-4.90965626-10.38041608-7.71517413-16.97338308-7.71517411h-113.62347344c-9.53876074 0-14.72896878 11.36234735-8.41655359 18.51641789L478.19350975 1001.56286705c17.81503843 20.62055629 49.79794206 20.62055629 67.75325638 0L1011.38217956 465.0075758c6.31241519-7.29434645 1.12220714-18.51641789-8.41655359-18.51641789z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M975.82443246 622.46726585H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672658v82.85044937c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672659h835.6848661L651.32683905 980.10503902c-5.66144737 7.18037229-0.55233633 17.9509307 8.69929718 17.9509307h100.11095967c6.76612003 0 13.11798782-3.0378498 17.39859437-8.42312903l233.08593092-295.63802022c22.78387358-28.99765728 2.20934532-71.52755463-34.79718873-71.52755462zM1009.1026963 296.58883161H173.4178302l199.25533075-252.69387063c5.66144737-7.18037229 0.55233633-17.9509307-8.69929718-17.9509307h-100.11095967c-6.76612003 0-13.11798782 3.0378498-17.39859437 8.42312903L13.37837881 330.00517953c-22.78387358 28.99765728-2.20934532 71.52755463 34.65910466 71.52755462h961.06521283c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672658v-82.85044937c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672659z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1010.75873115 64.13501693H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874964h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874964v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961zM1010.75873115 858.07748691H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874964v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874964zM1010.75873115 461.10625194H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874959v81.42999694c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874959h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874959v-81.42999694c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874959z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M591.98717801 512l405.34042913-483.16579151c6.79427767-8.02960089 1.08090782-20.22841761-9.41933951-20.2284176h-123.22349044c-7.25752386 0-14.20621693 3.24272343-18.99309439 8.80167789L511.38233839 415.95362022 177.07299399 17.40746878c-4.63246205-5.55895447-11.58115512-8.80167789-18.99309439-8.80167789H34.85640916c-10.50024731 0-16.21361717 12.19881672-9.41933952 20.2284176L430.77749876 512 25.43706964 995.16579151c-6.79427767 8.02960089-1.08090782 20.22841761 9.41933952 20.2284176h123.22349044c7.25752386 0 14.20621693-3.24272343 18.99309439-8.80167789l334.3093444-398.54615144 334.30934441 398.54615144c4.63246205 5.55895447 11.58115512 8.80167789 18.99309439 8.80167789h123.22349044c10.50024731 0 16.21361717-12.19881672 9.41933951-20.2284176L591.98717801 512z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M953.5488 832.61667556c-24.08448-57.08913778-58.74574221-108.31644445-102.70947556-152.28017777-43.96373333-43.96373333-95.19104-78.49756444-152.28017777-102.70947558-0.50972445-0.25486222-1.01944888-0.38229333-1.52917334-0.63715555C776.41955556 519.64586667 828.02915556 426.23886221 828.02915556 320.85333332c0-174.58062221-141.44853334-316.02915556-316.02915556-316.02915554S195.97084444 146.27271111 195.97084444 320.85333332c0 105.38552889 51.6096 198.79253333 130.99918223 256.26396447-0.50972445 0.25486222-1.01944888 0.38229333-1.52917334 0.63715555-57.08913778 24.08448-108.31644445 58.61831112-152.28017777 102.70947554-43.96373333 43.96373333-78.49756444 95.19104-102.70947556 152.28017779C46.74901333 888.55893332 34.13333334 947.8144 32.85902222 1008.72647111c-0.12743111 5.7344 4.46008889 10.44935111 10.19448889 10.44935111h76.45866667c5.60696888 0 10.06705778-4.46008889 10.19448889-9.93962666 2.54862221-98.37681778 42.05226667-190.50951112 111.88451555-260.34176001 72.25344-72.25344 168.20906666-112.01194667 270.40881778-112.01194667s198.15537778 39.75850667 270.40881778 112.01194667C852.24106667 818.72668444 891.74471111 910.85937779 894.29333333 1009.23619556c0.12743111 5.60696888 4.58752 9.93962667 10.19448889 9.93962666h76.45866667c5.7344 0 10.32192-4.71495112 10.19448889-10.44935111-1.27431111-60.91207112-13.88999112-120.16753779-37.59217778-176.10979555zM512 540.03484444c-58.49088 0-113.54112-22.81016889-154.95623111-64.22527999S292.81848888 379.34421333 292.81848888 320.85333332c0-58.49088 22.81016889-113.54112 64.22528001-154.9562311S453.50912 101.67182221 512 101.67182221s113.54112 22.81016889 154.95623111 64.22528001S731.18151112 262.36245333 731.18151112 320.85333332c0 58.49088-22.81016889 113.54112-64.22528001 154.95623113S570.49088 540.03484444 512 540.03484444z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 111.50222222H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888889v728.17777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h946.6311111c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V147.91111111c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888889z m-45.5111111 126.06577778V830.57777778H84.19555555V237.568l-31.40266666-24.46222222 44.71466666-57.45777778 48.6968889 37.888h731.70488888l48.69688889-37.888 44.71466667 57.45777778-31.51644444 24.46222222z M877.90933333 193.42222222L512 477.86666667 146.09066667 193.42222222l-48.69688889-37.888-44.71466667 57.45777778 31.40266667 24.46222222 388.66488889 302.19377778c22.98311111 17.86311111 55.18222222 17.86311111 78.16533333 0L939.80444445 237.568l31.40266666-24.46222222-44.71466666-57.45777778-48.58311112 37.77422222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 88.74666667H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888888v564.33777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h432.35555555v127.43111111H275.34222222c-10.01244445 0-18.20444445 8.192-18.20444444 18.20444445v54.61333333c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h491.52c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333333c0-10.01244445-8.192-18.20444445-18.20444444-18.20444445H552.96V725.90222222h432.35555555c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V125.15555555c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888888z m-45.5111111 555.23555555H84.19555555V170.66666667h855.6088889v473.31555555z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333 0-101.26222222 35.61244445-194.33244445 95.00444444-267.15022222l595.39911111 595.39911111C706.33244445 899.64088889 613.26222222 935.25333333 512 935.25333333z m328.24888889-156.10311111L244.84977778 183.75111111C317.66755555 124.35911111 410.73777778 88.74666667 512 88.74666667c233.69955555 0 423.25333333 189.55377778 423.25333333 423.25333333 0 101.26222222-35.61244445 194.33244445-95.00444444 267.15022222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M901.80266667 257.82044445L656.95288889 12.97066667c-6.82666667-6.82666667-16.04266667-10.69511111-25.71377778-10.69511112H147.91111111c-20.13866667 0-36.40888889 16.27022222-36.40888889 36.4088889v946.6311111c0 20.13866667 16.27022222 36.40888889 36.40888889 36.4088889h728.17777778c20.13866667 0 36.40888889-16.27022222 36.40888889-36.4088889V283.648c0-9.67111111-3.86844445-19.00088889-10.69511111-25.82755555zM828.52977778 300.37333333H614.4V86.24355555L828.52977778 300.37333333z m2.048 639.43111112H193.42222222V84.19555555h343.60888889v245.76c0 26.39644445 21.39022222 47.78666667 47.78666667 47.78666667h245.76v562.06222223z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M981.07392 55.79662222H42.92608c-31.22062222 0-50.71758221 34.02410666-35.04355556 61.16693334L304.28728889 620.82616888V927.42542221c0 22.55530667 18.09521779 40.77795555 40.52309333 40.77795557h334.37923556c22.42787556 0 40.52309333-18.22264888 40.52309333-40.77795557V620.82616888L1016.24490667 116.96355556c15.54659555-27.14282666-3.95036444-61.16693333-35.17098667-61.16693334zM628.47203556 876.45297779H395.52796444V677.66044445h233.07150222v198.79253334z m12.23338666-301.50200891l-12.10595556 21.15356445h-233.19893332l-12.10595556-21.15356445L130.59868445 147.54702221h762.8026311L640.70542222 574.95096888z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M980.62285431 4.54099753H654.39920987c-4.2719763 0-7.76722963 3.49525333-7.76722962 7.76722964v72.4941432c0 4.2719763 3.49525333 7.76722963 7.76722962 7.76722963h207.64393877L604.04167111 350.57107753c-64.72691358-49.83972347-143.69374815-76.7661195-226.67365136-76.7661195-99.54999309 0-193.27456395 38.83614815-263.5679921 109.25903012S4.54099753 547.08198717 4.54099753 646.63198025s38.83614815 193.27456395 109.25903012 263.5679921C184.09345581 980.62285431 277.81802667 1019.45900247 377.36801975 1019.45900247s193.27456395-38.83614815 263.5679921-109.25903012C711.35889383 839.90654419 750.19504197 746.18197333 750.19504197 646.63198025c0-82.9799032-26.92639605-161.68783013-76.63666567-226.41474372L931.4304 162.34521283V369.60079013c0 4.2719763 3.49525333 7.76722963 7.76722963 7.76722962h72.4941432c4.2719763 0 7.76722963-3.49525333 7.76722964-7.76722962V43.37714569c0-21.35988148-17.47626667-38.83614815-38.83614816-38.83614816zM377.36801975 921.07409383c-151.33152395 0-274.44211358-123.11058963-274.44211358-274.44211358s123.11058963-274.44211358 274.44211358-274.44211358 274.44211358 123.11058963 274.44211358 274.44211358-123.11058963 274.44211358-274.44211358 274.44211358z",special:!0,outlined:!0}]}],dq={bar:"bar",horizontalBar:"bar",line:"line",area:"line",scatter:"line",pie:"pie",ring:"pie"},Jt=()=>{const e=Dg(),t=Xn.debounce(function(){e.addSnapshot()},300,{trailing:!0}),n=Xn.throttle(function(){e.reDo()},100,{leading:!0,trailing:!1}),r=Xn.throttle(function(){e.unDo()},100,{leading:!0,trailing:!1});return{addHistorySnapshot:t,redo:n,undo:r}},qu=()=>{const e=dt(),t=ut(),{creatingElement:n}=Xe(e),{theme:r,viewportRatio:o}=Xe(t),{addHistorySnapshot:i}=Jt(),a=(A,x)=>{t.addElement(A),e.setActiveElementIdList([A.id]),n.value&&e.setCreatingElement(null),setTimeout(()=>{e.setEditorareaFocus(!0)},0),x&&x(),i()};return{createImageElement:A=>{fq(A).then(({width:x,height:R})=>{const y=R/x;yHt?(x=Ht,R=x*y):R>Ht*o.value&&(R=Ht*o.value,x=R/y),a({type:"image",id:xn(10),src:A,width:x,height:R,left:(Ht-x)/2,top:(Ht*o.value-R)/2,fixedRatio:!0,rotate:0})})},createChartElement:A=>{const x={type:"chart",id:xn(10),chartType:dq[A],left:300,top:81.25,width:400,height:400,rotate:0,themeColor:[r.value.themeColor],gridColor:r.value.fontColor,data:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1"],series:[[12,19,5,2,18]]}},R={...A==="bar"?{horizontalBars:!1,stackBars:!1}:{},...A==="horizontalBar"?{horizontalBars:!0,stackBars:!1}:{},...A==="line"?{showLine:!0,lineSmooth:!0,showArea:!1}:{},...A==="area"?{showLine:!0,lineSmooth:!0,showArea:!0}:{},...A==="scatter"?{showLine:!1,lineSmooth:!0,showArea:!1}:{},...A==="pie"?{donut:!1}:{},...A==="ring"?{donut:!0}:{}};a({...x,options:R})},createTableElement:(A,x)=>{const R={fontname:r.value.fontName,color:r.value.fontColor},y=[];for(let L=0;L{const{left:R,top:y,width:g,height:S}=A,O=(x==null?void 0:x.content)||"",T=(x==null?void 0:x.vertical)||!1,M=xn(10);a({type:"text",id:M,left:R,top:y,width:g,height:S,content:O,rotate:0,defaultFontName:r.value.fontName,defaultColor:r.value.fontColor,vertical:T},()=>{setTimeout(()=>{const L=document.querySelector(`#editable-element-${M} .ProseMirror`);L&&L.focus()},0)})},createShapeElement:(A,x,R={})=>{const{left:y,top:g,width:S,height:O}=A,T={type:"shape",id:xn(10),left:y,top:g,width:S,height:O,viewBox:x.viewBox,path:x.path,fill:r.value.themeColor,fixedRatio:!1,rotate:0,...R};if(x.special&&(T.special=!0),x.pathFormula){T.pathFormula=x.pathFormula,T.viewBox=[S,O];const M=ju[x.pathFormula];"editable"in M?(T.path=M.formula(S,O,M.defaultValue),T.keypoint=M.defaultValue):T.path=M.formula(S,O)}a(T)},createLineElement:(A,x)=>{const{left:R,top:y,start:g,end:S}=A,O={type:"line",id:xn(10),left:R,top:y,start:g,end:S,points:x.points,color:r.value.themeColor,style:x.style,width:2};x.isBroken&&(O.broken=[(g[0]+S[0])/2,(g[1]+S[1])/2]),x.isCurve&&(O.curve=[(g[0]+S[0])/2,(g[1]+S[1])/2]),x.isCubic&&(O.cubic=[[(g[0]+S[0])/2,(g[1]+S[1])/2],[(g[0]+S[0])/2,(g[1]+S[1])/2]]),a(O)},createLatexElement:A=>{a({type:"latex",id:xn(10),width:A.w,height:A.h,rotate:0,left:(Ht-A.w)/2,top:(Ht*o.value-A.h)/2,path:A.path,latex:A.latex,color:r.value.fontColor,strokeWidth:2,viewBox:[A.w,A.h],fixedRatio:!0})},createVideoElement:A=>{a({type:"video",id:xn(10),width:500,height:300,rotate:0,left:(Ht-500)/2,top:(Ht*o.value-300)/2,src:A,autoplay:!1})},createAudioElement:A=>{a({type:"audio",id:xn(10),width:50,height:50,rotate:0,left:(Ht-50)/2,top:(Ht*o.value-50)/2,loop:!1,autoplay:!1,fixedRatio:!0,color:r.value.themeColor,src:A})}}},Hg=()=>{const e=dt(),t=ut(),{currentSlide:n,slides:r}=Xe(t),{addHistorySnapshot:o}=Jt(),i=c=>{const{groupIdMap:l,elIdMap:u}=h3(c),f=c[0];let d=0,h;do h=n.value.elements.find(p=>{if(p.type!==f.type)return!1;const{minX:m,maxX:A,minY:x,maxY:R}=wa(p),{minX:y,maxX:g,minY:S,maxY:O}=wa({...f,left:f.left+d,top:f.top+d});return m===y&&A===g&&x===S&&R===O}),h&&(d+=10);while(h);for(const p of c)p.id=u[p.id],p.left=p.left+d,p.top=p.top+d,p.groupId&&(p.groupId=l[p.groupId]);t.addElement(c),e.setActiveElementIdList(Object.values(u)),o()},a=c=>{const l=Wz(c),u=c.map(f=>{const{groupIdMap:d,elIdMap:h}=h3(f.elements);for(const p of f.elements)p.id=h[p.id],p.groupId&&(p.groupId=d[p.groupId]),p.link&&p.link.type==="slide"&&(l[p.link.target]?p.link.target=l[p.link.target]:delete p.link);if(f.animations)for(const p of f.animations)p.id=xn(10),p.elId=h[p.elId];return{...f,id:l[f.id]}});t.addSlide(u),o()},s=Se(()=>!(r.value.length>1||r.value[0].elements.length>0));return{addElementsFromData:i,addSlidesFromData:a,isEmptySlide:s}},Nb=()=>{const{createTextElement:e}=qu(),{addElementsFromData:t,addSlidesFromData:n}=Hg(),r=i=>{e({left:0,top:0,width:600,height:50},{content:i})};return{pasteTextClipboardData:(i,a)=>{const s=(a==null?void 0:a.onlySlide)||!1,c=(a==null?void 0:a.onlyElements)||!1,l=Ob(i);if(typeof l=="object"){const{type:u,data:f}=l;u==="elements"&&!s?t(f):u==="slides"&&!c&&n(f)}else if(!c&&!s){const u=kb(l);r(u)}}}},Hd=()=>{const e=dt(),t=ut(),{selectedSlidesIndex:n,activeElementIdList:r}=Xe(e),{currentSlide:o,slides:i,theme:a,slideIndex:s}=Xe(t),c=Se(()=>[...n.value,s.value]),l=Se(()=>i.value.filter((L,k)=>c.value.includes(k))),u=Se(()=>l.value.map(L=>L.id)),{pasteTextClipboardData:f}=Nb(),{addSlidesFromData:d}=Hg(),{addHistorySnapshot:h}=Jt(),p=()=>{const L={id:xn(10),elements:[],background:{type:"solid",color:a.value.backgroundColor}};t.updateSlideIndex(0),e.setActiveElementIdList([]),t.setSlides([L])},m=L=>{L===yt.UP&&s.value>0?(r.value.length&&e.setActiveElementIdList([]),t.updateSlideIndex(s.value-1)):L===yt.DOWN&&s.value{const L=Lb(JSON.stringify({type:"slides",data:l.value}));HN(L).then(()=>{e.setThumbnailsFocus(!0)})},x=()=>{GN().then(L=>{f(L,{onlySlide:!0})}).catch(L=>On.warning(L))},R=()=>{const L={id:xn(10),elements:[],background:{type:"solid",color:a.value.backgroundColor}};e.setActiveElementIdList([]),t.addSlide(L),h()},y=L=>{const{groupIdMap:k,elIdMap:F}=h3(L.elements);for(const E of L.elements)E.id=F[E.id],E.groupId&&(E.groupId=k[E.groupId]);const N={...L,id:xn(10)};e.setActiveElementIdList([]),t.addSlide(N),h()},g=()=>{const L=JSON.parse(JSON.stringify(o.value));d([L])},S=(L=u.value)=>{i.value.length===L.length?p():t.deleteSlide(L),e.updateSelectedSlidesIndex([]),h()};return{resetSlides:p,updateSlideIndex:m,copySlide:A,pasteSlide:x,createSlide:R,createSlideByTemplate:y,copyAndPasteSlide:g,deleteSlide:S,cutSlide:()=>{const L=[...u.value];A(),S(L)},selectAllSlide:()=>{const L=Array.from(Array(i.value.length),(k,F)=>F);e.setActiveElementIdList([]),e.updateSelectedSlidesIndex(L)},sortSlides:(L,k)=>{if(k===L)return;const F=JSON.parse(JSON.stringify(i.value)),N=F[k];F.splice(k,1),F.splice(L,0,N),t.setSlides(F),t.updateSlideIndex(L)}}},$N=()=>{const e=dt(),t=ut(),{activeElementIdList:n}=Xe(e),{currentSlide:r}=Xe(t),{addHistorySnapshot:o}=Jt();return{lockElement:()=>{const s=JSON.parse(JSON.stringify(r.value.elements));for(const c of s)n.value.includes(c.id)&&(c.lock=!0);t.updateSlide({elements:s}),e.setActiveElementIdList([]),o()},unlockElement:s=>{const c=JSON.parse(JSON.stringify(r.value.elements));if(s.groupId){const l=[];for(const u of c)u.groupId===s.groupId&&(u.lock=!1,l.push(u.id));t.updateSlide({elements:c}),e.setActiveElementIdList(l)}else{for(const l of c)if(l.id===s.id){l.lock=!1;break}t.updateSlide({elements:c}),e.setActiveElementIdList([s.id])}o()}}},Np=()=>{const e=dt(),t=ut(),{activeElementIdList:n,activeGroupElementId:r}=Xe(e),{currentSlide:o}=Xe(t),{addHistorySnapshot:i}=Jt();return{deleteElement:()=>{if(!n.value.length)return;let c=[];r.value?c=o.value.elements.filter(l=>l.id!==r.value):c=o.value.elements.filter(l=>!n.value.includes(l.id)),e.setActiveElementIdList([]),t.updateSlide({elements:c}),i()},deleteAllElements:()=>{o.value.elements.length&&(e.setActiveElementIdList([]),t.updateSlide({elements:[]}),i())}}},Cb=()=>{const e=dt(),t=ut(),{activeElementIdList:n,activeElementList:r,handleElementId:o}=Xe(e),{currentSlide:i}=Xe(t),{addHistorySnapshot:a}=Jt();return{canCombine:Se(()=>{if(r.value.length<2)return!1;const u=r.value[0].groupId;return u?!r.value.every(d=>(d.groupId&&d.groupId)===u):!0}),combineElements:()=>{if(!r.value.length)return;let u=JSON.parse(JSON.stringify(i.value.elements));const f=xn(10),d=[];for(const A of u)n.value.includes(A.id)&&(A.groupId=f,d.push(A));const h=u.findIndex(A=>A.id===d[d.length-1].id),p=d.map(A=>A.id);u=u.filter(A=>!p.includes(A.id));const m=h-d.length+1;u.splice(m,0,...d),t.updateSlide({elements:u}),a()},uncombineElements:()=>{if(!r.value.length||!r.value.some(h=>h.groupId))return;const f=JSON.parse(JSON.stringify(i.value.elements));for(const h of f)n.value.includes(h.id)&&h.groupId&&delete h.groupId;t.updateSlide({elements:f});const d=o.value?[o.value]:[];e.setActiveElementIdList(d),a()}}},Ib=()=>{const e=dt(),{activeElementIdList:t,activeElementList:n}=Xe(e),{pasteTextClipboardData:r}=Nb(),{deleteElement:o}=Np(),i=()=>{if(!t.value.length)return;const l=Lb(JSON.stringify({type:"elements",data:n.value}));HN(l).then(()=>{e.setEditorareaFocus(!0)})},a=()=>{i(),o()},s=()=>{GN().then(l=>{r(l)}).catch(l=>On.warning(l))};return{copyElement:i,cutElement:a,pasteElement:s,quickCopyElement:()=>{i(),s()}}},Fb=()=>{const e=dt(),{currentSlide:t}=Xe(ut()),{hiddenElementIdList:n}=Xe(e);return{selectAllElement:()=>{const i=t.value.elements.filter(a=>!a.lock&&!n.value.includes(a.id)).map(a=>a.id);e.setActiveElementIdList(i)}}},hq=()=>{const e=ut(),{activeElementIdList:t,activeGroupElementId:n}=Xe(dt()),{currentSlide:r}=Xe(e),{addHistorySnapshot:o}=Jt();return{moveElement:(a,s=1)=>{let c=[];const l=u=>{let{left:f,top:d}=u;switch(a){case yt.LEFT:f=f-s;break;case yt.RIGHT:f=f+s;break;case yt.UP:d=d-s;break;case yt.DOWN:d=d+s;break}return{...u,left:f,top:d}};n.value?c=r.value.elements.map(u=>n.value===u.id?l(u):u):c=r.value.elements.map(u=>t.value.includes(u.id)?l(u):u),e.updateSlide({elements:c}),o()}}},Cp=()=>{const e=ut(),{currentSlide:t}=Xe(e),{addHistorySnapshot:n}=Jt(),r=(l,u)=>({minLevel:l.findIndex(f=>f.id===u[0].id),maxLevel:l.findIndex(f=>f.id===u[u.length-1].id)}),o=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(x=>x.groupId===u.groupId),{minLevel:h,maxLevel:p}=r(l,d);if(p===l.length-1)return;const m=f[p+1],A=f.splice(h,d.length);if(m.groupId){const x=f.filter(R=>R.groupId===m.groupId);f.splice(h+x.length,0,...A)}else f.splice(h+1,0,...A)}else{const d=l.findIndex(m=>m.id===u.id);if(d===l.length-1)return;const h=f[d+1],p=f.splice(d,1)[0];if(h.groupId){const m=f.filter(A=>A.groupId===h.groupId);f.splice(d+m.length,0,p)}else f.splice(d+1,0,p)}return f},i=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(A=>A.groupId===u.groupId),{minLevel:h}=r(l,d);if(h===0)return;const p=f[h-1],m=f.splice(h,d.length);if(p.groupId){const A=f.filter(x=>x.groupId===p.groupId);f.splice(h-A.length,0,...m)}else f.splice(h-1,0,...m)}else{const d=l.findIndex(m=>m.id===u.id);if(d===0)return;const h=f[d-1],p=f.splice(d,1)[0];if(h.groupId){const m=f.filter(A=>A.groupId===h.groupId);f.splice(d-m.length,0,p)}else f.splice(d-1,0,p)}return f},a=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(A=>A.groupId===u.groupId),{minLevel:h,maxLevel:p}=r(l,d);if(p===l.length-1)return null;const m=f.splice(h,d.length);f.push(...m)}else{const d=l.findIndex(h=>h.id===u.id);if(d===l.length-1)return null;f.splice(d,1),f.push(u)}return f},s=(l,u)=>{const f=JSON.parse(JSON.stringify(l));if(u.groupId){const d=f.filter(m=>m.groupId===u.groupId),{minLevel:h}=r(l,d);if(h===0)return;const p=f.splice(h,d.length);f.unshift(...p)}else{const d=l.findIndex(h=>h.id===u.id);if(d===0)return;f.splice(d,1),f.unshift(u)}return f};return{orderElement:(l,u)=>{let f;u===mr.UP?f=o(t.value.elements,l):u===mr.DOWN?f=i(t.value.elements,l):u===mr.TOP?f=a(t.value.elements,l):u===mr.BOTTOM&&(f=s(t.value.elements,l)),f&&(e.updateSlide({elements:f}),n())}}},_b=()=>{const e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()},jN=()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},m3=()=>!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement),wc=()=>{const e=UN(),t=ut(),n=()=>{_b(),e.setScreening(!0)};return{enterScreening:n,enterScreeningFromStart:()=>{t.updateSlideIndex(0),n()},exitScreening:()=>{e.setScreening(!1),m3()&&jN()}}},Xb=()=>{const e=dt(),{canvasPercentage:t,canvasScale:n,canvasDragged:r}=Xe(e);return{canvasScalePercentage:Se(()=>Math.round(n.value*100)+"%"),setCanvasScalePercentage:c=>{const l=Math.round(c/n.value*t.value)/100;e.setCanvasPercentage(l)},scaleCanvas:c=>{let l=t.value;const u=5,f=200,d=30;c==="+"&&l<=f&&(l+=u),c==="-"&&l>=d&&(l-=u),e.setCanvasPercentage(l)},resetCanvas:()=>{e.setCanvasPercentage(90),r&&e.setCanvasDragged(!1)}}},pq=()=>{const e=dt(),t=Ms(),{activeElementIdList:n,disableHotkeys:r,handleElement:o,handleElementId:i,editorAreaFocus:a,thumbnailsFocus:s,showSearchPanel:c}=Xe(e),{currentSlide:l}=Xe(ut()),{ctrlKeyState:u,shiftKeyState:f,spaceKeyState:d}=Xe(t),{updateSlideIndex:h,copySlide:p,createSlide:m,deleteSlide:A,cutSlide:x,copyAndPasteSlide:R,selectAllSlide:y}=Hd(),{combineElements:g,uncombineElements:S}=Cb(),{deleteElement:O}=Np(),{lockElement:T}=$N(),{copyElement:M,cutElement:L,quickCopyElement:k}=Ib(),{selectAllElement:F}=Fb(),{moveElement:N}=hq(),{orderElement:E}=Cp(),{redo:C,undo:_}=Jt(),{enterScreening:I,enterScreeningFromStart:V}=wc(),{scaleCanvas:B,resetCanvas:G}=Xb(),oe=()=>{n.value.length?M():s.value&&p()},W=()=>{n.value.length?L():s.value&&x()},Z=()=>{n.value.length?k():s.value&&R()},K=()=>{a.value&&F(),s.value&&y()},U=()=>{a.value&&T()},z=()=>{a.value&&g()},fe=()=>{a.value&&S()},se=()=>{n.value.length?O():s.value&&A()},ie=$=>{n.value.length?N($):($===yt.UP||$===yt.DOWN)&&h($)},me=$=>{$===yt.PAGEUP?h(yt.UP):$===yt.PAGEDOWN&&h(yt.DOWN)},Ae=$=>{o.value&&E(o.value,$)},ye=()=>{s.value&&m()},J=()=>{if(!l.value.elements.length)return;if(!i.value){const q=l.value.elements[0];e.setActiveElementIdList([q.id]);return}const $=l.value.elements.findIndex(q=>q.id===i.value),ue=$>=l.value.elements.length-1?0:$+1,j=l.value.elements[ue].id;e.setActiveElementIdList([j])},ae=$=>{const{ctrlKey:ue,shiftKey:j,altKey:q,metaKey:re}=$,pe=ue||re,le=$.key.toUpperCase();if(pe&&!u.value&&t.setCtrlKeyState(!0),j&&!f.value&&t.setShiftKeyState(!0),!r.value&&le===yt.SPACE&&t.setSpaceKeyState(!0),pe&&le===yt.P){$.preventDefault(),e.setDialogForExport("pdf");return}if(j&&le===yt.F5){$.preventDefault(),I(),t.setShiftKeyState(!1);return}if(le===yt.F5){$.preventDefault(),V();return}if(ue&&le===yt.F){$.preventDefault(),e.setSearchPanelState(!c.value);return}if(!(!a.value&&!s.value)){if(pe&&le===yt.C){if(r.value)return;$.preventDefault(),oe()}if(pe&&le===yt.X){if(r.value)return;$.preventDefault(),W()}if(pe&&le===yt.D){if(r.value)return;$.preventDefault(),Z()}if(pe&&le===yt.Z){if(r.value)return;$.preventDefault(),_()}if(pe&&le===yt.Y){if(r.value)return;$.preventDefault(),C()}if(pe&&le===yt.A){if(r.value)return;$.preventDefault(),K()}if(pe&&le===yt.L){if(r.value)return;$.preventDefault(),U()}if(!j&&pe&&le===yt.G){if(r.value)return;$.preventDefault(),z()}if(j&&pe&&le===yt.G){if(r.value)return;$.preventDefault(),fe()}if(q&&le===yt.F){if(r.value)return;$.preventDefault(),Ae(mr.TOP)}if(q&&le===yt.B){if(r.value)return;$.preventDefault(),Ae(mr.BOTTOM)}if(le===yt.DELETE||le===yt.BACKSPACE){if(r.value)return;$.preventDefault(),se()}if(le===yt.UP){if(r.value)return;$.preventDefault(),ie(yt.UP)}if(le===yt.DOWN){if(r.value)return;$.preventDefault(),ie(yt.DOWN)}if(le===yt.LEFT){if(r.value)return;$.preventDefault(),ie(yt.LEFT)}if(le===yt.RIGHT){if(r.value)return;$.preventDefault(),ie(yt.RIGHT)}if(le===yt.PAGEUP){if(r.value)return;$.preventDefault(),me(yt.PAGEUP)}if(le===yt.PAGEDOWN){if(r.value)return;$.preventDefault(),me(yt.PAGEDOWN)}if(le===yt.ENTER){if(r.value)return;$.preventDefault(),ye()}if(le===yt.MINUS){if(r.value)return;$.preventDefault(),B("-")}if(le===yt.EQUAL){if(r.value)return;$.preventDefault(),B("+")}if(le===yt.DIGIT_0){if(r.value)return;$.preventDefault(),G()}if(le===yt.TAB){if(r.value)return;$.preventDefault(),J()}}},X=()=>{u.value&&t.setCtrlKeyState(!1),f.value&&t.setShiftKeyState(!1),d.value&&t.setSpaceKeyState(!1)};Gt(()=>{document.addEventListener("keydown",ae),document.addEventListener("keyup",X),window.addEventListener("blur",X)}),Pn(()=>{document.removeEventListener("keydown",ae),document.removeEventListener("keyup",X),window.removeEventListener("blur",X)})},mq=()=>{const{editorAreaFocus:e,thumbnailsFocus:t,disableHotkeys:n}=Xe(dt()),{pasteTextClipboardData:r}=Nb(),{createImageElement:o}=qu(),i=s=>{$u(s).then(c=>o(c))},a=s=>{if(!e.value&&!t.value||n.value||!s.clipboardData)return;const c=s.clipboardData.items,l=c[0];if(l){for(const u of c)if(u.kind==="file"&&u.type.indexOf("image")!==-1){const f=u.getAsFile();f&&i(f);return}l.kind==="string"&&l.type==="text/plain"&&l.getAsString(u=>r(u))}};Gt(()=>{document.addEventListener("paste",a)}),Pn(()=>{document.removeEventListener("paste",a)})};function qN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xw(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,o)}function ai(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){xw(i,r,o,a,s,"next",c)}function s(c){xw(i,r,o,a,s,"throw",c)}a(void 0)})}}var Ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gg(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var e9={exports:{}},bw={exports:{}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(bw),function(e){var t=bw.exports.default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(_,I,V){_[I]=V.value},s=typeof Symbol=="function"?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function f(_,I,V){return Object.defineProperty(_,I,{value:V,enumerable:!0,configurable:!0,writable:!0}),_[I]}try{f({},"")}catch{f=function(I,V,B){return I[V]=B}}function d(_,I,V,B){var G=I&&I.prototype instanceof m?I:m,oe=Object.create(G.prototype),W=new N(B||[]);return a(oe,"_invoke",{value:M(_,V,W)}),oe}function h(_,I,V){try{return{type:"normal",arg:_.call(I,V)}}catch(B){return{type:"throw",arg:B}}}r.wrap=d;var p={};function m(){}function A(){}function x(){}var R={};f(R,c,function(){return this});var y=Object.getPrototypeOf,g=y&&y(y(E([])));g&&g!==o&&i.call(g,c)&&(R=g);var S=x.prototype=m.prototype=Object.create(R);function O(_){["next","throw","return"].forEach(function(I){f(_,I,function(V){return this._invoke(I,V)})})}function T(_,I){function V(G,oe,W,Z){var K=h(_[G],_,oe);if(K.type!=="throw"){var U=K.arg,z=U.value;return z&&t(z)=="object"&&i.call(z,"__await")?I.resolve(z.__await).then(function(fe){V("next",fe,W,Z)},function(fe){V("throw",fe,W,Z)}):I.resolve(z).then(function(fe){U.value=fe,W(U)},function(fe){return V("throw",fe,W,Z)})}Z(K.arg)}var B;a(this,"_invoke",{value:function(G,oe){function W(){return new I(function(Z,K){V(G,oe,Z,K)})}return B=B?B.then(W,W):W()}})}function M(_,I,V){var B="suspendedStart";return function(G,oe){if(B==="executing")throw new Error("Generator is already running");if(B==="completed"){if(G==="throw")throw oe;return C()}for(V.method=G,V.arg=oe;;){var W=V.delegate;if(W){var Z=L(W,V);if(Z){if(Z===p)continue;return Z}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(B==="suspendedStart")throw B="completed",V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);B="executing";var K=h(_,I,V);if(K.type==="normal"){if(B=V.done?"completed":"suspendedYield",K.arg===p)continue;return{value:K.arg,done:V.done}}K.type==="throw"&&(B="completed",V.method="throw",V.arg=K.arg)}}}function L(_,I){var V=_.iterator[I.method];if(V===void 0){if(I.delegate=null,I.method==="throw"){if(_.iterator.return&&(I.method="return",I.arg=void 0,L(_,I),I.method==="throw"))return p;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var B=h(V,_.iterator,I.arg);if(B.type==="throw")return I.method="throw",I.arg=B.arg,I.delegate=null,p;var G=B.arg;return G?G.done?(I[_.resultName]=G.value,I.next=_.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,p):G:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,p)}function k(_){var I={tryLoc:_[0]};1 in _&&(I.catchLoc=_[1]),2 in _&&(I.finallyLoc=_[2],I.afterLoc=_[3]),this.tryEntries.push(I)}function F(_){var I=_.completion||{};I.type="normal",delete I.arg,_.completion=I}function N(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(k,this),this.reset(!0)}function E(_){if(_){var I=_[c];if(I)return I.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var V=-1,B=function G(){for(;++V<_.length;)if(i.call(_,V))return G.value=_[V],G.done=!1,G;return G.value=void 0,G.done=!0,G};return B.next=B}}return{next:C}}function C(){return{value:void 0,done:!0}}return A.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:A,configurable:!0}),A.displayName=f(x,u,"GeneratorFunction"),r.isGeneratorFunction=function(_){var I=typeof _=="function"&&_.constructor;return!!I&&(I===A||(I.displayName||I.name)==="GeneratorFunction")},r.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,x):(_.__proto__=x,f(_,u,"GeneratorFunction")),_.prototype=Object.create(S),_},r.awrap=function(_){return{__await:_}},O(T.prototype),f(T.prototype,l,function(){return this}),r.AsyncIterator=T,r.async=function(_,I,V,B,G){G===void 0&&(G=Promise);var oe=new T(d(_,I,V,B),G);return r.isGeneratorFunction(I)?oe:oe.next().then(function(W){return W.done?W.value:oe.next()})},O(S),f(S,u,"Generator"),f(S,c,function(){return this}),f(S,"toString",function(){return"[object Generator]"}),r.keys=function(_){var I=Object(_),V=[];for(var B in I)V.push(B);return V.reverse(),function G(){for(;V.length;){var oe=V.pop();if(oe in I)return G.value=oe,G.done=!1,G}return G.done=!0,G}},r.values=E,N.prototype={constructor:N,reset:function(_){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!_)for(var I in this)I.charAt(0)==="t"&&i.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var I=this;function V(K,U){return oe.type="throw",oe.arg=_,I.next=K,U&&(I.method="next",I.arg=void 0),!!U}for(var B=this.tryEntries.length-1;B>=0;--B){var G=this.tryEntries[B],oe=G.completion;if(G.tryLoc==="root")return V("end");if(G.tryLoc<=this.prev){var W=i.call(G,"catchLoc"),Z=i.call(G,"finallyLoc");if(W&&Z){if(this.prev=0;--V){var B=this.tryEntries[V];if(B.tryLoc<=this.prev&&i.call(B,"finallyLoc")&&this.prev=0;--I){var V=this.tryEntries[I];if(V.finallyLoc===_)return this.complete(V.completion,V.afterLoc),F(V),p}},catch:function(_){for(var I=this.tryEntries.length-1;I>=0;--I){var V=this.tryEntries[I];if(V.tryLoc===_){var B=V.completion;if(B.type==="throw"){var G=B.arg;F(V)}return G}}throw new Error("illegal catch attempt")},delegateYield:function(_,I,V){return this.delegate={iterator:E(_),resultName:I,nextLoc:V},this.method==="next"&&(this.arg=void 0),p}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(e9);var Bm=e9.exports(),Vn=Bm;try{regeneratorRuntime=Bm}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Bm:Function("r","regeneratorRuntime = r")(Bm)}var Gd={},Sw={},kd=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},ns=[],Di=[],vq=typeof Uint8Array<"u"?Uint8Array:Array,Eb=!1;function t9(){Eb=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+ns[o>>12&63]+ns[o>>6&63]+ns[63&o]);return i.join("")}function Mw(e){var t;Eb||t9();for(var n=e.length,r=n%3,o="",i=[],a=16383,s=0,c=n-r;sc?c:s+a));return r===1?(t=e[n-1],o+=ns[t>>2],o+=ns[t<<4&63],o+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],o+=ns[t>>10],o+=ns[t>>4&63],o+=ns[t<<2&63],o+="="),i.push(o),i.join("")}function lm(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<>1,u=-7,f=n?o-1:0,d=n?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)}function n9(e,t,n,r,o,i){var a,s,c,l=8*i-o-1,u=(1<>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}var Aq={}.toString,r9=Array.isArray||function(e){return Aq.call(e)=="[object Array]"};Ke.TYPED_ARRAY_SUPPORT=kd.TYPED_ARRAY_SUPPORT===void 0||kd.TYPED_ARRAY_SUPPORT;var Rq=Zv();function Zv(){return Ke.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function js(e,t){if(Zv()=Zv())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Zv().toString(16)+" bytes");return 0|e}function rs(e){return!(e==null||!e._isBuffer)}function a9(e,t){if(rs(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Bv(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return u9(e).length;default:if(r)return Bv(e).length;t=(""+t).toLowerCase(),r=!0}}function yq(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return kq(this,t,n);case"utf8":case"utf-8":return l9(this,t,n);case"ascii":return Oq(this,t,n);case"latin1":case"binary":return Tq(this,t,n);case"base64":return Lq(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pq(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Bc(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ww(e,t,n,r,o){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(typeof t=="string"&&(t=Ke.from(t,r)),rs(t))return t.length===0?-1:Lw(e,t,n,r,o);if(typeof t=="number")return t&=255,Ke.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Lw(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Lw(e,t,n,r,o){var i,a=1,s=e.length,c=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(h,p){return a===1?h[p]:h.readUInt16BE(p*a)}if(o){var u=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var f=!0,d=0;do&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,c=a%256,l.push(c),l.push(s);return l}(t,e.length-n),e,n,r)}function Lq(e,t,n){return t===0&&n===e.length?Mw(e):Mw(e.slice(t,n))}function l9(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:l>223?3:l>191?2:1;if(o+f<=n)switch(f){case 1:l<128&&(u=l);break;case 2:(192&(i=e[o+1]))==128&&(c=(31&l)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(c=(15&l)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(c=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(d){var h=d.length;if(h<=4096)return String.fromCharCode.apply(String,d);for(var p="",m=0;m0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ke.prototype.compare=function(e,t,n,r,o){if(!rs(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),o===void 0&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),u=0;uo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return xq(this,e,t,n);case"utf8":case"utf-8":return bq(this,e,t,n);case"ascii":return s9(this,e,t,n);case"latin1":case"binary":return Sq(this,e,t,n);case"base64":return Mq(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wq(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Ke.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oq(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Zo(e,t,n,r,o,i){if(!rs(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function cm(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function um(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function c9(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ow(e,t,n,r,o){return o||c9(e,0,n,4),n9(e,t,n,r,23,4),n+4}function Tw(e,t,n,r,o){return o||c9(e,0,n,8),n9(e,t,n,r,52,8),n+8}Ke.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},Ke.prototype.readUInt8=function(e,t){return t||Qr(e,1,this.length),this[e]},Ke.prototype.readUInt16LE=function(e,t){return t||Qr(e,2,this.length),this[e]|this[e+1]<<8},Ke.prototype.readUInt16BE=function(e,t){return t||Qr(e,2,this.length),this[e]<<8|this[e+1]},Ke.prototype.readUInt32LE=function(e,t){return t||Qr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ke.prototype.readUInt32BE=function(e,t){return t||Qr(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ke.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Qr(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},Ke.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Qr(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Ke.prototype.readInt8=function(e,t){return t||Qr(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ke.prototype.readInt16LE=function(e,t){t||Qr(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ke.prototype.readInt16BE=function(e,t){t||Qr(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ke.prototype.readInt32LE=function(e,t){return t||Qr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ke.prototype.readInt32BE=function(e,t){return t||Qr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ke.prototype.readFloatLE=function(e,t){return t||Qr(e,4,this.length),lm(this,e,!0,23,4)},Ke.prototype.readFloatBE=function(e,t){return t||Qr(e,4,this.length),lm(this,e,!1,23,4)},Ke.prototype.readDoubleLE=function(e,t){return t||Qr(e,8,this.length),lm(this,e,!0,52,8)},Ke.prototype.readDoubleBE=function(e,t){return t||Qr(e,8,this.length),lm(this,e,!1,52,8)},Ke.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Zo(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Ke.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,1,255,0),Ke.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ke.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,65535,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):cm(this,e,t,!0),t+2},Ke.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,65535,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):cm(this,e,t,!1),t+2},Ke.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,4294967295,0),Ke.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):um(this,e,t,!0),t+4},Ke.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,4294967295,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):um(this,e,t,!1),t+4},Ke.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Zo(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},Ke.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);Zo(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Ke.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,1,127,-128),Ke.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ke.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,32767,-32768),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):cm(this,e,t,!0),t+2},Ke.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,2,32767,-32768),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):cm(this,e,t,!1),t+2},Ke.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,2147483647,-2147483648),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):um(this,e,t,!0),t+4},Ke.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Zo(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):um(this,e,t,!1),t+4},Ke.prototype.writeFloatLE=function(e,t,n){return Ow(this,e,t,!0,n)},Ke.prototype.writeFloatBE=function(e,t,n){return Ow(this,e,t,!1,n)},Ke.prototype.writeDoubleLE=function(e,t,n){return Tw(this,e,t,!0,n)},Ke.prototype.writeDoubleBE=function(e,t,n){return Tw(this,e,t,!1,n)},Ke.prototype.copy=function(e,t,n,r){if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Ke.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function u9(e){return function(t){var n,r,o,i,a,s;Eb||t9();var c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[c-2]==="="?2:t[c-1]==="="?1:0,s=new vq(3*c/4-a),o=a>0?c-4:c;var l=0;for(n=0,r=0;n>16&255,s[l++]=i>>8&255,s[l++]=255&i;return a===2?(i=Di[t.charCodeAt(n)]<<2|Di[t.charCodeAt(n+1)]>>4,s[l++]=255&i):a===1&&(i=Di[t.charCodeAt(n)]<<10|Di[t.charCodeAt(n+1)]<<4|Di[t.charCodeAt(n+2)]>>2,s[l++]=i>>8&255,s[l++]=255&i),s}(function(t){if((t=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(t).replace(Nq,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function Jg(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Ip(e){return e!=null&&(!!e._isBuffer||kw(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&kw(t.slice(0,0))}(e))}function kw(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var Iq=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:Rq,Buffer:Ke,SlowBuffer:function(e){return+e!=e&&(e=0),Ke.alloc(+e)},isBuffer:Ip}),kr={};function f9(){throw new Error("setTimeout has not been defined")}function d9(){throw new Error("clearTimeout has not been defined")}var Fl=f9,_l=d9;function h9(e){if(Fl===setTimeout)return setTimeout(e,0);if((Fl===f9||!Fl)&&setTimeout)return Fl=setTimeout,setTimeout(e,0);try{return Fl(e,0)}catch{try{return Fl.call(null,e,0)}catch{return Fl.call(this,e,0)}}}typeof kd.setTimeout=="function"&&(Fl=setTimeout),typeof kd.clearTimeout=="function"&&(_l=clearTimeout);var ou,qs=[],md=!1,Dm=-1;function Fq(){md&&ou&&(md=!1,ou.length?qs=ou.concat(qs):Dm=-1,qs.length&&p9())}function p9(){if(!md){var e=h9(Fq);md=!0;for(var t=qs.length;t;){for(ou=qs,qs=[];++Dm1)for(var n=1;n0&&a.length>o){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,typeof console.warn=="function"?console.warn(s):console.log(s)}}else a=i[t]=n,++e._eventsCount;return e}function Nw(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function Cw(e){var t=this._events;if(t){var n=t[e];if(typeof n=="function")return 1;if(n)return n.length}return 0}function Fp(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}Xl.prototype=Object.create(null),vn.EventEmitter=vn,vn.usingDomains=!1,vn.prototype.domain=void 0,vn.prototype._events=void 0,vn.prototype._maxListeners=void 0,vn.defaultMaxListeners=10,vn.init=function(){this.domain=null,vn.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Xl,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},vn.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},vn.prototype.getMaxListeners=function(){return v9(this)},vn.prototype.emit=function(e){var t,n,r,o,i,a,s,c=e==="error";if(a=this._events)c=c&&a.error==null;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u=typeof n=="function";switch(r=arguments.length){case 1:Bq(n,u,this);break;case 2:Dq(n,u,this,arguments[1]);break;case 3:Kq(n,u,this,arguments[1],arguments[2]);break;case 4:Hq(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount==0)return this._events=new Xl,this;delete r[e]}else(function(s,c){for(var l=c,u=l+1,f=s.length;u0?Reflect.ownKeys(this._events):[]};var Jq=Object.freeze({__proto__:null,default:vn,EventEmitter:vn}),lc=typeof Object.create=="function"?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},zq=/%[sdj%]/g;function zg(e){if(!np(e)){for(var t=[],n=0;n=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}default:return s}}),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),jg(t)?n.showHidden=t:t&&Zb(n,t),ls(n.showHidden)&&(n.showHidden=!1),ls(n.depth)&&(n.depth=2),ls(n.colors)&&(n.colors=!1),ls(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=$q),Dv(n,e,n.depth)}function $q(e,t){var n=ds.styles[t];return n?"\x1B["+ds.colors[n][0]+"m"+e+"\x1B["+ds.colors[n][1]+"m":e}function jq(e,t){return e}function Dv(e,t,n){if(e.customInspect&&t&&yh(t.inspect)&&t.inspect!==ds&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return np(r)||(r=Dv(e,r,n)),r}var o=function(d,h){if(ls(h))return d.stylize("undefined","undefined");if(np(h)){var p="'"+JSON.stringify(h).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return d.stylize(p,"string")}if(Yb(h))return d.stylize(""+h,"number");if(jg(h))return d.stylize(""+h,"boolean");if(_p(h))return d.stylize("null","null")}(e,t);if(o)return o;var i=Object.keys(t),a=function(d){var h={};return d.forEach(function(p,m){h[p]=!0}),h}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Rh(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return $R(t);if(i.length===0){if(yh(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ah(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Kv(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Rh(t))return $R(t)}var c,l="",u=!1,f=["{","}"];return Ub(t)&&(u=!0,f=["[","]"]),yh(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),Ah(t)&&(l=" "+RegExp.prototype.toString.call(t)),Kv(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Rh(t)&&(l=" "+$R(t)),i.length!==0||u&&t.length!=0?n<0?Ah(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=u?function(d,h,p,m,A){for(var x=[],R=0,y=h.length;R60?p[0]+(h===""?"":h+` + `)+" "+d.join(`, + `)+" "+p[1]:p[0]+h+" "+d.join(", ")+" "+p[1]}(c,l,f)):f[0]+l+f[1]}function $R(e){return"["+Error.prototype.toString.call(e)+"]"}function jR(e,t,n,r,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),b9(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=_p(n)?Dv(e,c.value,null):Dv(e,c.value,n-1)).indexOf(` +`)>-1&&(s=i?s.split(` +`).map(function(l){return" "+l}).join(` +`).substr(2):` +`+s.split(` +`).map(function(l){return" "+l}).join(` +`)):s=e.stylize("[Circular]","special")),ls(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function Ub(e){return Array.isArray(e)}function jg(e){return typeof e=="boolean"}function _p(e){return e===null}function g9(e){return e==null}function Yb(e){return typeof e=="number"}function np(e){return typeof e=="string"}function A9(e){return typeof e=="symbol"}function ls(e){return e===void 0}function Ah(e){return tf(e)&&Qb(e)==="[object RegExp]"}function tf(e){return typeof e=="object"&&e!==null}function Kv(e){return tf(e)&&Qb(e)==="[object Date]"}function Rh(e){return tf(e)&&(Qb(e)==="[object Error]"||e instanceof Error)}function yh(e){return typeof e=="function"}function R9(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0}function y9(e){return Ip(e)}function Qb(e){return Object.prototype.toString.call(e)}function qR(e){return e<10?"0"+e.toString(10):e.toString(10)}ds.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ds.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var qq=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function eee(){var e=new Date,t=[qR(e.getHours()),qR(e.getMinutes()),qR(e.getSeconds())].join(":");return[e.getDate(),qq[e.getMonth()],t].join(" ")}function x9(){console.log("%s - %s",eee(),zg.apply(null,arguments))}function Zb(e,t){if(!t||!tf(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function b9(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var tee={inherits:lc,_extend:Zb,log:x9,isBuffer:y9,isPrimitive:R9,isFunction:yh,isError:Rh,isDate:Kv,isObject:tf,isRegExp:Ah,isUndefined:ls,isSymbol:A9,isString:np,isNumber:Yb,isNullOrUndefined:g9,isNull:_p,isBoolean:jg,isArray:Ub,inspect:ds,deprecate:$g,format:zg,debuglog:Vb},nee=Object.freeze({__proto__:null,format:zg,deprecate:$g,debuglog:Vb,inspect:ds,isArray:Ub,isBoolean:jg,isNull:_p,isNullOrUndefined:g9,isNumber:Yb,isString:np,isSymbol:A9,isUndefined:ls,isRegExp:Ah,isObject:tf,isDate:Kv,isError:Rh,isFunction:yh,isPrimitive:R9,isBuffer:y9,log:x9,inherits:lc,_extend:Zb,default:tee});function zc(){this.head=null,this.tail=null,this.length=0}zc.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},zc.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},zc.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},zc.prototype.clear=function(){this.head=this.tail=null,this.length=0},zc.prototype.join=function(e){if(this.length===0)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},zc.prototype.concat=function(e){if(this.length===0)return Ke.alloc(0);if(this.length===1)return this.head.data;for(var t=Ke.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var ree=Ke.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function xh(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!ree(t))throw new Error("Unknown encoding: "+t)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=iee;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=aee;break;default:return void(this.write=oee)}this.charBuffer=new Ke(6),this.charReceived=0,this.charLength=0}function oee(e){return e.toString(this.encoding)}function iee(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function aee(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}xh.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&o<=56319)){if(this.charReceived=this.charLength=0,e.length===0)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var o;if(r=(t+=e.toString(this.encoding,0,r)).length-1,(o=t.charCodeAt(r))>=55296&&o<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,r)}return t},xh.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(t==1&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},xh.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t},dr.ReadableState=S9;var Yn=Vb("stream");function S9(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Ci&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||n===0?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new zc,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new xh(e.encoding),this.encoding=e.encoding)}function dr(e){if(!(this instanceof dr))return new dr(e);this._readableState=new S9(e,this),this.readable=!0,e&&typeof e.read=="function"&&(this._read=e.read),vn.call(this)}function Iw(e,t,n,r,o){var i=function(l,u){var f=null;return Ip(u)||typeof u=="string"||u==null||l.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f}(t,n);if(i)e.emit("error",i);else if(n===null)t.reading=!1,function(l,u){if(!u.ended){if(u.decoder){var f=u.decoder.end();f&&f.length&&(u.buffer.push(f),u.length+=u.objectMode?1:f.length)}u.ended=!0,Hv(l)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!o){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&o){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var c;!t.decoder||o||r||(n=t.decoder.write(n),c=!t.objectMode&&n.length===0),o||(t.reading=!1),c||(t.flowing&&t.length===0&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Hv(e))),function(l,u){u.readingMore||(u.readingMore=!0,Wr(see,l,u))}(e,t)}else o||(t.reading=!1);return function(l){return!l.ended&&(l.needReadable||l.lengtht.highWaterMark&&(t.highWaterMark=function(n){return n>=8388608?n=8388608:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Hv(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Yn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Wr(_w,e):_w(e))}function _w(e){Yn("emit readable"),e.emit("readable"),Bb(e)}function see(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(r,o,i){var a;return rd.length?d.length:s;if(h===d.length?f+=d:f+=d.slice(0,s),(s-=h)===0){h===d.length?(++u,l.next?c.head=l.next:c.head=c.tail=null):(c.head=l,l.data=d.slice(h));break}++u}return c.length-=u,f}(r,o):function(s,c){var l=Ke.allocUnsafe(s),u=c.head,f=1;for(u.data.copy(l),s-=u.data.length;u=u.next;){var d=u.data,h=s>d.length?d.length:s;if(d.copy(l,l.length-s,0,h),(s-=h)===0){h===d.length?(++f,u.next?c.head=u.next:c.head=c.tail=null):(c.head=u,u.data=d.slice(h));break}++f}return c.length-=f,l}(r,o),a}(e,t.buffer,t.decoder),n);var n}function ey(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Wr(uee,t,e))}function uee(e,t){e.endEmitted||e.length!==0||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Ew(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return Yn("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?ey(this):Hv(this),null;if((e=Fw(e,t))===0&&t.ended)return t.length===0&&ey(this),null;var r,o=t.needReadable;return Yn("need readable",o),(t.length===0||t.length-e0?Xw(e,t):null)===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&ey(this)),r!==null&&this.emit("data",r),r},dr.prototype._read=function(e){this.emit("error",new Error("not implemented"))},dr.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Yn("pipe count=%d opts=%j",r.pipesCount,t);var o=!t||t.end!==!1?a:l;function i(A){Yn("onunpipe"),A===n&&l()}function a(){Yn("onend"),e.end()}r.endEmitted?Wr(o):n.once("end",o),e.on("unpipe",i);var s=function(A){return function(){var x=A._readableState;Yn("pipeOnDrain",x.awaitDrain),x.awaitDrain&&x.awaitDrain--,x.awaitDrain===0&&A.listeners("data").length&&(x.flowing=!0,Bb(A))}}(n);e.on("drain",s);var c=!1;function l(){Yn("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",d),e.removeListener("unpipe",i),n.removeListener("end",a),n.removeListener("end",l),n.removeListener("data",f),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var u=!1;function f(A){Yn("ondata"),u=!1,e.write(A)!==!1||u||((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&Ew(r.pipes,e)!==-1)&&!c&&(Yn("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,u=!0),n.pause())}function d(A){var x;Yn("onerror",A),m(),e.removeListener("error",d),x="error",e.listeners(x).length===0&&e.emit("error",A)}function h(){e.removeListener("finish",p),m()}function p(){Yn("onfinish"),e.removeListener("close",h),m()}function m(){Yn("unpipe"),n.unpipe(e)}return n.on("data",f),function(A,x,R){if(typeof A.prependListener=="function")return A.prependListener(x,R);A._events&&A._events[x]?Array.isArray(A._events[x])?A._events[x].unshift(R):A._events[x]=[R,A._events[x]]:A.on(x,R)}(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",n),r.flowing||(Yn("pipe resume"),n.resume()),e},dr.prototype.unpipe=function(e){var t=this._readableState;if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},eo.prototype._write=function(e,t,n){n(new Error("not implemented"))},eo.prototype._writev=null,eo.prototype.end=function(e,t,n){var r=this._writableState;typeof e=="function"?(n=e,e=null,t=null):typeof t=="function"&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(o,i,a){i.ending=!0,L9(o,i),a&&(i.finished?Wr(a):o.once("finish",a)),i.ended=!0,o.writable=!1}(this,r,n)},lc(Ci,dr);for(var Uw=Object.keys(eo.prototype),ty=0;ty0?this.tail.next=i:this.head=i,this.tail=i,++this.length},r.prototype.unshift=function(o){var i={data:o,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},r.prototype.shift=function(){if(this.length!==0){var o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.prototype.join=function(o){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=o+i.data;return a},r.prototype.concat=function(o){if(this.length===0)return t.alloc(0);if(this.length===1)return this.head.data;for(var i,a,s,c=t.allocUnsafe(o>>>0),l=this.head,u=0;l;)i=l.data,a=c,s=u,i.copy(a,s),u+=l.data.length,l=l.next;return c},r}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var r=n.inspect({length:this.length});return this.constructor.name+" "+r})}(oL)),oL.exports}function N9(){if(qw)return iy;qw=1;var e=qg();function t(n,r){n.emit("error",r)}return iy={destroy:function(n,r){var o=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(r?r(n):!n||this._writableState&&this._writableState.errorEmitted||e.nextTick(t,this,n),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(s){!r&&s?(e.nextTick(t,o,s),o._writableState&&(o._writableState.errorEmitted=!0)):r&&r(s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}},iy}function C9(){if(nL)return ay;nL=1;var e=qg();function t(g){var S=this;this.next=null,this.entry=null,this.finish=function(){(function(O,T,M){var L=O.entry;for(O.entry=null;L;){var k=L.callback;T.pendingcb--,k(M),L=L.next}T.corkedRequestsFree?T.corkedRequestsFree.next=O:T.corkedRequestsFree=O})(S,g)}}ay=h;var n,r=e.nextTick;h.WritableState=d;var o=Object.create(Xp());o.inherits=Ep();var i={deprecate:tL?eL:(tL=1,eL=t2.deprecate)},a=k9(),s=e2().Buffer,c=Ri.Uint8Array||function(){},l,u=N9();function f(){}function d(g,S){n=n||Pd(),g=g||{};var O=S instanceof n;this.objectMode=!!g.objectMode,O&&(this.objectMode=this.objectMode||!!g.writableObjectMode);var T=g.highWaterMark,M=g.writableHighWaterMark,L=this.objectMode?16:16384;this.highWaterMark=T||T===0?T:O&&(M||M===0)?M:L,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var k=g.decodeStrings===!1;this.decodeStrings=!k,this.defaultEncoding=g.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(F){(function(N,E){var C=N._writableState,_=C.sync,I=C.writecb;if(function(B){B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0}(C),E)(function(B,G,oe,W,Z){--G.pendingcb,oe?(e.nextTick(Z,W),e.nextTick(y,B,G),B._writableState.errorEmitted=!0,B.emit("error",W)):(Z(W),B._writableState.errorEmitted=!0,B.emit("error",W),y(B,G))})(N,C,_,E,I);else{var V=x(C);V||C.corked||C.bufferProcessing||!C.bufferedRequest||A(N,C),_?r(m,N,C,V,I):m(N,C,V,I)}})(S,F)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function h(g){if(n=n||Pd(),!(l.call(h,this)||this instanceof n))return new h(g);this._writableState=new d(g,this),this.writable=!0,g&&(typeof g.write=="function"&&(this._write=g.write),typeof g.writev=="function"&&(this._writev=g.writev),typeof g.destroy=="function"&&(this._destroy=g.destroy),typeof g.final=="function"&&(this._final=g.final)),a.call(this)}function p(g,S,O,T,M,L,k){S.writelen=T,S.writecb=k,S.writing=!0,S.sync=!0,O?g._writev(M,S.onwrite):g._write(M,L,S.onwrite),S.sync=!1}function m(g,S,O,T){O||function(M,L){L.length===0&&L.needDrain&&(L.needDrain=!1,M.emit("drain"))}(g,S),S.pendingcb--,T(),y(g,S)}function A(g,S){S.bufferProcessing=!0;var O=S.bufferedRequest;if(g._writev&&O&&O.next){var T=S.bufferedRequestCount,M=new Array(T),L=S.corkedRequestsFree;L.entry=O;for(var k=0,F=!0;O;)M[k]=O,O.isBuf||(F=!1),O=O.next,k+=1;M.allBuffers=F,p(g,S,!0,S.length,M,"",L.finish),S.pendingcb++,S.lastBufferedRequest=null,L.next?(S.corkedRequestsFree=L.next,L.next=null):S.corkedRequestsFree=new t(S),S.bufferedRequestCount=0}else{for(;O;){var N=O.chunk,E=O.encoding,C=O.callback;if(p(g,S,!1,S.objectMode?1:N.length,N,E,C),O=O.next,S.bufferedRequestCount--,S.writing)break}O===null&&(S.lastBufferedRequest=null)}S.bufferedRequest=O,S.bufferProcessing=!1}function x(g){return g.ending&&g.length===0&&g.bufferedRequest===null&&!g.finished&&!g.writing}function R(g,S){g._final(function(O){S.pendingcb--,O&&g.emit("error",O),S.prefinished=!0,g.emit("prefinish"),y(g,S)})}function y(g,S){var O=x(S);return O&&(function(T,M){M.prefinished||M.finalCalled||(typeof T._final=="function"?(M.pendingcb++,M.finalCalled=!0,e.nextTick(R,T,M)):(M.prefinished=!0,T.emit("prefinish")))}(g,S),S.pendingcb===0&&(S.finished=!0,g.emit("finish"))),O}return o.inherits(h,a),d.prototype.getBuffer=function(){for(var g=this.bufferedRequest,S=[];g;)S.push(g),g=g.next;return S},function(){try{Object.defineProperty(d.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(h,Symbol.hasInstance,{value:function(g){return!!l.call(this,g)||this===h&&g&&g._writableState instanceof d}})):l=function(g){return g instanceof this},h.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},h.prototype.write=function(g,S,O){var T,M=this._writableState,L=!1,k=!M.objectMode&&(T=g,s.isBuffer(T)||T instanceof c);return k&&!s.isBuffer(g)&&(g=function(F){return s.from(F)}(g)),typeof S=="function"&&(O=S,S=null),k?S="buffer":S||(S=M.defaultEncoding),typeof O!="function"&&(O=f),M.ended?function(F,N){var E=new Error("write after end");F.emit("error",E),e.nextTick(N,E)}(this,O):(k||function(F,N,E,C){var _=!0,I=!1;return E===null?I=new TypeError("May not write null values to stream"):typeof E=="string"||E===void 0||N.objectMode||(I=new TypeError("Invalid non-string/buffer chunk")),I&&(F.emit("error",I),e.nextTick(C,I),_=!1),_}(this,M,g,O))&&(M.pendingcb++,L=function(F,N,E,C,_,I){if(!E){var V=function(W,Z,K){return W.objectMode||W.decodeStrings===!1||typeof Z!="string"||(Z=s.from(Z,K)),Z}(N,C,_);C!==V&&(E=!0,_="buffer",C=V)}var B=N.objectMode?1:C.length;N.length+=B;var G=N.length-1))throw new TypeError("Unknown encoding: "+g);return this._writableState.defaultEncoding=g,this},Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),h.prototype._write=function(g,S,O){O(new Error("_write() is not implemented"))},h.prototype._writev=null,h.prototype.end=function(g,S,O){var T=this._writableState;typeof g=="function"?(O=g,g=null,S=null):typeof S=="function"&&(O=S,S=null),g!=null&&this.write(g,S),T.corked&&(T.corked=1,this.uncork()),T.ending||T.finished||function(M,L,k){L.ending=!0,y(M,L),k&&(L.finished?e.nextTick(k):M.once("finish",k)),L.ended=!0,M.writable=!1}(this,T,O)},Object.defineProperty(h.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(g){this._writableState&&(this._writableState.destroyed=g)}}),h.prototype.destroy=u.destroy,h.prototype._undestroy=u.undestroy,h.prototype._destroy=function(g,S){this.end(),S(g)},ay}function Pd(){if(rL)return sy;rL=1;var e=qg(),t=Object.keys||function(f){var d=[];for(var h in f)d.push(h);return d};sy=c;var n=Object.create(Xp());n.inherits=Ep();var r=I9(),o=C9();n.inherits(c,r);for(var i=t(o.prototype),a=0;a>5==6?2:f>>4==14?3:f>>3==30?4:f>>6==2?-1:-2}function o(f){var d=this.lastTotal-this.lastNeed,h=function(p,m,A){if((192&m[0])!=128)return p.lastNeed=0,"�";if(p.lastNeed>1&&m.length>1){if((192&m[1])!=128)return p.lastNeed=1,"�";if(p.lastNeed>2&&m.length>2&&(192&m[2])!=128)return p.lastNeed=2,"�"}}(this,f);return h!==void 0?h:this.lastNeed<=f.length?(f.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(f.copy(this.lastChar,d,0,f.length),void(this.lastNeed-=f.length))}function i(f,d){if((f.length-d)%2==0){var h=f.toString("utf16le",d);if(h){var p=h.charCodeAt(h.length-1);if(p>=55296&&p<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],h.slice(0,-1)}return h}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",d,f.length-1)}function a(f){var d=f&&f.length?this.write(f):"";if(this.lastNeed){var h=this.lastTotal-this.lastNeed;return d+this.lastChar.toString("utf16le",0,h)}return d}function s(f,d){var h=(f.length-d)%3;return h===0?f.toString("base64",d):(this.lastNeed=3-h,this.lastTotal=3,h===1?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",d,f.length-h))}function c(f){var d=f&&f.length?this.write(f):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function l(f){return f.toString(this.encoding)}function u(f){return f&&f.length?this.write(f):""}return fy.StringDecoder=n,n.prototype.write=function(f){if(f.length===0)return"";var d,h;if(this.lastNeed){if((d=this.fillLast(f))===void 0)return"";h=this.lastNeed,this.lastNeed=0}else h=0;return h=0?(y>0&&(m.lastNeed=y-1),y):--R=0?(y>0&&(m.lastNeed=y-2),y):--R=0?(y>0&&(y===2?y=0:m.lastNeed=y-3),y):0}(this,f,d);if(!this.lastNeed)return f.toString("utf8",d);this.lastTotal=h;var p=f.length-(h-this.lastNeed);return f.copy(this.lastChar,0,p),f.toString("utf8",d,p)},n.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length},fy}function I9(){if(aL)return ly;aL=1;var e=qg();ly=m;var t,n=function(){if(Bw)return Zw;Bw=1;var _={}.toString;return Zw=Array.isArray||function(I){return _.call(I)=="[object Array]"}}();m.ReadableState=p,vee.EventEmitter;var r=function(_,I){return _.listeners(I).length},o=k9(),i=e2().Buffer,a=Ri.Uint8Array||function(){},s=Object.create(Xp());s.inherits=Ep();var c=t2,l=void 0;l=c&&c.debuglog?c.debuglog("stream"):function(){};var u,f=gee(),d=N9();s.inherits(m,o);var h=["error","close","destroy","pause","resume"];function p(_,I){_=_||{};var V=I instanceof(t=t||Pd());this.objectMode=!!_.objectMode,V&&(this.objectMode=this.objectMode||!!_.readableObjectMode);var B=_.highWaterMark,G=_.readableHighWaterMark,oe=this.objectMode?16:16384;this.highWaterMark=B||B===0?B:V&&(G||G===0)?G:oe,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=_.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,_.encoding&&(u||(u=uL().StringDecoder),this.decoder=new u(_.encoding),this.encoding=_.encoding)}function m(_){if(t=t||Pd(),!(this instanceof m))return new m(_);this._readableState=new p(_,this),this.readable=!0,_&&(typeof _.read=="function"&&(this._read=_.read),typeof _.destroy=="function"&&(this._destroy=_.destroy)),o.call(this)}function A(_,I,V,B,G){var oe,W=_._readableState;return I===null?(W.reading=!1,function(Z,K){if(!K.ended){if(K.decoder){var U=K.decoder.end();U&&U.length&&(K.buffer.push(U),K.length+=K.objectMode?1:U.length)}K.ended=!0,g(Z)}}(_,W)):(G||(oe=function(Z,K){var U;z=K,i.isBuffer(z)||z instanceof a||typeof K=="string"||K===void 0||Z.objectMode||(U=new TypeError("Invalid non-string/buffer chunk"));var z;return U}(W,I)),oe?_.emit("error",oe):W.objectMode||I&&I.length>0?(typeof I=="string"||W.objectMode||Object.getPrototypeOf(I)===i.prototype||(I=function(Z){return i.from(Z)}(I)),B?W.endEmitted?_.emit("error",new Error("stream.unshift() after end event")):x(_,W,I,!0):W.ended?_.emit("error",new Error("stream.push() after EOF")):(W.reading=!1,W.decoder&&!V?(I=W.decoder.write(I),W.objectMode||I.length!==0?x(_,W,I,!1):O(_,W)):x(_,W,I,!1))):B||(W.reading=!1)),function(Z){return!Z.ended&&(Z.needReadable||Z.lengthI.highWaterMark&&(I.highWaterMark=function(V){return V>=R?V=R:(V--,V|=V>>>1,V|=V>>>2,V|=V>>>4,V|=V>>>8,V|=V>>>16,V++),V}(_)),_<=I.length?_:I.ended?I.length:(I.needReadable=!0,0))}function g(_){var I=_._readableState;I.needReadable=!1,I.emittedReadable||(l("emitReadable",I.flowing),I.emittedReadable=!0,I.sync?e.nextTick(S,_):S(_))}function S(_){l("emit readable"),_.emit("readable"),k(_)}function O(_,I){I.readingMore||(I.readingMore=!0,e.nextTick(T,_,I))}function T(_,I){for(var V=I.length;!I.reading&&!I.flowing&&!I.ended&&I.length=I.length?(V=I.decoder?I.buffer.join(""):I.buffer.length===1?I.buffer.head.data:I.buffer.concat(I.length),I.buffer.clear()):V=function(B,G,oe){var W;return Bse.length?se.length:Z;if(ie===se.length?fe+=se:fe+=se.slice(0,Z),(Z-=ie)===0){ie===se.length?(++z,U.next?K.head=U.next:K.head=K.tail=null):(K.head=U,U.data=se.slice(ie));break}++z}return K.length-=z,fe}(B,G):function(Z,K){var U=i.allocUnsafe(Z),z=K.head,fe=1;for(z.data.copy(U),Z-=z.data.length;z=z.next;){var se=z.data,ie=Z>se.length?se.length:Z;if(se.copy(U,U.length-Z,0,ie),(Z-=ie)===0){ie===se.length?(++fe,z.next?K.head=z.next:K.head=K.tail=null):(K.head=z,z.data=se.slice(ie));break}++fe}return K.length-=fe,U}(B,G),W}(_,I.buffer,I.decoder),V);var V}function N(_){var I=_._readableState;if(I.length>0)throw new Error('"endReadable()" called on non-empty stream');I.endEmitted||(I.ended=!0,e.nextTick(E,I,_))}function E(_,I){_.endEmitted||_.length!==0||(_.endEmitted=!0,I.readable=!1,I.emit("end"))}function C(_,I){for(var V=0,B=_.length;V=I.highWaterMark||I.ended))return l("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?N(this):g(this),null;if((_=y(_,I))===0&&I.ended)return I.length===0&&N(this),null;var B,G=I.needReadable;return l("need readable",G),(I.length===0||I.length-_0?F(_,I):null)===null?(I.needReadable=!0,_=0):I.length-=_,I.length===0&&(I.ended||(I.needReadable=!0),V!==_&&I.ended&&N(this)),B!==null&&this.emit("data",B),B},m.prototype._read=function(_){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(_,I){var V=this,B=this._readableState;switch(B.pipesCount){case 0:B.pipes=_;break;case 1:B.pipes=[B.pipes,_];break;default:B.pipes.push(_)}B.pipesCount+=1,l("pipe count=%d opts=%j",B.pipesCount,I);var G=(!I||I.end!==!1)&&_!==wi.stdout&&_!==wi.stderr?W:me;function oe(Ae,ye){l("onunpipe"),Ae===V&&ye&&ye.hasUnpiped===!1&&(ye.hasUnpiped=!0,l("cleanup"),_.removeListener("close",se),_.removeListener("finish",ie),_.removeListener("drain",Z),_.removeListener("error",fe),_.removeListener("unpipe",oe),V.removeListener("end",W),V.removeListener("end",me),V.removeListener("data",z),K=!0,!B.awaitDrain||_._writableState&&!_._writableState.needDrain||Z())}function W(){l("onend"),_.end()}B.endEmitted?e.nextTick(G):V.once("end",G),_.on("unpipe",oe);var Z=function(Ae){return function(){var ye=Ae._readableState;l("pipeOnDrain",ye.awaitDrain),ye.awaitDrain&&ye.awaitDrain--,ye.awaitDrain===0&&r(Ae,"data")&&(ye.flowing=!0,k(Ae))}}(V);_.on("drain",Z);var K=!1,U=!1;function z(Ae){l("ondata"),U=!1,_.write(Ae)!==!1||U||((B.pipesCount===1&&B.pipes===_||B.pipesCount>1&&C(B.pipes,_)!==-1)&&!K&&(l("false write response, pause",V._readableState.awaitDrain),V._readableState.awaitDrain++,U=!0),V.pause())}function fe(Ae){l("onerror",Ae),me(),_.removeListener("error",fe),r(_,"error")===0&&_.emit("error",Ae)}function se(){_.removeListener("finish",ie),me()}function ie(){l("onfinish"),_.removeListener("close",se),me()}function me(){l("unpipe"),V.unpipe(_)}return V.on("data",z),function(Ae,ye,J){if(typeof Ae.prependListener=="function")return Ae.prependListener(ye,J);Ae._events&&Ae._events[ye]?n(Ae._events[ye])?Ae._events[ye].unshift(J):Ae._events[ye]=[J,Ae._events[ye]]:Ae.on(ye,J)}(_,"error",fe),_.once("close",se),_.once("finish",ie),_.emit("pipe",V),B.flowing||(l("pipe resume"),V.resume()),_},m.prototype.unpipe=function(_){var I=this._readableState,V={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return _&&_!==I.pipes||(_||(_=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,_&&_.emit("unpipe",this,V)),this;if(!_){var B=I.pipes,G=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var oe=0;oe"u")kr.blob=!1;else{var dL=new ArrayBuffer(0);try{kr.blob=new Blob([dL],{type:"application/zip"}).size===0}catch{try{var hL=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);hL.append(dL),kr.blob=hL.getBlob("application/zip").size===0}catch{kr.blob=!1}}}try{kr.nodestream=!!F9().Readable}catch{kr.nodestream=!1}var pL,hm={};function _9(){if(pL)return hm;pL=1;var e=xr(),t=kr,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return hm.encode=function(r){for(var o,i,a,s,c,l,u,f=[],d=0,h=r.length,p=h,m=e.getTypeOf(r)!=="string";d>2,c=(3&o)<<4|i>>4,l=p>1?(15&i)<<2|a>>6:64,u=p>2?63&a:64,f.push(n.charAt(s)+n.charAt(c)+n.charAt(l)+n.charAt(u));return f.join("")},hm.decode=function(r){var o,i,a,s,c,l,u=0,f=0,d="data:";if(r.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,p=3*(r=r.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(r.charAt(r.length-1)===n.charAt(64)&&p--,r.charAt(r.length-2)===n.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=t.uint8array?new Uint8Array(0|p):new Array(0|p);u>4,i=(15&s)<<4|(c=n.indexOf(r.charAt(u++)))>>2,a=(3&c)<<6|(l=n.indexOf(r.charAt(u++))),h[f++]=o,c!==64&&(h[f++]=i),l!==64&&(h[f++]=a);return h},hm}var mL,vL,dy,gL,n2={isNode:!0,newBufferFrom:function(e,t){if(Ke.from&&Ke.from!==Uint8Array.from)return Ke.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Ke(e,t)},allocBuffer:function(e){if(Ke.alloc)return Ke.alloc(e);var t=new Ke(e);return t.fill(0),t},isBuffer:function(e){return Ip(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}},X9=null;X9=typeof Promise<"u"?Promise:function(){if(gL)return dy;gL=1;var e=function(){if(vL)return mL;vL=1;var d,h,p=Ri.MutationObserver||Ri.WebKitMutationObserver;if(p){var m=0,A=new p(g),x=Ri.document.createTextNode("");A.observe(x,{characterData:!0}),d=function(){x.data=m=++m%2}}else if(Ri.setImmediate||Ri.MessageChannel===void 0)d="document"in Ri&&"onreadystatechange"in Ri.document.createElement("script")?function(){var S=Ri.document.createElement("script");S.onreadystatechange=function(){g(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},Ri.document.documentElement.appendChild(S)}:function(){setTimeout(g,0)};else{var R=new Ri.MessageChannel;R.port1.onmessage=g,d=function(){R.port2.postMessage(0)}}var y=[];function g(){var S,O;h=!0;for(var T=y.length;T;){for(O=y,y=[],S=-1;++S1;)try{return s.stringifyByChunk(f,h,d)}catch{d=Math.floor(d/2)}return s.stringifyByChar(f)}function l(f,d){for(var h=0;h"u"?Ri:self),E9.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n "+e:e}};var aa=E9;(function(e){for(var t=xr(),n=kr,r=n2,o=aa,i=new Array(256),a=0;a<256;a++)i[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;i[254]=i[254]=1;function s(){o.call(this,"utf-8 decode"),this.leftOver=null}function c(){o.call(this,"utf-8 encode")}e.utf8encode=function(l){return n.nodebuffer?r.newBufferFrom(l,"utf-8"):function(u){var f,d,h,p,m,A=u.length,x=0;for(p=0;p>>6,f[m++]=128|63&d):d<65536?(f[m++]=224|d>>>12,f[m++]=128|d>>>6&63,f[m++]=128|63&d):(f[m++]=240|d>>>18,f[m++]=128|d>>>12&63,f[m++]=128|d>>>6&63,f[m++]=128|63&d);return f}(l)},e.utf8decode=function(l){return n.nodebuffer?t.transformTo("nodebuffer",l).toString("utf-8"):function(u){var f,d,h,p,m=u.length,A=new Array(2*m);for(d=0,f=0;f4)A[d++]=65533,f+=p-1;else{for(h&=p===2?31:p===3?15:7;p>1&&f1?A[d++]=65533:h<65536?A[d++]=h:(h-=65536,A[d++]=55296|h>>10&1023,A[d++]=56320|1023&h)}return A.length!==d&&(A.subarray?A=A.subarray(0,d):A.length=d),t.applyFromCharCode(A)}(l=t.transformTo(n.uint8array?"uint8array":"array",l))},t.inherits(s,o),s.prototype.processChunk=function(l){var u=t.transformTo(n.uint8array?"uint8array":"array",l.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var f=u;(u=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),u.set(f,this.leftOver.length)}else u=this.leftOver.concat(u);this.leftOver=null}var d=function(p,m){var A;for((m=m||p.length)>p.length&&(m=p.length),A=m-1;A>=0&&(192&p[A])==128;)A--;return A<0||A===0?m:A+i[p[A]]>m?A:m}(u),h=u;d!==u.length&&(n.uint8array?(h=u.subarray(0,d),this.leftOver=u.subarray(d,u.length)):(h=u.slice(0,d),this.leftOver=u.slice(d,u.length))),this.push({data:e.utf8decode(h),meta:l.meta})},s.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=s,t.inherits(c,o),c.prototype.processChunk=function(l){this.push({data:e.utf8encode(l.data),meta:l.meta})},e.Utf8EncodeWorker=c})(Gd);var W9=aa,RL=xr();function R3(e){W9.call(this,"ConvertWorker to "+e),this.destType=e}RL.inherits(R3,W9),R3.prototype.processChunk=function(e){this.push({data:RL.transformTo(this.destType,e.data),meta:e.meta})};var yL,xL,Aee=R3,yu=xr(),Ree=Aee,yee=aa,xee=_9(),bee=Wp,V9=null;if(kr.nodestream)try{V9=function(){if(xL)return yL;xL=1;var e=F9().Readable;function t(n,r,o){e.call(this,r),this._helper=n;var i=this;n.on("data",function(a,s){i.push(a)||i._helper.pause(),o&&o(s)}).on("error",function(a){i.emit("error",a)}).on("end",function(){i.push(null)})}return xr().inherits(t,e),t.prototype._read=function(){this._helper.resume()},yL=t}()}catch{}function See(e,t){return new bee.Promise(function(n,r){var o=[],i=e._internalType,a=e._outputType,s=e._mimeType;e.on("data",function(c,l){o.push(c),t&&t(l)}).on("error",function(c){o=[],r(c)}).on("end",function(){try{var c=function(l,u,f){switch(l){case"blob":return yu.newBlob(yu.transformTo("arraybuffer",u),f);case"base64":return xee.encode(u);default:return yu.transformTo(l,u)}}(a,function(l,u){var f,d=0,h=null,p=0;for(f=0;f=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})};var Z9=Uf,Mee=xr(),bL=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}(),Db=function(e,t){return e!==void 0&&e.length?Mee.getTypeOf(e)!=="string"?function(n,r,o,i){var a=bL,s=i+o;n^=-1;for(var c=i;c>>8^a[255&(n^r[c])];return-1^n}(0|t,e,e.length,0):function(n,r,o,i){var a=bL,s=i+o;n^=-1;for(var c=i;c>>8^a[255&(n^r.charCodeAt(c))];return-1^n}(0|t,e,e.length,0):0},B9=aa,wee=Db;function y3(){B9.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}xr().inherits(y3,B9),y3.prototype.processChunk=function(e){this.streamInfo.crc32=wee(e.data,this.streamInfo.crc32||0),this.push(e)};var D9=y3,Lee=xr(),x3=aa;function b3(e){x3.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}Lee.inherits(b3,x3),b3.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}x3.prototype.processChunk.call(this,e)};var SL=Wp,ML=Z9,Oee=D9,hy=b3;function S3(e,t,n,r,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=o}S3.prototype={getContentWorker:function(){var e=new ML(SL.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new hy("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new ML(SL.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},S3.createWorkerFrom=function(e,t,n){return e.pipe(new Oee).pipe(new hy("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new hy("compressedSize")).withStreamInfo("compression",t)};var Kb=S3,Tee=Y9,kee=Z9,py=Gd,my=Kb,wL=aa,Hb=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}};Hb.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r=(n=e.toLowerCase())==="string"||n==="text";n!=="binarystring"&&n!=="text"||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(t=t.pipe(new py.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new py.Utf8DecodeWorker))}catch(i){(t=new wL("error")).error(i)}return new Tee(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof my&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new py.Utf8EncodeWorker)),my.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof my?this._data.getContentWorker():this._data instanceof wL?this._data:new kee(this._data)}};for(var LL=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Pee=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},vy=0;vy=0;)e[t]=0}var M3=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Jm=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Iee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],OL=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Qs=new Array(576);Jd(Qs);var Z0=new Array(60);Jd(Z0);var rp=new Array(512);Jd(rp);var bh=new Array(256);Jd(bh);var Gb=new Array(29);Jd(Gb);var TL,kL,PL,Jv=new Array(30);function gy(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function Ay(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function H9(e){return e<256?rp[e]:rp[256+(e>>>7)]}function op(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function zo(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1;while(--t>0);return n>>>1}function J9(e,t,n){var r,o,i=new Array(16),a=0;for(r=1;r<=15;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];s!==0&&(e[2*o]=G9(i[s]++,s))}}function NL(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function z9(e){e.bi_valid>8?op(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function CL(e,t,n,r){var o=2*t,i=2*n;return e[o]>1;n>=1;n--)Ry(e,i,n);o=c;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ry(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,Ry(e,i,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(u,f){var d,h,p,m,A,x,R=f.dyn_tree,y=f.max_code,g=f.stat_desc.static_tree,S=f.stat_desc.has_stree,O=f.stat_desc.extra_bits,T=f.stat_desc.extra_base,M=f.stat_desc.max_length,L=0;for(m=0;m<=15;m++)u.bl_count[m]=0;for(R[2*u.heap[u.heap_max]+1]=0,d=u.heap_max+1;d<573;d++)(m=R[2*R[2*(h=u.heap[d])+1]+1]+1)>M&&(m=M,L++),R[2*h+1]=m,h>y||(u.bl_count[m]++,A=0,h>=T&&(A=O[h-T]),x=R[2*h],u.opt_len+=x*(m+A),S&&(u.static_len+=x*(g[2*h+1]+A)));if(L!==0){do{for(m=M-1;u.bl_count[m]===0;)m--;u.bl_count[m]--,u.bl_count[m+1]+=2,u.bl_count[M]--,L-=2}while(L>0);for(m=M;m!==0;m--)for(h=u.bl_count[m];h!==0;)(p=u.heap[--d])>y||(R[2*p+1]!==m&&(u.opt_len+=(m-R[2*p+1])*R[2*p],R[2*p+1]=m),h--)}}(e,t),J9(i,l,e.bl_count)}function FL(e,t,n){var r,o,i=-1,a=t[1],s=0,c=7,l=4;for(a===0&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++s>=7;o<30;o++)for(Jv[o]=i<<7,t=0;t<1<0?(e.strm.data_type===2&&(e.strm.data_type=function(s){var c,l=4093624447;for(c=0;c<=31;c++,l>>>=1)if(1&l&&s.dyn_ltree[2*c]!==0)return 0;if(s.dyn_ltree[18]!==0||s.dyn_ltree[20]!==0||s.dyn_ltree[26]!==0)return 1;for(c=32;c<256;c++)if(s.dyn_ltree[2*c]!==0)return 1;return 0}(e)),yy(e,e.l_desc),yy(e,e.d_desc),a=function(s){var c;for(FL(s,s.dyn_ltree,s.l_desc.max_code),FL(s,s.dyn_dtree,s.d_desc.max_code),yy(s,s.bl_desc),c=18;c>=3&&s.bl_tree[2*OL[c]+1]===0;c--);return s.opt_len+=3*(c+1)+5+5+4,c}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&t!==-1?EL(e,t,n,r):e.strategy===4||i===o?(zo(e,2+(r?1:0),3),IL(e,Qs,Z0)):(zo(e,4+(r?1:0),3),function(s,c,l,u){var f;for(zo(s,c-257,5),zo(s,l-1,5),zo(s,u-4,4),f=0;f>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,t===0?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(bh[n]+256+1)]++,e.dyn_dtree[2*H9(t)]++),e.last_lit===e.lit_bufsize-1},Yf._tr_align=function(e){zo(e,2,3),is(e,256,Qs),function(t){t.bi_valid===16?(op(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(e)};var $9=function(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;n!==0;){n-=a=n>2e3?2e3:n;do i=i+(o=o+t[r++]|0)|0;while(--a);o%=65521,i%=65521}return o|i<<16|0},Fee=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}(),$f,j9=function(e,t,n,r){var o=Fee,i=r+n;e^=-1;for(var a=r;a>>8^o[255&(e^t[a])];return-1^e},Jb={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Po=fl,Ji=Yf,q9=$9,El=j9,_ee=Jb;function Bl(e,t){return e.msg=_ee[t],t}function WL(e){return(e<<1)-(e>4?9:0)}function $l(e){for(var t=e.length;--t>=0;)e[t]=0}function Wl(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(Po.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function to(e,t){Ji._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Wl(e.strm)}function Nn(e,t){e.pending_buf[e.pending++]=t}function A0(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function eC(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,u=e.w_mask,f=e.prev,d=e.strstart+258,h=l[i+a-1],p=l[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+a]===p&&l[n+a-1]===h&&l[n]===l[i]&&l[++n]===l[i+1]){i+=2,n++;do;while(l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&ia){if(e.match_start=t,a=r,r>=s)break;h=l[i+a-1],p=l[i+a]}}while((t=f[t&u])>c&&--o!=0);return a<=e.lookahead?a:e.lookahead}function eu(e){var t,n,r,o,i,a,s,c,l,u,f=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-262)){Po.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=n=e.hash_size;do r=e.head[--t],e.head[t]=r>=f?r-f:0;while(--n);t=n=f;do r=e.prev[--t],e.prev[t]=r>=f?r-f:0;while(--n);o+=f}if(e.strm.avail_in===0)break;if(a=e.strm,s=e.window,c=e.strstart+e.lookahead,l=o,u=void 0,(u=a.avail_in)>l&&(u=l),n=u===0?0:(a.avail_in-=u,Po.arraySet(s,a.input,a.next_in,u,c),a.state.wrap===1?a.adler=q9(a.adler,s,u,c):a.state.wrap===2&&(a.adler=El(a.adler,s,u,c)),a.next_in+=u,a.total_in+=u,u),e.lookahead+=n,e.lookahead+e.insert>=3)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(r=Ji._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,r=Ji._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=o&&(e.ins_h=(e.ins_h<15&&(a=2,r-=16),o<1||o>9||n!==8||r<8||r>15||t<0||t>9||i<0||i>4)return Bl(e,-2);r===8&&(r=9);var s=new Xee;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(eu(e),e.lookahead===0&&t===0)return 1;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,to(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-262&&(to(e,!1),e.strm.avail_out===0))return 1}return e.insert=0,t===4?(to(e,!0),e.strm.avail_out===0?3:4):(e.strstart>e.block_start&&(to(e,!1),e.strm.avail_out),1)}),new Qa(4,4,8,4,xy),new Qa(4,5,16,8,xy),new Qa(4,6,32,32,xy),new Qa(4,4,16,16,wf),new Qa(8,16,32,32,wf),new Qa(8,16,128,128,wf),new Qa(8,32,128,256,wf),new Qa(32,128,258,1024,wf),new Qa(32,258,258,4096,wf)],Da.deflateInit=function(e,t){return VL(e,t,8,15,8,0)},Da.deflateInit2=VL,Da.deflateReset=nC,Da.deflateResetKeep=tC,Da.deflateSetHeader=function(e,t){return e&&e.state?e.state.wrap!==2?-2:(e.state.gzhead=t,0):-2},Da.deflate=function(e,t){var n,r,o,i;if(!e||!e.state||t>5||t<0)return e?Bl(e,-2):-2;if(r=e.state,!e.output||!e.input&&e.avail_in!==0||r.status===666&&t!==4)return Bl(e,e.avail_out===0?-5:-2);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===42)if(r.wrap===2)e.adler=0,Nn(r,31),Nn(r,139),Nn(r,8),r.gzhead?(Nn(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Nn(r,255&r.gzhead.time),Nn(r,r.gzhead.time>>8&255),Nn(r,r.gzhead.time>>16&255),Nn(r,r.gzhead.time>>24&255),Nn(r,r.level===9?2:r.strategy>=2||r.level<2?4:0),Nn(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Nn(r,255&r.gzhead.extra.length),Nn(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=El(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Nn(r,0),Nn(r,0),Nn(r,0),Nn(r,0),Nn(r,0),Nn(r,r.level===9?2:r.strategy>=2||r.level<2?4:0),Nn(r,3),r.status=113);else{var a=8+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:r.level===6?2:3)<<6,r.strstart!==0&&(a|=32),a+=31-a%31,r.status=113,A0(r,a),r.strstart!==0&&(A0(r,e.adler>>>16),A0(r,65535&e.adler)),e.adler=1}if(r.status===69)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=El(e.adler,r.pending_buf,r.pending-o,o)),Wl(e),o=r.pending,r.pending!==r.pending_buf_size));)Nn(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=El(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(r.status===73)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=El(e.adler,r.pending_buf,r.pending-o,o)),Wl(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindexo&&(e.adler=El(e.adler,r.pending_buf,r.pending-o,o)),i===0&&(r.gzindex=0,r.status=91)}else r.status=91;if(r.status===91)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=El(e.adler,r.pending_buf,r.pending-o,o)),Wl(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindexo&&(e.adler=El(e.adler,r.pending_buf,r.pending-o,o)),i===0&&(r.status=103)}else r.status=103;if(r.status===103&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Wl(e),r.pending+2<=r.pending_buf_size&&(Nn(r,255&e.adler),Nn(r,e.adler>>8&255),e.adler=0,r.status=113)):r.status=113),r.pending!==0){if(Wl(e),e.avail_out===0)return r.last_flush=-1,0}else if(e.avail_in===0&&WL(t)<=WL(n)&&t!==4)return Bl(e,-5);if(r.status===666&&e.avail_in!==0)return Bl(e,-5);if(e.avail_in!==0||r.lookahead!==0||t!==0&&r.status!==666){var s=r.strategy===2?function(c,l){for(var u;;){if(c.lookahead===0&&(eu(c),c.lookahead===0)){if(l===0)return 1;break}if(c.match_length=0,u=Ji._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++,u&&(to(c,!1),c.strm.avail_out===0))return 1}return c.insert=0,l===4?(to(c,!0),c.strm.avail_out===0?3:4):c.last_lit&&(to(c,!1),c.strm.avail_out===0)?1:2}(r,t):r.strategy===3?function(c,l){for(var u,f,d,h,p=c.window;;){if(c.lookahead<=258){if(eu(c),c.lookahead<=258&&l===0)return 1;if(c.lookahead===0)break}if(c.match_length=0,c.lookahead>=3&&c.strstart>0&&(f=p[d=c.strstart-1])===p[++d]&&f===p[++d]&&f===p[++d]){h=c.strstart+258;do;while(f===p[++d]&&f===p[++d]&&f===p[++d]&&f===p[++d]&&f===p[++d]&&f===p[++d]&&f===p[++d]&&f===p[++d]&&dc.lookahead&&(c.match_length=c.lookahead)}if(c.match_length>=3?(u=Ji._tr_tally(c,1,c.match_length-3),c.lookahead-=c.match_length,c.strstart+=c.match_length,c.match_length=0):(u=Ji._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++),u&&(to(c,!1),c.strm.avail_out===0))return 1}return c.insert=0,l===4?(to(c,!0),c.strm.avail_out===0?3:4):c.last_lit&&(to(c,!1),c.strm.avail_out===0)?1:2}(r,t):$f[r.level].func(r,t);if(s!==3&&s!==4||(r.status=666),s===1||s===3)return e.avail_out===0&&(r.last_flush=-1),0;if(s===2&&(t===1?Ji._tr_align(r):t!==5&&(Ji._tr_stored_block(r,0,0,!1),t===3&&($l(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),Wl(e),e.avail_out===0))return r.last_flush=-1,0}return t!==4?0:r.wrap<=0?1:(r.wrap===2?(Nn(r,255&e.adler),Nn(r,e.adler>>8&255),Nn(r,e.adler>>16&255),Nn(r,e.adler>>24&255),Nn(r,255&e.total_in),Nn(r,e.total_in>>8&255),Nn(r,e.total_in>>16&255),Nn(r,e.total_in>>24&255)):(A0(r,e.adler>>>16),A0(r,65535&e.adler)),Wl(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?0:1)},Da.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==42&&t!==69&&t!==73&&t!==91&&t!==103&&t!==113&&t!==666?Bl(e,-2):(e.state=null,t===113?Bl(e,-3):0):-2},Da.deflateSetDictionary=function(e,t){var n,r,o,i,a,s,c,l,u=t.length;if(!e||!e.state||(i=(n=e.state).wrap)===2||i===1&&n.status!==42||n.lookahead)return-2;for(i===1&&(e.adler=q9(e.adler,t,u,0)),n.wrap=0,u>=n.w_size&&(i===0&&($l(n.head),n.strstart=0,n.block_start=0,n.insert=0),l=new Po.Buf8(n.w_size),Po.arraySet(l,t,u-n.w_size,n.w_size,0),t=l,u=n.w_size),a=e.avail_in,s=e.next_in,c=e.input,e.avail_in=u,e.next_in=0,e.input=t,eu(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do n.ins_h=(n.ins_h<=252?6:Ll>=248?5:Ll>=240?4:Ll>=224?3:Ll>=192?2:1;function UL(e,t){if(t<65534&&(e.subarray&&oC||!e.subarray&&rC))return String.fromCharCode.apply(null,zv.shrinkBuf(e,t));for(var n="",r=0;r>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},tu.buf2binstring=function(e){return UL(e,e.length)},tu.binstring2buf=function(e){for(var t=new zv.Buf8(e.length),n=0,r=t.length;n4)s[r++]=65533,n+=i-1;else{for(o&=i===2?31:i===3?15:7;i>1&&n1?s[r++]=65533:o<65536?s[r++]=o:(o-=65536,s[r++]=55296|o>>10&1023,s[r++]=56320|1023&o)}return UL(s,r)},tu.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&(192&e[n])==128;)n--;return n<0||n===0?t:n+B0[e[n]]>t?n:t};var iC=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Sh=Da,D0=fl,w3=tu,L3=Jb,Eee=iC,aC=Object.prototype.toString;function iu(e){if(!(this instanceof iu))return new iu(e);this.options=D0.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Eee,this.strm.avail_out=0;var n=Sh.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==0)throw new Error(L3[n]);if(t.header&&Sh.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r=typeof t.dictionary=="string"?w3.string2buf(t.dictionary):aC.call(t.dictionary)==="[object ArrayBuffer]"?new Uint8Array(t.dictionary):t.dictionary,(n=Sh.deflateSetDictionary(this.strm,r))!==0)throw new Error(L3[n]);this._dict_set=!0}}function by(e,t){var n=new iu(t);if(n.push(e,!0),n.err)throw n.msg||L3[n.err];return n.result}iu.prototype.push=function(e,t){var n,r,o=this.strm,i=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:t===!0?4:0,typeof e=="string"?o.input=w3.string2buf(e):aC.call(e)==="[object ArrayBuffer]"?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(o.avail_out===0&&(o.output=new D0.Buf8(i),o.next_out=0,o.avail_out=i),(n=Sh.deflate(o,r))!==1&&n!==0)return this.onEnd(n),this.ended=!0,!1;o.avail_out!==0&&(o.avail_in!==0||r!==4&&r!==2)||(this.options.to==="string"?this.onData(w3.buf2binstring(D0.shrinkBuf(o.output,o.next_out))):this.onData(D0.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||o.avail_out===0)&&n!==1);return r===4?(n=Sh.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===0):r!==2||(this.onEnd(0),o.avail_out=0,!0)},iu.prototype.onData=function(e){this.chunks.push(e)},iu.prototype.onEnd=function(e){e===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=D0.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},Q0.Deflate=iu,Q0.deflate=by,Q0.deflateRaw=function(e,t){return(t=t||{}).raw=!0,by(e,t)},Q0.gzip=function(e,t){return(t=t||{}).gzip=!0,by(e,t)};var K0={},ga={},YL=fl,Wee=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Vee=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Uee=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Yee=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],ki=fl,Sy=$9,Za=j9,Qee=function(e,t){var n,r,o,i,a,s,c,l,u,f,d,h,p,m,A,x,R,y,g,S,O,T,M,L,k;n=e.state,r=e.next_in,L=e.input,o=r+(e.avail_in-5),i=e.next_out,k=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,f=n.wnext,d=n.window,h=n.hold,p=n.bits,m=n.lencode,A=n.distcode,x=(1<>>=g=y>>>24,p-=g,(g=y>>>16&255)===0)k[i++]=65535&y;else{if(!(16&g)){if(!(64&g)){y=m[(65535&y)+(h&(1<>>=g,p-=g),p<15&&(h+=L[r++]<>>=g=y>>>24,p-=g,!(16&(g=y>>>16&255))){if(!(64&g)){y=A[(65535&y)+(h&(1<c){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=g,p-=g,O>(g=i-a)){if((g=O-g)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(T=0,M=d,f===0){if(T+=l-g,g2;)k[i++]=M[T++],k[i++]=M[T++],k[i++]=M[T++],S-=3;S&&(k[i++]=M[T++],S>1&&(k[i++]=M[T++]))}else{T=i-O;do k[i++]=k[T++],k[i++]=k[T++],k[i++]=k[T++],S-=3;while(S>2);S&&(k[i++]=k[T++],S>1&&(k[i++]=k[T++]))}break}}break}}while(r>3,h&=(1<<(p-=S<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r=1&&C[S]===0;S--);if(O>S&&(O=S),S===0)return o[i++]=20971520,o[i++]=20971520,s.bits=1,0;for(g=1;g0&&(e===0||S!==1))return-1;for(_[1]=0,R=1;R<15;R++)_[R+1]=_[R]+C[R];for(y=0;y852||e===2&&k>592)return 1;for(;;){p=R-M,a[y]h?(m=I[V+a[y]],A=N[E+a[y]]):(m=96,A=0),c=1<>M)+(l-=c)]=p<<24|m<<16|A|0;while(l!==0);for(c=1<>=1;if(c!==0?(F&=c-1,F+=c):F=0,y++,--C[R]==0){if(R===S)break;R=t[n+a[y]]}if(R>O&&(F&f)!==u){for(M===0&&(M=O),d+=g,L=1<<(T=R-M);T+M852||e===2&&k>592)return 1;o[u=F&f]=O<<24|T<<16|d-i|0}}return F!==0&&(o[d+F]=R-M<<24|64<<16|0),s.bits=O,0};function QL(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Zee(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new ki.Buf16(320),this.work=new ki.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function sC(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new ki.Buf32(852),t.distcode=t.distdyn=new ki.Buf32(592),t.sane=1,t.back=-1,0):-2}function lC(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,sC(e)):-2}function cC(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,lC(e))):-2}function ZL(e,t){var n,r;return e?(r=new Zee,e.state=r,r.window=null,(n=cC(e,t))!==0&&(e.state=null),n):-2}var My,wy,BL=!0;function Bee(e){if(BL){var t;for(My=new ki.Buf32(512),wy=new ki.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Mh(1,e.lens,0,288,My,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Mh(2,e.lens,0,32,wy,0,e.work,{bits:5}),BL=!1}e.lencode=My,e.lenbits=9,e.distcode=wy,e.distbits=5}function DL(e,t,n,r){var o,i=e.state;return i.window===null&&(i.wsize=1<=i.wsize?(ki.arraySet(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((o=i.wsize-i.wnext)>r&&(o=r),ki.arraySet(i.window,t,n-r,o,i.wnext),(r-=o)?(ki.arraySet(i.window,t,n-r,r,0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,n.check=Za(n.check,F,2,0),l=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=30;break}if((15&l)!=8){e.msg="unknown compression method",n.mode=30;break}if(u-=4,O=8+(15&(l>>>=4)),n.wbits===0)n.wbits=O;else if(O>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(F[0]=255&l,F[1]=l>>>8&255,n.check=Za(n.check,F,2,0)),l=0,u=0,n.mode=3;case 3:for(;u<32;){if(s===0)break e;s--,l+=r[i++]<>>8&255,F[2]=l>>>16&255,F[3]=l>>>24&255,n.check=Za(n.check,F,4,0)),l=0,u=0,n.mode=4;case 4:for(;u<16;){if(s===0)break e;s--,l+=r[i++]<>8),512&n.flags&&(F[0]=255&l,F[1]=l>>>8&255,n.check=Za(n.check,F,2,0)),l=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(s===0)break e;s--,l+=r[i++]<>>8&255,n.check=Za(n.check,F,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((h=n.length)>s&&(h=s),h&&(n.head&&(O=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),ki.arraySet(n.head.extra,r,i,h,O)),512&n.flags&&(n.check=Za(n.check,r,h,i)),s-=h,i+=h,n.length-=h),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(s===0)break e;h=0;do O=r[i+h++],n.head&&O&&n.length<65536&&(n.head.name+=String.fromCharCode(O));while(O&&h>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(s===0)break e;s--,l+=r[i++]<>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(s===0)break e;s--,l+=r[i++]<>>=1)){case 0:n.mode=14;break;case 1:if(Bee(n),n.mode=20,t===6){l>>>=2,u-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}l>>>=2,u-=2;break;case 14:for(l>>>=7&u,u-=7&u;u<32;){if(s===0)break e;s--,l+=r[i++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&l,l=0,u=0,n.mode=15,t===6)break e;case 15:n.mode=16;case 16:if(h=n.length){if(h>s&&(h=s),h>c&&(h=c),h===0)break e;ki.arraySet(o,r,i,h,a),s-=h,i+=h,c-=h,a+=h,n.length-=h;break}n.mode=12;break;case 17:for(;u<14;){if(s===0)break e;s--,l+=r[i++]<>>=5,u-=5,n.ndist=1+(31&l),l>>>=5,u-=5,n.ncode=4+(15&l),l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,u-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,M={bits:n.lenbits},T=Mh(0,n.lens,0,19,n.lencode,0,n.work,M),n.lenbits=M.bits,T){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,R=65535&k,!((A=k>>>24)<=u);){if(s===0)break e;s--,l+=r[i++]<>>=A,u-=A,n.lens[n.have++]=R;else{if(R===16){for(L=A+2;u>>=A,u-=A,n.have===0){e.msg="invalid bit length repeat",n.mode=30;break}O=n.lens[n.have-1],h=3+(3&l),l>>>=2,u-=2}else if(R===17){for(L=A+3;u>>=A)),l>>>=3,u-=3}else{for(L=A+7;u>>=A)),l>>>=7,u-=7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;h--;)n.lens[n.have++]=O}}if(n.mode===30)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,M={bits:n.lenbits},T=Mh(1,n.lens,0,n.nlen,n.lencode,0,n.work,M),n.lenbits=M.bits,T){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,M={bits:n.distbits},T=Mh(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,M),n.distbits=M.bits,T){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,t===6)break e;case 20:n.mode=21;case 21:if(s>=6&&c>=258){e.next_out=a,e.avail_out=c,e.next_in=i,e.avail_in=s,n.hold=l,n.bits=u,Qee(e,d),a=e.next_out,o=e.output,c=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;x=(k=n.lencode[l&(1<>>16&255,R=65535&k,!((A=k>>>24)<=u);){if(s===0)break e;s--,l+=r[i++]<>y)])>>>16&255,R=65535&k,!(y+(A=k>>>24)<=u);){if(s===0)break e;s--,l+=r[i++]<>>=y,u-=y,n.back+=y}if(l>>>=A,u-=A,n.back+=A,n.length=R,x===0){n.mode=26;break}if(32&x){n.back=-1,n.mode=12;break}if(64&x){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&x,n.mode=22;case 22:if(n.extra){for(L=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;x=(k=n.distcode[l&(1<>>16&255,R=65535&k,!((A=k>>>24)<=u);){if(s===0)break e;s--,l+=r[i++]<>y)])>>>16&255,R=65535&k,!(y+(A=k>>>24)<=u);){if(s===0)break e;s--,l+=r[i++]<>>=y,u-=y,n.back+=y}if(l>>>=A,u-=A,n.back+=A,64&x){e.msg="invalid distance code",n.mode=30;break}n.offset=R,n.extra=15&x,n.mode=24;case 24:if(n.extra){for(L=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(c===0)break e;if(h=d-c,n.offset>h){if((h=n.offset-h)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}h>n.wnext?(h-=n.wnext,p=n.wsize-h):p=n.wnext-h,h>n.length&&(h=n.length),m=n.window}else m=o,p=a-n.offset,h=n.length;h>c&&(h=c),c-=h,n.length-=h;do o[a++]=m[p++];while(--h);n.length===0&&(n.mode=21);break;case 26:if(c===0)break e;o[a++]=n.length,c--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(s===0)break e;s--,l|=r[i++]<=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Dee,this.strm.avail_out=0;var n=gd.inflateInit2(this.strm,t.windowBits);if(n!==wr.Z_OK)throw new Error(O3[n]);if(this.header=new Kee,gd.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=zm.string2buf(t.dictionary):fC.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=gd.inflateSetDictionary(this.strm,t.dictionary))!==wr.Z_OK))throw new Error(O3[n])}function Ly(e,t){var n=new au(t);if(n.push(e,!0),n.err)throw n.msg||O3[n.err];return n.result}au.prototype.push=function(e,t){var n,r,o,i,a,s=this.strm,c=this.options.chunkSize,l=this.options.dictionary,u=!1;if(this.ended)return!1;r=t===~~t?t:t===!0?wr.Z_FINISH:wr.Z_NO_FLUSH,typeof e=="string"?s.input=zm.binstring2buf(e):fC.call(e)==="[object ArrayBuffer]"?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(s.avail_out===0&&(s.output=new H0.Buf8(c),s.next_out=0,s.avail_out=c),(n=gd.inflate(s,wr.Z_NO_FLUSH))===wr.Z_NEED_DICT&&l&&(n=gd.inflateSetDictionary(this.strm,l)),n===wr.Z_BUF_ERROR&&u===!0&&(n=wr.Z_OK,u=!1),n!==wr.Z_STREAM_END&&n!==wr.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(s.avail_out!==0&&n!==wr.Z_STREAM_END&&(s.avail_in!==0||r!==wr.Z_FINISH&&r!==wr.Z_SYNC_FLUSH)||(this.options.to==="string"?(o=zm.utf8border(s.output,s.next_out),i=s.next_out-o,a=zm.buf2string(s.output,o),s.next_out=i,s.avail_out=c-i,i&&H0.arraySet(s.output,s.output,o,i,0),this.onData(a)):this.onData(H0.shrinkBuf(s.output,s.next_out)))),s.avail_in===0&&s.avail_out===0&&(u=!0)}while((s.avail_in>0||s.avail_out===0)&&n!==wr.Z_STREAM_END);return n===wr.Z_STREAM_END&&(r=wr.Z_FINISH),r===wr.Z_FINISH?(n=gd.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===wr.Z_OK):r!==wr.Z_SYNC_FLUSH||(this.onEnd(wr.Z_OK),s.avail_out=0,!0)},au.prototype.onData=function(e){this.chunks.push(e)},au.prototype.onEnd=function(e){e===wr.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=H0.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},K0.Inflate=au,K0.inflate=Ly,K0.inflateRaw=function(e,t){return(t=t||{}).raw=!0,Ly(e,t)},K0.ungzip=Ly;var dC={};(0,fl.assign)(dC,Q0,K0,uC);var Hee=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",Gee=dC,KL=xr(),$m=aa,Jee=Hee?"uint8array":"array";function Dc(e,t){$m.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}Gm.magic="\b\0",KL.inherits(Dc,$m),Dc.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(KL.transformTo(Jee,e.data),!1)},Dc.prototype.flush=function(){$m.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},Dc.prototype.cleanUp=function(){$m.prototype.cleanUp.call(this),this._pako=null},Dc.prototype._createPako=function(){this._pako=new Gee[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},Gm.compressWorker=function(e){return new Dc("Deflate",e)},Gm.uncompressWorker=function(){return new Dc("Inflate",{})};var HL=aa;Gv.STORE={magic:"\0\0",compressWorker:function(){return new HL("STORE compression")},uncompressWorker:function(){return new HL("STORE decompression")}},Gv.DEFLATE=Gm;var hC={LOCAL_FILE_HEADER:"PK",CENTRAL_FILE_HEADER:"PK",CENTRAL_DIRECTORY_END:"PK",ZIP64_CENTRAL_DIRECTORY_LOCATOR:"PK\x07",ZIP64_CENTRAL_DIRECTORY_END:"PK",DATA_DESCRIPTOR:"PK\x07\b"},jf=xr(),Qf=aa,Oy=Gd,GL=Db,$v=hC,Jn=function(e,t){var n,r="";for(n=0;n>>=8;return r},JL=function(e,t,n,r,o,i){var a,s,c=e.file,l=e.compression,u=i!==Oy.utf8encode,f=jf.transformTo("string",i(c.name)),d=jf.transformTo("string",Oy.utf8encode(c.name)),h=c.comment,p=jf.transformTo("string",i(h)),m=jf.transformTo("string",Oy.utf8encode(h)),A=d.length!==c.name.length,x=m.length!==h.length,R="",y="",g="",S=c.dir,O=c.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var M=0;t&&(M|=8),u||!A&&!x||(M|=2048);var L,k,F,N=0,E=0;S&&(N|=16),o==="UNIX"?(E=798,N|=(L=c.unixPermissions,k=S,F=L,L||(F=k?16893:33204),(65535&F)<<16)):(E=20,N|=63&(c.dosPermissions||0)),a=O.getUTCHours(),a<<=6,a|=O.getUTCMinutes(),a<<=5,a|=O.getUTCSeconds()/2,s=O.getUTCFullYear()-1980,s<<=4,s|=O.getUTCMonth()+1,s<<=5,s|=O.getUTCDate(),A&&(y=Jn(1,1)+Jn(GL(f),4)+d,R+="up"+Jn(y.length,2)+y),x&&(g=Jn(1,1)+Jn(GL(p),4)+m,R+="uc"+Jn(g.length,2)+g);var C="";return C+=` +\0`,C+=Jn(M,2),C+=l.magic,C+=Jn(a,2),C+=Jn(s,2),C+=Jn(T.crc32,4),C+=Jn(T.compressedSize,4),C+=Jn(T.uncompressedSize,4),C+=Jn(f.length,2),C+=Jn(R.length,2),{fileRecord:$v.LOCAL_FILE_HEADER+C+f+R,dirRecord:$v.CENTRAL_FILE_HEADER+Jn(E,2)+C+Jn(p.length,2)+"\0\0\0\0"+Jn(N,4)+Jn(r,4)+f+R+p}},zee=function(e){return $v.DATA_DESCRIPTOR+Jn(e.crc32,4)+Jn(e.compressedSize,4)+Jn(e.uncompressedSize,4)};function Aa(e,t,n,r){Qf.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}jf.inherits(Aa,Qf),Aa.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,Qf.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},Aa.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=JL(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Aa.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=JL(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:zee(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Aa.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t0?e.substring(0,t):""},gC=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},AC=function(e,t){return t=t!==void 0?t:mC.createFolders,e=gC(e),this.files[e]||vC.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function jL(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var ste={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(arguments.length===1){if(jL(e)){var r=e;return this.filter(function(i,a){return!a.dir&&r.test(i)})}var o=this.files[this.root+e];return o&&!o.dir?o:null}return e=this.root+e,vC.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(jL(e))return this.filter(function(o,i){return i.dir&&e.test(o)});var t=this.root+e,n=AC.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(o,i){return i.name.slice(0,e.length)===e}),r=0;r=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return cte.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}};var yC=RC,xC=yC;function Zf(e){xC.call(this,e);for(var t=0;t=0;--i)if(this.data[i]===t&&this.data[i+1]===n&&this.data[i+2]===r&&this.data[i+3]===o)return i-this.zero;return-1},Zf.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&n===i[1]&&r===i[2]&&o===i[3]},Zf.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var bC=Zf,SC=yC;function Bf(e){SC.call(this,e)}xr().inherits(Bf,SC),Bf.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},Bf.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},Bf.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},Bf.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var ute=Bf,MC=bC;function T3(e){MC.call(this,e)}xr().inherits(T3,MC),T3.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var wC=T3,LC=wC;function k3(e){LC.call(this,e)}xr().inherits(k3,LC),k3.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};var fte=k3,pm=xr(),qL=kr,dte=bC,hte=ute,pte=fte,mte=wC,OC=function(e){var t=pm.getTypeOf(e);return pm.checkSupport(t),t!=="string"||qL.uint8array?t==="nodebuffer"?new pte(e):qL.uint8array?new mte(pm.transformTo("uint8array",e)):new dte(pm.transformTo("array",e)):new hte(e)},Ty=OC,Ol=xr(),vte=Kb,eO=Db,mm=Gd,vm=Gv,gte=kr;function TC(e,t){this.options=e,this.loadOptions=t}TC.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=function(r){for(var o in vm)if(Object.prototype.hasOwnProperty.call(vm,o)&&vm[o].magic===r)return vm[o];return null}(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+Ol.pretty(this.compressionMethod)+" unknown (inner file : "+Ol.transformTo("string",this.fileName)+")");this.decompressed=new vte(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e===0&&(this.dosPermissions=63&this.externalFileAttributes),e===3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=Ty(this.extraFields[1].value);this.uncompressedSize===Ol.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===Ol.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===Ol.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===Ol.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+41)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(t,da.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=Rte(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};var bte=kC,ky=xr(),qm=Wp,Ste=Gd,Mte=bte,wte=D9,tO=n2;function Lte(e){return new qm.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new wte);r.on("error",function(o){n(o)}).on("end",function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}function Ki(){if(!(this instanceof Ki))return new Ki;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new Ki;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}Ki.prototype=lte,Ki.prototype.loadAsync=function(e,t){var n=this;return t=ky.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Ste.utf8decode}),tO.isNode&&tO.isStream(e)?qm.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):ky.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(r){var o=new Mte(t);return o.load(r),o}).then(function(r){var o=[qm.Promise.resolve(r)],i=r.files;if(t.checkCRC32)for(var a=0;a",n),e.substring(M,n).indexOf(O)==-1){var L=e.substring(0,n).split(` +`);throw new Error(`Unexpected close tag +Line: `+(L.length-1)+` +Column: `+(L[L.length-1].length+1)+` +Char: `+e[n])}return n+1&&(n+=1),T}if(e.charCodeAt(n+1)===l){if(e.charCodeAt(n+2)==s){const _=n;for(;n!==-1&&(e.charCodeAt(n)!==a||e.charCodeAt(n-1)!=s||e.charCodeAt(n-2)!=s||n==-1);)n=e.indexOf(">",n+1);n===-1&&(n=e.length),r&&T.push(e.substring(_,n+1))}else{if(e.charCodeAt(n+2)===d&&e.charCodeAt(n+8)===d&&e.substr(n+3,5).toLowerCase()==="cdata"){var k=e.indexOf("]]>",n);k==-1?(T.push(e.substr(n+9)),n=e.length):(T.push(e.substring(n+9,k)),n=k+3);continue}{const _=n+1;n+=2;for(var F=!1;(e.charCodeAt(n)!==a||F===!0)&&e[n];)e.charCodeAt(n)===d?F=!0:F===!0&&e.charCodeAt(n)===h&&(F=!1),n++;T.push(e.substring(_,n))}}n++;continue}var N=R();T.push(N),N.tagName[0]==="?"&&(T.push(...N.children),N.children=[])}else{var E=m();if(o)E.length>0&&T.push(E);else{var C=E.trim();C.length>0&&T.push(C)}n++}return T}function m(){var O=n;return(n=e.indexOf("<",n)-1)===-2&&(n=e.length),e.slice(O,n+1)}function A(){for(var O=n;`\r + >/= `.indexOf(e[n])===-1&&e[n];)n++;return e.slice(O,n)}var x=t.noChildNodes||["img","br","input","meta","link","hr"];function R(){n++;const O=A(),T={};let M=[];for(;e.charCodeAt(n)!==a&&e[n];){var L=e.charCodeAt(n);if(L>64&&L<91||L>96&&L<123){for(var k=A(),F=e.charCodeAt(n);F&&F!==u&&F!==f&&!(F>64&&F<91||F>96&&F<123)&&F!==a;)n++,F=e.charCodeAt(n);if(F===u||F===f){var N=y();if(n===-1)return{tagName:O,attributes:T,children:M}}else N=null,n--;T[k]=N}n++}if(e.charCodeAt(n-1)!==c)if(O=="script"){var E=n+1;n=e.indexOf("<\/script>",n),M=[e.slice(E,n)],n+=9}else O=="style"?(E=n+1,n=e.indexOf("",n),M=[e.slice(E,n)],n+=8):x.indexOf(O)===-1?(n++,M=p(O)):n++;else n++;return{tagName:O,attributes:T,children:M}}function y(){var O=e[n],T=n+1;return n=e.indexOf(O,T),e.slice(T,n)}var g,S=null;if(t.attrValue!==void 0)for(t.attrName=t.attrName||"id",S=[];g=void 0,g=new RegExp("\\s"+t.attrName+`\\s*=['"]`+t.attrValue+`['"]`).exec(e),(n=g?g.index:-1)!==-1;)(n=e.lastIndexOf("<",n))!==-1&&S.push(R()),e=e.substr(n),n=0;else S=t.parseNode?R():p("");return t.filter&&(S=NC(S,t.filter)),t.simplify?PC(Array.isArray(S)?S:[S]):(t.setPos&&(S.pos=n),S)}function PC(e){var t={};if(!e.length)return"";if(e.length===1&&typeof e[0]=="string")return e[0];for(var n in e.forEach(function(r){if(typeof r=="object"){t[r.tagName]||(t[r.tagName]=[]);var o=PC(r.children);t[r.tagName].push(o),Object.keys(r.attributes).length&&typeof o!="string"&&(o._attributes=r.attributes)}}),t)t[n].length==1&&(t[n]=t[n][0]);return t}function NC(e,t,n=0,r=""){var o=[];return e.forEach(function(i,a){if(typeof i=="object"&&t(i,a,n,r)&&o.push(i),i.children){var s=NC(i.children,t,n+1,(r?r+".":"")+a+"."+i.tagName);o=o.concat(s)}}),o}function kte(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(c,l){if(c){if(typeof c=="string")return nO(c,l);var u=Object.prototype.toString.call(c).slice(8,-1);if(u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set")return Array.from(c);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return nO(c,l)}}(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function nO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n={};if(!e.length)return n;if(e.length===1&&typeof e[0]=="string")return Object.keys(t).length?{attrs:oO({order:iO++},t),value:e[0]}:e[0];var r,o=kte(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(P3(i)!=="object")return;if(i.tagName!=="?xml"){n[i.tagName]||(n[i.tagName]=[]);var a=CC(i.children||[],i.attributes);n[i.tagName].push(a),Object.keys(i.attributes).length&&(a.attrs=oO({order:iO++},i.attributes))}}}catch(c){o.e(c)}finally{o.f()}for(var s in n)n[s].length===1&&(n[s]=n[s][0]);return n}function Oo(e,t){return IC.apply(this,arguments)}function IC(){return(IC=ai(Vn.mark(function e(t,n){var r;return Vn.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,t.file(n).async("string");case 3:return r=o.sent,o.abrupt("return",CC(Tte(r)));case 7:return o.prev=7,o.t0=o.catch(0),o.abrupt("return",null);case 10:case"end":return o.stop()}},e,null,[[0,7]])}))).apply(this,arguments)}function jv(e){return jv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jv(e)}var Pte=/^\s+/,Nte=/\s+$/;function mt(e,t){if(t=t||{},(e=e||"")instanceof mt)return e;if(!(this instanceof mt))return new mt(e,t);var n=function(r){var o={r:0,g:0,b:0},i=1,a=null,s=null,c=null,l=!1,u=!1;typeof r=="string"&&(r=function(p){p=p.replace(Pte,"").replace(Nte,"").toLowerCase();var m,A=!1;if(N3[p])p=N3[p],A=!0;else if(p=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(m=Ra.rgb.exec(p))?{r:m[1],g:m[2],b:m[3]}:(m=Ra.rgba.exec(p))?{r:m[1],g:m[2],b:m[3],a:m[4]}:(m=Ra.hsl.exec(p))?{h:m[1],s:m[2],l:m[3]}:(m=Ra.hsla.exec(p))?{h:m[1],s:m[2],l:m[3],a:m[4]}:(m=Ra.hsv.exec(p))?{h:m[1],s:m[2],v:m[3]}:(m=Ra.hsva.exec(p))?{h:m[1],s:m[2],v:m[3],a:m[4]}:(m=Ra.hex8.exec(p))?{r:vi(m[1]),g:vi(m[2]),b:vi(m[3]),a:fO(m[4]),format:A?"name":"hex8"}:(m=Ra.hex6.exec(p))?{r:vi(m[1]),g:vi(m[2]),b:vi(m[3]),format:A?"name":"hex"}:(m=Ra.hex4.exec(p))?{r:vi(m[1]+""+m[1]),g:vi(m[2]+""+m[2]),b:vi(m[3]+""+m[3]),a:fO(m[4]+""+m[4]),format:A?"name":"hex8"}:(m=Ra.hex3.exec(p))?{r:vi(m[1]+""+m[1]),g:vi(m[2]+""+m[2]),b:vi(m[3]+""+m[3]),format:A?"name":"hex"}:!1}(r)),jv(r)=="object"&&(Ws(r.r)&&Ws(r.g)&&Ws(r.b)?(f=r.r,d=r.g,h=r.b,o={r:255*or(f,255),g:255*or(d,255),b:255*or(h,255)},l=!0,u=String(r.r).substr(-1)==="%"?"prgb":"rgb"):Ws(r.h)&&Ws(r.s)&&Ws(r.v)?(a=J0(r.s),s=J0(r.v),o=function(p,m,A){p=6*or(p,360),m=or(m,100),A=or(A,100);var x=Math.floor(p),R=p-x,y=A*(1-m),g=A*(1-R*m),S=A*(1-(1-R)*m),O=x%6;return{r:255*[A,g,y,y,S,A][O],g:255*[S,A,A,g,y,y][O],b:255*[y,y,S,A,A,g][O]}}(r.h,a,s),l=!0,u="hsv"):Ws(r.h)&&Ws(r.s)&&Ws(r.l)&&(a=J0(r.s),c=J0(r.l),o=function(p,m,A){var x,R,y;function g(T,M,L){return L<0&&(L+=1),L>1&&(L-=1),L<1/6?T+6*(M-T)*L:L<.5?M:L<2/3?T+(M-T)*(2/3-L)*6:T}if(p=or(p,360),m=or(m,100),A=or(A,100),m===0)x=R=y=A;else{var S=A<.5?A*(1+m):A+m-A*m,O=2*A-S;x=g(O,S,p+1/3),R=g(O,S,p),y=g(O,S,p-1/3)}return{r:255*x,g:255*R,b:255*y}}(r.h,a,c),l=!0,u="hsl"),r.hasOwnProperty("a")&&(i=r.a));var f,d,h;return i=FC(i),{ok:l,format:r.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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=n.ok}function aO(e,t,n){e=or(e,255),t=or(t,255),n=or(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var c=i-a;switch(o=s>.5?c/(2-i-a):c/(i+a),i){case e:r=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(mt(r));return i}function Qte(e,t){t=t||6;for(var n=mt(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(mt({h:r,s:o,v:i})),i=(i+s)%1;return a}mt.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(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=FC(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=sO(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=sO(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return this._a==1?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=aO(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=aO(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return this._a==1?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return lO(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(t,n,r,o,i){var a=[Pa(Math.round(t).toString(16)),Pa(Math.round(n).toString(16)),Pa(Math.round(r).toString(16)),Pa(_C(o))];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("")}(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(100*or(this._r,255))+"%",g:Math.round(100*or(this._g,255))+"%",b:Math.round(100*or(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*or(this._r,255))+"%, "+Math.round(100*or(this._g,255))+"%, "+Math.round(100*or(this._b,255))+"%)":"rgba("+Math.round(100*or(this._r,255))+"%, "+Math.round(100*or(this._g,255))+"%, "+Math.round(100*or(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(Zte[lO(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+cO(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=mt(e);n="#"+cO(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||e!=="hex"&&e!=="hex6"&&e!=="hex3"&&e!=="hex4"&&e!=="hex8"&&e!=="name"?(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()):e==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return mt(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_te,arguments)},brighten:function(){return this._applyModification(Xte,arguments)},darken:function(){return this._applyModification(Ete,arguments)},desaturate:function(){return this._applyModification(Cte,arguments)},saturate:function(){return this._applyModification(Ite,arguments)},greyscale:function(){return this._applyModification(Fte,arguments)},spin:function(){return this._applyModification(Wte,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Yte,arguments)},complement:function(){return this._applyCombination(Vte,arguments)},monochromatic:function(){return this._applyCombination(Qte,arguments)},splitcomplement:function(){return this._applyCombination(Ute,arguments)},triad:function(){return this._applyCombination(uO,[3])},tetrad:function(){return this._applyCombination(uO,[4])}},mt.fromRatio=function(e,t){if(jv(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=r==="a"?e[r]:J0(e[r]));e=n}return mt(e,t)},mt.equals=function(e,t){return!(!e||!t)&&mt(e).toRgbString()==mt(t).toRgbString()},mt.random=function(){return mt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},mt.mix=function(e,t,n){n=n===0?0:n||50;var r=mt(e).toRgb(),o=mt(t).toRgb(),i=n/100;return mt({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},mt.readability=function(e,t){var n=mt(e),r=mt(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},mt.isReadable=function(e,t,n){var r,o,i=mt.readability(e,t);switch(o=!1,(r=function(a){var s,c;return s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase(),c=(a.size||"small").toLowerCase(),s!=="AA"&&s!=="AAA"&&(s="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:s,size:c}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},mt.mostReadable=function(e,t,n){var r,o,i,a,s=null,c=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;lc&&(c=r,s=mt(t[l]));return mt.isReadable(e,s,{level:i,size:a})||!o?s:(n.includeFallbackColors=!1,mt.mostReadable(e,["#fff","#000"],n))};var N3=mt.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"},Zte=mt.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(N3);function FC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function or(e,t){(function(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1})(e)&&(e="100%");var n=function(r){return typeof r=="string"&&r.indexOf("%")!=-1}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function r2(e){return Math.min(1,Math.max(0,e))}function vi(e){return parseInt(e,16)}function Pa(e){return e.length==1?"0"+e:""+e}function J0(e){return e<=1&&(e=100*e+"%"),e}function _C(e){return Math.round(255*parseFloat(e)).toString(16)}function fO(e){return vi(e)/255}var Tl,gm,Am,Ra=(gm="[\\s|\\(]+("+(Tl="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Tl+")[,|\\s]+("+Tl+")\\s*\\)?",Am="[\\s|\\(]+("+Tl+")[,|\\s]+("+Tl+")[,|\\s]+("+Tl+")[,|\\s]+("+Tl+")\\s*\\)?",{CSS_UNIT:new RegExp(Tl),rgb:new RegExp("rgb"+gm),rgba:new RegExp("rgba"+Am),hsl:new RegExp("hsl"+gm),hsla:new RegExp("hsla"+Am),hsv:new RegExp("hsv"+gm),hsva:new RegExp("hsva"+Am),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 Ws(e){return!!Ra.CSS_UNIT.exec(e)}function Bte(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(c,l){if(c){if(typeof c=="string")return dO(c,l);var u=Object.prototype.toString.call(c).slice(8,-1);if(u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set")return Array.from(c);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return dO(c,l)}}(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function dO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>18]+n[(258048&t)>>12]+n[(4032&t)>>6]+n[63&t];return i===1?s+=n[(252&(t=r[a]))>>2]+n[(3&t)<<4]+"==":i===2&&(s+=n[(64512&(t=r[a]<<8|r[a+1]))>>10]+n[(1008&t)>>4]+n[(15&t)<<2]+"="),s}function Py(e){return e.substr(2+(~-e.lastIndexOf(".")>>>0))}function Lf(e,t){if(!e)return e;var n="";if(e.constructor===Array)for(var r=0;r":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,function(n){return t[n]})}function C3(e){var t="";switch(e.toLowerCase()){case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"gif":t="image/gif";break;case"emf":t="image/x-emf";break;case"wmf":t="image/x-wmf";break;case"svg":t="image/svg+xml";break;case"mp4":t="video/mp4";break;case"webm":t="video/webm";break;case"ogg":t="video/ogg";break;case"avi":t="video/avi";break;case"mpg":t="video/mpg";break;case"wmv":t="video/wmv";break;case"mp3":t="audio/mpeg";break;case"wav":t="audio/wav";break;case"tif":case"tiff":t="image/tiff"}return t}function Dte(e){return/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(e)}function Of(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function z0(e,t){switch(e){case"tx1":e="a:dk1";break;case"tx2":e="a:dk2";break;case"bg1":e="a:lt1";break;case"bg2":e="a:lt2"}var n=Ye(t.themeContent,["a:theme","a:themeElements","a:clrScheme",e]),r=Ye(n,["a:srgbClr","attrs","val"]);return!r&&n&&(r=Ye(n,["a:sysClr","attrs","lastClr"])),r}function Ny(e,t,n){return n<0&&(n+=6),n>=6&&(n-=6),n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e}function Cy(e){var t="";return e["a:noFill"]&&(t="NO_FILL"),e["a:solidFill"]&&(t="SOLID_FILL"),e["a:gradFill"]&&(t="GRADIENT_FILL"),e["a:pattFill"]&&(t="PATTERN_FILL"),e["a:blipFill"]&&(t="PIC_FILL"),e["a:grpFill"]&&(t="GROUP_FILL"),t}function Kte(e,t,n){return I3.apply(this,arguments)}function I3(){return I3=ai(Vn.mark(function e(t,n,r){var o,i,a,s,c,l;return Vn.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(i=n["a:blip"].attrs["r:embed"],t==="slideBg"||t==="slide"?a=Ye(r,["slideResObj",i,"target"]):t==="slideLayoutBg"?a=Ye(r,["layoutResObj",i,"target"]):t==="slideMasterBg"?a=Ye(r,["masterResObj",i,"target"]):t==="themeBg"&&(a=Ye(r,["themeResObj",i,"target"])),a){u.next=4;break}return u.abrupt("return",a);case 4:if(o=Ye(r,["loaded-images",a])){u.next=15;break}if(a=EC(a),(s=a.split(".").pop())!=="xml"){u.next=10;break}return u.abrupt("return",void 0);case 10:return u.next=12,r.zip.file(a).async("arraybuffer");case 12:c=u.sent,l=C3(s),o="data:".concat(l,";base64,").concat(XC(c));case 15:return u.abrupt("return",o);case 16:case"end":return u.stop()}},e)})),I3.apply(this,arguments)}function Iy(e,t,n){return WC.apply(this,arguments)}function WC(){return(WC=ai(Vn.mark(function e(t,n,r){var o,i,a,s;return Vn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Kte(n,t["a:blipFill"],r);case 2:return o=c.sent,i=t["a:blipFill"]["a:blip"],a=Ye(i,["a:alphaModFix","attrs"]),s=1,a&&a.amt&&a.amt!==""&&(s=parseInt(a.amt)/1e5),c.abrupt("return",{picBase64:o,opacity:s});case 8:case"end":return c.stop()}},e)}))).apply(this,arguments)}function Fy(e,t,n,r){if(e){for(var o=e["a:gradFill"],i=o["a:gsLst"]["a:gs"],a=[],s=0;s=360&&(k-=360),M?mt({h:k,s:L.s,l:L.l,a:L.a}).toHex8():mt({h:k,s:L.s,l:L.l,a:L.a}).toHex()}(i,A,h));var x=parseInt(Ye(o,["a:lumMod","attrs","val"]))/1e5;isNaN(x)||(i=function(O,T,M){var L=mt(O).toHsl(),k=L.l*T;return k>=1&&(k=1),M?mt({h:L.h,s:L.s,l:k,a:L.a}).toHex8():mt({h:L.h,s:L.s,l:k,a:L.a}).toHex()}(i,x,h));var R=parseInt(Ye(o,["a:lumOff","attrs","val"]))/1e5;isNaN(R)||(i=function(O,T,M){var L=mt(O).toHsl(),k=T+L.l;return k>=1?M?mt({h:L.h,s:L.s,l:1,a:L.a}).toHex8():mt({h:L.h,s:L.s,l:1,a:L.a}).toHex():M?mt({h:L.h,s:L.s,l:k,a:L.a}).toHex8():mt({h:L.h,s:L.s,l:k,a:L.a}).toHex()}(i,R,h));var y=parseInt(Ye(o,["a:satMod","attrs","val"]))/1e5;isNaN(y)||(i=function(O,T,M){var L=mt(O).toHsl(),k=L.s*T;return k>=1&&(k=1),M?mt({h:L.h,s:k,l:L.l,a:L.a}).toHex8():mt({h:L.h,s:k,l:L.l,a:L.a}).toHex()}(i,y,h));var g=parseInt(Ye(o,["a:shade","attrs","val"]))/1e5;isNaN(g)||(i=function(O,T,M){var L=mt(O).toHsl();T>=1&&(T=1);var k=Math.min(L.l*T,1);return M?mt({h:L.h,s:L.s,l:k,a:L.a}).toHex8():mt({h:L.h,s:L.s,l:k,a:L.a}).toHex()}(i,g,h));var S=parseInt(Ye(o,["a:tint","attrs","val"]))/1e5;return isNaN(S)||(i=function(O,T,M){var L=mt(O).toHsl();T>=1&&(T=1);var k=L.l*T+(1-T);return M?mt({h:L.h,s:L.s,l:k,a:L.a}).toHex8():mt({h:L.h,s:L.s,l:k,a:L.a}).toHex()}(i,S,h)),i}function Mo(e){var t=[];if(!e)return t;if(e["c:xVal"]){var n=[];Lf(e["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],function(r){return n.push(parseFloat(r["c:v"])),""}),t.push(n),n=[],Lf(e["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],function(r){return n.push(parseFloat(r["c:v"])),""}),t.push(n)}else Lf(e,function(r,o){var i=[],a=Ye(r,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||o,s={};return Ye(r,["c:cat","c:strRef","c:strCache","c:pt"])?Lf(r["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],function(c){return s[c.attrs.idx]=c["c:v"],""}):Ye(r,["c:cat","c:numRef","c:numCache","c:pt"])&&Lf(r["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],function(c){return s[c.attrs.idx]=c["c:v"],""}),Ye(r,["c:val","c:numRef","c:numCache","c:pt"])&&Lf(r["c:val"]["c:numRef"]["c:numCache"]["c:pt"],function(c){return i.push({x:c.attrs.idx,y:parseFloat(c["c:v"])}),""}),t.push({key:a,values:i,xlabels:s}),""});return t}function Gte(e){var t=null;for(var n in e)switch(n){case"c:lineChart":t={type:"lineChart",data:Mo(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"]),marker:!!e[n]["c:marker"]};break;case"c:line3DChart":t={type:"line3DChart",data:Mo(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"])};break;case"c:barChart":t={type:"barChart",data:Mo(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"]),barDir:Ye(e[n],["c:barDir","attrs","val"])};break;case"c:bar3DChart":t={type:"bar3DChart",data:Mo(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"]),barDir:Ye(e[n],["c:barDir","attrs","val"])};break;case"c:pieChart":t={type:"pieChart",data:Mo(e[n]["c:ser"])};break;case"c:pie3DChart":t={type:"pie3DChart",data:Mo(e[n]["c:ser"])};break;case"c:doughnutChart":t={type:"doughnutChart",data:Mo(e[n]["c:ser"]),holeSize:Ye(e[n],["c:holeSize","attrs","val"])};break;case"c:areaChart":t={type:"areaChart",data:Mo(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"])};break;case"c:area3DChart":t={type:"area3DChart",data:Mo(e[n]["c:ser"]),grouping:Ye(e[n],["c:grouping","attrs","val"])};break;case"c:scatterChart":t={type:"scatterChart",data:Mo(e[n]["c:ser"]),style:Ye(e[n],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":t={type:"bubbleChart",data:Mo(e[n]["c:ser"])};break;case"c:radarChart":t={type:"radarChart",data:Mo(e[n]["c:ser"]),style:Ye(e[n],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":t={type:"surfaceChart",data:Mo(e[n]["c:ser"])};break;case"c:surface3DChart":t={type:"surface3DChart",data:Mo(e[n]["c:ser"])};break;case"c:stockChart":t={type:"stockChart",data:Mo(e[n]["c:ser"])}}return t}function Jte(e,t,n,r,o){var i=Ye(e,["a:pPr","attrs","algn"]);if(i||(i=Ye(t,["p:txBody","a:p","a:pPr","attrs","algn"])),i||(i=Ye(n,["p:txBody","a:p","a:pPr","attrs","algn"])),!i)switch(r){case"title":case"subTitle":case"ctrTitle":i=Ye(o,["p:titleStyle","a:lvl1pPr","attrs","algn"]);break;default:i=Ye(o,["p:otherStyle","a:lvl1pPr","attrs","algn"])}if(!i){if(r==="title"||r==="subTitle"||r==="ctrTitle")return"center";if(r==="sldNum")return"right"}return i==="ctr"?"center":i==="r"?"right":"left"}function Vp(e,t,n,r){var o;return e?o=e["a:off"].attrs:t?o=t["a:off"].attrs:n&&(o=n["a:off"].attrs),o?{top:parseInt(o.y)*r,left:parseInt(o.x)*r}:{top:0,left:0}}function Up(e,t,n,r){var o;return e?o=e["a:ext"].attrs:t?o=t["a:ext"].attrs:n&&(o=n["a:ext"].attrs),o?{width:parseInt(o.cx)*r,height:parseInt(o.cy)*r}:{width:0,height:0}}function UC(e,t,n){var r=xu(e,0,0,t),o=e.attrs,i=o.dir?parseInt(o.dir)/6e4:0,a=parseInt(o.dist)*n,s=o.blurRad?parseInt(o.blurRad)*n:"",c=a*Math.sin(i*Math.PI/180);return{h:a*Math.cos(i*Math.PI/180),v:c,blur:s,color:"#"+r}}function hO(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(c,l){if(c){if(typeof c=="string")return pO(c,l);var u=Object.prototype.toString.call(c).slice(8,-1);if(u==="Object"&&c.constructor&&(u=c.constructor.name),u==="Map"||u==="Set")return Array.from(c);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return pO(c,l)}}(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function pO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&A.shift(),(p=p.concat(A)).sort(function(S,O){return!S.attrs||!O.attrs||S.attrs.order-O.attrs.order})));var x=Jte(h,t,n,r,l),R=zte(h);if(R?(f?f&&f!==R&&(c+=""),c+="<".concat(R,">"),f=R):(c+="<".concat(R,">"),f=R),c+='
  • ')):(f&&(c+=""),f=""),c+='

    ')),p){var y,g=hO(p);try{for(g.s();!(y=g.n()).done;)c+=mO(y.value,t,r,o,i,a)}catch(S){g.e(S)}finally{g.f()}}else c+=mO(h,t,r,o,i,a);c+=R?"

  • ":"

    "}}catch(S){d.e(S)}finally{d.f()}return c}function zte(e){var t=e["a:pPr"];return t?t["a:buChar"]?"ul":t["a:buAutoNum"]?"ol":"":""}function mO(e,t,n,r,o,i){var a=r.slideMasterTextStyles,s=e["a:t"];typeof s!="string"&&(s=Ye(e,["a:fld","a:t"])),typeof s!="string"&&(s=" ");var c="",l=function(S){var O=Ye(S,["a:rPr","a:solidFill","a:srgbClr","attrs","val"]);return O?"#".concat(O):""}(e),u=function(S,O,T,M,L){var k,F;if(S["a:rPr"]&&(k=parseInt(S["a:rPr"].attrs.sz)/100),isNaN(k)||!k){var N=Ye(O,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);k=parseInt(N)/100}return!isNaN(k)&&k||(T==="title"||T==="subTitle"||T==="ctrTitle"?F=Ye(M,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):T==="body"?F=Ye(M,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]):T==="dt"||T==="sldNum"?F="1200":T||(F=Ye(M,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"])),F&&(k=parseInt(F)/100)),Ye(S,["a:rPr","attrs","baseline"])&&!isNaN(k)&&(k-=10),(k=isNaN(k)||!k?18:k)*L+"px"}(e,t,n,a,o),f=function(S,O,T){var M=Ye(S,["a:rPr","a:latin","attrs","typeface"]);if(!M){var L=Ye(T.themeContent,["a:theme","a:themeElements","a:fontScheme"]);M=Ye(L,O==="title"||O==="subTitle"||O==="ctrTitle"?["a:majorFont","a:latin","attrs","typeface"]:["a:minorFont","a:latin","attrs","typeface"])}return M||""}(e,n,r),d=function(S){return Ye(S,["a:rPr","attrs","b"])==="1"?"bold":""}(e),h=function(S){return Ye(S,["a:rPr","attrs","i"])==="1"?"italic":""}(e),p=function(S){return Ye(S,["a:rPr","attrs","u"])==="sng"?"underline":""}(e),m=function(S){return Ye(S,["a:rPr","attrs","strike"])==="sngStrike"?"line-through":""}(e),A=function(S,O){var T=Ye(S,["a:rPr","attrs","spc"]);return T?parseInt(T)/100*O+"px":""}(e,o),x=function(S,O,T){var M=Ye(S,["a:rPr","a:effectLst","a:outerShdw"]);if(M){var L=UC(M,O,T);if(L){var k=L.h,F=L.v,N=L.blur,E=L.color;if(!isNaN(F)&&!isNaN(k))return k+"px "+F+"px "+(N?N+"px":"")+" "+E}}return""}(e,r,i),R=function(S){var O=Ye(S,["a:rPr","attrs","baseline"]);return O?parseInt(O)>0?"super":"sub":""}(e);l&&(c+="color: ".concat(l,";")),u&&(c+="font-size: ".concat(u,";")),f&&(c+="font-family: ".concat(f,";")),d&&(c+="font-weight: ".concat(d,";")),h&&(c+="font-style: ".concat(h,";")),p&&(c+="text-decoration: ".concat(p,";")),m&&(c+="text-decoration-line: ".concat(m,";")),A&&(c+="letter-spacing: ".concat(A,";")),R&&(c+="vertical-align: ".concat(R,"; font-size: smaller;")),x&&(c+="text-shadow: ".concat(x,";"));var y=Ye(e,["a:rPr","a:hlinkClick","attrs","r:id"]);if(y){var g=r.slideResObj[y].target;return'').concat(s.replace(/\s/i," "),"")}return'').concat(s.replace(/\s/i," "),"")}function $te(e,t,n,r,o,i,a){var s,c=o;if(i>=o)for(;c<=i;){var l=c*(Math.PI/180),u=e+Math.cos(l)*n,f=t+Math.sin(l)*r;c===o&&(s=" M"+u+" "+f),s+=" L"+u+" "+f,c++}else for(;c>i;){var d=c*(Math.PI/180),h=e+Math.cos(d)*n,p=t+Math.sin(d)*r;c===o&&(s=" M "+h+" "+p),s+=" L "+h+" "+p,c--}return s+=a?" z":""}function vO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Dl(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function gO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&m[1]!==void 0?m[1]:{},(n=Dl(Dl({},jte),n)).slideFactor&&(wn=n.slideFactor),n.fontsizeFactor&&(su=n.fontsizeFactor),r=[],A.next=7,Ote.loadAsync(t);case 7:return o=A.sent,A.next=10,ene(o);case 10:return i=A.sent,A.next=13,tne(o);case 13:return a=A.sent,s=a.width,c=a.height,l=a.defaultTextStyle,A.next=19,nne(o);case 19:u=A.sent,f=No(i.slides),A.prev=21,f.s();case 23:if((d=f.n()).done){A.next=31;break}return h=d.value,A.next=27,rne(o,h,u,l);case 27:p=A.sent,r.push(p);case 29:A.next=23;break;case 31:A.next=36;break;case 33:A.prev=33,A.t0=A.catch(21),f.e(A.t0);case 36:return A.prev=36,f.f(),A.finish(36);case 39:return A.abrupt("return",{slides:r,size:{width:s,height:c}});case 40:case"end":return A.stop()}},e,null,[[21,33,36,39]])})),F3.apply(this,arguments)}function ene(e){return YC.apply(this,arguments)}function YC(){return(YC=ai(Vn.mark(function e(t){var n,r,o,i,a,s,c,l;return Vn.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Oo(t,"[Content_Types].xml");case 2:n=u.sent,r=n.Types.Override,o=[],i=[],a=No(r),u.prev=7,a.s();case 9:if((s=a.n()).done){u.next=20;break}c=s.value,u.t0=c.attrs.ContentType,u.next=u.t0==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"?14:u.t0==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"?16:18;break;case 14:return o.push(c.attrs.PartName.substr(1)),u.abrupt("break",18);case 16:return i.push(c.attrs.PartName.substr(1)),u.abrupt("break",18);case 18:u.next=9;break;case 20:u.next=25;break;case 22:u.prev=22,u.t1=u.catch(7),a.e(u.t1);case 25:return u.prev=25,a.f(),u.finish(25);case 28:return l=function(f,d){return+/(\d+)\.xml/.exec(f)[1]-+/(\d+)\.xml/.exec(d)[1]},o=o.sort(l),i=i.sort(l),u.abrupt("return",{slides:o,slideLayouts:i});case 32:case"end":return u.stop()}},e,null,[[7,22,25,28]])}))).apply(this,arguments)}function tne(e){return QC.apply(this,arguments)}function QC(){return(QC=ai(Vn.mark(function e(t){var n,r,o;return Vn.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Oo(t,"ppt/presentation.xml");case 2:return n=i.sent,r=n["p:presentation"]["p:sldSz"].attrs,o=n["p:presentation"]["p:defaultTextStyle"],i.abrupt("return",{width:parseInt(r.cx)*wn,height:parseInt(r.cy)*wn,defaultTextStyle:o});case 6:case"end":return i.stop()}},e)}))).apply(this,arguments)}function nne(e){return ZC.apply(this,arguments)}function ZC(){return(ZC=ai(Vn.mark(function e(t){var n,r,o,i,a,s;return Vn.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Oo(t,"ppt/_rels/presentation.xml.rels");case 2:if(n=c.sent,(r=n.Relationships.Relationship).constructor!==Array){c.next=25;break}i=No(r),c.prev=6,i.s();case 8:if((a=i.n()).done){c.next=15;break}if((s=a.value).attrs.Type!=="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"){c.next=13;break}return o=s.attrs.Target,c.abrupt("break",15);case 13:c.next=8;break;case 15:c.next=20;break;case 17:c.prev=17,c.t0=c.catch(6),i.e(c.t0);case 20:return c.prev=20,i.f(),c.finish(20);case 23:c.next=26;break;case 25:r.attrs.Type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"&&(o=r.attrs.Target);case 26:if(o){c.next=28;break}throw Error("Can't open theme file.");case 28:return c.next=30,Oo(t,"ppt/"+o);case 30:return c.abrupt("return",c.sent);case 31:case"end":return c.stop()}},e,null,[[6,17,20,23]])}))).apply(this,arguments)}function rne(e,t,n,r){return _3.apply(this,arguments)}function _3(){return _3=ai(Vn.mark(function e(t,n,r,o){var i,a,s,c,l,u,f,d,h,p,m,A,x,R,y,g,S,O,T,M,L,k,F,N,E,C,_,I,V,B,G,oe,W,Z,K,U,z,fe,se,ie,me,Ae,ye,J,ae,X,$,ue,j,q,re,pe,le,ce,be,Ce;return Vn.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return i=n.replace("slides/slide","slides/_rels/slide")+".rels",ge.next=3,Oo(t,i);case 3:if(a=ge.sent,s=a.Relationships.Relationship,c="",l="",u={},s.constructor!==Array){ge.next=35;break}f=No(s),ge.prev=10,f.s();case 12:if((d=f.n()).done){ge.next=25;break}h=d.value,ge.t0=h.attrs.Type,ge.next=ge.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"?17:ge.t0==="http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"?19:(ge.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"||ge.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"||ge.t0==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"||ge.t0,22);break;case 17:return c=h.attrs.Target.replace("../","ppt/"),ge.abrupt("break",23);case 19:return l=h.attrs.Target.replace("../","ppt/"),u[h.attrs.Id]={type:h.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:h.attrs.Target.replace("../","ppt/")},ge.abrupt("break",23);case 22:u[h.attrs.Id]={type:h.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:h.attrs.Target.replace("../","ppt/")};case 23:ge.next=12;break;case 25:ge.next=30;break;case 27:ge.prev=27,ge.t1=ge.catch(10),f.e(ge.t1);case 30:return ge.prev=30,f.f(),ge.finish(30);case 33:ge.next=36;break;case 35:c=s.attrs.Target.replace("../","ppt/");case 36:return ge.next=38,Oo(t,c);case 38:return p=ge.sent,ge.next=41,AO(p);case 41:return m=ge.sent,A=c.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",ge.next=45,Oo(t,A);case 45:if(x=ge.sent,s=x.Relationships.Relationship,R="",y={},s.constructor!==Array){ge.next=73;break}g=No(s),ge.prev=51,g.s();case 53:if((S=g.n()).done){ge.next=63;break}O=S.value,ge.t2=O.attrs.Type,ge.next=ge.t2==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"?58:60;break;case 58:return R=O.attrs.Target.replace("../","ppt/"),ge.abrupt("break",61);case 60:y[O.attrs.Id]={type:O.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:O.attrs.Target.replace("../","ppt/")};case 61:ge.next=53;break;case 63:ge.next=68;break;case 65:ge.prev=65,ge.t3=ge.catch(51),g.e(ge.t3);case 68:return ge.prev=68,g.f(),ge.finish(68);case 71:ge.next=74;break;case 73:R=s.attrs.Target.replace("../","ppt/");case 74:return ge.next=76,Oo(t,R);case 76:return T=ge.sent,M=Ye(T,["p:sldMaster","p:txStyles"]),L=AO(T),k=R.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",ge.next=82,Oo(t,k);case 82:if(F=ge.sent,s=F.Relationships.Relationship,N="",E={},s.constructor!==Array){ge.next=109;break}C=No(s),ge.prev=88,C.s();case 90:if((_=C.n()).done){ge.next=99;break}I=_.value,ge.t4=I.attrs.Type,ge.next=ge.t4==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"?95:96;break;case 95:return ge.abrupt("break",97);case 96:E[I.attrs.Id]={type:I.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:I.attrs.Target.replace("../","ppt/")};case 97:ge.next=90;break;case 99:ge.next=104;break;case 101:ge.prev=101,ge.t5=ge.catch(88),C.e(ge.t5);case 104:return ge.prev=104,C.f(),ge.finish(104);case 107:ge.next=110;break;case 109:N=s.attrs.Target.replace("../","ppt/");case 110:if(V={},!N){ge.next=118;break}return B=N.split("/").pop(),G=N.replace(B,"_rels/"+B)+".rels",ge.next=116,Oo(t,G);case 116:if((oe=ge.sent)&&(s=oe.Relationships.Relationship))if(s.constructor===Array){W=No(s);try{for(W.s();!(Z=W.n()).done;)K=Z.value,V[K.attrs.Id]={type:K.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:K.attrs.Target.replace("../","ppt/")}}catch(He){W.e(He)}finally{W.f()}}else V[s.attrs.Id]={type:s.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:s.attrs.Target.replace("../","ppt/")};case 118:if(U={},z={},!l){ge.next=131;break}return fe=l.split("/").pop(),se=l.replace(fe,"_rels/"+fe)+".rels",ge.next=125,Oo(t,l);case 125:return(z=ge.sent)&&z&&z&&(ie=(ie=JSON.stringify(z)).replace(/dsp:/g,"p:"),z=JSON.parse(ie)),ge.next=129,Oo(t,se);case 129:if(me=ge.sent)if((s=me.Relationships.Relationship).constructor===Array){Ae=No(s);try{for(Ae.s();!(ye=Ae.n()).done;)J=ye.value,U[J.attrs.Id]={type:J.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:J.attrs.Target.replace("../","ppt/")}}catch(He){Ae.e(He)}finally{Ae.f()}}else U[s.attrs.Id]={type:s.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:s.attrs.Target.replace("../","ppt/")};case 131:return ge.next=133,Oo(t,"ppt/tableStyles.xml");case 133:return ae=ge.sent,ge.next=136,Oo(t,n);case 136:return X=ge.sent,$=X["p:sld"]["p:cSld"]["p:spTree"],ue={zip:t,slideLayoutContent:p,slideLayoutTables:m,slideMasterContent:T,slideMasterTables:L,slideContent:X,tableStyles:ae,slideResObj:u,slideMasterTextStyles:M,layoutResObj:y,masterResObj:E,themeContent:r,themeResObj:V,digramFileContent:z,diagramResObj:U,defaultTextStyle:o},ge.next=141,Hte(ue);case 141:j=ge.sent,q=[],ge.t6=Vn.keys($);case 144:if((ge.t7=ge.t6()).done){ge.next=174;break}if(re=ge.t7.value,$[re].constructor!==Array){ge.next=168;break}pe=No($[re]),ge.prev=148,pe.s();case 150:if((le=pe.n()).done){ge.next=158;break}return ce=le.value,ge.next=154,eg(re,ce,ue);case 154:(be=ge.sent)&&q.push(be);case 156:ge.next=150;break;case 158:ge.next=163;break;case 160:ge.prev=160,ge.t8=ge.catch(148),pe.e(ge.t8);case 163:return ge.prev=163,pe.f(),ge.finish(163);case 166:ge.next=172;break;case 168:return ge.next=170,eg(re,$[re],ue);case 170:(Ce=ge.sent)&&q.push(Ce);case 172:ge.next=144;break;case 174:return ge.abrupt("return",{fill:j,elements:q});case 175:case"end":return ge.stop()}},e,null,[[10,27,30,33],[51,65,68,71],[88,101,104,107],[148,160,163,166]])})),_3.apply(this,arguments)}function AO(e){var t=e[Object.keys(e)[0]]["p:cSld"]["p:spTree"],n={},r={},o={};for(var i in t)if(i!=="p:nvGrpSpPr"&&i!=="p:grpSpPr"){var a=t[i];if(a.constructor===Array){var s,c=No(a);try{for(c.s();!(s=c.n()).done;){var l=s.value,u=l["p:nvSpPr"],f=Ye(u,["p:cNvPr","attrs","id"]),d=Ye(u,["p:nvPr","p:ph","attrs","idx"]),h=Ye(u,["p:nvPr","p:ph","attrs","type"]);f&&(n[f]=l),d&&(r[d]=l),h&&(o[h]=l)}}catch(R){c.e(R)}finally{c.f()}}else{var p=a["p:nvSpPr"],m=Ye(p,["p:cNvPr","attrs","id"]),A=Ye(p,["p:nvPr","p:ph","attrs","idx"]),x=Ye(p,["p:nvPr","p:ph","attrs","type"]);m&&(n[m]=a),A&&(r[A]=a),x&&(o[x]=a)}}return{idTable:n,idxTable:r,typeTable:o}}function eg(e,t,n){return BC.apply(this,arguments)}function BC(){return(BC=ai(Vn.mark(function e(t,n,r){var o;return Vn.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:i.t0=t,i.next=i.t0==="p:sp"?3:i.t0==="p:cxnSp"?5:i.t0==="p:pic"?7:i.t0==="p:graphicFrame"?9:i.t0==="p:grpSp"?13:i.t0==="mc:AlternateContent"?17:21;break;case 3:return o=DC(n,r),i.abrupt("break",21);case 5:return o=one(n,r),i.abrupt("break",21);case 7:return o=ine(n,r),i.abrupt("break",21);case 9:return i.next=11,ane(n,r);case 11:case 15:case 19:return o=i.sent,i.abrupt("break",21);case 13:return i.next=15,X3(n,r);case 17:return i.next=19,X3(Ye(n,["mc:Fallback"]),r);case 21:return i.abrupt("return",o);case 22:case"end":return i.stop()}},e)}))).apply(this,arguments)}function X3(e,t){return E3.apply(this,arguments)}function E3(){return E3=ai(Vn.mark(function e(t,n){var r,o,i,a,s,c,l,u,f,d,h,p,m,A,x,R;return Vn.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(r=Ye(t,["p:grpSpPr","a:xfrm"])){y.next=3;break}return y.abrupt("return",null);case 3:o=parseInt(r["a:off"].attrs.x)*wn,i=parseInt(r["a:off"].attrs.y)*wn,a=parseInt(r["a:chOff"].attrs.x)*wn,s=parseInt(r["a:chOff"].attrs.y)*wn,c=parseInt(r["a:ext"].attrs.cx)*wn,l=parseInt(r["a:ext"].attrs.cy)*wn,u=parseInt(r["a:chExt"].attrs.cx)*wn,f=parseInt(r["a:chExt"].attrs.cy)*wn,d=[],y.t0=Vn.keys(t);case 13:if((y.t1=y.t0()).done){y.next=43;break}if(h=y.t1.value,t[h].constructor!==Array){y.next=37;break}p=No(t[h]),y.prev=17,p.s();case 19:if((m=p.n()).done){y.next=27;break}return A=m.value,y.next=23,eg(h,A,n);case 23:(x=y.sent)&&d.push(x);case 25:y.next=19;break;case 27:y.next=32;break;case 29:y.prev=29,y.t2=y.catch(17),p.e(y.t2);case 32:return y.prev=32,p.f(),y.finish(32);case 35:y.next=41;break;case 37:return y.next=39,eg(h,t[h],n);case 39:(R=y.sent)&&d.push(R);case 41:y.next=13;break;case 43:return y.abrupt("return",{type:"group",top:i-s,left:o-a,width:c-u,height:l-f,elements:d});case 44:case"end":return y.stop()}},e,null,[[17,29,32,35]])})),E3.apply(this,arguments)}function DC(e,t,n){var r,o,i=Ye(e,["p:nvSpPr","p:cNvPr","attrs","id"]),a=Ye(e,["p:nvSpPr","p:cNvPr","attrs","name"]),s=Ye(e,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),c=Ye(e,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]);return c?(r=t.slideLayoutTables.typeTable[c],o=t.slideMasterTables.typeTable[c]):s&&(r=t.slideLayoutTables.idxTable[s],o=t.slideMasterTables.idxTable[s]),c||Ye(e,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"&&(c="text"),c||(c=Ye(r,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),c||(c=Ye(o,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),c||(c=n==="diagramBg"?"diagram":"obj"),KC(e,r,o,i,a,s,c,t)}function one(e,t){return KC(e,void 0,void 0,e["p:nvCxnSpPr"]["p:cNvPr"].attrs.id,e["p:nvCxnSpPr"]["p:cNvPr"].attrs.name,e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]===void 0?void 0:e["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.idx,e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]===void 0?void 0:e["p:nvSpPr"]["p:nvPr"]["p:ph"].attrs.type,t)}function KC(e,t,n,r,o,i,a,s){var c,l=["p:spPr","a:xfrm"],u=Ye(e,l),f=Ye(t,l),d=Ye(n,l),h=Ye(e,["p:spPr","a:prstGeom","attrs","prst"]),p=Ye(e,["p:spPr","a:custGeom"]),m=Vp(u,f,d,wn),A=m.top,x=m.left,R=Up(u,f,d,wn),y=R.width,g=R.height,S=Ye(u,["attrs","flipV"])==="1",O=Ye(u,["attrs","flipH"])==="1",T=qv(Ye(u,["attrs","rot"])),M=Ye(e,["p:txXfrm"]);if(M){var L=Ye(M,["attrs","rot"]);L&&(c=qv(L)+90)}else c=T;var k="";e["p:txBody"]&&(k=$0(e["p:txBody"],t,n,a,s,su,wn));var F,N=function(me,Ae,ye){var J=me["p:spPr"]["a:ln"],ae=parseInt(Ye(J,["attrs","w"]))/12700;isNaN(ae)&&(ae=J||Ae==="text"?0:1);var X=Ye(J,["a:solidFill","a:srgbClr","attrs","val"]);if(!X){var $=Ye(J,["a:solidFill","a:schemeClr"]);X=z0("a:"+Ye($,["attrs","val"]),ye)}if(!X){var ue=Ye(me,["p:style","a:lnRef","a:schemeClr"]);if(X=z0("a:"+Ye(ue,["attrs","val"]),ye)){var j=Ye(ue,["a:shade","attrs","val"]);if(j){j=parseInt(j)/1e5;var q=mt("#"+X).toHsl();X=mt({h:q.h,s:q.s,l:q.l*j,a:q.a}).toHex()}}}X=X?"#".concat(X):"#000";var re="solid",pe="0";switch(Ye(J,["a:prstDash","attrs","val"])){case"solid":re="solid",pe="0";break;case"dash":re="dashed",pe="5";break;case"dashDot":re="dashed",pe="5, 5, 1, 5";break;case"dot":re="dotted",pe="1, 5";break;case"lgDash":re="dashed",pe="10, 5";break;case"lgDashDotDot":re="dotted",pe="10, 5, 1, 5, 1, 5";break;case"sysDash":re="dashed",pe="5, 2";break;case"sysDashDot":re="dotted",pe="5, 2, 1, 5";break;case"sysDashDotDot":re="dotted",pe="5, 2, 1, 5, 1, 5";break;case"sysDot":re="dotted",pe="2, 5"}return{borderColor:X,borderWidth:ae,borderType:re,strokeDasharray:pe}}(e,a,s),E=N.borderColor,C=N.borderWidth,_=N.borderType,I=N.strokeDasharray,V=function(me,Ae,ye){if(Ye(me,["p:spPr","a:noFill"]))return Ae?"none":"";var J;if(J||(J=Ye(me,["p:spPr","a:solidFill","a:srgbClr","attrs","val"])),J||(J=z0("a:"+Ye(me,["p:spPr","a:solidFill","a:schemeClr","attrs","val"]),ye)),J||(J=z0("a:"+Ye(me,["p:style","a:fillRef","a:schemeClr","attrs","val"]),ye)),J){J="#".concat(J),parseInt(Ye(me,["p:spPr","a:solidFill","a:schemeClr","a:lumMod","attrs","val"]));var ae=parseInt(Ye(me,["p:spPr","a:solidFill","a:schemeClr","a:lumOff","attrs","val"]))/1e5;isNaN(ae)&&(ae=0);var X=mt(J).toHsl(),$=X.l*(1+ae);return mt({h:X.h,s:X.s,l:$,a:X.a}).toHexString()}return Ae?"none":J}(e,void 0,s)||"",B=Ye(e,["p:spPr","a:effectLst","a:outerShdw"]);B&&(F=UC(B,s,wn));var G=function(me,Ae,ye){var J=Ye(me,["p:txBody","a:bodyPr","attrs","anchor"]);return J||(J=Ye(Ae,["p:txBody","a:bodyPr","attrs","anchor"]))||(J=Ye(ye,["p:txBody","a:bodyPr","attrs","anchor"]))||(J="t"),J==="ctr"?"mid":J==="b"?"down":"up"}(e,t,n),oe=Ye(e,["p:txBody","a:bodyPr","attrs","vert"])==="eaVert",W={left:x,top:A,width:y,height:g,borderColor:E,borderWidth:C,borderType:_,borderStrokeDasharray:I,fillColor:V,content:k,isFlipV:S,isFlipH:O,rotate:T,vAlign:G,id:r,name:o,idx:i};if(F&&(W.shadow=F),p&&a!=="diagram"){var Z=Ye(u,["a:ext","attrs"]),K=parseInt(Z.cx)*wn,U=parseInt(Z.cy)*wn,z=function(me,Ae,ye){var J=Ye(me,["a:pathLst"]),ae=Ye(J,["a:path"]),X=1/parseInt(ae.attrs.w)*Ae,$=1/parseInt(ae.attrs.h)*ye,ue="",j=Ye(ae,["a:moveTo"]),q=ae["a:lnTo"],re=ae["a:cubicBezTo"],pe=ae["a:arcTo"],le=Ye(ae,["a:close"]);Array.isArray(j)||(j=[j]);var ce=[];if(j.length>0){if(Object.keys(j).forEach(function(At){var ot=j[At]["a:pt"];ot&&Object.keys(ot).forEach(function(ft){var ht=ot[ft],kt=ht.x,It=ht.y,An=ht.order;ce.push({type:"movto",x:kt,y:It,order:An})})}),q&&Object.keys(q).forEach(function(At){var ot=q[At]["a:pt"];ot&&Object.keys(ot).forEach(function(ft){var ht=ot[ft],kt=ht.x,It=ht.y,An=ht.order;ce.push({type:"lnto",x:kt,y:It,order:An})})}),re){var be=[];Array.isArray(re)||(re=[re]),Object.keys(re).forEach(function(At){be.push(re[At]["a:pt"])}),be.forEach(function(At){var ot=[];At.forEach(function(ht){var kt={x:ht.attrs.x,y:ht.attrs.y};ot.push(kt)});var ft=At[0].attrs.order;ce.push({type:"cubicBezTo",cubBzPt:ot,order:ft})})}if(pe){var Ce=pe.attrs,ge=Ce.order,He=Ce.hR,nt=Ce.wR,_e=Ce.stAng,Oe=Ce.swAng,Te=0,Ie=0,Je=Ye(pe,["a:pt","attrs"]);Je&&(Te=Je.x,Ie=Je.y),ce.push({type:"arcTo",hR:He,wR:nt,stAng:_e,swAng:Oe,shftX:Te,shftY:Ie,order:ge})}le&&(Array.isArray(le)||(le=[le]),Object.keys(le).forEach(function(){ce.push({type:"close",order:1/0})})),ce.sort(function(At,ot){return At.order-ot.order});for(var Ge=0;Ge{const e=ut(),{theme:t}=Xe(ut()),{addSlidesFromData:n,isEmptySlide:r}=Hg(),o=ve(!1),i=(c,l=!1)=>{const u=c[0],f=new FileReader;f.addEventListener("load",()=>{try{const d=JSON.parse(KN(f.result));l||r.value?e.setSlides(d):n(d)}catch{On.error("无法正确读取 / 解析该文件")}}),f.readAsText(u)},a=c=>{let l=[0,0],u=[0,0];return!c.isFlipV&&!c.isFlipH?(l=[0,0],u=[c.width,c.height]):c.isFlipV&&c.isFlipH?(l=[c.width,c.height],u=[0,0]):c.isFlipV&&!c.isFlipH?(l=[0,c.height],u=[c.width,0]):(l=[c.width,0],u=[0,c.height]),{type:"line",id:xn(10),width:c.borderWidth||1,left:c.left,top:c.top,start:l,end:u,style:c.borderType==="solid"?"solid":"dashed",color:c.borderColor,points:["",c.shapType==="straightConnector1"?"arrow":""]}};return{importSpecificFile:i,importPPTXFile:c=>{const l=c[0];if(!l)return;o.value=!0;const u=[];for(const d of Pb)u.push(...d.children);const f=new FileReader;f.onload=async d=>{const h=await qte(d.target.result,{slideFactor:8202099737532808e-20,fontsizeFactor:1.0204081632653061}),p=h.size.width,m=Ht/p,A=[];for(const x of h.slides){const{type:R,value:y}=x.fill;let g;R==="image"?g={type:"image",image:y.picBase64,imageSize:"cover"}:R==="gradient"?g={type:"gradient",gradientType:"linear",gradientColor:[y.colors[0].color,y.colors[y.colors.length-1].color],gradientRotate:y.rot}:g={type:"solid",color:y};const S={id:xn(10),elements:[],background:g},O=T=>{for(const M of T)if(M.width=M.width*m,M.height=M.height*m,M.left=M.left*m,M.top=M.top*m,M.type==="text"){const L={type:"text",id:xn(10),width:M.width,height:M.height,left:M.left,top:M.top,rotate:M.rotate,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,content:M.content,lineHeight:1,outline:{color:M.borderColor,width:M.borderWidth,style:M.borderType==="solid"?"solid":"dashed"},fill:M.fillColor,vertical:M.isVertical};M.shadow&&(L.shadow=M.shadow),S.elements.push(L)}else if(M.type==="image")S.elements.push({type:"image",id:xn(10),src:M.src,width:M.width,height:M.height,left:M.left,top:M.top,fixedRatio:!0,rotate:M.rotate});else if(M.type==="audio")S.elements.push({type:"audio",id:xn(10),src:M.blob,width:M.width,height:M.height,left:M.left,top:M.top,rotate:0,fixedRatio:!1,color:t.value.themeColor,loop:!1,autoplay:!1});else if(M.type==="video")S.elements.push({type:"video",id:xn(10),src:M.blob||M.src,width:M.width,height:M.height,left:M.left,top:M.top,rotate:0,autoplay:!1});else if(M.type==="shape")if(M.shapType==="line"||/Connector/.test(M.shapType)){const L=a(M);S.elements.push(L)}else{const L=u.find(N=>N.pptxShapeType===M.shapType),k={mid:"middle",down:"bottom",up:"top"},F={type:"shape",id:xn(10),width:M.width,height:M.height,left:M.left,top:M.top,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:M.fillColor||"none",fixedRatio:!1,rotate:M.rotate,outline:{color:M.borderColor,width:M.borderWidth,style:M.borderType==="solid"?"solid":"dashed"},text:{content:M.content,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,align:k[M.vAlign]||"middle"},flipH:M.isFlipH,flipV:M.isFlipV};if(M.shadow&&(F.shadow=M.shadow),L&&(F.path=L.path,F.viewBox=L.viewBox,L.pathFormula)){F.pathFormula=L.pathFormula,F.viewBox=[M.width,M.height];const N=ju[L.pathFormula];"editable"in N?(F.path=N.formula(M.width,M.height,N.defaultValue),F.keypoint=N.defaultValue):F.path=N.formula(M.width,M.height)}M.shapType==="custom"&&(F.special=!0,F.path=M.path,F.viewBox=[M.width,M.height]),S.elements.push(F)}else if(M.type==="table"){const L=M.data.length,k=M.data[0].length,F={fontname:t.value.fontName,color:t.value.fontColor},N=[];for(let C=0;C_+""),k=["系列1"],F=[C[1]]}else{const C=M.data;L=Object.values(C[0].xlabels),k=C.map(_=>_.key),F=C.map(_=>_.values.map(I=>I.y))}const N={};let E="bar";switch(M.chartType){case"barChart":case"bar3DChart":E="bar",M.barDir==="bar"&&(N.horizontalBars=!0),(M.grouping==="stacked"||M.grouping==="percentStacked")&&(N.stackBars=!0);break;case"lineChart":case"line3DChart":case"areaChart":case"area3DChart":case"scatterChart":case"bubbleChart":E="line",(M.chartType==="areaChart"||M.chartType==="area3DChart")&&(N.showArea=!0),(M.chartType==="scatterChart"||M.chartType==="bubbleChart")&&(N.showLine=!1);break;case"pieChart":case"pie3DChart":case"doughnutChart":E="pie",M.chartType==="doughnutChart"&&(N.donut=!0);break}S.elements.push({type:"chart",id:xn(10),chartType:E,width:M.width,height:M.height,left:M.left,top:M.top,rotate:0,themeColor:[t.value.themeColor],gridColor:t.value.fontColor,data:{labels:L,legends:k,series:F},options:N})}else if(M.type==="group"||M.type==="diagram"){const L=M.elements.map(k=>({...k,left:k.left+M.left,top:k.top+M.top}));O(L)}};O(x.elements),A.push(S)}r.value?e.setSlides(A):n(A),o.value=!1},f.readAsArrayBuffer(l)},exporting:o}},fne={class:"hotkey-doc"},dne={class:"title"},hne={class:"label"},pne={class:"value"},mne=Fe({__name:"HotkeyDoc",setup(e){return(t,n)=>(Q(),ee("div",fne,[(Q(!0),ee(We,null,lt(H(az),r=>(Q(),ee(We,{key:r.type},[Y("div",dne,St(r.type),1),(Q(!0),ee(We,null,lt(r.children,o=>(Q(),ee("div",{class:"hotkey-item",key:o.label},[Y("div",hne,St(o.label),1),Y("div",pne,St(o.value),1)]))),128))],64))),128))]))}}),vne=Ee(mne,[["__scopeId","data-v-0762be00"]]),gne=["accept"],Ane=Fe({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(e,{emit:t}){const n=t,r=ve(),o=()=>{r.value&&(r.value.value="",r.value.click())},i=a=>{const s=a.target.files;s&&n("change",s)};return(a,s)=>(Q(),ee("div",{class:"file-input",onClick:s[1]||(s[1]=c=>o())},[ur(a.$slots,"default",{},void 0,!0),Y("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:r,accept:a.accept,onChange:s[0]||(s[0]=c=>i(c))},null,40,gne)]))}}),Wu=Ee(Ane,[["__scopeId","data-v-1bd53d05"]]),Rne=e=>(on("data-v-9856918a"),e=e(),an(),e),yne={key:0,class:"fullscreen-spin"},xne={class:"spin"},bne=Rne(()=>Y("div",{class:"spinner"},null,-1)),Sne={class:"text"},Mne=Fe({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},tip:{default:""}},setup(e){return(t,n)=>t.loading?(Q(),ee("div",yne,[Y("div",xne,[bne,Y("div",Sne,St(t.tip),1)])])):Ze("",!0)}}),zb=Ee(Mne,[["__scopeId","data-v-9856918a"]]),wne={class:"header"},Lne=Fe({__name:"Drawer",props:{visible:{type:Boolean},width:{default:320},contentStyle:{},placement:{default:"right"}},emits:["update:visible"],setup(e,{emit:t}){const n=e,r=t,o=ve(!1),i=Se(()=>({width:n.width+"px",...n.contentStyle||{}}));return(a,s)=>{const c=xe("IconClose");return Q(),Le(eb,{to:"body"},[w(Nu,{name:`drawer-slide-${a.placement}`,onAfterLeave:s[1]||(s[1]=l=>o.value=!1),onBeforeEnter:s[2]||(s[2]=l=>o.value=!0)},{default:ne(()=>[Qe(Y("div",{class:qe(["drawer",a.placement]),style:we({width:n.width+"px"})},[Y("div",wne,[ur(a.$slots,"title",{},void 0,!0),Y("span",{class:"close-btn",onClick:s[0]||(s[0]=l=>r("update:visible",!1))},[w(c)])]),o.value?(Q(),ee("div",{key:0,class:"content",style:we(i.value)},[ur(a.$slots,"default",{},void 0,!0)],4)):Ze("",!0)],6),[[al,a.visible]])]),_:3},8,["name"])])}}}),One=Ee(Lne,[["__scopeId","data-v-46f39759"]]),Tne={class:"prefix"},kne=["disabled","value","placeholder"],Pne={class:"suffix"},Nne=Fe({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{expose:t,emit:n}){const r=n,o=ve(!1),i=u=>{r("update:value",u.target.value)},a=u=>{o.value=!1,r("blur",u)},s=u=>{o.value=!0,r("focus",u)},c=ve();return t({focus:()=>{c.value&&c.value.focus()}}),(u,f)=>(Q(),ee("div",{class:qe(["input",{disabled:u.disabled,focused:o.value}])},[Y("span",Tne,[ur(u.$slots,"prefix",{},void 0,!0)]),Y("input",{type:"text",ref_key:"inputRef",ref:c,disabled:u.disabled,value:u.value,placeholder:u.placeholder,onInput:f[0]||(f[0]=d=>i(d)),onFocus:f[1]||(f[1]=d=>s(d)),onBlur:f[2]||(f[2]=d=>a(d)),onChange:f[3]||(f[3]=d=>r("change",d)),onKeydown:f[4]||(f[4]=Ac(d=>r("enter",d),["enter"]))},null,40,kne),Y("span",Pne,[ur(u.$slots,"suffix",{},void 0,!0)])],2))}}),Vu=Ee(Nne,[["__scopeId","data-v-08dd2583"]]);var ti="top",na="bottom",ra="right",ni="left",$b="auto",Yp=[ti,na,ra,ni],Nd="start",ip="end",Cne="clippingParents",HC="viewport",R0="popper",Ine="reference",RO=Yp.reduce(function(e,t){return e.concat([t+"-"+Nd,t+"-"+ip])},[]),GC=[].concat(Yp,[$b]).reduce(function(e,t){return e.concat([t,t+"-"+Nd,t+"-"+ip])},[]),Fne="beforeRead",_ne="read",Xne="afterRead",Ene="beforeMain",Wne="main",Vne="afterMain",Une="beforeWrite",Yne="write",Qne="afterWrite",Zne=[Fne,_ne,Xne,Ene,Wne,Vne,Une,Yne,Qne];function vs(e){return e?(e.nodeName||"").toLowerCase():null}function Ii(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Uu(e){var t=Ii(e).Element;return e instanceof t||e instanceof Element}function ji(e){var t=Ii(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function jb(e){if(typeof ShadowRoot>"u")return!1;var t=Ii(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Bne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!ji(i)||!vs(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function Dne(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(c,l){return c[l]="",c},{});!ji(o)||!vs(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const JC={name:"applyStyles",enabled:!0,phase:"write",fn:Bne,effect:Dne,requires:["computeStyles"]};function hs(e){return e.split("-")[0]}var bu=Math.max,tg=Math.min,Cd=Math.round;function Y3(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function zC(){return!/^((?!chrome|android).)*safari/i.test(Y3())}function Id(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ji(e)&&(o=e.offsetWidth>0&&Cd(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Cd(r.height)/e.offsetHeight||1);var a=Uu(e)?Ii(e):window,s=a.visualViewport,c=!zC()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/o,u=(r.top+(c&&s?s.offsetTop:0))/i,f=r.width/o,d=r.height/i;return{width:f,height:d,top:u,right:l+f,bottom:u+d,left:l,x:l,y:u}}function qb(e){var t=Id(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function $C(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&jb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ll(e){return Ii(e).getComputedStyle(e)}function Kne(e){return["table","td","th"].indexOf(vs(e))>=0}function Lc(e){return((Uu(e)?e.ownerDocument:e.document)||window.document).documentElement}function o2(e){return vs(e)==="html"?e:e.assignedSlot||e.parentNode||(jb(e)?e.host:null)||Lc(e)}function yO(e){return!ji(e)||ll(e).position==="fixed"?null:e.offsetParent}function Hne(e){var t=/firefox/i.test(Y3()),n=/Trident/i.test(Y3());if(n&&ji(e)){var r=ll(e);if(r.position==="fixed")return null}var o=o2(e);for(jb(o)&&(o=o.host);ji(o)&&["html","body"].indexOf(vs(o))<0;){var i=ll(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Qp(e){for(var t=Ii(e),n=yO(e);n&&Kne(n)&&ll(n).position==="static";)n=yO(n);return n&&(vs(n)==="html"||vs(n)==="body"&&ll(n).position==="static")?t:n||Hne(e)||t}function e5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lh(e,t,n){return bu(e,tg(t,n))}function Gne(e,t,n){var r=Lh(e,t,n);return r>n?n:r}function jC(){return{top:0,right:0,bottom:0,left:0}}function qC(e){return Object.assign({},jC(),e)}function eI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Jne=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,qC(typeof t!="number"?t:eI(t,Yp))};function zne(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=hs(n.placement),c=e5(s),l=[ni,ra].indexOf(s)>=0,u=l?"height":"width";if(!(!i||!a)){var f=Jne(o.padding,n),d=qb(i),h=c==="y"?ti:ni,p=c==="y"?na:ra,m=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],A=a[c]-n.rects.reference[c],x=Qp(i),R=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,y=m/2-A/2,g=f[h],S=R-d[u]-f[p],O=R/2-d[u]/2+y,T=Lh(g,O,S),M=c;n.modifiersData[r]=(t={},t[M]=T,t.centerOffset=T-O,t)}}function $ne(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||$C(t.elements.popper,o)&&(t.elements.arrow=o))}const jne={name:"arrow",enabled:!0,phase:"main",fn:zne,effect:$ne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fd(e){return e.split("-")[1]}var qne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ere(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cd(n*o)/o||0,y:Cd(r*o)/o||0}}function xO(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,p=a.y,m=p===void 0?0:p,A=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=A.x,m=A.y;var x=a.hasOwnProperty("x"),R=a.hasOwnProperty("y"),y=ni,g=ti,S=window;if(l){var O=Qp(n),T="clientHeight",M="clientWidth";if(O===Ii(n)&&(O=Lc(n),ll(O).position!=="static"&&s==="absolute"&&(T="scrollHeight",M="scrollWidth")),O=O,o===ti||(o===ni||o===ra)&&i===ip){g=na;var L=f&&O===S&&S.visualViewport?S.visualViewport.height:O[T];m-=L-r.height,m*=c?1:-1}if(o===ni||(o===ti||o===na)&&i===ip){y=ra;var k=f&&O===S&&S.visualViewport?S.visualViewport.width:O[M];h-=k-r.width,h*=c?1:-1}}var F=Object.assign({position:s},l&&qne),N=u===!0?ere({x:h,y:m},Ii(n)):{x:h,y:m};if(h=N.x,m=N.y,c){var E;return Object.assign({},F,(E={},E[g]=R?"0":"",E[y]=x?"0":"",E.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",E))}return Object.assign({},F,(t={},t[g]=R?m+"px":"",t[y]=x?h+"px":"",t.transform="",t))}function tre(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:hs(t.placement),variation:Fd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xO(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xO(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nre={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tre,data:{}};var Rm={passive:!0};function rre(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,c=Ii(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(u){u.addEventListener("scroll",n.update,Rm)}),s&&c.addEventListener("resize",n.update,Rm),function(){i&&l.forEach(function(u){u.removeEventListener("scroll",n.update,Rm)}),s&&c.removeEventListener("resize",n.update,Rm)}}const ore={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rre,data:{}};var ire={left:"right",right:"left",bottom:"top",top:"bottom"};function ev(e){return e.replace(/left|right|bottom|top/g,function(t){return ire[t]})}var are={start:"end",end:"start"};function bO(e){return e.replace(/start|end/g,function(t){return are[t]})}function t5(e){var t=Ii(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function n5(e){return Id(Lc(e)).left+t5(e).scrollLeft}function sre(e,t){var n=Ii(e),r=Lc(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=zC();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+n5(e),y:c}}function lre(e){var t,n=Lc(e),r=t5(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=bu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=bu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+n5(e),c=-r.scrollTop;return ll(o||n).direction==="rtl"&&(s+=bu(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function r5(e){var t=ll(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function tI(e){return["html","body","#document"].indexOf(vs(e))>=0?e.ownerDocument.body:ji(e)&&r5(e)?e:tI(o2(e))}function Oh(e,t){var n;t===void 0&&(t=[]);var r=tI(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ii(r),a=o?[i].concat(i.visualViewport||[],r5(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Oh(o2(a)))}function Q3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cre(e,t){var n=Id(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function SO(e,t,n){return t===HC?Q3(sre(e,n)):Uu(t)?cre(t,n):Q3(lre(Lc(e)))}function ure(e){var t=Oh(o2(e)),n=["absolute","fixed"].indexOf(ll(e).position)>=0,r=n&&ji(e)?Qp(e):e;return Uu(r)?t.filter(function(o){return Uu(o)&&$C(o,r)&&vs(o)!=="body"}):[]}function fre(e,t,n,r){var o=t==="clippingParents"?ure(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(c,l){var u=SO(e,l,r);return c.top=bu(u.top,c.top),c.right=tg(u.right,c.right),c.bottom=tg(u.bottom,c.bottom),c.left=bu(u.left,c.left),c},SO(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function nI(e){var t=e.reference,n=e.element,r=e.placement,o=r?hs(r):null,i=r?Fd(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(o){case ti:c={x:a,y:t.y-n.height};break;case na:c={x:a,y:t.y+t.height};break;case ra:c={x:t.x+t.width,y:s};break;case ni:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?e5(o):null;if(l!=null){var u=l==="y"?"height":"width";switch(i){case Nd:c[l]=c[l]-(t[u]/2-n[u]/2);break;case ip:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function ap(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?Cne:s,l=n.rootBoundary,u=l===void 0?HC:l,f=n.elementContext,d=f===void 0?R0:f,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,A=m===void 0?0:m,x=qC(typeof A!="number"?A:eI(A,Yp)),R=d===R0?Ine:R0,y=e.rects.popper,g=e.elements[p?R:d],S=fre(Uu(g)?g:g.contextElement||Lc(e.elements.popper),c,u,a),O=Id(e.elements.reference),T=nI({reference:O,element:y,strategy:"absolute",placement:o}),M=Q3(Object.assign({},y,T)),L=d===R0?M:O,k={top:S.top-L.top+x.top,bottom:L.bottom-S.bottom+x.bottom,left:S.left-L.left+x.left,right:L.right-S.right+x.right},F=e.modifiersData.offset;if(d===R0&&F){var N=F[o];Object.keys(k).forEach(function(E){var C=[ra,na].indexOf(E)>=0?1:-1,_=[ti,na].indexOf(E)>=0?"y":"x";k[E]+=N[_]*C})}return k}function dre(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?GC:c,u=Fd(r),f=u?s?RO:RO.filter(function(p){return Fd(p)===u}):Yp,d=f.filter(function(p){return l.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,m){return p[m]=ap(e,{placement:m,boundary:o,rootBoundary:i,padding:a})[hs(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function hre(e){if(hs(e)===$b)return[];var t=ev(e);return[bO(e),t,bO(t)]}function pre(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,A=t.options.placement,x=hs(A),R=x===A,y=c||(R||!p?[ev(A)]:hre(A)),g=[A].concat(y).reduce(function(U,z){return U.concat(hs(z)===$b?dre(t,{placement:z,boundary:u,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:m}):z)},[]),S=t.rects.reference,O=t.rects.popper,T=new Map,M=!0,L=g[0],k=0;k=0,_=C?"width":"height",I=ap(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),V=C?E?ra:ni:E?na:ti;S[_]>O[_]&&(V=ev(V));var B=ev(V),G=[];if(i&&G.push(I[N]<=0),s&&G.push(I[V]<=0,I[B]<=0),G.every(function(U){return U})){L=F,M=!1;break}T.set(F,G)}if(M)for(var oe=p?3:1,W=function(z){var fe=g.find(function(se){var ie=T.get(se);if(ie)return ie.slice(0,z).every(function(me){return me})});if(fe)return L=fe,"break"},Z=oe;Z>0;Z--){var K=W(Z);if(K==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const mre={name:"flip",enabled:!0,phase:"main",fn:pre,requiresIfExists:["offset"],data:{_skip:!1}};function MO(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wO(e){return[ti,ra,na,ni].some(function(t){return e[t]>=0})}function vre(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ap(t,{elementContext:"reference"}),s=ap(t,{altBoundary:!0}),c=MO(a,r),l=MO(s,o,i),u=wO(c),f=wO(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const gre={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vre};function Are(e,t,n){var r=hs(e),o=[ni,ti].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ni,ra].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Rre(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=GC.reduce(function(u,f){return u[f]=Are(f,t.rects,i),u},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const yre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rre};function xre(e){var t=e.state,n=e.name;t.modifiersData[n]=nI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bre={name:"popperOffsets",enabled:!0,phase:"read",fn:xre,data:{}};function Sre(e){return e==="x"?"y":"x"}function Mre(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,m=p===void 0?0:p,A=ap(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),x=hs(t.placement),R=Fd(t.placement),y=!R,g=e5(x),S=Sre(g),O=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,L=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,k=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(O){if(i){var E,C=g==="y"?ti:ni,_=g==="y"?na:ra,I=g==="y"?"height":"width",V=O[g],B=V+A[C],G=V-A[_],oe=h?-M[I]/2:0,W=R===Nd?T[I]:M[I],Z=R===Nd?-M[I]:-T[I],K=t.elements.arrow,U=h&&K?qb(K):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jC(),fe=z[C],se=z[_],ie=Lh(0,T[I],U[I]),me=y?T[I]/2-oe-ie-fe-k.mainAxis:W-ie-fe-k.mainAxis,Ae=y?-T[I]/2+oe+ie+se+k.mainAxis:Z+ie+se+k.mainAxis,ye=t.elements.arrow&&Qp(t.elements.arrow),J=ye?g==="y"?ye.clientTop||0:ye.clientLeft||0:0,ae=(E=F==null?void 0:F[g])!=null?E:0,X=V+me-ae-J,$=V+Ae-ae,ue=Lh(h?tg(B,X):B,V,h?bu(G,$):G);O[g]=ue,N[g]=ue-V}if(s){var j,q=g==="x"?ti:ni,re=g==="x"?na:ra,pe=O[S],le=S==="y"?"height":"width",ce=pe+A[q],be=pe-A[re],Ce=[ti,ni].indexOf(x)!==-1,ge=(j=F==null?void 0:F[S])!=null?j:0,He=Ce?ce:pe-T[le]-M[le]-ge+k.altAxis,nt=Ce?pe+T[le]+M[le]-ge-k.altAxis:be,_e=h&&Ce?Gne(He,pe,nt):Lh(h?He:ce,pe,h?nt:be);O[S]=_e,N[S]=_e-pe}t.modifiersData[r]=N}}const wre={name:"preventOverflow",enabled:!0,phase:"main",fn:Mre,requiresIfExists:["offset"]};function Lre(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ore(e){return e===Ii(e)||!ji(e)?t5(e):Lre(e)}function Tre(e){var t=e.getBoundingClientRect(),n=Cd(t.width)/e.offsetWidth||1,r=Cd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kre(e,t,n){n===void 0&&(n=!1);var r=ji(t),o=ji(t)&&Tre(t),i=Lc(t),a=Id(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((vs(t)!=="body"||r5(i))&&(s=Ore(t)),ji(t)?(c=Id(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=n5(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Pre(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Nre(e){var t=Pre(e);return Zne.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Cre(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ire(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var LO={placement:"bottom",modifiers:[],strategy:"absolute"};function OO(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function sI(e,t){return typeof e=="function"?e.apply(void 0,t):e}function TO(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Vre(e){return e.split(/\s+/).filter(Boolean)}function Df(e){return[].concat(e)}function kO(e,t){e.indexOf(t)===-1&&e.push(t)}function Ure(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Yre(e){return e.split("-")[0]}function ng(e){return[].slice.call(e)}function PO(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Th(){return document.createElement("div")}function i2(e){return["Element","Fragment"].some(function(t){return o5(e,t)})}function Qre(e){return o5(e,"NodeList")}function Zre(e){return o5(e,"MouseEvent")}function Bre(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Dre(e){return i2(e)?[e]:Qre(e)?ng(e):Array.isArray(e)?e:ng(document.querySelectorAll(e))}function Xy(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function NO(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Kre(e){var t,n=Df(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Hre(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var i=o.popperRect,a=o.popperState,s=o.props,c=s.interactiveBorder,l=Yre(a.placement),u=a.modifiersData.offset;if(!u)return!0;var f=l==="bottom"?u.top.y:0,d=l==="top"?u.bottom.y:0,h=l==="right"?u.left.x:0,p=l==="left"?u.right.x:0,m=i.top-r+f>c,A=r-i.bottom-d>c,x=i.left-n+h>c,R=n-i.right-p>c;return m||A||x||R})}function Ey(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function CO(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var qa={isTouch:!1},IO=0;function Gre(){qa.isTouch||(qa.isTouch=!0,window.performance&&document.addEventListener("mousemove",lI))}function lI(){var e=performance.now();e-IO<20&&(qa.isTouch=!1,document.removeEventListener("mousemove",lI)),IO=e}function Jre(){var e=document.activeElement;if(Bre(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function zre(){document.addEventListener("touchstart",Gre,$c),window.addEventListener("blur",Jre)}var $re=typeof window<"u"&&typeof document<"u",jre=$re?!!window.msCrypto:!1,qre={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},eoe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Na=Object.assign({appendTo:aI,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},qre,eoe),toe=Object.keys(Na),noe=function(t){var n=Object.keys(t);n.forEach(function(r){Na[r]=t[r]})};function cI(e){var t=e.plugins||[],n=t.reduce(function(r,o){var i=o.name,a=o.defaultValue;if(i){var s;r[i]=e[i]!==void 0?e[i]:(s=Na[i])!=null?s:a}return r},{});return Object.assign({},e,n)}function roe(e,t){var n=t?Object.keys(cI(Object.assign({},Na,{plugins:t}))):toe,r=n.reduce(function(o,i){var a=(e.getAttribute("data-tippy-"+i)||"").trim();if(!a)return o;if(i==="content")o[i]=a;else try{o[i]=JSON.parse(a)}catch{o[i]=a}return o},{});return r}function FO(e,t){var n=Object.assign({},t,{content:sI(t.content,[e])},t.ignoreAttributes?{}:roe(e,t.plugins));return n.aria=Object.assign({},Na.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var ooe=function(){return"innerHTML"};function Z3(e,t){e[ooe()]=t}function _O(e){var t=Th();return e===!0?t.className=oI:(t.className=iI,i2(e)?t.appendChild(e):Z3(t,e)),t}function XO(e,t){i2(t.content)?(Z3(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Z3(e,t.content):e.textContent=t.content)}function B3(e){var t=e.firstElementChild,n=ng(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(rI)}),arrow:n.find(function(r){return r.classList.contains(oI)||r.classList.contains(iI)}),backdrop:n.find(function(r){return r.classList.contains(Wre)})}}function uI(e){var t=Th(),n=Th();n.className=Ere,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Th();r.className=rI,r.setAttribute("data-state","hidden"),XO(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(i,a){var s=B3(t),c=s.box,l=s.content,u=s.arrow;a.theme?c.setAttribute("data-theme",a.theme):c.removeAttribute("data-theme"),typeof a.animation=="string"?c.setAttribute("data-animation",a.animation):c.removeAttribute("data-animation"),a.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?c.setAttribute("role",a.role):c.removeAttribute("role"),(i.content!==a.content||i.allowHTML!==a.allowHTML)&&XO(l,e.props),a.arrow?u?i.arrow!==a.arrow&&(c.removeChild(u),c.appendChild(_O(a.arrow))):c.appendChild(_O(a.arrow)):u&&c.removeChild(u)}return{popper:t,onUpdate:o}}uI.$$tippy=!0;var ioe=1,ym=[],Wy=[];function aoe(e,t){var n=FO(e,Object.assign({},Na,cI(PO(t)))),r,o,i,a=!1,s=!1,c=!1,l=!1,u,f,d,h=[],p=TO(X,n.interactiveDebounce),m,A=ioe++,x=null,R=Ure(n.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},g={id:A,reference:e,popper:Th(),popperInstance:x,props:n,state:y,plugins:R,clearDelayTimeouts:He,setProps:nt,setContent:_e,show:Oe,hide:Te,hideWithInteractivity:Ie,enable:Ce,disable:ge,unmount:Je,destroy:Ge};if(!n.render)return g;var S=n.render(g),O=S.popper,T=S.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+g.id,g.popper=O,e._tippy=g,O._tippy=g;var M=R.map(function(ke){return ke.fn(g)}),L=e.hasAttribute("aria-expanded");return ye(),oe(),V(),B("onCreate",[g]),n.showOnCreate&&ce(),O.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),O.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",p)}),g;function k(){var ke=g.props.touch;return Array.isArray(ke)?ke:[ke,0]}function F(){return k()[0]==="hold"}function N(){var ke;return!!((ke=g.props.render)!=null&&ke.$$tippy)}function E(){return m||e}function C(){var ke=E().parentNode;return ke?Kre(ke):document}function _(){return B3(O)}function I(ke){return g.state.isMounted&&!g.state.isVisible||qa.isTouch||u&&u.type==="focus"?0:_y(g.props.delay,ke?0:1,Na.delay)}function V(ke){ke===void 0&&(ke=!1),O.style.pointerEvents=g.props.interactive&&!ke?"":"none",O.style.zIndex=""+g.props.zIndex}function B(ke,Be,tt){if(tt===void 0&&(tt=!0),M.forEach(function(ot){ot[ke]&&ot[ke].apply(ot,Be)}),tt){var At;(At=g.props)[ke].apply(At,Be)}}function G(){var ke=g.props.aria;if(ke.content){var Be="aria-"+ke.content,tt=O.id,At=Df(g.props.triggerTarget||e);At.forEach(function(ot){var ft=ot.getAttribute(Be);if(g.state.isVisible)ot.setAttribute(Be,ft?ft+" "+tt:tt);else{var ht=ft&&ft.replace(tt,"").trim();ht?ot.setAttribute(Be,ht):ot.removeAttribute(Be)}})}}function oe(){if(!(L||!g.props.aria.expanded)){var ke=Df(g.props.triggerTarget||e);ke.forEach(function(Be){g.props.interactive?Be.setAttribute("aria-expanded",g.state.isVisible&&Be===E()?"true":"false"):Be.removeAttribute("aria-expanded")})}}function W(){C().removeEventListener("mousemove",p),ym=ym.filter(function(ke){return ke!==p})}function Z(ke){if(!(qa.isTouch&&(c||ke.type==="mousedown"))){var Be=ke.composedPath&&ke.composedPath()[0]||ke.target;if(!(g.props.interactive&&CO(O,Be))){if(Df(g.props.triggerTarget||e).some(function(tt){return CO(tt,Be)})){if(qa.isTouch||g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[g,ke]);g.props.hideOnClick===!0&&(g.clearDelayTimeouts(),g.hide(),s=!0,setTimeout(function(){s=!1}),g.state.isMounted||fe())}}}function K(){c=!0}function U(){c=!1}function z(){var ke=C();ke.addEventListener("mousedown",Z,!0),ke.addEventListener("touchend",Z,$c),ke.addEventListener("touchstart",U,$c),ke.addEventListener("touchmove",K,$c)}function fe(){var ke=C();ke.removeEventListener("mousedown",Z,!0),ke.removeEventListener("touchend",Z,$c),ke.removeEventListener("touchstart",U,$c),ke.removeEventListener("touchmove",K,$c)}function se(ke,Be){me(ke,function(){!g.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&Be()})}function ie(ke,Be){me(ke,Be)}function me(ke,Be){var tt=_().box;function At(ot){ot.target===tt&&(Ey(tt,"remove",At),Be())}if(ke===0)return Be();Ey(tt,"remove",f),Ey(tt,"add",At),f=At}function Ae(ke,Be,tt){tt===void 0&&(tt=!1);var At=Df(g.props.triggerTarget||e);At.forEach(function(ot){ot.addEventListener(ke,Be,tt),h.push({node:ot,eventType:ke,handler:Be,options:tt})})}function ye(){F()&&(Ae("touchstart",ae,{passive:!0}),Ae("touchend",$,{passive:!0})),Vre(g.props.trigger).forEach(function(ke){if(ke!=="manual")switch(Ae(ke,ae),ke){case"mouseenter":Ae("mouseleave",$);break;case"focus":Ae(jre?"focusout":"blur",ue);break;case"focusin":Ae("focusout",ue);break}})}function J(){h.forEach(function(ke){var Be=ke.node,tt=ke.eventType,At=ke.handler,ot=ke.options;Be.removeEventListener(tt,At,ot)}),h=[]}function ae(ke){var Be,tt=!1;if(!(!g.state.isEnabled||j(ke)||s)){var At=((Be=u)==null?void 0:Be.type)==="focus";u=ke,m=ke.currentTarget,oe(),!g.state.isVisible&&Zre(ke)&&ym.forEach(function(ot){return ot(ke)}),ke.type==="click"&&(g.props.trigger.indexOf("mouseenter")<0||a)&&g.props.hideOnClick!==!1&&g.state.isVisible?tt=!0:ce(ke),ke.type==="click"&&(a=!tt),tt&&!At&&be(ke)}}function X(ke){var Be=ke.target,tt=E().contains(Be)||O.contains(Be);if(!(ke.type==="mousemove"&&tt)){var At=le().concat(O).map(function(ot){var ft,ht=ot._tippy,kt=(ft=ht.popperInstance)==null?void 0:ft.state;return kt?{popperRect:ot.getBoundingClientRect(),popperState:kt,props:n}:null}).filter(Boolean);Hre(At,ke)&&(W(),be(ke))}}function $(ke){var Be=j(ke)||g.props.trigger.indexOf("click")>=0&&a;if(!Be){if(g.props.interactive){g.hideWithInteractivity(ke);return}be(ke)}}function ue(ke){g.props.trigger.indexOf("focusin")<0&&ke.target!==E()||g.props.interactive&&ke.relatedTarget&&O.contains(ke.relatedTarget)||be(ke)}function j(ke){return qa.isTouch?F()!==ke.type.indexOf("touch")>=0:!1}function q(){re();var ke=g.props,Be=ke.popperOptions,tt=ke.placement,At=ke.offset,ot=ke.getReferenceClientRect,ft=ke.moveTransition,ht=N()?B3(O).arrow:null,kt=ot?{getBoundingClientRect:ot,contextElement:ot.contextElement||E()}:e,It={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ea){var ao=Ea.state;if(N()){var sf=_(),Nc=sf.box;["placement","reference-hidden","escaped"].forEach(function(ws){ws==="placement"?Nc.setAttribute("data-placement",ao.placement):ao.attributes.popper["data-popper-"+ws]?Nc.setAttribute("data-"+ws,""):Nc.removeAttribute("data-"+ws)}),ao.attributes.popper={}}}},An=[{name:"offset",options:{offset:At}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ft}},It];N()&&ht&&An.push({name:"arrow",options:{element:ht,padding:3}}),An.push.apply(An,(Be==null?void 0:Be.modifiers)||[]),g.popperInstance=Xre(kt,O,Object.assign({},Be,{placement:tt,onFirstUpdate:d,modifiers:An}))}function re(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function pe(){var ke=g.props.appendTo,Be,tt=E();g.props.interactive&&ke===aI||ke==="parent"?Be=tt.parentNode:Be=sI(ke,[tt]),Be.contains(O)||Be.appendChild(O),g.state.isMounted=!0,q()}function le(){return ng(O.querySelectorAll("[data-tippy-root]"))}function ce(ke){g.clearDelayTimeouts(),ke&&B("onTrigger",[g,ke]),z();var Be=I(!0),tt=k(),At=tt[0],ot=tt[1];qa.isTouch&&At==="hold"&&ot&&(Be=ot),Be?r=setTimeout(function(){g.show()},Be):g.show()}function be(ke){if(g.clearDelayTimeouts(),B("onUntrigger",[g,ke]),!g.state.isVisible){fe();return}if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ke.type)>=0&&a)){var Be=I(!1);Be?o=setTimeout(function(){g.state.isVisible&&g.hide()},Be):i=requestAnimationFrame(function(){g.hide()})}}function Ce(){g.state.isEnabled=!0}function ge(){g.hide(),g.state.isEnabled=!1}function He(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function nt(ke){if(!g.state.isDestroyed){B("onBeforeUpdate",[g,ke]),J();var Be=g.props,tt=FO(e,Object.assign({},Be,PO(ke),{ignoreAttributes:!0}));g.props=tt,ye(),Be.interactiveDebounce!==tt.interactiveDebounce&&(W(),p=TO(X,tt.interactiveDebounce)),Be.triggerTarget&&!tt.triggerTarget?Df(Be.triggerTarget).forEach(function(At){At.removeAttribute("aria-expanded")}):tt.triggerTarget&&e.removeAttribute("aria-expanded"),oe(),V(),T&&T(Be,tt),g.popperInstance&&(q(),le().forEach(function(At){requestAnimationFrame(At._tippy.popperInstance.forceUpdate)})),B("onAfterUpdate",[g,ke])}}function _e(ke){g.setProps({content:ke})}function Oe(){var ke=g.state.isVisible,Be=g.state.isDestroyed,tt=!g.state.isEnabled,At=qa.isTouch&&!g.props.touch,ot=_y(g.props.duration,0,Na.duration);if(!(ke||Be||tt||At)&&!E().hasAttribute("disabled")&&(B("onShow",[g],!1),g.props.onShow(g)!==!1)){if(g.state.isVisible=!0,N()&&(O.style.visibility="visible"),V(),z(),g.state.isMounted||(O.style.transition="none"),N()){var ft=_(),ht=ft.box,kt=ft.content;Xy([ht,kt],0)}d=function(){var An;if(!(!g.state.isVisible||l)){if(l=!0,O.offsetHeight,O.style.transition=g.props.moveTransition,N()&&g.props.animation){var sa=_(),Ea=sa.box,ao=sa.content;Xy([Ea,ao],ot),NO([Ea,ao],"visible")}G(),oe(),kO(Wy,g),(An=g.popperInstance)==null||An.forceUpdate(),B("onMount",[g]),g.props.animation&&N()&&ie(ot,function(){g.state.isShown=!0,B("onShown",[g])})}},pe()}}function Te(){var ke=!g.state.isVisible,Be=g.state.isDestroyed,tt=!g.state.isEnabled,At=_y(g.props.duration,1,Na.duration);if(!(ke||Be||tt)&&(B("onHide",[g],!1),g.props.onHide(g)!==!1)){if(g.state.isVisible=!1,g.state.isShown=!1,l=!1,a=!1,N()&&(O.style.visibility="hidden"),W(),fe(),V(!0),N()){var ot=_(),ft=ot.box,ht=ot.content;g.props.animation&&(Xy([ft,ht],At),NO([ft,ht],"hidden"))}G(),oe(),g.props.animation?N()&&se(At,g.unmount):g.unmount()}}function Ie(ke){C().addEventListener("mousemove",p),kO(ym,p),p(ke)}function Je(){g.state.isVisible&&g.hide(),g.state.isMounted&&(re(),le().forEach(function(ke){ke._tippy.unmount()}),O.parentNode&&O.parentNode.removeChild(O),Wy=Wy.filter(function(ke){return ke!==g}),g.state.isMounted=!1,B("onHidden",[g]))}function Ge(){g.state.isDestroyed||(g.clearDelayTimeouts(),g.unmount(),J(),delete e._tippy,g.state.isDestroyed=!0,B("onDestroy",[g]))}}function nf(e,t){t===void 0&&(t={});var n=Na.plugins.concat(t.plugins||[]);zre();var r=Object.assign({},t,{plugins:n}),o=Dre(e),i=o.reduce(function(a,s){var c=s&&aoe(s,r);return c&&a.push(c),a},[]);return i2(e)?i[0]:i}nf.defaultProps=Na;nf.setDefaultProps=noe;nf.currentInput=qa;Object.assign({},JC,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});nf.setDefaultProps({render:uI});const soe=Fe({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=ve(),i=ve(),a=ve(),s=ve(!1),c=Se(()=>n.contentStyle||{});return Tt(()=>n.value,()=>{o.value&&(n.value?o.value.show():o.value.hide())}),Gt(()=>{o.value=nf(i.value,{content:a.value,allowHTML:!0,trigger:n.trigger,placement:n.placement,interactive:!0,appendTo:n.appendTo||document.body,maxWidth:"none",offset:[0,8],duration:200,animation:"scale",theme:"popover",onShow(){s.value=!0},onShown(){n.value||r("update:value",!0)},onHidden(){n.value&&r("update:value",!1),s.value=!1}})}),(l,u)=>(Q(),ee("div",{class:qe(["popover",{center:l.center}]),ref_key:"triggerRef",ref:i},[Y("div",{class:"popover-content",style:we(c.value),ref_key:"contentRef",ref:a},[s.value?ur(l.$slots,"content",{key:0},void 0,!0):Ze("",!0)],4),ur(l.$slots,"default",{},void 0,!0)],2))}}),Pt=Ee(soe,[["__scopeId","data-v-f1b06373"]]),loe=Fe({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=t;return(r,o)=>(Q(),ee("div",{class:qe(["popover-menu-item",{center:r.center}]),onClick:o[0]||(o[0]=i=>n("click"))},[ur(r.$slots,"default",{},void 0,!0)],2))}}),Go=Ee(loe,[["__scopeId","data-v-1f176c16"]]),coe={class:"editor-header"},uoe={class:"left"},foe={class:"menu-item"},doe={class:"title"},hoe=["title"],poe={class:"right"},moe={class:"group-menu-item"},voe={class:"arrow-btn"},goe={class:"github-link",href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},Aoe={class:"menu-item"},Roe=Fe({__name:"index",setup(e){const t=dt(),n=ut(),{title:r}=Xe(n),{enterScreening:o,enterScreeningFromStart:i}=wc(),{importSpecificFile:a,importPPTXFile:s,exporting:c}=une(),{resetSlides:l}=Hd(),u=ve(!1),f=ve(!1),d=ve(!1),h=ve(),p=ve(""),m=()=>{p.value=r.value,d.value=!0,Ur(()=>{var y;return(y=h.value)==null?void 0:y.focus()})},A=()=>{n.setTitle(p.value),d.value=!1},x=y=>{window.open(y),u.value=!1},R=y=>{t.setDialogForExport(y),u.value=!1};return(y,g)=>{const S=xe("IconHamburgerButton"),O=xe("IconPpt"),T=xe("IconDown"),M=xe("IconDownload"),L=xe("IconGithub"),k=Tn("tooltip");return Q(),ee("div",coe,[Y("div",uoe,[w(Pt,{trigger:"click",placement:"bottom-start",value:u.value,"onUpdate:value":g[7]||(g[7]=F=>u.value=F)},{content:ne(()=>[w(Wu,{accept:".pptist",onChange:g[0]||(g[0]=F=>{H(a)(F),u.value=!1})},{default:ne(()=>[w(Go,null,{default:ne(()=>[Ve("导入 pptist 文件")]),_:1})]),_:1}),w(Wu,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:g[1]||(g[1]=F=>{H(s)(F),u.value=!1})},{default:ne(()=>[w(Go,null,{default:ne(()=>[Ve("导入 pptx 文件(测试版)")]),_:1})]),_:1}),w(Go,{onClick:g[2]||(g[2]=F=>R("pptx"))},{default:ne(()=>[Ve("导出文件")]),_:1}),w(Go,{onClick:g[3]||(g[3]=F=>{H(l)(),u.value=!1})},{default:ne(()=>[Ve("重置幻灯片")]),_:1}),w(Go,{onClick:g[4]||(g[4]=F=>x("https://github.com/pipipi-pikachu/PPTist/issues"))},{default:ne(()=>[Ve("意见反馈")]),_:1}),w(Go,{onClick:g[5]||(g[5]=F=>x("https://github.com/pipipi-pikachu/PPTist/blob/master/doc/Q&A.md"))},{default:ne(()=>[Ve("常见问题")]),_:1}),w(Go,{onClick:g[6]||(g[6]=F=>{u.value=!1,f.value=!0})},{default:ne(()=>[Ve("快捷键")]),_:1})]),default:ne(()=>[Y("div",foe,[w(S,{class:"icon"})])]),_:1},8,["value"]),Y("div",doe,[d.value?(Q(),Le(Vu,{key:0,class:"title-input",ref_key:"titleInputRef",ref:h,value:p.value,"onUpdate:value":g[8]||(g[8]=F=>p.value=F),onBlur:g[9]||(g[9]=F=>A())},null,8,["value"])):(Q(),ee("div",{key:1,class:"title-text",onClick:g[10]||(g[10]=F=>m()),title:H(r)},St(H(r)),9,hoe))])]),Y("div",poe,[Y("div",moe,[Qe((Q(),ee("div",{class:"menu-item",onClick:g[11]||(g[11]=F=>H(o)())},[w(O,{class:"icon"})])),[[k,"幻灯片放映"]]),w(Pt,{trigger:"click",center:""},{content:ne(()=>[w(Go,{onClick:g[12]||(g[12]=F=>H(i)())},{default:ne(()=>[Ve("从头开始")]),_:1}),w(Go,{onClick:g[13]||(g[13]=F=>H(o)())},{default:ne(()=>[Ve("从当前页开始")]),_:1})]),default:ne(()=>[Y("div",voe,[w(T,{class:"arrow"})])]),_:1})]),Qe((Q(),ee("div",{class:"menu-item",onClick:g[14]||(g[14]=F=>R("pptx"))},[w(M,{class:"icon"})])),[[k,"导出"]]),Qe((Q(),ee("a",goe,[Y("div",Aoe,[w(L,{class:"icon"})])])),[[k,"Copyright © 2020-PRESENT pipipi-pikachu"]])]),w(One,{width:320,visible:f.value,"onUpdate:visible":g[15]||(g[15]=F=>f.value=F),placement:"right"},{default:ne(()=>[w(vne)]),_:1},8,["visible"]),w(zb,{loading:H(c),tip:"正在导入..."},null,8,["loading"])])}}}),yoe=Ee(Roe,[["__scopeId","data-v-89efe6b2"]]),rf=Symbol(),i5=Symbol(),fI=Symbol(),xoe=()=>{const e=window.getSelection();e&&e.removeAllRanges()},boe=e=>{const t=ve(0),n=ve(0),r=dt(),{canvasPercentage:o,canvasDragged:i}=Xe(r),{viewportRatio:a}=Xe(ut()),s=()=>{if(!e.value)return;const d=e.value.clientWidth,h=e.value.clientHeight;if(h/d>a.value){const p=d*(o.value/100);r.setCanvasScale(p/Ht),t.value=(d-p)/2,n.value=(h-p*a.value)/2}else{const p=h*(o.value/100);r.setCanvasScale(p/(Ht*a.value)),t.value=(d-p/a.value)/2,n.value=(h-p)/2}};Tt(o,(d,h)=>{if(!e.value)return;const p=e.value.clientWidth,m=e.value.clientHeight,A=p*(d/100),x=p*(h/100),R=m*(d/100),y=m*(h/100);m/p>a.value?r.setCanvasScale(A/Ht):r.setCanvasScale(R/(Ht*a.value)),t.value=t.value-(A-x)/2,n.value=n.value-(R-y)/2}),Tt(a,s),Tt(i,()=>{i.value||s()});const l=Se(()=>({width:Ht,height:Ht*a.value,left:t.value,top:n.value})),u=new ResizeObserver(s);return Gt(()=>{e.value&&u.observe(e.value)}),Pn(()=>{e.value&&u.unobserve(e.value)}),{viewportStyles:l,dragViewport:d=>{let h=!0;const p=d.pageX,m=d.pageY,A=t.value,x=n.value;document.onmousemove=R=>{if(!h)return;const y=R.pageX,g=R.pageY;t.value=A+(y-p),n.value=x+(g-m)},document.onmouseup=()=>{h=!1,document.onmousemove=null,document.onmouseup=null,r.setCanvasDragged(!0)}}}},Soe=(e,t)=>{const n=dt(),{canvasScale:r,hiddenElementIdList:o}=Xe(n),i=ve(!1),a=ve(1),s=ve({top:0,left:0,width:0,height:0});return{mouseSelection:s,mouseSelectionVisible:i,mouseSelectionQuadrant:a,updateMouseSelection:l=>{if(!t.value)return;let u=!0;const f=t.value.getBoundingClientRect(),d=5,h=l.pageX,p=l.pageY,m=(h-f.x)/r.value,A=(p-f.y)/r.value;s.value={top:A,left:m,width:0,height:0},i.value=!1,a.value=4,document.onmousemove=x=>{if(!u)return;const R=x.pageX,y=x.pageY,g=(R-h)/r.value,S=(y-p)/r.value,O=Math.abs(g),T=Math.abs(S);if(O0&&S>0?M=4:g<0&&S<0?M=2:g>0&&S<0?M=1:g<0&&S>0&&(M=3),s.value={...s.value,width:O,height:T},i.value=!0,a.value=M},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,u=!1;let x=[];for(let y=0;yS&&kO&&NS-T&&kO-M&&NS&&kO-M&&NS-T&&kO&&N{if(y.groupId){const g=x.map(O=>O.id);return e.value.filter(O=>O.groupId===y.groupId).every(O=>g.includes(O.id))}return!0});const R=x.map(y=>y.id);n.setActiveElementIdList(R),i.value=!1}}}},Moe=e=>{const{disableHotkeys:t}=Xe(dt()),{createImageElement:n,createTextElement:r}=qu(),o=i=>{if(!i.dataTransfer||i.dataTransfer.items.length===0)return;const a=i.dataTransfer.items[0];if(a.kind==="file"&&a.type.indexOf("image")!==-1){const s=a.getAsFile();s&&$u(s).then(c=>n(c))}else a.kind==="string"&&a.type==="text/plain"&&a.getAsString(s=>{if(t.value)return;const c=kb(s);r({left:0,top:0,width:600,height:50},{content:c})})};Gt(()=>{e.value&&e.value.addEventListener("drop",o),document.ondragleave=i=>i.preventDefault(),document.ondrop=i=>i.preventDefault(),document.ondragenter=i=>i.preventDefault(),document.ondragover=i=>i.preventDefault()}),Pn(()=>{e.value&&e.value.removeEventListener("drop",o),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null})},woe=(e,t)=>{const n=Math.atan2(e,t);return 180/Math.PI*n},dI=(e,t,n)=>{const r=ut(),{addHistorySnapshot:o}=Jt();return{rotateElement:(a,s)=>{const c=!(a instanceof MouseEvent);if(c&&(!a.changedTouches||!a.changedTouches[0]))return;let l=!0,u=0;const f=s.rotate||0,d=s.left,h=s.top,p=s.width,m=s.height,A=d+p/2,x=h+m/2;if(!t.value)return;const R=t.value.getBoundingClientRect(),y=S=>{if(!l)return;const O=S instanceof MouseEvent?S.pageX:S.changedTouches[0].pageX,T=S instanceof MouseEvent?S.pageY:S.changedTouches[0].pageY,M=(O-R.left)/n.value,L=(T-R.top)/n.value,k=M-A,F=x-L;u=woe(k,F);const N=5;Math.abs(u)<=N?u=0:u>0&&Math.abs(u-45)<=N?u-=u-45:u<0&&Math.abs(u+45)<=N?u-=u+45:u>0&&Math.abs(u-90)<=N?u-=u-90:u<0&&Math.abs(u+90)<=N?u-=u+90:u>0&&Math.abs(u-135)<=N?u-=u-135:u<0&&Math.abs(u+135)<=N?u-=u+135:u>0&&Math.abs(u-180)<=N?u-=u-180:u<0&&Math.abs(u+180)<=N&&(u-=u+180),e.value=e.value.map(E=>s.id===E.id?{...E,rotate:u}:E)},g=()=>{l=!1,document.onmousemove=null,document.onmouseup=null,f!==u&&(r.updateSlide({elements:e.value}),o())};c?(document.ontouchmove=y,document.ontouchend=g):(document.onmousemove=y,document.onmouseup=g)}}},j0={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},hI={text:20,image:20,shape:15,chart:200,table:20,video:250,audio:20,latex:20},EO=(e,t)=>{const{left:n,top:r,width:o,height:i}=e,a=Math.sqrt(Math.pow(o,2)+Math.pow(i,2))/2,s=Math.atan(i/o)*180/Math.PI,c=(180-t-s)*Math.PI/180,l=(s-t)*Math.PI/180,u=(90-t)*Math.PI/180,f=t*Math.PI/180,d=o/2,h=i/2,p=n+d,m=r+h,A={left:p+a*Math.cos(c),top:m-a*Math.sin(c)},x={left:p+h*Math.cos(u),top:m-h*Math.sin(u)},R={left:p+a*Math.cos(l),top:m-a*Math.sin(l)},y={left:p+d*Math.cos(f),top:m+d*Math.sin(f)},g={left:p-a*Math.cos(c),top:m+a*Math.sin(c)},S={left:p-h*Math.sin(f),top:m+h*Math.cos(f)},O={left:p-a*Math.cos(l),top:m+a*Math.sin(l)},T={left:p-d*Math.cos(f),top:m-d*Math.sin(f)};return{leftTopPoint:A,topPoint:x,rightTopPoint:R,rightPoint:y,rightBottomPoint:g,bottomPoint:S,leftBottomPoint:O,leftPoint:T}},WO=(e,t)=>({[vt.RIGHT_BOTTOM]:t.leftTopPoint,[vt.LEFT_BOTTOM]:t.rightTopPoint,[vt.LEFT_TOP]:t.rightBottomPoint,[vt.RIGHT_TOP]:t.leftBottomPoint,[vt.TOP]:t.bottomPoint,[vt.BOTTOM]:t.topPoint,[vt.LEFT]:t.rightPoint,[vt.RIGHT]:t.leftPoint})[e],pI=(e,t,n)=>{const r=dt(),o=ut(),{activeElementIdList:i,activeGroupElementId:a}=Xe(r),{viewportRatio:s}=Xe(o),{ctrlOrShiftKeyActive:c}=Xe(Ms()),{addHistorySnapshot:l}=Jt();return{scaleElement:(d,h,p)=>{const m=!(d instanceof MouseEvent);if(m&&(!d.changedTouches||!d.changedTouches[0]))return;let A=!0;r.setScalingState(!0);const x=h.left,R=h.top,y=h.width,g=h.height,S=h.type==="table"?h.cellMinHeight:0,O="rotate"in h&&h.rotate?h.rotate:0,T=Math.PI*O/180,M=c.value||"fixedRatio"in h&&h.fixedRatio,L=y/g,k=m?d.changedTouches[0].pageX:d.pageX,F=m?d.changedTouches[0].pageY:d.pageY,N=hI[h.type]||20,E=K=>K{const U=N/L;return K{const fe=[];let se=!1,ie=!1;const me={offsetX:0,offsetY:0};if(U||U===0)for(let Ae=0;Ae{if(!A)return;const U=K instanceof MouseEvent?K.pageX:K.changedTouches[0].pageX,z=K instanceof MouseEvent?K.pageY:K.changedTouches[0].pageY,fe=U-k,se=z-F;let ie=y,me=g,Ae=x,ye=R;if(O){const J=(Math.cos(T)*fe+Math.sin(T)*se)/n.value;let ae=(Math.cos(T)*se-Math.sin(T)*fe)/n.value;M&&((p===vt.RIGHT_BOTTOM||p===vt.LEFT_TOP)&&(ae=J/L),(p===vt.LEFT_BOTTOM||p===vt.RIGHT_TOP)&&(ae=-J/L)),p===vt.RIGHT_BOTTOM?(ie=E(y+J),me=C(g+ae)):p===vt.LEFT_BOTTOM?(ie=E(y-J),me=C(g+ae),Ae=x-(ie-y)):p===vt.LEFT_TOP?(ie=E(y-J),me=C(g-ae),Ae=x-(ie-y),ye=R-(me-g)):p===vt.RIGHT_TOP?(ie=E(y+J),me=C(g-ae),ye=R-(me-g)):p===vt.TOP?(me=E(g-ae),ye=R-(me-g)):p===vt.BOTTOM?me=E(g+ae):p===vt.LEFT?(ie=E(y-J),Ae=x-(ie-y)):p===vt.RIGHT&&(ie=E(y+J));const X=EO({width:ie,height:me,left:Ae,top:ye},O),$=WO(p,X),ue=$.left,j=$.top,q=ue-I,re=j-V;Ae=Ae-q,ye=ye-re}else{let J=fe/n.value,ae=se/n.value;if(M&&((p===vt.RIGHT_BOTTOM||p===vt.LEFT_TOP)&&(ae=J/L),(p===vt.LEFT_BOTTOM||p===vt.RIGHT_TOP)&&(ae=-J/L)),p===vt.RIGHT_BOTTOM){const{offsetX:X,offsetY:$}=oe(x+y+J,R+g+ae);J=J-X,ae=ae-$,M&&($?J=ae*L:ae=J/L),ie=E(y+J),me=C(g+ae)}else if(p===vt.LEFT_BOTTOM){const{offsetX:X,offsetY:$}=oe(x+J,R+g+ae);J=J-X,ae=ae-$,M&&($?J=-ae*L:ae=-J/L),ie=E(y-J),me=C(g+ae),Ae=x-(ie-y)}else if(p===vt.LEFT_TOP){const{offsetX:X,offsetY:$}=oe(x+J,R+ae);J=J-X,ae=ae-$,M&&($?J=ae*L:ae=J/L),ie=E(y-J),me=C(g-ae),Ae=x-(ie-y),ye=R-(me-g)}else if(p===vt.RIGHT_TOP){const{offsetX:X,offsetY:$}=oe(x+y+J,R+ae);J=J-X,ae=ae-$,M&&($?J=-ae*L:ae=-J/L),ie=E(y+J),me=C(g-ae),ye=R-(me-g)}else if(p===vt.LEFT){const{offsetX:X}=oe(x+J,null);J=J-X,ie=E(y-J),Ae=x-(ie-y)}else if(p===vt.RIGHT){const{offsetX:X}=oe(x+y+J,null);J=J-X,ie=E(y+J)}else if(p===vt.TOP){const{offsetY:X}=oe(null,R+ae);ae=ae-X,me=E(g-ae),ye=R-(me-g)}else if(p===vt.BOTTOM){const{offsetY:X}=oe(null,R+g+ae);ae=ae-X,me=E(g+ae)}}e.value=e.value.map(J=>{if(h.id!==J.id)return J;if(J.type==="shape"&&"pathFormula"in J&&J.pathFormula){const ae=ju[J.pathFormula];let X="";return"editable"in ae?X=ae.formula(ie,me,J.keypoint):X=ae.formula(ie,me),{...J,left:Ae,top:ye,width:ie,height:me,viewBox:[ie,me],path:X}}if(J.type==="table"){let ae=S+(me-g)/J.data.length;return ae=ae<36?36:ae,ae===S?{...J,left:Ae,width:ie}:{...J,left:Ae,top:ye,width:ie,height:me,cellMinHeight:ae<36?36:ae}}return{...J,left:Ae,top:ye,width:ie,height:me}})},Z=K=>{A=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const U=K instanceof MouseEvent?K.pageX:K.changedTouches[0].pageX,z=K instanceof MouseEvent?K.pageY:K.changedTouches[0].pageY;k===U&&F===z||(o.updateSlide({elements:e.value}),r.setScalingState(!1),l())};m?(document.ontouchmove=W,document.ontouchend=Z):(document.onmousemove=W,document.onmouseup=Z)},scaleMultiElement:(d,h,p)=>{let m=!0;const{minX:A,maxX:x,minY:R,maxY:y}=h,g=x-A,S=y-R,O=g/S,T=d.pageX,M=d.pageY,L=JSON.parse(JSON.stringify(e.value));document.onmousemove=k=>{if(!m)return;const F=k.pageX,N=k.pageY,E=(F-T)/n.value;let C=(N-M)/n.value;c.value&&((p===vt.RIGHT_BOTTOM||p===vt.LEFT_TOP)&&(C=E/O),(p===vt.LEFT_BOTTOM||p===vt.RIGHT_TOP)&&(C=-E/O));let _=A,I=x,V=R,B=y;p===vt.RIGHT_BOTTOM?(I=x+E,B=y+C):p===vt.LEFT_BOTTOM?(_=A+E,B=y+C):p===vt.LEFT_TOP?(_=A+E,V=R+C):p===vt.RIGHT_TOP?(I=x+E,V=R+C):p===vt.TOP?V=R+C:p===vt.BOTTOM?B=y+C:p===vt.LEFT?_=A+E:p===vt.RIGHT&&(I=x+E);const G=I-_,oe=B-V;let W=G/g,Z=oe/S;W<=0&&(W=0),Z<=0&&(Z=0),e.value=e.value.map(K=>{if((K.type==="image"||K.type==="shape")&&i.value.includes(K.id)){const U=L.find(z=>z.id===K.id);return{...K,width:U.width*W,height:U.height*Z,left:_+(U.left-A)*W,top:V+(U.top-R)*Z}}return K})},document.onmouseup=k=>{m=!1,document.onmousemove=null,document.onmouseup=null,!(T===k.pageX&&M===k.pageY)&&(o.updateSlide({elements:e.value}),l())}}}},Loe=(e,t)=>{const n=dt(),{activeElementIdList:r,activeGroupElementId:o,handleElementId:i,editorAreaFocus:a}=Xe(n),{ctrlOrShiftKeyActive:s}=Xe(Ms());return{selectElement:(l,u,f=!0)=>{if(a.value||n.setEditorareaFocus(!0),r.value.includes(u.id)){if(s.value){let d=[];if(u.groupId){const h=[];e.value.forEach(p=>{p.groupId===u.groupId&&h.push(p.id)}),d=r.value.filter(p=>!h.includes(p))}else d=r.value.filter(h=>h!==u.id);d.length>0&&n.setActiveElementIdList(d)}else if(i.value!==u.id)n.setHandleElementId(u.id);else if(o.value!==u.id){const d=l instanceof MouseEvent?l.pageX:l.changedTouches[0].pageX,h=l instanceof MouseEvent?l.pageY:l.changedTouches[0].pageY;l.target.onmouseup=p=>{const m=p.pageX,A=p.pageY;d===m&&h===A&&(n.setActiveGroupElementId(u.id),p.target.onmouseup=null)}}}else{let d=[];if(s.value?d=[...r.value,u.id]:d=[u.id],u.groupId){const h=[];e.value.forEach(p=>{p.groupId===u.groupId&&h.push(p.id)}),d=[...d,...h]}n.setActiveElementIdList(Xn.uniq(d)),n.setHandleElementId(u.id)}f&&t(l,u)}}},mI=(e,t,n)=>{const r=ut(),{activeElementIdList:o,activeGroupElementId:i}=Xe(dt()),{shiftKeyState:a}=Xe(Ms()),{viewportRatio:s}=Xe(r),{addHistorySnapshot:c}=Jt();return{dragElement:(u,f)=>{const d=!(u instanceof MouseEvent);if(d&&(!u.changedTouches||!u.changedTouches[0])||!o.value.includes(f.id))return;let h=!0;const p=Ht,m=Ht*s.value,A=5,R=JSON.parse(JSON.stringify(e.value)).filter(Z=>o.value.includes(Z.id)),y=f.left,g=f.top,S=f.width,O="height"in f&&f.height?f.height:0,T="rotate"in f&&f.rotate?f.rotate:0,M=d?u.changedTouches[0].pageX:u.pageX,L=d?u.changedTouches[0].pageY:u.pageY;let k=null;const F=f.id===i.value;let N=[],E=[];for(const Z of e.value){if(Z.type==="line"||F&&Z.id===f.id||!F&&o.value.includes(Z.id))continue;let K,U,z,fe;if("rotate"in Z&&Z.rotate){const{xRange:j,yRange:q}=pd({left:Z.left,top:Z.top,width:Z.width,height:Z.height,rotate:Z.rotate});K=j[0],U=q[0],z=j[1]-j[0],fe=q[1]-q[0]}else K=Z.left,U=Z.top,z=Z.width,fe=Z.height;const se=K+z,ie=U+fe,me=U+fe/2,Ae=K+z/2,ye={value:U,range:[K,se]},J={value:ie,range:[K,se]},ae={value:me,range:[K,se]},X={value:K,range:[U,ie]},$={value:se,range:[U,ie]},ue={value:Ae,range:[U,ie]};N.push(ye,J,ae),E.push(X,$,ue)}const C={value:0,range:[0,p]},_={value:m,range:[0,p]},I={value:m/2,range:[0,p]},V={value:0,range:[0,m]},B={value:p,range:[0,m]},G={value:p/2,range:[0,m]};N.push(C,_,I),E.push(V,B,G),N=Yv(N),E=Yv(E);const oe=Z=>{const K=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,U=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;if(k!==!1&&(k=Math.abs(M-K)Math.abs(fe)&&(fe=0),Math.abs(z)q.id===f.id?{...q,left:se,top:ie}:q);else{const q=e.value.find(re=>re.id===f.id);if(!q)return;e.value=e.value.map(re=>o.value.includes(re.id)?re.id===f.id?{...re,left:se,top:ie}:{...re,left:re.left+(se-q.left),top:re.top+(ie-q.top)}:re)}},W=Z=>{h=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const K=Z instanceof MouseEvent?Z.pageX:Z.changedTouches[0].pageX,U=Z instanceof MouseEvent?Z.pageY:Z.changedTouches[0].pageY;M===K&&L===U||(r.updateSlide({elements:e.value}),c())};d?(document.ontouchmove=oe,document.ontouchend=W):(document.onmousemove=oe,document.onmouseup=W)}}},Ooe=e=>{const t=ut(),{canvasScale:n}=Xe(dt()),{ctrlOrShiftKeyActive:r}=Xe(Ms()),{addHistorySnapshot:o}=Jt();return{dragLineElement:(a,s,c)=>{let l=!0;const u=8,f=a.pageX,d=a.pageY,h=[];for(let p=0;p{if(!l)return;const m=p.pageX,A=p.pageY,x=(m-f)/n.value,R=(A-d)/n.value;let y=s.left+s.start[0],g=s.top+s.start[1],S=s.left+s.end[0],O=s.top+s.end[1];const T=s.broken||s.curve||[0,0];let M=s.left+T[0],L=s.top+T[1];const[k,F]=s.cubic||[[0,0],[0,0]];let N=s.left+k[0],E=s.top+k[1],C=s.left+F[0],_=s.top+F[1];if(c===Jo.START){y=y+x,g=g+R,Math.abs(y-S)S&&(oe[0]=B-I,W[0]=0),g>O&&(oe[1]=G-V,W[1]=0),e.value=e.value.map(Z=>{if(Z.id===s.id){const K={...Z,left:I,top:V,start:oe,end:W};return c===Jo.START||c===Jo.END?r.value?(s.broken&&(K.broken=[M-I,L-V]),s.curve&&(K.curve=[M-I,L-V]),s.cubic&&(K.cubic=[[N-I,E-V],[C-I,_-V]])):(s.broken&&(K.broken=[(oe[0]+W[0])/2,(oe[1]+W[1])/2]),s.curve&&(K.curve=[(oe[0]+W[0])/2,(oe[1]+W[1])/2]),s.cubic&&(K.cubic=[[(oe[0]+W[0])/2,(oe[1]+W[1])/2],[(oe[0]+W[0])/2,(oe[1]+W[1])/2]])):c===Jo.C?(s.broken&&(K.broken=[M-I,L-V]),s.curve&&(K.curve=[M-I,L-V])):s.cubic&&(K.cubic=[[N-I,E-V],[C-I,_-V]]),K}return Z})},document.onmouseup=p=>{l=!1,document.onmousemove=null,document.onmouseup=null;const m=p.pageX,A=p.pageY;f===m&&d===A||(t.updateSlide({elements:e.value}),o())}}}},Toe=(e,t)=>{const n=ut(),{addHistorySnapshot:r}=Jt();return{moveShapeKeypoint:(i,a)=>{const s=!(i instanceof MouseEvent);if(s&&(!i.changedTouches||!i.changedTouches[0]))return;let c=!0;const l=s?i.changedTouches[0].pageX:i.pageX,u=s?i.changedTouches[0].pageY:i.pageY,f=ju[a.pathFormula];let d=null;if("editable"in f){const m=f.getBaseSize(a.width,a.height),A=m*a.keypoint,[x,R]=f.range,y=f.relative;d={baseSize:m,originPos:A,min:x,max:R,relative:y}}const h=m=>{if(!c)return;const A=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,x=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY,R=(A-l)/t.value,y=(x-u)/t.value;e.value=e.value.map(g=>{if(g.id===a.id&&d){const{baseSize:S,originPos:O,min:T,max:M,relative:L}=d,k=g;let F=0;return L==="left"&&(F=(O+R)/S),L==="right"&&(F=(O-R)/S),L==="center"&&(F=(O-R*2)/S),L==="top"&&(F=(O+y)/S),L==="bottom"&&(F=(O-y)/S),FM&&(F=M),{...g,keypoint:F,path:f.formula(k.width,k.height,F)}}return g})},p=m=>{c=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const A=m instanceof MouseEvent?m.pageX:m.changedTouches[0].pageX,x=m instanceof MouseEvent?m.pageY:m.changedTouches[0].pageY;l===A&&u===x||(n.updateSlide({elements:e.value}),r())};s?(document.ontouchmove=h,document.ontouchend=p):(document.onmousemove=h,document.onmouseup=p)}}},koe=e=>{const t=dt(),{canvasScale:n,creatingElement:r}=Xe(t),o=u=>{const{start:f,end:d}=u;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,m]=f,[A,x]=d,R=Math.min(p,A),y=Math.max(p,A),g=Math.min(m,x),S=Math.max(m,x),O=(R-h.x)/n.value,T=(g-h.y)/n.value,M=(y-R)/n.value,L=(S-g)/n.value;return{left:O,top:T,width:M,height:L}},i=u=>{const{start:f,end:d}=u;if(!e.value)return;const h=e.value.getBoundingClientRect(),[p,m]=f,[A,x]=d,R=Math.min(p,A),y=Math.max(p,A),g=Math.min(m,x),S=Math.max(m,x),O=(R-h.x)/n.value,T=(g-h.y)/n.value,M=(y-R)/n.value,L=(S-g)/n.value;return{left:O,top:T,start:[p===R?0:M,m===g?0:L],end:[A===R?0:M,x===g?0:L]}},{createTextElement:a,createShapeElement:s,createLineElement:c}=qu();return{formatCreateSelection:o,insertElementFromCreateSelection:u=>{if(!r.value)return;const f=r.value.type;if(f==="text"){const d=o(u);d&&a(d,{vertical:r.value.vertical})}else if(f==="shape"){const d=o(u);d&&s(d,r.value.data)}else if(f==="line"){const d=i(u);d&&c(d,r.value.data)}t.setCreatingElement(null)}}},a2=()=>{const e=ut(),{activeElementIdList:t,activeElementList:n}=Xe(dt()),{currentSlide:r,viewportRatio:o}=Xe(e),{addHistorySnapshot:i}=Jt();return{alignElementToCanvas:s=>{const c=Ht,l=Ht*o.value,{minX:u,maxX:f,minY:d,maxY:h}=nc(n.value),p=JSON.parse(JSON.stringify(r.value.elements));for(const m of p)if(t.value.includes(m.id)){if(s===nn.CENTER){const A=d+(h-d)/2-l/2,x=u+(f-u)/2-c/2;m.top=m.top-A,m.left=m.left-x}if(s===nn.TOP){const A=d-0;m.top=m.top-A}else if(s===nn.VERTICAL){const A=d+(h-d)/2-l/2;m.top=m.top-A}else if(s===nn.BOTTOM){const A=h-l;m.top=m.top-A}else if(s===nn.LEFT){const A=u-0;m.left=m.left-A}else if(s===nn.HORIZONTAL){const A=u+(f-u)/2-c/2;m.left=m.left-A}else if(s===nn.RIGHT){const A=f-c;m.left=m.left-A}}e.updateSlide({elements:p}),i()}}},Oc=e=>({shadowStyle:Se(()=>{if(e.value){const{h:n,v:r,blur:o,color:i}=e.value;return`${n}px ${r}px ${o}px ${i}`}return""})}),s2=(e,t)=>({flipStyle:Se(()=>{let r="";return e.value&&t.value?r="rotateX(180deg) rotateY(180deg)":t.value?r="rotateX(180deg)":e.value&&(r="rotateY(180deg)"),r})});var vI=(e=>(e.RECT="rect",e.ELLIPSE="ellipse",e.POLYGON="polygon",e))(vI||{});const D3={rect:{name:"矩形",type:"rect",radius:"0",style:""},rect2:{name:"矩形2",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(e,t)=>`M 0 0 L ${e*.8} 0 L ${e} ${t*.2} L ${e} ${t} L 0 ${t} Z`},rect3:{name:"矩形3",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(e,t)=>`M 0 0 L ${e*.8} 0 L ${e} ${t*.2} L ${e} ${t} L ${e*.2} ${t} L 0 ${t*.8} Z`},roundRect:{name:"圆角矩形",type:"rect",radius:"10px",style:"inset(0 0 0 0 round 10px 10px 10px 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:(e,t)=>`M ${e*.5} 0 L 0 ${t} L ${e} ${t} Z`},triangle2:{name:"三角形2",type:"polygon",style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(e,t)=>`M ${e*.5} ${t} L 0 0 L ${e} 0 Z`},triangle3:{name:"三角形3",type:"polygon",style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M 0 0 L 0 ${t} L ${e} ${t} Z`},rhombus:{name:"菱形",type:"polygon",style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e} ${t*.5} L ${e*.5} ${t} L 0 ${t*.5} Z`},pentagon:{name:"五边形",type:"polygon",style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e} ${.38*t} L ${.82*e} ${t} L ${.18*e} ${t} L 0 ${.38*t} Z`},hexagon:{name:"六边形",type:"polygon",style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(e,t)=>`M ${e*.2} 0 L ${e*.8} 0 L ${e} ${t*.5} L ${e*.8} ${t} L ${e*.2} ${t} L 0 ${t*.5} Z`},heptagon:{name:"七边形",type:"polygon",style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(e,t)=>`M ${e*.5} 0 L ${e*.9} ${t*.2} L ${e} ${t*.6} L ${e*.75} ${t} L ${e*.25} ${t} L 0 ${t*.6} L ${e*.1} ${t*.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:(e,t)=>`M ${e*.3} 0 L ${e*.7} 0 L ${e} ${t*.3} L ${e} ${t*.7} L ${e*.7} ${t} L ${e*.3} ${t} L 0 ${t*.7} L 0 ${t*.3} Z`},chevron:{name:"V形",type:"polygon",style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(e,t)=>`M ${e*.75} 0 L ${e} ${t*.5} L ${e*.75} ${t} L 0 ${t} L ${e*.25} ${t*.5} L 0 0 Z`},point:{name:"点",type:"polygon",style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(e,t)=>`M 0 0 L ${e*.75} 0 L ${e} ${t*.5} L ${e*.75} ${t} L 0 ${t} Z`},arrow:{name:"箭头",type:"polygon",style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(e,t)=>`M 0 ${t*.2} L ${e*.6} ${t*.2} L ${e*.6} 0 L ${e} ${t*.5} L ${e*.6} ${t} L ${e*.6} ${t*.8} L 0 ${t*.8} Z`},parallelogram:{name:"平行四边形",type:"polygon",style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(e,t)=>`M ${e*.3} 0 L ${e} 0 L ${e*.7} ${t} L 0 ${t} Z`},parallelogram2:{name:"平行四边形2",type:"polygon",style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(e,t)=>`M ${e*.3} ${t} L ${e} ${t} L ${e*.7} 0 L 0 0 Z`},trapezoid:{name:"梯形",type:"polygon",style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(e,t)=>`M ${e*.25} 0 L ${e*.75} 0 L ${e} ${t} L 0 ${t} Z`},trapezoid2:{name:"梯形2",type:"polygon",style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(e,t)=>`M 0 0 L ${e} 0 L ${e*.75} ${t} L ${e*.25} ${t} Z`}},a5=e=>{const t=Se(()=>{if(!e.value)return D3.rect;const r=e.value.shape||vI.RECT;return D3[r]}),n=Se(()=>{if(!e.value)return{top:"0",left:"0",width:"100%",height:"100%"};const[r,o]=e.value.range,i=(o[0]-r[0])/100,a=(o[1]-r[1])/100,s=r[0]/i,c=r[1]/a;return{left:-s+"%",top:-c+"%",width:100/i+"%",height:100/a+"%"}});return{clipShape:t,imgPosition:n}},gI=e=>({filter:Se(()=>{if(!e.value)return"";let n="";const r=Object.keys(e.value);for(const o of r)n+=`${o}(${e.value[o]}) `;return n})}),zd=e=>{const t=Se(()=>{var i;return((i=e.value)==null?void 0:i.width)??0}),n=Se(()=>{var i;return((i=e.value)==null?void 0:i.style)||"solid"}),r=Se(()=>{var i;return((i=e.value)==null?void 0:i.color)||"#d14424"}),o=Se(()=>{if(n.value!=="dashed")return"0 0";const i=t.value;return i<=6?`${i*4.5} ${i*2}`:`${i*4} ${i*1.5}`});return{outlineWidth:t,outlineStyle:n,outlineColor:r,strokeDashArray:o}},Poe=["width","height"],Noe=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],Coe=Fe({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=zd(Ud(t,"outline"));return(i,a)=>i.outline?(Q(),ee("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:i.width,height:i.height},[Y("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:i.radius,ry:i.radius,width:i.width,height:i.height,stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,Noe)],8,Poe)):Ze("",!0)}}),Ioe=Ee(Coe,[["__scopeId","data-v-09a0319c"]]),Foe=["width","height"],_oe=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],Xoe=Fe({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=zd(Ud(t,"outline"));return(i,a)=>i.outline?(Q(),ee("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:i.width,height:i.height},[Y("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:i.width/2,cy:i.height/2,rx:i.width/2,ry:i.height/2,stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,_oe)],8,Foe)):Ze("",!0)}}),Eoe=Ee(Xoe,[["__scopeId","data-v-19e68d74"]]),Woe=["width","height"],Voe=["d","stroke","stroke-width","stroke-dasharray"],Uoe=Fe({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=zd(Ud(t,"outline"));return(i,a)=>i.outline?(Q(),ee("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:i.width,height:i.height},[Y("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:i.createPath(i.width,i.height),stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,Voe)],8,Woe)):Ze("",!0)}}),Yoe=Ee(Uoe,[["__scopeId","data-v-a036b0a3"]]),Qoe={class:"image-outline"},AI=Fe({__name:"index",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.clip),{clipShape:r}=a5(n);return(o,i)=>(Q(),ee("div",Qoe,[H(r).type==="rect"?(Q(),Le(Ioe,{key:0,width:o.elementInfo.width,height:o.elementInfo.height,radius:H(r).radius,outline:o.elementInfo.outline},null,8,["width","height","radius","outline"])):H(r).type==="ellipse"?(Q(),Le(Eoe,{key:1,width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"])):H(r).type==="polygon"?(Q(),Le(Yoe,{key:2,width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline,createPath:H(r).createPath},null,8,["width","height","outline","createPath"])):Ze("",!0)]))}}),RI=e=>(on("data-v-cd7d01b2"),e=e(),an(),e),Zoe=["src"],Boe=["src"],Doe=["onMousedown"],Koe=RI(()=>Y("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[Y("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"})],-1)),Hoe=[Koe],Goe=["onMousedown"],Joe=RI(()=>Y("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[Y("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)),zoe=[Joe],$oe=Fe({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:o}=Xe(dt()),{ctrlOrShiftKeyActive:i}=Xe(Ms()),a=ve({top:"0",left:"0"}),s=ve(!1),c=ve(null),l=()=>{const[M,L]=n.clipData?n.clipData.range:[[0,0],[100,100]],k=(L[0]-M[0])/100,F=(L[1]-M[1])/100,N=M[0]/k,E=M[1]/F;return{widthScale:k,heightScale:F,left:N,top:E}},u=Se(()=>{const{widthScale:M,heightScale:L,left:k,top:F}=l();return{left:-k,top:-F,width:100/M,height:100/L}}),f=Se(()=>({top:u.value.top+"%",left:u.value.left+"%",width:u.value.width+"%",height:u.value.height+"%"})),d=ve({top:0,left:0,width:0,height:0}),h=Se(()=>{const{top:M,left:L,width:k,height:F}=d.value;return{top:M+"%",left:L+"%",width:k+"%",height:F+"%"}}),p=Se(()=>{const M=u.value.width,L=u.value.height,{top:k,left:F,width:N,height:E}=d.value;return{left:-F*(100/N)+"%",top:-k*(100/E)+"%",width:M/N*100+"%",height:L/E*100+"%"}}),m=()=>{const{left:M,top:L}=l();d.value={left:M,top:L,width:100,height:100},a.value={top:-L+"%",left:-M+"%"}},A=()=>{if(s.value)return;if(!c.value){r("clip",null);return}const{left:M,top:L}=l(),k={left:(d.value.left-M)/100*n.width,top:(d.value.top-L)/100*n.height,width:(d.value.width-100)/100*n.width,height:(d.value.height-100)/100*n.height},F={range:c.value,position:k};r("clip",F)},x=M=>{M.key.toUpperCase()===yt.ENTER&&A()};Gt(()=>{m(),document.addEventListener("keydown",x)}),Pn(()=>{document.removeEventListener("keydown",x)});const R=()=>{const M={left:parseInt(p.value.left),top:parseInt(p.value.top),width:parseInt(p.value.width),height:parseInt(p.value.height)},L=100/M.width,k=100/M.height,F=[-M.left*L,-M.top*k],N=[L*100+F[0],k*100+F[1]];c.value=[F,N]},y=M=>{s.value=!0;let L=!0;const k=M.pageX,F=M.pageY,N=u.value,E={...d.value};document.onmousemove=C=>{if(!L)return;const _=C.pageX,I=C.pageY;let V=(_-k)/o.value/n.width*100,B=(I-F)/o.value/n.height*100;n.rotate>45&&n.rotate<135&&(V=(I-F)/o.value/n.width*100,B=-(_-k)/o.value/n.height*100),(n.rotate>=135&&n.rotate<=180||n.rotate>=-180&&n.rotate<=-135)&&(V=-V,B=-B),n.rotate>-135&&n.rotate<-45&&(V=-(I-F)/o.value/n.width*100,B=(_-k)/o.value/n.height*100);let G=E.left+V,oe=E.top+B;G<0?G=0:G+E.width>N.width&&(G=N.width-E.width),oe<0?oe=0:oe+E.height>N.height&&(oe=N.height-E.height),d.value={...d.value,left:G,top:oe}},document.onmouseup=()=>{L=!1,document.onmousemove=null,document.onmouseup=null,R(),setTimeout(()=>{s.value=!1},0)}},g=(M,L)=>{s.value=!0;let k=!0;const F=50/n.width*100,N=50/n.height*100,E=M.pageX,C=M.pageY,_=u.value,I={...d.value},V=d.value.width/d.value.height;document.onmousemove=B=>{if(!k)return;const G=B.pageX,oe=B.pageY;let W=(G-E)/o.value/n.width*100,Z=(oe-C)/o.value/n.height*100;n.rotate>45&&n.rotate<135&&(W=(oe-C)/o.value/n.width*100,Z=-(G-E)/o.value/n.height*100),(n.rotate>=135&&n.rotate<=180||n.rotate>=-180&&n.rotate<=-135)&&(W=-W,Z=-Z),n.rotate>-135&&n.rotate<-45&&(W=-(oe-C)/o.value/n.width*100,Z=(G-E)/o.value/n.height*100),i.value&&((L===vt.RIGHT_BOTTOM||L===vt.LEFT_TOP)&&(Z=W/V),(L===vt.LEFT_BOTTOM||L===vt.RIGHT_TOP)&&(Z=-W/V));let K,U,z,fe;L===vt.LEFT_TOP?(I.left+W<0&&(W=-I.left),I.top+Z<0&&(Z=-I.top),I.width-W_.width&&(W=_.width-(I.left+I.width)),I.top+Z<0&&(Z=-I.top),I.width+W_.height&&(Z=_.height-(I.top+I.height)),I.width-W_.width&&(W=_.width-(I.left+I.width)),I.top+I.height+Z>_.height&&(Z=_.height-(I.top+I.height)),I.width+W_.height&&(Z=_.height-(I.top+I.height)),I.height+Z_.width&&(W=_.width-(I.left+I.width)),I.width+W{k=!1,document.onmousemove=null,document.onmouseup=null,R(),setTimeout(()=>s.value=!1,0)}},S=Se(()=>{const M="rotate-",L=n.rotate;return L>-22.5&&L<=22.5?M+0:L>22.5&&L<=67.5?M+45:L>67.5&&L<=112.5?M+90:L>112.5&&L<=157.5?M+135:L>157.5||L<=-157.5?M+0:L>-157.5&&L<=-112.5?M+45:L>-112.5&&L<=-67.5?M+90:L>-67.5&&L<=-22.5?M+135:M+0}),O=[vt.LEFT_TOP,vt.RIGHT_TOP,vt.LEFT_BOTTOM,vt.RIGHT_BOTTOM],T=[vt.TOP,vt.BOTTOM,vt.LEFT,vt.RIGHT];return(M,L)=>{const k=Tn("click-outside");return Qe((Q(),ee("div",{class:"image-clip-handler",style:we(a.value)},[Y("img",{class:"bottom-img",src:M.src,draggable:!1,alt:"",style:we(f.value)},null,12,Zoe),Y("div",{class:"top-image-content",style:we({...h.value,clipPath:M.clipPath})},[Y("img",{class:"top-img",src:M.src,draggable:!1,alt:"",style:we(p.value)},null,12,Boe)],4),Y("div",{class:"operate",style:we(h.value),onMousedown:L[0]||(L[0]=Kt(F=>y(F),["stop"]))},[(Q(),ee(We,null,lt(O,F=>Y("div",{class:qe(["clip-point",F,S.value]),key:F,onMousedown:Kt(N=>g(N,F),["stop"])},Hoe,42,Doe)),64)),(Q(),ee(We,null,lt(T,F=>Y("div",{class:qe(["clip-point",F,S.value]),key:F,onMousedown:Kt(N=>g(N,F),["stop"])},zoe,42,Goe)),64))],36)],4)),[[k,A]])}}}),joe=Ee($oe,[["__scopeId","data-v-cd7d01b2"]]),qoe=["src"],eie=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=dt(),r=ut(),{clipingImageElementId:o}=Xe(n),i=Se(()=>o.value===t.elementInfo.id),{addHistorySnapshot:a}=Jt(),s=Se(()=>t.elementInfo.shadow),{shadowStyle:c}=Oc(s),l=Se(()=>t.elementInfo.flipH),u=Se(()=>t.elementInfo.flipV),{flipStyle:f}=s2(l,u),d=Se(()=>t.elementInfo.clip),{clipShape:h,imgPosition:p}=a5(d),m=Se(()=>t.elementInfo.filters),{filter:A}=gI(m),x=y=>{t.elementInfo.lock||(y.stopPropagation(),t.selectElement(y,t.elementInfo))},R=y=>{if(n.setClipingImageElementId(""),!y)return;const{range:g,position:S}=y,O=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},T=t.elementInfo.left+S.left,M=t.elementInfo.top+S.top,L=t.elementInfo.width+S.width,k=t.elementInfo.height+S.height;let F=0,N=0;if(t.elementInfo.rotate){const C=T+L/2-(t.elementInfo.left+t.elementInfo.width/2),_=-(M+k/2-(t.elementInfo.top+t.elementInfo.height/2)),I=-t.elementInfo.rotate*Math.PI/180,V=C*Math.cos(I)-_*Math.sin(I),B=C*Math.sin(I)+_*Math.cos(I);F=V-C,N=-(B-_)}const E={clip:{...O,range:g},left:T+F,top:M+N,width:L,height:k};r.updateElement({id:t.elementInfo.id,props:E}),a()};return(y,g)=>{const S=Tn("contextmenu");return Q(),ee("div",{class:qe(["editable-element-image",{lock:y.elementInfo.lock}]),style:we({top:y.elementInfo.top+"px",left:y.elementInfo.left+"px",width:y.elementInfo.width+"px",height:y.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${y.elementInfo.rotate}deg)`})},[i.value?(Q(),Le(joe,{key:0,src:y.elementInfo.src,clipData:y.elementInfo.clip,width:y.elementInfo.width,height:y.elementInfo.height,top:y.elementInfo.top,left:y.elementInfo.left,rotate:y.elementInfo.rotate,clipPath:H(h).style,onClip:g[0]||(g[0]=O=>R(O))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):Qe((Q(),ee("div",{key:1,class:"element-content",style:we({filter:H(c)?`drop-shadow(${H(c)})`:"",transform:H(f)}),onMousedown:g[2]||(g[2]=O=>x(O)),onTouchstart:g[3]||(g[3]=O=>x(O))},[w(AI,{elementInfo:y.elementInfo},null,8,["elementInfo"]),Y("div",{class:"image-content",style:we({clipPath:H(h).style})},[Y("img",{src:y.elementInfo.src,draggable:!1,style:we({top:H(p).top,left:H(p).left,width:H(p).width,height:H(p).height,filter:H(A)}),onDragstart:g[1]||(g[1]=Kt(()=>{},["prevent"])),alt:""},null,44,qoe),y.elementInfo.colorMask?(Q(),ee("div",{key:0,class:"color-mask",style:we({backgroundColor:y.elementInfo.colorMask})},null,4)):Ze("",!0)],4)],36)),[[S,y.contextmenus]])],4)],6)}}}),yI=Ee(eie,[["__scopeId","data-v-d615c21a"]]),tie=["width","height"],nie=["d","stroke","stroke-width","stroke-dasharray"],rie=Fe({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:n,outlineColor:r,strokeDashArray:o}=zd(Ud(t,"outline"));return(i,a)=>i.outline?(Q(),ee("svg",{key:0,class:"element-outline",overflow:"visible",width:i.width,height:i.height},[Y("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${i.width},0 L${i.width},${i.height} L0,${i.height} Z`,stroke:H(r),"stroke-width":H(n),"stroke-dasharray":H(o)},null,8,nie)],8,tie)):Ze("",!0)}}),l2=Ee(rie,[["__scopeId","data-v-e2ef58f5"]]),Co=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},sp=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let VO=null;const Bs=function(e,t,n){let r=VO||(VO=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Yu=function(e,t,n,r){return n&&(UO(e,t,n,r,-1)||UO(e,t,n,r,1))},oie=/^(img|br|input|textarea|hr)$/i;function UO(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:as(e))){let i=e.parentNode;if(!i||i.nodeType!=1||s5(e)||oie.test(e.nodeName)||e.contentEditable=="false")return!1;t=Co(e)+(o<0?0:1),e=i}else if(e.nodeType==1){if(e=e.childNodes[t+(o<0?-1:0)],e.contentEditable=="false")return!1;t=o<0?as(e):0}else return!1}}function as(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function iie(e,t,n){for(let r=t==0,o=t==as(e);r||o;){if(e==n)return!0;let i=Co(e);if(e=e.parentNode,!e)return!1;r=r&&i==0,o=o&&i==as(e)}}function s5(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const c2=function(e){return e.focusNode&&Yu(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function nu(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function aie(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function sie(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const gs=typeof navigator<"u"?navigator:null,YO=typeof document<"u"?document:null,Tc=gs&&gs.userAgent||"",K3=/Edge\/(\d+)/.exec(Tc),xI=/MSIE \d/.exec(Tc),H3=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tc),ri=!!(xI||H3||K3),cc=xI?document.documentMode:H3?+H3[1]:K3?+K3[1]:0,Fa=!ri&&/gecko\/(\d+)/i.test(Tc);Fa&&+(/Firefox\/(\d+)/.exec(Tc)||[0,0])[1];const G3=!ri&&/Chrome\/(\d+)/.exec(Tc),mo=!!G3,lie=G3?+G3[1]:0,Xo=!ri&&!!gs&&/Apple Computer/.test(gs.vendor),_d=Xo&&(/Mobile\/\w+/.test(Tc)||!!gs&&gs.maxTouchPoints>2),Hi=_d||(gs?/Mac/.test(gs.platform):!1),cie=gs?/Win/.test(gs.platform):!1,La=/Android \d/.test(Tc),Zp=!!YO&&"webkitFontSmoothing"in YO.documentElement.style,uie=Zp?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function fie(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Vs(e,t){return typeof e=="number"?e:e[t]}function die(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function QO(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let a=n||e.dom;a;a=sp(a)){if(a.nodeType!=1)continue;let s=a,c=s==i.body,l=c?fie(i):die(s),u=0,f=0;if(t.topl.bottom-Vs(r,"bottom")&&(f=t.bottom-t.top>l.bottom-l.top?t.top+Vs(o,"top")-l.top:t.bottom-l.bottom+Vs(o,"bottom")),t.leftl.right-Vs(r,"right")&&(u=t.right-l.right+Vs(o,"right")),u||f)if(c)i.defaultView.scrollBy(u,f);else{let d=s.scrollLeft,h=s.scrollTop;f&&(s.scrollTop+=f),u&&(s.scrollLeft+=u);let p=s.scrollLeft-d,m=s.scrollTop-h;t={left:t.left-p,top:t.top-m,right:t.right-p,bottom:t.bottom-m}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function hie(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,o;for(let i=(t.left+t.right)/2,a=n+1;a=n-20){r=s,o=c.top;break}}return{refDOM:r,refTop:o,stack:bI(e.dom)}}function bI(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=sp(r));return t}function pie({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;SI(n,r==0?0:r-t)}function SI(e,t){for(let n=0;n=s){a=Math.max(p.bottom,a),s=Math.min(p.top,s);let m=p.left>t.left?p.left-t.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(i=f+1)}}return!n&&c&&(n=c,o=l,r=0),n&&n.nodeType==3?vie(n,o):!n||r&&n.nodeType==1?{node:e,offset:i}:MI(n,o)}function vie(e,t){let n=e.nodeValue.length,r=document.createRange();for(let o=0;o=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}function l5(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function gie(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,o,i)}function Rie(e,t,n,r){let o=-1;for(let i=t,a=!1;i!=e.dom;){let s=e.docView.nearestDesc(i,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent&&!a||!s.contentDOM)){let c=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&!a&&(a=!0,c.left>r.left||c.top>r.top?o=s.posBefore:(c.right-1?o:e.docView.posFromDOM(t,n,-1)}function wI(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&o++}let l;Zp&&o&&r.nodeType==1&&(l=r.childNodes[o-1]).nodeType==1&&l.contentEditable=="false"&&l.getBoundingClientRect().top>=t.top&&o--,r==e.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(s=Rie(e,r,o,t))}s==null&&(s=Aie(e,a,t));let c=e.docView.nearestDesc(a,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function ZO(e){return e.top=0&&o==r.nodeValue.length?(c--,u=1):n<0?c--:l++,y0(Vl(Bs(r,c,l),u),u<0)}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==as(r))){let c=r.childNodes[o-1];if(c.nodeType==1)return Vy(c.getBoundingClientRect(),!1)}if(i==null&&o=0)}if(i==null&&o&&(n<0||o==as(r))){let c=r.childNodes[o-1],l=c.nodeType==3?Bs(c,as(c)-(a?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(l)return y0(Vl(l,1),!1)}if(i==null&&o=0)}function y0(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Vy(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function OI(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}function bie(e,t,n){let r=t.selection,o=n=="up"?r.$from:r.$to;return OI(e,t,()=>{let{node:i}=e.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(i,!0);if(!s)break;if(s.node.isBlock){i=s.contentDOM||s.dom;break}i=s.dom.parentNode}let a=LI(e,o.pos,1);for(let s=i.firstChild;s;s=s.nextSibling){let c;if(s.nodeType==1)c=s.getClientRects();else if(s.nodeType==3)c=Bs(s,0,s.nodeValue.length).getClientRects();else continue;for(let l=0;lu.top+1&&(n=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}const Sie=/[\u0590-\u08ac]/;function Mie(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=e.domSelection();return!Sie.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?i:a:OI(e,t,()=>{let{focusNode:c,focusOffset:l,anchorNode:u,anchorOffset:f}=e.domSelectionRange(),d=s.caretBidiLevel;s.modify("move",n,"character");let h=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:p,focusOffset:m}=e.domSelectionRange(),A=p&&!h.contains(p.nodeType==1?p:p.parentNode)||c==p&&l==m;try{s.collapse(u,f),c&&(c!=u||l!=f)&&s.extend&&s.extend(c,l)}catch{}return d!=null&&(s.caretBidiLevel=d),A})}let BO=null,DO=null,KO=!1;function wie(e,t,n){return BO==t&&DO==n?KO:(BO=t,DO=n,KO=n=="up"||n=="down"?bie(e,t,n):Mie(e,t,n))}const qi=0,HO=1,lu=2,As=3;class Bp{constructor(t,n,r,o){this.parent=t,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=qi,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;nCo(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=t;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==t.childNodes.length)for(let i=t;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,o=t;o;o=o.parentNode){let i=this.getDesc(o),a;if(i&&(!n||i.node))if(r&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))r=!1;else return i}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let o=t;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||a instanceof kI){o=t-i;break}i=s}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof TI&&i.side>=0;r--);if(n<=0){let i,a=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,a=!1);return i&&n&&a&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?Co(i.dom)+1:0}}else{let i,a=!0;for(;i=r=u&&n<=l-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(t,n,u);t=a;for(let f=s;f>0;f--){let d=this.children[f-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){o=Co(d.dom)+1;break}t-=d.size}o==-1&&(o=0)}if(o>-1&&(l>n||s==this.children.length-1)){n=l;for(let u=s+1;uh&&an){let h=s;s=c,c=h}let d=document.createRange();d.setEnd(c.node,c.offset),d.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(d)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,o=0;o=r:tr){let s=r+i.border,c=a-i.border;if(t>=s&&n<=c){this.dirty=t==r||n==a?lu:HO,t==s&&n==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=As:i.markDirty(t-s,n-s);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?lu:As}r=a}this.dirty=lu}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?lu:HO;n.dirty{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=n,this.widget=n,i=this}matchesWidget(t){return this.dirty==qi&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class Lie extends Bp{constructor(t,n,r,o){super(t,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Qu extends Bp{constructor(t,n,r,o){super(t,[],r,o),this.mark=n}static create(t,n,r,o){let i=o.nodeViews[n.type.name],a=i&&i(n,o,r);return(!a||!a.dom)&&(a=$s.renderSpec(document,n.type.spec.toDOM(n,r))),new Qu(t,n,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&As||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=As&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=qi){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(i=$3(i,0,t,r));for(let s=0;s{if(!c)return a;if(c.parent)return c.parent.posBeforeChild(c)},r,o),u=l&&l.dom,f=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=$s.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let d=u;return u=CI(u,r,n),l?c=new Oie(t,n,r,o,u,f||null,d,l,i,a+1):n.isText?new u2(t,n,r,o,u,d,i):new uc(t,n,r,o,u,f||null,d,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>ct.empty)}return t}matchesNode(t,n,r){return this.dirty==qi&&t.eq(this.node)&&z3(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,o=n,i=t.composing?this.localCompositionInfo(t,n):null,a=i&&i.pos>-1?i:null,s=i&&i.pos<0,c=new kie(this,a&&a.node,t);Cie(this.node,this.innerDeco,(l,u,f)=>{l.spec.marks?c.syncToMarks(l.spec.marks,r,t):l.type.side>=0&&!f&&c.syncToMarks(u==this.node.childCount?_n.none:this.node.child(u).marks,r,t),c.placeWidget(l,t,o)},(l,u,f,d)=>{c.syncToMarks(l.marks,r,t);let h;c.findNodeMatch(l,u,f,d)||s&&t.state.selection.from>o&&t.state.selection.to-1&&c.updateNodeAt(l,u,f,h,t)||c.updateNextNode(l,u,f,t,d,o)||c.addNode(l,u,f,t,o),o+=l.nodeSize}),c.syncToMarks([],r,t),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==lu)&&(a&&this.protectLocalComposition(t,a),PI(this.contentDOM,this.children,t),_d&&Iie(this.dom))}localCompositionInfo(t,n){let{from:r,to:o}=t.state.selection;if(!(t.state.selection instanceof Wn)||rn+this.node.content.size)return null;let i=t.domSelectionRange(),a=Fie(i.focusNode,i.focusOffset);if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let s=a.nodeValue,c=_ie(this.node.content,s,r-n,o-n);return c<0?null:{node:a,pos:c,text:s}}else return{node:a,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new Lie(this,i,n,o);t.input.compositionNodes.push(a),this.children=$3(this.children,r,r+o.length,t,a)}update(t,n,r,o){return this.dirty==As||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,o),!0)}updateInner(t,n,r,o){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=qi}updateOuterDeco(t){if(z3(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=NI(this.dom,this.nodeDOM,J3(this.outerDeco,this.node,n),J3(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function GO(e,t,n,r,o){CI(r,t,e);let i=new uc(void 0,e,t,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class u2 extends uc{constructor(t,n,r,o,i,a,s){super(t,n,r,o,i,null,a,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,o){return this.dirty==As||this.dirty!=qi&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=qi||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=t,this.dirty=qi,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let o=this.node.cut(t,n),i=document.createTextNode(o.text);return new u2(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=As)}get domAtom(){return!1}}class kI extends Bp{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==qi&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Oie extends uc{constructor(t,n,r,o,i,a,s,c,l,u){super(t,n,r,o,i,a,s,l,u),this.spec=c}update(t,n,r,o){if(this.dirty==As)return!1;if(this.spec.update){let i=this.spec.update(t,n,r);return i&&this.updateInner(t,n,r,o),i}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,o){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function PI(e,t,n){let r=e.firstChild,o=!1;for(let i=0;i>1,a=Math.min(i,t.length);for(;o-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let c=Qu.create(this.top,t[i],n,r);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(t,n,r,o){let i=-1,a;if(o>=this.preMatch.index&&(a=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,r))i=this.top.children.indexOf(a,this.index);else for(let s=this.index,c=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let l=n.children[r-1];if(l instanceof Qu)n=l,r=l.children.length;else{s=l,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let c=s.node;if(c){if(c!=e.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}function Nie(e,t){return e.type.side-t.type.side}function Cie(e,t,n,r){let o=t.locals(e),i=0;if(o.length==0){for(let l=0;li;)s.push(o[a++]);let p=i+d.nodeSize;if(d.isText){let A=p;a!A.inline):s.slice();r(d,m,t.forChild(i,d),h),i=p}}function Iie(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function Fie(e,t){for(;;){if(e.nodeType==3)return e;if(e.nodeType==1&&t>0){if(e.childNodes.length>t&&e.childNodes[t].nodeType==3)return e.childNodes[t];e=e.childNodes[t-1],t=as(e)}else if(e.nodeType==1&&t=n){if(i>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let l=s=0&&l+t.length+s>=n)return s+l;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function $3(e,t,n,r,o){let i=[];for(let a=0,s=0;a=n||u<=t?i.push(c):(ln&&i.push(c.slice(n-l,c.size,r)))}return i}function c5(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),i=o&&o.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),c,l;if(c2(n)){for(c=s;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&Yt.isSelectable(u)&&o.parent&&!(u.isInline&&iie(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;l=new Yt(a==f?s:r.resolve(f))}}else{let u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;c=r.resolve(u)}if(!l){let u=t=="pointer"||e.state.selection.head{(n.anchorNode!=r||n.anchorOffset!=o)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!II(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Eie(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,Co(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&ri&&cc<=11&&(r.disabled=!0,r.disabled=!1)}function FI(e,t){if(t instanceof Yt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(qO(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else qO(e)}function qO(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function u5(e,t,n,r){return e.someProp("createSelectionBetween",o=>o(e,t,n))||Wn.between(t,n,r)}function eT(e){return e.editable&&!e.hasFocus()?!1:_I(e)}function _I(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function Wie(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Yu(t.node,t.offset,n.anchorNode,n.anchorOffset)}function j3(e,t){let{$anchor:n,$head:r}=e.selection,o=t>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&Sn.findFrom(i,t)}function Kl(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function tT(e,t,n){let r=e.state.selection;if(r instanceof Wn)if(n.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(o.pos+i.nodeSize*(t<0?-1:1));return Kl(e,new Wn(r.$anchor,a))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let o=j3(e.state,t);return o&&o instanceof Yt?Kl(e,o):!1}else if(!(Hi&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter,a;if(!i||i.isText)return!1;let s=t<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(a=e.docView.descAt(s))&&!a.contentDOM?Yt.isSelectable(i)?Kl(e,new Yt(t<0?e.state.doc.resolve(o.pos-i.nodeSize):o)):Zp?Kl(e,new Wn(e.state.doc.resolve(t<0?s:s+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Yt&&r.node.isInline)return Kl(e,new Wn(t>0?r.$to:r.$from));{let o=j3(e.state,t);return o?Kl(e,o):!1}}}function rg(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Ph(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function kf(e,t){return t<0?Vie(e):Uie(e)}function Vie(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,a=!1;for(Fa&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Ph(s,-1))o=n,i=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(XI(n))break;{let s=n.previousSibling;for(;s&&Ph(s,-1);)o=n.parentNode,i=Co(s),s=s.previousSibling;if(s)n=s,r=rg(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?q3(e,n,r):o&&q3(e,o,i)}function Uie(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o=rg(n),i,a;for(;;)if(r{e.state==o&&rl(e)},50)}function nT(e,t){let n=e.state.doc.resolve(t);if(!(mo||cie)&&n.parent.inlineContent){let o=e.coordsAtPos(t);if(t>n.start()){let i=e.coordsAtPos(t-1),a=(i.top+i.bottom)/2;if(a>o.top&&a1)return i.lefto.top&&a1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function rT(e,t,n){let r=e.state.selection;if(r instanceof Wn&&!r.empty||n.indexOf("s")>-1||Hi&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=j3(e.state,t);if(a&&a instanceof Yt)return Kl(e,a)}if(!o.parent.inlineContent){let a=t<0?o:i,s=r instanceof ei?Sn.near(a,t):Sn.findFrom(a,t);return s?Kl(e,s):!1}return!1}function oT(e,t){if(!(e.state.selection instanceof Wn))return!0;let{$head:n,$anchor:r,empty:o}=e.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let a=e.state.tr;return t<0?a.delete(n.pos-i.nodeSize,n.pos):a.delete(n.pos,n.pos+i.nodeSize),e.dispatch(a),!0}return!1}function iT(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Zie(e){if(!Xo||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;iT(e,r,"true"),setTimeout(()=>iT(e,r,"false"),20)}return!1}function Bie(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function Die(e,t){let n=t.keyCode,r=Bie(t);if(n==8||Hi&&n==72&&r=="c")return oT(e,-1)||kf(e,-1);if(n==46&&!t.shiftKey||Hi&&n==68&&r=="c")return oT(e,1)||kf(e,1);if(n==13||n==27)return!0;if(n==37||Hi&&n==66&&r=="c"){let o=n==37?nT(e,e.state.selection.from)=="ltr"?-1:1:-1;return tT(e,o,r)||kf(e,o)}else if(n==39||Hi&&n==70&&r=="c"){let o=n==39?nT(e,e.state.selection.from)=="ltr"?1:-1:1;return tT(e,o,r)||kf(e,o)}else{if(n==38||Hi&&n==80&&r=="c")return rT(e,-1,r)||kf(e,-1);if(n==40||Hi&&n==78&&r=="c")return Zie(e)||rT(e,1,r)||kf(e,1);if(r==(Hi?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function EI(e,t){e.someProp("transformCopied",h=>{t=h(t,e)});let n=[],{content:r,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let a=e.someProp("clipboardSerializer")||$s.fromSchema(e.state.schema),s=ZI(),c=s.createElement("div");c.appendChild(a.serializeFragment(r,{document:s}));let l=c.firstChild,u,f=0;for(;l&&l.nodeType==1&&(u=QI[l.nodeName.toLowerCase()]);){for(let h=u.length-1;h>=0;h--){let p=s.createElement(u[h]);for(;c.firstChild;)p.appendChild(c.firstChild);c.appendChild(p),f++}l=c.firstChild}l&&l.nodeType==1&&l.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let d=e.someProp("clipboardTextSerializer",h=>h(t,e))||t.content.textBetween(0,t.content.size,` + +`);return{dom:c,text:d}}function WI(e,t,n,r,o){let i=o.parent.type.spec.code,a,s;if(!n&&!t)return null;let c=t&&(r||i||!n);if(c){if(e.someProp("transformPastedText",d=>{t=d(t,i||r,e)}),i)return t?new Rt(ct.from(e.state.schema.text(t.replace(/\r\n?/g,` +`))),0,0):Rt.empty;let f=e.someProp("clipboardTextParser",d=>d(t,o,r,e));if(f)s=f;else{let d=o.marks(),{schema:h}=e.state,p=$s.fromSchema(h);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let A=a.appendChild(document.createElement("p"));m&&A.appendChild(p.serializeNode(h.text(m,d)))})}}else e.someProp("transformPastedHTML",f=>{n=f(n,e)}),a=Gie(n),Zp&&Jie(a);let l=a&&a.querySelector("[data-pm-slice]"),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let d=a.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;a=d}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||wd.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(c||u),context:o,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!Kie.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)s=zie(aT(s,+u[1],+u[2]),u[4]);else if(s=Rt.maxOpen(Hie(s.content,o),!0),s.openStart||s.openEnd){let f=0,d=0;for(let h=s.content.firstChild;f{s=f(s,e)}),s}const Kie=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Hie(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let o=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(s=>{if(!a)return;let c=o.findWrapping(s.type),l;if(!c)return a=null;if(l=a.length&&i.length&&UI(c,i,s,a[a.length-1],0))a[a.length-1]=l;else{a.length&&(a[a.length-1]=YI(a[a.length-1],i.length));let u=VI(s,c);a.push(u),o=o.matchType(u.type),i=c}}),a)return ct.from(a)}return e}function VI(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,ct.from(e));return e}function UI(e,t,n,r,o){if(o1&&(i=0),o=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(ct.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function aT(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=ZI().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),o;if((o=r&&QI[r[1].toLowerCase()])&&(e=o.map(i=>"<"+i+">").join("")+e+o.map(i=>"").reverse().join("")),n.innerHTML=e,o)for(let i=0;i=0;s-=2){let c=n.nodes[r[s]];if(!c||c.hasRequiredAttrs())break;o=ct.from(c.create(r[s+1],o)),i++,a++}return new Rt(o,i,a)}const Eo={},Wo={},$ie={touchstart:!0,touchmove:!0};class jie{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function qie(e){for(let t in Eo){let n=Eo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{tae(e,r)&&!f5(e,r)&&(e.editable||!(r.type in Wo))&&n(e,r)},$ie[t]?{passive:!0}:void 0)}Xo&&e.dom.addEventListener("input",()=>null),tx(e)}function rc(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function eae(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function tx(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>f5(e,r))})}function f5(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function tae(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function nae(e,t){!f5(e,t)&&Eo[t.type]&&(e.editable||!(t.type in Wo))&&Eo[t.type](e,t)}Wo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!DI(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(La&&mo&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),_d&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",o=>o(e,nu(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||Die(e,n)?n.preventDefault():rc(e,"key")};Wo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};Wo.keypress=(e,t)=>{let n=t;if(DI(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Hi&&n.metaKey)return;if(e.someProp("handleKeyPress",o=>o(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Wn)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!e.someProp("handleTextInput",i=>i(e,r.$from.pos,r.$to.pos,o))&&e.dispatch(e.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function f2(e){return{left:e.clientX,top:e.clientY}}function rae(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function d5(e,t,n,r,o){if(r==-1)return!1;let i=e.state.doc.resolve(r);for(let a=i.depth+1;a>0;a--)if(e.someProp(t,s=>a>i.depth?s(e,n,i.nodeAfter,i.before(a),o,!0):s(e,n,i.node(a),i.before(a),o,!1)))return!0;return!1}function Ad(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);n=="pointer"&&r.setMeta("pointer",!0),e.dispatch(r)}function oae(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Yt.isSelectable(r)?(Ad(e,new Yt(n),"pointer"),!0):!1}function iae(e,t){if(t==-1)return!1;let n=e.state.selection,r,o;n instanceof Yt&&(r=n.node);let i=e.state.doc.resolve(t);for(let a=i.depth+1;a>0;a--){let s=a>i.depth?i.nodeAfter:i.node(a);if(Yt.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(a);break}}return o!=null?(Ad(e,Yt.create(e.state.doc,o),"pointer"),!0):!1}function aae(e,t,n,r,o){return d5(e,"handleClickOn",t,n,r)||e.someProp("handleClick",i=>i(e,t,r))||(o?iae(e,n):oae(e,n))}function sae(e,t,n,r){return d5(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",o=>o(e,t,r))}function lae(e,t,n,r){return d5(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",o=>o(e,t,r))||cae(e,n,r)}function cae(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Ad(e,Wn.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(t);for(let i=o.depth+1;i>0;i--){let a=i>o.depth?o.nodeAfter:o.node(i),s=o.before(i);if(a.inlineContent)Ad(e,Wn.create(r,s+1,s+1+a.content.size),"pointer");else if(Yt.isSelectable(a))Ad(e,Yt.create(r,s),"pointer");else continue;return!0}}function h5(e){return og(e)}const BI=Hi?"metaKey":"ctrlKey";Eo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=h5(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&rae(n,e.input.lastClick)&&!n[BI]&&(e.input.lastClick.type=="singleClick"?i="doubleClick":e.input.lastClick.type=="doubleClick"&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let a=e.posAtCoords(f2(n));a&&(i=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new uae(e,a,n,!!r)):(i=="doubleClick"?sae:lae)(e,a.pos,a.inside,n)?n.preventDefault():rc(e,"pointer"))};class uae{constructor(t,n,r,o){this.view=t,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[BI],this.allowDefault=r.shiftKey;let i,a;if(n.inside>-1)i=t.state.doc.nodeAt(n.inside),a=n.inside;else{let u=t.state.doc.resolve(n.pos);i=u.parent,a=u.depth?u.before():0}const s=o?null:r.target,c=s?t.docView.nearestDesc(s,!0):null;this.target=c?c.dom:null;let{selection:l}=t.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||l instanceof Yt&&l.from<=a&&l.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Fa&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),rc(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>rl(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(f2(t))),this.updateAllowDefault(t),this.allowDefault||!n?rc(this.view,"pointer"):aae(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Xo&&this.mightDrag&&!this.mightDrag.node.isAtom||mo&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Ad(this.view,Sn.near(this.view.state.doc.resolve(n.pos)),"pointer"),t.preventDefault()):rc(this.view,"pointer")}move(t){this.updateAllowDefault(t),rc(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Eo.touchstart=e=>{e.input.lastTouch=Date.now(),h5(e),rc(e,"pointer")};Eo.touchmove=e=>{e.input.lastTouch=Date.now(),rc(e,"pointer")};Eo.contextmenu=e=>h5(e);function DI(e,t){return e.composing?!0:Xo&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const fae=La?5e3:-1;Wo.compositionstart=Wo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),og(e,!0),e.markCursor=null;else if(og(e),Fa&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let a=i<0?o.lastChild:o.childNodes[i-1];if(!a)break;if(a.nodeType==3){e.domSelection().collapse(a,a.nodeValue.length);break}else o=a,i=-1}}e.input.composing=!0}KI(e,fae)};Wo.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,KI(e,20))};function KI(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>og(e),t))}function HI(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=dae());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function dae(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function og(e,t=!1){if(!(La&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),HI(e),t||e.docView&&e.docView.dirty){let n=c5(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}function hae(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const lp=ri&&cc<15||_d&&uie<604;Eo.copy=Wo.cut=(e,t)=>{let n=t,r=e.state.selection,o=n.type=="cut";if(r.empty)return;let i=lp?null:n.clipboardData,a=r.content(),{dom:s,text:c}=EI(e,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",c)):hae(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function pae(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function mae(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?cp(e,r.value,null,o,t):cp(e,r.textContent,r.innerHTML,o,t)},50)}function cp(e,t,n,r,o){let i=WI(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",c=>c(e,o,i||Rt.empty)))return!0;if(!i)return!1;let a=pae(i),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function GI(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Wo.paste=(e,t)=>{let n=t;if(e.composing&&!La)return;let r=lp?null:n.clipboardData,o=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&cp(e,GI(r),r.getData("text/html"),o,n)?n.preventDefault():mae(e,n)};class JI{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const zI=Hi?"altKey":"ctrlKey";Eo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=e.state.selection,i=o.empty?null:e.posAtCoords(f2(n)),a;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof Yt?o.to-1:o.to))){if(r&&r.mightDrag)a=Yt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let u=e.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=e.docView&&(a=Yt.create(e.state.doc,u.posBefore))}}let s=(a||e.state.selection).content(),{dom:c,text:l}=EI(e,s);n.dataTransfer.clearData(),n.dataTransfer.setData(lp?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",lp||n.dataTransfer.setData("text/plain",l),e.dragging=new JI(s,!n[zI],a)};Eo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};Wo.dragover=Wo.dragenter=(e,t)=>t.preventDefault();Wo.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(f2(n));if(!o)return;let i=e.state.doc.resolve(o.pos),a=r&&r.slice;a?e.someProp("transformPasted",p=>{a=p(a,e)}):a=WI(e,GI(n.dataTransfer),lp?null:n.dataTransfer.getData("text/html"),!1,i);let s=!!(r&&!n[zI]);if(e.someProp("handleDrop",p=>p(e,n,a||Rt.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let c=a?IP(e.state.doc,i.pos,a):i.pos;c==null&&(c=i.pos);let l=e.state.tr;if(s){let{node:p}=r;p?p.replace(l):l.deleteSelection()}let u=l.mapping.map(c),f=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=l.doc;if(f?l.replaceRangeWith(u,u,a.content.firstChild):l.replaceRange(u,u,a),l.doc.eq(d))return;let h=l.doc.resolve(u);if(f&&Yt.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))l.setSelection(new Yt(h));else{let p=l.mapping.map(c);l.mapping.maps[l.mapping.maps.length-1].forEach((m,A,x,R)=>p=R),l.setSelection(u5(e,h,l.doc.resolve(p)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))};Eo.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&rl(e)},20))};Eo.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};Eo.beforeinput=(e,t)=>{if(mo&&La&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",i=>i(e,nu(8,"Backspace")))))return;let{$cursor:o}=e.state.selection;o&&o.pos>0&&e.dispatch(e.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let e in Wo)Eo[e]=Wo[e];function up(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class ig{constructor(t,n){this.toDOM=t,this.spec=n||Su,this.side=this.spec.side||0}map(t,n,r,o){let{pos:i,deleted:a}=t.mapResult(n.from+o,this.side<0?-1:1);return a?null:new Pi(i-r,i-r,this)}valid(){return!0}eq(t){return this==t||t instanceof ig&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&up(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class fc{constructor(t,n){this.attrs=t,this.spec=n||Su}map(t,n,r,o){let i=t.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=a?null:new Pi(i,a,this)}valid(t,n){return n.from=t&&(!i||i(s.spec))&&r.push(s.copy(s.from+o,s.to+o))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,o+s,i)}}map(t,n,r){return this==uo||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Su)}mapInner(t,n,r,o,i){let a;for(let s=0;s{let l=c+r,u;if(u=jI(n,s,l)){for(o||(o=this.children.slice());is&&f.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let i=t+1,a=i+n.content.size;for(let s=0;si&&c.type instanceof fc){let l=Math.max(i,c.from)-i,u=Math.min(a,c.to)-i;lo.map(t,n,Su));return jl.from(r)}forChild(t,n){if(n.isLeaf)return Nr.empty;let r=[];for(let o=0;on instanceof Nr)?t:t.reduce((n,r)=>n.concat(r instanceof Nr?r:r.members),[]))}}}function vae(e,t,n,r,o,i,a){let s=e.slice();for(let l=0,u=i;l{let A=m-p-(h-d);for(let x=0;xR+u-f)continue;let y=s[x]+u-f;h>=y?s[x+1]=d<=y?-2:-1:d>=u&&A&&(s[x]+=A,s[x+1]+=A)}f+=A}),u=n.maps[l].map(u,-1)}let c=!1;for(let l=0;l=r.content.size){c=!0;continue}let d=n.map(e[l+1]+i,-1),h=d-o,{index:p,offset:m}=r.content.findIndex(f),A=r.maybeChild(p);if(A&&m==f&&m+A.nodeSize==h){let x=s[l+2].mapInner(n,A,u+1,e[l]+i+1,a);x!=uo?(s[l]=f,s[l+1]=h,s[l+2]=x):(s[l+1]=-2,c=!0)}else c=!0}if(c){let l=gae(s,e,t,n,o,i,a),u=ag(l,r,0,a);t=u.local;for(let f=0;fn&&a.to{let l=jI(e,s,c+n);if(l){i=!0;let u=ag(l,s,n+c+1,r);u!=uo&&o.push(c,c+s.nodeSize,u)}});let a=$I(i?qI(e):e,-n).sort(Mu);for(let s=0;s0;)t++;e.splice(t,0,n)}function Yy(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=uo&&t.push(r)}),e.cursorWrapper&&t.push(Nr.create(e.state.doc,[e.cursorWrapper.deco])),jl.from(t)}const Aae={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Rae=ri&&cc<=11;class yae{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class xae{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new yae,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),Rae&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Aae)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(eT(this.view)){if(this.suppressingSelectionUpdates)return rl(this.view);if(ri&&cc<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Yu(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let i=t.focusNode;i;i=sp(i))n.add(i);for(let i=t.anchorNode;i;i=sp(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&eT(t)&&!this.ignoreSelectionChange(r),i=-1,a=-1,s=!1,c=[];if(t.editable)for(let u=0;u1){let u=c.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],d=u[1];f.parentNode&&f.parentNode.parentNode==d.parentNode?d.remove():f.remove()}}let l=null;i<0&&o&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||o)&&(i>-1&&(t.docView.markDirty(i,a),bae(t)),this.handleDOMChange(i,a,s,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||rl(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;uo;A--){let x=r.childNodes[A-1],R=x.pmViewDesc;if(x.nodeName=="BR"&&!R){i=A;break}if(!R||R.size)break}let f=e.state.doc,d=e.someProp("domParser")||wd.fromSchema(e.state.schema),h=f.resolve(a),p=null,m=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:o,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:l,ruleFromNode:wae,context:h});if(l&&l[0].pos!=null){let A=l[0].pos,x=l[1]&&l[1].pos;x==null&&(x=A),p={anchor:A+a,head:x+a}}return{doc:m,sel:p,from:a,to:s}}function wae(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Xo&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||Xo&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Lae=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Oae(e,t,n,r,o){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let L=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,k=c5(e,L);if(k&&!e.state.selection.eq(k)){if(mo&&La&&e.input.lastKeyCode===13&&Date.now()-100N(e,nu(13,"Enter"))))return;let F=e.state.tr.setSelection(k);L=="pointer"?F.setMeta("pointer",!0):L=="key"&&F.scrollIntoView(),i&&F.setMeta("composition",i),e.dispatch(F)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=Mae(e,t,n),u=e.state.doc,f=u.slice(l.from,l.to),d,h;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||La)&&o.some(L=>L.nodeType==1&&!Lae.test(L.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",L=>L(e,nu(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&c instanceof Wn&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))p={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let L=fT(e,e.state.doc,l.sel);if(L&&!L.eq(e.state.selection)){let k=e.state.tr.setSelection(L);i&&k.setMeta("composition",i),e.dispatch(k)}}return}if(mo&&e.cursorWrapper&&l.sel&&l.sel.anchor==e.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let L=p.endB-p.start;l.sel={anchor:l.sel.anchor+L,head:l.sel.anchor+L}}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=l.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),ri&&cc<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=l.doc.resolveNoCache(p.start-l.from),A=l.doc.resolveNoCache(p.endB-l.from),x=u.resolve(p.start),R=m.sameParent(A)&&m.parent.inlineContent&&x.end()>=p.endA,y;if((_d&&e.input.lastIOSEnter>Date.now()-225&&(!R||o.some(L=>L.nodeName=="DIV"||L.nodeName=="P"))||!R&&m.posL(e,nu(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&kae(u,p.start,p.endA,m,A)&&e.someProp("handleKeyDown",L=>L(e,nu(8,"Backspace")))){La&&mo&&e.domObserver.suppressSelectionUpdates();return}mo&&La&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),La&&!R&&m.start()!=A.start()&&A.parentOffset==0&&m.depth==A.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,A=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{e.someProp("handleKeyDown",function(L){return L(e,nu(13,"Enter"))})},20));let g=p.start,S=p.endA,O,T,M;if(R){if(m.pos==A.pos)ri&&cc<=11&&m.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>rl(e),20)),O=e.state.tr.delete(g,S),T=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(M=Tae(m.parent.content.cut(m.parentOffset,A.parentOffset),x.parent.content.cut(x.parentOffset,p.endA-x.start()))))O=e.state.tr,M.type=="add"?O.addMark(g,S,M.mark):O.removeMark(g,S,M.mark);else if(m.parent.child(m.index()).isText&&m.index()==A.index()-(A.textOffset?0:1)){let L=m.parent.textBetween(m.parentOffset,A.parentOffset);if(e.someProp("handleTextInput",k=>k(e,g,S,L)))return;O=e.state.tr.insertText(L,g,S)}}if(O||(O=e.state.tr.replace(g,S,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let L=fT(e,O.doc,l.sel);L&&!(mo&&La&&e.composing&&L.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:u5(e,t.resolve(n.anchor),t.resolve(n.head))}function Tae(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,o=n,i=r,a,s,c;for(let u=0;uu.mark(s.addToSet(u.marks));else if(o.length==0&&i.length==1)s=i[0],a="remove",c=u=>u.mark(s.removeFromSet(u.marks));else return null;let l=[];for(let u=0;un||Qy(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let i=e.node(r).maybeChild(e.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function Pae(e,t,n,r,o){let i=e.findDiffStart(t,n);if(i==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(o=="end"){let c=Math.max(0,i-Math.min(a,s));r-=a+c-i}if(a=a?i-r:0;i-=c,i&&i=s?i-r:0;i-=c,i&&i=56320&&t<=57343&&n>=55296&&n<=56319}class Nae{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new jie,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(gT),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=mT(this),pT(this),this.nodeViews=vT(this),this.docView=GO(this.state.doc,hT(this),Yy(this),this.dom,this),this.domObserver=new xae(this,(r,o,i,a)=>Oae(this,r,o,i,a)),this.domObserver.start(),qie(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&tx(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(gT),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let o=this.state,i=!1,a=!1;t.storedMarks&&this.composing&&(HI(this),a=!0),this.state=t;let s=o.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=vT(this);Iae(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&tx(this),this.editable=mT(this),pT(this);let c=Yy(this),l=hT(this),u=o.plugins!=t.plugins&&!o.doc.eq(t.doc)?"reset":t.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(t.doc,l,c);(f||!t.selection.eq(o.selection))&&(a=!0);let d=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&hie(this);if(a){this.domObserver.stop();let h=f&&(ri||mo)&&!this.composing&&!o.selection.empty&&!t.selection.empty&&Cae(o.selection,t.selection);if(f){let p=mo?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(t.doc,l,c,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=GO(t.doc,l,c,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Wie(this))?rl(this,h):(FI(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&pie(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Yt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&QO(this,n.getBoundingClientRect(),t)}else QO(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new JI(t.slice,t.move,o<0?void 0:Yt.create(this.state.doc,o))}someProp(t,n){let r=this._props&&this._props[t],o;if(r!=null&&(o=n?n(r):r))return o;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return yie(this,t)}coordsAtPos(t,n=1){return LI(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let o=this.docView.posFromDOM(t,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(t,n){return wie(this,n||this.state,t)}pasteHTML(t,n){return cp(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return cp(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(eae(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Yy(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(t){return nae(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return Xo&&this.root.nodeType===11&&aie(this.dom.ownerDocument)==this.dom?Sae(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function hT(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[Pi.node(0,e.state.doc.content.size,t)]}function pT(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Pi.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function mT(e){return!e.someProp("editable",t=>t(e.state)===!1)}function Cae(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function vT(e){let t=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(t,o)||(t[o]=r[o])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Iae(e,t){let n=0,r=0;for(let o in e){if(e[o]!=t[o])return!0;n++}for(let o in t)r++;return n!=r}function gT(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var yc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},sg={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Fae=typeof navigator<"u"&&/Mac/.test(navigator.platform),_ae=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var no=0;no<10;no++)yc[48+no]=yc[96+no]=String(no);for(var no=1;no<=24;no++)yc[no+111]="F"+no;for(var no=65;no<=90;no++)yc[no]=String.fromCharCode(no+32),sg[no]=String.fromCharCode(no);for(var Zy in yc)sg.hasOwnProperty(Zy)||(sg[Zy]=yc[Zy]);function Xae(e){var t=Fae&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||_ae&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?sg:yc)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Eae=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Wae(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,o,i,a;for(let s=0;s127)&&(i=yc[r.keyCode])&&i!=o){let s=t[By(i,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var lg=200,Dr=function(){};Dr.prototype.append=function(t){return t.length?(t=Dr.from(t),!this.length&&t||t.length=n?Dr.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Dr.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Dr.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Dr.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,a){return o.push(t(i,a))},n,r),o};Dr.from=function(t){return t instanceof Dr?t:t&&t.length?new tF(t):Dr.empty};var tF=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new t(this.values.slice(o,i))},t.prototype.getInner=function(o){return this.values[o]},t.prototype.forEachInner=function(o,i,a,s){for(var c=i;c=a;c--)if(o(this.values[c],s+c)===!1)return!1},t.prototype.leafAppend=function(o){if(this.length+o.length<=lg)return new t(this.values.concat(o.flatten()))},t.prototype.leafPrepend=function(o){if(this.length+o.length<=lg)return new t(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Dr);Dr.empty=new tF([]);var Uae=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(o-s,0),Math.min(this.length,i)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,o,i,a){var s=this.left.length;if(o>s&&this.right.forEachInvertedInner(r,o-s,Math.max(i,s)-s,a+s)===!1||i=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},t.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new t(this.left,o)},t.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new t(o,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Dr);const Yae=500;class Ta{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let a=t.tr,s,c,l=[],u=[];return this.items.forEach((f,d)=>{if(!f.step){o||(o=this.remapping(r,d+1),i=o.maps.length),i--,u.push(f);return}if(o){u.push(new Ga(f.map));let h=f.step.map(o.slice(i)),p;h&&a.maybeStep(h).doc&&(p=a.mapping.maps[a.mapping.maps.length-1],l.push(new Ga(p,void 0,void 0,l.length+u.length))),i--,p&&o.appendMap(p,i)}else a.maybeStep(f.step);if(f.selection)return s=o?f.selection.map(o.slice(i)):f.selection,c=new Ta(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:a,selection:s}}addTransform(t,n,r,o){let i=[],a=this.eventCount,s=this.items,c=!o&&s.length?s.get(s.length-1):null;for(let u=0;uZae&&(s=Qae(s,l),a-=l),new Ta(s.append(i),a)}remapping(t,n){let r=new ud;return this.items.forEach((o,i)=>{let a=o.mirrorOffset!=null&&i-o.mirrorOffset>=t?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new Ta(this.items.append(t.map(n=>new Ga(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},o);let c=n;this.items.forEach(d=>{let h=i.getMirror(--c);if(h==null)return;a=Math.min(a,h);let p=i.maps[h];if(d.step){let m=t.steps[h].invert(t.docs[h]),A=d.selection&&d.selection.map(i.slice(c+1,h));A&&s++,r.push(new Ga(p,m,A))}else r.push(new Ga(p))},o);let l=[];for(let d=n;dYae&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,o=[],i=0;return this.items.forEach((a,s)=>{if(s>=t)o.push(a),a.selection&&i++;else if(a.step){let c=a.step.map(n.slice(r)),l=c&&c.getMap();if(r--,l&&n.appendMap(l,r),c){let u=a.selection&&a.selection.map(n.slice(r));u&&i++;let f=new Ga(l.invert(),c,u),d,h=o.length-1;(d=o.length&&o[h].merge(f))?o[h]=d:o.push(f)}}else a.map&&r--},this.items.length,0),new Ta(Dr.from(o.reverse()),i)}}Ta.empty=new Ta(Dr.empty,0);function Qae(e,t){let n;return e.forEach((r,o)=>{if(r.selection&&t--==0)return n=o,!1}),e.slice(n)}class Ga{constructor(t,n,r,o){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=o}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Ga(n.getMap().invert(),n,this.selection)}}}class Hl{constructor(t,n,r,o,i){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const Zae=20;function Bae(e,t,n,r){let o=n.getMeta(dc),i;if(o)return o.historyState;n.getMeta(Kae)&&(e=new Hl(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(dc))return a.getMeta(dc).redo?new Hl(e.done.addTransform(n,void 0,r,tv(t)),e.undone,RT(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new Hl(e.done,e.undone.addTransform(n,void 0,r,tv(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),c=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!Dae(n,e.prevRanges)),l=a?Dy(e.prevRanges,n.mapping):RT(n.mapping.maps[n.steps.length-1]);return new Hl(e.done.addTransform(n,c?t.selection.getBookmark():void 0,r,tv(t)),Ta.empty,l,n.time,s??e.prevComposition)}else return(i=n.getMeta("rebased"))?new Hl(e.done.rebased(n,i),e.undone.rebased(n,i),Dy(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Hl(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),Dy(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Dae(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,o)=>{for(let i=0;i=t[i]&&(n=!0)}),n}function RT(e){let t=[];return e.forEach((n,r,o,i)=>t.push(o,i)),t}function Dy(e,t){if(!e)return null;let n=[];for(let r=0;r{let n=dc.getState(e);return!n||n.done.eventCount==0?!1:(t&&nF(n,e,t,!1),!0)},oF=(e,t)=>{let n=dc.getState(e);return!n||n.undone.eventCount==0?!1:(t&&nF(n,e,t,!0),!0)};function Gae(e={}){return new Zd({view(t){return new Jae(t,e)}})}class Jae{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=a=>{this[o](a)};return t.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,c=t.nodeAfter;if(s||c){let l=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(l){let u=l.getBoundingClientRect(),f=s?u.bottom:u.top;s&&c&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,a;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,a=-pageYOffset;else{let s=o.getBoundingClientRect();i=s.left-o.scrollLeft,a=s.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,t):o;if(n&&!i){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=IP(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}class yr extends Sn{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return yr.valid(r)?new yr(r):Sn.near(r)}content(){return Rt.empty}eq(t){return t instanceof yr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new yr(t.resolve(n.pos))}getBookmark(){return new v5(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!zae(t)||!$ae(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(t.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&yr.valid(t))return t;let o=t.pos,i=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){i=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;o+=n;let c=t.doc.resolve(o);if(yr.valid(c))return c}for(;;){let a=n>0?i.firstChild:i.lastChild;if(!a){if(i.isAtom&&!i.isText&&!Yt.isSelectable(i)){t=t.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=a,o+=n;let s=t.doc.resolve(o);if(yr.valid(s))return s}return null}}}yr.prototype.visible=!1;yr.findFrom=yr.findGapCursorFrom;Sn.jsonID("gapcursor",yr);class v5{constructor(t){this.pos=t}map(t){return new v5(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return yr.valid(n)?new yr(n):Sn.near(n)}}function zae(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function $ae(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function jae(){return new Zd({props:{decorations:nse,createSelectionBetween(e,t,n){return t.pos==n.pos&&yr.valid(n)?new yr(n):null},handleClick:ese,handleKeyDown:qae,handleDOMEvents:{beforeinput:tse}}})}const qae=eF({ArrowLeft:xm("horiz",-1),ArrowRight:xm("horiz",1),ArrowUp:xm("vert",-1),ArrowDown:xm("vert",1)});function xm(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,o,i){let a=r.selection,s=t>0?a.$to:a.$from,c=a.empty;if(a instanceof Wn){if(!i.endOfTextblock(n)||s.depth==0)return!1;c=!1,s=r.doc.resolve(t>0?s.after():s.before())}let l=yr.findGapCursorFrom(s,t,c);return l?(o&&o(r.tr.setSelection(new yr(l))),!0):!1}}function ese(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!yr.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Yt.isSelectable(e.state.doc.nodeAt(o.inside))?!1:(e.dispatch(e.state.tr.setSelection(new yr(r))),!0)}function tse(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof yr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=ct.empty;for(let a=r.length-1;a>=0;a--)o=ct.from(r[a].createAndFill(null,o));let i=e.state.tr.replace(n.pos,n.pos,new Rt(o,0,0));return i.setSelection(Wn.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function nse(e){if(!(e.selection instanceof yr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Nr.create(e.doc,[Pi.widget(e.selection.head,t,{key:"gapcursor"})])}const rse=["li",0],ose={parseDOM:[{tag:"li"}],toDOM(){return rse},defining:!0};function ise(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=!1,c=a;if(!a)return!1;if(a.depth>=2&&o.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(o.index(a.depth-1)==0)return!1;let u=n.doc.resolve(a.start-2);c=new Lv(u,u,a.depth),a.endIndex=0;u--)i=ct.from(n[u].type.create(n[u].attrs,i));e.step(new oo(t.start-(r?2:0),t.end,t.start,t.end,new Rt(i,0,0),n.length,!0));let a=0;for(let u=0;u=o.depth-3;x--)f=ct.from(o.node(x).copy(f));let h=o.indexAfter(-1){if(A>-1)return!1;x.isTextblock&&x.content.size==0&&(A=R+1)}),A>-1&&m.setSelection(Sn.near(m.doc.resolve(A))),r(m.scrollIntoView())}return!0}let c=i.pos==o.end()?s.contentMatchAt(0).defaultType:null,l=n.tr.delete(o.pos,i.pos),u=c?[t?{type:e,attrs:t}:null,{type:c}]:void 0;return fd(l.doc,o.pos,2,u)?(r&&r(l.split(o.pos,2,u).scrollIntoView()),!0):!1}}function iF(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,a=>a.childCount>0&&a.firstChild.type==e);return i?n?r.node(i.depth-1).type==e?lse(t,n,e,i):cse(t,n,i):!0:!1}}function lse(e,t,n,r){let o=e.tr,i=r.end,a=r.$to.end(r.depth);im;p--)h-=o.child(p).nodeSize,r.delete(h-1,h+1);let i=r.doc.resolve(n.start),a=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==o.childCount,l=i.node(-1),u=i.index(-1);if(!l.canReplace(u+(s?0:1),u+1,a.content.append(c?ct.empty:ct.from(o))))return!1;let f=i.pos,d=f+a.nodeSize;return r.step(new oo(f-(s?1:0),d+(c?1:0),f+1,d-1,new Rt((s?ct.empty:ct.from(o.copy(ct.empty))).append(c?ct.empty:ct.from(o.copy(ct.empty))),s?0:1,c?0:1),s?0:1)),t(r.scrollIntoView()),!0}function xT(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,l=>l.childCount>0&&l.firstChild.type==e);if(!i)return!1;let a=i.startIndex;if(a==0)return!1;let s=i.parent,c=s.child(a-1);if(c.type!=e)return!1;if(n){let l=c.lastChild&&c.lastChild.type==s.type,u=ct.from(l?e.create():null),f=new Rt(ct.from(e.create(null,ct.from(s.type.create(null,u)))),l?3:1,0),d=i.start,h=i.end;n(t.tr.step(new oo(d-(l?3:1),h,d,h,f,1,!0)).scrollIntoView())}return!0}}class dl{constructor(t,n,r={}){this.match=t,this.match=t,this.handler=typeof n=="string"?use(n):n,this.undoable=r.undoable!==!1}}function use(e){return function(t,n,r,o){let i=e;if(n[1]){let a=n[0].lastIndexOf(n[1]);i+=n[0].slice(a+n[1].length),r+=a;let s=r-o;s>0&&(i=n[0].slice(a-s,a)+i,r=o)}return t.tr.insertText(i,r,o)}}const fse=500;function dse({rules:e}){let t=new Zd({state:{init(){return null},apply(n,r){let o=n.getMeta(this);return o||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,o,i){return bT(n,r,o,i,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&bT(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function bT(e,t,n,r,o,i){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t);if(s.parent.type.spec.code)return!1;let c=s.parent.textBetween(Math.max(0,s.parentOffset-fse),s.parentOffset,null,"")+r;for(let l=0;l{let n=e.plugins;for(let r=0;r=0;c--)a.step(s.steps[c].invert(s.docs[c]));if(i.text){let c=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,e.schema.text(i.text,c))}else a.delete(i.from,i.to);t(a)}return!0}}return!1},pse=new dl(/--$/,"—"),mse=new dl(/\.\.\.$/,"…"),vse=new dl(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),gse=new dl(/"$/,"”"),Ase=new dl(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),Rse=new dl(/'$/,"’"),yse=[vse,gse,Ase,Rse];function g5(e,t,n=null,r){return new dl(e,(o,i,a,s)=>{let c=n instanceof Function?n(i):n,l=o.tr.delete(a,s),u=l.doc.resolve(a),f=u.blockRange(),d=f&&sb(f,t,c);if(!d)return null;l.wrap(f,d);let h=l.doc.resolve(a-1).nodeBefore;return h&&h.type==t&&Qd(l.doc,a-1)&&(!r||r(i,h))&&l.join(a-1),l})}const xse=e=>{const t={},n=(r,o)=>t[r]=o;return n("Alt-ArrowUp",DH),n("Alt-ArrowDown",KH),n("Mod-z",rF),n("Mod-y",oF),n("Backspace",hse),n("Escape",$H),n("Mod-b",Pr(e.marks.strong)),n("Mod-i",Pr(e.marks.em)),n("Mod-u",Pr(e.marks.underline)),n("Mod-d",Pr(e.marks.strikethrough)),n("Mod-e",Pr(e.marks.code)),n("Mod-;",Pr(e.marks.superscript)),n("Mod-'",Pr(e.marks.subscript)),n("Enter",Vg(sse(e.nodes.list_item),BP,DP,KP,zH)),n("Mod-[",iF(e.nodes.list_item)),n("Mod-]",xT(e.nodes.list_item)),n("Tab",xT(e.nodes.list_item)),t},bse=e=>g5(/^\s*>\s$/,e),Sse=e=>g5(/^(\d+)\.\s$/,e,t=>({order:+t[1]}),(t,n)=>n.childCount+n.attrs.order===+t[1]),Mse=e=>g5(/^\s*([-+*])\s$/,e),wse=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new dl(e,(t,n,r,o)=>{const{schema:i}=t,a=t.tr.insertText(`${n[2]} `,r,o),s=i.marks.code.create();return a.addMark(r,r+n[2].length,s)})},Lse=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new dl(e,(t,n,r,o)=>{const{schema:i}=t,a=t.tr.insertText(n[0],r,o),s=i.marks.link.create({href:n[0],title:n[0]});return a.addMark(r,r+n[0].length,s)})},Ose=e=>{const t=[...yse,mse,pse];return t.push(bse(e.nodes.blockquote)),t.push(Sse(e.nodes.ordered_list)),t.push(Mse(e.nodes.bullet_list)),t.push(wse()),t.push(Lse()),dse({rules:t})},Tse=e=>e.type.name==="paragraph"&&e.nodeSize===2,kse=e=>new Zd({props:{decorations(t){const{$from:n}=t.selection;if(Tse(n.parent)){const r=Pi.node(n.before(),n.after(),{"data-placeholder":e});return Nr.create(t.doc,[r])}}}}),Pse=(e,t)=>{const n=t==null?void 0:t.placeholder,r=[Ose(e),AT(xse(e)),AT(oG),Gae(),jae(),Hae()];return n&&r.push(kse(n)),r},Nse=["p",0],Cse=["blockquote",0],Ise=["hr"],Fse=["pre",["code",0]],_se=["br"],aF={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return Nse}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return Cse}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return Ise}},heading:{attrs:{level:{default:1}},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(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return Fse}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM(e){let{src:t,alt:n,title:r}=e.attrs;return["img",{src:t,alt:n,title:r}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return _se}}},Xse=["em",0],Ese=["strong",0],Wse=["code",0],sF={link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM(e){let{href:t,title:n}=e.attrs;return["a",{href:t,title:n},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>e.type.name=="em"}],toDOM(){return Xse}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name=="strong"},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM(){return Ese}},code:{parseDOM:[{tag:"code"}],toDOM(){return Wse}}};new SP({nodes:aF,marks:sF});const Vse={attrs:{order:{default:1},listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>{const n={order:+((e.hasAttribute("start")?e.getAttribute("start"):1)||1)},{listStyleType:r,fontSize:o,color:i}=e.style;return r&&(n.listStyleType=r),o&&(n.fontsize=o),i&&(n.color=i),n}}],toDOM:e=>{const{order:t,listStyleType:n,fontsize:r,color:o}=e.attrs;let i="";n&&(i+=`list-style-type: ${n};`),r&&(i+=`font-size: ${r};`),o&&(i+=`color: ${o};`);const a={style:i};return t!==1&&(a.start=t),["ol",a,0]}},Use={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:n,fontSize:r,color:o}=e.style;return n&&(t.listStyleType=n),r&&(t.fontsize=r),o&&(t.color=o),t}}],toDOM:e=>{const{listStyleType:t,fontsize:n,color:r}=e.attrs;let o="";return t&&(o+=`list-style-type: ${t};`),n&&(o+=`font-size: ${n};`),r&&(o+=`color: ${r};`),["ul",{style:o},0]}},Yse={...ose,content:"paragraph block*",group:"block"},Qse={attrs:{align:{default:""},indent:{default:0},textIndent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:e=>{const{textAlign:t,textIndent:n}=e.style;let r=e.getAttribute("align")||t||"";r=/(left|right|center|justify)/.test(r)?r:"";let o=0;n&&(/em/.test(n)?o=parseInt(n):/px/.test(n)&&(o=Math.floor(parseInt(n)/20),o||(o=1)));const i=+(e.getAttribute("data-indent")||0);return{align:r,indent:i,textIndent:o}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:n,textIndent:r}=e.attrs;let o="";t&&t!=="left"&&(o+=`text-align: ${t};`),r&&(o+=`text-indent: ${r*20}px;`);const i={style:o};return n&&(i["data-indent"]=n),["p",i,0]}},{doc:Zse,blockquote:Bse,text:Dse}=aF,Kse={doc:Zse,paragraph:Qse,blockquote:Bse,text:Dse,ordered_list:Vse,bullet_list:Use,list_item:Yse},Hse={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>e==="sub"&&null}],toDOM:()=>["sub",0]},Gse={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>e==="super"&&null}],toDOM:()=>["sup",0]},Jse={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:e=>e==="line-through"&&null},{style:"text-decoration-line",getAttrs:e=>e==="line-through"&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},zse={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:e=>e==="underline"&&null},{style:"text-decoration-line",getAttrs:e=>e==="underline"&&null}],toDOM:()=>["span",{style:"text-decoration: underline;"},0]},$se={attrs:{color:{}},inline:!0,group:"inline",parseDOM:[{style:"color",getAttrs:e=>e?{color:e}:{}}],toDOM:e=>{const{color:t}=e.attrs;let n="";return t&&(n+=`color: ${t};`),["span",{style:n},0]}},jse={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{style:"background-color",getAttrs:e=>e?{backcolor:e}:{}}],toDOM:e=>{const{backcolor:t}=e.attrs;let n="";return t&&(n+=`background-color: ${t};`),["span",{style:n},0]}},qse={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:e=>e?{fontsize:e}:{}}],toDOM:e=>{const{fontsize:t}=e.attrs;let n="";return t&&(n+=`font-size: ${t};`),["span",{style:n},0]}},ele={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:e=>({fontname:e&&typeof e=="string"?e.replace(/[\"\']/g,""):""})}],toDOM:e=>{const{fontname:t}=e.attrs;let n="";return t&&(n+=`font-family: ${t};`),["span",{style:n},0]}},tle={attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href"),n=e.getAttribute("title");return{href:t,title:n}}}],toDOM:e=>["a",e.attrs,0]},nle={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>({index:e.dataset.index})}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:rle,strong:ole,code:ile}=sF,ale={em:rle,strong:ole,fontsize:qse,fontname:ele,code:ile,forecolor:$se,backcolor:jse,subscript:Hse,superscript:Gse,strikethrough:Jse,underline:zse,link:tle,mark:nle},sle=Kse,lle=ale,lF=new SP({nodes:sle,marks:lle}),A5=e=>{const t=`
    ${e}
    `,r=new window.DOMParser().parseFromString(t,"text/html").body.firstElementChild;return wd.fromSchema(lF).parse(r)},cF=(e,t,n,r)=>new Nae(e,{state:Gf.create({doc:A5(t),plugins:Pse(lF,r)}),...n});function cle(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}var Vr=(e=>(e.RICH_TEXT_COMMAND="RICH_TEXT_COMMAND",e.SYNC_RICH_TEXT_ATTRS_TO_STORE="SYNC_RICH_TEXT_ATTRS_TO_STORE",e.OPEN_CHART_DATA_EDITOR="OPEN_CHART_DATA_EDITOR",e.OPEN_LATEX_EDITOR="OPEN_LATEX_EDITOR",e))(Vr||{});const Br=cle(),ule=(e,t,n)=>{const{selection:r,doc:o}=e;if(!r||!o)return e;const{from:i,to:a}=r,{nodes:s}=t,c=s.blockquote,l=s.list_item,u=s.paragraph,f=[];n=n||"";const d=new Set([c,l,u]);return o.nodesBetween(i,a,(h,p)=>{const m=h.type;return(h.attrs.align||"")!==n&&d.has(m)&&f.push({node:h,pos:p,nodeType:m}),!0}),f.length&&f.forEach(h=>{const{node:p,pos:m,nodeType:A}=h;let{attrs:x}=p;n?x={...x,align:n}:x={...x,align:null},e=e.setNodeMarkup(m,A,x,p.marks)}),e},fle=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=ule(n.tr.setSelection(o),r,t);e.dispatch(i)};function dle(e,t,n,r){if(!e.doc)return e;const o=e.doc.nodeAt(t);if(!o)return e;const i=0,a=8;let s=(o.attrs[r]||0)+n;if(sa&&(s=a),s===o.attrs[r])return e;const c={...o.attrs,[r]:s};return e.setNodeMarkup(t,o.type,c,o.marks)}const uF=(e,t,n,r)=>{const{selection:o,doc:i}=e;if(!o||!i||!(o instanceof Wn||o instanceof ei))return e;const{from:a,to:s}=o;return i.nodesBetween(a,s,(c,l)=>{const u=c.type;return u.name==="paragraph"||u.name==="blockquote"?(e=dle(e,l,n,r),!1):!Pv(c,t)}),e},hle=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=uF(n.tr.setSelection(o),r,t,"indent");return i.docChanged?(e.dispatch(i),!0):!1},ple=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=uF(n.tr.setSelection(o),r,t,"textIndent");return i.docChanged?(e.dispatch(i),!0):!1},cg=(e,t,n,r={})=>(o,i)=>{const{schema:a,selection:s}=o,{$from:c,$to:l}=s,u=c.blockRange(l);if(!u)return!1;const f=jP(h=>Pv(h,a))(s);if(u.depth>=1&&f&&u.depth-f.depth<=1){if(f.node.type===e&&!n)return iF(t)(o,i);if(Pv(f.node,a)&&e.validContent(f.node.content)){const{tr:h}=o,p={...f.node.attrs,...r};return n&&(p.listStyleType=n),h.setNodeMarkup(f.pos,e,p),i&&i(h),!1}}const d={...r};return n&&(d.listStyleType=n),ise(e,d)(o,i)},x0=(e,t)=>{const{state:n}=e,{schema:r,selection:o}=n,i=n.tr.setSelection(o),{doc:a}=i;if(!a)return i;const{from:s,to:c}=o;a.nodesBetween(s,c,(l,u)=>{if(Pv(l,r)&&s-3<=u&&c+3>=u+l.nodeSize){const f=Array.isArray(t)?t:[t];for(const d of f)i.setNodeAttribute(u,d.key,d.value)}return!1}),e.dispatch(i)},mle=Fe({__name:"ProsemirrorEditor",props:{elementId:{},defaultColor:{},defaultFontName:{},value:{},editable:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur","mousedown"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=dt(),{handleElementId:a,textFormatPainter:s,richTextAttrs:c}=Xe(i),l=ve();let u;const f=Xn.debounce(function(){o("update",u.dom.innerHTML)},300,{trailing:!0}),d=()=>{i.setDisableHotkeysState(!0),o("focus")},h=()=>{i.setDisableHotkeysState(!1),o("blur")},p=Xn.debounce(function(){const S=Z4(u,{color:r.defaultColor,fontname:r.defaultFontName});i.setRichtextAttrs(S)},30,{trailing:!0}),m=()=>{f(),p()},A=Se(()=>r.value);Tt(A,()=>{if(!u||u.hasFocus())return;const{doc:S,tr:O}=u.state;u.dispatch(O.replaceRangeWith(0,S.content.size,A5(A.value)))}),Tt(()=>r.editable,()=>{u.setProps({editable:()=>r.editable})}),t({focus:()=>u.focus()});const R=({target:S,action:O})=>{if(!S&&a.value!==r.elementId||S&&S!==r.elementId)return;const T="command"in O?[O]:O;for(const M of T)if(M.command==="fontname"&&M.value){const L=u.state.schema.marks.fontname.create({fontname:M.value});Er(u),Ha(u,L)}else if(M.command==="fontsize"&&M.value){const L=u.state.schema.marks.fontsize.create({fontsize:M.value});Er(u),Ha(u,L),x0(u,{key:"fontsize",value:M.value})}else if(M.command==="fontsize-add"){const L=M.value?+M.value:2;Er(u);const k=SM(u)+L+"px",F=u.state.schema.marks.fontsize.create({fontsize:k});Ha(u,F),x0(u,{key:"fontsize",value:k})}else if(M.command==="fontsize-reduce"){const L=M.value?+M.value:2;Er(u);let k=SM(u)-L;k<12&&(k=12);const F=u.state.schema.marks.fontsize.create({fontsize:k+"px"});Ha(u,F),x0(u,{key:"fontsize",value:k+"px"})}else if(M.command==="color"&&M.value){const L=u.state.schema.marks.forecolor.create({color:M.value});Er(u),Ha(u,L),x0(u,{key:"color",value:M.value})}else if(M.command==="backcolor"&&M.value){const L=u.state.schema.marks.backcolor.create({backcolor:M.value});Er(u),Ha(u,L)}else if(M.command==="bold")Er(u),Pr(u.state.schema.marks.strong)(u.state,u.dispatch);else if(M.command==="em")Er(u),Pr(u.state.schema.marks.em)(u.state,u.dispatch);else if(M.command==="underline")Er(u),Pr(u.state.schema.marks.underline)(u.state,u.dispatch);else if(M.command==="strikethrough")Er(u),Pr(u.state.schema.marks.strikethrough)(u.state,u.dispatch);else if(M.command==="subscript")Pr(u.state.schema.marks.subscript)(u.state,u.dispatch);else if(M.command==="superscript")Pr(u.state.schema.marks.superscript)(u.state,u.dispatch);else if(M.command==="blockquote")Em("blockquote",u.state)?HH(u.state,u.dispatch):tG(u.state.schema.nodes.blockquote)(u.state,u.dispatch);else if(M.command==="code")Pr(u.state.schema.marks.code)(u.state,u.dispatch);else if(M.command==="align"&&M.value)fle(u,M.value);else if(M.command==="indent"&&M.value)hle(u,+M.value);else if(M.command==="textIndent"&&M.value)ple(u,+M.value);else if(M.command==="bulletList"){const L=M.value||"",{bullet_list:k,list_item:F}=u.state.schema.nodes,N={color:c.value.color,fontsize:c.value.fontsize};cg(k,F,L,N)(u.state,u.dispatch)}else if(M.command==="orderedList"){const L=M.value||"",{ordered_list:k,list_item:F}=u.state.schema.nodes,N={color:c.value.color,fontsize:c.value.fontsize};cg(k,F,L,N)(u.state,u.dispatch)}else if(M.command==="clear"){Er(u);const{$from:L,$to:k}=u.state.selection;u.dispatch(u.state.tr.removeMark(L.pos,k.pos)),x0(u,[{key:"fontsize",value:""},{key:"color",value:""}])}else if(M.command==="link"){const L=u.state.schema.marks.link,{from:k,to:F}=u.state.selection,N=iG(u.state.doc,k,F,L);if(N)if(M.value){const E=u.state.schema.marks.link.create({href:M.value,title:M.value});Ha(u,E,{from:N.from.pos,to:N.to.pos+1})}else u.dispatch(u.state.tr.removeMark(N.from.pos,N.to.pos+1,L));else if(cG(u.state,L))if(M.value){const E=u.state.schema.marks.link.create({href:M.value,title:M.value});Ha(u,E)}else Pr(L)(u.state,u.dispatch);else M.value&&(Er(u),Pr(L,{href:M.value,title:M.value})(u.state,u.dispatch))}else M.command==="insert"&&M.value&&u.dispatch(u.state.tr.insertText(M.value));u.focus(),f(),p()},y=()=>{if(!s.value)return;const{keep:S,...O}=s.value,T=[{command:"clear"}];for(const M of Object.keys(O)){const L=M,k=s.value[M];k===!0?T.push({command:L}):k&&T.push({command:L,value:k})}R({action:T}),S||i.setTextFormatPainter(null)};Gt(()=>{u=cF(l.value,A.value,{handleDOMEvents:{focus:d,blur:h,keydown:m,click:p,mouseup:y},editable:()=>r.editable}),r.autoFocus&&u.focus()}),Pn(()=>{u&&u.destroy()});const g=()=>{a.value===r.elementId&&p()};return Br.on(Vr.RICH_TEXT_COMMAND,R),Br.on(Vr.SYNC_RICH_TEXT_ATTRS_TO_STORE,g),Pn(()=>{Br.off(Vr.RICH_TEXT_COMMAND,R),Br.off(Vr.SYNC_RICH_TEXT_ATTRS_TO_STORE,g)}),(S,O)=>(Q(),ee("div",{class:qe(["prosemirror-editor",{"format-painter":H(s)}]),ref_key:"editorViewRef",ref:l,onMousedown:O[0]||(O[0]=T=>o("mousedown",T))},null,34))}}),fF=Ee(mle,[["__scopeId","data-v-23fdc807"]]),dF=e=>(on("data-v-88c920e1"),e=e(),an(),e),vle=dF(()=>Y("div",{class:"drag-handler top"},null,-1)),gle=dF(()=>Y("div",{class:"drag-handler bottom"},null,-1)),Ale=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=dt(),r=ut(),{handleElementId:o,isScaling:i}=Xe(n),{addHistorySnapshot:a}=Jt(),s=ve(),c=Se(()=>t.elementInfo.shadow),{shadowStyle:l}=Oc(c),u=(R,y=!0)=>{t.elementInfo.lock||(R.stopPropagation(),t.selectElement(R,t.elementInfo,y))},f=ve(-1),d=ve(-1);Tt(i,()=>{o.value===t.elementInfo.id&&(i.value||(!t.elementInfo.vertical&&f.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:f.value}}),f.value=-1),t.elementInfo.vertical&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{width:d.value}}),d.value=-1)))});const h=R=>{const y=R[0].contentRect;if(!s.value)return;const g=y.height+20,S=y.width+20;!t.elementInfo.vertical&&t.elementInfo.height!==g&&(i.value?f.value=g:r.updateElement({id:t.elementInfo.id,props:{height:g}})),t.elementInfo.vertical&&t.elementInfo.width!==S&&(i.value?d.value=S:r.updateElement({id:t.elementInfo.id,props:{width:S}}))},p=new ResizeObserver(h);Gt(()=>{s.value&&p.observe(s.value)}),Pn(()=>{s.value&&p.unobserve(s.value)});const m=R=>{r.updateElement({id:t.elementInfo.id,props:{content:R}}),a()},A=Xn.debounce(function(){t.elementInfo.content.replace(/<[^>]+>/g,"")||r.deleteElement(t.elementInfo.id)},300,{trailing:!0}),x=Se(()=>o.value===t.elementInfo.id);return Tt(x,()=>{x.value||A()}),(R,y)=>{const g=Tn("contextmenu");return Q(),ee("div",{class:qe(["editable-element-text",{lock:R.elementInfo.lock}]),style:we({top:R.elementInfo.top+"px",left:R.elementInfo.left+"px",width:R.elementInfo.width+"px",height:R.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${R.elementInfo.rotate}deg)`})},[Qe((Q(),ee("div",{class:"element-content",ref_key:"elementRef",ref:s,style:we({width:R.elementInfo.vertical?"auto":R.elementInfo.width+"px",height:R.elementInfo.vertical?R.elementInfo.height+"px":"auto",backgroundColor:R.elementInfo.fill,opacity:R.elementInfo.opacity,textShadow:H(l),lineHeight:R.elementInfo.lineHeight,letterSpacing:(R.elementInfo.wordSpace||0)+"px",color:R.elementInfo.defaultColor,fontFamily:R.elementInfo.defaultFontName,writingMode:R.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:y[2]||(y[2]=S=>u(S)),onTouchstart:y[3]||(y[3]=S=>u(S))},[w(l2,{width:R.elementInfo.width,height:R.elementInfo.height,outline:R.elementInfo.outline},null,8,["width","height","outline"]),w(fF,{class:"text",elementId:R.elementInfo.id,defaultColor:R.elementInfo.defaultColor,defaultFontName:R.elementInfo.defaultFontName,editable:!R.elementInfo.lock,value:R.elementInfo.content,style:we({"--paragraphSpace":`${R.elementInfo.paragraphSpace===void 0?5:R.elementInfo.paragraphSpace}px`}),onUpdate:y[0]||(y[0]=S=>m(S)),onMousedown:y[1]||(y[1]=S=>u(S,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),vle,gle],36)),[[g,R.contextmenus]])],4)],6)}}}),hF=Ee(Ale,[["__scopeId","data-v-88c920e1"]]),Rle=["id","gradientTransform"],yle=["stop-color"],xle=["stop-color"],ble=["id"],Sle=["stop-color"],Mle=["stop-color"],pF=Fe({__name:"GradientDefs",props:{id:{},type:{},color1:{},color2:{},rotate:{default:0}},setup(e){return(t,n)=>t.type==="linear"?(Q(),ee("linearGradient",{key:0,id:t.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${t.rotate},0.5,0.5)`},[Y("stop",{offset:"0%","stop-color":t.color1},null,8,yle),Y("stop",{offset:"100%","stop-color":t.color2},null,8,xle)],8,Rle)):(Q(),ee("radialGradient",{key:1,id:t.id},[Y("stop",{offset:"0%","stop-color":t.color1},null,8,Sle),Y("stop",{offset:"100%","stop-color":t.color2},null,8,Mle)],8,ble))}}),wle=["width","height"],Lle={key:0},Ole=["transform"],Tle=["d","fill","stroke","stroke-width","stroke-dasharray"],kle=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=dt(),r=ut(),{handleElementId:o,shapeFormatPainter:i}=Xe(n),{addHistorySnapshot:a}=Jt(),s=(M,L=!0)=>{t.elementInfo.lock||(M.stopPropagation(),t.selectElement(M,t.elementInfo,L))},c=()=>{if(!i.value)return;const{keep:M,...L}=i.value;r.updateElement({id:t.elementInfo.id,props:L}),a(),M||n.setShapeFormatPainter(null)},l=Se(()=>t.elementInfo.outline),{outlineWidth:u,outlineColor:f,strokeDashArray:d}=zd(l),h=Se(()=>t.elementInfo.shadow),{shadowStyle:p}=Oc(h),m=Se(()=>t.elementInfo.flipH),A=Se(()=>t.elementInfo.flipV),{flipStyle:x}=s2(m,A),R=ve(!1);Tt(o,()=>{o.value!==t.elementInfo.id&&R.value&&(R.value=!1)});const y=Se(()=>{const M={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:M}),g=M=>{const L={...y.value,content:M};r.updateElement({id:t.elementInfo.id,props:{text:L}}),a()},S=()=>{if(!t.elementInfo.text)return;t.elementInfo.text.content.replace(/<[^>]+>/g,"")||(r.removeElementProps({id:t.elementInfo.id,propName:"text"}),a())},O=ve(),T=()=>{R.value=!0,Ur(()=>O.value&&O.value.focus())};return(M,L)=>{const k=Tn("contextmenu");return Q(),ee("div",{class:qe(["editable-element-shape",{lock:M.elementInfo.lock,"format-painter":H(i)}]),style:we({top:M.elementInfo.top+"px",left:M.elementInfo.left+"px",width:M.elementInfo.width+"px",height:M.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${M.elementInfo.rotate}deg)`})},[Qe((Q(),ee("div",{class:"element-content",style:we({opacity:M.elementInfo.opacity,filter:H(p)?`drop-shadow(${H(p)})`:"",transform:H(x),color:y.value.defaultColor,fontFamily:y.value.defaultFontName}),onMousedown:L[3]||(L[3]=F=>s(F)),onMouseup:L[4]||(L[4]=F=>c()),onTouchstart:L[5]||(L[5]=F=>s(F)),onDblclick:L[6]||(L[6]=F=>T())},[(Q(),ee("svg",{overflow:"visible",width:M.elementInfo.width,height:M.elementInfo.height},[M.elementInfo.gradient?(Q(),ee("defs",Lle,[w(pF,{id:`editabel-gradient-${M.elementInfo.id}`,type:M.elementInfo.gradient.type,color1:M.elementInfo.gradient.color[0],color2:M.elementInfo.gradient.color[1],rotate:M.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Ze("",!0),Y("g",{transform:`scale(${M.elementInfo.width/M.elementInfo.viewBox[0]}, ${M.elementInfo.height/M.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[Y("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:M.elementInfo.path,fill:M.elementInfo.gradient?`url(#editabel-gradient-${M.elementInfo.id})`:M.elementInfo.fill,stroke:H(f),"stroke-width":H(u),"stroke-dasharray":H(d)},null,8,Tle)],8,Ole)],8,wle)),Y("div",{class:qe(["shape-text",[y.value.align,{editable:R.value||y.value.content}]])},[R.value||y.value.content?(Q(),Le(fF,{key:0,ref_key:"prosemirrorEditorRef",ref:O,elementId:M.elementInfo.id,defaultColor:y.value.defaultColor,defaultFontName:y.value.defaultFontName,editable:!M.elementInfo.lock,value:y.value.content,onUpdate:L[0]||(L[0]=F=>g(F)),onBlur:L[1]||(L[1]=F=>S()),onMousedown:L[2]||(L[2]=F=>s(F,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Ze("",!0)],2)],36)),[[k,M.contextmenus]])],4)],6)}}}),mF=Ee(kle,[["__scopeId","data-v-63255815"]]),Ple=["id","markerWidth","markerHeight","refX","refY"],Nle=["d","fill","transform"],Xd=Fe({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(e){const t=e,n={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},r={"arrow-start":180,"arrow-end":0},o=Se(()=>n[t.type]),i=Se(()=>r[`${t.type}-${t.position}`]||0),a=Se(()=>t.baseSize<2?2:t.baseSize);return(s,c)=>(Q(),ee("marker",{id:`${s.id}-${s.type}-${s.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:a.value*3,markerHeight:a.value*3,refX:a.value*1.5,refY:a.value*1.5},[Y("path",{d:o.value,fill:s.color,transform:`scale(${a.value*.3}, ${a.value*.3}) rotate(${i.value}, 5, 5)`},null,8,Nle)],8,Ple))}}),Cle=["width","height"],Ile=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Fle=["d"],_le=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=l=>{t.elementInfo.lock||(l.stopPropagation(),t.selectElement(l,t.elementInfo))},r=Se(()=>t.elementInfo.shadow),{shadowStyle:o}=Oc(r),i=Se(()=>{const l=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return l<24?24:l}),a=Se(()=>{const l=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return l<24?24:l}),s=Se(()=>{if(t.elementInfo.style!=="dashed")return"0 0";const l=t.elementInfo.width;return l<=8?`${l*5} ${l*2.5}`:`${l*5} ${l*1.5}`}),c=Se(()=>Tb(t.elementInfo));return(l,u)=>{const f=Tn("contextmenu");return Q(),ee("div",{class:qe(["editable-element-shape",{lock:l.elementInfo.lock}]),style:we({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[Y("div",{class:"element-content",style:we({filter:H(o)?`drop-shadow(${H(o)})`:""}),onMousedown:u[0]||(u[0]=d=>n(d)),onTouchstart:u[1]||(u[1]=d=>n(d))},[(Q(),ee("svg",{overflow:"visible",width:i.value,height:a.value},[Y("defs",null,[l.elementInfo.points[0]?(Q(),Le(Xd,{key:0,id:l.elementInfo.id,position:"start",type:l.elementInfo.points[0],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0),l.elementInfo.points[1]?(Q(),Le(Xd,{key:1,id:l.elementInfo.id,position:"end",type:l.elementInfo.points[1],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0)]),Y("path",{class:"line-point",d:c.value,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.width,"stroke-dasharray":s.value,fill:"none","marker-start":l.elementInfo.points[0]?`url(#${l.elementInfo.id}-${l.elementInfo.points[0]}-start)`:"","marker-end":l.elementInfo.points[1]?`url(#${l.elementInfo.id}-${l.elementInfo.points[1]}-end)`:""},null,8,Ile),Qe(Y("path",{class:"line-path",d:c.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,Fle),[[f,l.contextmenus]])],8,Cle))],36)],6)}}}),vF=Ee(_le,[["__scopeId","data-v-7ecafe01"]]),q0={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},Xle=8,ST={"&":"&","<":"<",">":">",'"':""","'":"'"};function MT(e,t){return typeof e=="number"?e+t:e}function ug(e){if(typeof e=="string"){const t=/^(\d+)\s*(.*)$/g.exec(e);return{value:t?+t[1]:0,unit:(t==null?void 0:t[2])||void 0}}return{value:Number(e)}}function R5(e){return String.fromCharCode(97+e%26)}const Hy=2221e-19;function Ele(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)}function b0(e,t,n){return t/n.range*e}function Wle(e,t){const n=Math.pow(10,t||Xle);return Math.round(e*n)/n}function Vle(e){if(e===1)return e;function t(a,s){return a%s===0?s:t(s,a%s)}function n(a){return a*a+1}let r=2,o=2,i;if(e%2===0)return 2;do r=n(r)%e,o=n(n(o))%e,i=t(Math.abs(r-o),e);while(i===1);return i}function Gy(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function Ule(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const o={high:t.high,low:t.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};o.valueRange=o.high-o.low,o.oom=Ele(o.valueRange),o.step=Math.pow(10,o.oom),o.min=Math.floor(o.low/o.step)*o.step,o.max=Math.ceil(o.high/o.step)*o.step,o.range=o.max-o.min,o.numberOfSteps=Math.round(o.range/o.step);const a=b0(e,o.step,o)=n)o.step=1;else if(r&&s=n)o.step=s;else{let d=0;for(;;){if(a&&b0(e,o.step,o)<=n)o.step*=2;else if(!a&&b0(e,o.step/2,o)>=n){if(o.step/=2,r&&o.step%1!==0){o.step*=2;break}}else break;if(d++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}o.step=Math.max(o.step,Hy);function c(d,h){return d===(d+=h)&&(d*=1+(h>0?Hy:-Hy)),d}let l=o.min,u=o.max;for(;l+o.step<=o.low;)l=c(l,o.step);for(;u-o.step>=o.high;)u=c(u,-o.step);o.min=l,o.max=u,o.range=o.max-o.min;const f=[];for(let d=o.min;d<=o.max;d=c(d,o.step)){const h=Wle(d);h!==f[f.length-1]&&f.push(h)}return o.values=f,o}function Zu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re;function nx(e,t){return Array.from({length:e},t?(n,r)=>t(r):()=>{})}const Yle=(e,t)=>e+(t||0),Qle=(e,t)=>nx(Math.max(...e.map(n=>n.length)),n=>t(...e.map(r=>r[n])));function jn(e,t){return e!==null&&typeof e=="object"&&Reflect.has(e,t)}function Nh(e){return e!==null&&isFinite(e)}function gF(e){return!e&&e!==0}function Rd(e){return Nh(e)?Number(e):void 0}function Zle(e){return Array.isArray(e)?e.every(Array.isArray):!1}function AF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=0;e[n?"reduceRight":"reduce"]((o,i,a)=>t(i,r++,a),void 0)}function RF(e,t){const n=Array.isArray(e)?e[t]:jn(e,"data")?e.data[t]:null;return jn(n,"meta")?n.meta:void 0}function yF(e){return e==null||typeof e=="number"&&isNaN(e)}function Ble(e){return Array.isArray(e)&&e.every(t=>Array.isArray(t)||jn(t,"data"))}function Dle(e){return typeof e=="object"&&e!==null&&(Reflect.has(e,"x")||Reflect.has(e,"y"))}function y5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";return Dle(e)&&jn(e,t)?Rd(e[t]):Rd(e)}function rx(e,t,n){t={...t,...n?n==="x"?t.axisX:t.axisY:{}};const r={high:t.high===void 0?-Number.MAX_VALUE:+t.high,low:t.low===void 0?Number.MAX_VALUE:+t.low},o=t.high===void 0,i=t.low===void 0;function a(s){if(!yF(s))if(Array.isArray(s))for(let c=0;cr.high&&(r.high=c),i&&c0||(r.high=1),r.low=0)),r}function x5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o;const i={labels:(e.labels||[]).slice(),series:Gle(e.series,n,r)},a=i.labels.length;return Zle(i.series)?(o=Math.max(a,...i.series.map(s=>s.length)),i.series.forEach(s=>{s.push(...nx(Math.max(0,o-s.length)))})):o=i.series.length,i.labels.push(...nx(Math.max(0,o-a),()=>"")),t&&Kle(i),i}function Kle(e){var t;(t=e.labels)===null||t===void 0||t.reverse(),e.series.reverse();for(const n of e.series)jn(n,"data")?n.data.reverse():Array.isArray(n)&&n.reverse()}function Hle(e,t){let n,r;if(typeof e!="object"){const o=Rd(e);t==="x"?n=o:r=o}else jn(e,"x")&&(n=Rd(e.x)),jn(e,"y")&&(r=Rd(e.y));if(!(n===void 0&&r===void 0))return{x:n,y:r}}function wT(e,t){if(!yF(e))return t?Hle(e,t):Rd(e)}function ox(e,t){return Array.isArray(e)?e.map(n=>jn(n,"value")?wT(n.value,t):wT(n,t)):ox(e.data,t)}function Gle(e,t,n){if(Ble(e))return e.map(o=>ox(o,t));const r=ox(e,t);return n?r.map(o=>[o]):r}function Jle(e,t,n){const r={increasingX:!1,fillHoles:!1,...n},o=[];let i=!0;for(let a=0;a=2&&e[a]<=e[a-2]&&(i=!0),i&&(o.push({pathCoordinates:[],valueData:[]}),i=!1),o[o.length-1].pathCoordinates.push(e[a],e[a+1]),o[o.length-1].valueData.push(t[a/2]));return o}function dp(e){let t="";return e==null?e:(typeof e=="number"?t=""+e:typeof e=="object"?t=JSON.stringify({data:e}):t=String(e),Object.keys(ST).reduce((n,r)=>n.replaceAll(r,ST[r]),t))}class zle{call(t,n){return this.svgElements.forEach(r=>Reflect.apply(r[t],r,n)),this}attr(){for(var t=arguments.length,n=new Array(t),r=0;r3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;const{easing:i,...a}=n,s={};let c,l;i&&(c=Array.isArray(i)?i:xF[i]),a.begin=MT(a.begin,"ms"),a.dur=MT(a.dur,"ms"),c&&(a.calcMode="spline",a.keySplines=c.join(" "),a.keyTimes="0;1"),r&&(a.fill="freeze",s[t]=a.from,e.attr(s),l=ug(a.begin||0).value,a.begin="indefinite");const u=e.elem("animate",{attributeName:t,...a});r&&setTimeout(()=>{try{u._node.beginElement()}catch{s[t]=a.to,e.attr(s),u.remove()}},l);const f=u.getNode();o&&f.addEventListener("beginEvent",()=>o.emit("animationBegin",{element:e,animate:f,params:n})),f.addEventListener("endEvent",()=>{o&&o.emit("animationEnd",{element:e,animate:f,params:n}),r&&(s[t]=a.to,e.attr(s),u.remove())})}class oc{attr(t,n){return typeof t=="string"?n?this._node.getAttributeNS(n,t):this._node.getAttribute(t):(Object.keys(t).forEach(r=>{if(t[r]!==void 0)if(r.indexOf(":")!==-1){const o=r.split(":");this._node.setAttributeNS(q0[o[0]],r,String(t[r]))}else this._node.setAttribute(r,String(t[r]))}),this)}elem(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return new oc(t,n,r,this,o)}parent(){return this._node.parentNode instanceof SVGElement?new oc(this._node.parentNode):null}root(){let t=this._node;for(;t.nodeName!=="svg"&&t.parentElement;)t=t.parentElement;return new oc(t)}querySelector(t){const n=this._node.querySelector(t);return n?new oc(n):null}querySelectorAll(t){const n=this._node.querySelectorAll(t);return new zle(n)}getNode(){return this._node}foreignObject(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;if(typeof t=="string"){const s=document.createElement("div");s.innerHTML=t,i=s.firstChild}else i=t;i instanceof Element&&i.setAttribute("xmlns",q0.xmlns);const a=this.elem("foreignObject",n,r,o);return a._node.appendChild(i),a}text(t){return this._node.appendChild(document.createTextNode(t)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var t;return(t=this._node.parentNode)===null||t===void 0||t.removeChild(this._node),this.parent()}replace(t){var n;return(n=this._node.parentNode)===null||n===void 0||n.replaceChild(t._node,this._node),t}append(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this}classes(){const t=this._node.getAttribute("class");return t?t.trim().split(/\s+/):[]}addClass(t){return this._node.setAttribute("class",this.classes().concat(t.trim().split(/\s+/)).filter(function(n,r,o){return o.indexOf(n)===r}).join(" ")),this}removeClass(t){const n=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter(r=>n.indexOf(r)===-1).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.getBoundingClientRect().height}width(){return this._node.getBoundingClientRect().width}animate(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2?arguments[2]:void 0;return Object.keys(t).forEach(o=>{const i=t[o];Array.isArray(i)?i.forEach(a=>LT(this,o,a,!1,r)):LT(this,o,i,n,r)}),this}constructor(t,n,r,o,i=!1){t instanceof Element?this._node=t:(this._node=document.createElementNS(q0.svg,t),t==="svg"&&this.attr({"xmlns:ct":q0.ct})),n&&this.attr(n),r&&this.addClass(r),o&&(i&&o._node.firstChild?o._node.insertBefore(this._node,o._node.firstChild):o._node.appendChild(this._node))}}oc.Easing=xF;function b5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"100%",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"100%",r=arguments.length>3?arguments[3]:void 0;Array.from(e.querySelectorAll("svg")).filter(i=>i.getAttributeNS(q0.xmlns,"ct")).forEach(i=>e.removeChild(i));const o=new oc("svg").attr({width:t,height:n}).attr({style:"width: ".concat(t,"; height: ").concat(n,";")});return r&&o.addClass(r),e.appendChild(o.getNode()),o}function $le(e){return typeof e=="number"?{top:e,right:e,bottom:e,left:e}:e===void 0?{top:0,right:0,bottom:0,left:0}:{top:typeof e.top=="number"?e.top:0,right:typeof e.right=="number"?e.right:0,bottom:typeof e.bottom=="number"?e.bottom:0,left:typeof e.left=="number"?e.left:0}}function S5(e,t){var n,r,o,i;const a=!!(t.axisX||t.axisY),s=((n=t.axisY)===null||n===void 0?void 0:n.offset)||0,c=((r=t.axisX)===null||r===void 0?void 0:r.offset)||0,l=(o=t.axisY)===null||o===void 0?void 0:o.position,u=(i=t.axisX)===null||i===void 0?void 0:i.position;let f=e.width()||ug(t.width).value||0,d=e.height()||ug(t.height).value||0;const h=$le(t.chartPadding);f=Math.max(f,s+h.left+h.right),d=Math.max(d,c+h.top+h.bottom);const p={x1:0,x2:0,y1:0,y2:0,padding:h,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return a?(u==="start"?(p.y2=h.top+c,p.y1=Math.max(d-h.bottom,p.y2+1)):(p.y2=h.top,p.y1=Math.max(d-h.bottom-c,p.y2+1)),l==="start"?(p.x1=h.left+s,p.x2=Math.max(f-h.right,p.x1+1)):(p.x1=h.left,p.x2=Math.max(f-h.right-s,p.x1+1))):(p.x1=h.left,p.x2=Math.max(f-h.right,p.x1+1),p.y2=h.top,p.y1=Math.max(d-h.bottom,p.y2+1)),p}function jle(e,t,n,r,o,i,a,s){const c={["".concat(n.units.pos,"1")]:e,["".concat(n.units.pos,"2")]:e,["".concat(n.counterUnits.pos,"1")]:r,["".concat(n.counterUnits.pos,"2")]:r+o},l=i.elem("line",c,a.join(" "));s.emit("draw",{type:"grid",axis:n,index:t,group:i,element:l,...c})}function bF(e,t,n,r){const o=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);r.emit("draw",{type:"gridBackground",group:e,element:o})}function qle(e,t,n,r,o,i,a,s,c,l){const u={[o.units.pos]:e+a[o.units.pos],[o.counterUnits.pos]:a[o.counterUnits.pos],[o.units.len]:t,[o.counterUnits.len]:Math.max(0,i-10)},f=Math.round(u[o.units.len]),d=Math.round(u[o.counterUnits.len]),h=document.createElement("span");h.className=c.join(" "),h.style[o.units.len]=f+"px",h.style[o.counterUnits.len]=d+"px",h.textContent=String(r);const p=s.foreignObject(h,{style:"overflow: visible;",...u});l.emit("draw",{type:"label",axis:o,index:n,group:s,element:p,text:r,...u})}function OT(e,t,n){let r;const o=[];function i(s){const c=r;r=Zu({},e),t&&t.forEach(l=>{window.matchMedia(l[0]).matches&&(r=Zu(r,l[1]))}),n&&s&&n.emit("optionsChanged",{previousOptions:c,currentOptions:r})}function a(){o.forEach(s=>s.removeEventListener("change",i))}if(window.matchMedia)t&&t.forEach(s=>{const c=window.matchMedia(s[0]);c.addEventListener("change",i),o.push(c)});else throw new Error("window.matchMedia not found! Make sure you're using a polyfill.");return i(),{removeMediaQueryListeners:a,getCurrentOptions(){return r}}}const ix={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},ece={accuracy:3};function bm(e,t,n,r,o,i){const a={command:o?e.toLowerCase():e.toUpperCase(),...t,...i?{data:i}:{}};n.splice(r,0,a)}function Jy(e,t){e.forEach((n,r)=>{ix[n.command.toLowerCase()].forEach((o,i)=>{t(n,o,r,i,e)})})}class el{static join(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0;const o=new el(n,r);for(let i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;return bm("M",{x:+t,y:+n},this.pathElements,this.pos++,r,o),this}line(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;return bm("L",{x:+t,y:+n},this.pathElements,this.pos++,r,o),this}curve(t,n,r,o,i,a){let s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,c=arguments.length>7?arguments[7]:void 0;return bm("C",{x1:+t,y1:+n,x2:+r,y2:+o,x:+i,y:+a},this.pathElements,this.pos++,s,c),this}arc(t,n,r,o,i,a,s){let c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,l=arguments.length>8?arguments[8]:void 0;return bm("A",{rx:t,ry:n,xAr:r,lAf:o,sf:i,x:a,y:s},this.pathElements,this.pos++,c,l),this}parse(t){const n=t.replace(/([A-Za-z])(-?[0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((o,i)=>(i.match(/[A-Za-z]/)&&o.push([]),o[o.length-1].push(i),o),[]);n[n.length-1][0].toUpperCase()==="Z"&&n.pop();const r=n.map(o=>{const i=o.shift(),a=ix[i.toLowerCase()];return{command:i,...a.reduce((s,c,l)=>(s[c]=+o[l],s),{})}});return this.pathElements.splice(this.pos,0,...r),this.pos+=r.length,this}stringify(){const t=Math.pow(10,this.options.accuracy);return this.pathElements.reduce((n,r)=>{const o=ix[r.command.toLowerCase()].map(i=>{const a=r[i];return this.options.accuracy?Math.round(a*t)/t:a});return n+r.command+o.join(",")},"")+(this.close?"Z":"")}scale(t,n){return Jy(this.pathElements,(r,o)=>{r[o]*=o[0]==="x"?t:n}),this}translate(t,n){return Jy(this.pathElements,(r,o)=>{r[o]+=o[0]==="x"?t:n}),this}transform(t){return Jy(this.pathElements,(n,r,o,i,a)=>{const s=t(n,r,o,i,a);(s||s===0)&&(n[r]=s)}),this}clone(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const n=new el(t||this.close);return n.pos=this.pos,n.pathElements=this.pathElements.slice().map(r=>({...r})),n.options={...this.options},n}splitByCommand(t){const n=[new el];return this.pathElements.forEach(r=>{r.command===t.toUpperCase()&&n[n.length-1].pathElements.length!==0&&n.push(new el),n[n.length-1].pathElements.push(r)}),n}constructor(t=!1,n){this.close=t,this.pathElements=[],this.pos=0,this.options={...ece,...n}}}function ax(e){const t={fillHoles:!1,...e};return function(r,o){const i=new el;let a=!0;for(let s=0;s1)return el.join(i.map(a=>n(a.pathCoordinates,a.valueData)));{if(r=i[0].pathCoordinates,o=i[0].valueData,r.length<=4)return ax()(r,o);const a=[],s=[],c=r.length/2,l=[],u=[],f=[],d=[];for(let p=0;p0!=u[p]>0?l[p]=0:(l[p]=3*(d[p-1]+d[p])/((2*d[p]+d[p-1])/u[p-1]+(d[p]+2*d[p-1])/u[p]),isFinite(l[p])||(l[p]=0));const h=new el().move(a[0],s[0],!1,o[0]);for(let p=0;pi(n)),r.forEach(i=>i(t,n))}constructor(){this.listeners=new Map,this.allListeners=new Set}}const zy=new WeakMap;class M5{update(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(t&&(this.data=t||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),n&&(this.options=Zu({},r?this.options:this.defaultOptions,n),!this.initializeTimeoutId)){var o;(o=this.optionsProvider)===null||o===void 0||o.removeMediaQueryListeners(),this.optionsProvider=OT(this.options,this.responsiveOptions,this.eventEmitter)}return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){if(this.initializeTimeoutId)window.clearTimeout(this.initializeTimeoutId);else{var t;window.removeEventListener("resize",this.resizeListener),(t=this.optionsProvider)===null||t===void 0||t.removeMediaQueryListeners()}return zy.delete(this.container),this}on(t,n){return this.eventEmitter.on(t,n),this}off(t,n){return this.eventEmitter.off(t,n),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=OT(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",()=>this.update()),this.options.plugins&&this.options.plugins.forEach(t=>{Array.isArray(t)?t[0](this,t[1]):t(this)}),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(t,n,r,o,i){this.data=n,this.defaultOptions=r,this.options=o,this.responsiveOptions=i,this.eventEmitter=new nce,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout(()=>this.initialize(),0);const a=typeof t=="string"?document.querySelector(t):t;if(!a)throw new Error("Target element is not found");this.container=a;const s=zy.get(a);s&&s.detach(),zy.set(a,this)}}const ko={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};class SF{createGridAndLabels(t,n,r,o){const i=this.units.pos==="x"?r.axisX:r.axisY,a=this.ticks.map((c,l)=>this.projectValue(c,l)),s=this.ticks.map(i.labelInterpolationFnc);a.forEach((c,l)=>{const u=s[l],f={x:0,y:0};let d;a[l+1]?d=a[l+1]-c:d=Math.max(this.axisLength-c,this.axisLength/this.ticks.length),!(u!==""&&gF(u))&&(this.units.pos==="x"?(c=this.chartRect.x1+c,f.x=r.axisX.labelOffset.x,r.axisX.position==="start"?f.y=this.chartRect.padding.top+r.axisX.labelOffset.y+5:f.y=this.chartRect.y1+r.axisX.labelOffset.y+5):(c=this.chartRect.y1-c,f.y=r.axisY.labelOffset.y-d,r.axisY.position==="start"?f.x=this.chartRect.padding.left+r.axisY.labelOffset.x:f.x=this.chartRect.x2+r.axisY.labelOffset.x+10),i.showGrid&&jle(c,l,this,this.gridOffset,this.chartRect[this.counterUnits.len](),t,[r.classNames.grid,r.classNames[this.units.dir]],o),i.showLabel&&qle(c,d,l,u,this,i.offset,f,n,[r.classNames.label,r.classNames[this.units.dir],i.position==="start"?r.classNames[i.position]:r.classNames.end],o))})}constructor(t,n,r){this.units=t,this.chartRect=n,this.ticks=r,this.counterUnits=t===ko.x?ko.y:ko.x,this.axisLength=n[this.units.rectEnd]-n[this.units.rectStart],this.gridOffset=n[this.units.rectOffset]}}class sx extends SF{projectValue(t){const n=Number(y5(t,this.units.pos));return this.axisLength*(n-this.bounds.min)/this.bounds.range}constructor(t,n,r,o){const i=o.highLow||rx(n,o,t.pos),a=Ule(r[t.rectEnd]-r[t.rectStart],i,o.scaleMinSpace||20,o.onlyInteger),s={min:a.min,max:a.max};super(t,r,a.values),this.bounds=a,this.range=s}}class nv extends SF{projectValue(t,n){return this.stepLength*n}constructor(t,n,r,o){const i=o.ticks||[];super(t,r,i);const a=Math.max(1,i.length-(o.stretch?1:0));this.stepLength=this.axisLength/a,this.stretch=!!o.stretch}}function S0(e,t,n){var r;if(jn(e,"name")&&e.name&&(!((r=t.series)===null||r===void 0)&&r[e.name])){const i=(t==null?void 0:t.series[e.name])[n];return i===void 0?t[n]:i}else return t[n]}const TT={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:fp,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:fp,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class rce extends M5{createChart(t){const{data:n}=this,r=x5(n,t.reverseData,!0),o=b5(this.container,t.width,t.height,t.classNames.chart);this.svg=o;const i=o.elem("g").addClass(t.classNames.gridGroup),a=o.elem("g"),s=o.elem("g").addClass(t.classNames.labelGroup),c=S5(o,t);let l,u;t.axisX.type===void 0?l=new nv(ko.x,r.series,c,{...t.axisX,ticks:r.labels,stretch:t.fullWidth}):l=new t.axisX.type(ko.x,r.series,c,t.axisX),t.axisY.type===void 0?u=new sx(ko.y,r.series,c,{...t.axisY,high:Nh(t.high)?t.high:t.axisY.high,low:Nh(t.low)?t.low:t.axisY.low}):u=new t.axisY.type(ko.y,r.series,c,t.axisY),l.createGridAndLabels(i,s,t,this.eventEmitter),u.createGridAndLabels(i,s,t,this.eventEmitter),t.showGridBackground&&bF(i,c,t.classNames.gridBackground,this.eventEmitter),AF(n.series,(f,d)=>{const h=a.elem("g"),p=jn(f,"name")&&f.name,m=jn(f,"className")&&f.className,A=jn(f,"meta")?f.meta:void 0;p&&h.attr({"ct:series-name":p}),A&&h.attr({"ct:meta":dp(A)}),h.addClass([t.classNames.series,m||"".concat(t.classNames.series,"-").concat(R5(d))].join(" "));const x=[],R=[];r.series[d].forEach((O,T)=>{const M={x:c.x1+l.projectValue(O,T,r.series[d]),y:c.y1-u.projectValue(O,T,r.series[d])};x.push(M.x,M.y),R.push({value:O,valueIndex:T,meta:RF(f,T)})});const y={lineSmooth:S0(f,t,"lineSmooth"),showPoint:S0(f,t,"showPoint"),showLine:S0(f,t,"showLine"),showArea:S0(f,t,"showArea"),areaBase:S0(f,t,"areaBase")};let g;typeof y.lineSmooth=="function"?g=y.lineSmooth:g=y.lineSmooth?tce():ax();const S=g(x,R);if(y.showPoint&&S.pathElements.forEach(O=>{const{data:T}=O,M=h.elem("line",{x1:O.x,y1:O.y,x2:O.x+.01,y2:O.y},t.classNames.point);if(T){let L,k;jn(T.value,"x")&&(L=T.value.x),jn(T.value,"y")&&(k=T.value.y),M.attr({"ct:value":[L,k].filter(Nh).join(","),"ct:meta":dp(T.meta)})}this.eventEmitter.emit("draw",{type:"point",value:T==null?void 0:T.value,index:(T==null?void 0:T.valueIndex)||0,meta:T==null?void 0:T.meta,series:f,seriesIndex:d,axisX:l,axisY:u,group:h,element:M,x:O.x,y:O.y,chartRect:c})}),y.showLine){const O=h.elem("path",{d:S.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:r.series[d],path:S.clone(),chartRect:c,index:d,series:f,seriesIndex:d,meta:A,axisX:l,axisY:u,group:h,element:O})}if(y.showArea&&u.range){const O=Math.max(Math.min(y.areaBase,u.range.max),u.range.min),T=c.y1-u.projectValue(O);S.splitByCommand("M").filter(M=>M.pathElements.length>1).map(M=>{const L=M.pathElements[0],k=M.pathElements[M.pathElements.length-1];return M.clone(!0).position(0).remove(1).move(L.x,T).line(L.x,L.y).position(M.pathElements.length+1).line(k.x,T)}).forEach(M=>{const L=h.elem("path",{d:M.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:r.series[d],path:M.clone(),series:f,seriesIndex:d,axisX:l,axisY:u,chartRect:c,index:d,group:h,element:L,meta:A})})}},t.reverseData),this.eventEmitter.emit("created",{chartRect:c,axisX:l,axisY:u,svg:o,options:t})}constructor(t,n,r,o){super(t,n,TT,Zu({},TT,r),o),this.data=n}}function oce(e){return Qle(e,function(){for(var t=arguments.length,n=new Array(t),r=0;r({x:o.x+(jn(i,"x")?i.x:0),y:o.y+(jn(i,"y")?i.y:0)}),{x:0,y:0})})}const kT={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:fp,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:fp,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class ice extends M5{createChart(t){const{data:n}=this,r=x5(n,t.reverseData,t.horizontalBars?"x":"y",!0),o=b5(this.container,t.width,t.height,t.classNames.chart+(t.horizontalBars?" "+t.classNames.horizontalBars:"")),i=t.stackBars&&t.stackMode!==!0&&r.series.length?rx([oce(r.series)],t,t.horizontalBars?"x":"y"):rx(r.series,t,t.horizontalBars?"x":"y");this.svg=o;const a=o.elem("g").addClass(t.classNames.gridGroup),s=o.elem("g"),c=o.elem("g").addClass(t.classNames.labelGroup);typeof t.high=="number"&&(i.high=t.high),typeof t.low=="number"&&(i.low=t.low);const l=S5(o,t);let u;const f=t.distributeSeries&&t.stackBars?r.labels.slice(0,1):r.labels;let d,h,p;t.horizontalBars?(t.axisX.type===void 0?u=h=new sx(ko.x,r.series,l,{...t.axisX,highLow:i,referenceValue:0}):u=h=new t.axisX.type(ko.x,r.series,l,{...t.axisX,highLow:i,referenceValue:0}),t.axisY.type===void 0?d=p=new nv(ko.y,r.series,l,{ticks:f}):d=p=new t.axisY.type(ko.y,r.series,l,t.axisY)):(t.axisX.type===void 0?d=h=new nv(ko.x,r.series,l,{ticks:f}):d=h=new t.axisX.type(ko.x,r.series,l,t.axisX),t.axisY.type===void 0?u=p=new sx(ko.y,r.series,l,{...t.axisY,highLow:i,referenceValue:0}):u=p=new t.axisY.type(ko.y,r.series,l,{...t.axisY,highLow:i,referenceValue:0}));const m=t.horizontalBars?l.x1+u.projectValue(0):l.y1-u.projectValue(0),A=t.stackMode==="accumulate",x=t.stackMode==="accumulate-relative",R=[],y=[];let g=R;d.createGridAndLabels(a,c,t,this.eventEmitter),u.createGridAndLabels(a,c,t,this.eventEmitter),t.showGridBackground&&bF(a,l,t.classNames.gridBackground,this.eventEmitter),AF(n.series,(S,O)=>{const T=O-(n.series.length-1)/2;let M;t.distributeSeries&&!t.stackBars?M=d.axisLength/r.series.length/2:t.distributeSeries&&t.stackBars?M=d.axisLength/2:M=d.axisLength/r.series[O].length/2;const L=s.elem("g"),k=jn(S,"name")&&S.name,F=jn(S,"className")&&S.className,N=jn(S,"meta")?S.meta:void 0;k&&L.attr({"ct:series-name":k}),N&&L.attr({"ct:meta":dp(N)}),L.addClass([t.classNames.series,F||"".concat(t.classNames.series,"-").concat(R5(O))].join(" ")),r.series[O].forEach((E,C)=>{const _=jn(E,"x")&&E.x,I=jn(E,"y")&&E.y;let V;t.distributeSeries&&!t.stackBars?V=O:t.distributeSeries&&t.stackBars?V=0:V=C;let B;t.horizontalBars?B={x:l.x1+u.projectValue(_||0,C,r.series[O]),y:l.y1-d.projectValue(I||0,V,r.series[O])}:B={x:l.x1+d.projectValue(_||0,V,r.series[O]),y:l.y1-u.projectValue(I||0,C,r.series[O])},d instanceof nv&&(d.stretch||(B[d.units.pos]+=M*(t.horizontalBars?-1:1)),B[d.units.pos]+=t.stackBars||t.distributeSeries?0:T*t.seriesBarDistance*(t.horizontalBars?-1:1)),x&&(g=I>=0||_>=0?R:y);const G=g[C]||m;if(g[C]=G-(m-B[d.counterUnits.pos]),E===void 0)return;const oe={["".concat(d.units.pos,"1")]:B[d.units.pos],["".concat(d.units.pos,"2")]:B[d.units.pos]};t.stackBars&&(A||x||!t.stackMode)?(oe["".concat(d.counterUnits.pos,"1")]=G,oe["".concat(d.counterUnits.pos,"2")]=g[C]):(oe["".concat(d.counterUnits.pos,"1")]=m,oe["".concat(d.counterUnits.pos,"2")]=B[d.counterUnits.pos]),oe.x1=Math.min(Math.max(oe.x1,l.x1),l.x2),oe.x2=Math.min(Math.max(oe.x2,l.x1),l.x2),oe.y1=Math.min(Math.max(oe.y1,l.y2),l.y1),oe.y2=Math.min(Math.max(oe.y2,l.y2),l.y1);const W=RF(S,C),Z=L.elem("line",oe,t.classNames.bar).attr({"ct:value":[_,I].filter(Nh).join(","),"ct:meta":dp(W)});this.eventEmitter.emit("draw",{type:"bar",value:E,index:C,meta:W,series:S,seriesIndex:O,axisX:h,axisY:p,chartRect:l,group:L,element:Z,...oe})})},t.reverseData),this.eventEmitter.emit("created",{chartRect:l,axisX:h,axisY:p,svg:o,options:t})}constructor(t,n,r,o){super(t,n,kT,Zu({},kT,r),o),this.data=n}}const PT={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:fp,labelDirection:"neutral",ignoreEmptyValues:!1};function ace(e,t,n){const r=t.x>e.x;return r&&n==="explode"||!r&&n==="implode"?"start":r&&n==="implode"||!r&&n==="explode"?"end":"middle"}class sce extends M5{createChart(t){const{data:n}=this,r=x5(n),o=[];let i,a,s=t.startAngle;const c=b5(this.container,t.width,t.height,t.donut?t.classNames.chartDonut:t.classNames.chartPie);this.svg=c;const l=S5(c,t);let u=Math.min(l.width()/2,l.height()/2);const f=t.total||r.series.reduce(Yle,0),d=ug(t.donutWidth);d.unit==="%"&&(d.value*=u/100),u-=t.donut?d.value/2:0,t.labelPosition==="outside"||t.donut?a=u:t.labelPosition==="center"?a=0:a=u/2,t.labelOffset&&(a+=t.labelOffset);const h={x:l.x1+l.width()/2,y:l.y2+l.height()/2},p=n.series.filter(m=>jn(m,"value")?m.value!==0:m!==0).length===1;n.series.forEach((m,A)=>o[A]=c.elem("g")),t.showLabel&&(i=c.elem("g")),n.series.forEach((m,A)=>{var x,R;if(r.series[A]===0&&t.ignoreEmptyValues)return;const y=jn(m,"name")&&m.name,g=jn(m,"className")&&m.className,S=jn(m,"meta")?m.meta:void 0;y&&o[A].attr({"ct:series-name":y}),o[A].addClass([(x=t.classNames)===null||x===void 0?void 0:x.series,g||"".concat((R=t.classNames)===null||R===void 0?void 0:R.series,"-").concat(R5(A))].join(" "));let O=f>0?s+r.series[A]/f*360:0;const T=Math.max(0,s-(A===0||p?0:.2));O-T>=359.99&&(O=T+359.99);const M=Gy(h.x,h.y,u,T),L=Gy(h.x,h.y,u,O),k=new el(!t.donut).move(L.x,L.y).arc(u,u,0,+(O-s>180),0,M.x,M.y);t.donut||k.line(h.x,h.y);const F=o[A].elem("path",{d:k.stringify()},t.donut?t.classNames.sliceDonut:t.classNames.slicePie);if(F.attr({"ct:value":r.series[A],"ct:meta":dp(S)}),t.donut&&F.attr({style:"stroke-width: "+d.value+"px"}),this.eventEmitter.emit("draw",{type:"slice",value:r.series[A],totalDataSum:f,index:A,meta:S,series:m,group:o[A],element:F,path:k.clone(),center:h,radius:u,startAngle:s,endAngle:O,chartRect:l}),t.showLabel){let N;n.series.length===1?N={x:h.x,y:h.y}:N=Gy(h.x,h.y,a,s+(O-s)/2);let E;r.labels&&!gF(r.labels[A])?E=r.labels[A]:E=r.series[A];const C=t.labelInterpolationFnc(E,A);if(C||C===0){const _=i.elem("text",{dx:N.x,dy:N.y,"text-anchor":ace(h,N,t.labelDirection)},t.classNames.label).text(String(C));this.eventEmitter.emit("draw",{type:"label",index:A,group:i,element:_,text:""+C,chartRect:l,series:m,meta:S,...N})}}s=O}),this.eventEmitter.emit("created",{chartRect:l,svg:c,options:t})}constructor(t,n,r,o){super(t,n,PT,Zu({},PT,r),o),this.data=n}}const lce=Fe({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColor:{},legends:{},options:{},gridColor:{},legend:{}},setup(e){const t=e,n=ve(),r=qo(rf)||ve(1);let o;const i=Se(()=>t.legend?t.height-20:t.height),a=()=>({...t.data,series:t.data.series[0]}),s=()=>({...t.options||{},width:t.width*r.value,height:i.value*r.value}),c=()=>{if(!n.value)return;const h=s();t.type==="bar"&&(o=new ice(n.value,t.data,h)),t.type==="line"&&(o=new rce(n.value,t.data,h)),t.type==="pie"&&(o=new sce(n.value,a(),h))};Tt([()=>t.width,()=>t.height,()=>t.data,()=>t.options,r],()=>{if(!o){c();return}const h=s(),p=t.type==="pie"?a():t.data;o.update(p,h)}),Gt(c);const u=Se(()=>{let h=[];if(t.themeColor.length>=10)h=t.themeColor;else if(t.themeColor.length===1)h=it(t.themeColor[0]).analogous(10).map(p=>p.toRgbString());else{const p=t.themeColor.length,m=it(t.themeColor[p-1]).analogous(11-p).map(A=>A.toRgbString());h=[...t.themeColor.slice(0,p-1),...m]}return h}),f=()=>{if(n.value)for(let h=0;h<10;h++)n.value.style.setProperty(`--theme-color-${h+1}`,u.value[h])};Tt(u,f),Gt(f);const d=()=>{n.value&&t.gridColor&&n.value.style.setProperty("--grid-color",t.gridColor)};return Tt(()=>t.gridColor,d),Gt(d),(h,p)=>(Q(),ee("div",{class:"chart",style:we({flexDirection:h.legend==="top"?"column-reverse":"column"})},[Y("div",{class:"chart-content",ref_key:"chartRef",ref:n,style:we({width:h.width+"px",height:i.value+"px",transform:`scale(${1/H(r)})`})},null,4),h.legend?(Q(),ee("div",{key:0,class:"legends",style:we({transform:`scale(${1/H(r)})`})},[(Q(!0),ee(We,null,lt(h.legends,(m,A)=>(Q(),ee("div",{class:"legend",key:A,style:we({color:h.gridColor})},[Y("div",{class:"block",style:we({backgroundColor:u.value[A]})},null,4),Ve(" "+St(m),1)],4))),128))],4)):Ze("",!0)],4))}}),MF=Ee(lce,[["__scopeId","data-v-786c4a79"]]),cce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=o=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo))},r=()=>{Br.emit(Vr.OPEN_CHART_DATA_EDITOR)};return(o,i)=>{const a=Tn("contextmenu");return Q(),ee("div",{class:qe(["editable-element-chart",{lock:o.elementInfo.lock}]),style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Qe((Q(),ee("div",{class:"element-content",style:we({backgroundColor:o.elementInfo.fill}),onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[w(l2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),w(MF,{width:o.elementInfo.width,height:o.elementInfo.height,type:o.elementInfo.chartType,data:o.elementInfo.data,options:o.elementInfo.options,themeColor:o.elementInfo.themeColor,gridColor:o.elementInfo.gridColor,legends:o.elementInfo.data.legends,legend:o.elementInfo.legend||""},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend"])],36)),[[a,o.contextmenus]])],4)],6)}}}),wF=Ee(cce,[["__scopeId","data-v-e98d2ede"]]),LF=e=>{if(!e)return{};const{bold:t,em:n,underline:r,strikethrough:o,color:i,backcolor:a,fontsize:s,fontname:c,align:l}=e;let u=`${r?"underline":""} ${o?"line-through":""}`;return u===" "&&(u="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:u,color:i||"#000",backgroundColor:a||"",fontSize:s||"14px",fontFamily:c||"微软雅黑",textAlign:l||"left"}},OF=e=>e.replace(/\n/g,"
    ").replace(/ /g," "),TF=e=>({hideCells:Se(()=>{const n=[];for(let r=0;r1||a.rowspan>1)for(let s=r;s{const t=ve(["",""]);return Tt(()=>e.value,()=>{e.value&&(t.value=zN(e.value.color))},{immediate:!0}),{subThemeColor:t}},uce=["innerHTML"],fce=Fe({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const n=e,r=t,o=ve(),i=ve(""),a=ve(!1);Tt(()=>n.value,()=>{a.value||(i.value=n.value,o.value&&(o.value.innerHTML=n.value))},{immediate:!0});const s=()=>{if(!o.value)return;const u=o.value.innerHTML;r("updateValue",u)},c=()=>{a.value=!0,o.value&&(o.value.onpaste=u=>{if(u.preventDefault(),!u.clipboardData)return;const f=u.clipboardData.items[0];f&&f.kind==="string"&&f.type==="text/plain"&&f.getAsString(d=>{if(typeof Ob(d)=="object")return;const p=JN(d);if(p){r("insertExcelData",p),o.value&&(o.value.innerHTML=p[0][0]);return}document.execCommand("insertText",!1,d)})})},l=()=>{a.value=!1,o.value&&(o.value.onpaste=null)};return Yd(()=>{o.value&&(o.value.onpaste=null)}),(u,f)=>(Q(),ee("div",{class:"custom-textarea",ref_key:"textareaRef",ref:o,contenteditable:!0,onFocus:f[0]||(f[0]=d=>c()),onBlur:f[1]||(f[1]=d=>l()),onInput:f[2]||(f[2]=d=>s()),innerHTML:i.value},null,40,uce))}}),dce=Ee(fce,[["__scopeId","data-v-cfadb975"]]),hce={key:0,class:"handler"},pce=["onMousedown"],mce=["width"],vce=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],gce=["innerHTML"],Ace=Fe({__name:"EditableTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},emits:["change","changeColWidths","changeSelectedCells"],setup(e,{emit:t}){const n=e,r=t,{canvasScale:o}=Xe(dt()),i=ve(!1),a=ve([]),s=ve([]),c=Se({get(){return n.data},set(se){r("change",se)}}),l=Se(()=>n.theme),{subThemeColor:u}=kF(l),f=ve([]),d=Se(()=>f.value.reduce((se,ie)=>se+ie));Tt([()=>n.colWidths,()=>n.width],()=>{f.value=n.colWidths.map(se=>se*n.width)},{immediate:!0});const h=()=>{a.value=[],s.value=[]};Tt(()=>n.editable,()=>{n.editable||h()});const p=Se(()=>{const se=[];for(let ie=1;ieAe+ye);se.push(me)}return se}),m=Se(()=>n.data),{hideCells:A}=TF(m),x=Se(()=>{if(!a.value.length)return[];const[se,ie]=a.value;if(!s.value.length)return[`${se}_${ie}`];const[me,Ae]=s.value;if(se===me&&ie===Ae)return[`${se}_${ie}`];const ye=[],J=Math.min(se,me),ae=Math.min(ie,Ae),X=Math.max(se,me),$=Math.max(ie,Ae);for(let ue=0;ue=J&&ue<=X&&q>=ae&&q<=$&&ye.push(`${ue}_${q}`)}return ye});Tt(x,(se,ie)=>{Xn.isEqual(se,ie)||r("changeSelectedCells",x.value)});const R=Se(()=>x.value.length>1?null:x.value[0]),y=()=>i.value=!1,g=(se,ie,me)=>{se.button===0&&(s.value=[],i.value=!0,a.value=[ie,me])},S=(se,ie)=>{i.value&&(s.value=[se,ie])};Gt(()=>{document.addEventListener("mouseup",y)}),Pn(()=>{document.removeEventListener("mouseup",y)});const O=(se,ie)=>A.value.includes(`${se}_${ie}`),T=se=>{const ie=c.value.length-1;a.value=[0,se],s.value=[ie,se]},M=se=>{const ie=c.value[se].length-1;a.value=[se,0],s.value=[se,ie]},L=()=>{const se=c.value.length-1,ie=c.value[se].length-1;a.value=[0,0],s.value=[se,ie]},k=se=>{const ie=JSON.parse(JSON.stringify(c.value)),me=c.value[se],Ae=[];for(let ye=0;ye=0;J--)if(!O(J,ye)){ie[J][ye].rowspan=ie[J][ye].rowspan-1;break}ie.splice(se,1),c.value=ie},F=se=>{const ie=JSON.parse(JSON.stringify(c.value)),me=[];for(let Ae=0;Ae=0;ye--)if(!O(Ae,ye)){ie[Ae][ye].colspan=ie[Ae][ye].colspan-1;break}c.value=ie.map(Ae=>(Ae.splice(se,1),Ae)),f.value.splice(se,1),r("changeColWidths",f.value)},N=se=>{const ie=JSON.parse(JSON.stringify(c.value)),me=[];for(let Ae=0;Ae{c.value=c.value.map(ie=>{const me={colspan:1,rowspan:1,text:"",id:xn(10)};return ie.splice(se,0,me),ie}),f.value.splice(se,0,100),r("changeColWidths",f.value)},C=(se,ie)=>{let me=JSON.parse(JSON.stringify(c.value));const Ae={colspan:1,rowspan:1,text:""};if(se){const ye=[];for(let J=0;J{const J=[];for(let ae=0;ae{const[se,ie]=a.value,[me,Ae]=s.value,ye=Math.min(se,me),J=Math.min(ie,Ae),ae=Math.max(se,me),X=Math.max(ie,Ae),$=JSON.parse(JSON.stringify(c.value));$[ye][J].rowspan=ae-ye+1,$[ye][J].colspan=X-J+1,c.value=$,h()},I=(se,ie)=>{const me=JSON.parse(JSON.stringify(c.value));me[se][ie].rowspan=1,me[se][ie].colspan=1,c.value=me,h()},V=(se,ie)=>{h();let me=!0;const Ae=f.value[ie],ye=se.pageX,J=50;document.onmousemove=ae=>{if(!me)return;const X=(ae.pageX-ye)/o.value,$=Ae+X{me=!1,document.onmousemove=null,document.onmouseup=null,r("changeColWidths",f.value)}},B=()=>{const se=JSON.parse(JSON.stringify(c.value));for(let ie=0;ie{const se=(ye,J)=>c.value[ye]?c.value[ye][J]?O(ye,J)?se(ye,J+1):[ye,J]:se(ye+1,0):null;s.value=[];const ie=a.value[0],me=a.value[1]+1,Ae=se(ie,me);Ae?a.value=Ae:(N(ie+1),a.value=[ie+1,0]),Ur(()=>{const ye=document.querySelector(".cell-text.active");ye&&ye.focus()})},oe=se=>{if(!n.editable||!x.value.length)return;const ie=se.key.toUpperCase();if(x.value.length<2){if(ie===yt.TAB&&(se.preventDefault(),G()),se.ctrlKey&&ie===yt.UP){se.preventDefault();const me=+x.value[0].split("_")[0];N(me)}if(se.ctrlKey&&ie===yt.DOWN){se.preventDefault();const me=+x.value[0].split("_")[0];N(me+1)}if(se.ctrlKey&&ie===yt.LEFT){se.preventDefault();const me=+x.value[0].split("_")[1];E(me)}if(se.ctrlKey&&ie===yt.RIGHT){se.preventDefault();const me=+x.value[0].split("_")[1];E(me+1)}}else ie===yt.DELETE&&B()};Gt(()=>{document.addEventListener("keydown",oe)}),Pn(()=>{document.removeEventListener("keydown",oe)});const W=Xn.debounce(function(se,ie,me){c.value[ie][me].text=se,r("change",c.value)},300,{trailing:!0}),Z=(se,ie,me)=>{const Ae=se.length,ye=se[0].length;let J=0,ae=0;ie+Ae>c.value.length&&(J=ie+Ae-c.value.length),me+ye>c.value[0].length&&(ae=me+ye-c.value[0].length),(J||ae)&&C(J,ae),Ur(()=>{for(let X=0;X{const se=[];for(let ie=0;ie{const se=K(),ie=se.length>1,me=se[0].length>1;return{canDeleteRow:ie,canDeleteCol:me}},z=(se,ie)=>{const me=x.value.length>1,Ae=c.value[se][ie],ye=me,J=!me&&(Ae.rowspan>1||Ae.colspan>1);return{canMerge:ye,canSplit:J}},fe=se=>{const ie=se.dataset.cellIndex,me=+ie.split("_")[0],Ae=+ie.split("_")[1];x.value.includes(`${me}_${Ae}`)||(a.value=[me,Ae],s.value=[]);const{canMerge:ye,canSplit:J}=z(me,Ae),{canDeleteRow:ae,canDeleteCol:X}=U();return[{text:"插入列",children:[{text:"到左侧",handler:()=>E(Ae)},{text:"到右侧",handler:()=>E(Ae+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>N(me)},{text:"到下方",handler:()=>N(me+1)}]},{text:"删除列",disable:!X,handler:()=>F(Ae)},{text:"删除行",disable:!ae,handler:()=>k(me)},{divider:!0},{text:"合并单元格",disable:!ye,handler:_},{text:"取消合并单元格",disable:!J,handler:()=>I(me,Ae)},{divider:!0},{text:"选中当前列",handler:()=>T(Ae)},{text:"选中当前行",handler:()=>M(me)},{text:"选中全部单元格",handler:L}]};return(se,ie)=>{var Ae,ye,J,ae,X;const me=Tn("contextmenu");return Q(),ee("div",{class:"editable-table",style:we({width:d.value+"px"})},[se.editable?(Q(),ee("div",hce,[(Q(!0),ee(We,null,lt(p.value,($,ue)=>(Q(),ee("div",{class:"drag-line",key:ue,style:we({left:$+"px"}),onMousedown:j=>V(j,ue)},null,44,pce))),128))])):Ze("",!0),Y("table",{class:qe({theme:l.value,"row-header":(Ae=l.value)==null?void 0:Ae.rowHeader,"row-footer":(ye=l.value)==null?void 0:ye.rowFooter,"col-header":(J=l.value)==null?void 0:J.colHeader,"col-footer":(ae=l.value)==null?void 0:ae.colFooter}),style:we(`--themeColor: ${(X=l.value)==null?void 0:X.color}; --subThemeColor1: ${H(u)[0]}; --subThemeColor2: ${H(u)[1]}`)},[Y("colgroup",null,[(Q(!0),ee(We,null,lt(f.value,($,ue)=>(Q(),ee("col",{span:"1",key:ue,width:$},null,8,mce))),128))]),Y("tbody",null,[(Q(!0),ee(We,null,lt(c.value,($,ue)=>(Q(),ee("tr",{key:ue,style:we({height:se.cellMinHeight+"px"})},[(Q(!0),ee(We,null,lt($,(j,q)=>Qe((Q(),ee("td",{class:qe(["cell",{selected:x.value.includes(`${ue}_${q}`)&&x.value.length>1,active:R.value===`${ue}_${q}`}]),style:we({borderStyle:se.outline.style,borderColor:se.outline.color,borderWidth:se.outline.width+"px",...H(LF)(j.style)}),key:j.id,rowspan:j.rowspan,colspan:j.colspan,"data-cell-index":`${ue}_${q}`,onMousedown:re=>g(re,ue,q),onMouseenter:re=>S(ue,q)},[R.value===`${ue}_${q}`?(Q(),Le(dce,{key:0,class:qe(["cell-text",{active:R.value===`${ue}_${q}`}]),style:we({minHeight:se.cellMinHeight-4+"px"}),value:j.text,onUpdateValue:re=>H(W)(re,ue,q),onInsertExcelData:re=>Z(re,ue,q)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):(Q(),ee("div",{key:1,class:"cell-text",style:we({minHeight:se.cellMinHeight-4+"px"}),innerHTML:H(OF)(j.text)},null,12,gce))],46,vce)),[[al,!H(A).includes(`${ue}_${q}`)],[me,re=>fe(re)]])),128))],4))),128))])],6)],4)}}}),Rce=Ee(Ace,[["__scopeId","data-v-d040a5e0"]]),yce={class:"element-content"},xce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=dt(),r=ut(),{canvasScale:o,handleElementId:i,isScaling:a}=Xe(n),s=ve(),{addHistorySnapshot:c}=Jt(),l=R=>{t.elementInfo.lock||(R.stopPropagation(),t.selectElement(R,t.elementInfo))},u=ve(!1);Tt(i,()=>{i.value!==t.elementInfo.id&&(u.value=!1)}),Tt(u,()=>{n.setDisableHotkeysState(u.value)});const f=()=>{t.elementInfo.lock||(u.value=!0)},d=ve(-1);Tt(a,()=>{i.value===t.elementInfo.id&&(a.value&&(u.value=!1),!a.value&&d.value!==-1&&(r.updateElement({id:t.elementInfo.id,props:{height:d.value}}),d.value=-1))});const h=R=>{const y=R[0].contentRect;if(!s.value)return;const g=y.height;t.elementInfo.height!==g&&(a.value?d.value=g:r.updateElement({id:t.elementInfo.id,props:{height:g}}))},p=new ResizeObserver(h);Gt(()=>{s.value&&p.observe(s.value)}),Pn(()=>{s.value&&p.unobserve(s.value)});const m=R=>{r.updateElement({id:t.elementInfo.id,props:{data:R}}),c()},A=R=>{const y=R.reduce((S,O)=>S+O),g=R.map(S=>S/y);r.updateElement({id:t.elementInfo.id,props:{width:y,colWidths:g}}),c()},x=R=>{Ur(()=>n.setSelectedTableCells(R))};return(R,y)=>{const g=Tn("contextmenu");return Q(),ee("div",{class:qe(["editable-element-table",{lock:R.elementInfo.lock}]),ref_key:"elementRef",ref:s,style:we({top:R.elementInfo.top+"px",left:R.elementInfo.left+"px",width:R.elementInfo.width+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${R.elementInfo.rotate}deg)`})},[Qe((Q(),ee("div",yce,[w(Rce,{onMousedown:y[0]||(y[0]=Kt(()=>{},["stop"])),data:R.elementInfo.data,width:R.elementInfo.width,cellMinHeight:R.elementInfo.cellMinHeight,colWidths:R.elementInfo.colWidths,outline:R.elementInfo.outline,theme:R.elementInfo.theme,editable:u.value,onChange:y[1]||(y[1]=S=>m(S)),onChangeColWidths:y[2]||(y[2]=S=>A(S)),onChangeSelectedCells:y[3]||(y[3]=S=>x(S))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!u.value||R.elementInfo.lock?(Q(),ee("div",{key:0,class:qe(["table-mask",{lock:R.elementInfo.lock}]),onDblclick:y[4]||(y[4]=S=>f()),onMousedown:y[5]||(y[5]=S=>l(S)),onTouchstart:y[6]||(y[6]=S=>l(S))},[H(i)===R.elementInfo.id?(Q(),ee("div",{key:0,class:"mask-tip",style:we({transform:`scale(${1/H(o)})`})},"双击编辑",4)):Ze("",!0)],34)):Ze("",!0)])),[[g,R.contextmenus]])],4)],6)}}}),PF=Ee(xce,[["__scopeId","data-v-7795910a"]]),bce=["width","height","stroke","stroke-width"],Sce=["transform"],Mce=["d"],wce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,n=o=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo))},r=()=>{Br.emit(Vr.OPEN_LATEX_EDITOR)};return(o,i)=>{const a=Tn("contextmenu");return Q(),ee("div",{class:qe(["editable-element-latex",{lock:o.elementInfo.lock}]),style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Qe((Q(),ee("div",{class:"element-content",onMousedown:i[0]||(i[0]=s=>n(s)),onTouchstart:i[1]||(i[1]=s=>n(s)),onDblclick:i[2]||(i[2]=s=>r())},[(Q(),ee("svg",{overflow:"visible",width:o.elementInfo.width,height:o.elementInfo.height,stroke:o.elementInfo.color,"stroke-width":o.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[Y("g",{transform:`scale(${o.elementInfo.width/o.elementInfo.viewBox[0]}, ${o.elementInfo.height/o.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[Y("path",{d:o.elementInfo.path},null,8,Mce)],8,Sce)],8,bce))],32)),[[a,o.contextmenus]])],4)],6)}}}),NF=Ee(wce,[["__scopeId","data-v-b73586f6"]]),Lce=(e,t)=>{Gt(()=>{if(!t.value)return;let n="normal";if(/m3u8(#|\?|$)/i.exec(e)?n="hls":/.flv(#|\?|$)/i.exec(e)&&(n="flv"),t.value&&n==="hls"&&(t.value.canPlayType("application/x-mpegURL")||t.value.canPlayType("application/vnd.apple.mpegURL"))&&(n="normal"),n==="hls"){const r=window.Hls;if(r&&r.isSupported()){const o=new r;o.loadSource(e),o.attachMedia(t.value)}}else if(n==="flv"){const r=window.flvjs;if(r&&r.isSupported()){const o=r.createPlayer({type:"flv",url:e});o.attachMediaElement(t.value),o.load()}}})},w5=e=>(on("data-v-772b3779"),e=e(),an(),e),Oce={key:0,class:"load-error"},Tce=["src","autoplay","poster"],kce={class:"bezel"},Pce=w5(()=>Y("div",{class:"controller-mask"},null,-1)),Nce={class:"controller"},Cce={class:"icons icons-left"},Ice={class:"icon-content"},Fce={class:"volume"},_ce={class:"icon-content"},Xce=w5(()=>Y("span",{class:"thumb"},null,-1)),Ece=[Xce],Wce={class:"time"},Vce={class:"ptime"},Uce={class:"dtime"},Yce={class:"icons icons-right"},Qce={class:"speed"},Zce={class:"icon speed-icon"},Bce=["onClick"],Dce={class:"icon-content"},Kce={class:"bar"},Hce=w5(()=>Y("span",{class:"thumb"},null,-1)),Gce=[Hce],Jce=Fe({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e){const t=e,n=(X=0)=>{if(X===0||isNaN(X))return"00:00";const $=re=>re<10?"0"+re:""+re,ue=Math.floor(X/3600),j=Math.floor((X-ue*3600)/60),q=Math.floor(X-ue*3600-j*60);return(ue>0?[ue,j,q]:[j,q]).map($).join(":")},r=X=>X.getBoundingClientRect().left,o=ve(),i=ve(),a=ve(),s=ve(.5),c=ve(!0),l=ve(0),u=ve(0),f=ve(0),d=ve(!1),h=ve(!1),p=ve(1),m=ve(!1),A=ve("00:00"),x=ve("0"),R=Se(()=>n(l.value)),y=Se(()=>n(u.value)),g=Se(()=>l.value/u.value*100+"%"),S=Se(()=>f.value/u.value*100+"%"),O=Se(()=>s.value*100+"%"),T=ve(!1),M=[{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}],L=X=>{o.value&&(X=Math.max(X,0),X=Math.min(X,u.value),o.value.currentTime=X,l.value=X)},k=()=>{o.value&&(c.value=!1,o.value.play(),h.value=!0)},F=()=>{o.value&&(c.value=!0,o.value.pause(),h.value=!0)},N=()=>{c.value?k():F()},E=X=>{o.value&&(X=Math.max(X,0),X=Math.min(X,1),o.value.volume=X,s.value=X,o.value.muted&&X!==0&&(o.value.muted=!1))},C=X=>{o.value&&(o.value.playbackRate=X),p.value=X},_=()=>{var X;u.value=((X=o.value)==null?void 0:X.duration)||0},I=()=>{var X;l.value=((X=o.value)==null?void 0:X.currentTime)||0},V=()=>{d.value?(L(0),k()):F()},B=()=>{var X;f.value=(X=o.value)!=null&&X.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},G=ve(!1),oe=()=>G.value=!0,W=X=>{if(!o.value||!i.value)return;let ue=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;ue=Math.max(ue,0),ue=Math.min(ue,1);const j=ue*u.value;o.value.currentTime=j,l.value=j},Z=X=>{if(!o.value||!i.value)return;let ue=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(i.value))/i.value.clientWidth;ue=Math.max(ue,0),ue=Math.min(ue,1);const j=ue*u.value;o.value.currentTime=j,l.value=j,document.removeEventListener("mousemove",W),document.removeEventListener("touchmove",W),document.removeEventListener("mouseup",Z),document.removeEventListener("touchend",Z)},K=()=>{document.addEventListener("mousemove",W),document.addEventListener("touchmove",W),document.addEventListener("mouseup",Z),document.addEventListener("touchend",Z)},U=X=>{if(!a.value)return;const ue=(("clientX"in X?X.clientX:X.changedTouches[0].clientX)-r(a.value))/45;E(ue)},z=()=>{document.removeEventListener("mousemove",U),document.removeEventListener("touchmove",U),document.removeEventListener("mouseup",z),document.removeEventListener("touchend",z)},fe=()=>{document.addEventListener("mousemove",U),document.addEventListener("touchmove",U),document.addEventListener("mouseup",z),document.addEventListener("touchend",z)},se=X=>{if(!a.value)return;const $=(X.clientX-r(a.value))/45;E($)},ie=X=>{if(u.value&&i.value){const $=i.value.getBoundingClientRect().left,ue=X.clientX-$;if(ue<0||ue>i.value.offsetWidth)return;const j=u.value*(ue/i.value.offsetWidth);x.value=`${ue-(j>=3600?25:20)}px`,A.value=n(j),m.value=!0}},me=()=>{o.value&&(o.value.muted?(o.value.muted=!1,E(.5)):(o.value.muted=!0,E(0)))},Ae=()=>{d.value=!d.value},ye=ve(-1),J=ve(!1),ae=()=>{J.value=!1,clearTimeout(ye.value),ye.value=setTimeout(()=>{var X;(X=o.value)!=null&&X.played.length&&(J.value=!0)},3e3)};return Lce(t.src,o),(X,$)=>{const ue=xe("IconPause"),j=xe("IconPlayOne"),q=xe("IconVolumeMute"),re=xe("IconVolumeNotice"),pe=xe("IconVolumeSmall");return Q(),ee("div",{class:qe(["video-player",{"hide-controller":J.value}]),style:we({width:X.width*X.scale+"px",height:X.height*X.scale+"px",transform:`scale(${1/X.scale})`}),onMousemove:$[22]||($[22]=le=>ae()),onClick:$[23]||($[23]=le=>ae())},[Y("div",{class:"video-wrap",onClick:$[8]||($[8]=le=>N())},[G.value?(Q(),ee("div",Oce,"视频加载失败")):Ze("",!0),Y("video",{class:"video",ref_key:"videoRef",ref:o,src:X.src,autoplay:X.autoplay,poster:X.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:$[0]||($[0]=le=>_()),onTimeupdate:$[1]||($[1]=le=>I()),onEnded:$[2]||($[2]=le=>V()),onProgress:$[3]||($[3]=le=>B()),onPlay:$[4]||($[4]=le=>{ae(),c.value=!1}),onPause:$[5]||($[5]=le=>ae()),onError:$[6]||($[6]=le=>oe())},null,40,Tce),Y("div",kce,[Y("span",{class:qe(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:$[7]||($[7]=le=>h.value=!1)},[c.value?(Q(),Le(ue,{key:0})):(Q(),Le(j,{key:1}))],34)])]),Pce,Y("div",Nce,[Y("div",Cce,[Y("div",{class:"icon play-icon",onClick:$[9]||($[9]=le=>N())},[Y("span",Ice,[c.value?(Q(),Le(j,{key:0})):(Q(),Le(ue,{key:1}))])]),Y("div",Fce,[Y("div",{class:"icon volume-icon",onClick:$[10]||($[10]=le=>me())},[Y("span",_ce,[s.value===0?(Q(),Le(q,{key:0})):s.value===1?(Q(),Le(re,{key:1})):(Q(),Le(pe,{key:2}))])]),Y("div",{class:"volume-bar-wrap",onMousedown:$[11]||($[11]=le=>fe()),onTouchstart:$[12]||($[12]=le=>fe()),onClick:$[13]||($[13]=le=>se(le))},[Y("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:a},[Y("div",{class:"volume-bar-inner",style:we({width:O.value})},Ece,4)],512)],32)]),Y("span",Wce,[Y("span",Vce,St(R.value),1),Ve(" / "),Y("span",Uce,St(y.value),1)])]),Y("div",Yce,[Y("div",Qce,[Y("div",Zce,[Y("span",{class:"icon-content",onClick:$[14]||($[14]=le=>T.value=!T.value)},St(p.value===1?"倍速":p.value+"x"),1),T.value?(Q(),ee("div",{key:0,class:"speed-menu",onMouseleave:$[15]||($[15]=le=>T.value=!1)},[(Q(),ee(We,null,lt(M,le=>Y("div",{class:qe(["speed-menu-item",{active:le.value===p.value}]),key:le.label,onClick:ce=>C(le.value)},St(le.label),11,Bce)),64))],32)):Ze("",!0)])]),Y("div",{class:"loop",onClick:$[16]||($[16]=le=>Ae())},[Y("div",{class:qe(["icon loop-icon",{active:d.value}])},[Y("span",Dce,"循环"+St(d.value?"开":"关"),1)],2)])]),Y("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:i,onMousedown:$[17]||($[17]=le=>K()),onTouchstart:$[18]||($[18]=le=>K()),onMousemove:$[19]||($[19]=le=>ie(le)),onMouseenter:$[20]||($[20]=le=>m.value=!0),onMouseleave:$[21]||($[21]=le=>m.value=!1)},[Y("div",{class:qe(["bar-time",{hidden:!m.value}]),style:we({left:x.value})},St(A.value),7),Y("div",Kce,[Y("div",{class:"loaded",style:we({width:S.value})},null,4),Y("div",{class:"played",style:we({width:g.value})},Gce,4)])],544)])],38)}}}),CF=Ee(Jce,[["__scopeId","data-v-772b3779"]]),zce=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(dt()),r=(o,i=!0)=>{t.elementInfo.lock||(o.stopPropagation(),t.selectElement(o,t.elementInfo,i))};return(o,i)=>{const a=Tn("contextmenu");return Q(),ee("div",{class:qe(["editable-element-video",{lock:o.elementInfo.lock}]),style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Qe((Q(),ee("div",{class:"element-content",onMousedown:i[2]||(i[2]=s=>r(s,!1)),onTouchstart:i[3]||(i[3]=s=>r(s,!1))},[w(CF,{width:o.elementInfo.width,height:o.elementInfo.height,src:o.elementInfo.src,poster:o.elementInfo.poster,scale:H(n)},null,8,["width","height","src","poster","scale"]),(Q(),ee(We,null,lt(["t","b","l","r"],s=>Y("div",{class:qe(["handler-border",s]),key:s,onMousedown:i[0]||(i[0]=c=>r(c)),onTouchstart:i[1]||(i[1]=c=>r(c))},null,34)),64))],32)),[[a,o.contextmenus]])],4)],6)}}}),IF=Ee(zce,[["__scopeId","data-v-c50d3bc7"]]),FF=e=>(on("data-v-a0b74ebc"),e=e(),an(),e),$ce=["src","autoplay"],jce={class:"controller"},qce={class:"icons"},eue={class:"icon-content"},tue={class:"volume"},nue={class:"icon-content"},rue=FF(()=>Y("span",{class:"thumb"},null,-1)),oue=[rue],iue={class:"time"},aue={class:"ptime"},sue={class:"dtime"},lue={class:"bar"},cue=FF(()=>Y("span",{class:"thumb"},null,-1)),uue=[cue],fue=Fe({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e,{expose:t}){const n=e,r=(z=0)=>{if(z===0||isNaN(z))return"00:00";const fe=Ae=>Ae<10?"0"+Ae:""+Ae,se=Math.floor(z/3600),ie=Math.floor((z-se*3600)/60),me=Math.floor(z-se*3600-ie*60);return(se>0?[se,ie,me]:[ie,me]).map(fe).join(":")},o=z=>z.getBoundingClientRect().left,i=ve(),a=ve(),s=ve(),c=ve(.5),l=ve(!0),u=ve(0),f=ve(0),d=ve(0),h=ve(!1),p=ve("00:00"),m=ve("0"),A=Se(()=>r(u.value)),x=Se(()=>r(f.value)),R=Se(()=>u.value/f.value*100+"%"),y=Se(()=>d.value/f.value*100+"%"),g=Se(()=>c.value*100+"%"),S=z=>{i.value&&(z=Math.max(z,0),z=Math.min(z,f.value),i.value.currentTime=z,u.value=z)},O=()=>{i.value&&(l.value=!1,i.value.play())},T=()=>{i.value&&(l.value=!0,i.value.pause())},M=()=>{l.value?O():T()},L=z=>{i.value&&(z=Math.max(z,0),z=Math.min(z,1),i.value.volume=z,c.value=z,i.value.muted&&z!==0&&(i.value.muted=!1))},k=()=>{var z;f.value=((z=i.value)==null?void 0:z.duration)||0},F=()=>{var z;u.value=((z=i.value)==null?void 0:z.currentTime)||0},N=()=>{l.value=!1},E=()=>{n.loop?(S(0),O()):T()},C=()=>{var z;d.value=(z=i.value)!=null&&z.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},_=()=>On.error("视频加载失败"),I=z=>{if(!i.value||!a.value)return;let se=(("clientX"in z?z.clientX:z.changedTouches[0].clientX)-o(a.value))/a.value.clientWidth;se=Math.max(se,0),se=Math.min(se,1);const ie=se*f.value;i.value.currentTime=ie,u.value=ie},V=z=>{if(!i.value||!a.value)return;let se=(("clientX"in z?z.clientX:z.changedTouches[0].clientX)-o(a.value))/a.value.clientWidth;se=Math.max(se,0),se=Math.min(se,1);const ie=se*f.value;i.value.currentTime=ie,u.value=ie,document.removeEventListener("mousemove",I),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",V),document.removeEventListener("touchend",V)},B=()=>{document.addEventListener("mousemove",I),document.addEventListener("touchmove",I),document.addEventListener("mouseup",V),document.addEventListener("touchend",V)},G=z=>{if(!s.value)return;const se=(("clientX"in z?z.clientX:z.changedTouches[0].clientX)-o(s.value))/45;L(se)},oe=()=>{document.removeEventListener("mousemove",G),document.removeEventListener("touchmove",G),document.removeEventListener("mouseup",oe),document.removeEventListener("touchend",oe)},W=()=>{document.addEventListener("mousemove",G),document.addEventListener("touchmove",G),document.addEventListener("mouseup",oe),document.addEventListener("touchend",oe)},Z=z=>{if(!s.value)return;const fe=(z.clientX-o(s.value))/45;L(fe)},K=z=>{if(f.value&&a.value){const fe=a.value.getBoundingClientRect().left,se=z.clientX-fe;if(se<0||se>a.value.offsetWidth)return;const ie=f.value*(se/a.value.offsetWidth);m.value=`${se-(ie>=3600?25:20)}px`,p.value=r(ie),h.value=!0}},U=()=>{i.value&&(i.value.muted?(i.value.muted=!1,L(.5)):(i.value.muted=!0,L(0)))};return t({toggle:M}),(z,fe)=>{const se=xe("IconPlayOne"),ie=xe("IconPause"),me=xe("IconVolumeMute"),Ae=xe("IconVolumeNotice"),ye=xe("IconVolumeSmall");return Q(),ee("div",{class:"audio-player",style:we({transform:`scale(${1/z.scale})`})},[Y("audio",{class:"audio",ref_key:"audioRef",ref:i,src:z.src,autoplay:z.autoplay,onDurationchange:fe[0]||(fe[0]=J=>k()),onTimeupdate:fe[1]||(fe[1]=J=>F()),onPlay:fe[2]||(fe[2]=J=>N()),onEnded:fe[3]||(fe[3]=J=>E()),onProgress:fe[4]||(fe[4]=J=>C()),onError:fe[5]||(fe[5]=J=>_())},null,40,$ce),Y("div",jce,[Y("div",qce,[Y("div",{class:"icon play-icon",onClick:fe[6]||(fe[6]=J=>M())},[Y("span",eue,[l.value?(Q(),Le(se,{key:0})):(Q(),Le(ie,{key:1}))])]),Y("div",tue,[Y("div",{class:"icon volume-icon",onClick:fe[7]||(fe[7]=J=>U())},[Y("span",nue,[c.value===0?(Q(),Le(me,{key:0})):c.value===1?(Q(),Le(Ae,{key:1})):(Q(),Le(ye,{key:2}))])]),Y("div",{class:"volume-bar-wrap",onMousedown:fe[8]||(fe[8]=J=>W()),onTouchstart:fe[9]||(fe[9]=J=>W()),onClick:fe[10]||(fe[10]=J=>Z(J))},[Y("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[Y("div",{class:"volume-bar-inner",style:we({width:g.value})},oue,4)],512)],32)])]),Y("span",iue,[Y("span",aue,St(A.value),1),Ve(" / "),Y("span",sue,St(x.value),1)]),Y("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:fe[11]||(fe[11]=J=>B()),onTouchstart:fe[12]||(fe[12]=J=>B()),onMousemove:fe[13]||(fe[13]=J=>K(J)),onMouseenter:fe[14]||(fe[14]=J=>h.value=!0),onMouseleave:fe[15]||(fe[15]=J=>h.value=!1)},[Y("div",{class:qe(["bar-time",{hidden:!h.value}]),style:we({left:m.value})},St(p.value),7),Y("div",lue,[Y("div",{class:"loaded",style:we({width:y.value})},null,4),Y("div",{class:"played",style:we({width:R.value})},uue,4)])],544)])],4)}}}),_F=Ee(fue,[["__scopeId","data-v-a0b74ebc"]]),due=Fe({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:n,handleElementId:r}=Xe(dt()),{viewportRatio:o}=Xe(ut()),i=Se(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"),a=Se(()=>{const c=Ht,l=Ht*o.value,u=280/n.value,f=50/n.value,d=t.elementInfo.width,h=t.elementInfo.height,p=t.elementInfo.left,m=t.elementInfo.top;let A=0,x=h;return p+u>=c&&(A=d-u),m+h+f>=l&&(x=-f),{left:A+"px",top:x+"px"}}),s=c=>{t.elementInfo.lock||(c.stopPropagation(),t.selectElement(c,t.elementInfo))};return(c,l)=>{const u=xe("IconVolumeNotice"),f=Tn("contextmenu");return Q(),ee("div",{class:qe(["editable-element-audio",{lock:c.elementInfo.lock}]),style:we({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px",width:c.elementInfo.width+"px",height:c.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${c.elementInfo.rotate}deg)`})},[Qe((Q(),ee("div",{class:"element-content",onMousedown:l[1]||(l[1]=d=>s(d)),onTouchstart:l[2]||(l[2]=d=>s(d))},[w(u,{class:"audio-icon",style:we({fontSize:i.value,color:c.elementInfo.color})},null,8,["style"]),H(r)===c.elementInfo.id?(Q(),Le(_F,{key:0,class:"audio-player",style:we({...a.value}),src:c.elementInfo.src,loop:c.elementInfo.loop,scale:H(n),onMousedown:l[0]||(l[0]=Kt(()=>{},["stop"]))},null,8,["style","src","loop","scale"])):Ze("",!0)],32)),[[f,c.contextmenus]])],4)],6)}}}),XF=Ee(due,[["__scopeId","data-v-5d8373ba"]]),hue=["id"],pue=Fe({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,n=Se(()=>({[Nt.IMAGE]:yI,[Nt.TEXT]:hF,[Nt.SHAPE]:mF,[Nt.LINE]:vF,[Nt.CHART]:wF,[Nt.TABLE]:PF,[Nt.LATEX]:NF,[Nt.VIDEO]:IF,[Nt.AUDIO]:XF})[t.elementInfo.type]||null),{orderElement:r}=Cp(),{alignElementToCanvas:o}=a2(),{combineElements:i,uncombineElements:a}=Cb(),{deleteElement:s}=Np(),{lockElement:c,unlockElement:l}=$N(),{copyElement:u,pasteElement:f,cutElement:d}=Ib(),{selectAllElement:h}=Fb(),p=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>l(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:d},{text:"复制",subText:"Ctrl + C",handler:u},{text:"粘贴",subText:"Ctrl + V",handler:f},{divider:!0},{text:"水平居中",handler:()=>o(nn.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>o(nn.CENTER)},{text:"水平居中",handler:()=>o(nn.HORIZONTAL)},{text:"左对齐",handler:()=>o(nn.LEFT)},{text:"右对齐",handler:()=>o(nn.RIGHT)}]},{text:"垂直居中",handler:()=>o(nn.VERTICAL),children:[{text:"水平垂直居中",handler:()=>o(nn.CENTER)},{text:"垂直居中",handler:()=>o(nn.VERTICAL)},{text:"顶部对齐",handler:()=>o(nn.TOP)},{text:"底部对齐",handler:()=>o(nn.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,mr.TOP),children:[{text:"置于顶层",handler:()=>r(t.elementInfo,mr.TOP)},{text:"上移一层",handler:()=>r(t.elementInfo,mr.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>r(t.elementInfo,mr.BOTTOM),children:[{text:"置于底层",handler:()=>r(t.elementInfo,mr.BOTTOM)},{text:"下移一层",handler:()=>r(t.elementInfo,mr.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?a:i,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:h},{text:"锁定",subText:"Ctrl + L",handler:c},{text:"删除",subText:"Delete",handler:s}];return(m,A)=>(Q(),ee("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${m.elementInfo.id}`,style:we({zIndex:m.elementIndex})},[(Q(),Le(bs(n.value),{elementInfo:m.elementInfo,selectElement:m.selectElement,contextmenus:p},null,8,["elementInfo","selectElement"]))],12,hue))}}),mue=Fe({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(t,n)=>(Q(),ee("div",{class:qe(`mouse-selection quadrant-${t.quadrant}`),style:we({top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},null,6))}}),vue=Ee(mue,[["__scopeId","data-v-053bfa3e"]]),gue={class:"grid-lines"},Aue=["d","stroke"],Rue=Fe({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:n}=Xe(dt()),{currentSlide:r,viewportRatio:o}=Xe(ut()),i=Se(()=>{var c;return(c=r.value)==null?void 0:c.background}),a=Se(()=>{var u;const c=((u=i.value)==null?void 0:u.color)||"#fff",l=["#000","#fff"];return it.mostReadable(c,l,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()}),s=Se(()=>{const c=Ht,l=Ht*o.value;let u="";for(let f=0;f<=Math.floor(l/n.value);f++)u+=`M0 ${f*n.value} L${c} ${f*n.value} `;for(let f=0;f<=Math.floor(c/n.value);f++)u+=`M${f*n.value} 0 L${f*n.value} ${l} `;return u});return(c,l)=>(Q(),ee("svg",gue,[Y("path",{style:we({transform:`scale(${H(t)})`}),d:s.value,fill:"none",stroke:a.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,Aue)]))}}),yue=Ee(Rue,[["__scopeId","data-v-d6e1ea18"]]),d2=e=>({backgroundStyle:Se(()=>{if(!e.value)return{backgroundColor:"#fff"};const{type:n,color:r,image:o,imageSize:i,gradientColor:a,gradientRotate:s,gradientType:c}=e.value;if(n==="solid")return{backgroundColor:r};if(n==="image")return o?i==="repeat"?{backgroundImage:`url(${o}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${o}`,backgroundRepeat:"no-repeat",backgroundSize:i||"cover"}:{backgroundColor:"#fff"};if(n==="gradient"){const l=s||0,u=a?a[0]:"#fff",f=a?a[1]:"#fff";return c==="radial"?{backgroundImage:`radial-gradient(${u}, ${f}`}:{backgroundImage:`linear-gradient(${l}deg, ${u}, ${f}`}}return{backgroundColor:"#fff"}})}),xue=Fe({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=Xe(dt()),{currentSlide:n}=Xe(ut()),r=Se(()=>{var i;return(i=n.value)==null?void 0:i.background}),{backgroundStyle:o}=d2(r);return(i,a)=>(Q(),ee("div",{class:"viewport-background",style:we(H(o))},[H(t)?(Q(),Le(yue,{key:0})):Ze("",!0)],4))}}),bue=Ee(xue,[["__scopeId","data-v-203ea8ff"]]),Sue=Fe({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,n=Se(()=>t.axis.x*t.canvasScale+"px"),r=Se(()=>t.axis.y*t.canvasScale+"px"),o=Se(()=>t.type==="vertical"?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"});return(i,a)=>(Q(),ee("div",{class:"alignment-line",style:we({left:n.value,top:r.value})},[Y("div",{class:qe(["line",i.type]),style:we(o.value)},null,6)],4))}}),EF=Ee(Sue,[["__scopeId","data-v-7cd3d25d"]]),Mue={class:"ruler"},wue=Fe({__name:"Ruler",props:{viewportStyles:{}},setup(e){const t=e,{canvasScale:n}=Xe(dt()),r=Se(()=>t.viewportStyles.width*n.value/10);return(o,i)=>(Q(),ee("div",Mue,[Y("div",{class:"h",style:we({width:o.viewportStyles.width*H(n)+"px",left:o.viewportStyles.left+"px"})},[(Q(),ee(We,null,lt(20,a=>Y("div",{class:qe(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:`marker-100-${a}`},[Y("span",null,St(a),1)],2)),64))],4),Y("div",{class:"v",style:we({height:o.viewportStyles.height*H(n)+"px",top:o.viewportStyles.top+"px"})},[(Q(),ee(We,null,lt(20,a=>Y("div",{class:qe(["ruler-marker-100",{hide:r.value<36,omit:r.value<72}]),key:a,style:we({height:r.value+"px"})},[Y("span",null,St(a),1)],6)),64))],4)]))}}),Lue=Ee(wue,[["__scopeId","data-v-b01be305"]]),Oue=["width","height"],Tue=["d"],kue=Fe({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const n=t,r=dt(),{creatingElement:o}=Xe(r),{ctrlOrShiftKeyActive:i}=Xe(Ms()),a=ve(),s=ve(),c=ve(),l=ve({x:0,y:0});Gt(()=>{if(!c.value)return;const{x:h,y:p}=c.value.getBoundingClientRect();l.value={x:h,y:p}});const u=h=>{let p=!0;const m=h.pageX,A=h.pageY;a.value=[m,A],document.onmousemove=x=>{if(!o.value||!p)return;let R=x.pageX,y=x.pageY;if(i.value){const g=R-m,S=y-A,O=Math.abs(g),T=Math.abs(S);if(o.value.type==="shape"){const M=S>0&&g<0||S<0&&g>0;O>T?y=M?A-g:A+g:R=M?m-S:m+S}else o.value.type==="line"&&(O>T?y=A:R=m)}s.value=[R,y]},document.onmouseup=x=>{var S,O;if(document.onmousemove=null,document.onmouseup=null,x.button===2){setTimeout(()=>r.setCreatingElement(null),0);return}p=!1;const R=x.pageX,y=x.pageY,g=30;if(((S=o.value)==null?void 0:S.type)==="line"&&(Math.abs(R-m)>=g||Math.abs(y-A)>=g))n("created",{start:a.value,end:s.value});else if(((O=o.value)==null?void 0:O.type)!=="line"&&Math.abs(R-m)>=g&&Math.abs(y-A)>=g)n("created",{start:a.value,end:s.value});else{const M=Math.min(R,m),L=Math.min(y,A),k=Math.max(R,m),F=Math.max(y,A),N=k-M>=g?k-M:200,E=F-L>=g?F-L:200;n("created",{start:[M,L],end:[M+N,L+E]})}}},f=Se(()=>{if(!a.value||!s.value||!o.value||o.value.type!=="line")return null;const[h,p]=a.value,[m,A]=s.value,x=Math.min(h,m),R=Math.max(h,m),y=Math.min(p,A),g=Math.max(p,A),S=R-x>=24?R-x:24,O=g-y>=24?g-y:24,T=h===x?0:R-x,M=p===y?0:g-y,L=m===x?0:R-x,k=A===y?0:g-y,F=`M${T}, ${M} L${L}, ${k}`;return{svgWidth:S,svgHeight:O,startX:T,startY:M,endX:L,endY:k,path:F}}),d=Se(()=>{if(!a.value||!s.value)return{};const[h,p]=a.value,[m,A]=s.value,x=Math.min(h,m),R=Math.max(h,m),y=Math.min(p,A),g=Math.max(p,A),S=R-x,O=g-y;return{left:x-l.value.x+"px",top:y-l.value.y+"px",width:S+"px",height:O+"px"}});return(h,p)=>{var m,A;return Q(),ee("div",{class:"element-create-selection",ref_key:"selectionRef",ref:c,onMousedown:p[0]||(p[0]=Kt(x=>u(x),["stop"])),onContextmenu:p[1]||(p[1]=Kt(()=>{},["stop","prevent"]))},[a.value&&s.value?(Q(),ee("div",{key:0,class:qe(["selection",(m=H(o))==null?void 0:m.type]),style:we(d.value)},[((A=H(o))==null?void 0:A.type)==="line"&&f.value?(Q(),ee("svg",{key:0,overflow:"visible",width:f.value.svgWidth,height:f.value.svgHeight},[Y("path",{d:f.value.path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,Tue)],8,Oue)):Ze("",!0)],6)):Ze("",!0)],544)}}}),Pue=Ee(kue,[["__scopeId","data-v-7b17a883"]]),Nue={overflow:"visible"},Cue=["d","fill"],Iue=Fe({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const n=t,r=dt(),{ctrlOrShiftKeyActive:o}=Xe(Ms()),{theme:i}=Xe(ut()),a=ve(),s=ve(!1),c=ve({x:0,y:0});Gt(()=>{if(!a.value)return;const{x:g,y:S}=a.value.getBoundingClientRect();c.value={x:g,y:S}});const l=ve(null),u=ve([]),f=ve(!1),d=(g,S=!1)=>{let O=g.pageX-c.value.x,T=g.pageY-c.value.y;if(S)return{pageX:O,pageY:T};if(o.value&&u.value.length){const[M,L]=u.value[u.value.length-1];Math.abs(M-O)-Math.abs(L-T)>0?T=L:O=M}return{pageX:O,pageY:T}},h=g=>{if(s.value){const{pageX:T,pageY:M}=d(g,!0);u.value.push([T,M]),l.value=null;return}const{pageX:S,pageY:O}=d(g);if(l.value=[S,O],u.value.length>=2){const[T,M]=u.value[0];Math.abs(T-S)<5&&Math.abs(M-O)<5?f.value=!0:f.value=!1}else f.value=!1},p=Se(()=>{let g="";for(let S=0;S{const S=u.value.map(I=>I[0]),O=u.value.map(I=>I[1]),T=Math.min(...S),M=Math.min(...O),L=Math.max(...S),k=Math.max(...O),F=u.value.map(I=>[I[0]-T,I[1]-M]);let N="";for(let I=0;I{const{pageX:S,pageY:O}=d(g);s.value=!0,f.value?n("created",m()):u.value.push([S,O]),document.onmouseup=()=>{s.value=!1}},x=()=>{r.setCreatingCustomShapeState(!1)},R=()=>{n("created",{...m(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:i.value.themeColor,style:"solid"}}),x()},y=g=>{const S=g.key.toUpperCase();S===yt.ESC&&x(),S===yt.ENTER&&R()};return Gt(()=>{On.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:5e3}),document.addEventListener("keydown",y)}),Pn(()=>document.removeEventListener("keydown",y)),(g,S)=>(Q(),ee("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:a,onMousedown:S[0]||(S[0]=Kt(O=>A(O),["stop"])),onMousemove:S[1]||(S[1]=O=>h(O)),onContextmenu:S[2]||(S[2]=Kt(O=>x(),["stop","prevent"]))},[(Q(),ee("svg",Nue,[Y("path",{d:p.value,stroke:"#d14424",fill:f.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,Cue)]))],544))}}),Fue=Ee(Iue,[["__scopeId","data-v-541857e0"]]),of=(e,t)=>{const n=Se(()=>[{direction:vt.LEFT_TOP,style:{}},{direction:vt.TOP,style:{left:e.value/2+"px"}},{direction:vt.RIGHT_TOP,style:{left:e.value+"px"}},{direction:vt.LEFT,style:{top:t.value/2+"px"}},{direction:vt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:vt.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:vt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:vt.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]),r=Se(()=>[{direction:vt.LEFT,style:{top:t.value/2+"px"}},{direction:vt.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]),o=Se(()=>[{direction:vt.TOP,style:{left:e.value/2+"px"}},{direction:vt.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]),i=Se(()=>[{type:U0.T,style:{width:e.value+"px"}},{type:U0.B,style:{top:t.value+"px",width:e.value+"px"}},{type:U0.L,style:{height:t.value+"px"}},{type:U0.R,style:{left:e.value+"px",height:t.value+"px"}}]);return{resizeHandlers:n,textElementResizeHandlers:r,verticalTextElementResizeHandlers:o,borderLines:i}},_ue=Fe({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,n=Se(()=>{const r="rotate-",o=t.rotate;return o>-22.5&&o<=22.5?r+0:o>22.5&&o<=67.5?r+45:o>67.5&&o<=112.5?r+90:o>112.5&&o<=157.5?r+135:o>157.5||o<=-157.5?r+0:o>-157.5&&o<=-112.5?r+45:o>-112.5&&o<=-67.5?r+90:o>-67.5&&o<=-22.5?r+135:r+0});return(r,o)=>(Q(),ee("div",{class:qe(["resize-handler",n.value,r.type])},null,2))}}),kc=Ee(_ue,[["__scopeId","data-v-bb3f9e62"]]),Xue=Fe({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(t,n)=>(Q(),ee("div",{class:qe(["border-line",t.type,{wide:t.isWide}])},null,2))}}),af=Ee(Xue,[["__scopeId","data-v-7114fb45"]]),Eue=Fe({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:n,canvasScale:r}=Xe(dt()),o=Se(()=>t.elementList.filter(d=>n.value.includes(d.id))),i=ve({minX:0,maxX:0,minY:0,maxY:0}),a=Se(()=>(i.value.maxX-i.value.minX)*r.value),s=Se(()=>(i.value.maxY-i.value.minY)*r.value),{resizeHandlers:c,borderLines:l}=of(a,s);kg(()=>{const{minX:d,maxX:h,minY:p,maxY:m}=nc(o.value);i.value={minX:d,maxX:h,minY:p,maxY:m}});const f=Se(()=>o.value.some(d=>!((d.type==="image"||d.type==="shape")&&!d.rotate)));return(d,h)=>(Q(),ee("div",{class:"multi-select-operate",style:we({left:i.value.minX*H(r)+"px",top:i.value.minY*H(r)+"px"})},[(Q(!0),ee(We,null,lt(H(l),p=>(Q(),Le(af,{key:p.type,type:p.type,style:we(p.style)},null,8,["type","style"]))),128)),f.value?Ze("",!0):(Q(!0),ee(We,{key:0},lt(H(c),p=>(Q(),Le(kc,{key:p.direction,type:p.direction,style:we(p.style),onMousedown:Kt(m=>d.scaleMultiElement(m,i.value,p.direction),["stop"])},null,8,["type","style","onMousedown"]))),128))],4))}}),Wue=Ee(Eue,[["__scopeId","data-v-135c8cb7"]]),Vue={},Uue={class:"rotate-handler"};function Yue(e,t){return Q(),ee("div",Uue)}const $d=Ee(Vue,[["render",Yue],["__scopeId","data-v-9f21fc0f"]]),Que={inheritAttrs:!1},Zue=Fe({...Que,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n,clipingImageElementId:r}=Xe(dt()),o=Se(()=>r.value===t.elementInfo.id),i=Se(()=>t.elementInfo.width*n.value),a=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:s,borderLines:c}=of(i,a);return(l,u)=>(Q(),ee("div",{class:qe(["image-element-operate",{cliping:o.value}])},[(Q(!0),ee(We,null,lt(H(c),f=>(Q(),Le(af,{class:"operate-border-line",key:f.type,type:f.type,style:we(f.style)},null,8,["type","style"]))),128)),l.handlerVisible?(Q(),ee(We,{key:0},[(Q(!0),ee(We,null,lt(H(s),f=>(Q(),Le(kc,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:l.elementInfo.rotate,style:we(f.style),onMousedown:Kt(d=>l.scaleElement(d,l.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w($d,{class:"operate-rotate-handler",style:we({left:i.value/2+"px"}),onMousedown:u[0]||(u[0]=Kt(f=>l.rotateElement(f,l.elementInfo),["stop"]))},null,8,["style"])],64)):Ze("",!0)],2))}}),Bue=Ee(Zue,[["__scopeId","data-v-2a1bef4e"]]),Due={class:"text-element-operate"},Kue={inheritAttrs:!1},Hue=Fe({...Kue,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(dt()),r=Se(()=>t.elementInfo.width*n.value),o=Se(()=>t.elementInfo.height*n.value),{textElementResizeHandlers:i,verticalTextElementResizeHandlers:a,borderLines:s}=of(r,o),c=Se(()=>t.elementInfo.vertical?a.value:i.value);return(l,u)=>(Q(),ee("div",Due,[(Q(!0),ee(We,null,lt(H(s),f=>(Q(),Le(af,{class:"operate-border-line",key:f.type,type:f.type,style:we(f.style)},null,8,["type","style"]))),128)),l.handlerVisible?(Q(),ee(We,{key:0},[(Q(!0),ee(We,null,lt(c.value,f=>(Q(),Le(kc,{class:"operate-resize-handler",key:f.direction,type:f.direction,rotate:l.elementInfo.rotate,style:we(f.style),onMousedown:Kt(d=>l.scaleElement(d,l.elementInfo,f.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w($d,{class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:u[0]||(u[0]=Kt(f=>l.rotateElement(f,l.elementInfo),["stop"]))},null,8,["style"])],64)):Ze("",!0)]))}}),Gue={class:"shape-element-operate"},Jue={inheritAttrs:!1},zue=Fe({...Jue,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(dt()),r=Se(()=>t.elementInfo.width*n.value),o=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:a}=of(r,o),s=Se(()=>{if(!t.elementInfo.pathFormula||t.elementInfo.keypoint===void 0)return{};const c=ju[t.elementInfo.pathFormula];if("editable"in c){const l=c.getBaseSize(t.elementInfo.width,t.elementInfo.height)*t.elementInfo.keypoint;if(c.relative==="left")return{left:l*n.value+"px"};if(c.relative==="right")return{left:(t.elementInfo.width-l)*n.value+"px"};if(c.relative==="center")return{left:(t.elementInfo.width-l)/2*n.value+"px"};if(c.relative==="top")return{top:l*n.value+"px"};if(c.relative==="bottom")return{top:(t.elementInfo.height-l)*n.value+"px"}}return{}});return(c,l)=>(Q(),ee("div",Gue,[(Q(!0),ee(We,null,lt(H(a),u=>(Q(),Le(af,{class:"operate-border-line",key:u.type,type:u.type,style:we(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Q(),ee(We,{key:0},[(Q(!0),ee(We,null,lt(H(i),u=>(Q(),Le(kc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:we(u.style),onMousedown:Kt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w($d,{class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:l[0]||(l[0]=Kt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]),c.elementInfo.keypoint!==void 0?(Q(),ee("div",{key:0,class:"operate-keypoint-handler",style:we(s.value),onMousedown:l[1]||(l[1]=Kt(u=>c.moveShapeKeypoint(u,c.elementInfo),["stop"]))},null,36)):Ze("",!0)],64)):Ze("",!0)]))}}),$ue=Ee(zue,[["__scopeId","data-v-e65e73bd"]]),jue={class:"line-element-operate"},que=["width","height","stroke"],efe={key:0},tfe=["x1","y1","x2","y2"],nfe=["x1","y1","x2","y2"],rfe=["x1","y1","x2","y2"],ofe=["x1","y1","x2","y2"],ife={inheritAttrs:!1},afe=Fe({...ife,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(dt()),r=Se(()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0])),o=Se(()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1])),i=Se(()=>{const a=[{handler:Jo.START,style:{left:t.elementInfo.start[0]*n.value+"px",top:t.elementInfo.start[1]*n.value+"px"}},{handler:Jo.END,style:{left:t.elementInfo.end[0]*n.value+"px",top:t.elementInfo.end[1]*n.value+"px"}}];if(t.elementInfo.curve||t.elementInfo.broken){const s=t.elementInfo.curve||t.elementInfo.broken;a.push({handler:Jo.C,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}})}else if(t.elementInfo.cubic){const[s,c]=t.elementInfo.cubic;a.push({handler:Jo.C1,style:{left:s[0]*n.value+"px",top:s[1]*n.value+"px"}}),a.push({handler:Jo.C2,style:{left:c[0]*n.value+"px",top:c[1]*n.value+"px"}})}return a});return(a,s)=>(Q(),ee("div",jue,[a.handlerVisible?(Q(),ee(We,{key:0},[(Q(!0),ee(We,null,lt(i.value,c=>(Q(),Le(kc,{class:"operate-resize-handler",key:c.handler,style:we(c.style),onMousedown:Kt(l=>a.dragLineElement(l,a.elementInfo,c.handler),["stop"])},null,8,["style","onMousedown"]))),128)),(Q(),ee("svg",{width:r.value||1,height:o.value||1,stroke:a.elementInfo.color,overflow:"visible",style:we({transform:`scale(${H(n)})`})},[a.elementInfo.curve?(Q(),ee("g",efe,[Y("line",{class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,tfe),Y("line",{class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:a.elementInfo.curve[0],y2:a.elementInfo.curve[1]},null,8,nfe)])):Ze("",!0),a.elementInfo.cubic?(Q(!0),ee(We,{key:1},lt(a.elementInfo.cubic,(c,l)=>(Q(),ee("g",{key:l},[l===0?(Q(),ee("line",{key:0,class:"anchor-line",x1:a.elementInfo.start[0],y1:a.elementInfo.start[1],x2:c[0],y2:c[1]},null,8,rfe)):Ze("",!0),l===1?(Q(),ee("line",{key:1,class:"anchor-line",x1:a.elementInfo.end[0],y1:a.elementInfo.end[1],x2:c[0],y2:c[1]},null,8,ofe)):Ze("",!0)]))),128)):Ze("",!0)],12,que))],64)):Ze("",!0)]))}}),sfe=Ee(afe,[["__scopeId","data-v-32a06240"]]),lfe={class:"table-element-operate"},cfe={inheritAttrs:!1},ufe=Fe({...cfe,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(dt()),r=Se(()=>t.elementInfo.outline.width||1),o=Se(()=>(t.elementInfo.width+r.value)*n.value),i=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:a,borderLines:s}=of(o,i);return(c,l)=>(Q(),ee("div",lfe,[(Q(!0),ee(We,null,lt(H(s),u=>(Q(),Le(af,{class:"operate-border-line",key:u.type,type:u.type,style:we(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Q(),ee(We,{key:0},[(Q(!0),ee(We,null,lt(H(a),u=>(Q(),Le(kc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:we(u.style),onMousedown:Kt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),w($d,{class:"operate-rotate-handler",style:we({left:o.value/2+"px"}),onMousedown:l[0]||(l[0]=Kt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"])],64)):Ze("",!0)]))}}),ffe={class:"common-element-operate"},dfe={inheritAttrs:!1},Sm=Fe({...dfe,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:n}=Xe(dt()),r=Se(()=>t.elementInfo.width*n.value),o=Se(()=>t.elementInfo.height*n.value),{resizeHandlers:i,borderLines:a}=of(r,o),s=Se(()=>["chart","video","audio"].includes(t.elementInfo.type));return(c,l)=>(Q(),ee("div",ffe,[(Q(!0),ee(We,null,lt(H(a),u=>(Q(),Le(af,{class:"operate-border-line",key:u.type,type:u.type,style:we(u.style)},null,8,["type","style"]))),128)),c.handlerVisible?(Q(),ee(We,{key:0},[(Q(!0),ee(We,null,lt(H(i),u=>(Q(),Le(kc,{class:"operate-resize-handler",key:u.direction,type:u.direction,rotate:c.elementInfo.rotate,style:we(u.style),onMousedown:Kt(f=>c.scaleElement(f,c.elementInfo,u.direction),["stop"])},null,8,["type","rotate","style","onMousedown"]))),128)),s.value?Ze("",!0):(Q(),Le($d,{key:0,class:"operate-rotate-handler",style:we({left:r.value/2+"px"}),onMousedown:l[0]||(l[0]=Kt(u=>c.rotateElement(u,c.elementInfo),["stop"]))},null,8,["style"]))],64)):Ze("",!0)]))}}),WF=()=>{const e=ut(),{addHistorySnapshot:t}=Jt();return{setLink:(o,i)=>{const a=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(i.type==="web"&&!a.test(i.target))return On.error("不是正确的网页链接地址"),!1;if(i.type==="slide"&&!i.target)return On.error("请先选择链接目标"),!1;const s={link:i};return e.updateElement({id:o.id,props:s}),t(),!0},removeLink:o=>{e.removeElementProps({id:o.id,propName:"link"}),t()}}},hfe=Fe({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:0}},setup(e){return(t,n)=>(Q(),ee("div",{class:qe(["divider",t.type]),style:we({margin:t.type==="horizontal"?`${t.margin||24}px 0`:`0 ${t.margin||8}px`})},null,6))}}),Ut=Ee(hfe,[["__scopeId","data-v-c7c64e0b"]]),pfe=["href"],mfe={class:"btns"},vfe=Fe({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,n=dt(),r=ut(),{canvasScale:o}=Xe(n),{slides:i}=Xe(r),{removeLink:a}=WF(),s=Se(()=>t.elementInfo.type==="line"?0:t.elementInfo.height),c=l=>{const u=i.value.findIndex(f=>f.id===l);u!==-1&&(n.setActiveElementIdList([]),r.updateSlideIndex(u))};return(l,u)=>(Q(),ee("div",{class:"link-handler",style:we({top:s.value*H(o)+10+"px"})},[l.link.type==="web"?(Q(),ee("a",{key:0,class:"link",href:l.link.target,target:"_blank"},St(l.link.target),9,pfe)):(Q(),ee("a",{key:1,class:"link",onClick:u[0]||(u[0]=f=>c(l.link.target))},"幻灯片页面 "+St(l.link.target),1)),Y("div",mfe,[Y("div",{class:"btn",onClick:u[1]||(u[1]=f=>l.openLinkDialog())},"更换"),w(Ut,{type:"vertical"}),Y("div",{class:"btn",onClick:u[2]||(u[2]=f=>H(a)(l.elementInfo))},"移除")])],4))}}),gfe=Ee(vfe,[["__scopeId","data-v-f8f46f78"]]),Afe={key:1,class:"animation-index"},Rfe=Fe({__name:"index",props:{elementInfo:{},isSelected:{type:Boolean},isActive:{type:Boolean},isActiveGroupElement:{type:Boolean},isMultiSelect:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},dragLineElement:{type:Function},moveShapeKeypoint:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,{canvasScale:n,toolbarState:r}=Xe(dt()),{formatedAnimations:o}=Xe(ut()),i=Se(()=>({[Nt.IMAGE]:Bue,[Nt.TEXT]:Hue,[Nt.SHAPE]:$ue,[Nt.LINE]:sfe,[Nt.TABLE]:ufe,[Nt.CHART]:Sm,[Nt.LATEX]:Sm,[Nt.VIDEO]:Sm,[Nt.AUDIO]:Sm})[t.elementInfo.type]||null),a=Se(()=>{const l=[];for(let u=0;ud.elId).includes(t.elementInfo.id)&&l.push(u);return l}),s=Se(()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0),c=Se(()=>"height"in t.elementInfo?t.elementInfo.height:0);return(l,u)=>(Q(),ee("div",{class:qe(["operate",{"multi-select":l.isMultiSelect&&!l.isActive}]),style:we({top:l.elementInfo.top*H(n)+"px",left:l.elementInfo.left*H(n)+"px",transform:`rotate(${s.value}deg)`,transformOrigin:`${l.elementInfo.width*H(n)/2}px ${c.value*H(n)/2}px`})},[l.isSelected?(Q(),Le(bs(i.value),{key:0,elementInfo:l.elementInfo,handlerVisible:!l.elementInfo.lock&&(l.isActiveGroupElement||!l.isMultiSelect),rotateElement:l.rotateElement,scaleElement:l.scaleElement,dragLineElement:l.dragLineElement,moveShapeKeypoint:l.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):Ze("",!0),H(r)==="elAnimation"&&a.value.length?(Q(),ee("div",Afe,[(Q(!0),ee(We,null,lt(a.value,f=>(Q(),ee("div",{class:"index-item",key:f},St(f+1),1))),128))])):Ze("",!0),l.isActive&&l.elementInfo.link?(Q(),Le(gfe,{key:2,elementInfo:l.elementInfo,link:l.elementInfo.link,openLinkDialog:l.openLinkDialog,onMousedown:u[0]||(u[0]=Kt(()=>{},["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Ze("",!0)],6))}}),yfe=Ee(Rfe,[["__scopeId","data-v-b96daa51"]]),xfe=["src"],bfe=Fe({__name:"BaseImageElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=Oc(n),o=Se(()=>t.elementInfo.flipH),i=Se(()=>t.elementInfo.flipV),{flipStyle:a}=s2(o,i),s=Se(()=>t.elementInfo.clip),{clipShape:c,imgPosition:l}=a5(s),u=Se(()=>t.elementInfo.filters),{filter:f}=gI(u);return(d,h)=>(Q(),ee("div",{class:"base-element-image",style:we({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${d.elementInfo.rotate}deg)`})},[Y("div",{class:"element-content",style:we({filter:H(r)?`drop-shadow(${H(r)})`:"",transform:H(a)})},[w(AI,{elementInfo:d.elementInfo},null,8,["elementInfo"]),Y("div",{class:"image-content",style:we({clipPath:H(c).style})},[Y("img",{src:d.elementInfo.src,draggable:!1,style:we({top:H(l).top,left:H(l).left,width:H(l).width,height:H(l).height,filter:H(f)}),alt:""},null,12,xfe),d.elementInfo.colorMask?(Q(),ee("div",{key:0,class:"color-mask",style:we({backgroundColor:d.elementInfo.colorMask})},null,4)):Ze("",!0)],4)],4)],4)],4))}}),VF=Ee(bfe,[["__scopeId","data-v-71d24108"]]),Sfe=["innerHTML"],Mfe=Fe({__name:"BaseTextElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=Oc(n);return(o,i)=>(Q(),ee("div",{class:"base-element-text",style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Y("div",{class:"element-content",style:we({width:o.elementInfo.vertical?"auto":o.elementInfo.width+"px",height:o.elementInfo.vertical?o.elementInfo.height+"px":"auto",backgroundColor:o.elementInfo.fill,opacity:o.elementInfo.opacity,textShadow:H(r),lineHeight:o.elementInfo.lineHeight,letterSpacing:(o.elementInfo.wordSpace||0)+"px",color:o.elementInfo.defaultColor,fontFamily:o.elementInfo.defaultFontName,writingMode:o.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[w(l2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),Y("div",{class:"text ProseMirror-static",style:we({"--paragraphSpace":`${o.elementInfo.paragraphSpace===void 0?5:o.elementInfo.paragraphSpace}px`}),innerHTML:o.elementInfo.content},null,12,Sfe)],4)],4)],4))}}),UF=Ee(Mfe,[["__scopeId","data-v-e8894a41"]]),wfe=["width","height"],Lfe={key:0},Ofe=["transform"],Tfe=["d","fill","stroke","stroke-width","stroke-dasharray"],kfe=["innerHTML"],Pfe=Fe({__name:"BaseShapeElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.outline),{outlineWidth:r,outlineColor:o,strokeDashArray:i}=zd(n),a=Se(()=>t.elementInfo.shadow),{shadowStyle:s}=Oc(a),c=Se(()=>t.elementInfo.flipH),l=Se(()=>t.elementInfo.flipV),{flipStyle:u}=s2(c,l),f=Se(()=>{const d={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:d});return(d,h)=>(Q(),ee("div",{class:"base-element-shape",style:we({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${d.elementInfo.rotate}deg)`})},[Y("div",{class:"element-content",style:we({opacity:d.elementInfo.opacity,filter:H(s)?`drop-shadow(${H(s)})`:"",transform:H(u),color:f.value.defaultColor,fontFamily:f.value.defaultFontName})},[(Q(),ee("svg",{overflow:"visible",width:d.elementInfo.width,height:d.elementInfo.height},[d.elementInfo.gradient?(Q(),ee("defs",Lfe,[w(pF,{id:`base-gradient-${d.elementInfo.id}`,type:d.elementInfo.gradient.type,color1:d.elementInfo.gradient.color[0],color2:d.elementInfo.gradient.color[1],rotate:d.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Ze("",!0),Y("g",{transform:`scale(${d.elementInfo.width/d.elementInfo.viewBox[0]}, ${d.elementInfo.height/d.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[Y("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:d.elementInfo.path,fill:d.elementInfo.gradient?`url(#base-gradient-${d.elementInfo.id})`:d.elementInfo.fill,stroke:H(o),"stroke-width":H(r),"stroke-dasharray":H(i)},null,8,Tfe)],8,Ofe)],8,wfe)),Y("div",{class:qe(["shape-text",f.value.align])},[Y("div",{class:"ProseMirror-static",innerHTML:f.value.content},null,8,kfe)],2)],4)],4)],4))}}),YF=Ee(Pfe,[["__scopeId","data-v-2d39d3d1"]]),Nfe=["width","height"],Cfe=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Ife=Fe({__name:"BaseLineElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>t.elementInfo.shadow),{shadowStyle:r}=Oc(n),o=Se(()=>{const c=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return c<24?24:c}),i=Se(()=>{const c=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return c<24?24:c}),a=Se(()=>{if(t.elementInfo.style!=="dashed")return"0 0";const c=t.elementInfo.width;return c<=8?`${c*5} ${c*2.5}`:`${c*5} ${c*1.5}`}),s=Se(()=>Tb(t.elementInfo));return(c,l)=>(Q(),ee("div",{class:"base-element-line",style:we({top:c.elementInfo.top+"px",left:c.elementInfo.left+"px"})},[Y("div",{class:"element-content",style:we({filter:H(r)?`drop-shadow(${H(r)})`:""})},[(Q(),ee("svg",{overflow:"visible",width:o.value,height:i.value},[Y("defs",null,[c.elementInfo.points[0]?(Q(),Le(Xd,{key:0,id:c.elementInfo.id,position:"start",type:c.elementInfo.points[0],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0),c.elementInfo.points[1]?(Q(),Le(Xd,{key:1,id:c.elementInfo.id,position:"end",type:c.elementInfo.points[1],color:c.elementInfo.color,baseSize:c.elementInfo.width},null,8,["id","type","color","baseSize"])):Ze("",!0)]),Y("path",{d:s.value,stroke:c.elementInfo.color,"stroke-width":c.elementInfo.width,"stroke-dasharray":a.value,fill:"none","marker-start":c.elementInfo.points[0]?`url(#${c.elementInfo.id}-${c.elementInfo.points[0]}-start)`:"","marker-end":c.elementInfo.points[1]?`url(#${c.elementInfo.id}-${c.elementInfo.points[1]}-end)`:""},null,8,Cfe)],8,Nfe))],4)],4))}}),QF=Ee(Ife,[["__scopeId","data-v-e7dc2b42"]]),Ffe=Fe({__name:"BaseChartElement",props:{elementInfo:{}},setup(e){const t=qo(rf)||ve(1),n=Se(()=>t.value<1),r=Se(()=>n.value?1/t.value:1);return(o,i)=>(Q(),ee("div",{class:"base-element-chart",style:we({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${o.elementInfo.rotate}deg)`})},[Y("div",{class:"element-content",style:we({backgroundColor:o.elementInfo.fill})},[w(l2,{width:o.elementInfo.width,height:o.elementInfo.height,outline:o.elementInfo.outline},null,8,["width","height","outline"]),w(MF,{width:o.elementInfo.width*r.value,height:o.elementInfo.height*r.value,type:o.elementInfo.chartType,data:o.elementInfo.data,options:o.elementInfo.options,themeColor:o.elementInfo.themeColor,gridColor:o.elementInfo.gridColor,legends:o.elementInfo.data.legends,legend:o.elementInfo.legend||"",style:we({zoom:1/r.value})},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend","style"])],4)],4)],4))}}),ZF=Ee(Ffe,[["__scopeId","data-v-37ca5799"]]),_fe=["width"],Xfe=["rowspan","colspan"],Efe=["innerHTML"],Wfe=Fe({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(e){const t=e,n=ve([]),r=Se(()=>n.value.reduce((c,l)=>c+l));Tt([()=>t.colWidths,()=>t.width],()=>{n.value=t.colWidths.map(c=>c*t.width)},{immediate:!0});const o=Se(()=>t.data),{hideCells:i}=TF(o),a=Se(()=>t.theme),{subThemeColor:s}=kF(a);return(c,l)=>{var u,f,d,h,p;return Q(),ee("div",{class:"static-table",style:we({width:r.value+"px"})},[Y("table",{class:qe({theme:a.value,"row-header":(u=a.value)==null?void 0:u.rowHeader,"row-footer":(f=a.value)==null?void 0:f.rowFooter,"col-header":(d=a.value)==null?void 0:d.colHeader,"col-footer":(h=a.value)==null?void 0:h.colFooter}),style:we(`--themeColor: ${(p=a.value)==null?void 0:p.color}; --subThemeColor1: ${H(s)[0]}; --subThemeColor2: ${H(s)[1]}`)},[Y("colgroup",null,[(Q(!0),ee(We,null,lt(n.value,(m,A)=>(Q(),ee("col",{span:"1",key:A,width:m},null,8,_fe))),128))]),Y("tbody",null,[(Q(!0),ee(We,null,lt(c.data,(m,A)=>(Q(),ee("tr",{key:A,style:we({height:c.cellMinHeight+"px"})},[(Q(!0),ee(We,null,lt(m,(x,R)=>Qe((Q(),ee("td",{class:"cell",style:we({borderStyle:c.outline.style,borderColor:c.outline.color,borderWidth:c.outline.width+"px",...H(LF)(x.style)}),key:x.id,rowspan:x.rowspan,colspan:x.colspan},[Y("div",{class:"cell-text",style:we({minHeight:c.cellMinHeight-4+"px"}),innerHTML:H(OF)(x.text)},null,12,Efe)],12,Xfe)),[[al,!H(i).includes(`${A}_${R}`)]])),128))],4))),128))])],6)],4)}}}),Vfe=Ee(Wfe,[["__scopeId","data-v-6d887dcd"]]),Ufe={class:"element-content"},Yfe=Fe({__name:"BaseTableElement",props:{elementInfo:{}},setup(e){return(t,n)=>(Q(),ee("div",{class:"base-element-table",style:we({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${t.elementInfo.rotate}deg)`})},[Y("div",Ufe,[w(Vfe,{data:t.elementInfo.data,width:t.elementInfo.width,cellMinHeight:t.elementInfo.cellMinHeight,colWidths:t.elementInfo.colWidths,outline:t.elementInfo.outline,theme:t.elementInfo.theme},null,8,["data","width","cellMinHeight","colWidths","outline","theme"])])],4)],4))}}),BF=Ee(Yfe,[["__scopeId","data-v-77cfa6e4"]]),Qfe={class:"element-content"},Zfe=["width","height","stroke","stroke-width"],Bfe=["transform"],Dfe=["d"],Kfe=Fe({__name:"BaseLatexElement",props:{elementInfo:{}},setup(e){return(t,n)=>(Q(),ee("div",{class:"base-element-latex",style:we({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${t.elementInfo.rotate}deg)`})},[Y("div",Qfe,[(Q(),ee("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"},[Y("g",{transform:`scale(${t.elementInfo.width/t.elementInfo.viewBox[0]}, ${t.elementInfo.height/t.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[Y("path",{d:t.elementInfo.path},null,8,Dfe)],8,Bfe)],8,Zfe))])],4)],4))}}),DF=Ee(Kfe,[["__scopeId","data-v-93374af9"]]),Hfe=Fe({__name:"BaseVideoElement",props:{elementInfo:{}},setup(e){return(t,n)=>{const r=xe("IconPlayOne");return Q(),ee("div",{class:"base-element-video",style:we({top:t.elementInfo.top+"px",left:t.elementInfo.left+"px",width:t.elementInfo.width+"px",height:t.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${t.elementInfo.rotate}deg)`})},[Y("div",{class:"element-content",style:we({backgroundImage:t.elementInfo.poster?`url(${t.elementInfo.poster})`:""})},[w(r,{class:"icon"})],4)],4)],4)}}}),Gfe=Ee(Hfe,[["__scopeId","data-v-2fb0e771"]]),Jfe={class:"element-content"},zfe=Fe({__name:"BaseAudioElement",props:{elementInfo:{}},setup(e){const t=e,n=Se(()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px");return(r,o)=>{const i=xe("IconVolumeNotice");return Q(),ee("div",{class:"base-element-audio",style:we({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px",width:r.elementInfo.width+"px",height:r.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:we({transform:`rotate(${r.elementInfo.rotate}deg)`})},[Y("div",Jfe,[w(i,{class:"audio-icon",style:we({fontSize:n.value,color:r.elementInfo.color})},null,8,["style"])])],4)],4)}}}),$fe=Ee(zfe,[["__scopeId","data-v-b33e6120"]]),jfe=Fe({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(e){const t=e,n=Se(()=>({[Nt.IMAGE]:VF,[Nt.TEXT]:UF,[Nt.SHAPE]:YF,[Nt.LINE]:QF,[Nt.CHART]:ZF,[Nt.TABLE]:BF,[Nt.LATEX]:DF,[Nt.VIDEO]:Gfe,[Nt.AUDIO]:$fe})[t.elementInfo.type]||null);return(r,o)=>(Q(),ee("div",{class:qe(["base-element",`base-element-${r.elementInfo.id}`]),style:we({zIndex:r.elementIndex})},[(Q(),Le(bs(n.value),{elementInfo:r.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),qfe={key:1,class:"placeholder"},ede=Fe({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(e){const t=e,{viewportRatio:n}=Xe(ut()),r=Se(()=>t.slide.background),{backgroundStyle:o}=d2(r),i=Se(()=>t.size/Ht);return Gu(rf,i),(a,s)=>(Q(),ee("div",{class:"thumbnail-slide",style:we({width:a.size+"px",height:a.size*H(n)+"px"})},[a.visible?(Q(),ee("div",{key:0,class:"elements",style:we({width:H(Ht)+"px",height:H(Ht)*H(n)+"px",transform:`scale(${i.value})`})},[Y("div",{class:"background",style:we(H(o))},null,4),(Q(!0),ee(We,null,lt(a.slide.elements,(c,l)=>(Q(),Le(jfe,{key:c.id,elementInfo:c,elementIndex:l+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(Q(),ee("div",qfe,"加载中 ..."))],4))}}),_a=Ee(ede,[["__scopeId","data-v-cbd76d0a"]]),tde=["onClick"],nde=Fe({__name:"Tabs",props:{value:{},tabs:{},card:{type:Boolean,default:!1},tabsStyle:{},tabStyle:{},spaceAround:{type:Boolean,default:!1},spaceBetween:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=t;return(r,o)=>(Q(),ee("div",{class:qe(["tabs",{card:r.card,"space-around":r.spaceAround,"space-between":r.spaceBetween}]),style:we(r.tabsStyle||{})},[(Q(!0),ee(We,null,lt(r.tabs,i=>(Q(),ee("div",{class:qe(["tab",{active:i.key===r.value}]),key:i.key,style:we({...r.tabStyle||{},"--color":i.color}),onClick:a=>n("update:value",i.key)},St(i.label),15,tde))),128))],6))}}),Rs=Ee(nde,[["__scopeId","data-v-c7f9dce0"]]),rde=Fe({__name:"Button",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"default"},size:{default:"normal"},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,o=()=>{n.disabled||r("click")};return(i,a)=>(Q(),ee("button",{class:qe(["button",{disabled:i.disabled,checked:!i.disabled&&i.checked,default:!i.disabled&&i.type==="default",primary:!i.disabled&&i.type==="primary",checkbox:!i.disabled&&i.type==="checkbox",radio:!i.disabled&&i.type==="radio",small:i.size==="small",first:i.first,last:i.last}]),onClick:a[0]||(a[0]=s=>o())},[ur(i.$slots,"default",{},void 0,!0)],2))}}),et=Ee(rde,[["__scopeId","data-v-3e3d85be"]]),ode={key:0,class:"select-wrap"},ide={class:"selector"},ade={class:"icon"},sde=["onClick"],lde={class:"selector"},cde={class:"icon"},ude=Fe({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=Se(()=>{var f;return((f=n.options.find(d=>d.value===n.value))==null?void 0:f.label)||n.value}),o=t,i=ve(!1),a=ve(),s=ve(0),c=()=>{a.value&&(s.value=a.value.clientWidth)},l=new ResizeObserver(c);Gt(()=>{a.value&&l.observe(a.value)}),Pn(()=>{a.value&&l.unobserve(a.value)});const u=f=>{f.disabled||(o("update:value",f.value),i.value=!1)};return(f,d)=>{const h=xe("IconDown");return f.disabled?(Q(),ee("div",ode,[Y("div",{class:"select disabled",ref_key:"selectRef",ref:a},[Y("div",ide,St(f.value),1),Y("div",ade,[ur(f.$slots,"icon",{},()=>[w(h,{size:14})],!0)])],512)])):(Q(),Le(Pt,{key:1,class:"select-wrap",trigger:"click",value:i.value,"onUpdate:value":d[0]||(d[0]=p=>i.value=p),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:ne(()=>[Y("div",{class:"options",style:we({width:s.value+2+"px"})},[(Q(!0),ee(We,null,lt(f.options,p=>(Q(),ee("div",{class:qe(["option",{disabled:p.disabled,selected:p.value===f.value}]),key:p.value,onClick:m=>u(p)},St(p.label),11,sde))),128))],4)]),default:ne(()=>[Y("div",{class:"select",ref_key:"selectRef",ref:a},[Y("div",lde,St(r.value),1),Y("div",cde,[ur(f.$slots,"icon",{},()=>[w(h,{size:14})],!0)])],512)]),_:3},8,["value","contentStyle"]))}}}),Bn=Ee(ude,[["__scopeId","data-v-618af0ca"]]),fde=e=>(on("data-v-de4d9db3"),e=e(),an(),e),dde={class:"link-dialog"},hde={key:2,class:"preview"},pde=fde(()=>Y("div",null,"预览:",-1)),mde={class:"btns"},vde=Fe({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){var p;const n=t,{handleElement:r}=Xe(dt()),{slides:o,currentSlide:i}=Xe(ut()),a=ve("web"),s=ve(""),c=ve(""),l=Se(()=>o.value.map((m,A)=>({label:`幻灯片 ${A+1}`,value:m.id,disabled:i.value.id===m.id})));c.value=((p=o.value.find(m=>m.id!==i.value.id))==null?void 0:p.id)||"";const u=Se(()=>c.value&&o.value.find(m=>m.id===c.value)||null),f=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:d}=WF();Gt(()=>{var m;(m=r.value)!=null&&m.link&&(r.value.link.type==="web"?s.value=r.value.link.target:r.value.link.type==="slide"&&(c.value=r.value.link.target),a.value=r.value.link.type)});const h=()=>{const m={type:a.value,target:a.value==="web"?s.value:c.value};r.value&&(d(r.value,m)?n("close"):s.value="")};return(m,A)=>(Q(),ee("div",dde,[w(Rs,{tabs:f,value:a.value,"onUpdate:value":A[0]||(A[0]=x=>a.value=x),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),a.value==="web"?(Q(),Le(Vu,{key:0,class:"input",value:s.value,"onUpdate:value":A[1]||(A[1]=x=>s.value=x),placeholder:"请输入网页链接地址"},null,8,["value"])):Ze("",!0),a.value==="slide"?(Q(),Le(Bn,{key:1,class:"input",value:c.value,"onUpdate:value":A[2]||(A[2]=x=>c.value=x),options:l.value},null,8,["value","options"])):Ze("",!0),a.value==="slide"&&u.value?(Q(),ee("div",hde,[pde,w(_a,{class:"thumbnail",slide:u.value,size:500},null,8,["slide"])])):Ze("",!0),Y("div",mde,[w(et,{onClick:A[3]||(A[3]=x=>n("close")),style:{"margin-right":"10px"}},{default:ne(()=>[Ve("取消")]),_:1}),w(et,{type:"primary",onClick:A[4]||(A[4]=x=>h())},{default:ne(()=>[Ve("确认")]),_:1})])]))}}),gde=Ee(vde,[["__scopeId","data-v-de4d9db3"]]),Ade=Fe({__name:"Modal",props:{visible:{type:Boolean},width:{default:480},closeButton:{type:Boolean,default:!1},closeOnClickMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},contentStyle:{}},emits:["update:visible","closed"],setup(e,{emit:t}){const{IconClose:n}=Qv,r=e,o=ve(),i=t,a=ve(!1),s=Se(()=>({width:r.width+"px",...r.contentStyle||{}}));Tt(()=>r.visible,()=>{r.visible&&Ur(()=>o.value.focus())});const c=()=>{i("update:visible",!1),i("closed")},l=()=>{r.visible&&r.closeOnEsc&&c()},u=()=>{r.closeOnClickMask&&c()};return(f,d)=>(Q(),Le(eb,{to:"body"},[w(Nu,{name:"modal-fade"},{default:ne(()=>[Qe(Y("div",{class:"modal",ref_key:"modalRef",ref:o,tabindex:"-1",onKeyup:d[4]||(d[4]=Ac(h=>l(),["esc"]))},[Y("div",{class:"mask",onClick:d[0]||(d[0]=h=>u())}),w(Nu,{name:"modal-zoom",onAfterLeave:d[2]||(d[2]=h=>a.value=!1),onBeforeEnter:d[3]||(d[3]=h=>a.value=!0)},{default:ne(()=>[Qe(Y("div",{class:"modal-content",style:we(s.value)},[f.closeButton?(Q(),ee("span",{key:0,class:"close-btn",onClick:d[1]||(d[1]=h=>c())},[w(H(n))])):Ze("",!0),a.value?ur(f.$slots,"default",{key:1},void 0,!0):Ze("",!0)],4),[[al,f.visible]])]),_:3})],544),[[al,f.visible]])]),_:3})]))}}),Dp=Ee(Ade,[["__scopeId","data-v-4d27bcca"]]),Rde={class:"operates"},yde={key:2,class:"drag-mask"},xde=Fe({__name:"index",setup(e){const t=dt(),{activeElementIdList:n,activeGroupElementId:r,handleElementId:o,hiddenElementIdList:i,editorAreaFocus:a,gridLineSize:s,showRuler:c,creatingElement:l,creatingCustomShape:u,canvasScale:f,textFormatPainter:d}=Xe(t),{currentSlide:h}=Xe(ut()),{ctrlKeyState:p,spaceKeyState:m}=Xe(Ms()),A=ve(),x=ve([]),R=ve(!1),y=()=>R.value=!0;Tt(o,()=>{t.setActiveGroupElementId("")});const g=ve([]);kg(()=>{g.value=h.value?JSON.parse(JSON.stringify(h.value.elements)):[]});const O=ve(),{dragViewport:T,viewportStyles:M}=boe(O);Moe(O);const{mouseSelection:L,mouseSelectionVisible:k,mouseSelectionQuadrant:F,updateMouseSelection:N}=Soe(g,A),{dragElement:E}=mI(g,x,f),{dragLineElement:C}=Ooe(g),{selectElement:_}=Loe(g,E),{scaleElement:I,scaleMultiElement:V}=pI(g,x,f),{rotateElement:B}=dI(g,A,f),{moveShapeKeypoint:G}=Toe(g,f),{selectAllElement:oe}=Fb(),{deleteAllElements:W}=Np(),{pasteElement:Z}=Ib(),{enterScreeningFromStart:K}=wc(),{updateSlideIndex:U}=Hd(),{createTextElement:z,createShapeElement:fe}=qu();Gt(()=>{n.value.length&&Ur(()=>t.setActiveElementIdList([]))});const se=re=>{n.value.length&&t.setActiveElementIdList([]),m.value?T(re):N(re),a.value||t.setEditorareaFocus(!0),d.value&&t.setTextFormatPainter(null),xoe()},ie=re=>{if(n.value.length||l.value||u.value||!A.value)return;const pe=A.value.getBoundingClientRect(),le=(re.pageX-pe.x)/f.value,ce=(re.pageY-pe.y)/f.value;z({left:le,top:ce,width:200/f.value,height:0})};Pn(()=>{d.value&&t.setTextFormatPainter(null)});const me=()=>{a.value&&t.setEditorareaFocus(!1)},{scaleCanvas:Ae}=Xb(),ye=Xn.throttle(Ae,100,{leading:!0,trailing:!1}),J=Xn.throttle(U,300,{leading:!0,trailing:!1}),ae=re=>{re.preventDefault(),p.value?re.deltaY>0?ye("-"):re.deltaY<0&&ye("+"):re.deltaY>0?J(yt.DOWN):re.deltaY<0&&J(yt.UP)},X=()=>{t.setRulerState(!c.value)},{insertElementFromCreateSelection:$,formatCreateSelection:ue}=koe(A),j=re=>{const{start:pe,end:le,path:ce,viewBox:be}=re,Ce=ue({start:pe,end:le});if(Ce){const ge={};re.fill&&(ge.fill=re.fill),re.outline&&(ge.outline=re.outline),fe(Ce,{path:ce,viewBox:be},ge)}t.setCreatingCustomShapeState(!1)},q=()=>[{text:"粘贴",subText:"Ctrl + V",handler:Z},{text:"全选",subText:"Ctrl + A",handler:oe},{text:"标尺",subText:c.value?"√":"",handler:X},{text:"网格线",handler:()=>t.setGridLineSize(s.value?0:50),children:[{text:"无",subText:s.value===0?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:s.value===25?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:s.value===50?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:s.value===100?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:W},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:K}];return Gu(rf,f),(re,pe)=>{const le=Tn("contextmenu"),ce=Tn("click-outside");return Qe((Q(),ee("div",{class:"canvas",ref_key:"canvasRef",ref:O,onWheel:pe[4]||(pe[4]=be=>ae(be)),onMousedown:pe[5]||(pe[5]=be=>se(be)),onDblclick:pe[6]||(pe[6]=be=>ie(be))},[H(l)?(Q(),Le(Pue,{key:0,onCreated:pe[0]||(pe[0]=be=>H($)(be))})):Ze("",!0),H(u)?(Q(),Le(Fue,{key:1,onCreated:pe[1]||(pe[1]=be=>j(be))})):Ze("",!0),Y("div",{class:"viewport-wrapper",style:we({width:H(M).width*H(f)+"px",height:H(M).height*H(f)+"px",left:H(M).left+"px",top:H(M).top+"px"})},[Y("div",Rde,[(Q(!0),ee(We,null,lt(x.value,(be,Ce)=>(Q(),Le(EF,{key:Ce,type:be.type,axis:be.axis,length:be.length,canvasScale:H(f)},null,8,["type","axis","length","canvasScale"]))),128)),H(n).length>1?(Q(),Le(Wue,{key:0,elementList:g.value,scaleMultiElement:H(V)},null,8,["elementList","scaleMultiElement"])):Ze("",!0),(Q(!0),ee(We,null,lt(g.value,be=>Qe((Q(),Le(yfe,{key:be.id,elementInfo:be,isSelected:H(n).includes(be.id),isActive:H(o)===be.id,isActiveGroupElement:H(r)===be.id,isMultiSelect:H(n).length>1,rotateElement:H(B),scaleElement:H(I),openLinkDialog:y,dragLineElement:H(C),moveShapeKeypoint:H(G)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[al,!H(i).includes(be.id)]])),128)),w(bue)]),Y("div",{class:"viewport",ref_key:"viewportRef",ref:A,style:we({transform:`scale(${H(f)})`})},[H(k)?(Q(),Le(vue,{key:0,top:H(L).top,left:H(L).left,width:H(L).width,height:H(L).height,quadrant:H(F)},null,8,["top","left","width","height","quadrant"])):Ze("",!0),(Q(!0),ee(We,null,lt(g.value,(be,Ce)=>Qe((Q(),Le(pue,{key:be.id,elementInfo:be,elementIndex:Ce+1,isMultiSelect:H(n).length>1,selectElement:H(_),openLinkDialog:y},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[al,!H(i).includes(be.id)]])),128))],4)],4),H(m)?(Q(),ee("div",yde)):Ze("",!0),H(c)?(Q(),Le(Lue,{key:3,viewportStyles:H(M)},null,8,["viewportStyles"])):Ze("",!0),w(Dp,{visible:R.value,"onUpdate:visible":pe[3]||(pe[3]=be=>R.value=be),width:540},{default:ne(()=>[w(gde,{onClose:pe[2]||(pe[2]=be=>R.value=!1)})]),_:1},8,["visible"])],32)),[[le,q],[ce,me]])}}}),bde=Ee(xde,[["__scopeId","data-v-8da5c669"]]),Sde={class:"shape-item-thumbnail"},Mde={class:"shape-content"},wde={overflow:"visible",width:"18",height:"18"},Lde=["transform"],Ode=["fill","stroke","d"],Tde=Fe({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(t,n)=>(Q(),ee("div",Sde,[Y("div",Mde,[(Q(),ee("svg",wde,[Y("g",{transform:`scale(${18/t.shape.viewBox[0]}, ${18/t.shape.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[Y("path",{class:qe(["shape-path",{outlined:t.shape.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:t.shape.outlined?"#999":"transparent",stroke:t.shape.outlined?"transparent":"#999","stroke-width":"2",d:t.shape.path},null,10,Ode)],8,Lde)]))])]))}}),KF=Ee(Tde,[["__scopeId","data-v-2896ae03"]]),kde={class:"shape-pool"},Pde={class:"category-name"},Nde={class:"shape-list"},Cde=Fe({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const n=t,r=o=>{n("select",o)};return(o,i)=>(Q(),ee("div",kde,[(Q(!0),ee(We,null,lt(H(Pb),a=>(Q(),ee("div",{class:"category",key:a.type},[Y("div",Pde,St(a.type),1),Y("div",Nde,[(Q(!0),ee(We,null,lt(a.children,(s,c)=>(Q(),Le(KF,{class:"shape-item",key:c,shape:s,onClick:l=>r(s)},null,8,["shape","onClick"]))),128))])]))),128))]))}}),Ide=Ee(Cde,[["__scopeId","data-v-553b0d02"]]),Fde=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],_de={class:"line-pool"},Xde={class:"category-name"},Ede={class:"line-list"},Wde=["onClick"],Vde={overflow:"visible",width:"20",height:"20"},Ude=["d","stroke-dasharray","marker-start","marker-end"],Yde=Fe({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t,r=o=>{n("select",o)};return(o,i)=>(Q(),ee("div",_de,[(Q(!0),ee(We,null,lt(H(Fde),(a,s)=>(Q(),ee("div",{class:"category",key:a.type},[Y("div",Xde,St(a.type),1),Y("div",Ede,[(Q(!0),ee(We,null,lt(a.children,(c,l)=>(Q(),ee("div",{class:"line-item",key:l},[Y("div",{class:"line-content",onClick:u=>r(c)},[(Q(),ee("svg",Vde,[Y("defs",null,[c.points[0]?(Q(),Le(Xd,{key:0,class:"line-marker",id:`preset-line-${s}-${l}`,position:"start",type:c.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Ze("",!0),c.points[1]?(Q(),Le(Xd,{key:1,class:"line-marker",id:`preset-line-${s}-${l}`,position:"end",type:c.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Ze("",!0)]),Y("path",{class:"line-path",d:c.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":c.style==="solid"?"0, 0":"4, 1","marker-start":c.points[0]?`url(#${`preset-line-${s}-${l}`}-${c.points[0]}-start)`:"","marker-end":c.points[1]?`url(#${`preset-line-${s}-${l}`}-${c.points[1]}-end)`:""},null,8,Ude)]))],8,Wde)]))),128))])]))),128))]))}}),Qde=Ee(Yde,[["__scopeId","data-v-b07efd40"]]),Zde={class:"chart-pool"},Bde=["onClick"],Dde=Fe({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const n=t,r=["bar","horizontalBar","line","area","scatter","pie","ring"],o=i=>{n("select",i)};return(i,a)=>{const s=xe("IconChartLine"),c=xe("IconChartHistogram"),l=xe("IconChartPie"),u=xe("IconChartHistogramOne"),f=xe("IconChartLineArea"),d=xe("IconChartRing"),h=xe("IconChartScatter");return Q(),ee("ul",Zde,[(Q(),ee(We,null,lt(r,(p,m)=>Y("li",{class:"chart-item",key:m},[Y("div",{class:"chart-content",onClick:A=>o(p)},[p==="line"?(Q(),Le(s,{key:0,size:"24"})):p==="bar"?(Q(),Le(c,{key:1,size:"24"})):p==="pie"?(Q(),Le(l,{key:2,size:"24"})):p==="horizontalBar"?(Q(),Le(u,{key:3,size:"24"})):p==="area"?(Q(),Le(f,{key:4,size:"24"})):p==="ring"?(Q(),Le(d,{key:5,size:"24"})):p==="scatter"?(Q(),Le(h,{key:6,size:"24"})):Ze("",!0)],8,Bde)])),64))])}}}),Kde=Ee(Dde,[["__scopeId","data-v-a4bc3ce2"]]),HF=e=>(on("data-v-d97071e3"),e=e(),an(),e),Hde={class:"prefix"},Gde={class:"input-wrap"},Jde=["disabled","placeholder"],zde={class:"handlers"},$de=HF(()=>Y("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[Y("path",{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"})],-1)),jde=[$de],qde=HF(()=>Y("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[Y("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})],-1)),e0e=[qde],t0e={class:"suffix"},n0e=Fe({__name:"NumberInput",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},min:{default:0},max:{default:1/0},step:{default:1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{emit:t}){const n=e,r=t,o=ve(0),i=ve(!1);Tt(()=>n.value,()=>{n.value!==o.value&&(o.value=n.value)},{immediate:!0}),Tt(o,()=>{let c=+o.value;isNaN(c)?c=n.min:c>n.max?c=n.max:c{i.value=!1,r("blur",c)},s=c=>{i.value=!0,r("focus",c)};return(c,l)=>(Q(),ee("div",{class:qe(["number-input",{disabled:c.disabled,focused:i.value}])},[Y("span",Hde,[ur(c.$slots,"prefix",{},void 0,!0)]),Y("div",Gde,[Qe(Y("input",{type:"text",disabled:c.disabled,"onUpdate:modelValue":l[0]||(l[0]=u=>o.value=u),placeholder:c.placeholder,onInput:l[1]||(l[1]=u=>r("input",u)),onFocus:l[2]||(l[2]=u=>s(u)),onBlur:l[3]||(l[3]=u=>a(u)),onChange:l[4]||(l[4]=u=>r("change",u)),onKeydown:l[5]||(l[5]=Ac(u=>r("enter",u),["enter"]))},null,40,Jde),[[Hh,o.value]]),Y("div",zde,[Y("span",{class:"handler",onClick:l[6]||(l[6]=u=>o.value+=c.step)},jde),Y("span",{class:"handler",onClick:l[7]||(l[7]=u=>o.value-=c.step)},e0e)])]),Y("span",t0e,[ur(c.$slots,"suffix",{},void 0,!0)])],2))}}),Oi=Ee(n0e,[["__scopeId","data-v-d97071e3"]]),GF=e=>(on("data-v-81680e19"),e=e(),an(),e),r0e={class:"table-generator"},o0e={class:"title"},i0e={class:"lef"},a0e=["onMouseenter"],s0e={key:1,class:"custom"},l0e={class:"row"},c0e=GF(()=>Y("div",{class:"label",style:{width:"25%"}},"行数:",-1)),u0e={class:"row"},f0e=GF(()=>Y("div",{class:"label",style:{width:"25%"}},"列数:",-1)),d0e={class:"btns"},h0e=Fe({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const n=t,r=ve([]),o=ve(3),i=ve(3),a=ve(!1),s=()=>{if(!r.value.length)return;const[u,f]=r.value;n("insert",{row:u,col:f})},c=()=>{if(o.value<1||o.value>20||i.value<1||i.value>20)return On.warning("行数/列数必须在0~20之间!");n("insert",{row:o.value,col:i.value}),a.value=!1},l=()=>{n("close"),a.value=!1};return(u,f)=>(Q(),ee("div",r0e,[Y("div",o0e,[Y("div",i0e,"表格 "+St(r.value.length?`${r.value[0]} x ${r.value[1]}`:""),1),Y("div",{class:"right",onClick:f[0]||(f[0]=d=>a.value=!a.value)},St(a.value?"返回":"自定义"),1)]),a.value?(Q(),ee("div",s0e,[Y("div",l0e,[c0e,w(Oi,{min:1,max:20,value:o.value,"onUpdate:value":f[3]||(f[3]=d=>o.value=d),style:{width:"75%"}},null,8,["value"])]),Y("div",u0e,[f0e,w(Oi,{min:1,max:20,value:i.value,"onUpdate:value":f[4]||(f[4]=d=>i.value=d),style:{width:"75%"}},null,8,["value"])]),Y("div",d0e,[w(et,{class:"btn",onClick:f[5]||(f[5]=d=>l())},{default:ne(()=>[Ve("取消")]),_:1}),w(et,{class:"btn",type:"primary",onClick:f[6]||(f[6]=d=>c())},{default:ne(()=>[Ve("确认")]),_:1})])])):(Q(),ee("table",{key:0,onMouseleave:f[1]||(f[1]=d=>r.value=[]),onClick:f[2]||(f[2]=d=>s())},[Y("tbody",null,[(Q(),ee(We,null,lt(10,d=>Y("tr",{key:d},[(Q(),ee(We,null,lt(10,h=>Y("td",{onMouseenter:p=>r.value=[d,h],key:h},[Y("div",{class:qe(["cell",{active:r.value.length&&d<=r.value[0]&&h<=r.value[1]}])},null,2)],40,a0e)),64))])),64))])],32))]))}}),p0e=Ee(h0e,[["__scopeId","data-v-81680e19"]]),m0e={class:"media-input"},v0e={class:"btns"},g0e={class:"btns"},A0e=Fe({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(e,{emit:t}){const n=t,r=ve("video"),o=ve("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),i=ve("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],s=()=>{if(!o.value)return On.error("请先输入正确的视频地址");n("insertVideo",o.value)},c=()=>{if(!i.value)return On.error("请先输入正确的音频地址");n("insertAudio",i.value)};return(l,u)=>(Q(),ee("div",m0e,[w(Rs,{tabs:a,value:r.value,"onUpdate:value":u[0]||(u[0]=f=>r.value=f),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),r.value==="video"?(Q(),ee(We,{key:0},[w(Vu,{value:o.value,"onUpdate:value":u[1]||(u[1]=f=>o.value=f),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),Y("div",v0e,[w(et,{onClick:u[2]||(u[2]=f=>n("close")),style:{"margin-right":"10px"}},{default:ne(()=>[Ve("取消")]),_:1}),w(et,{type:"primary",onClick:u[3]||(u[3]=f=>s())},{default:ne(()=>[Ve("确认")]),_:1})])],64)):Ze("",!0),r.value==="audio"?(Q(),ee(We,{key:1},[w(Vu,{value:i.value,"onUpdate:value":u[4]||(u[4]=f=>i.value=f),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),Y("div",g0e,[w(et,{onClick:u[5]||(u[5]=f=>n("close")),style:{"margin-right":"10px"}},{default:ne(()=>[Ve("取消")]),_:1}),w(et,{type:"primary",onClick:u[6]||(u[6]=f=>c())},{default:ne(()=>[Ve("确认")]),_:1})])],64)):Ze("",!0)]))}}),R0e=Ee(A0e,[["__scopeId","data-v-999b18ca"]]);var Mm=82;function qf(e){return lx[e]==null&&y0e(e),lx[e]}function y0e(e){var t=x0e[e];if(t!=null){for(var n=t.substring(3,5),r=1*n.charCodeAt(0)-Mm,o=1*n.charCodeAt(1)-Mm,i=t.substring(5),a=[[]],s=1/0,c=-1/0,l=1/0,u=-1/0,f=0;ff>RfR",797:" 3D`D``D",798:" 3RRR>Rf",799:" 3D`DD``",800:" 3D`DR`R",801:" 3F^FY^K",802:" 3KYK^YF",803:" 3RRRDR`",804:" 3KYKFY^",805:" 3F^FK^Y",806:" 3KYKRYR",807:" 3MWMWWM",808:" 3RRRKRY",809:" 3MWMMWW",810:" 8GRRGPGMHJJHMGPGR",811:" 8GRGRGTHWJZM\\P]R]",812:" 8R]R]T]W\\ZZ\\W]T]R",813:" 8R]]R]P\\MZJWHTGRG",814:" 9D`DOGQKSPTTTYS]Q`O",815:" 9PUUDSGQKPPPTQYS]U`",816:" 9OTODQGSKTPTTSYQ]O`",817:" 9D`DUGSKQPPTPYQ]S`U",818:" 5KYRJYNKVRZ",819:" 5JZJRNKVYZR",820:" 5KYKVKNYVYN",821:" 5JZLXJPZTXL",822:" 23JZJ]L]O\\Q[TXUVVSVOULTJSIQIPJOLNONSOVPXS[U\\X]Z]",823:" 23I]]Z]X\\U[SXPVOSNONLOJPIQISJTLUOVSVVUXT[Q\\O]L]J",824:" 23JZZGXGUHSIPLONNQNUOXPZQ[S[TZUXVUVQUNTLQIOHLGJG",825:" 23G[GJGLHOIQLTNUQVUVXUZT[S[QZPXOUNQNNOLPISHUGXGZ",826:" 21E[EPFRHTJUMVQVUUXSZP[NZLWLSMQNNPLSKVKYL\\M^",827:" 19EYETHVKWPWSVVTXQYNYLXKVKSLPNNQMTMYN\\P_",828:" 26OUQOOQOSQUSUUSUQSOQO RQPPQPSQTSTTSTQSPQP RRQQRRSSRRQ",829:" 11RWRMSMUNVOWQWSVUUVSWRW",830:" 9D`DRJR RORUR RZR`R",831:" 5D`DUDO`O`U",832:" 6JZRDJR RRDZR",833:" 9D`DR`R RJYZY RP`T`",834:" 9D`DR`R RDRRb R`RRb",840:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",841:" 6LXLLLXXXXLLL",842:" 5KYRJKVYVRJ",843:" 6LXRHLRR\\XRRH",844:" 12JZRIPOJOOSMYRUWYUSZOTORI",845:" 6KYRKRY RKRYR",846:" 6MWMMWW RWMMW",847:" 9MWRLRX RMOWU RWOMU",850:" 35NVQNOONQNSOUQVSVUUVSVQUOSNQN ROQOS RPPPT RQOQU RRORU RSOSU RTPTT RUQUS",851:" 27NVNNNVVVVNNN ROOOU RPOPU RQOQU RRORU RSOSU RTOTU RUOUU",852:" 17MWRLMUWURL RROOT RROUT RRRQT RRRST",853:" 17LULRUWUMLR RORTU RORTO RRRTS RRRTQ",854:" 17MWRXWOMORX RRUUP RRUOP RRRSP RRRQP",855:" 17OXXROMOWXR RURPO RURPU RRRPQ RRRPS",856:" 22LXRLNWXPLPVWRL RRRRL RRRLP RRRNW RRRVW RRRXP",857:" 11RYRKRY RRKYNRQ RSMVNSO",860:" 13MWRLRX ROOUO RMUOWQXSXUWWU",861:" 11LXRLRX RLQMOWOXQ RPWTW",862:" 14KYMNWX RWNMX ROLLOKQ RULXOYQ",863:" 18I[NII[ RVI[[ RMM[[ RWMI[ RNIVI RMMWM",864:" 21I[RGRV RMJWP RWJMP RIVL\\ R[VX\\ RIV[V RL\\X\\",865:" 11G[MJSV RKPSL RG\\[\\[RG\\",866:" 14LXPLPPLPLTPTPXTXTTXTXPTPTLPL",867:" 32KYYPXNVLSKQKNLLNKQKSLVNXQYSYVXXVYT RYPWNUMSMQNPOOQOSPUQVSWUWWVYT",868:" 10KYRJKVYVRJ RRZYNKNRZ",869:" 34G]PIPGQFSFTGTI RGZHXJVKTLPLKMJOIUIWJXKXPYTZV\\X]Z RGZ]Z RQZP[Q\\S\\T[SZ",870:" 64JZRMRS RRSQ\\ RRSS\\ RQ\\S\\ RRMQJPHNG RQJNG RRMSJTHVG RSJVG RRMNKLKJM RPLLLJM RRMVKXKZM RTLXLZM RRMPNOOOR RRMPOOR RRMTNUOUR RRMTOUR",871:" 94JZRIRK RRNRP RRSRU RRYQ\\ RRYS\\ RQ\\S\\ RRGQIPJ RRGSITJ RPJRITJ RRKPNNOMN RRKTNVOWN RNOPORNTOVO RRPPSNTLTKRKSLT RRPTSVTXTYRYSXT RNTPTRSTTVT RRUPXOYMZLZKYJWJYLZ RRUTXUYWZXZYYZWZYXZ RMZOZRYUZWZ",872:" 40JZRYQ\\ RRYS\\ RQ\\S\\ RRYUZXZZXZUYTWTYRZOYMWLUMVJUHSGQGOHNJOMMLKMJOKRMTKTJUJXLZOZRY",873:" 32JZRYQ\\ RRYS\\ RQ\\S\\ RRYVXVVXUXRZQZLYIXHVHTGPGNHLHKIJLJQLRLUNVNXRY",874:" 15I[IPKR RLKNP RRGRO RXKVP R[PYR",899:" 6QSRQQRRSSRRQ",900:" 10PTQPPQPSQTSTTSTQSPQP",901:" 14NVQNOONQNSOUQVSVUUVSVQUOSNQN",902:" 18MWQMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM",903:" 18KYQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",904:" 22G]PGMHJJHMGPGTHWJZM\\P]T]W\\ZZ\\W]T]P\\MZJWHTGPG",905:" 34AcPALBJCGEEGCJBLAPATBXCZE]G_JaLbPcTcXbZa]__]aZbXcTcPbLaJ_G]EZCXBTAPA",906:" 34fRAPCMDJDGCEA>H@JAMAZB]D_G`M`PaRc RRATCWDZD]C_AfHdJcMcZb]`_]`W`TaRc",909:" 33AcRAPCMDJDGCEABGAKAPBTDXG\\L`Rc RRATCWDZD]C_AbGcKcPbT`X]\\X`Rc RBHbH",997:" 3MWMXWX",998:" 3JZJZZZ",999:" 3JZJ]Z]",1001:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1002:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1003:" 24KYVLWKWOVLTKQKOLNMMPMSNVOWQXTXVWWU RQKOMNPNSOVQX",1004:" 26JZNKNX ROKOX RLKSKVLWMXPXSWVVWSXLX RSKULVMWPWSVVUWSX",1005:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1006:" 20JXNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXQX",1007:" 36K[VLWKWOVLTKQKOLNMMPMSNVOWQXTXVW RQKOMNPNSOVQX RTXUWVU RVSVX RWSWX RTSYS",1008:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1009:" 12NWRKRX RSKSX RPKUK RPXUX",1010:" 19LXSKSURWQX RTKTUSWQXPXNWMUNTOUNV RQKVK",1011:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1012:" 14KXOKOX RPKPX RMKRK RMXWXWTVX",1013:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1014:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1015:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1016:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1017:" 47KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RPWPUQTSTTUUZV[W[XZ RTUUXVZW[",1018:" 37JZNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX RSRTSUWVXWXXW RSRUSVWWX",1019:" 32KZVMWKWOVMULSKQKOLNMNOOPQQTRVSWT RNNOOQPTQVRWSWVVWTXRXPWOVNTNXOV",1020:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1021:" 20J[NKNUOWQXTXVWWUWK ROKOUPWQX RLKQK RUKYK",1022:" 15KYMKRX RNKRU RWKRX RKKPK RTKYK",1023:" 24I[LKOX RMKOT RRKOX RRKUX RSKUT RXKUX RJKOK RVKZK",1024:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1025:" 20LYNKRRRX ROKSR RWKSRSX RLKQK RTKYK RPXUX",1026:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1027:" 18KYRKMX RRNVX RRKWX ROTTT RKXPX RTXYX",1028:" 35JZNKNX ROKOX RLKSKVLWNVPSQ RSKULVNUPSQ ROQSQVRWTWUVWSXLX RSQURVTVUUWSX",1029:" 14KXOKOX RPKPX RMKWKWOVK RMXRX",1030:" 15KYRKLX RRMWX RRKXX RMWVW RLXXX",1031:" 22JYNKNX ROKOX RSOSS RLKVKVOUK ROQSQ RLXVXVTUX",1032:" 16LYVKNX RWKOX ROKNONKWK RNXWXWTVX",1033:" 27J[NKNX ROKOX RVKVX RWKWX RLKQK RTKYK ROQVQ RLXQX RTXYX",1034:" 44KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK RQOQT RTOTT RQQTQ RQRTR",1035:" 12NWRKRX RSKSX RPKUK RPXUX",1036:" 27JZNKNX ROKOX RWKOS RQQVX RRQWX RLKQK RTKYK RLXQX RTXYX",1037:" 15KYRKMX RRNVX RRKWX RKXPX RTXYX",1038:" 30I\\MKMX RNNRX RNKRU RWKRX RWKWX RXKXX RKKNK RWKZK RKXOX RUXZX",1039:" 21JZNKNX ROMVX ROKVV RVKVX RLKOK RTKXK RLXPX",1040:" 36JZMJLM RXJWM RPPOS RUPTS RMVLY RXVWY RMKWK RMLWL RPQTQ RPRTR RMWWW RMXWX",1041:" 32KZQKOLNMMPMSNVOWQXTXVWWVXSXPWMVLTKQK RQKOMNPNSOVQX RTXVVWSWPVMTK",1042:" 21J[NKNX ROKOX RVKVX RWKWX RLKYK RLXQX RTXYX",1043:" 25JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXQX",1044:" 20K[MKRQ RNKSQMX RMKWKXOVK RNWWW RMXWXXTVX",1045:" 16KZRKRX RSKSX RNKMOMKXKXOWK RPXUX",1046:" 33KZMONLOKPKQLRORX RXOWLVKUKTLSOSX RMONMOLPLQMRO RXOWMVLULTMSO RPXUX",1047:" 40KZRKRX RSKSX RQNNOMQMRNTQUTUWTXRXQWOTNQN RQNOONQNROTQU RTUVTWRWQVOTN RPKUK RPXUX",1048:" 21KZNKVX ROKWX RWKNX RLKQK RTKYK RLXQX RTXYX",1049:" 33J[RKRX RSKSX RLPMONOOSQU RTUVSWOXOYP RMONROTQUTUVTWRXO RPKUK RPXUX",1050:" 35KZMVNXQXMRMONMOLQKTKVLWMXOXRTXWXXV ROUNRNOOMQK RTKVMWOWRVU RNWPW RUWWW",1051:" 18KYTKKX RSMTX RTKUX RNTTT RIXNX RRXWX",1052:" 34JYPKLX RQKMX RNKUKWLWNVPSQ RUKVLVNUPSQ ROQRQTRUSUUTWQXJX RRQTSTUSWQX",1053:" 25KXVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUU RRKPMOONRNVPX",1054:" 26JYPKLX RQKMX RNKTKVLWNWQVTUVTWQXJX RTKULVNVQUTTVSWQX",1055:" 22JYPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXTXUUSX",1056:" 20JXPKLX RQKMX RSORS RNKXKWNWK ROQRQ RJXOX",1057:" 33KYVLWLXKWNVLTKRKPLOMNOMRMUNWPXRXTWUVVS RRKPMOONRNVPX RRXTVUS RSSXS",1058:" 27J[PKLX RQKMX RXKTX RYKUX RNKSK RVK[K ROQVQ RJXOX RRXWX",1059:" 12NWTKPX RUKQX RRKWK RNXSX",1060:" 19LXUKRUQWPX RVKSURWPXOXMWLUMTNUMV RSKXK",1061:" 27JZPKLX RQKMX RYKOR RRPTX RSPUX RNKSK RVK[K RJXOX RRXWX",1062:" 14KXQKMX RRKNX ROKTK RKXUXVUTX",1063:" 30I\\OKKX ROMPX RPKQV RYKPX RYKUX RZKVX RMKPK RYK\\K RIXMX RSXXX",1064:" 21JZPKLX RPKTX RQKTU RXKTX RNKQK RVKZK RJXNX",1065:" 32KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK",1066:" 24JYPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RJXOX",1067:" 46KYRKPLOMNOMRMUNWPXRXTWUVVTWQWNVLTKRK RRKPMOONRNVPX RRXTVUTVQVMTK ROWOVPUQURVRZS[T[UZ RRVSZT[",1068:" 35JZPKLX RQKMX RNKUKWLXMXOWQTROR RUKWMWOVQTR RSRTWUXVXWW RSRTSUWVX RJXOX",1069:" 28KZWLXLYKXNWLUKRKPLOMOOPPUSVT RONPOURVSVVUWSXPXNWMULXMWNW",1070:" 16KZTKPX RUKQX RPKNNOKZKYNYK RNXSX",1071:" 20J[PKMUMWOXSXUWVUYK RQKNUNWOX RNKSK RWK[K",1072:" 15KYOKPX RPKQV RYKPX RMKRK RVK[K",1073:" 24I[NKMX ROKNV RTKMX RTKSX RUKTV RZKSX RLKQK RXK\\K",1074:" 21KZPKTX RQKUX RYKLX RNKSK RVK[K RJXOX RRXWX",1075:" 20LYPKRQPX RQKSQ RYKSQQX RNKSK RVK[K RNXSX",1076:" 16LYXKLX RYKMX RQKONPKYK RLXUXVUTX",1101:" 32LZQOPPPQOQOPQOTOVQVWWXXX RTOUQUWWX RURRSPTOUOWPXSXTWUU RRSPUPWQX",1102:" 29JYNKNX ROKOX RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLKOK",1103:" 24LXVQUQURVRVQUPSOQOOPNRNUOWQXSXUWVV RQOPPOROUPWQX",1104:" 32L[VKVX RWKWX RVRUPSOQOOPNRNUOWQXSXUWVU RQOPPOROUPWQX RTKWK RVXYX",1105:" 26LXOSVSVRUPSOQOOPNRNUOWQXSXUWVV RUSUQSO RQOPPOROUPWQX",1106:" 20LWTKULUMVMVLTKRKPMPX RRKQMQX RNOSO RNXSX",1107:" 42LYQOOQOSQUSUUSUQSOQO RQOPQPSQU RSUTSTQSO RTPUOVO RPTOUOXPYTYVZ ROWPXTXVYV[T\\P\\N[NYPX",1108:" 28J[NKNX ROKOX RORPPROTOVPWRWX RTOUPVRVX RLKOK RLXQX RTXYX",1109:" 18NWRKRLSLSKRK RRORX RSOSX RPOSO RPXUX",1110:" 23NWSKSLTLTKSK RSOSZR\\ RTOTZR\\P\\O[OZPZP[O[ RQOTO",1111:" 27JZNKNX ROKOX RWOOU RRSVX RSSWX RLKOK RTOYO RLXQX RTXYX",1112:" 12NWRKRX RSKSX RPKSK RPXUX",1113:" 44F_JOJX RKOKX RKRLPNOPORPSRSX RPOQPRRRX RSRTPVOXOZP[R[X RXOYPZRZX RHOKO RHXMX RPXUX RXX]X",1114:" 28J[NONX ROOOX RORPPROTOVPWRWX RTOUPVRVX RLOOO RLXQX RTXYX",1115:" 28LYQOOPNRNUOWQXTXVWWUWRVPTOQO RQOPPOROUPWQX RTXUWVUVRUPTO",1116:" 32JYNON\\ ROOO\\ RORPPROTOVPWRWUVWTXRXPWOU RTOUPVRVUUWTX RLOOO RL\\Q\\",1117:" 29KYUOU\\ RVOV\\ RURTPROPONPMRMUNWPXRXTWUU RPOOPNRNUOWPX RS\\X\\",1118:" 22KXOOOX RPOPX RPRQPSOUOVPVQUQUPVP RMOPO RMXRX",1119:" 26LYTOUPUQVQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWOVPVPWQX",1120:" 14LWPKPVRXTXUWUV RQKQVRX RNOTO",1121:" 28J[NONUOWQXSXUWVU ROOOUPWQX RVOVX RWOWX RLOOO RTOWO RVXYX",1122:" 15KYNORX ROORV RVORX RLOQO RTOXO",1123:" 24I[LOOX RMOOU RROOX RROUX RSOUU RXOUX RJOOO RVOZO",1124:" 21KYNOUX ROOVX RVONX RLOQO RTOXO RLXPX RSXXX",1125:" 23KYNORX ROORV RVORXP[N\\M\\L[LZMZM[L[ RLOQO RTOXO",1126:" 16LXUONX RVOOX ROONQNOVO RNXVXVVUX",1127:" 32K[QOOPNQMSMUNWPXQXSWUUWRXO RQOOQNSNUOWPX RQOSOUPWWXX RSOTPVWXXYX",1128:" 40KXRKPMOOMUK\\ RQLPNNTL\\ RRKTKVLVNUPRQ RTKULUNTPRQ RRQTRUTUVTWRXQXOWNT RRQSRTTTVRX",1129:" 19KYLQNOPORPSSSXR\\ RLQNPPPRQSS RWOVRSXQ\\",1130:" 39KYSOQOOPNQMSMUNWPXRXTWUVVTVRUPRNQLQKRJTJUKVM RQOOQNSNVPX RRXTVUTUQSO RQLRKTKVM",1131:" 27LXVPTOQOOPOQPRRS RQOPPPQRS RRSOTNUNWPXSXUW RRSPTOUOWPX",1132:" 28LWRKQLQMSNVNVMSNPOOPNRNTOVPWRXSYS[R\\P\\O[ RSNQOPPOROTPVRX",1133:" 26IYJRKPLONOOPOQMX RMONPNQLX ROQPPROTOVPVRS\\ RTOUPURR\\",1134:" 35IYJSKQLPNPOQOVPX RMPNQNUOWPXQXSWTVUTVQVNULTKRKQLQNRPURWS RQXSVTTUQUNTK",1135:" 13NWROPVPWQXSXUWVU RSOQVQWRX",1136:" 26KYOOLX RPOMX RUOVPWPVOTORQOR RORPSRWTXVWWU RORQSSWTX",1137:" 15LXLKNKPLWX RNKOLVX RRPMX RRPNX",1138:" 26KZOOK\\ RPOL\\ RNUNWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1139:" 19JYNOMX ROONUMX RVRVOWOVRTUQWNXMX RLOOO",1140:" 36MXRKQLQMSNVN RTNQOPPPRRSUS RTNROQPQRRS RSSPTOUOWQXSYTZT[S\\Q\\ RSSQTPUPWQX",1141:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1142:" 20IZPPMX RPPNX RTPSX RTPTX RKQMOXO RKQMPXP",1143:" 29JXSOQOOPNQMSJ\\ RQOOQNSK\\ RSOUPVRVTUVTWRXPXNWMU RSOUQUTTVRX",1144:" 28K[YOQOOPNQMSMUNWPXRXTWUVVTVRUPYP RQOOQNSNVPX RRXTVUTUQSO",1145:" 14KZSPQX RSPRX RMQOOXO RMQOPXP",1146:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1147:" 35KZOPNQMSMUNWPXRXUWWUXRXPWOUOTPSRRUO\\ RMUNVPWRWUVWTXR RXQWPUPSR RRUQXP\\",1148:" 17KXMONOPPS[T\\ RNOOPR[T\\U\\ RVOTRNYL\\",1149:" 28I[TKQ\\ RUKP\\ RJRKPLONOOPOVPWSWUVWT RMONPNTOWPXSXUWWTXRYO",1150:" 36JZNPPPPONPMQLSLUMWNXPXQWRUSR RLUNWPWRU RRRRWSXUXWVXTXRWPVOVPWP RRUSWUWWV",1151:" 32KZVOTVTWUXWXXWYU RWOUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1152:" 32JXOKMR RPKNRNVPX RNROPQOSOUPVRVTUVTWRXPXNWMUMR RSOUQUTTVRX RMKPK",1153:" 22KXUPUQVQUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1154:" 35KZWKTVTWUXWXXWYU RXKUVUWVX RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RUKXK",1155:" 23KWNURTTSURUPSOQOOPNQMSMUNWPXRXTWUV RQOOQNSNVPX",1156:" 23MXWKXLXKVKTLSNPYO[N\\ RVKULTNQYP[N\\L\\L[M\\ RPOVO",1157:" 34KYVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX",1158:" 29KZPKLX RQKMX ROQPPROTOVPVRUUUWVX RTOUPURTUTWUXWXXWYU RNKQK",1159:" 26MWSKSLTLTKSK RNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1160:" 26MWTKTLULUKTK RORPPQOSOTPTRRYQ[O\\M\\M[N\\ RROSPSRQYP[O\\",1161:" 32KXPKLX RQKMX RVPUQVQVPUOTORQPROR RORPSQWRXTXUWVU RORQSRWSX RNKQK",1162:" 16NVSKPVPWQXSXTWUU RTKQVQWRX RQKTK",1163:" 46F^GRHPIOKOLPLQJX RJOKPKQIX RLQMPOOQOSPSQQX RQORPRQPX RSQTPVOXOZPZRYUYWZX RXOYPYRXUXWYX[X\\W]U",1164:" 33J[KRLPMOOOPPPQNX RNOOPOQMX RPQQPSOUOWPWRVUVWWX RUOVPVRUUUWVXXXYWZU",1165:" 28KXQOOPNQMSMUNWPXRXTWUVVTVRUPSOQO RQOOQNSNVPX RRXTVUTUQSO",1166:" 35JYKRLPMOOOPPPQM\\ RNOOPOQL\\ RPQROTOVPWRWTVVUWSXQXOVOT RTOVQVTUVSX RJ\\O\\",1167:" 28KYVOR\\ RWOS\\ RUSUQSOQOOPNQMSMUNWPXRXTV RQOOQNSNVPX RP\\U\\",1168:" 22LXMRNPOOQORPRQPX RPOQPQQOX RRQSPUOVOWPWQVQWP",1169:" 24LYVPVQWQVPTOQOOPORQSTTVU ROQQRTSVTVWTXQXOWNVOVOW",1170:" 16NWSKPVPWQXSXTWUU RTKQVQWRX RPOUO",1171:" 33IZJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVTWUXWXXWYU RWOUVUWVX",1172:" 24JXKRLPMOOOPPPROUOWPX RNOOPORNUNWPXQXSWUUVRVOUOVP",1173:" 37H\\IRJPKOMONPNRMUMWNX RLOMPMRLULWNXOXQWRV RTORVRWTX RUOSVSWTXUXWWYUZRZOYOZP",1174:" 38JZMRNPPOROSPSR RQORPRRQUPWNXMXLWLVMVLW RXPWQXQXPWOVOTPSRRURWSX RQUQWRXTXVWWU",1175:" 35IYJRKPLONOOPORNUNWOX RMONPNRMUMWOXQXSWTV RVOTVSYR[ RWOUVTYR[P\\M\\L[M[N\\",1176:" 27KYWOWPVQNVMWMX RNQOOROUQ ROPRPUQVQ RNVOVRWUW ROVRXUXVV",1177:" 39H[RKSLSMTMTLRKOKMLLNLX ROKNLMNMX RXKYLYMZMZLXKVKTMTX RVKUMUX RJOWO RJXOX RRXWX",1178:" 29J[UKVLWLWKQKOLNNNX RQKPLONOX RVOVX RWOWX RLOWO RLXQX RTXYX",1179:" 27J[WKQKOLNNNX RQKPLONOX RUKVLVX RWKWX RLOVO RLXQX RTXYX",1180:" 48F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX RYKZL[L[KUKSLRNRX RUKTLSNSX RZOZX R[O[X RHO[O RHXMX RPXUX RXX]X",1181:" 46F_PKQLQMRMRLPKMKKLJNJX RMKLLKNKX R[KUKSLRNRX RUKTLSNSX RYKZLZX R[K[X RHOZO RHXMX RPXUX RXX]X",1182:" 12NWRORX RSOSX RPOSO RPXUX",1184:" 21LXVPTOROPPOQNSNUOWQXSXUW RROPQOSOVQX ROSSS",1185:" 35LYSKQLPMOONRNUOWPXRXTWUVVTWQWNVLUKSK RSKQMPOOSOVPX RRXTVUTVPVMUK ROQVQ",1186:" 34KZTKQ\\ RUKP\\ RQONPMRMUNWQXTXWWXUXRWPTOQO RQOOPNRNUOWQX RTXVWWUWRVPTO",1187:" 22LXUPVRVQUPSOQOOPNRNTOVRX RQOOQOTPVRXSYS[R\\P\\",1191:" 45I[VKWLXLVKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RZK[L[KYKWLVNSYR[Q\\ RYKXLWNTYS[Q\\O\\O[P\\ RLOYO",1192:" 38IZVKWLXLXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RVOTVTWUXWXXWYU RWOUVUWVX RLOWO",1193:" 38IZVKWL RXKSKQLPMOOLYK[J\\ RSKQMPOMYL[J\\H\\H[I\\ RWKTVTWUXWXXWYU RXKUVUWVX RLOVO",1194:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L\\L\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ RZOXVXWYX[X\\W]U R[OYVYWZX RIO[O",1195:" 63F^SKTLTM RULSKPKNLMMLOIYH[G\\ RPKNMMOJYI[G\\E\\E[F\\ RZK[L R\\KWKUL RTMSOPYO[N\\ RWKUMTOQYP[N\\L\\L[M\\ R[KXVXWYX[X\\W]U R\\KYVYWZX RIOZO",1196:" 20MWNROPPOROSPSRRURWSX RQORPRRQUQWRXTXUWVU",1200:" 28LYQKOLNONTOWQXTXVWWTWOVLTKQK RQKPLOOOTPWQX RTXUWVTVOULTK",1201:" 10LYPNSKSX RRLRX ROXVX",1202:" 35LYOMONNNNMOLQKTKVLWNVPTQQROSNUNX RTKULVNUPTQ RNWOVPVSWVWWV RPVSXVXWVWU",1203:" 39LYOMONNNNMOLQKTKVLWNVPTQ RTKULVNUPTQ RRQTQVRWTWUVWTXQXOWNVNUOUOV RTQURVTVUUWTX",1204:" 13LYSMSX RTKTX RTKMTXT RQXVX",1205:" 33LYOKNQ ROKVK ROLSLVK RNQOPQOTOVPWRWUVWTXQXOWNVNUOUOV RTOUPVRVUUWTX",1206:" 36LYVMVNWNWMVLTKRKPLOMNPNUOWQXTXVWWUWSVQTPQPNR RRKPMOPOUPWQX RTXUWVUVSUQTP",1207:" 22LYNKNO RVMRTPX RWKTQQX RNMPKRKUM RNMPLRLUMVM",1208:" 51LYQKOLNNOPQQTQVPWNVLTKQK RQKPLONPPQQ RTQUPVNULTK RQQORNTNUOWQXTXVWWUWTVRTQ RQQPROTOUPWQX RTXUWVUVTURTQ",1209:" 36LYOVOUNUNVOWQXSXUWVVWSWNVLTKQKOLNNNPORQSTSWQ RSXUVVSVNULTK RQKPLONOPPRQS",1210:" 6NVRVQWRXSWRV",1211:" 8NVSWRXQWRVSWSYQ[",1212:" 12NVROQPRQSPRO RRVQWRXSWRV",1213:" 14NVROQPRQSPRO RSWRXQWRVSWSYQ[",1214:" 15NVRKQLRSSLRK RRLRO RRVQWRXSWRV",1215:" 29LYNNONOONONNOLQKTKVLWNWOVQSRRSRTST RTKVMVPUQSR RRWRXSXSWRW",1216:" 6OVRKRP RSKRP",1217:" 12LXOKOP RPKOP RUKUP RVKUP",1218:" 10MWQKPLPNQOSOTNTLSKQK",1219:" 9MWRJRP ROKUO RUKOO",1220:" 3KZXHM\\",1221:" 16MWUHSJQMPPPTQWSZU\\ RSJRLQPQTRXSZ",1222:" 16MWOHQJSMTPTTSWQZO\\ RQJRLSPSTRXQZ",1223:" 12MWPHP\\ RQHQ\\ RPHUH RP\\U\\",1224:" 12MWSHS\\ RTHT\\ ROHTH RO\\T\\",1225:" 38LWSHQIPJPLRNSP RQIPL RSNRQ RPJQLSNSPRQPRRSSTSVQXPZ RRSSV RPXQ[ RSTRVPXPZQ[S\\",1226:" 38MXQHSITJTLRNQP RSITL RQNRQ RTJSLQNQPRQTRRSQTQVSXTZ RRSQV RTXS[ RQTRVTXTZS[Q\\",1227:" 4MWTHPRT\\",1228:" 4MWPHTRP\\",1229:" 3OURHR\\",1230:" 6MWPHP\\ RTHT\\",1231:" 3I[LRXR",1232:" 6I[RLRX RLRXR",1233:" 9JZRMRX RMRWR RMXWX",1234:" 9JZRMRX RMMWM RMRWR",1235:" 6JZMMWW RWMMW",1236:" 6NVRQQRRSSRRQ",1237:" 15I[RLQMRNSMRL RLRXR RRVQWRXSWRV",1238:" 6I[LPXP RLTXT",1239:" 9I[WLMX RLPXP RLTXT",1240:" 9I[LNXN RLRXR RLVXV",1241:" 4JZWLMRWX",1242:" 4JZMLWRMX",1243:" 10JZWKMOWS RMTWT RMXWX",1244:" 10JZMKWOMS RMTWT RMXWX",1245:" 21H[YUWUUTTSRPQOONNNLOKQKRLTNUOUQTRSTPUOWNYN",1246:" 16JZLTLRMPOPUSWSXR RLRMQOQUTWTXRXP",1247:" 8JZMSRPWS RMSRQWS",1248:" 7NVSKPO RSKTLPO",1249:" 7NVQKTO RQKPLTO",1250:" 14LXNKOMQNSNUMVK RNKONQOSOUNVK",1251:" 8NVSLRMQLRKSLSNQP",1252:" 8NVSKQMQORPSORNQO",1253:" 8NVQLRMSLRKQLQNSP",1254:" 8NVQKSMSORPQORNSO",1256:" 11JZWMQMONNOMQMSNUOVQWWW",1257:" 11JZMMMSNUOVQWSWUVVUWSWM",1258:" 11JZMMSMUNVOWQWSVUUVSWMW",1259:" 11JZMWMQNOONQMSMUNVOWQWW",1260:" 14JZWMQMONNOMQMSNUOVQWWW RMRUR",1261:" 13I[TOUPXRUTTU RUPWRUT RLRWR",1262:" 13MWRMRX ROPPORLTOUP RPORMTO",1263:" 13I[POOPLROTPU ROPMROT RMRXR",1264:" 13MWRLRW ROTPURXTUUT RPURWTU",1265:" 37KYVSUPSOQOOPNQMSMUNWPXRXTWUVVTWQWNVLTKQKPLQLRK RQOOQNSNVPX RRXTVUTVQVNULTK",1266:" 15JZLKRX RMKRV RXKRX RLKXK RNLWL",1267:" 10G[IOLORW RKORX R[FRX",1268:" 26I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[",1269:" 40I[XIXJYJYIXHVHTJSLROQUPYO[ RUITKSORUQXPZN\\L\\K[KZLZL[ RQNOONQNSOUQVSVUUVSVQUOSNQN",1270:" 26H\\ZRYTWUVUTTSSQPPONNMNKOJQJRKTMUNUPTQSSPTOVNWNYOZQZR",1271:" 26JZXKLX ROKPLPNOOMOLNLLMKOKSLVLXK RUTTUTWUXWXXWXUWTUT",1272:" 41J[YPXPXQYQYPXOWOVPUTTVSWQXOXMWLVLTMSORRPSNSLRKPKOLONPQUWWXXXYW ROXMVMTOR RONPPVWWX",1273:" 29J[UPSOQOPQPRQTSTUS RUOUSVTXTYRYQXNVLSKRKOLMNLQLRMUOWRXSXVW",1274:" 34KZQHQ\\ RTHT\\ RWLVLVMWMWLUKPKNLNNOPVSWT RNNOOVRWTWVVWTXQXOWNVNUOUOVNV",1275:" 12KYRKN\\ RVKR\\ RNQWQ RMVVV",1276:" 40LXTLSLSMTMTLSKQKPLPNQPTRUS RPNQOTQUSUUSW RQPOROTPVSXTY ROTPUSWTYT[S\\Q\\P[PZQZQ[P[",1277:" 29LXRKQLRMSLRK RRMRQ RRQQSRVSSRQ RRVR\\ RPOONNOOPPOTOUNVOUPTO",1278:" 42LXRMSLRKQLRMRQQRSURV RRQSRQURVRZQ[R\\S[RZ RPOONNOOPPOTOUNVOUPTO RPXOWNXOYPXTXUWVXUYTX",1279:" 12LYVKVX RNKVK RQQVQ RNXVX",1281:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRQQRRSSRRQ",1282:" 33LYQKPLPMQN RTKULUMTN RRNPOOQORPTRUSUUTVRVQUOSNRN RRURY RSUSY ROWVW",1283:" 23LYRKPLONOOPQRRSRUQVOVNULSKRK RRRRX RSRSX ROUVU",1284:" 24H\\QKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK RRKRY RKRYR",1285:" 25JYRRPQOQMRLTLUMWOXPXRWSUSTRR RWMRR RRMWMWR RRMVNWR",1286:" 25JZLLMKOKQLRNRPQRPSNT ROKPLQNQQPS RVKUX RWKTX RNTXT",1287:" 27JYNKNU ROKNR RNROPQOSOUPVQVTTVTXUYVYWX RSOUQUTTV RLKOK",1288:" 27LYONRKRQ RVNSKSQ RRQPROTOUPWRXSXUWVUVTURSQ RRTRUSUSTRT",1289:" 27JZRKRY RMKMPNRPSTSVRWPWK RLMMKNM RQMRKSM RVMWKXM ROVUV",1290:" 27JYNKNX ROKOX RLKSKVLWNWOVQSROR RSKULVNVOUQSR RLXVXVUUX",1291:" 20LYWKTKQLONNQNSOVQXTYWY RWKTLRNQQQSRVTXWY",1292:" 23JZRRPQOQMRLTLUMWOXPXRWSUSTRR RSLQQ RWMRR RXQSS",1293:" 12KYPMTW RTMPW RMPWT RWPMT",1294:" 34J[OUMULVLXMYOYPXPVNTMRMONMOLQKTKVLWMXOXRWTUVUXVYXYYXYVXUVU RNMPLULWM",1295:" 34J[OOMOLNLLMKOKPLPNNPMRMUNWOXQYTYVXWWXUXRWPUNULVKXKYLYNXOVO RNWPXUXWW",1401:" 21F^KHK\\ RLHL\\ RXHX\\ RYHY\\ RHH\\H RH\\O\\ RU\\\\\\",1402:" 20H]KHRQJ\\ RJHQQ RJHYHZMXH RK[X[ RJ\\Y\\ZWX\\",1403:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",1404:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",1405:" 12KYOBOb RPBPb ROBVB RObVb",1406:" 12KYTBTb RUBUb RNBUB RNbUb",1407:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",1408:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",1409:" 24KYU@RCPFOIOLPOSVTYT\\S_Ra RRCQEPHPKQNTUUXU[T^RaOd",1410:" 24KYO@RCTFUIULTOQVPYP\\Q_Ra RRCSETHTKSNPUOXO[P^RaUd",1411:" 13AXCRGRR` RGSRa RFSRb RX:Rb",1412:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2001:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2002:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2003:" 32G\\XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXXYV RQFOGMILKKNKSLVMXOZQ[",2004:" 30G]LFL[ RMFM[ RIFSFVGXIYKZNZSYVXXVZS[I[ RSFUGWIXKYNYSXVWXUZS[",2005:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2006:" 20G[LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[P[",2007:" 40G^XIYLYFXIVGSFQFNGLIKKJNJSKVLXNZQ[S[VZXX RQFOGMILKKNKSLVMXOZQ[ RXSX[ RYSY[ RUS\\S",2008:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2009:" 12MXRFR[ RSFS[ ROFVF RO[V[",2010:" 20KZUFUWTZR[P[NZMXMVNUOVNW RTFTWSZR[ RQFXF",2011:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2012:" 14I[NFN[ ROFO[ RKFRF RK[Z[ZUY[",2013:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2014:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2015:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2016:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2017:" 64G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF RNYNXOVQURUTVUXV_W`Y`Z^Z] RUXV\\W^X_Y_Z^",2018:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUPMP RUFWGXHYJYLXNWOUP RI[P[ RRPTQURXYYZZZ[Y RTQUSWZX[Z[[Y[X",2019:" 34H\\XIYFYLXIVGSFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[Q[NZLXKUK[LX",2020:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2021:" 23F^KFKULXNZQ[S[VZXXYUYF RLFLUMXOZQ[ RHFOF RVF\\F",2022:" 15H\\KFR[ RLFRX RYFR[ RIFOF RUF[F",2023:" 24F^JFN[ RKFNV RRFN[ RRFV[ RSFVV RZFV[ RGFNF RWF]F",2024:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2025:" 20H]KFRQR[ RLFSQS[ RZFSQ RIFOF RVF\\F RO[V[",2026:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2027:" 18H\\RFK[ RRFY[ RRIX[ RMUVU RI[O[ RU[[[",2028:" 45G]LFL[ RMFM[ RIFUFXGYHZJZLYNXOUP RUFWGXHYJYLXNWOUP RMPUPXQYRZTZWYYXZU[I[ RUPWQXRYTYWXYWZU[",2029:" 14I[NFN[ ROFO[ RKFZFZLYF RK[R[",2030:" 15H\\RFJ[ RRFZ[ RRIY[ RKZYZ RJ[Z[",2031:" 22G\\LFL[ RMFM[ RSLST RIFYFYLXF RMPSP RI[Y[YUX[",2032:" 16H\\XFK[ RYFL[ RLFKLKFYF RK[Y[YUX[",2033:" 27F^KFK[ RLFL[ RXFX[ RYFY[ RHFOF RUF\\F RLPXP RH[O[ RU[\\[",2034:" 56G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF ROMOT RUMUT ROPUP ROQUQ",2035:" 12MXRFR[ RSFS[ ROFVF RO[V[",2036:" 27F\\KFK[ RLFL[ RYFLS RQOY[ RPOX[ RHFOF RUF[F RH[O[ RU[[[",2037:" 15H\\RFK[ RRFY[ RRIX[ RI[O[ RU[[[",2038:" 30F_KFK[ RLFRX RKFR[ RYFR[ RYFY[ RZFZ[ RHFLF RYF]F RH[N[ RV[][",2039:" 21G^LFL[ RMFYY RMHY[ RYFY[ RIFMF RVF\\F RI[O[",2040:" 36G]KEJJ RZEYJ RONNS RVNUS RKWJ\\ RZWY\\ RKGYG RKHYH ROPUP ROQUQ RKYYY RKZYZ",2041:" 44G]QFNGLIKKJOJRKVLXNZQ[S[VZXXYVZRZOYKXIVGSFQF RQFOGMILKKOKRLVMXOZQ[ RS[UZWXXVYRYOXKWIUGSF",2042:" 21F^KFK[ RLFL[ RXFX[ RYFY[ RHF\\F RH[O[ RU[\\[",2043:" 29G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[P[",2044:" 20H]KFRPJ[ RJFQP RJFYFZLXF RKZXZ RJ[Y[ZUX[",2045:" 16I\\RFR[ RSFS[ RLFKLKFZFZLYF RO[V[",2046:" 33I\\KKKILGMFOFPGQIRMR[ RKIMGOGQI RZKZIYGXFVFUGTISMS[ RZIXGVGTI RO[V[",2047:" 48H]RFR[ RSFS[ RPKMLLMKOKRLTMUPVUVXUYTZRZOYMXLUKPK RPKNLMMLOLRMTNUPV RUVWUXTYRYOXMWLUK ROFVF RO[V[",2048:" 21H\\KFX[ RLFY[ RYFK[ RIFOF RUF[F RI[O[ RU[[[",2049:" 41G^RFR[ RSFS[ RIMJLLMMQNSOTQU RJLKMLQMSNTQUTUWTXSYQZM[L RTUVTWSXQYM[L\\M ROFVF RO[V[",2050:" 43G]JXK[O[MWKSJPJLKIMGPFTFWGYIZLZPYSWWU[Y[ZX RMWLTKPKLLINGPF RTFVGXIYLYPXTWW RKZNZ RVZYZ",2051:" 18H\\UFH[ RUFV[ RTHU[ RLUUU RF[L[ RR[X[",2052:" 41F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVP RWFYGZIZKYNXOVP RMPVPXQYSYUXXVZR[F[ RVPWQXSXUWXUZR[",2053:" 34H]ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[S[UZWXXV RTFRGPINLMOLSLVMYNZP[",2054:" 30F]OFI[ RPFJ[ RLFUFXGYHZKZOYSWWUYSZO[F[ RUFWGXHYKYOXSVWTYRZO[",2055:" 22F]OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[U[WVT[",2056:" 20F\\OFI[ RPFJ[ RTLRT RLF[FZLZF RMPSP RF[M[",2057:" 42H^ZH[H\\F[L[JZHYGWFTFQGOIMLLOKSKVLYMZP[R[UZWXYT RTFRGPINLMOLSLVMYNZP[ RR[TZVXXT RUT\\T",2058:" 27E_NFH[ ROFI[ R[FU[ R\\FV[ RKFRF RXF_F RLPXP RE[L[ RR[Y[",2059:" 12LYUFO[ RVFP[ RRFYF RL[S[",2060:" 21I[XFSWRYQZO[M[KZJXJVKULVKW RWFRWQYO[ RTF[F",2061:" 27F]OFI[ RPFJ[ R]FLS RSOW[ RROV[ RLFSF RYF_F RF[M[ RS[Y[",2062:" 14H\\QFK[ RRFL[ RNFUF RH[W[YUV[",2063:" 30E`NFH[ RNFO[ ROFPY R\\FO[ R\\FV[ R]FW[ RKFOF R\\F`F RE[K[ RS[Z[",2064:" 21F_OFI[ ROFVX ROIV[ R\\FV[ RLFOF RYF_F RF[L[",2065:" 42G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF",2066:" 27F]OFI[ RPFJ[ RLFXF[G\\I\\K[NYPUQMQ RXFZG[I[KZNXPUQ RF[M[",2067:" 61G]SFPGNILLKOJSJVKYLZN[Q[TZVXXUYRZNZKYHXGVFSF RSFQGOIMLLOKSKVLYN[ RQ[SZUXWUXRYNYKXHVF RLYLXMVOUPURVSXS_T`V`W^W] RSXT^U_V_W^",2068:" 42F^OFI[ RPFJ[ RLFWFZG[I[KZNYOVPMP RWFYGZIZKYNXOVP RRPTQURVZW[Y[ZYZX RURWYXZYZZY RF[M[",2069:" 35G^ZH[H\\F[L[JZHYGVFRFOGMIMKNMONVRXT RMKOMVQWRXTXWWYVZS[O[LZKYJWJUI[JYKY",2070:" 16H]UFO[ RVFP[ ROFLLNF]F\\L\\F RL[S[",2071:" 25F_NFKQJUJXKZN[R[UZWXXU\\F ROFLQKUKXLZN[ RKFRF RYF_F",2072:" 15H\\NFO[ ROFPY R\\FO[ RLFRF RXF^F",2073:" 24E_MFK[ RNFLY RUFK[ RUFS[ RVFTY R]FS[ RJFQF RZF`F",2074:" 21G]NFU[ ROFV[ R\\FH[ RLFRF RXF^F RF[L[ RR[X[",2075:" 20H]NFRPO[ ROFSPP[ R]FSP RLFRF RYF_F RL[S[",2076:" 16G][FH[ R\\FI[ ROFLLNF\\F RH[V[XUU[",2077:" 46H\\KILKXWYYY[ RLLXX RKIKKLMXYY[ RPPLTKVKXLZK[ RKVMZ RLTLVMXMZK[ RSSXN RVIVLWNYNYLWKVI RVIWLYN",2101:" 39I]NONPMPMONNPMTMVNWOXQXXYZZ[ RWOWXXZZ[[[ RWQVRPSMTLVLXMZP[S[UZWX RPSNTMVMXNZP[",2102:" 33G\\LFL[ RMFM[ RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIFMF",2103:" 28H[WPVQWRXQXPVNTMQMNNLPKSKULXNZQ[S[VZXX RQMONMPLSLUMXOZQ[",2104:" 36H]WFW[ RXFX[ RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTFXF RW[[[",2105:" 31H[LSXSXQWOVNTMQMNNLPKSKULXNZQ[S[VZXX RWSWPVN RQMONMPLSLUMXOZQ[",2106:" 22KXUGTHUIVHVGUFSFQGPIP[ RSFRGQIQ[ RMMUM RM[T[",2107:" 60I\\QMONNOMQMSNUOVQWSWUVVUWSWQVOUNSMQM RONNPNTOV RUVVTVPUN RVOWNYMYNWN RNUMVLXLYM[P\\U\\X]Y^ RLYMZP[U[X\\Y^Y_XaUbObLaK_K^L\\O[",2108:" 28G]LFL[ RMFM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIFMF RI[P[ RT[[[",2109:" 18MXRFQGRHSGRF RRMR[ RSMS[ ROMSM RO[V[",2110:" 25MXSFRGSHTGSF RTMT_SaQbObNaN`O_P`Oa RSMS_RaQb RPMTM",2111:" 27G\\LFL[ RMFM[ RWMMW RRSX[ RQSW[ RIFMF RTMZM RI[P[ RT[Z[",2112:" 12MXRFR[ RSFS[ ROFSF RO[V[",2113:" 44BcGMG[ RHMH[ RHPJNMMOMRNSPS[ ROMQNRPR[ RSPUNXMZM]N^P^[ RZM\\N]P][ RDMHM RD[K[ RO[V[ RZ[a[",2114:" 28G]LML[ RMMM[ RMPONRMTMWNXPX[ RTMVNWPW[ RIMMM RI[P[ RT[[[",2115:" 36H\\QMNNLPKSKULXNZQ[S[VZXXYUYSXPVNSMQM RQMONMPLSLUMXOZQ[ RS[UZWXXUXSWPUNSM",2116:" 36G\\LMLb RMMMb RMPONQMSMVNXPYSYUXXVZS[Q[OZMX RSMUNWPXSXUWXUZS[ RIMMM RIbPb",2117:" 33H\\WMWb RXMXb RWPUNSMQMNNLPKSKULXNZQ[S[UZWX RQMONMPLSLUMXOZQ[ RTb[b",2118:" 23IZNMN[ ROMO[ ROSPPRNTMWMXNXOWPVOWN RKMOM RK[R[",2119:" 32J[WOXMXQWOVNTMPMNNMOMQNRPSUUWVXW RMPNQPRUTWUXVXYWZU[Q[OZNYMWM[NY",2120:" 16KZPFPWQZS[U[WZXX RQFQWRZS[ RMMUM",2121:" 28G]LMLXMZP[R[UZWX RMMMXNZP[ RWMW[ RXMX[ RIMMM RTMXM RW[[[",2122:" 15I[LMR[ RMMRY RXMR[ RJMPM RTMZM",2123:" 24F^JMN[ RKMNX RRMN[ RRMV[ RSMVX RZMV[ RGMNM RWM]M",2124:" 21H\\LMW[ RMMX[ RXML[ RJMPM RTMZM RJ[P[ RT[Z[",2125:" 22H[LMR[ RMMRY RXMR[P_NaLbKbJaK`La RJMPM RTMZM",2126:" 16I[WML[ RXMM[ RMMLQLMXM RL[X[XWW[",2127:" 40G^QMNNLPKRJUJXKZN[P[RZUWWTYPZM RQMONMPLRKUKXLZN[ RQMSMUNVPXXYZZ[ RSMTNUPWXXZZ[[[",2128:" 57G\\TFQGOIMMLPKTJZIb RTFRGPINMMPLTKZJb RTFVFXGYHYKXMWNTOPO RVFXHXKWMVNTO RPOTPVRWTWWVYUZR[P[NZMYLV RPOSPURVTVWUYTZR[",2129:" 28H\\IPKNMMOMQNROSRSVRZOb RJOLNPNRO RZMYPXRSYP^Nb RYMXPWRSY",2130:" 44I\\VNTMRMONMQLTLWMYNZP[R[UZWWXTXQWOSJRHRFSEUEWFYH RRMPNNQMTMXNZ RR[TZVWWTWPVNTKSISGTFVFYH",2131:" 32I[XPVNTMPMNNNPPRSS RPMONOPQRSS RSSNTLVLXMZP[S[UZWX RSSOTMVMXNZP[",2132:" 31I[TFRGQHQIRJUKZKZJWKSMPOMRLULWMYP[S]T_TaSbQbPa RULQONRMUMWNYP[",2133:" 32G]HQIOKMNMONOPNTL[ RMMNNNPMTK[ RNTPPRNTMVMXNYOYRXWUb RVMXOXRWWTb",2134:" 44F]GQHOJMMMNNNPMUMXNZO[ RLMMNMPLULXMZO[Q[SZUXWUXRYMYIXGVFTFRHRJSMUPWRZT RSZUWVUWRXMXIWGVF",2135:" 15LXRMPTOXOZP[S[UYVW RSMQTPXPZQ[",2136:" 29H\\NMJ[ ROMK[ RXMYNZNYMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW",2137:" 23H\\KFMFOGPHQJWXXZY[ RMFOHPJVXWZY[Z[ RRMJ[ RRMK[",2138:" 28F]MMGb RNMHb RMPLVLYN[P[RZTXVU RXMUXUZV[Y[[Y\\W RYMVXVZW[",2139:" 24H\\NML[ ROMNSMXL[ RYMXQVU RZMYPXRVUTWQYOZL[ RKMOM",2140:" 45IZTFRGQHQIRJUKXK RUKQLOMNONQPSSTVT RUKRLPMOOOQQSST RSTOUMVLXLZN\\S^T_TaRbPb RSTPUNVMXMZO\\S^",2141:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2142:" 22G]PNL[ RPNM[ RVNV[ RVNW[ RIPKNNM[M RIPKONN[N",2143:" 31H[LVMYNZP[R[UZWWXTXQWOVNTMRMONMQLTHb RR[TZVWWTWPVN RRMPNNQMTIb",2144:" 35H][MQMNNLQKTKWLYMZO[Q[TZVWWTWQVOUNSM RQMONMQLTLXMZ RQ[SZUWVTVPUN RUN[N",2145:" 16H\\SNP[ RSNQ[ RJPLNOMZM RJPLOONZN",2146:" 31H\\IQJOLMOMPNPPNVNYP[ RNMONOPMVMYNZP[Q[TZVXXUYRYOXMWNXOYR RXUYO",2147:" 37G]ONMOKQJTJWKYLZN[Q[TZWXYUZRZOXMVMTORSPXMb RJWLYNZQZTYWWYU RZOXNVNTPRSPYNb",2148:" 23I[KMMMONPPU_VaWb RMMNNOPT_UaWbYb RZMYOWRM]K`Jb",2149:" 34F]UFOb RVFNb RGQHOJMMMNNNPMUMXOZRZTYWVYS RLMMNMPLULXMZO[R[TZVXXUYS[M",2150:" 44F]JQLOONNMLNJQITIWJZK[M[OZQWRT RIWJYKZMZOYQW RQTQWRZS[U[WZYWZTZQYNXMWNYOZQ RQWRYSZUZWYYW",2151:" 39H]XMVTUXUZV[Y[[Y\\W RYMWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2152:" 36H[PFLSLVMYNZ RQFMS RMSNPPNRMTMVNWOXQXTWWUZR[P[NZMWMS RVNWPWTVWTZR[ RMFQF",2153:" 25I[WPWQXQXPWNUMRMONMQLTLWMYNZP[R[UZWW RRMPNNQMTMXNZ",2154:" 42H]ZFVTUXUZV[Y[[Y\\W R[FWTVXVZW[ RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RWF[F",2155:" 26I[MVQUTTWRXPWNUMRMONMQLTLWMYNZP[R[UZWX RRMPNNQMTMXNZ",2156:" 35KZZGYHZI[H[GZFXFVGUHTJSMP[O_Na RXFVHUJTNRWQ[P^O`NaLbJbIaI`J_K`Ja ROMYM",2157:" 43H\\YMU[T^RaObLbJaI`I_J^K_J` RXMT[S^QaOb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ",2158:" 31H]PFJ[ RQFK[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W RMFQF",2159:" 26LYUFTGUHVGUF RMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2160:" 32LYVFUGVHWGVF RNQOOQMTMUNUQR[Q^P`OaMbKbJaJ`K_L`Ka RSMTNTQQ[P^O`Mb",2161:" 34H\\PFJ[ RQFK[ RXNWOXPYOYNXMWMUNQROSMS ROSQTSZT[ ROSPTRZS[U[WZYW RMFQF",2162:" 18MYUFQTPXPZQ[T[VYWW RVFRTQXQZR[ RRFVF",2163:" 52AbBQCOEMHMINIPHTF[ RGMHNHPGTE[ RHTJPLNNMPMRNSOSQP[ RPMRORQO[ RRTTPVNXMZM\\N]O]Q[W[Z\\[ RZM\\O\\QZWZZ[[^[`YaW",2164:" 37F]GQHOJMMMNNNPMTK[ RLMMNMPLTJ[ RMTOPQNSMUMWNXOXQVWVZW[ RUMWOWQUWUZV[Y[[Y\\W",2165:" 32I[RMONMQLTLWMYNZP[R[UZWWXTXQWOVNTMRM RRMPNNQMTMXNZ RR[TZVWWTWPVN",2166:" 42G\\HQIOKMNMONOPNTJb RMMNNNPMTIb RNTOQQNSMUMWNXOYQYTXWVZS[Q[OZNWNT RWNXPXTWWUZS[ RFbMb",2167:" 33H\\XMRb RYMSb RVTVQUNSMQMNNLQKTKWLYMZO[Q[SZUWVT RQMONMQLTLXMZ RObVb",2168:" 26IZJQKOMMPMQNQPPTN[ ROMPNPPOTM[ RPTRPTNVMXMYNYOXPWOXN",2169:" 28J[XOXPYPYOXNUMRMONNONQORVVWW RNPOQVUWVWYVZS[P[MZLYLXMXMY",2170:" 18KYTFPTOXOZP[S[UYVW RUFQTPXPZQ[ RNMWM",2171:" 37F]GQHOJMMMNNNQLWLYN[ RLMMNMQKWKYLZN[P[RZTXVT RXMVTUXUZV[Y[[Y\\W RYMWTVXVZW[",2172:" 26H\\IQJOLMOMPNPQNWNYP[ RNMONOQMWMYNZP[Q[TZVXXUYQYMXMYO",2173:" 41C`DQEOGMJMKNKQIWIYK[ RIMJNJQHWHYIZK[M[OZQXRV RTMRVRYSZU[W[YZ[X\\V]R]M\\M]O RUMSVSYU[",2174:" 42H\\KQMNOMRMSOSR RQMRORRQVPXNZL[K[JZJYKXLYKZ RQVQYR[U[WZYW RYNXOYPZOZNYMXMVNTPSRRVRYS[",2175:" 41G\\HQIOKMNMONOQMWMYO[ RMMNNNQLWLYMZO[Q[SZUXWT RZMV[U^SaPbMbKaJ`J_K^L_K` RYMU[T^RaPb",2176:" 31H\\YMXOVQNWLYK[ RLQMOOMRMVO RMOONRNVOXO RLYNYRZUZWY RNYR[U[WYXW",2177:" 43G^VGUHVIWHWGUFRFOGMILLL[ RRFPGNIMLM[ R\\G[H\\I]H]G\\FZFXGWIW[ RZFYGXIX[ RIM[M RI[P[ RT[[[",2178:" 33G]WGVHWIXHWGUFRFOGMILLL[ RRFPGNIMLM[ RWMW[ RXMX[ RIMXM RI[P[ RT[[[",2179:" 35G]VGUHVIWHWGUF RXFRFOGMILLL[ RRFPGNIMLM[ RWHW[ RXFX[ RIMWM RI[P[ RT[[[",2180:" 54BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R]G\\H]I^H]G[FXFUGSIRLR[ RXFVGTISLS[ R]M][ R^M^[ RDM^M RD[K[ RO[V[ RZ[a[",2181:" 56BcRGQHRISHRGPFMFJGHIGLG[ RMFKGIIHLH[ R\\G[H\\I]H]G[F R^FXFUGSIRLR[ RXFVGTISLS[ R]H][ R^F^[ RDM]M RD[K[ RO[V[ RZ[a[",2182:" 12MXRMR[ RSMS[ ROMSM RO[V[",2184:" 25IZWNUMRMONMPLSLVMYNZQ[T[VZ RRMPNNPMSMVNYOZQ[ RMTUT",2185:" 43I\\TFQGOJNLMOLTLXMZO[Q[TZVWWUXRYMYIXGVFTF RTFRGPJOLNOMTMXNZO[ RQ[SZUWVUWRXMXIWGVF RNPWP",2186:" 42G]UFOb RVFNb RQMMNKPJSJVKXMZP[S[WZYXZUZRYPWNTMQM RQMNNLPKSKVLXNZP[ RS[VZXXYUYRXPVNTM",2187:" 27I[TMVNXPXOWNTMQMNNMOLQLSMUOWSZ RQMONNOMQMSNUSZT\\T^S_Q_",2190:" 45G]LMKNJPJRKUOYP[ RJRKTOXP[P]O`MbLbKaJ_J\\KXMTOQRNTMVMYNZPZTYXWZU[T[SZSXTWUXTY RVMXNYPYTXXWZ",2191:" 69E_YGXHYIZHYGWFTFQGOINKMNLRJ[I_Ha RTFRGPIOKNNLWK[J^I`HaFbDbCaC`D_E`Da R_G^H_I`H`G_F]F[GZHYJXMU[T_Sa R]F[HZJYNWWV[U^T`SaQbObNaN`O_P`Oa RIM^M",2192:" 52F^[GZH[I\\H[GXFUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea RYMWTVXVZW[Z[\\Y]W RZMXTWXWZX[ RJMZM",2193:" 54F^YGXHYIZHZGXF R\\FUFRGPIOKNNMRK[J_Ia RUFSGQIPKONMWL[K^J`IaGbEbDaD`E_F`Ea R[FWTVXVZW[Z[\\Y]W R\\FXTWXWZX[ RJMYM",2194:" 86@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R`G_H`IaH`G]FZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R^M\\T[X[Z\\[_[aYbW R_M]T\\X\\Z][ RDM_M",2195:" 88@cTGSHTIUHTGRFOFLGJIIKHNGRE[D_Ca ROFMGKIJKINGWF[E^D`CaAb?b>a>`?_@`?a R^G]H^I_H_G]F RaFZFWGUITKSNRRP[O_Na RZFXGVIUKTNRWQ[P^O`NaLbJbIaI`J_K`Ja R`F\\T[X[Z\\[_[aYbW RaF]T\\X\\Z][ RDM^M",2196:" 20LYMQNOPMSMTNTQRWRZS[ RRMSNSQQWQZR[U[WYXW",2200:" 40H\\QFNGLJKOKRLWNZQ[S[VZXWYRYOXJVGSFQF RQFOGNHMJLOLRMWNYOZQ[ RS[UZVYWWXRXOWJVHUGSF",2201:" 11H\\NJPISFS[ RRGR[ RN[W[",2202:" 45H\\LJMKLLKKKJLHMGPFTFWGXHYJYLXNUPPRNSLUKXK[ RTFVGWHXJXLWNTPPR RKYLXNXSZVZXYYX RNXS[W[XZYXYV",2203:" 47H\\LJMKLLKKKJLHMGPFTFWGXIXLWNTOQO RTFVGWIWLVNTO RTOVPXRYTYWXYWZT[P[MZLYKWKVLUMVLW RWQXTXWWYVZT[",2204:" 13H\\THT[ RUFU[ RUFJUZU RQ[X[",2205:" 39H\\MFKP RKPMNPMSMVNXPYSYUXXVZS[P[MZLYKWKVLUMVLW RSMUNWPXSXUWXUZS[ RMFWF RMGRGWF",2206:" 48H\\WIVJWKXJXIWGUFRFOGMILKKOKULXNZQ[S[VZXXYUYTXQVOSNRNOOMQLT RRFPGNIMKLOLUMXOZQ[ RS[UZWXXUXTWQUOSN",2207:" 31H\\KFKL RKJLHNFPFUIWIXHYF RLHNGPGUI RYFYIXLTQSSRVR[ RXLSQRSQVQ[",2208:" 63H\\PFMGLILLMNPOTOWNXLXIWGTFPF RPFNGMIMLNNPO RTOVNWLWIVGTF RPOMPLQKSKWLYMZP[T[WZXYYWYSXQWPTO RPONPMQLSLWMYNZP[ RT[VZWYXWXSWQVPTO",2209:" 48H\\XMWPURRSQSNRLPKMKLLINGQFSFVGXIYLYRXVWXUZR[O[MZLXLWMVNWMX RQSORMPLMLLMIOGQF RSFUGWIXLXRWVVXTZR[",2210:" 6MWRYQZR[SZRY",2211:" 8MWR[QZRYSZS\\R^Q_",2212:" 12MWRMQNROSNRM RRYQZR[SZRY",2213:" 14MWRMQNROSNRM RR[QZRYSZS\\R^Q_",2214:" 15MWRFQHRTSHRF RRHRN RRYQZR[SZRY",2215:" 32I[MJNKMLLKLJMHNGPFSFVGWHXJXLWNVORQRT RSFUGVHWJWLVNTP RRYQZR[SZRY",2216:" 6NVRFQM RSFQM",2217:" 12JZNFMM ROFMM RVFUM RWFUM",2218:" 14KYQFOGNINKOMQNSNUMVKVIUGSFQF",2219:" 9JZRFRR RMIWO RWIMO",2220:" 3G][BIb",2221:" 20KYVBTDRGPKOPOTPYR]T`Vb RTDRHQKPPPTQYR\\T`",2222:" 20KYNBPDRGTKUPUTTYR]P`Nb RPDRHSKTPTTSYR\\P`",2223:" 12KYOBOb RPBPb ROBVB RObVb",2224:" 12KYTBTb RUBUb RNBUB RNbUb",2225:" 40KYTBRCQDPFPHQJRKSMSOQQ RRCQEQGRISJTLTNSPORSTTVTXSZR[Q]Q_Ra RQSSUSWRYQZP\\P^Q`RaTb",2226:" 40KYPBRCSDTFTHSJRKQMQOSQ RRCSESGRIQJPLPNQPURQTPVPXQZR[S]S_Ra RSSQUQWRYSZT\\T^S`RaPb",2227:" 4KYUBNRUb",2228:" 4KYOBVROb",2229:" 3NVRBRb",2230:" 6KYOBOb RUBUb",2231:" 3E_IR[R",2232:" 6E_RIR[ RIR[R",2233:" 9F^RJR[ RJRZR RJ[Z[",2234:" 9F^RJR[ RJJZJ RJRZR",2235:" 6G]KKYY RYKKY",2236:" 6MWRQQRRSSRRQ",2237:" 15E_RIQJRKSJRI RIR[R RRYQZR[SZRY",2238:" 6E_IO[O RIU[U",2239:" 9E_YIK[ RIO[O RIU[U",2240:" 9E_IM[M RIR[R RIW[W",2241:" 4F^ZIJRZ[",2242:" 4F^JIZRJ[",2243:" 10F^ZFJMZT RJVZV RJ[Z[",2244:" 10F^JFZMJT RJVZV RJ[Z[",2245:" 21F_[WYWWVUTRPQOONMNKOJQJSKUMVOVQURTUPWNYM[M",2246:" 24F^IUISJPLONOPPTSVTXTZS[Q RISJQLPNPPQTTVUXUZT[Q[O",2247:" 8G]JTROZT RJTRPZT",2248:" 7LXTFOL RTFUGOL",2249:" 7LXPFUL RPFOGUL",2250:" 18H\\KFLHNJQKSKVJXHYF RKFLINKQLSLVKXIYF",2251:" 8MWRHQGRFSGSIRKQL",2252:" 8MWSFRGQIQKRLSKRJ",2253:" 8MWRHSGRFQGQIRKSL",2254:" 8MWQFRGSISKRLQKRJ",2255:" 10E[HMLMRY RKMR[ R[BR[",2256:" 13F^ZJSJOKMLKNJQJSKVMXOYSZZZ",2257:" 13F^JJJQKULWNYQZSZVYXWYUZQZJ",2258:" 13F^JJQJUKWLYNZQZSYVWXUYQZJZ",2259:" 13F^JZJSKOLMNKQJSJVKXMYOZSZZ",2260:" 16F^ZJSJOKMLKNJQJSKVMXOYSZZZ RJRVR",2261:" 11E_XP[RXT RUMZRUW RIRZR",2262:" 11JZPLRITL RMORJWO RRJR[",2263:" 11E_LPIRLT ROMJROW RJR[R",2264:" 11JZPXR[TX RMURZWU RRIRZ",2265:" 44I\\XRWOVNTMRMONMQLTLWMYNZP[R[UZWXXUYPYKXHWGUFRFPGOHOIPIPH RRMPNNQMTMXNZ RR[TZVXWUXPXKWHUF",2266:" 15H\\JFR[ RKFRY RZFR[ RJFZF RKGYG",2267:" 10AbDMIMRY RHNR[ Rb:R[",2268:" 32F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia",2269:" 50F^[CZD[E\\D\\C[BYBWCUETGSJRNPZO^N` RVDUFTJRVQZP]O_MaKbIbHaH`I_J`Ia RQKNLLNKQKSLVNXQYSYVXXVYSYQXNVLSKQK",2270:" 26F_\\S[UYVWVUUTTQPPONNLNJOIQISJULVNVPUQTTPUOWNYN[O\\Q\\S",2271:" 32F^[FI[ RNFPHPJOLMMKMIKIIJGLFNFPGSHVHYG[F RWTUUTWTYV[X[ZZ[X[VYTWT",2272:" 49F_[NZO[P\\O\\N[MZMYNXPVUTXRZP[M[JZIXIUJSPORMSKSIRGPFNGMIMKNNPQUXWZZ[[[\\Z\\Y RM[KZJXJUKSMQ RMKNMVXXZZ[",2273:" 56E`WNVLTKQKOLNMMPMSNUPVSVUUVS RQKOMNPNSOUPV RWKVSVUXVZV\\T]Q]O\\L[JYHWGTFQFNGLHJJILHOHRIUJWLYNZQ[T[WZYYZX RXKWSWUXV",2274:" 42H\\PBP_ RTBT_ RXIWJXKYJYIWGTFPFMGKIKKLMMNOOUQWRYT RKKMMONUPWQXRYTYXWZT[P[MZKXKWLVMWLX",2275:" 12H]SFLb RYFRb RLQZQ RKWYW",2276:" 46JZUITJUKVJVIUGSFQFOGNINKOMQOVR ROMTPVRWTWVVXTZ RPNNPMRMTNVPXU[ RNVSYU[V]V_UaSbQbOaN_N^O]P^O_",2277:" 30JZRFQHRJSHRF RRFRb RRQQTRbSTRQ RLMNNPMNLLM RLMXM RTMVNXMVLTM",2278:" 56JZRFQHRJSHRF RRFRT RRPQRSVRXQVSRRP RRTRb RR^Q`RbS`R^ RLMNNPMNLLM RLMXM RTMVNXMVLTM RL[N\\P[NZL[ RL[X[ RT[V\\X[VZT[",2279:" 12I\\XFX[ RKFXF RPPXP RK[X[",2281:" 38E`QFNGKIILHOHRIUKXNZQ[T[WZZX\\U]R]O\\LZIWGTFQF RROQPQQRRSRTQTPSORO RRPRQSQSPRP",2282:" 45J[PFNGOIQJ RPFOGOI RUFWGVITJ RUFVGVI RQJOKNLMNMQNSOTQUTUVTWSXQXNWLVKTJQJ RRUR[ RSUS[ RNXWX",2283:" 27I\\RFOGMILLLMMPORRSSSVRXPYMYLXIVGSFRF RRSR[ RSSS[ RNWWW",2284:" 28D`PFMGJIHLGOGSHVJYM[P\\T\\W[ZY\\V]S]O\\LZIWGTFPF RRFR\\ RGQ]Q",2285:" 31G`PMMNKPJSJTKWMYPZQZTYVWWTWSVPTNQMPM R]GWG[HUN R]G]M\\IVO R\\HVN",2286:" 28F\\IIJGLFOFQGRIRLQOPQNSKU ROFPGQIQMPPNS RVFT[ RWFS[ RKUYU",2287:" 30I\\MFMU RNFMQ RMQNOONQMTMWNXPXRWTUV RTMVNWPWRTXTZU[W[YY RKFNF",2288:" 44I\\RNOOMQLTLUMXOZR[S[VZXXYUYTXQVOSNRN RRHNJRFRN RSHWJSFSN RRSQTQURVSVTUTTSSRS RRTRUSUSTRT",2289:" 37G^QHRFR[ RTHSFS[ RJHKFKMLPNRQSRS RMHLFLNMQ R[HZFZMYPWRTSSS RXHYFYNXQ RNWWW",2290:" 31G]LFL[ RMFM[ RIFUFXGYHZJZMYOXPUQMQ RUFWGXHYJYMXOWPUQ RI[Y[YVX[",2291:" 24H[YGUGQHNJLMKPKSLVNYQ[U\\Y\\ RYGVHSJQMPPPSQVSYV[Y\\",2292:" 27F_OQMQKRJSIUIWJYKZM[O[QZRYSWSURSQROQ RSHPQ RZJRR R\\QST",2293:" 12H\\OKUY RUKOY RKOYU RYOKU",2294:" 48F^NVLUKUIVHXHYI[K\\L\\N[OYOXNVKRJOJMKJMHPGTGWHYJZMZOYRVVUXUYV[X\\Y\\[[\\Y\\X[VYUXUVV RJMKKMIPHTHWIYKZM",2295:" 48F^NMLNKNIMHKHJIHKGLGNHOJOKNMKQJTJVKYM[P\\T\\W[YYZVZTYQVMUKUJVHXGYG[H\\J\\K[MYNXNVM RJVKXMZP[T[WZYXZV",2301:" 40F_JMILIJJHLGNGPHQIRKSP RIJKHMHOIPJQLRPR[ R[M\\L\\J[HYGWGUHTISKRP R\\JZHXHVIUJTLSPS[",2302:" 51F^IGJKKMMOPPTPWOYMZK[G RIGJJKLMNPOTOWNYLZJ[G RPONPMQLSLVMXOZQ[S[UZWXXVXSWQVPTO RPPNQMSMVNY RVYWVWSVQTP",2303:" 30F^MJMV RNKNU RVKVU RWJWV RIGKIMJPKTKWJYI[G RIYKWMVPUTUWVYW[Y",2304:" 48F^[ILIJJILINJPLQNQPPQNQLPJ[J RIMJOKPMQ RQMPKOJMI RIXXXZW[U[SZQXPVPTQSSSUTWIW R[TZRYQWP RSTTVUWWX",2305:" 48F]OUMTLTJUIWIXJZL[M[OZPXPWOUJPINIKJILHOGSGWHYJZLZOYRVUUWUYV[X[YZZX RMSKPJNJKKILH RSGVHXJYLYOXRVU",2306:" 48G_HKKHMKMV RJILLLV RMKPHRKRU ROIQLQU RRKUHWKW[ RTIVLV[ RWKZH[J\\M\\P[SZUXWUYP[ RYIZJ[M[PZSYUWWTYP[",2307:" 41F^ISMSLRKOKMLJNHQGSGVHXJYMYOXRWS[S RITOTMRLOLMMJOHQG RSGUHWJXMXOWRUT[T RKXYX RKYYY",2308:" 30F_GLJIMLMX RIJLMLX RMLPISLSX ROJRMRX RSLVIYLYW[Y RUJXMXXZZ]W",2309:" 33G]ZIJY RZIWJQJ RXKUKQJ RZIYLYR RXKXNYR RQRJR RPSMSJR RQRQY RPSPVQY",2310:" 33F^HOJKOU RJMOWRPWPZO[M[KZIXHWHUITKTMUPVRWUWXUZ RWHVIUKUMWQXTXWWYUZ",2311:" 36F^IOLLPN RKMOORLUN RQMTOWLYN RVMXO[L RIULRPT RKSOURRUT RQSTUWRYT RVSXU[R",2312:" 48F^JHNJPLQOQRPUNWJY RJHMIOJQLRO RRRQUOWMXJY RZHWIUJSLRO RRRSUUWWXZY RZHVJTLSOSRTUVWZY RIP[P RIQ[Q",2317:" 12NVQQQSSSSQQQ RQQSS RSQQS",2318:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2319:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2320:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2321:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2322:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2323:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2324:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2325:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2326:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2327:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2328:" 49JZMLWX RMLONQOTOVNWMWKUKUMTO RONTO RQOWM RVKVN RULWL RWXUVSUPUNVMWMYOYOWPU RUVPU RSUMW RNVNY RMXOX",2329:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLWY",2330:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2331:"103EfNSOUQVSVUUVSVQUOSNQNOONPMSMVNYP[S\\V\\Y[[Y\\W]T]P\\MZJXIUHRHOIMJKLIOHSHXI]KaMcPeTfYf]e`cba RKLJNIRIXJ\\L`NbQdUeYe]d_cba RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU RaLaNcNcLaL RbLbN RaMcM RaVaXcXcVaV RbVbX RaWcW",2332:" 30D`H@Hd RM@Md RW@Wd R\\@\\d RMMWK RMNWL RMOWM RMWWU RMXWV RMYWW",2367:" 12NVQQQSSSSQQQ RQQSS RSQQS",2368:" 18JZMPQRTTVVWYW[V]U^ RMQST RMRPSTUVWWY",2369:" 18JZWKVMTOPQMR RSPMS RUFVGWIWKVNTPQRMT",2370:" 32H\\PMMNLOKQKSLUMVPWTWWVXUYSYQXOWNTMPM RMNLPLSMUNVPW RWVXTXQWOVNTM",2371:" 36H\\SMONLPKRKTLVNWQWUVXTYRYPXNVMSM RXNSM RVMQNLP RONKR RLVQW RNWSVXT RUVYR",2372:" 34J[SMPNNPMRMTNVPWRWUVWTXRXPWNUMSM ROPUM RNRVN RMTWO RNUXP ROVWR RPWVT",2373:" 18JZOGO^ RUFU] RMNWL RMOWM RMWWU RMXWV",2374:" 18JZNFNX RVLV^ RNNVL RNOVM RNWVU RNXVV",2375:" 25JZNBNW RNNQLTLVMWOWQVSSUQVNW RNNQMTMVN RUMVOVQUSSU",2376:" 18E_HIHL R\\I\\L RHI\\I RHJ\\J RHK\\K RHL\\L",2377:" 18JZMNMQ RWNWQ RMNWN RMOWO RMPWP RMQWQ",2378:" 36JZQCVMRTRU RULQS RTITKPRRUUY RW\\UYSXQXOYN[N]O_Ra RW\\UZSYOYO]P_Ra RSXPZN]",2379:" 26JZPOOMOKMKMMNNPOSOUNWL RNKNN RMLOL RMMSO RPOUN RWLSY",2380:" 86A^GfHfIeIdHcGcFdFfGhIiKiNhPfQdR`RUQ;Q4R/S-U,V,X-Y/Y3X6W8U;P?JCHEFHEJDNDREVGYJ[N\\R\\V[XZZW[T[PZMYKWITHPHMIKKJNJRKUMW RGdGeHeHdGd RU;Q?LCIFGIFKENERFVGXJ[ RR\\U[WZYWZTZPYMXKVITH",2381:" 89IjNQOOQNSNUOVQVSUUSVQVOUNTMQMNNKPISHWH[I^K`NaRaW`[_]]`ZcVfQiMk RWHZI]K_N`R`W_[^]\\`YcTgQi RPOTO ROPUP RNQVQ RNRVR RNSVS ROTUT RPUTU ReLeNgNgLeL RfLfN ReMgM ReVeXgXgVeV RfVfX ReWgW",2382:" 85D`H>Hf RI>If RM>Mf RQBSBSDQDQAR?T>W>Y?[A\\D\\I[LYNWOUOSNRLQNOQNROSQVRXSVUUWUYV[X\\[\\`[cYeWfTfReQcQ`S`SbQb RRBRD RQCSC RY?ZA[D[IZLYN RRLRNPQNRPSRVRX RYVZX[[[`ZcYe RR`Rb RQaSa",2401:" 21AcHBHb RIBIb R[B[b R\\B\\b RDB`B RDbMb RWb`b",2402:" 23BaGBQPFb RFBPP REBPQ REB\\B^I[B RGa\\a RFb\\b^[[b",2403:" 28I[X+U1R8P=OANFMNMVN^OcPgRlUsXy RU1S6Q":2242,"~":2246,"@":2273,"\\":804}[e]}var bi={SUB_SUP_SCALE:.75,SQRT_MAG_SCALE:.5,FRAC_SCALE:.85,LINE_SPACING:.5,FRAC_SPACING:.4};function b0e(e){e=e.replace(/\n/g," ");let t=0,n=[],r="";for(;t0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;u=e[f].bbox.y,e[l].text=="'"?e[l].bbox.y=u:(To(e[l],bi.SUB_SUP_SCALE,null,0,0),hn[e[f].text]&&hn[e[f].text].flags.big?e[l].bbox.y=u-e[l].bbox.h:e[f].text=="\\int"?e[l].bbox.y=u:e[l].bbox.y=u-e[l].bbox.h/2)}else if(e[l].text=="_"){let u=1,f=l;for(;f>0&&(e[f].text=="^"||e[f].text=="_"||e[f].text=="'");)f--;u=e[f].bbox.y+e[f].bbox.h,To(e[l],bi.SUB_SUP_SCALE,null,0,0),hn[e[f].text]&&hn[e[f].text].flags.big?e[l].bbox.y=u:e[f].text=="\\int"?e[l].bbox.y=u-e[l].bbox.h:e[l].bbox.y=u-e[l].bbox.h/2}function n(l,u,f,d,h){let p=l,m=h,A=1/0,x=-1/0;for(;d>0?p=0;){if(e[p].text==u)m++;else if(e[p].text==f){if(m--,m==0)break}else e[p].text=="^"||e[p].text=="_"||e[p].bbox&&(A=Math.min(A,e[p].bbox.y),x=Math.max(x,e[p].bbox.y+e[p].bbox.h));p+=d}return[A,x]}for(let l=0;ll.text=="&"||l.text=="\\\\"))return;let r=[],o=[],i=[];for(let l=0;l0&&(e.chld[R].text=="^"||e.chld[R].text=="_"||e.chld[R].text=="'");)R--;let y=hn[e.chld[R].text]&&hn[e.chld[R].text].flags.big;if(A.text=="'"){let g=R+1,S=0;for(;g1;w0e(e.chld,f);let p=zF(e.chld);e.text=="\\text"&&(p.x-=1,p.w+=2);for(let m=0;mr.bbox.w)u=u/Math.max(a.w,1)*r.bbox.w,u+=r.bbox.x;else{u=u/16*o;let d=(r.bbox.w-a.w/16*o)/2;u+=r.bbox.x+d}if(hn[r.text].flags.yfl)f=(f-a.ymin)/Math.max(a.ymax-a.ymin,1)*r.bbox.h,f+=r.bbox.y;else{if(f=f/16*o,i){let d=(a.ymax+a.ymin)/2;f-=d/16*o}f+=r.bbox.y+r.bbox.h/2}c.push([u,f])}t.push(c)}}else if(hn[r.text]&&hn[r.text].flags.txt||r.type=="char"){let a=r.bbox.x,s=!!(hn[r.text]&&hn[r.text].flags.txt);for(let c=Number(s);c16?h*=16/l.w:h+=(16-l.w)/2/16),h+=a,p+=r.bbox.y+r.bbox.h/2,f.push([h,p])}t.push(f)}r.mode=="tt"?a+=o:a+=l.w/16*o}}}return t}function Ba(e){return Math.round(e*100)/100}var L5=class{constructor(e){this._latex=e,this._tokens=b0e(e),this._tree=cx(this._tokens),JF(this._tree.chld),Ka(this._tree),L0e(this._tree),this._polylines=O0e(this._tree)}resolveScale(e){var t,n,r,o;if(e==null)return[16,16,16,16];let i=(t=e.SCALE_X)!=null?t:16,a=(n=e.SCALE_Y)!=null?n:16;if(e.MIN_CHAR_H!=null){let l=0;for(let f=0;f`;e.BG_COLOR&&(l+=``),l+='>endobj + 2 0 obj +<< /Type /Pages +/Kids [3 0 R] +/Count 1 +/MediaBox [0 0 ${a} ${s}] +>> +endobj + 3 0 obj +<< /Type /Page +/Parent 2 0 R +/Resources +<< /Font +<< /F1 +<< /Type /Font + /Subtype /Type1 +/BaseFont /Times-Roman +>> +>> +>> +/Contents [`,l="",u=4;for(let p=0;p> + stream + 1 j 1 J ${(t=e.STROKE_W)!=null?t:1} w +`;for(var f=0;f> +endobj +`,l+=` +trailer +<< /Root 1 0 R + /Size 0 + >>startxref + +%%EOF +`,c+l}boxes(e){e||(e={});let[t,n,r,o]=this.resolveScale(e),i=[];for(let a=0;a"},{latex:"="},{latex:"\\neq\\ne"},{latex:"\\leqq"},{latex:"\\geqq"},{latex:"\\leq"},{latex:"\\geq"},{latex:"\\propto"},{latex:"\\sim"},{latex:"\\equiv"},{latex:"\\dagger"},{latex:"\\ddagger"},{latex:"\\ell"},{latex:"\\#"},{latex:"\\$"},{latex:"\\&"},{latex:"\\%"},{latex:"\\langle\\rangle"},{latex:"()"},{latex:"[]"},{latex:"\\{\\}"},{latex:"||"},{latex:"\\|"},{latex:"\\exists"},{latex:"\\in"},{latex:"\\subset"},{latex:"\\supset"},{latex:"\\cup"},{latex:"\\cap"},{latex:"\\infty"},{latex:"\\partial"},{latex:"\\nabla"},{latex:"\\aleph"},{latex:"\\wp"},{latex:"\\therefore"},{latex:"\\mid"},{latex:"\\sum"},{latex:"\\prod"},{latex:"\\bigoplus"},{latex:"\\bigodot"},{latex:"\\int"},{latex:"\\oint"},{latex:"\\oplus"},{latex:"\\odot"},{latex:"\\perp"},{latex:"\\angle"},{latex:"\\triangle"},{latex:"\\Box"},{latex:"\\rightarrow"},{latex:"\\to"},{latex:"\\leftarrow"},{latex:"\\gets"},{latex:"\\circ"},{latex:"\\bigcirc"},{latex:"\\bullet"},{latex:"\\star"},{latex:"\\diamond"},{latex:"\\ast"},{latex:","},{latex:"."},{latex:";"},{latex:"!"}]},{type:"group",label:"组合",children:[{latex:"\\frac{a}{b}"},{latex:"\\frac{dx}{dx}"},{latex:"\\frac{\\partial a}{\\partial b}"},{latex:"\\sqrt{x}"},{latex:"\\sqrt[n]{x}"},{latex:"x^{n}"},{latex:"x_{n}"},{latex:"x_a^b"},{latex:"\\int_{a}^{b}"},{latex:"\\oint_a^b"},{latex:"\\lim_{a \\rightarrow b}"},{latex:"\\prod_a^b"},{latex:"\\sum_a^b"},{latex:"\\left(\\begin{array}a \\\\ b\\end{array}\\right)"},{latex:"\\begin{bmatrix}a & b \\\\ c & d \\end{bmatrix}"},{latex:"\\begin{cases}a & x = 0 \\\\ b & x > 0\\end{cases}"},{latex:"\\hat{a}"},{latex:"\\breve{a}"},{latex:"\\acute{a}"},{latex:"\\grave{a}"},{latex:"\\tilde{a}"},{latex:"\\bar{a}"},{latex:"\\vec{a}"},{latex:"\\underline{a}"},{latex:"\\overline{a}"},{latex:"\\widehat{ab}"},{latex:"\\overleftarrow{ab}"},{latex:"\\overrightarrow{ab}"}]},{type:"verbatim",label:"函数",children:[{latex:"\\log"},{latex:"\\ln"},{latex:"\\exp"},{latex:"\\mod"},{latex:"\\lim"},{latex:"\\sin"},{latex:"\\cos"},{latex:"\\tan"},{latex:"\\csc"},{latex:"\\sec"},{latex:"\\cot"},{latex:"\\sinh"},{latex:"\\cosh"},{latex:"\\tanh"},{latex:"\\csch"},{latex:"\\sech"},{latex:"\\coth"},{latex:"\\arcsin"},{latex:"\\arccos"},{latex:"\\arctan"},{latex:"\\arccsc"},{latex:"\\arcsec"},{latex:"\\arccot"}]},{type:"greek",label:"希腊字母",children:[{latex:"\\alpha"},{latex:"\\beta"},{latex:"\\gamma"},{latex:"\\delta"},{latex:"\\varepsilon"},{latex:"\\zeta"},{latex:"\\eta"},{latex:"\\vartheta"},{latex:"\\iota"},{latex:"\\kappa"},{latex:"\\lambda"},{latex:"\\mu"},{latex:"\\nu"},{latex:"\\xi"},{latex:"\\omicron"},{latex:"\\pi"},{latex:"\\rho"},{latex:"\\sigma"},{latex:"\\tau"},{latex:"\\upsilon"},{latex:"\\varphi"},{latex:"\\chi"},{latex:"\\psi"},{latex:"\\omega"},{latex:"\\epsilon"},{latex:"\\theta"},{latex:"\\phi"},{latex:"\\varsigma"},{latex:"\\Alpha"},{latex:"\\Beta"},{latex:"\\Gamma"},{latex:"\\Delta"},{latex:"\\Epsilon"},{latex:"\\Zeta"},{latex:"\\Eta"},{latex:"\\Theta"},{latex:"\\Iota"},{latex:"\\Kappa"},{latex:"\\Lambda"},{latex:"\\Mu"},{latex:"\\Nu"},{latex:"\\Xi"},{latex:"\\Omicron"},{latex:"\\Pi"},{latex:"\\Rho"},{latex:"\\Sigma"},{latex:"\\Tau"},{latex:"\\Upsilon"},{latex:"\\Phi"},{latex:"\\Chi"},{latex:"\\Psi"},{latex:"\\Omega"}]}],k0e=["width","height"],P0e=["transform"],N0e=["d"],C0e=Fe({__name:"FormulaContent",props:{latex:{},width:{},height:{}},setup(e){const t=e,n=ve({x:0,y:0,w:0,h:0}),r=ve("");Tt(()=>t.latex,()=>{const i=new L5(t.latex);r.value=i.pathd({}),n.value=i.box({})},{immediate:!0});const o=Se(()=>{const i=n.value.w+32,a=n.value.h+32;return i>t.width||a>t.height?i/a>t.width/t.height?t.width/i:t.height/a:1});return(i,a)=>(Q(),ee("svg",{class:"formula-content",overflow:"visible",width:n.value.w+32,height:n.value.h+32,stroke:"#000","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[Y("g",{transform:`scale(${o.value}, ${o.value}) translate(0,0) matrix(1,0,0,1,0,0)`,"transform-origin":"0 50%"},[Y("path",{d:r.value},null,8,N0e)],8,P0e)],8,k0e))}}),NT=Ee(C0e,[["__scopeId","data-v-fa1b116d"]]),I0e=["innerHTML"],F0e=Fe({__name:"SymbolContent",props:{latex:{}},setup(e){const t=e,n=Se(()=>new L5(t.latex).svg({SCALE_X:10,SCALE_Y:10}));return(r,o)=>(Q(),ee("div",{class:"symbol-content",innerHTML:n.value},null,8,I0e))}}),_0e=["disabled","value","rows","placeholder"],X0e=Fe({__name:"TextArea",props:{value:{},rows:{default:4},disabled:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value"],setup(e,{expose:t,emit:n}){const r=n,o=s=>{r("update:value",s.target.value)},i=ve();return t({focus:()=>{i.value&&i.value.focus()}}),(s,c)=>(Q(),ee("textarea",{class:qe(["textarea",{disabled:s.disabled,resizable:s.resizable}]),ref_key:"textareaRef",ref:i,disabled:s.disabled,value:s.value,rows:s.rows,placeholder:s.placeholder,onInput:c[0]||(c[0]=l=>o(l))},null,42,_0e))}}),E0e=Ee(X0e,[["__scopeId","data-v-7acfd65e"]]),W0e={class:"latex-editor"},V0e={class:"container"},U0e={class:"left"},Y0e={class:"input-area"},Q0e={class:"preview"},Z0e={key:0,class:"placeholder"},B0e={key:1,class:"preview-content"},D0e={class:"right"},K0e={class:"content"},H0e={key:0,class:"symbol"},G0e={class:"symbol-pool"},J0e=["onClick"],z0e={key:1,class:"formula"},$0e={class:"formula-title"},j0e=["onClick"],q0e={class:"footer"},ehe=Fe({__name:"index",props:{value:{default:""}},emits:["update","close"],setup(e,{emit:t}){const n=[{label:"常用符号",key:"symbol"},{label:"预置公式",key:"formula"}],r=e,o=t,i=T0e,a=$y.map(p=>({label:p.label,key:p.type})),s=ve(""),c=ve("symbol"),l=ve(),u=ve($y[0].type),f=Se(()=>{const p=$y.find(m=>m.type===u.value);return(p==null?void 0:p.children)||[]});Gt(()=>{r.value&&(s.value=r.value)});const d=()=>{if(!s.value)return On.error("公式不能为空");const p=new L5(s.value),m=p.pathd({}),A=p.box({});o("update",{latex:s.value,path:m,w:A.w+32,h:A.h+32})},h=p=>{l.value&&(l.value.focus(),document.execCommand("insertText",!1,p))};return(p,m)=>(Q(),ee("div",W0e,[Y("div",V0e,[Y("div",U0e,[Y("div",Y0e,[w(E0e,{value:s.value,"onUpdate:value":m[0]||(m[0]=A=>s.value=A),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:l},null,8,["value"])]),Y("div",Q0e,[s.value?(Q(),ee("div",B0e,[w(NT,{width:518,height:138,latex:s.value},null,8,["latex"])])):(Q(),ee("div",Z0e,"公式预览"))])]),Y("div",D0e,[w(Rs,{tabs:n,value:c.value,"onUpdate:value":m[1]||(m[1]=A=>c.value=A),card:""},null,8,["value"]),Y("div",K0e,[c.value==="symbol"?(Q(),ee("div",H0e,[w(Rs,{tabs:H(a),value:u.value,"onUpdate:value":m[2]||(m[2]=A=>u.value=A),spaceBetween:"",tabsStyle:{margin:"10px 10px 0"}},null,8,["tabs","value"]),Y("div",G0e,[(Q(!0),ee(We,null,lt(f.value,A=>(Q(),ee("div",{class:"symbol-item",key:A.latex,onClick:x=>h(A.latex)},[w(F0e,{latex:A.latex},null,8,["latex"])],8,J0e))),128))])])):(Q(),ee("div",z0e,[(Q(!0),ee(We,null,lt(H(i),A=>(Q(),ee("div",{class:"formula-item",key:A.label},[Y("div",$0e,St(A.label),1),Y("div",{class:"formula-item-content",onClick:x=>s.value=A.latex},[w(NT,{width:236,height:60,latex:A.latex},null,8,["latex"])],8,j0e)]))),128))]))])])]),Y("div",q0e,[w(et,{class:"btn",onClick:m[3]||(m[3]=A=>o("close"))},{default:ne(()=>[Ve("取消")]),_:1}),w(et,{class:"btn",type:"primary",onClick:m[4]||(m[4]=A=>d())},{default:ne(()=>[Ve("确定")]),_:1})])]))}}),$F=Ee(ehe,[["__scopeId","data-v-44075c46"]]),the={class:"canvas-tool"},nhe={class:"left-handler"},rhe={class:"add-element-handler"},ohe={class:"handler-item group-btn"},ihe={class:"right-handler"},ahe={class:"text"},she=Fe({__name:"index",setup(e){const t=dt(),{creatingElement:n,creatingCustomShape:r,showSelectPanel:o,showSearchPanel:i}=Xe(t),{canUndo:a,canRedo:s}=Xe(Dg()),{redo:c,undo:l}=Jt(),{scaleCanvas:u,setCanvasScalePercentage:f,resetCanvas:d,canvasScalePercentage:h}=Xb(),p=[200,150,100,80,50],m=ve(!1),A=oe=>{f(oe),m.value=!1},{createImageElement:x,createChartElement:R,createTableElement:y,createLatexElement:g,createVideoElement:S,createAudioElement:O}=qu(),T=oe=>{const W=oe[0];W&&$u(W).then(Z=>x(Z))},M=ve(!1),L=ve(!1),k=ve(!1),F=ve(!1),N=ve(!1),E=ve(!1),C=ve(!1),_=(oe=!1)=>{t.setCreatingElement({type:"text",vertical:oe})},I=oe=>{oe.title==="任意多边形"?t.setCreatingCustomShapeState(!0):t.setCreatingElement({type:"shape",data:oe}),M.value=!1},V=oe=>{t.setCreatingElement({type:"line",data:oe}),L.value=!1},B=()=>{t.setSelectPanelState(!o.value)},G=()=>{t.setSearchPanelState(!i.value)};return(oe,W)=>{var le;const Z=xe("IconBack"),K=xe("IconNext"),U=xe("IconMoveOne"),z=xe("IconSearch"),fe=xe("IconFontSize"),se=xe("IconTextRotationNone"),ie=xe("IconTextRotationDown"),me=xe("IconDown"),Ae=xe("IconPicture"),ye=xe("IconGraphicDesign"),J=xe("IconConnection"),ae=xe("IconChartProportion"),X=xe("IconInsertTable"),$=xe("IconFormula"),ue=xe("IconVideoTwo"),j=xe("IconMinus"),q=xe("IconPlus"),re=xe("IconFullScreen"),pe=Tn("tooltip");return Q(),ee("div",the,[Y("div",nhe,[Qe(w(Z,{class:qe(["handler-item",{disable:!H(a)}]),onClick:W[0]||(W[0]=ce=>H(l)())},null,8,["class"]),[[pe,"撤销"]]),Qe(w(K,{class:qe(["handler-item",{disable:!H(s)}]),onClick:W[1]||(W[1]=ce=>H(c)())},null,8,["class"]),[[pe,"重做"]]),w(Ut,{type:"vertical",style:{height:"20px"}}),Qe(w(U,{class:qe(["handler-item",{active:H(o)}]),onClick:W[2]||(W[2]=ce=>B())},null,8,["class"]),[[pe,"选择窗格"]]),Qe(w(z,{class:qe(["handler-item",{active:H(i)}]),onClick:W[3]||(W[3]=ce=>G())},null,8,["class"]),[[pe,"查找/替换"]])]),Y("div",rhe,[Qe((Q(),ee("div",ohe,[w(fe,{class:qe(["icon",{active:((le=H(n))==null?void 0:le.type)==="text"}]),onClick:W[4]||(W[4]=ce=>_())},null,8,["class"]),w(Pt,{trigger:"click",value:C.value,"onUpdate:value":W[7]||(W[7]=ce=>C.value=ce),style:{height:"100%"}},{content:ne(()=>[w(Go,{center:"",onClick:W[5]||(W[5]=()=>{_(),C.value=!1})},{default:ne(()=>[w(se),Ve(" 横向文本框")]),_:1}),w(Go,{center:"",onClick:W[6]||(W[6]=()=>{_(!0),C.value=!1})},{default:ne(()=>[w(ie),Ve(" 竖向文本框")]),_:1})]),default:ne(()=>[w(me,{class:"arrow"})]),_:1},8,["value"])])),[[pe,"插入文字"]]),w(Wu,{onChange:W[8]||(W[8]=ce=>T(ce))},{default:ne(()=>[Qe(w(Ae,{class:"handler-item"},null,512),[[pe,"插入图片"]])]),_:1}),w(Pt,{trigger:"click",value:M.value,"onUpdate:value":W[10]||(W[10]=ce=>M.value=ce)},{content:ne(()=>[w(Ide,{onSelect:W[9]||(W[9]=ce=>I(ce))})]),default:ne(()=>{var ce;return[Qe(w(ye,{class:qe(["handler-item",{active:H(r)||((ce=H(n))==null?void 0:ce.type)==="shape"}])},null,8,["class"]),[[pe,"插入形状"]])]}),_:1},8,["value"]),w(Pt,{trigger:"click",value:L.value,"onUpdate:value":W[12]||(W[12]=ce=>L.value=ce)},{content:ne(()=>[w(Qde,{onSelect:W[11]||(W[11]=ce=>V(ce))})]),default:ne(()=>{var ce;return[Qe(w(J,{class:qe(["handler-item",{active:((ce=H(n))==null?void 0:ce.type)==="line"}])},null,8,["class"]),[[pe,"插入线条"]])]}),_:1},8,["value"]),w(Pt,{trigger:"click",value:k.value,"onUpdate:value":W[14]||(W[14]=ce=>k.value=ce)},{content:ne(()=>[w(Kde,{onSelect:W[13]||(W[13]=ce=>{H(R)(ce),k.value=!1})})]),default:ne(()=>[Qe(w(ae,{class:"handler-item"},null,512),[[pe,"插入图表"]])]),_:1},8,["value"]),w(Pt,{trigger:"click",value:F.value,"onUpdate:value":W[17]||(W[17]=ce=>F.value=ce)},{content:ne(()=>[w(p0e,{onClose:W[15]||(W[15]=ce=>F.value=!1),onInsert:W[16]||(W[16]=({row:ce,col:be})=>{H(y)(ce,be),F.value=!1})})]),default:ne(()=>[Qe(w(X,{class:"handler-item"},null,512),[[pe,"插入表格"]])]),_:1},8,["value"]),Qe(w($,{class:"handler-item",onClick:W[18]||(W[18]=ce=>E.value=!0)},null,512),[[pe,"插入公式"]]),w(Pt,{trigger:"click",value:N.value,"onUpdate:value":W[22]||(W[22]=ce=>N.value=ce)},{content:ne(()=>[w(R0e,{onClose:W[19]||(W[19]=ce=>N.value=!1),onInsertVideo:W[20]||(W[20]=ce=>{H(S)(ce),N.value=!1}),onInsertAudio:W[21]||(W[21]=ce=>{H(O)(ce),N.value=!1})})]),default:ne(()=>[Qe(w(ue,{class:"handler-item"},null,512),[[pe,"插入音视频"]])]),_:1},8,["value"])]),Y("div",ihe,[w(j,{class:"handler-item viewport-size",onClick:W[23]||(W[23]=ce=>H(u)("-"))}),w(Pt,{trigger:"click",value:m.value,"onUpdate:value":W[24]||(W[24]=ce=>m.value=ce)},{content:ne(()=>[(Q(),ee(We,null,lt(p,ce=>w(Go,{center:"",key:ce,onClick:be=>A(ce)},{default:ne(()=>[Ve(St(ce)+"%",1)]),_:2},1032,["onClick"])),64))]),default:ne(()=>[Y("span",ahe,St(H(h)),1)]),_:1},8,["value"]),w(q,{class:"handler-item viewport-size",onClick:W[25]||(W[25]=ce=>H(u)("+"))}),Qe(w(re,{class:"handler-item viewport-size-adaptation",onClick:W[26]||(W[26]=ce=>H(d)())},null,512),[[pe,"适应屏幕"]])]),w(Dp,{visible:E.value,"onUpdate:visible":W[29]||(W[29]=ce=>E.value=ce),width:880},{default:ne(()=>[w($F,{onClose:W[27]||(W[27]=ce=>E.value=!1),onUpdate:W[28]||(W[28]=ce=>{H(g)(ce),E.value=!1})})]),_:1},8,["visible"])])}}}),lhe=Ee(she,[["__scopeId","data-v-ce7e5a5b"]]),Kp=()=>{const{slides:e}=Xe(ut()),t=ve(null),n=ve(50),r=()=>{e.value.length>n.value?t.value=setTimeout(()=>{n.value=n.value+20,r()},600):n.value=9999};return Gt(r),Pn(()=>{t.value&&clearTimeout(t.value)}),{slidesLoadLimit:n}},che={class:"layout-pool"},uhe=["onClick"],fhe=Fe({__name:"LayoutPool",emits:["select"],setup(e,{emit:t}){const n=t,{layouts:r}=Xe(ut()),o=i=>{n("select",i)};return(i,a)=>(Q(),ee("div",che,[(Q(!0),ee(We,null,lt(H(r),s=>(Q(),ee("div",{class:"layout-item",key:s.id,onClick:c=>o(s)},[w(_a,{class:"thumbnail",slide:s,size:180},null,8,["slide"])],8,uhe))),128))]))}}),dhe=Ee(fhe,[["__scopeId","data-v-7015b27d"]]);var jF={exports:{}};const hhe=fb(_K);/**! + * Sortable 1.14.0 + * @author RubaXa + * @author owenm + * @license MIT + */function CT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function vhe(e,t){if(e==null)return{};var n=mhe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ghe(e){return Ahe(e)||Rhe(e)||yhe(e)||xhe()}function Ahe(e){if(Array.isArray(e))return ux(e)}function Rhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yhe(e,t){if(e){if(typeof e=="string")return ux(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ux(e,t)}}function ux(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Mhe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ma(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&fg(e,t):fg(e,t))||r&&e===n)return e;if(e===n)break}while(e=Mhe(e))}return null}var FT=/\s+/g;function hr(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(FT," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(FT," ")}}function Lt(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function wu(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Lt(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function t_(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o=i:a=o<=i,!a)return r;if(r===ps())break;r=ic(r,!1)}return!1}function Ed(e,t,n,r){for(var o=0,i=0,a=e.children;i2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=vhe(r,Nhe);Gp.pluginEvent.bind(Vt)(t,n,ys({dragEl:pt,parentEl:gr,ghostEl:tn,rootEl:nr,nextEl:jc,lastDownEl:iv,cloneEl:Ar,cloneHidden:ql,dragStarted:th,putSortable:$r,activeSortable:Vt.active,originalEvent:o,oldIndex:ed,oldDraggableIndex:Fh,newIndex:Ai,newDraggableIndex:Gl,hideGhostForTarget:s_,unhideGhostForTarget:l_,cloneNowHidden:function(){ql=!0},cloneNowShown:function(){ql=!1},dispatchSortableEvent:function(s){Lo({sortable:n,name:s,originalEvent:o})}},i))};function Lo(e){eh(ys({putSortable:$r,cloneEl:Ar,targetEl:pt,rootEl:nr,oldIndex:ed,oldDraggableIndex:Fh,newIndex:Ai,newDraggableIndex:Gl},e))}var pt,gr,tn,nr,jc,iv,Ar,ql,ed,Ai,Fh,Gl,wm,$r,Hf=!1,dg=!1,hg=[],Kc,ha,t4,n4,WT,VT,th,Nf,_h,Xh=!1,Lm=!1,av,co,r4=[],fx=!1,pg=[],h2=typeof document<"u",Om=qF,UT=Hp||hl?"cssFloat":"float",Che=h2&&!She&&!qF&&"draggable"in document.createElement("div"),o_=function(){if(h2){if(hl)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),i_=function(t,n){var r=Lt(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Ed(t,0,n),a=Ed(t,1,n),s=i&&Lt(i),c=a&&Lt(a),l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+ir(i).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+ir(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var f=s.float==="left"?"left":"right";return a&&(c.clear==="both"||c.clear===f)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||l>=o&&r[UT]==="none"||a&&r[UT]==="none"&&l+u>o)?"vertical":"horizontal"},Ihe=function(t,n,r){var o=r?t.left:t.top,i=r?t.right:t.bottom,a=r?t.width:t.height,s=r?n.left:n.top,c=r?n.right:n.bottom,l=r?n.width:n.height;return o===s||i===c||o+a/2===s+l/2},Fhe=function(t,n){var r;return hg.some(function(o){var i=o[vo].options.emptyInsertThreshold;if(!(!i||O5(o))){var a=ir(o),s=t>=a.left-i&&t<=a.right+i,c=n>=a.top-i&&n<=a.bottom+i;if(s&&c)return r=o}}),r},a_=function(t){function n(i,a){return function(s,c,l,u){var f=s.options.group.name&&c.options.group.name&&s.options.group.name===c.options.group.name;if(i==null&&(a||f))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(s,c,l,u),a)(s,c,l,u);var d=(a?s:c).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var r={},o=t.group;(!o||ov(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,t.group=r},s_=function(){!o_&&tn&&Lt(tn,"display","none")},l_=function(){!o_&&tn&&Lt(tn,"display","")};h2&&document.addEventListener("click",function(e){if(dg)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),dg=!1,!1},!0);var Hc=function(t){if(pt){t=t.touches?t.touches[0]:t;var n=Fhe(t.clientX,t.clientY);if(n){var r={};for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[vo]._onDragOver(r)}}},_he=function(t){pt&&pt.parentNode[vo]._isOutsideThisEl(t.target)};function Vt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=oa({},t),e[vo]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return i_(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,s){a.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Vt.supportPointer!==!1&&"PointerEvent"in window&&!Ch,emptyInsertThreshold:5};Gp.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);a_(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:Che,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?gn(e,"pointerdown",this._onTapStart):(gn(e,"mousedown",this._onTapStart),gn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(gn(e,"dragover",this),gn(e,"dragenter",this)),hg.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),oa(this,The())}Vt.prototype={constructor:Vt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Nf=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,pt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,o=this.options,i=o.preventOnFilter,a=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(s||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,u=o.filter;if(Zhe(r),!pt&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||o.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Ch&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=Ma(c,o.draggable,r,!1),!(c&&c.animated)&&iv!==c)){if(ed=Rr(c),Fh=Rr(c,o.draggable),typeof u=="function"){if(u.call(this,t,c,this)){Lo({sortable:n,rootEl:l,name:"filter",targetEl:c,toEl:r,fromEl:r}),Bo("filter",n,{evt:t}),i&&t.cancelable&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(f){if(f=Ma(l,f.trim(),r,!1),f)return Lo({sortable:n,rootEl:f,name:"filter",targetEl:c,fromEl:r,toEl:r}),Bo("filter",n,{evt:t}),!0}),u)){i&&t.cancelable&&t.preventDefault();return}o.handle&&!Ma(l,o.handle,r,!1)||this._prepareDragStart(t,s,c)}}},_prepareDragStart:function(t,n,r){var o=this,i=o.el,a=o.options,s=i.ownerDocument,c;if(r&&!pt&&r.parentNode===i){var l=ir(r);if(nr=i,pt=r,gr=pt.parentNode,jc=pt.nextSibling,iv=r,wm=a.group,Vt.dragged=pt,Kc={target:pt,clientX:(n||t).clientX,clientY:(n||t).clientY},WT=Kc.clientX-l.left,VT=Kc.clientY-l.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,pt.style["will-change"]="all",c=function(){if(Bo("delayEnded",o,{evt:t}),Vt.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!IT&&o.nativeDraggable&&(pt.draggable=!0),o._triggerDragStart(t,n),Lo({sortable:o,name:"choose",originalEvent:t}),hr(pt,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){t_(pt,u.trim(),o4)}),gn(s,"dragover",Hc),gn(s,"mousemove",Hc),gn(s,"touchmove",Hc),gn(s,"mouseup",o._onDrop),gn(s,"touchend",o._onDrop),gn(s,"touchcancel",o._onDrop),IT&&this.nativeDraggable&&(this.options.touchStartThreshold=4,pt.draggable=!0),Bo("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Hp||hl))){if(Vt.eventCanceled){this._onDrop();return}gn(s,"mouseup",o._disableDelayedDrag),gn(s,"touchend",o._disableDelayedDrag),gn(s,"touchcancel",o._disableDelayedDrag),gn(s,"mousemove",o._delayedDragTouchMoveHandler),gn(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&gn(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,a.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){pt&&o4(pt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;un(t,"mouseup",this._disableDelayedDrag),un(t,"touchend",this._disableDelayedDrag),un(t,"touchcancel",this._disableDelayedDrag),un(t,"mousemove",this._delayedDragTouchMoveHandler),un(t,"touchmove",this._delayedDragTouchMoveHandler),un(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?gn(document,"pointermove",this._onTouchMove):n?gn(document,"touchmove",this._onTouchMove):gn(document,"mousemove",this._onTouchMove):(gn(pt,"dragend",this),gn(nr,"dragstart",this._onDragStart));try{document.selection?sv(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Hf=!1,nr&&pt){Bo("dragStarted",this,{evt:n}),this.nativeDraggable&&gn(document,"dragover",_he);var r=this.options;!t&&hr(pt,r.dragClass,!1),hr(pt,r.ghostClass,!0),Vt.active=this,t&&this._appendGhost(),Lo({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ha){this._lastX=ha.clientX,this._lastY=ha.clientY,s_();for(var t=document.elementFromPoint(ha.clientX,ha.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ha.clientX,ha.clientY),t!==n);)n=t;if(pt.parentNode[vo]._isOutsideThisEl(t),n)do{if(n[vo]){var r=void 0;if(r=n[vo]._onDragOver({clientX:ha.clientX,clientY:ha.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);l_()}},_onTouchMove:function(t){if(Kc){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=t.touches?t.touches[0]:t,a=tn&&wu(tn,!0),s=tn&&a&&a.a,c=tn&&a&&a.d,l=Om&&co&&XT(co),u=(i.clientX-Kc.clientX+o.x)/(s||1)+(l?l[0]-r4[0]:0)/(s||1),f=(i.clientY-Kc.clientY+o.y)/(c||1)+(l?l[1]-r4[1]:0)/(c||1);if(!Vt.active&&!Hf){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Lo({rootEl:gr,name:"add",toEl:gr,fromEl:nr,originalEvent:t}),Lo({sortable:this,name:"remove",toEl:gr,originalEvent:t}),Lo({rootEl:gr,name:"sort",toEl:gr,fromEl:nr,originalEvent:t}),Lo({sortable:this,name:"sort",toEl:gr,originalEvent:t})),$r&&$r.save()):Ai!==ed&&Ai>=0&&(Lo({sortable:this,name:"update",toEl:gr,originalEvent:t}),Lo({sortable:this,name:"sort",toEl:gr,originalEvent:t})),Vt.active&&((Ai==null||Ai===-1)&&(Ai=ed,Gl=Fh),Lo({sortable:this,name:"end",toEl:gr,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Bo("nulling",this),nr=pt=gr=tn=jc=Ar=iv=ql=Kc=ha=th=Ai=Gl=ed=Fh=Nf=_h=$r=wm=Vt.dragged=Vt.ghost=Vt.clone=Vt.active=null,pg.forEach(function(t){t.checked=!0}),pg.length=t4=n4=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":pt&&(this._onDragOver(t),Xhe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,o=0,i=r.length,a=this.options;or.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function Uhe(e,t,n,r,o,i,a,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a){if(s&&avu+l*i/2:cf-av)return-_h}else if(c>u+l*(1-o)/2&&cf-l*i/2)?c>u+l/2?1:-1:0}function Yhe(e){return Rr(pt)1&&(jt.forEach(function(s){i.addAnimationState({target:s,rect:Do?ir(s):a}),qy(s),s.fromRect=a,r.removeAnimationState(s)}),Do=!1,Ghe(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var r=n.sortable,o=n.isOwner,i=n.insertion,a=n.activeSortable,s=n.parentEl,c=n.putSortable,l=this.options;if(i){if(o&&a._hideClone(),w0=!1,l.animation&&jt.length>1&&(Do||!o&&!a.options.sort&&!c)){var u=ir(Gn,!1,!0,!0);jt.forEach(function(d){d!==Gn&&(ET(d,u),s.appendChild(d))}),Do=!0}if(!o)if(Do||Pm(),jt.length>1){var f=km;a._showClone(r),a.options.animation&&!km&&f&&gi.forEach(function(d){a.addAnimationState({target:d,rect:L0}),d.fromRect=L0,d.thisAnimationDuration=null})}else a._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,o=n.isOwner,i=n.activeSortable;if(jt.forEach(function(s){s.thisAnimationDuration=null}),i.options.animation&&!o&&i.multiDrag.isMultiDrag){L0=oa({},r);var a=wu(Gn,!0);L0.top-=a.f,L0.left-=a.e}},dragOverAnimationComplete:function(){Do&&(Do=!1,Pm())},drop:function(n){var r=n.originalEvent,o=n.rootEl,i=n.parentEl,a=n.sortable,s=n.dispatchSortableEvent,c=n.oldIndex,l=n.putSortable,u=l||this.sortable;if(r){var f=this.options,d=i.children;if(!Cf)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),hr(Gn,f.selectedClass,!~jt.indexOf(Gn)),~jt.indexOf(Gn))jt.splice(jt.indexOf(Gn),1),M0=null,eh({sortable:a,rootEl:o,name:"deselect",targetEl:Gn,originalEvt:r});else{if(jt.push(Gn),eh({sortable:a,rootEl:o,name:"select",targetEl:Gn,originalEvt:r}),r.shiftKey&&M0&&a.el.contains(M0)){var h=Rr(M0),p=Rr(Gn);if(~h&&~p&&h!==p){var m,A;for(p>h?(A=h,m=p):(A=p,m=h+1);A1){var x=ir(Gn),R=Rr(Gn,":not(."+this.options.selectedClass+")");if(!w0&&f.animation&&(Gn.thisAnimationDuration=null),u.captureAnimationState(),!w0&&(f.animation&&(Gn.fromRect=x,jt.forEach(function(g){if(g.thisAnimationDuration=null,g!==Gn){var S=Do?ir(g):x;g.fromRect=S,u.addAnimationState({target:g,rect:S})}})),Pm(),jt.forEach(function(g){d[R]?i.insertBefore(g,d[R]):i.appendChild(g),R++}),c===Rr(Gn))){var y=!1;jt.forEach(function(g){if(g.sortableIndex!==Rr(g)){y=!0;return}}),y&&s("update")}jt.forEach(function(g){qy(g)}),u.animateAll()}pa=u}(o===i||l&&l.lastPutMode!=="clone")&&gi.forEach(function(g){g.parentNode&&g.parentNode.removeChild(g)})}},nullingGlobal:function(){this.isMultiDrag=Cf=!1,gi.length=0},destroyGlobal:function(){this._deselectMultiDrag(),un(document,"pointerup",this._deselectMultiDrag),un(document,"mouseup",this._deselectMultiDrag),un(document,"touchend",this._deselectMultiDrag),un(document,"keydown",this._checkKeyDown),un(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Cf<"u"&&Cf)&&pa===this.sortable&&!(n&&Ma(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;jt.length;){var r=jt[0];hr(r,this.options.selectedClass,!1),jt.shift(),eh({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},oa(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[vo];!r||!r.options.multiDrag||~jt.indexOf(n)||(pa&&pa!==r&&(pa.multiDrag._deselectMultiDrag(),pa=r),hr(n,r.options.selectedClass,!0),jt.push(n))},deselect:function(n){var r=n.parentNode[vo],o=jt.indexOf(n);!r||!r.options.multiDrag||!~o||(hr(n,r.options.selectedClass,!1),jt.splice(o,1))}},eventProperties:function(){var n=this,r=[],o=[];return jt.forEach(function(i){r.push({multiDragElement:i,index:i.sortableIndex});var a;Do&&i!==Gn?a=-1:Do?a=Rr(i,":not(."+n.options.selectedClass+")"):a=Rr(i),o.push({multiDragElement:i,index:a})}),{items:ghe(jt),clones:[].concat(gi),oldIndicies:r,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Ghe(e,t){jt.forEach(function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function QT(e,t){gi.forEach(function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function Pm(){jt.forEach(function(e){e!==Gn&&e.parentNode&&e.parentNode.removeChild(e)})}Vt.mount(new Bhe);Vt.mount(P5,k5);const Jhe=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Hhe,Sortable:Vt,Swap:Dhe,default:Vt},Symbol.toStringTag,{value:"Module"})),zhe=fb(Jhe);(function(e,t){(function(r,o){e.exports=o(hhe,zhe)})(typeof self<"u"?self:Ct,function(n,r){return function(o){var i={};function a(s){if(i[s])return i[s].exports;var c=i[s]={i:s,l:!1,exports:{}};return o[s].call(c.exports,c,c.exports,a),c.l=!0,c.exports}return a.m=o,a.c=i,a.d=function(s,c,l){a.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:l})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,c){if(c&1&&(s=a(s)),c&8||c&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),c&2&&typeof s!="string")for(var u in s)a.d(l,u,(function(f){return s[f]}).bind(null,u));return l},a.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(c,"a",c),c},a.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},a.p="",a(a.s="fb15")}({"00ee":function(o,i,a){var s=a("b622"),c=s("toStringTag"),l={};l[c]="z",o.exports=String(l)==="[object z]"},"0366":function(o,i,a){var s=a("1c0b");o.exports=function(c,l,u){if(s(c),l===void 0)return c;switch(u){case 0:return function(){return c.call(l)};case 1:return function(f){return c.call(l,f)};case 2:return function(f,d){return c.call(l,f,d)};case 3:return function(f,d,h){return c.call(l,f,d,h)}}return function(){return c.apply(l,arguments)}}},"057f":function(o,i,a){var s=a("fc6a"),c=a("241c").f,l={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(d){try{return c(d)}catch{return u.slice()}};o.exports.f=function(h){return u&&l.call(h)=="[object Window]"?f(h):c(s(h))}},"06cf":function(o,i,a){var s=a("83ab"),c=a("d1e7"),l=a("5c6c"),u=a("fc6a"),f=a("c04e"),d=a("5135"),h=a("0cfb"),p=Object.getOwnPropertyDescriptor;i.f=s?p:function(A,x){if(A=u(A),x=f(x,!0),h)try{return p(A,x)}catch{}if(d(A,x))return l(!c.f.call(A,x),A[x])}},"0cfb":function(o,i,a){var s=a("83ab"),c=a("d039"),l=a("cc12");o.exports=!s&&!c(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(o,i,a){var s=a("23e7"),c=a("d58f").left,l=a("a640"),u=a("ae40"),f=l("reduce"),d=u("reduce",{1:0});s({target:"Array",proto:!0,forced:!f||!d},{reduce:function(p){return c(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(o,i,a){var s=a("c6b6"),c=a("9263");o.exports=function(l,u){var f=l.exec;if(typeof f=="function"){var d=f.call(l,u);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(l)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return c.call(l,u)}},"159b":function(o,i,a){var s=a("da84"),c=a("fdbc"),l=a("17c2"),u=a("9112");for(var f in c){var d=s[f],h=d&&d.prototype;if(h&&h.forEach!==l)try{u(h,"forEach",l)}catch{h.forEach=l}}},"17c2":function(o,i,a){var s=a("b727").forEach,c=a("a640"),l=a("ae40"),u=c("forEach"),f=l("forEach");o.exports=!u||!f?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(o,i,a){var s=a("d066");o.exports=s("document","documentElement")},"1c0b":function(o,i){o.exports=function(a){if(typeof a!="function")throw TypeError(String(a)+" is not a function");return a}},"1c7e":function(o,i,a){var s=a("b622"),c=s("iterator"),l=!1;try{var u=0,f={next:function(){return{done:!!u++}},return:function(){l=!0}};f[c]=function(){return this},Array.from(f,function(){throw 2})}catch{}o.exports=function(d,h){if(!h&&!l)return!1;var p=!1;try{var m={};m[c]=function(){return{next:function(){return{done:p=!0}}}},d(m)}catch{}return p}},"1d80":function(o,i){o.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},"1dde":function(o,i,a){var s=a("d039"),c=a("b622"),l=a("2d00"),u=c("species");o.exports=function(f){return l>=51||!s(function(){var d=[],h=d.constructor={};return h[u]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},"23cb":function(o,i,a){var s=a("a691"),c=Math.max,l=Math.min;o.exports=function(u,f){var d=s(u);return d<0?c(d+f,0):l(d,f)}},"23e7":function(o,i,a){var s=a("da84"),c=a("06cf").f,l=a("9112"),u=a("6eeb"),f=a("ce4e"),d=a("e893"),h=a("94ca");o.exports=function(p,m){var A=p.target,x=p.global,R=p.stat,y,g,S,O,T,M;if(x?g=s:R?g=s[A]||f(A,{}):g=(s[A]||{}).prototype,g)for(S in m){if(T=m[S],p.noTargetGet?(M=c(g,S),O=M&&M.value):O=g[S],y=h(x?S:A+(R?".":"#")+S,p.forced),!y&&O!==void 0){if(typeof T==typeof O)continue;d(T,O)}(p.sham||O&&O.sham)&&l(T,"sham",!0),u(g,S,T,p)}}},"241c":function(o,i,a){var s=a("ca84"),c=a("7839"),l=c.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(f){return s(f,l)}},"25f0":function(o,i,a){var s=a("6eeb"),c=a("825a"),l=a("d039"),u=a("ad6d"),f="toString",d=RegExp.prototype,h=d[f],p=l(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),m=h.name!=f;(p||m)&&s(RegExp.prototype,f,function(){var x=c(this),R=String(x.source),y=x.flags,g=String(y===void 0&&x instanceof RegExp&&!("flags"in d)?u.call(x):y);return"/"+R+"/"+g},{unsafe:!0})},"2ca0":function(o,i,a){var s=a("23e7"),c=a("06cf").f,l=a("50c4"),u=a("5a34"),f=a("1d80"),d=a("ab13"),h=a("c430"),p="".startsWith,m=Math.min,A=d("startsWith"),x=!h&&!A&&!!function(){var R=c(String.prototype,"startsWith");return R&&!R.writable}();s({target:"String",proto:!0,forced:!x&&!A},{startsWith:function(y){var g=String(f(this));u(y);var S=l(m(arguments.length>1?arguments[1]:void 0,g.length)),O=String(y);return p?p.call(g,O,S):g.slice(S,S+O.length)===O}})},"2d00":function(o,i,a){var s=a("da84"),c=a("342f"),l=s.process,u=l&&l.versions,f=u&&u.v8,d,h;f?(d=f.split("."),h=d[0]+d[1]):c&&(d=c.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=c.match(/Chrome\/(\d+)/),d&&(h=d[1]))),o.exports=h&&+h},"342f":function(o,i,a){var s=a("d066");o.exports=s("navigator","userAgent")||""},"35a1":function(o,i,a){var s=a("f5df"),c=a("3f8c"),l=a("b622"),u=l("iterator");o.exports=function(f){if(f!=null)return f[u]||f["@@iterator"]||c[s(f)]}},"37e8":function(o,i,a){var s=a("83ab"),c=a("9bf2"),l=a("825a"),u=a("df75");o.exports=s?Object.defineProperties:function(d,h){l(d);for(var p=u(h),m=p.length,A=0,x;m>A;)c.f(d,x=p[A++],h[x]);return d}},"3bbe":function(o,i,a){var s=a("861d");o.exports=function(c){if(!s(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype");return c}},"3ca3":function(o,i,a){var s=a("6547").charAt,c=a("69f3"),l=a("7dd0"),u="String Iterator",f=c.set,d=c.getterFor(u);l(String,"String",function(h){f(this,{type:u,string:String(h),index:0})},function(){var p=d(this),m=p.string,A=p.index,x;return A>=m.length?{value:void 0,done:!0}:(x=s(m,A),p.index+=x.length,{value:x,done:!1})})},"3f8c":function(o,i){o.exports={}},4160:function(o,i,a){var s=a("23e7"),c=a("17c2");s({target:"Array",proto:!0,forced:[].forEach!=c},{forEach:c})},"428f":function(o,i,a){var s=a("da84");o.exports=s},"44ad":function(o,i,a){var s=a("d039"),c=a("c6b6"),l="".split;o.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return c(u)=="String"?l.call(u,""):Object(u)}:Object},"44d2":function(o,i,a){var s=a("b622"),c=a("7c73"),l=a("9bf2"),u=s("unscopables"),f=Array.prototype;f[u]==null&&l.f(f,u,{configurable:!0,value:c(null)}),o.exports=function(d){f[u][d]=!0}},"44e7":function(o,i,a){var s=a("861d"),c=a("c6b6"),l=a("b622"),u=l("match");o.exports=function(f){var d;return s(f)&&((d=f[u])!==void 0?!!d:c(f)=="RegExp")}},4930:function(o,i,a){var s=a("d039");o.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(o,i,a){var s=a("fc6a"),c=a("50c4"),l=a("23cb"),u=function(f){return function(d,h,p){var m=s(d),A=c(m.length),x=l(p,A),R;if(f&&h!=h){for(;A>x;)if(R=m[x++],R!=R)return!0}else for(;A>x;x++)if((f||x in m)&&m[x]===h)return f||x||0;return!f&&-1}};o.exports={includes:u(!0),indexOf:u(!1)}},"4de4":function(o,i,a){var s=a("23e7"),c=a("b727").filter,l=a("1dde"),u=a("ae40"),f=l("filter"),d=u("filter");s({target:"Array",proto:!0,forced:!f||!d},{filter:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(o,i,a){var s=a("0366"),c=a("7b0b"),l=a("9bdd"),u=a("e95a"),f=a("50c4"),d=a("8418"),h=a("35a1");o.exports=function(m){var A=c(m),x=typeof this=="function"?this:Array,R=arguments.length,y=R>1?arguments[1]:void 0,g=y!==void 0,S=h(A),O=0,T,M,L,k,F,N;if(g&&(y=s(y,R>2?arguments[2]:void 0,2)),S!=null&&!(x==Array&&u(S)))for(k=S.call(A),F=k.next,M=new x;!(L=F.call(k)).done;O++)N=g?l(k,y,[L.value,O],!0):L.value,d(M,O,N);else for(T=f(A.length),M=new x(T);T>O;O++)N=g?y(A[O],O):A[O],d(M,O,N);return M.length=O,M}},"4fad":function(o,i,a){var s=a("23e7"),c=a("6f53").entries;s({target:"Object",stat:!0},{entries:function(u){return c(u)}})},"50c4":function(o,i,a){var s=a("a691"),c=Math.min;o.exports=function(l){return l>0?c(s(l),9007199254740991):0}},5135:function(o,i){var a={}.hasOwnProperty;o.exports=function(s,c){return a.call(s,c)}},5319:function(o,i,a){var s=a("d784"),c=a("825a"),l=a("7b0b"),u=a("50c4"),f=a("a691"),d=a("1d80"),h=a("8aa5"),p=a("14c3"),m=Math.max,A=Math.min,x=Math.floor,R=/\$([$&'`]|\d\d?|<[^>]*>)/g,y=/\$([$&'`]|\d\d?)/g,g=function(S){return S===void 0?S:String(S)};s("replace",2,function(S,O,T,M){var L=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,k=M.REPLACE_KEEPS_$0,F=L?"$":"$0";return[function(C,_){var I=d(this),V=C==null?void 0:C[S];return V!==void 0?V.call(C,I,_):O.call(String(I),C,_)},function(E,C){if(!L&&k||typeof C=="string"&&C.indexOf(F)===-1){var _=T(O,E,this,C);if(_.done)return _.value}var I=c(E),V=String(this),B=typeof C=="function";B||(C=String(C));var G=I.global;if(G){var oe=I.unicode;I.lastIndex=0}for(var W=[];;){var Z=p(I,V);if(Z===null||(W.push(Z),!G))break;var K=String(Z[0]);K===""&&(I.lastIndex=h(V,u(I.lastIndex),oe))}for(var U="",z=0,fe=0;fe=z&&(U+=V.slice(z,ie)+ae,z=ie+se.length)}return U+V.slice(z)}];function N(E,C,_,I,V,B){var G=_+E.length,oe=I.length,W=y;return V!==void 0&&(V=l(V),W=R),O.call(B,W,function(Z,K){var U;switch(K.charAt(0)){case"$":return"$";case"&":return E;case"`":return C.slice(0,_);case"'":return C.slice(G);case"<":U=V[K.slice(1,-1)];break;default:var z=+K;if(z===0)return Z;if(z>oe){var fe=x(z/10);return fe===0?Z:fe<=oe?I[fe-1]===void 0?K.charAt(1):I[fe-1]+K.charAt(1):Z}U=I[z-1]}return U===void 0?"":U})}})},5692:function(o,i,a){var s=a("c430"),c=a("c6cd");(o.exports=function(l,u){return c[l]||(c[l]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(o,i,a){var s=a("d066"),c=a("241c"),l=a("7418"),u=a("825a");o.exports=s("Reflect","ownKeys")||function(d){var h=c.f(u(d)),p=l.f;return p?h.concat(p(d)):h}},"5a34":function(o,i,a){var s=a("44e7");o.exports=function(c){if(s(c))throw TypeError("The method doesn't accept regular expressions");return c}},"5c6c":function(o,i){o.exports=function(a,s){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:s}}},"5db7":function(o,i,a){var s=a("23e7"),c=a("a2bf"),l=a("7b0b"),u=a("50c4"),f=a("1c0b"),d=a("65f0");s({target:"Array",proto:!0},{flatMap:function(p){var m=l(this),A=u(m.length),x;return f(p),x=d(m,0),x.length=c(x,m,m,A,0,1,p,arguments.length>1?arguments[1]:void 0),x}})},6547:function(o,i,a){var s=a("a691"),c=a("1d80"),l=function(u){return function(f,d){var h=String(c(f)),p=s(d),m=h.length,A,x;return p<0||p>=m?u?"":void 0:(A=h.charCodeAt(p),A<55296||A>56319||p+1===m||(x=h.charCodeAt(p+1))<56320||x>57343?u?h.charAt(p):A:u?h.slice(p,p+2):(A-55296<<10)+(x-56320)+65536)}};o.exports={codeAt:l(!1),charAt:l(!0)}},"65f0":function(o,i,a){var s=a("861d"),c=a("e8b5"),l=a("b622"),u=l("species");o.exports=function(f,d){var h;return c(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||c(h.prototype))?h=void 0:s(h)&&(h=h[u],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},"69f3":function(o,i,a){var s=a("7f9a"),c=a("da84"),l=a("861d"),u=a("9112"),f=a("5135"),d=a("f772"),h=a("d012"),p=c.WeakMap,m,A,x,R=function(L){return x(L)?A(L):m(L,{})},y=function(L){return function(k){var F;if(!l(k)||(F=A(k)).type!==L)throw TypeError("Incompatible receiver, "+L+" required");return F}};if(s){var g=new p,S=g.get,O=g.has,T=g.set;m=function(L,k){return T.call(g,L,k),k},A=function(L){return S.call(g,L)||{}},x=function(L){return O.call(g,L)}}else{var M=d("state");h[M]=!0,m=function(L,k){return u(L,M,k),k},A=function(L){return f(L,M)?L[M]:{}},x=function(L){return f(L,M)}}o.exports={set:m,get:A,has:x,enforce:R,getterFor:y}},"6eeb":function(o,i,a){var s=a("da84"),c=a("9112"),l=a("5135"),u=a("ce4e"),f=a("8925"),d=a("69f3"),h=d.get,p=d.enforce,m=String(String).split("String");(o.exports=function(A,x,R,y){var g=y?!!y.unsafe:!1,S=y?!!y.enumerable:!1,O=y?!!y.noTargetGet:!1;if(typeof R=="function"&&(typeof x=="string"&&!l(R,"name")&&c(R,"name",x),p(R).source=m.join(typeof x=="string"?x:"")),A===s){S?A[x]=R:u(x,R);return}else g?!O&&A[x]&&(S=!0):delete A[x];S?A[x]=R:c(A,x,R)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})},"6f53":function(o,i,a){var s=a("83ab"),c=a("df75"),l=a("fc6a"),u=a("d1e7").f,f=function(d){return function(h){for(var p=l(h),m=c(p),A=m.length,x=0,R=[],y;A>x;)y=m[x++],(!s||u.call(p,y))&&R.push(d?[y,p[y]]:p[y]);return R}};o.exports={entries:f(!0),values:f(!1)}},"73d9":function(o,i,a){var s=a("44d2");s("flatMap")},7418:function(o,i){i.f=Object.getOwnPropertySymbols},"746f":function(o,i,a){var s=a("428f"),c=a("5135"),l=a("e538"),u=a("9bf2").f;o.exports=function(f){var d=s.Symbol||(s.Symbol={});c(d,f)||u(d,f,{value:l.f(f)})}},7839:function(o,i){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,i,a){var s=a("1d80");o.exports=function(c){return Object(s(c))}},"7c73":function(o,i,a){var s=a("825a"),c=a("37e8"),l=a("7839"),u=a("d012"),f=a("1be4"),d=a("cc12"),h=a("f772"),p=">",m="<",A="prototype",x="script",R=h("IE_PROTO"),y=function(){},g=function(L){return m+x+p+L+m+"/"+x+p},S=function(L){L.write(g("")),L.close();var k=L.parentWindow.Object;return L=null,k},O=function(){var L=d("iframe"),k="java"+x+":",F;return L.style.display="none",f.appendChild(L),L.src=String(k),F=L.contentWindow.document,F.open(),F.write(g("document.F=Object")),F.close(),F.F},T,M=function(){try{T=document.domain&&new ActiveXObject("htmlfile")}catch{}M=T?S(T):O();for(var L=l.length;L--;)delete M[A][l[L]];return M()};u[R]=!0,o.exports=Object.create||function(k,F){var N;return k!==null?(y[A]=s(k),N=new y,y[A]=null,N[R]=k):N=M(),F===void 0?N:c(N,F)}},"7dd0":function(o,i,a){var s=a("23e7"),c=a("9ed3"),l=a("e163"),u=a("d2bb"),f=a("d44e"),d=a("9112"),h=a("6eeb"),p=a("b622"),m=a("c430"),A=a("3f8c"),x=a("ae93"),R=x.IteratorPrototype,y=x.BUGGY_SAFARI_ITERATORS,g=p("iterator"),S="keys",O="values",T="entries",M=function(){return this};o.exports=function(L,k,F,N,E,C,_){c(F,k,N);var I=function(fe){if(fe===E&&W)return W;if(!y&&fe in G)return G[fe];switch(fe){case S:return function(){return new F(this,fe)};case O:return function(){return new F(this,fe)};case T:return function(){return new F(this,fe)}}return function(){return new F(this)}},V=k+" Iterator",B=!1,G=L.prototype,oe=G[g]||G["@@iterator"]||E&&G[E],W=!y&&oe||I(E),Z=k=="Array"&&G.entries||oe,K,U,z;if(Z&&(K=l(Z.call(new L)),R!==Object.prototype&&K.next&&(!m&&l(K)!==R&&(u?u(K,R):typeof K[g]!="function"&&d(K,g,M)),f(K,V,!0,!0),m&&(A[V]=M))),E==O&&oe&&oe.name!==O&&(B=!0,W=function(){return oe.call(this)}),(!m||_)&&G[g]!==W&&d(G,g,W),A[k]=W,E)if(U={values:I(O),keys:C?W:I(S),entries:I(T)},_)for(z in U)(y||B||!(z in G))&&h(G,z,U[z]);else s({target:k,proto:!0,forced:y||B},U);return U}},"7f9a":function(o,i,a){var s=a("da84"),c=a("8925"),l=s.WeakMap;o.exports=typeof l=="function"&&/native code/.test(c(l))},"825a":function(o,i,a){var s=a("861d");o.exports=function(c){if(!s(c))throw TypeError(String(c)+" is not an object");return c}},"83ab":function(o,i,a){var s=a("d039");o.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(o,i,a){var s=a("c04e"),c=a("9bf2"),l=a("5c6c");o.exports=function(u,f,d){var h=s(f);h in u?c.f(u,h,l(0,d)):u[h]=d}},"861d":function(o,i){o.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},8875:function(o,i,a){var s,c,l;(function(u,f){c=[],s=f,l=typeof s=="function"?s.apply(i,c):s,l!==void 0&&(o.exports=l)})(typeof self<"u"?self:this,function(){function u(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==u&&document.currentScript)return document.currentScript;try{throw new Error}catch(T){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,p=d.exec(T.stack)||h.exec(T.stack),m=p&&p[1]||!1,A=p&&p[2]||!1,x=document.location.href.replace(document.location.hash,""),R,y,g,S=document.getElementsByTagName("script");m===x&&(R=document.documentElement.outerHTML,y=new RegExp("(?:[^\\n]+?\\n){0,"+(A-2)+"}[^<]*
    正在加载中,请稍等 ...
    \ No newline at end of file + } + + + + + +
    +
    +
    +
    正在加载中,请稍等 ...
    +
    +
    + + + + diff --git a/js/app.9b709042.js b/js/app.9b709042.js deleted file mode 100644 index 89fff6af..00000000 --- a/js/app.9b709042.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){var e={8277:function(e,t,l){"use strict";var a,n=l(9963),o=l(9876),i=(l(7658),l(6252)),s=l(2262),r=l(3416);(function(e){e["SYMBOL"]="symbol",e["EL_ANIMATION"]="elAnimation",e["EL_STYLE"]="elStyle",e["EL_POSITION"]="elPosition",e["SLIDE_DESIGN"]="slideDesign",e["SLIDE_ANIMATION"]="slideAnimation",e["MULTI_POSITION"]="multiPosition"})(a||(a={}));var u=l(5804);const c=(e,t)=>e.type===t.nodes.bullet_list||e.type===t.nodes.ordered_list,d=e=>{const{empty:t}=e.state.selection;t&&(0,u.td)(e.state,e.dispatch)},p=(e,t,l)=>{if(l)e.dispatch(e.state.tr.addMark(l.from,l.to,t));else{const{$from:l,$to:a}=e.state.selection;e.dispatch(e.state.tr.addMark(l.pos,a.pos,t))}},v=(e,t,l,a)=>{let n=t;const o=e=>e.type===a;let i=null,s=null,r=null;while(n<=l){const t=e.nodeAt(n);if(!t||!t.marks)return null;const l=t.marks.find(o);if(!l)return null;if(i&&l!==i)return null;s=s||t,i=i||l,r=t,n++}let u=t,c=l,d=0;n=t-1;while(n>d){const t=e.nodeAt(n),l=t&&t.marks.find(o);if(!l||l!==i)break;u=n,s=t,n--}n=l+1,d=e.nodeSize-2;while(nArray.isArray(e)&&e.indexOf(t.type)>-1||t.type===e,h=(e,t)=>{for(let l=e.depth;l>0;l--){const a=e.node(l);if(t(a))return{pos:l>0?e.before(l):0,start:e.start(l),depth:l,node:a}}},f=e=>t=>h(t.$from,e),g=e=>t=>f((t=>m(e,t)))(t),y=(e,t)=>{const l=t.schema.nodes[e];return!!g(l)(t.selection)},w=e=>e?"text"===e.type.name?e:e.lastChild?w(e.lastChild):null:null,x=e=>{const{selection:t,doc:l}=e.state,{from:a}=t;let n=l.nodeAt(a)||l.nodeAt(a-1);return n=w(n),n?.marks||[]},k=(e,t,l)=>{for(const a of e)if(a.type.name===t&&a.attrs[l])return a.attrs[l];return null},b=(e,t)=>{for(const l of e)if(l.type.name===t)return!0;return!1},_=(e,t)=>{const{from:l,$from:a,to:n,empty:o}=e.selection;return o?t.isInSet(e.storedMarks||a.marks()):e.doc.rangeHasMark(l,n,t)},I=(e,t)=>{const{selection:l,doc:a}=e.state,{from:n,to:o}=l;let i=!0,s="";return a.nodesBetween(n,o,(e=>(i&&e.attrs[t]&&(i=!1,s=e.attrs[t]),i))),s},S={color:"#000",backcolor:"",fontsize:"20px",fontname:"微软雅黑",align:"left"},C=(e,t={})=>{const l={...S,...t},a=x(e),n=b(a,"strong"),o=b(a,"em"),i=b(a,"underline"),s=b(a,"strikethrough"),r=b(a,"superscript"),u=b(a,"subscript"),c=b(a,"code"),d=k(a,"forecolor","color")||l.color,p=k(a,"backcolor","backcolor")||l.backcolor,v=k(a,"fontsize","fontsize")||l.fontsize,m=k(a,"fontname","fontname")||l.fontname,h=k(a,"link","href")||"",f=I(e,"align")||l.align,g=y("bullet_list",e.state),w=y("ordered_list",e.state),_=y("blockquote",e.state);return{bold:n,em:o,underline:i,strikethrough:s,superscript:r,subscript:u,code:c,color:d,backcolor:p,fontsize:v,fontname:m,link:h,align:f,bulletList:g,orderedList:w,blockquote:_}},L=e=>{const t=x(e),l=k(t,"fontsize","fontsize")||S.fontsize;return parseInt(l)},T={bold:!1,em:!1,underline:!1,strikethrough:!1,superscript:!1,subscript:!1,code:!1,color:"#000",backcolor:"",fontsize:"20px",fontname:"微软雅黑",link:"",align:"left",bulletList:!1,orderedList:!1,blockquote:!1},E=[{label:"Arial",value:"Arial"},{label:"微软雅黑",value:"Microsoft Yahei"},{label:"宋体",value:"SimSun"},{label:"黑体",value:"SimHei"},{label:"楷体",value:"KaiTi"},{label:"新宋体",value:"NSimSun"},{label:"仿宋",value:"FangSong"},{label:"苹方",value:"PingFang SC"},{label:"华文黑体",value:"STHeiti"},{label:"华文楷体",value:"STKaiti"},{label:"华文宋体",value:"STSong"},{label:"华文仿宋",value:"STFangSong"},{label:"华文中宋",value:"STZhongSong"},{label:"华文琥珀",value:"STHupo"},{label:"华文新魏",value:"STXinwei"},{label:"华文隶书",value:"STLiti"},{label:"华文行楷",value:"STXingkai"},{label:"冬青黑体",value:"Hiragino Sans GB"},{label:"兰亭黑",value:"Lantinghei SC"},{label:"偏偏体",value:"Hanzipen SC"},{label:"手札体",value:"Hannotate SC"},{label:"宋体",value:"Songti SC"},{label:"娃娃体",value:"Wawati SC"},{label:"行楷",value:"Xingkai SC"},{label:"圆体",value:"Yuanti SC"},{label:"华文细黑",value:"STXihei"},{label:"幼圆",value:"YouYuan"},{label:"隶书",value:"LiSu"}],M=[{label:"得意黑",value:"得意黑"},{label:"仓耳小丸子",value:"仓耳小丸子"},{label:"优设标题黑",value:"优设标题黑"},{label:"峰广明锐体",value:"峰广明锐体"},{label:"摄图摩登小方体",value:"摄图摩登小方体"},{label:"站酷快乐体",value:"站酷快乐体"},{label:"字制区喜脉体",value:"字制区喜脉体"},{label:"素材集市康康体",value:"素材集市康康体"},{label:"素材集市酷方体",value:"素材集市酷方体"},{label:"途牛类圆体",value:"途牛类圆体"},{label:"锐字真言体",value:"锐字真言体"}],U=e=>{if("string"!==typeof e)return!1;const t="Arial";if(e.toLowerCase()===t.toLowerCase())return!0;const l=100,a=100,n=100,o="a",i=document.createElement("canvas"),s=i.getContext("2d",{willReadFrequently:!0});if(!s)return!1;i.width=a,i.height=n,s.textAlign="center",s.fillStyle="black",s.textBaseline="middle";const r=e=>{s.clearRect(0,0,a,n),s.font=`${l}px ${e}, ${t}`,s.fillText(o,a/2,n/2);const i=s.getImageData(0,0,a,n).data;return[].slice.call(i).filter((e=>0!==e))};return r(t).join("")!==r(e).join("")};var W=l(7234),D=l(6486);const H=[{id:"test-slide-1",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"idn7Mx",left:355,top:65.25,width:585,height:188,lineHeight:1.2,content:"

    PPTIST

    ",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"

    基于 Vue 3.x + TypeScript 的在线演示文稿应用

    ",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"#5b9bd5",style:"solid",width:2}],background:{type:"solid",color:"#ffffff"}},{id:"test-slide-2",elements:[{type:"text",id:"ptNnUJ",left:145,top:148,width:711,height:77,lineHeight:1.2,content:"

    在此处添加标题

    ",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"mRHvQN",left:207.50000000000003,top:249.84259259259264,width:585,height:56,content:"

    在此处添加副标题

    ",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"7CQDwc",left:323.09259259259267,top:238.33333333333334,start:[0,0],end:[354.8148148148148,0],points:["",""],color:"#5b9bd5",style:"solid",width:4},{type:"shape",id:"09wqWw",left:-27.648148148148138,top:432.73148148148147,width:1056.2962962962963,height:162.96296296296296,viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z",fill:"#5b9bd5",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"#fff"}},{id:"test-slide-3",elements:[{type:"shape",id:"vSheCJ",left:183.5185185185185,top:175.5092592592593,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"#5b9bd5",fixedRatio:!1,rotate:0},{type:"shape",id:"Mpwv7x",left:211.29629629629628,top:201.80555555555557,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"#5b9bd5",fixedRatio:!1,rotate:0,opacity:.7},{type:"text",id:"WQOTAp",left:304.9074074074074,top:198.10185185185182,width:417.9629629629629,height:140,content:"

    感谢观看

    ",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",wordSpace:5}],background:{type:"solid",color:"#fff"}}],F={themeColor:"#5b9bd5",fontColor:"#333",fontName:"Microsoft Yahei",backgroundColor:"#fff",shadow:{h:3,v:3,blur:2,color:"#808080"},outline:{width:2,color:"#525252",style:"solid"}},A=[{id:"template",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"{{themeColor}}",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"{{themeColor}}",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"AkIh3E",left:355,top:95.11111111111111,width:585,height:116,lineHeight:1.2,content:"

    输入标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:6},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"

    请在此处输入副标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"{{themeColor}}",style:"solid",width:2}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"ptNnUJ",left:145,top:148,width:711,height:77,lineHeight:1.2,content:"

    在此处添加标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"mRHvQN",left:207.50000000000003,top:249.84259259259264,width:585,height:56,content:"

    在此处添加副标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"line",id:"7CQDwc",left:323.09259259259267,top:238.33333333333334,start:[0,0],end:[354.8148148148148,0],points:["",""],color:"{{themeColor}}",style:"solid",width:4},{type:"shape",id:"09wqWw",left:-27.648148148148138,top:432.73148148148147,width:1056.2962962962963,height:162.96296296296296,viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"vSheCJ",left:183.5185185185185,top:175.5092592592593,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0},{type:"shape",id:"Mpwv7x",left:211.29629629629628,top:201.80555555555557,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,opacity:.7},{type:"text",id:"WQOTAp",left:304.9074074074074,top:198.10185185185182,width:417.9629629629629,height:140,content:"

    感谢观看

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:5}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"MZVO1kkj",elements:[{type:"shape",id:"cql0h8",left:0,top:0,width:352.59259259259255,height:562.5,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0},{type:"shape",id:"_RTaF4",left:171.4814814814814,top:100.13888888888887,width:362.22222222222223,height:362.22222222222223,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"rgba(255,255,255,0)",fixedRatio:!1,rotate:0,outline:{width:10,color:"{{backgroundColor}}",style:"solid"}},{type:"shape",id:"UZfo8N",left:216.66666666666663,top:145.32407407407408,width:271.85185185185185,height:271.85185185185185,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0,text:{content:"

    01

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"ysqtBg",left:561.4814814814814,top:100.1388888888889,width:359.25925925925924,height:80,content:"

    在此处输入标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"lXsoHa",left:572.5925925925925,top:202.3611111111111,width:257.77777777777777,height:260,content:"
    1. 在此处输入内容

    2. 在此处输入内容

    3. 在此处输入内容

    4. 在此处输入内容

    5. 在此处输入内容

    6. 在此处输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",lineHeight:2,fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"EBBnTr",left:360.5996472663139,top:141.8496472663139,width:278.80070546737215,height:278.80070546737215,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:0,color:"{{backgroundColor}}",style:"solid"}},{type:"shape",id:"gDIWDH",left:456.4373897707231,top:98.287037037037,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"

    1

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"DUWT7E",left:317.037037037037,top:237.68738977072314,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"

    4

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"pbhn38",left:456.43738977072303,top:377.08774250440916,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"

    3

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"CvMKrO",left:595.8377425044091,top:237.6873897707231,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"

    2

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"adudHB",left:402.962962962963,top:39.39814814814815,width:194.07407407407408,height:50,content:"

    在此输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"9UpDwg",left:402.962962962963,top:473.1018518518518,width:194.07407407407408,height:50,content:"

    在此输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"GERdpB",left:111.48148148148151,top:256.25,width:194.07407407407408,height:50,content:"

    在此输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"G5qoho",left:691.1111111111111,top:256.25,width:194.07407407407408,height:50,content:"

    在此输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"shape",id:"vdZcI6",left:415.18518518518516,top:196.4351851851852,width:169.62962962962962,height:169.62962962962962,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"tYUmrx",left:156.66666666666683,top:149.02777777777771,width:264.4444444444445,height:264.4444444444445,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

    01

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"0GVHf8",left:342.2222222222223,top:217.17592592592587,width:128.14814814814812,height:128.14814814814812,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0},{type:"text",id:"BO33Sv",left:378.8888888888889,top:235.24999999999994,width:464.4444444444444,height:92,content:"

    在此处添加标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Hj7ttp",left:69.35185185185185,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"

    1.请输入标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"FmKMNB",left:69.35185185185185,top:129.28240740740745,width:420,height:384,content:"

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"rI7ZeO",left:510.64814814814815,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"

    2.请输入标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"KspwGc",left:510.64814814814815,top:129.28240740740745,width:420,height:384,content:"

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Rx63Jo",left:69.35185185185179,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"

    1.请输入标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"ulyuzE",left:69.35185185185179,top:131.78240740740745,width:420,height:129,content:"

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"kr35Ca",left:510.6481481481481,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"

    2.请输入标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"BNQSpC",left:510.6481481481481,top:131.78240740740745,width:420,height:129,content:"

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"Vr38Nu",left:69.35185185185185,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"

    3.请输入标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"IwKRSu",left:69.35185185185185,top:381.7824074074074,width:420,height:129,content:"

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"0Opr1v",left:510.64814814814815,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"

    4.请输入标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"4L9Uzz",left:510.64814814814815,top:381.7824074074074,width:420,height:129,content:"

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"GdEGxg",left:134.53703703703704,top:127.25,width:152.77777777777777,height:308,lineHeight:1.8,content:"

    请在此处输入标题

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:8,fill:"{{themeColor}}"},{type:"text",id:"y5sAfw",left:332.8703703703704,top:127.25,width:532.5925925925926,height:50,content:"

    请在此处输入内容1

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"VeuocM",left:332.8703703703704,top:212.0648148148148,width:532.5925925925926,height:50,content:"

    请在此处输入内容2

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"RyFWQe",left:332.8703703703704,top:296.8796296296296,width:532.5925925925926,height:50,content:"

    请在此处输入内容3

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"Q56viI",left:332.8703703703704,top:381.69444444444446,width:532.5925925925926,height:50,content:"

    请在此处输入内容4

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"SUWirT",left:73.8888888888889,top:64.21296296296302,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

    1

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"YjzN1M",left:148.70370370370372,top:64.21296296296302,width:323.7037037037037,height:120,content:"

    在此输入内容

    在此输入内容

    在此输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"fS09I7",left:527.5925925925926,top:64.21296296296302,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

    2

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"qCnfB1",left:602.4074074074074,top:64.21296296296302,width:323.7037037037037,height:120,content:"

    在此输入内容

    在此输入内容

    在此输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"difAAT",left:73.8888888888889,top:221.25000000000003,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

    3

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"EUlvMo",left:148.70370370370372,top:221.25000000000003,width:323.7037037037037,height:120,content:"

    在此输入内容

    在此输入内容

    在此输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"US_9jB",left:527.5925925925926,top:221.25000000000003,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

    4

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"243MnQ",left:602.4074074074074,top:221.25000000000003,width:323.7037037037037,height:120,content:"

    在此输入内容

    在此输入内容

    在此输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"Y_KUj0",left:73.8888888888889,top:378.287037037037,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

    5

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"9GglMe",left:148.70370370370372,top:378.287037037037,width:323.7037037037037,height:120,content:"

    在此输入内容

    在此输入内容

    在此输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"eSInje",left:527.5925925925926,top:378.287037037037,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"

    6

    ",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"0S3yUg",left:602.4074074074074,top:378.287037037037,width:323.7037037037037,height:120,content:"

    在此输入内容

    在此输入内容

    在此输入内容

    ",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}}],$=(0,o.Q_)("slides",{state:()=>({title:"未命名演示文稿",theme:F,slides:H,slideIndex:0,viewportRatio:.5625}),getters:{currentSlide(e){return e.slides[e.slideIndex]},currentSlideAnimations(e){const t=e.slides[e.slideIndex];if(!t?.animations)return[];const l=t.elements,a=l.map((e=>e.id));return t.animations.filter((e=>a.includes(e.elId)))},formatedAnimations(e){const t=e.slides[e.slideIndex];if(!t?.animations)return[];const l=t.elements,a=l.map((e=>e.id)),n=t.animations.filter((e=>a.includes(e.elId))),o=[];for(const i of n)if("click"!==i.trigger&&o.length){if("meantime"===i.trigger){const e=o[o.length-1];e.animations=e.animations.filter((e=>e.elId!==i.elId)),e.animations.push(i),o[o.length-1]=e}else if("auto"===i.trigger){const e=o[o.length-1];e.autoNext=!0,o[o.length-1]=e,o.push({animations:[i],autoNext:!1})}}else o.push({animations:[i],autoNext:!1});return o},layouts(e){const{themeColor:t,fontColor:l,fontName:a,backgroundColor:n}=e.theme,o=(0,W.Z)(l).isDark()?"rgba(230, 230, 230, 0.5)":"rgba(180, 180, 180, 0.5)",i=JSON.stringify(A).replaceAll("{{themeColor}}",t).replaceAll("{{fontColor}}",l).replaceAll("{{fontName}}",a).replaceAll("{{backgroundColor}}",n).replaceAll("{{subColor}}",o);return JSON.parse(i)}},actions:{setTitle(e){this.title=e||"未命名演示文稿"},setTheme(e){this.theme={...this.theme,...e}},setViewportRatio(e){this.viewportRatio=e},setSlides(e){this.slides=e},addSlide(e){const t=Array.isArray(e)?e:[e],l=this.slideIndex+1;this.slides.splice(l,0,...t),this.slideIndex=l},updateSlide(e){const t=this.slideIndex;this.slides[t]={...this.slides[t],...e}},deleteSlide(e){const t=Array.isArray(e)?e:[e],l=[];for(let o=0;oe.id===t[o]));l.push(e)}let a=Math.min(...l);const n=this.slides.length-t.length-1;a>n&&(a=n),this.slideIndex=a,this.slides=this.slides.filter((e=>!t.includes(e.id)))},updateSlideIndex(e){this.slideIndex=e},addElement(e){const t=Array.isArray(e)?e:[e],l=this.slides[this.slideIndex].elements,a=[...l,...t];this.slides[this.slideIndex].elements=a},deleteElement(e){const t=Array.isArray(e)?e:[e],l=this.slides[this.slideIndex].elements,a=l.filter((e=>!t.includes(e.id)));this.slides[this.slideIndex].elements=a},updateElement(e){const{id:t,props:l,slideId:a}=e,n="string"===typeof t?[t]:t,o=a?this.slides.findIndex((e=>e.id===a)):this.slideIndex,i=this.slides[o],s=i.elements.map((e=>n.includes(e.id)?{...e,...l}:e));this.slides[o].elements=s},removeElementProps(e){const{id:t,propName:l}=e,a="string"===typeof l?[l]:l,n=this.slideIndex,o=this.slides[n],i=o.elements.map((e=>e.id===t?(0,D.omit)(e,a):e));this.slides[n].elements=i}}}),Z=(0,r.kP)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"),O=Z(10),R=(0,o.Q_)("main",{state:()=>({activeElementIdList:[],handleElementId:"",activeGroupElementId:"",hiddenElementIdList:[],canvasPercentage:90,canvasScale:1,canvasDragged:!1,thumbnailsFocus:!1,editorAreaFocus:!1,disableHotkeys:!1,gridLineSize:0,showRuler:!1,creatingElement:null,creatingCustomShape:!1,availableFonts:E,toolbarState:a.SLIDE_DESIGN,clipingImageElementId:"",richTextAttrs:T,selectedTableCells:[],isScaling:!1,selectedSlidesIndex:[],dialogForExport:"",databaseId:O,textFormatPainter:null,shapeFormatPainter:null,showSelectPanel:!1,showSearchPanel:!1}),getters:{activeElementList(e){const t=$(),l=t.currentSlide;return l&&l.elements?l.elements.filter((t=>e.activeElementIdList.includes(t.id))):[]},handleElement(e){const t=$(),l=t.currentSlide;return l&&l.elements&&l.elements.find((t=>e.handleElementId===t.id))||null}},actions:{setActiveElementIdList(e){1===e.length?this.handleElementId=e[0]:this.handleElementId="",this.activeElementIdList=e},setHandleElementId(e){this.handleElementId=e},setActiveGroupElementId(e){this.activeGroupElementId=e},setHiddenElementIdList(e){this.hiddenElementIdList=e},setCanvasPercentage(e){this.canvasPercentage=e},setCanvasScale(e){this.canvasScale=e},setCanvasDragged(e){this.canvasDragged=e},setThumbnailsFocus(e){this.thumbnailsFocus=e},setEditorareaFocus(e){this.editorAreaFocus=e},setDisableHotkeysState(e){this.disableHotkeys=e},setGridLineSize(e){this.gridLineSize=e},setRulerState(e){this.showRuler=e},setCreatingElement(e){this.creatingElement=e},setCreatingCustomShapeState(e){this.creatingCustomShape=e},setAvailableFonts(){this.availableFonts=E.filter((e=>U(e.value)))},setToolbarState(e){this.toolbarState=e},setClipingImageElementId(e){this.clipingImageElementId=e},setRichtextAttrs(e){this.richTextAttrs=e},setSelectedTableCells(e){this.selectedTableCells=e},setScalingState(e){this.isScaling=e},updateSelectedSlidesIndex(e){this.selectedSlidesIndex=e},setDialogForExport(e){this.dialogForExport=e},setTextFormatPainter(e){this.textFormatPainter=e},setShapeFormatPainter(e){this.shapeFormatPainter=e},setSelectPanelState(e){this.showSelectPanel=e},setSearchPanelState(e){this.showSearchPanel=e}}});var z=l(7327),P=l(8134);const B="PPTIST_DISCARDED_DB",N="PPTist",j=async()=>{const e=(new Date).getTime(),t=localStorage.getItem(B),l=t?JSON.parse(t):[],a=await P.Z.getDatabaseNames(),n=a.filter((t=>{if(-1===t.indexOf(N))return!1;const[a,n,o]=t.split("_");return a!==N||!n||!o||(!!l.includes(n)||e-+o>=432e5)}));for(const o of n)P.Z.delete(o);localStorage.removeItem(B)};class Y extends P.Z{constructor(){super(`${N}_${O}_${(new Date).getTime()}`),(0,z.Z)(this,"snapshots",void 0),(0,z.Z)(this,"writingBoardImgs",void 0),this.version(1).stores({snapshots:"++id",writingBoardImgs:"++id"}),this.snapshots=this.table("snapshots"),this.writingBoardImgs=this.table("writingBoardImgs")}}const V=new Y,J=(0,o.Q_)("snapshot",{state:()=>({snapshotCursor:-1,snapshotLength:0}),getters:{canUndo(e){return e.snapshotCursor>0},canRedo(e){return e.snapshotCursor=0&&this.snapshotCursoro&&(l.push(t[0]),n--),n>=2&&V.snapshots.update(t[n-2],{index:e.slideIndex}),await V.snapshots.bulkDelete(l),this.setSnapshotCursor(n-1),this.setSnapshotLength(n)},async unDo(){if(this.snapshotCursor<=0)return;const e=$(),t=R(),l=this.snapshotCursor-1,a=await V.snapshots.orderBy("id").toArray(),n=a[l],{index:o,slides:i}=n,s=o>i.length-1?i.length-1:o;e.setSlides(i),e.updateSlideIndex(s),this.setSnapshotCursor(l),t.setActiveElementIdList([])},async reDo(){if(this.snapshotCursor>=this.snapshotLength-1)return;const e=$(),t=R(),l=this.snapshotCursor+1,a=await V.snapshots.orderBy("id").toArray(),n=a[l],{index:o,slides:i}=n,s=o>i.length-1?i.length-1:o;e.setSlides(i),e.updateSlideIndex(s),this.setSnapshotCursor(l),t.setActiveElementIdList([])}}}),q=(0,o.Q_)("keyboard",{state:()=>({ctrlKeyState:!1,shiftKeyState:!1,spaceKeyState:!1}),getters:{ctrlOrShiftKeyActive(e){return e.ctrlKeyState||e.shiftKeyState}},actions:{setCtrlKeyState(e){this.ctrlKeyState=e},setShiftKeyState(e){this.shiftKeyState=e},setSpaceKeyState(e){this.spaceKeyState=e}}}),X=(0,o.Q_)("screen",{state:()=>({screening:!1}),actions:{setScreening(e){this.screening=e}}}),G=(e,t)=>(0,D.padStart)(""+e,t,"0"),K=()=>!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|Mobile|BlackBerry|Symbian|Windows Phone)/i);var Q,ee,te,le,ae,ne,oe=l(3577);(function(e){e["UP"]="up",e["DOWN"]="down",e["TOP"]="top",e["BOTTOM"]="bottom"})(Q||(Q={})),function(e){e["TOP"]="top",e["BOTTOM"]="bottom",e["LEFT"]="left",e["RIGHT"]="right",e["VERTICAL"]="vertical",e["HORIZONTAL"]="horizontal",e["CENTER"]="center"}(ee||(ee={})),function(e){e["T"]="top",e["B"]="bottom",e["L"]="left",e["R"]="right"}(te||(te={})),function(e){e["LEFT_TOP"]="left-top",e["TOP"]="top",e["RIGHT_TOP"]="right-top",e["LEFT"]="left",e["RIGHT"]="right",e["LEFT_BOTTOM"]="left-bottom",e["BOTTOM"]="bottom",e["RIGHT_BOTTOM"]="right-bottom"}(le||(le={})),function(e){e["START"]="start",e["END"]="end",e["C"]="ctrl",e["C1"]="ctrl1",e["C2"]="ctrl2"}(ae||(ae={})),function(e){e["C"]="C",e["X"]="X",e["Z"]="Z",e["Y"]="Y",e["A"]="A",e["G"]="G",e["L"]="L",e["F"]="F",e["D"]="D",e["B"]="B",e["P"]="P",e["MINUS"]="-",e["EQUAL"]="=",e["DIGIT_0"]="0",e["DELETE"]="DELETE",e["UP"]="ARROWUP",e["DOWN"]="ARROWDOWN",e["LEFT"]="ARROWLEFT",e["RIGHT"]="ARROWRIGHT",e["ENTER"]="ENTER",e["SPACE"]=" ",e["TAB"]="TAB",e["BACKSPACE"]="BACKSPACE",e["ESC"]="ESCAPE",e["PAGEUP"]="PAGEUP",e["PAGEDOWN"]="PAGEDOWN",e["F5"]="F5"}(ne||(ne={}));const ie=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"粘贴为纯文本",value:"Ctrl + Shift + V"},{label:"快速复制粘贴",value:"Ctrl + D"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"},{label:"打开搜索替换",value:"Ctrl + F"},{label:"打印",value:"Ctrl + P"},{label:"关闭弹窗",value:"ESC"}]},{type:"幻灯片放映",children:[{label:"从头开始放映幻灯片",value:"F5"},{label:"从当前开始放映幻灯片",value:"Shift + F5"},{label:"切换上一页",value:"↑ / ← / PgUp"},{label:"切换下一页",value:"↓ / → / PgDown"},{label:"切换下一页",value:"Enter / Space"},{label:"退出放映",value:"ESC"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"移动画布",value:"Space + 鼠标拖拽"},{label:"缩放画布",value:"Ctrl + 鼠标滚轮"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"使画布适应当前屏幕",value:"Ctrl + 0"},{label:"上一页(未选中元素)",value:"↑ / ←"},{label:"下一页(未选中元素)",value:"↓ / →"},{label:"上一页",value:"鼠标上滚 / PgUp"},{label:"下一页",value:"鼠标下滚 / PgDown"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"},{label:"完成自定义形状绘制",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"图表数据编辑",children:[{label:"聚焦到下一行",value:"Enter"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"行内代码",value:"Ctrl + E"},{label:"上角标",value:"Ctrl + ;"},{label:"下角标",value:"Ctrl + '"},{label:"选中段落",value:"ESC"}]}];var se=l(2152),re=l.n(se),ue=l(1354),ce=l.n(ue);const de="pptist",pe=e=>ce().AES.encrypt(e,de).toString(),ve=e=>{const t=ce().AES.decrypt(e,de);return t.toString(ce().enc.Utf8)},me=e=>new Promise(((t,l)=>{const a=document.createElement("button"),n=new(re())(a,{text:()=>e,action:()=>"copy",container:document.body});n.on("success",(e=>{n.destroy(),t(e)})),n.on("error",(e=>{n.destroy(),l(e)})),document.body.appendChild(a),a.click(),document.body.removeChild(a)})),he=()=>new Promise(((e,t)=>{navigator.clipboard?.readText?navigator.clipboard.readText().then((l=>(l||t("剪贴板为空或者不包含文本"),e(l)))):t("浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V")})),fe=e=>{let t;try{t=JSON.parse(ve(e))}catch{t=e}return t},ge=e=>{const t=e.split("\r\n");""===t[t.length-1]&&t.pop();let l=-1;const a=[];for(const n in t){if(a[n]=t[n].split("\t"),1===a[n].length)return null;if(-1===l)l=a[n].length;else if(l!==a[n].length)return null}return a},ye=e=>{const{left:t,top:l,width:a,height:n,rotate:o=0}=e,i=Math.sqrt(Math.pow(a,2)+Math.pow(n,2))/2,s=180*Math.atan(n/a)/Math.PI,r=(180-o-s)*Math.PI/180,u=(s-o)*Math.PI/180,c=t+a/2,d=l+n/2,p=[c+i*Math.cos(r),c+i*Math.cos(u),c-i*Math.cos(r),c-i*Math.cos(u)],v=[d-i*Math.sin(r),d-i*Math.sin(u),d+i*Math.sin(r),d+i*Math.sin(u)];return{xRange:[Math.min(...p),Math.max(...p)],yRange:[Math.min(...v),Math.max(...v)]}},we=e=>{const{xRange:t,yRange:l}=ye({left:e.left,top:e.top,width:e.width,height:e.height,rotate:0}),{xRange:a,yRange:n}=ye({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate});return{offsetX:a[0]-t[0],offsetY:n[0]-l[0]}},xe=e=>{let t,l,a,n;if("line"===e.type)t=e.left,l=e.left+Math.max(e.start[0],e.end[0]),a=e.top,n=e.top+Math.max(e.start[1],e.end[1]);else if("rotate"in e&&e.rotate){const{left:o,top:i,width:s,height:r,rotate:u}=e,{xRange:c,yRange:d}=ye({left:o,top:i,width:s,height:r,rotate:u});t=c[0],l=c[1],a=d[0],n=d[1]}else t=e.left,l=e.left+e.width,a=e.top,n=e.top+e.height;return{minX:t,maxX:l,minY:a,maxY:n}},ke=e=>{const t=[],l=[],a=[],n=[];e.forEach((e=>{const{minX:o,maxX:i,minY:s,maxY:r}=xe(e);t.push(o),l.push(s),a.push(i),n.push(r)}));const o=Math.min(...t),i=Math.max(...a),s=Math.min(...l),r=Math.max(...n);return{minX:o,maxX:i,minY:s,maxY:r}},be=e=>{const t=[];return e.forEach((e=>{const l=t.findIndex((t=>t.value===e.value));if(-1===l)t.push(e);else{const a=t[l],n=Math.min(a.range[0],e.range[0]),o=Math.max(a.range[1],e.range[1]),i=[n,o],s={value:e.value,range:i};t[l]=s}})),t},_e=e=>{const t={};for(const l of e)t[l.id]=(0,r.x0)(10);return t},Ie=e=>{const t={},l={};for(const a of e){const e=a.groupId;e&&!t[e]&&(t[e]=(0,r.x0)(10)),l[a.id]=(0,r.x0)(10)}return{groupIdMap:t,elIdMap:l}},Se=e=>{const t=(0,W.Z)(e);return[t.setAlpha(.3).toRgbString(),t.setAlpha(.1).toRgbString()]},Ce=e=>{const t=e.start.join(","),l=e.end.join(",");if(e.broken){const a=e.broken.join(",");return`M${t} L${a} L${l}`}if(e.curve){const a=e.curve.join(",");return`M${t} Q${a} ${l}`}if(e.cubic){const[a,n]=e.cubic,o=a.join(","),i=n.join(",");return`M${t} C${o} ${i} ${l}`}return`M${t} L${l}`},Le=(e,t)=>{const l=e.getBoundingClientRect(),a=t.getBoundingClientRect();return l.top>=a.top&&l.bottom<=a.bottom};var Te=l(6108),Ee=l(1061),Me=l(8261),Ue=l(9512),We=l(2025),De=l(9872),He=l(1321),Fe=l(2696),Ae=l(3271),$e=l(9015),Ze=l(5761),Oe=l(7559),Re=l(4023),ze=l(4141),Pe=l(5010),Be=l(6492),Ne=l(1094),je=l(2677),Ye=l(683),Ve=l(7259),Je=l(1258),qe=l(9978),Xe=l(597),Ge=l(85),Ke=l(6071),Qe=l(2489),et=l(9925),tt=l(5361),lt=l(3185),at=l(139),nt=l(8461),ot=l(2882),it=l(3862),st=l(3764),rt=l(9371),ut=l(9912),ct=l(3935),dt=l(3735),pt=l(3542),vt=l(7537),mt=l(5314),ht=l(3325),ft=l(3275),gt=l(3317),yt=l(7712),wt=l(9370),xt=l(2778),kt=l(4422),bt=l(4957),_t=l(7872),It=l(5356),St=l(8684),Ct=l(9577),Lt=l(887),Tt=l(6866),Et=l(509),Mt=l(7606),Ut=l(4412),Wt=l(8814),Dt=l(2057),Ht=l(6048),Ft=l(5114),At=l(9917),$t=l(7747),Zt=l(7425),Ot=l(6717),Rt=l(6302),zt=l(3060),Pt=l(7107),Bt=l(2100),Nt=l(5460),jt=l(5268),Yt=l(1432),Vt=l(5193),Jt=l(4566),qt=l(7091),Xt=l(9602),Gt=l(4891),Kt=l(4012),Qt=l(3681),el=l(1440),tl=l(3482),ll=l(646),al=l(8e3),nl=l(4628),ol=l(9141),il=l(1060),sl=l(8389),rl=l(3467),ul=l(6935),cl=l(3590),dl=l(6453),pl=l(5957),vl=l(4467),ml=l(5547),hl=l(5650),fl=l(2790),gl=l(5620),yl=l(3339),wl=l(4666),xl=l(5215),kl=l(904),bl=l(3650),_l=l(4296),Il=l(6519),Sl=l(4790),Cl=l(3260),Ll=l(2146),Tl=l(6755),El=l(2849),Ml=l(6940),Ul=l(6116),Wl=l(5741),Dl=l(2939),Hl=l(9524),Fl=l(6135),Al=l(6821),$l=l(6149);const Zl={IconPlayOne:$l.Z,IconFullScreenPlay:Al.Z,IconLock:Fl.Z,IconUnlock:Hl.Z,IconPpt:Dl.Z,IconFormat:Wl.Z,IconPicture:Ul.Z,IconFullScreen:Ml.Z,IconList:El.Z,IconOrderedList:Tl.Z,IconFlipVertically:Ll.Z,IconFlipHorizontally:Cl.Z,IconFontSize:Sl.Z,IconCode:Il.Z,IconTextBold:_l.Z,IconTextItalic:bl.Z,IconTextUnderline:kl.Z,IconStrikethrough:xl.Z,IconEdit:wl.Z,IconQuote:yl.Z,IconBackgroundColor:gl.Z,IconGroup:fl.Z,IconUngroup:hl.Z,IconBack:ml.Z,IconNext:vl.Z,IconFullwidth:pl.Z,IconAlignTop:dl.Z,IconAlignLeft:cl.Z,IconAlignRight:ul.Z,IconAlignBottom:rl.Z,IconAlignVertically:sl.Z,IconAlignHorizontally:il.Z,IconBringToFront:ol.Z,IconSendToBack:nl.Z,IconAlignTextLeft:al.Z,IconAlignTextRight:ll.Z,IconAlignTextCenter:tl.Z,IconAlignTextBoth:el.Z,IconRowHeight:Qt.Z,IconWrite:Kt.Z,IconInsertTable:Gt.Z,IconAddText:Xt.Z,IconFill:qt.Z,IconTailoring:Jt.Z,IconEffects:Vt.Z,IconColorFilter:Yt.Z,IconUp:jt.Z,IconDown:Nt.Z,IconPlus:Bt.Z,IconMinus:Pt.Z,IconConnection:zt.Z,IconBringToFrontOne:Rt.Z,IconSentToBack:Ot.Z,IconGithub:Zt.Z,IconChartProportion:$t.Z,IconChartHistogram:At.Z,IconChartHistogramOne:Ft.Z,IconChartLineArea:Ht.Z,IconChartRing:Dt.Z,IconChartScatter:Wt.Z,IconChartLine:Ut.Z,IconChartPie:Mt.Z,IconText:Et.Z,IconRotate:Tt.Z,IconLeftTwo:Lt.Z,IconRightTwo:Ct.Z,IconPlatte:St.Z,IconClose:It.Z,IconCloseSmall:_t.Z,IconUndo:bt.Z,IconTransform:kt.Z,IconClick:xt.Z,IconTheme:wt.Z,IconArrowCircleLeft:yt.Z,IconGraphicDesign:gt.Z,IconLogout:ft.Z,IconErase:ht.Z,IconClear:mt.Z,IconAlignTextTopOne:vt.Z,IconAlignTextBottomOne:pt.Z,IconAlignTextMiddleOne:dt.Z,IconPause:ct.Z,IconVolumeMute:ut.Z,IconVolumeNotice:rt.Z,IconVolumeSmall:st.Z,IconVideoTwo:it.Z,IconFormula:ot.Z,IconLinkOne:nt.Z,IconFullScreenOne:at.Z,IconOffScreenOne:lt.Z,IconPower:tt.Z,IconListView:et.Z,IconMagic:Qe.Z,IconHighLight:Ke.Z,IconDownload:Ge.Z,IconIndentLeft:Xe.Z,IconIndentRight:qe.Z,IconVerticalSpacingBetweenItems:Je.Z,IconCopy:Ve.Z,IconDelete:Ye.Z,IconSquare:je.Z,IconRound:Ne.Z,IconNeedle:Be.Z,IconTextRotationNone:Pe.Z,IconTextRotationDown:ze.Z,IconFormatBrush:Re.Z,IconPreviewOpen:Oe.Z,IconPreviewClose:Ze.Z,IconStopwatchStart:$e.Z,IconSearch:Ae.Z,IconLeft:Fe.Z,IconRight:He.Z,IconMoveOne:De.Z,IconHamburgerButton:We.Z,IconAttention:Ue.Z,IconCheckOne:Me.Z,IconCloseOne:Ee.Z,IconInfo:Te.Z};var Ol={install(e){for(const t of Object.keys(Zl))e.component(t,Zl[t])}};const Rl=["id"],zl={class:"icons"},Pl={class:"content"},Bl={key:0,class:"title"},Nl={class:"description"},jl={key:0,class:"control"};var Yl=(0,i.aZ)({__name:"Message",props:{id:{},message:{},type:{default:"success"},title:{default:""},duration:{default:3e3},closable:{type:Boolean,default:!1}},emits:["close","destroy"],setup(e,{expose:t,emit:l}){const{IconAttention:a,IconCheckOne:o,IconCloseOne:r,IconInfo:u,IconCloseSmall:c}=Zl,d=e,p=l,v=(0,s.iH)(!0),m=(0,s.iH)(null),h=()=>{d.duration<=0||(m.value=setTimeout(g,d.duration))},f=()=>{m.value&&clearTimeout(m.value)},g=()=>v.value=!1;return(0,i.wF)((()=>{f()})),(0,i.bv)((()=>{h()})),t({close:g}),(e,t)=>((0,i.wg)(),(0,i.j4)(n.uT,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:t[3]||(t[3]=e=>p("close")),onAfterLeave:t[4]||(t[4]=e=>p("destroy"))},{default:(0,i.w5)((()=>[v.value?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"message",id:e.id},[(0,i._)("div",{class:"message-container",onMouseenter:t[1]||(t[1]=e=>f()),onMouseleave:t[2]||(t[2]=e=>h())},[(0,i._)("div",zl,["warning"===e.type?((0,i.wg)(),(0,i.j4)((0,s.SU)(a),{key:0,theme:"filled",size:"18",fill:"#faad14"})):(0,i.kq)("",!0),"success"===e.type?((0,i.wg)(),(0,i.j4)((0,s.SU)(o),{key:1,theme:"filled",size:"18",fill:"#52c41a"})):(0,i.kq)("",!0),"error"===e.type?((0,i.wg)(),(0,i.j4)((0,s.SU)(r),{key:2,theme:"filled",size:"18",fill:"#ff4d4f"})):(0,i.kq)("",!0),"info"===e.type?((0,i.wg)(),(0,i.j4)((0,s.SU)(u),{key:3,theme:"filled",size:"18",fill:"#1677ff"})):(0,i.kq)("",!0)]),(0,i._)("div",Pl,[e.title?((0,i.wg)(),(0,i.iD)("div",Bl,(0,oe.zw)(e.title),1)):(0,i.kq)("",!0),(0,i._)("div",Nl,(0,oe.zw)(e.message),1)]),e.closable?((0,i.wg)(),(0,i.iD)("div",jl,[(0,i._)("span",{class:"close-btn",onClick:t[0]||(t[0]=e=>g())},[(0,i.Wm)((0,s.SU)(c))])])):(0,i.kq)("",!0)],32)],8,Rl)):(0,i.kq)("",!0)])),_:1}))}}),Vl=l(3744);const Jl=(0,Vl.Z)(Yl,[["__scopeId","data-v-03d14766"]]);var ql=Jl;const Xl=[];let Gl=null,Kl=0;const Ql={duration:3e3},ea=e=>{const t="message-"+Kl++,l={...Ql,...e,id:t};Gl||(Gl=document.createElement("div"),Gl.className="message-wrap",Gl.style.cssText="\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n z-index: 6000;\n pointer-events: none;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n padding: 15px;\n background-color: rgba(255, 255, 255, 0);\n transition: all 1s ease-in-out;\n align-items: center;\n ",document.body.appendChild(Gl));const a=(0,i.Wm)(ql,l,null),o=document.createElement("div");a.appContext=e.ctx||ea._context||null,a.props.onClose=e.onClose,a.props.onDestroy=()=>{Gl&&Gl.childNodes.length<=1&&(Gl.remove(),Gl=null),(0,n.sY)(null,o)},(0,n.sY)(a,o),Gl.appendChild(o.firstElementChild);const s={id:t,close:()=>a?.component?.exposed?.close()};return Xl.push(s),s};ea.success=(e,t)=>ea({...t,type:"success",message:e}),ea.info=(e,t)=>ea({...t,type:"info",message:e}),ea.warning=(e,t)=>ea({...t,type:"warning",message:e}),ea.error=(e,t)=>ea({...t,type:"error",message:e}),ea.closeAll=function(){for(let e=Xl.length-1;e>=0;e--)Xl[e].close()};var ta=ea;const la=e=>{const t=e.replace(/[\n\r]+/g,"
    "),l=t.split("
    ");let a="";for(const n of l)n&&(a+=`
    ${n}
    `);return a},aa=e=>new Promise((t=>{const l=document.createElement("img");l.src=e,l.style.opacity="0",document.body.appendChild(l),l.onload=()=>{const e=l.clientWidth,a=l.clientHeight;l.onload=null,l.onerror=null,document.body.removeChild(l),t({width:e,height:a})},l.onerror=()=>{l.onload=null,l.onerror=null}})),na=e=>new Promise((t=>{const l=new FileReader;l.addEventListener("load",(()=>{t(l.result)})),l.readAsDataURL(e)})),oa=1e3;var ia,sa;(function(e){e["ROUND_RECT"]="roundRect",e["ROUND_RECT_DIAGONAL"]="roundRectDiagonal",e["ROUND_RECT_SINGLE"]="roundRectSingle",e["ROUND_RECT_SAMESIDE"]="roundRectSameSide",e["CUT_RECT_DIAGONAL"]="cutRectDiagonal",e["CUT_RECT_SINGLE"]="cutRectSingle",e["CUT_RECT_SAMESIDE"]="cutRectSameSide",e["CUT_ROUND_RECT"]="cutRoundRect",e["MESSAGE"]="message",e["ROUND_MESSAGE"]="roundMessage",e["L"]="L",e["RING_RECT"]="ringRect",e["PLUS"]="plus",e["TRIANGLE"]="triangle",e["PARALLELOGRAM_LEFT"]="parallelogramLeft",e["PARALLELOGRAM_RIGHT"]="parallelogramRight",e["TRAPEZOID"]="trapezoid",e["BULLET"]="bullet",e["INDICATOR"]="indicator"})(ia||(ia={})),function(e){e["TEXT"]="text",e["IMAGE"]="image",e["SHAPE"]="shape",e["LINE"]="line",e["CHART"]="chart",e["TABLE"]="table",e["LATEX"]="latex",e["VIDEO"]="video",e["AUDIO"]="audio"}(sa||(sa={}));const ra={[ia.ROUND_RECT]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M ${a} 0 L ${e-a} 0 Q ${e} 0 ${e} ${a} L ${e} ${t-a} Q ${e} ${t} ${e-a} ${t} L ${a} ${t} Q 0 ${t} 0 ${t-a} L 0 ${a} Q 0 0 ${a} 0 Z`}},[ia.CUT_RECT_DIAGONAL]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M 0 ${t-a} L 0 0 L ${e-a} 0 L ${e} ${a} L ${e} ${t} L ${a} ${t} Z`}},[ia.CUT_RECT_SINGLE]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M 0 ${t} L 0 0 L ${e-a} 0 L ${e} ${a} L ${e} ${t} Z`}},[ia.CUT_RECT_SAMESIDE]:{editable:!0,defaultValue:.2,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M 0 ${a} L ${a} 0 L ${e-a} 0 L ${e} ${a} L ${e} ${t} L 0 ${t} Z`}},[ia.ROUND_RECT_DIAGONAL]:{editable:!0,defaultValue:.125,range:[0,1],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M ${a} 0 L ${e} 0 L ${e} ${t-a} Q ${e} ${t} ${e-a} ${t} L 0 ${t} L 0 ${a} Q 0 0 ${a} 0 Z`}},[ia.ROUND_RECT_SINGLE]:{editable:!0,defaultValue:.125,range:[0,1],relative:"right",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M 0 0 L ${e-a} 0 Q ${e} 0 ${e} ${a} L ${e} ${t} L 0 ${t} L 0 0 Z`}},[ia.ROUND_RECT_SAMESIDE]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M 0 ${a} Q 0 0 ${a} 0 L ${e-a} 0 Q ${e} 0 ${e} ${a} L ${e} ${t} L 0 ${t} Z`}},[ia.CUT_ROUND_RECT]:{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M ${a} 0 L ${e-a} 0 L ${e} ${a} L ${e} ${t} L 0 ${t} L 0 ${a} Q 0 0 ${a} 0 Z`}},[ia.MESSAGE]:{formula:(e,t)=>{const l=.2*e,a=.2*t;return`M 0 0 L ${e} 0 L ${e} ${t-a} L ${e/2} ${t-a} L ${e/2-l} ${t} L ${e/2-l} ${t-a} L 0 ${t-a} Z`}},[ia.ROUND_MESSAGE]:{formula:(e,t)=>{const l=.125*Math.min(e,t),a=.2*e,n=.2*t;return`M 0 ${l} Q 0 0 ${l} 0 L ${e-l} 0 Q ${e} 0 ${e} ${l} L ${e} ${t-l-n} Q ${e} ${t-n} ${e-l} ${t-n} L ${e/2} ${t-n} L ${e/2-a} ${t} L ${e/2-a} ${t-n} L ${l} ${t-n} Q 0 ${t-n} 0 ${t-l-n} L 0 ${l} Z`}},[ia.L]:{editable:!0,defaultValue:.25,range:[.1,.9],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M 0 0 L 0 ${t} L ${e} ${t} L ${e} ${t-a} L ${a} ${t-a} L ${a} 0 Z`}},[ia.RING_RECT]:{editable:!0,defaultValue:.25,range:[.1,.45],relative:"left",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M 0 0 ${e} 0 ${e} ${t} L 0 ${t} L 0 0 Z M ${a} ${a} L ${a} ${t-a} L ${e-a} ${t-a} L ${e-a} ${a} Z`}},[ia.PLUS]:{editable:!0,defaultValue:.25,range:[.1,.9],relative:"center",getBaseSize:(e,t)=>Math.min(e,t),formula:(e,t,l)=>{const a=Math.min(e,t)*l;return`M ${e/2-a/2} 0 L ${e/2-a/2} ${t/2-a/2} L 0 ${t/2-a/2} L 0 ${t/2+a/2} L ${e/2-a/2} ${t/2+a/2} L ${e/2-a/2} ${t} L ${e/2+a/2} ${t} L ${e/2+a/2} ${t/2+a/2} L ${e} ${t/2+a/2} L ${e} ${t/2-a/2} L ${e/2+a/2} ${t/2-a/2} L ${e/2+a/2} 0 Z`}},[ia.TRIANGLE]:{editable:!0,defaultValue:.5,range:[0,1],relative:"left",getBaseSize:e=>e,formula:(e,t,l)=>{const a=e*l;return`M ${a} 0 L 0 ${t} L ${e} ${t} Z`}},[ia.PARALLELOGRAM_LEFT]:{editable:!0,defaultValue:.25,range:[0,.9],relative:"left",getBaseSize:e=>e,formula:(e,t,l)=>{const a=e*l;return`M ${a} 0 L ${e} 0 L ${e-a} ${t} L 0 ${t} Z`}},[ia.PARALLELOGRAM_RIGHT]:{editable:!0,defaultValue:.25,range:[0,.9],relative:"right",getBaseSize:e=>e,formula:(e,t,l)=>{const a=e*l;return`M 0 0 L ${e-a} 0 L ${e} ${t} L ${a} ${t} Z`}},[ia.TRAPEZOID]:{editable:!0,defaultValue:.25,range:[0,.5],relative:"left",getBaseSize:e=>e,formula:(e,t,l)=>{const a=e*l;return`M ${a} 0 L ${e-a} 0 L ${e} ${t} L 0 ${t} Z`}},[ia.BULLET]:{editable:!0,defaultValue:.2,range:[0,1],relative:"top",getBaseSize:(e,t)=>t,formula:(e,t,l)=>{const a=t*l;return`M ${e/2} 0 L 0 ${a} L 0 ${t} L ${e} ${t} L ${e} ${a} Z`}},[ia.INDICATOR]:{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:e=>e,formula:(e,t,l)=>{const a=e*l;return`M ${e} ${t/2} L ${e-a} 0 L 0 0 L ${a} ${t/2} L 0 ${t} L ${e-a} ${t} Z`}}},ua=[{type:"矩形",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",pptxShapeType:"rect"},{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z",pathFormula:ia.ROUND_RECT,pptxShapeType:"roundRect"},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z",pathFormula:ia.CUT_RECT_SINGLE,pptxShapeType:"snip1Rect"},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z",pathFormula:ia.CUT_RECT_SAMESIDE,pptxShapeType:"snip2SameRect"},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z",pathFormula:ia.CUT_RECT_DIAGONAL,pptxShapeType:"snip2DiagRect"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 50 L 200 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:ia.CUT_ROUND_RECT,pptxShapeType:"snipRoundRect"},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z",pathFormula:ia.ROUND_RECT_SINGLE,pptxShapeType:"round1Rect"},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z",pathFormula:ia.ROUND_RECT_SAMESIDE,pptxShapeType:"round2SameRect"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 200 150 Q 200 200 150 200 L 0 200 L 0 50 Q 0 0 50 0 Z",pathFormula:ia.ROUND_RECT_DIAGONAL,pptxShapeType:"round2DiagRect"},{viewBox:[200,200],path:"M 0 80 L 60 0 L 100 40 L 180 20 L 200 120 L 160 200 L 0 200 L 60 140 Z",title:"任意多边形"}]},{type:"常用形状",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",pptxShapeType:"ellipse"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:ia.TRIANGLE,pptxShapeType:"triangle"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 70 20 L 0 160 Q 0 200 40 200 L 160 200 Q 200 200 200 160 L 130 20 Q 100 -20 70 20 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z",pathFormula:ia.PARALLELOGRAM_LEFT,pptxShapeType:"parallelogram"},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z",pathFormula:ia.PARALLELOGRAM_RIGHT},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z",pathFormula:ia.TRAPEZOID,pptxShapeType:"trapezoid"},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z",pptxShapeType:"diamond"},{viewBox:[200,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z",pathFormula:ia.BULLET},{viewBox:[200,200],path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z",pathFormula:ia.INDICATOR},{viewBox:[200,200],path:"M 0 0 C 80 20 120 20 200 0 C 180 80 180 120 200 200 C 80 180 120 180 0 200 C 20 120 20 80 0 0 Z"},{viewBox:[200,200],path:"M 10 10 C 60 0 140 0 190 10 C 200 60 200 140 190 190 C 140 200 60 200 10 190 C 0 140 0 60 10 10 Z"},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z",pptxShapeType:"pie"},{viewBox:[200,200],path:"M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z",pptxShapeType:"chord"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z",pptxShapeType:"teardrop"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z",pptxShapeType:"pentagon"},{viewBox:[200,200],path:"M 40 0 L 160 0 L 200 100 L 160 200 L 40 200 L 0 100 Z",pptxShapeType:"hexagon"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z",pptxShapeType:"octagon"},{viewBox:[200,200],path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z",pathFormula:ia.L},{viewBox:[200,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z",pathFormula:ia.RING_RECT},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:[200,200],path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z",pathFormula:ia.PLUS},{viewBox:[200,200],path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:ia.MESSAGE},{viewBox:[200,200],path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z",pathFormula:ia.ROUND_MESSAGE},{viewBox:[200,200],path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:[200,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z"},{viewBox:[200,200],path:"M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 120 80 L 200 100 L 120 120 L 100 200 L 80 120 L 0 100 L 80 80 L 100 0 Z",pptxShapeType:"star4"},{viewBox:[1024,1024],path:"M1018.67652554 400.05983681l-382.95318779-5.89158658L512 34.78141155 388.27666225 394.16825023l-382.95318779 5.89158658L311.68602415 629.83174977l-117.83174978 365.27842665 312.25413766-223.88032637 312.25413904 223.88032637-117.83175116-365.27842665 318.14572563-229.77191296z",pptxShapeType:"star5",special:!0},{viewBox:[200,200],path:"M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 140 60 L 200 60 L 160 100 L 200 140 L 140 140 L 100 200 L 60 140 L 0 140 L 40 100 L 0 60 L 60 60 L 100 0 Z",pptxShapeType:"star6"},{viewBox:[200,200],path:"M 100 0 L 80 40 L 20 20 L 40 80 L 0 100 L 40 120 L 20 180 L 80 160 L 100 200 L 120 160 L 180 180 L 160 120 L 200 100 L 160 80 L 180 20 L 120 40 L 100 0 Z"},{viewBox:[200,200],path:"M 200 0 C 80 40 80 160 200 200 C -60 200 -60 0 200 0 Z"}]},{type:"箭头",children:[{viewBox:[200,200],path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z",pptxShapeType:"upArrow"},{viewBox:[200,200],path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z",pptxShapeType:"downArrow"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z",pptxShapeType:"leftArrow"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z",pptxShapeType:"rightArrow"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z",pptxShapeType:"upDownArrow"},{viewBox:[200,200],path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z",pptxShapeType:"leftRightArrow"},{viewBox:[200,200],path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z",pptxShapeType:"notchedRightArrow"},{viewBox:[200,200],path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:[200,200],path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z",pptxShapeType:"chevron"},{viewBox:[200,200],path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:[200,200],path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z",pptxShapeType:"homePlate"},{viewBox:[200,200],path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:[1024,1024],path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z",special:!0},{viewBox:[1024,1024],path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z",special:!0}]},{type:"其他形状",children:[{viewBox:[1024,1024],path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z",special:!0},{viewBox:[1024,1024],path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z",special:!0},{viewBox:[1024,1024],path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z",special:!0},{viewBox:[1024,1024],path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z",special:!0},{viewBox:[1024,1024],path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z",special:!0},{viewBox:[1024,1024],path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z",special:!0},{viewBox:[1024,1024],path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z",special:!0},{viewBox:[1024,1024],path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z",special:!0},{viewBox:[1024,1024],path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z",special:!0},{viewBox:[1024,1024],path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z",special:!0},{viewBox:[1024,1024],path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z",special:!0},{viewBox:[1024,1024],path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z",special:!0},{viewBox:[1024,1024],path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z",special:!0},{viewBox:[1024,1024],path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z",special:!0},{viewBox:[1024,1024],path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z",special:!0},{viewBox:[1024,1024],path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z",special:!0},{viewBox:[1024,1024],path:"M997.8886764 504.17210418L537.2729208 43.89182982c-13.97838539-13.97838539-36.56745619-13.97838539-50.5458416 0L26.1113236 504.17210418c-13.41924998 13.41924998-21.02349164 31.64706454-21.02349163 50.65766867 0 39.47496036 32.09437288 71.56933323 71.56933324 71.56933323h48.53295408V954.83524937c0 19.79339373 15.99127289 35.78466661 35.78466663 35.78466662H440.43066677V740.12724968h125.24633315v250.49266631h297.34821416c19.79339373 0 35.78466661-15.99127289 35.78466663-35.78466662V626.39910608h48.53295408c19.01060414 0 37.23841869-7.49241457 50.65766869-21.02349163 27.84494371-27.95677079 27.84494371-73.24673948-0.11182708-101.20351027z",special:!0},{viewBox:[1024,1024],path:"M1009.13013121 349.27572283L674.72427717 14.86986879c-8.82158299-8.82158299-20.35749924-13.16451618-31.89341544-13.16451618s-23.07183245 4.34293316-31.89341547 13.16451618L392.29790453 233.6451272c-16.5574327-1.90003326-33.25058207-2.71433322-49.94373146-2.71433324-99.34459624 0-198.68919249 32.70771543-280.25490606 98.12314628-20.90036589 16.69314938-22.52896582 48.04369819-3.66434987 67.04403081l246.59717401 246.59717401-292.33368895 292.06225564c-3.52863319 3.52863319-5.83581644 8.27871636-6.24296642 13.30023282l-4.61436649 50.48659809c-1.22144996 12.75736619 8.95729967 23.6146991 21.57894918 23.6146991 0.6785833 0 1.35716662 0 2.03574992-0.13571666l50.48659809-4.61436649c5.02151649-0.40714999 9.77159962-2.71433322 13.30023282-6.24296643l292.33368896-292.33368896 246.59717402 246.59717401c8.82158299 8.82158299 20.35749924 13.16451618 31.89341544 13.16451618 13.16451618 0 26.19331567-5.70009979 35.15061536-16.82886604 76.40848044-95.40881307 108.16617924-214.83947521 95.27309638-330.33435417l218.63954175-218.63954173c17.50744934-17.37173267 17.50744934-45.8722316 0-63.51539759z",special:!0},{viewBox:[1024,1024],path:"M976.62005979 160.47737905c-0.39452595-0.39452595-80.35178503 78.64217259-239.47725131 237.50462156l-111.6508437-111.65084369 237.89914752-237.89914752c-125.19623464-75.35445635-286.03131335-56.02268482-390.31767264 48.26367449-81.92988882 81.92988882-112.57140424 200.15616502-83.37648398 310.09739626l2.36715569 8.81107954-372.82702222 372.69551356c-8.15353628 8.15353628-8.15353628 21.56741857 0 29.72095487l185.95323084 185.95323084c8.15353628 8.15353628 21.56741857 8.15353628 29.72095485 0l372.56400493-372.56400493 8.81107953 2.3671557c110.07273989 29.32642892 228.29901608-1.18357785 310.36041356-83.24497533 104.41786795-104.2863593 123.74963948-265.12143802 49.97328693-390.05465535z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m220.16 343.26755556l-239.616 332.23111111c-14.44977778 20.13866667-44.37333333 20.13866667-58.82311111 0L291.84 481.16622222c-4.32355555-6.03022222 0-14.44977778 7.39555555-14.44977777h53.36177778c11.60533333 0 22.64177778 5.57511111 29.46844445 15.13244444l81.00977777 112.41244444 178.85866667-248.03555555c6.82666667-9.44355555 17.74933333-15.13244445 29.46844445-15.13244445H724.76444445c7.39555555 0 11.71911111 8.41955555 7.39555555 14.44977778z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h418.70222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m188.18844445 703.37422223l-75.09333334-0.34133333L512 570.48177778l-112.98133333 134.71288889-75.20711112 0.34133333c-5.00622222 0-9.10222222-3.98222222-9.10222222-9.10222222 0-2.16177778 0.79644445-4.20977778 2.16177778-5.91644445l148.02488889-176.35555555L316.87111111 337.92c-1.36533333-1.70666667-2.16177778-3.75466667-2.16177778-5.91644445 0-5.00622222 4.096-9.10222222 9.10222222-9.10222222l75.20711112 0.34133334L512 458.06933333l112.98133333-134.71288888 75.09333334-0.34133334c5.00622222 0 9.10222222 3.98222222 9.10222222 9.10222222 0 2.16177778-0.79644445 4.20977778-2.16177778 5.91644445L559.21777778 514.27555555l147.91111111 176.35555556c1.36533333 1.70666667 2.16177778 3.75466667 2.16177778 5.91644444 0 5.00622222-4.096 9.10222222-9.10222222 9.10222223z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H548.40888889v172.94222222c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222h-54.61333334c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V548.40888889H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h172.94222222V302.64888889c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h54.61333334c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v172.94222222h172.94222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m163.95377778 517.57511112L427.46311111 700.64355555c-1.59288889 1.13777778-3.41333333 1.70666667-5.34755556 1.70666667-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V331.88977778c0-1.93422222 0.56888889-3.75466667 1.70666667-5.34755556 2.95822222-4.096 8.64711111-5.00622222 12.74311111-2.048L675.95377778 505.17333333c0.79644445 0.56888889 1.47911111 1.25155555 2.048 2.048 2.95822222 3.98222222 2.048 9.67111111-2.048 12.62933334z",special:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m200.81777778 666.39644445l-32.54044445 44.37333333c-2.95822222 4.096-8.64711111 4.89244445-12.74311111 1.93422222L479.34577778 577.76355555c-2.38933333-1.70666667-3.75466667-4.43733333-3.75466667-7.39555555V257.13777778c0-5.00622222 4.096-9.10222222 9.10222222-9.10222223h54.72711112c5.00622222 0 9.10222222 4.096 9.10222222 9.10222223v281.6l162.24711111 117.30488889c4.096 2.84444445 5.00622222 8.53333333 2.048 12.62933333z",special:!0},{viewBox:[1024,1024],path:"M981.10577778 314.48177778c-25.6-61.09866667-62.464-115.93955555-109.34044445-163.04355556-46.87644445-46.99022222-101.60355555-83.968-162.70222222-109.568C646.59911111 15.58755555 580.38044445 2.27555555 512 2.27555555h-2.27555555c-68.83555555 0.34133333-135.39555555 13.99466667-198.08711112 40.84622223-60.52977778 25.94133333-114.80177778 62.80533333-161.22311111 109.79555555-46.42133333 46.99022222-82.83022222 101.60355555-108.08888889 162.47466667C16.27022222 378.42488889 3.072 445.44 3.41333333 514.38933333c0.34133333 78.96177778 19.22844445 157.35466667 54.49955556 227.44177778v172.94222222c0 28.89955555 23.43822222 52.33777778 52.224 52.33777778h172.71466666c69.97333333 35.38488889 148.13866667 54.272 226.98666667 54.61333334h2.38933333c68.03911111 0 133.91644445-13.19822222 196.03911112-39.02577778 60.75733333-25.37244445 115.37066667-61.78133333 162.13333333-108.31644445 46.87644445-46.53511111 83.74044445-100.92088889 109.568-161.56444444 26.73777778-62.80533333 40.39111111-129.59288889 40.73244445-198.54222223 0.22755555-69.29066667-13.19822222-136.53333333-39.59466667-199.79377777zM284.89955555 566.61333333c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955556 54.61333333-24.34844445 54.61333333-54.49955556 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955556-54.61333333s24.46222222-54.61333333 54.49955556-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM745.4750693 325.8561164l-267.95558363 371.52436096c-16.15876501 22.52048353-49.62140436 22.52048353-65.78016939 0L253.07805667 477.51948567c-4.83490607-6.74342161 0-16.15876501 8.27023406-16.15876499h59.67291961c12.97790576 0 25.31963967 6.23448413 32.95370188 16.92217123l90.59087157 125.70755774 200.01242995-277.37092701c7.63406221-10.56045272 19.84856175-16.92217125 32.95370189-16.92217124H737.20483524c8.27023407 0 13.10514012 9.41534338 8.27023406 16.158765z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h468.2224823c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM720.79160148 697.63494611c5.59831228 6.61618726 0.8906406 16.6677025-7.76129658 16.66770249h-74.94104404c-5.98001539 0-11.70556205-2.67192177-15.64982754-7.25235911L512 575.36271635l-110.43943332 131.68757314c-3.81703111 4.58043732-9.54257777 7.25235911-15.64982754 7.25235911H310.9696951c-8.65193717 0-13.35960887-10.05151525-7.76129658-16.66770249L458.81603326 512 303.20839852 326.36505389c-5.59831228-6.61618726-0.8906406-16.6677025 7.76129658-16.66770249h74.94104404c5.98001539 0 11.70556205 2.67192177 15.64982754 7.25235911L512 448.63728365l110.43943332-131.68757314c3.81703111-4.58043732 9.54257777-7.25235911 15.64982754-7.25235911H713.0303049c8.65193717 0 13.35960887 10.05151525 7.76129658 16.66770249L565.18396674 512l155.60763474 185.63494611z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM677.02297814 523.19662459L423.31764398 722.70011704c-9.41534338 7.37959347-23.28388974 0.76340622-23.28388975-11.19662459V312.62374191c0-11.9600308 13.86854636-18.70345241 23.28388975-11.19662457l253.70533416 199.37625807c7.25235911 5.72554666 7.25235911 16.6677025 0 22.39324918z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H552.71499847v193.39624268c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962h-61.0724977c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962V552.71499847H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h193.39624268V277.88875885c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h61.0724977c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v193.39624268h193.39624268c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z",special:!0},{viewBox:[1024,1024],path:"M902.67315697 135.41705551L528.62204754 7.94466448C524.10877635 6.40354749 518.05438818 5.63298899 512 5.63298899s-12.10877635 0.7705585-16.62204754 2.31167549L121.32684303 135.41705551c-9.13662215 3.08223399-16.62204754 13.64989334-16.62204753 23.33691443v531.02488283c0 9.68702108 6.27454775 22.45627614 13.87005291 28.51066431L498.0198673 1013.9638196c3.85279247 2.9721542 8.8063828 4.51327118 13.87005291 4.51327118s10.12734022-1.54111698 13.87005291-4.51327118l379.4450189-295.67430252c7.59550517-5.94430839 13.87005291-18.71356345 13.87005291-28.51066431V158.75396994c0.22015956-9.68702108-7.26526581-20.14460066-16.40188796-23.33691443zM712.89560763 323.43332829L478.86598471 645.63685899c-7.04510625 9.68702108-21.57563786 9.68702108-28.6207441 0l-139.14084824-191.5388259c-4.18303182-5.8342286 0-13.9801327 7.15518603-13.9801327h60.76404132c5.61406904 0 11.0079785 2.75199463 14.31037204 7.26526582l71.22162091 97.97100864 166.11039557-228.74579323c3.30239355-4.51327118 8.58622323-7.26526581 14.31037204-7.26526581H705.7404216c7.15518602 0.11007979 11.33821785 8.25598388 7.15518603 14.09021248z",special:!0},{viewBox:[1024,1024],path:"M959.86498307 186.28001231H797.00498922v-101.78749614c0-44.91373267-36.51626425-81.42999692-81.42999691-81.42999693H308.42500769c-44.91373267 0-81.42999692 36.51626425-81.42999691 81.42999693v101.78749614H64.13501693c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499847v40.71499845c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874962h76.8495596l31.42688945 665.43575611c2.03574992 43.38692024 37.91584233 77.61296581 81.30276254 77.6129658h577.64404066c43.5141546 0 79.26701262-34.09881122 81.30276254-77.6129658l31.42688945-665.43575611H990.40123192c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874962v-40.71499845c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499847z m-254.46874039 0H318.60375732v-91.60874653h386.79248536v91.60874653z",special:!0},{viewBox:[1024,1024],path:"M980.2224823 248.62485371H654.50249462V104.85001539c0-22.52048353-18.19451494-40.71499847-40.71499847-40.71499846H94.67126578v-50.89374808c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-71.25124732c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v997.5174623c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h71.25124732c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961V674.85999383h315.54123807v143.77483833c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h529.29497999c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V289.33985217c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846z",special:!0},{viewBox:[1024,1024],path:"M804.63905145 265.16532183V94.67126578h109.42155836c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961H109.93939019c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h109.42155836v170.49405605c0 103.6960117 53.94737296 194.92305513 135.3773699 246.83467817-81.42999692 51.91162303-135.37736988 143.13866646-135.3773699 246.83467817v170.49405605h-109.42155836c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h804.12121962c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-109.42155836V758.83467817c0-103.6960117-53.94737296-194.92305513-135.3773699-246.83467817 81.42999692-51.91162303 135.37736988-143.13866646 135.3773699-246.83467817z",special:!0},{viewBox:[1024,1024],path:"M1020.928 448.44373333l-35.36213334-373.4528c-1.79200001-19.3536-17.2032-34.64533332-36.55679999-36.55679999L575.55626667 3.072h-0.47786666c-3.82293334 0-6.8096 1.19466667-9.07946669 3.46453333L6.53653333 565.99893332c-4.65919999 4.65919999-4.65919999 12.1856 0 16.84480001l434.61973334 434.61973334c2.26986667 2.26986667 5.25653333 3.46453333 8.48213333 3.46453333s6.21226667-1.19466667 8.48213333-3.46453333l559.46239999-559.46239999c2.38933332-2.5088 3.584-5.97333334 3.34506668-9.55733335zM735.40266668 362.66666667c-42.17173333 0-76.45866667-34.28693333-76.45866667-76.45866667s34.28693333-76.45866667 76.45866667-76.45866667 76.45866667 34.28693333 76.45866665 76.45866667-34.28693333 76.45866667-76.45866665 76.45866667z",special:!0}]},{type:"线性",children:[{viewBox:[1024,1024],path:"M1009.55537674 75.96950982l-61.38012212-61.38012214c-4.48769762-4.48769762-11.870684-4.48769762-16.3583816 0L14.44462326 931.67210859c-4.48769762 4.48769762-4.48769762 11.870684 0 16.35838159l61.38012212 61.38012214c4.48769762 4.48769762 11.870684 4.48769762 16.3583816 0L1009.41061232 92.18312698c4.63246205-4.34293316 4.63246205-11.72591956 0.14476442-16.21361716zM210.88996692 419.35075905c114.94296453 0 208.46079213-93.51782759 208.46079213-208.46079213s-93.51782759-208.46079213-208.46079213-208.4607921-208.46079213 93.51782759-208.4607921 208.4607921 93.51782759 208.46079213 208.4607921 208.46079213z m0-312.69118816c57.47148228 0 104.23039605 46.75891379 104.23039607 104.23039603s-46.75891379 104.23039605-104.23039607 104.23039607-104.23039605-46.75891379-104.23039603-104.23039607 46.75891379-104.23039605 104.23039603-104.23039603zM813.11003308 604.64924095c-114.94296453 0-208.46079213 93.51782759-208.46079213 208.46079213s93.51782759 208.46079213 208.46079213 208.4607921 208.46079213-93.51782759 208.4607921-208.4607921-93.51782759-208.46079213-208.4607921-208.46079213z m0 312.69118816c-57.47148228 0-104.23039605-46.75891379-104.23039607-104.23039603s46.75891379-104.23039605 104.23039607-104.23039607 104.23039605 46.75891379 104.23039603 104.23039607-46.75891379 104.23039605-104.23039603 104.23039603z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1004.96017383 478.58365209L483.27851088 25.80594621c-4.00443838-3.45210207-9.11354943-5.3852792-14.49882864-5.38527921h-122.20441284c-10.21822208 0-14.91308089 12.70373557-7.18037228 19.33177152l483.57045622 419.77561022H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672657v82.85044938c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672657h807.92996557L339.25681303 984.24756148c-7.7327086 6.76612003-3.0378498 19.33177153 7.18037229 19.33177152h126.34693531c2.62359757 0 5.24719513-0.96658859 7.18037228-2.76168164L1004.96017383 545.41634791c20.2983601-17.67476253 20.2983601-49.1579333 0-66.83269582z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1011.38217956 558.9924242L545.80649025 22.43713295c-17.81503843-20.62055629-49.79794206-20.62055629-67.75325638 0L12.61782044 558.9924242c-6.31241519 7.29434645-1.12220714 18.51641789 8.41655359 18.51641789h113.62347344c6.45269109 0 12.62483038-2.80551785 16.97338308-7.71517411L458.69516062 215.87758959V1005.77114384c0 6.1721393 5.04993216 11.22207145 11.22207144 11.22207145h84.16553588c6.1721393 0 11.22207145-5.04993216 11.22207144-11.22207145V215.87758959l307.06393007 353.91607839c4.20827679 4.90965626 10.38041608 7.71517413 16.97338308 7.71517411h113.62347344c9.53876074 0 14.72896878-11.22207145 8.41655359-18.51641789z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1009.1026963 459.52804874H201.17273073l483.57045624-419.77561022c7.7327086-6.76612003 3.0378498-19.33177153-7.18037229-19.33177152h-122.20441283c-5.3852792 0-10.49439025 1.93317715-14.49882866 5.38527921L19.03982617 478.58365209c-20.2983601 17.67476253-20.2983601 49.1579333 0 66.69461175L543.89742302 1000.81765136c2.07126124 1.79509307 4.55677472 2.76168163 7.18037228 2.76168164h126.3469353c10.21822208 0 14.91308089-12.70373557 7.18037228-19.33177152L201.17273073 564.47195126H1009.1026963c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672657v-82.85044938c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672657z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1002.96562597 446.49115791h-113.62347344c-6.45269109 0-12.62483038 2.80551785-16.97338308 7.71517411L565.30483938 808.12241041V18.22885616c0-6.1721393-5.04993216-11.22207145-11.22207144-11.22207145h-84.16553588c-6.1721393 0-11.22207145 5.04993216-11.22207144 11.22207145v789.89355425L151.63123055 454.20633202c-4.20827679-4.90965626-10.38041608-7.71517413-16.97338308-7.71517411h-113.62347344c-9.53876074 0-14.72896878 11.36234735-8.41655359 18.51641789L478.19350975 1001.56286705c17.81503843 20.62055629 49.79794206 20.62055629 67.75325638 0L1011.38217956 465.0075758c6.31241519-7.29434645 1.12220714-18.51641789-8.41655359-18.51641789z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M975.82443246 622.46726585H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672658v82.85044937c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672659h835.6848661L651.32683905 980.10503902c-5.66144737 7.18037229-0.55233633 17.9509307 8.69929718 17.9509307h100.11095967c6.76612003 0 13.11798782-3.0378498 17.39859437-8.42312903l233.08593092-295.63802022c22.78387358-28.99765728 2.20934532-71.52755463-34.79718873-71.52755462zM1009.1026963 296.58883161H173.4178302l199.25533075-252.69387063c5.66144737-7.18037229 0.55233633-17.9509307-8.69929718-17.9509307h-100.11095967c-6.76612003 0-13.11798782 3.0378498-17.39859437 8.42312903L13.37837881 330.00517953c-22.78387358 28.99765728-2.20934532 71.52755463 34.65910466 71.52755462h961.06521283c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672658v-82.85044937c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672659z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M1010.75873115 64.13501693H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874964h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874964v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961zM1010.75873115 858.07748691H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874964v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874964zM1010.75873115 461.10625194H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874959v81.42999694c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874959h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874959v-81.42999694c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874959z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M591.98717801 512l405.34042913-483.16579151c6.79427767-8.02960089 1.08090782-20.22841761-9.41933951-20.2284176h-123.22349044c-7.25752386 0-14.20621693 3.24272343-18.99309439 8.80167789L511.38233839 415.95362022 177.07299399 17.40746878c-4.63246205-5.55895447-11.58115512-8.80167789-18.99309439-8.80167789H34.85640916c-10.50024731 0-16.21361717 12.19881672-9.41933952 20.2284176L430.77749876 512 25.43706964 995.16579151c-6.79427767 8.02960089-1.08090782 20.22841761 9.41933952 20.2284176h123.22349044c7.25752386 0 14.20621693-3.24272343 18.99309439-8.80167789l334.3093444-398.54615144 334.30934441 398.54615144c4.63246205 5.55895447 11.58115512 8.80167789 18.99309439 8.80167789h123.22349044c10.50024731 0 16.21361717-12.19881672 9.41933951-20.2284176L591.98717801 512z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M953.5488 832.61667556c-24.08448-57.08913778-58.74574221-108.31644445-102.70947556-152.28017777-43.96373333-43.96373333-95.19104-78.49756444-152.28017777-102.70947558-0.50972445-0.25486222-1.01944888-0.38229333-1.52917334-0.63715555C776.41955556 519.64586667 828.02915556 426.23886221 828.02915556 320.85333332c0-174.58062221-141.44853334-316.02915556-316.02915556-316.02915554S195.97084444 146.27271111 195.97084444 320.85333332c0 105.38552889 51.6096 198.79253333 130.99918223 256.26396447-0.50972445 0.25486222-1.01944888 0.38229333-1.52917334 0.63715555-57.08913778 24.08448-108.31644445 58.61831112-152.28017777 102.70947554-43.96373333 43.96373333-78.49756444 95.19104-102.70947556 152.28017779C46.74901333 888.55893332 34.13333334 947.8144 32.85902222 1008.72647111c-0.12743111 5.7344 4.46008889 10.44935111 10.19448889 10.44935111h76.45866667c5.60696888 0 10.06705778-4.46008889 10.19448889-9.93962666 2.54862221-98.37681778 42.05226667-190.50951112 111.88451555-260.34176001 72.25344-72.25344 168.20906666-112.01194667 270.40881778-112.01194667s198.15537778 39.75850667 270.40881778 112.01194667C852.24106667 818.72668444 891.74471111 910.85937779 894.29333333 1009.23619556c0.12743111 5.60696888 4.58752 9.93962667 10.19448889 9.93962666h76.45866667c5.7344 0 10.32192-4.71495112 10.19448889-10.44935111-1.27431111-60.91207112-13.88999112-120.16753779-37.59217778-176.10979555zM512 540.03484444c-58.49088 0-113.54112-22.81016889-154.95623111-64.22527999S292.81848888 379.34421333 292.81848888 320.85333332c0-58.49088 22.81016889-113.54112 64.22528001-154.9562311S453.50912 101.67182221 512 101.67182221s113.54112 22.81016889 154.95623111 64.22528001S731.18151112 262.36245333 731.18151112 320.85333332c0 58.49088-22.81016889 113.54112-64.22528001 154.95623113S570.49088 540.03484444 512 540.03484444z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 111.50222222H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888889v728.17777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h946.6311111c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V147.91111111c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888889z m-45.5111111 126.06577778V830.57777778H84.19555555V237.568l-31.40266666-24.46222222 44.71466666-57.45777778 48.6968889 37.888h731.70488888l48.69688889-37.888 44.71466667 57.45777778-31.51644444 24.46222222z M877.90933333 193.42222222L512 477.86666667 146.09066667 193.42222222l-48.69688889-37.888-44.71466667 57.45777778 31.40266667 24.46222222 388.66488889 302.19377778c22.98311111 17.86311111 55.18222222 17.86311111 78.16533333 0L939.80444445 237.568l31.40266666-24.46222222-44.71466666-57.45777778-48.58311112 37.77422222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 88.74666667H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888888v564.33777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h432.35555555v127.43111111H275.34222222c-10.01244445 0-18.20444445 8.192-18.20444444 18.20444445v54.61333333c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h491.52c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333333c0-10.01244445-8.192-18.20444445-18.20444444-18.20444445H552.96V725.90222222h432.35555555c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V125.15555555c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888888z m-45.5111111 555.23555555H84.19555555V170.66666667h855.6088889v473.31555555z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333 0-101.26222222 35.61244445-194.33244445 95.00444444-267.15022222l595.39911111 595.39911111C706.33244445 899.64088889 613.26222222 935.25333333 512 935.25333333z m328.24888889-156.10311111L244.84977778 183.75111111C317.66755555 124.35911111 410.73777778 88.74666667 512 88.74666667c233.69955555 0 423.25333333 189.55377778 423.25333333 423.25333333 0 101.26222222-35.61244445 194.33244445-95.00444444 267.15022222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M901.80266667 257.82044445L656.95288889 12.97066667c-6.82666667-6.82666667-16.04266667-10.69511111-25.71377778-10.69511112H147.91111111c-20.13866667 0-36.40888889 16.27022222-36.40888889 36.4088889v946.6311111c0 20.13866667 16.27022222 36.40888889 36.40888889 36.4088889h728.17777778c20.13866667 0 36.40888889-16.27022222 36.40888889-36.4088889V283.648c0-9.67111111-3.86844445-19.00088889-10.69511111-25.82755555zM828.52977778 300.37333333H614.4V86.24355555L828.52977778 300.37333333z m2.048 639.43111112H193.42222222V84.19555555h343.60888889v245.76c0 26.39644445 21.39022222 47.78666667 47.78666667 47.78666667h245.76v562.06222223z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M981.07392 55.79662222H42.92608c-31.22062222 0-50.71758221 34.02410666-35.04355556 61.16693334L304.28728889 620.82616888V927.42542221c0 22.55530667 18.09521779 40.77795555 40.52309333 40.77795557h334.37923556c22.42787556 0 40.52309333-18.22264888 40.52309333-40.77795557V620.82616888L1016.24490667 116.96355556c15.54659555-27.14282666-3.95036444-61.16693333-35.17098667-61.16693334zM628.47203556 876.45297779H395.52796444V677.66044445h233.07150222v198.79253334z m12.23338666-301.50200891l-12.10595556 21.15356445h-233.19893332l-12.10595556-21.15356445L130.59868445 147.54702221h762.8026311L640.70542222 574.95096888z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M980.62285431 4.54099753H654.39920987c-4.2719763 0-7.76722963 3.49525333-7.76722962 7.76722964v72.4941432c0 4.2719763 3.49525333 7.76722963 7.76722962 7.76722963h207.64393877L604.04167111 350.57107753c-64.72691358-49.83972347-143.69374815-76.7661195-226.67365136-76.7661195-99.54999309 0-193.27456395 38.83614815-263.5679921 109.25903012S4.54099753 547.08198717 4.54099753 646.63198025s38.83614815 193.27456395 109.25903012 263.5679921C184.09345581 980.62285431 277.81802667 1019.45900247 377.36801975 1019.45900247s193.27456395-38.83614815 263.5679921-109.25903012C711.35889383 839.90654419 750.19504197 746.18197333 750.19504197 646.63198025c0-82.9799032-26.92639605-161.68783013-76.63666567-226.41474372L931.4304 162.34521283V369.60079013c0 4.2719763 3.49525333 7.76722963 7.76722963 7.76722962h72.4941432c4.2719763 0 7.76722963-3.49525333 7.76722964-7.76722962V43.37714569c0-21.35988148-17.47626667-38.83614815-38.83614816-38.83614816zM377.36801975 921.07409383c-151.33152395 0-274.44211358-123.11058963-274.44211358-274.44211358s123.11058963-274.44211358 274.44211358-274.44211358 274.44211358 123.11058963 274.44211358 274.44211358-123.11058963 274.44211358-274.44211358 274.44211358z",special:!0,outlined:!0}]}],ca={bar:"bar",horizontalBar:"bar",line:"line",area:"line",scatter:"line",pie:"pie",ring:"pie"};var da=()=>{const e=J(),t=(0,D.debounce)((function(){e.addSnapshot()}),300,{trailing:!0}),l=(0,D.throttle)((function(){e.reDo()}),100,{leading:!0,trailing:!1}),a=(0,D.throttle)((function(){e.unDo()}),100,{leading:!0,trailing:!1});return{addHistorySnapshot:t,redo:l,undo:a}},pa=()=>{const e=R(),t=$(),{creatingElement:l}=(0,o.Jk)(e),{theme:a,viewportRatio:n}=(0,o.Jk)(t),{addHistorySnapshot:i}=da(),s=(a,n)=>{t.addElement(a),e.setActiveElementIdList([a.id]),l.value&&e.setCreatingElement(null),setTimeout((()=>{e.setEditorareaFocus(!0)}),0),n&&n(),i()},u=e=>{aa(e).then((({width:t,height:l})=>{const a=l/t;aoa?(t=oa,l=t*a):l>oa*n.value&&(l=oa*n.value,t=l/a),s({type:"image",id:(0,r.x0)(10),src:e,width:t,height:l,left:(oa-t)/2,top:(oa*n.value-l)/2,fixedRatio:!0,rotate:0})}))},c=e=>{const t={type:"chart",id:(0,r.x0)(10),chartType:ca[e],left:300,top:81.25,width:400,height:400,rotate:0,themeColor:[a.value.themeColor],gridColor:a.value.fontColor,data:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1"],series:[[12,19,5,2,18]]}},l={..."bar"===e?{horizontalBars:!1,stackBars:!1}:{},..."horizontalBar"===e?{horizontalBars:!0,stackBars:!1}:{},..."line"===e?{showLine:!0,lineSmooth:!0,showArea:!1}:{},..."area"===e?{showLine:!0,lineSmooth:!0,showArea:!0}:{},..."scatter"===e?{showLine:!1,lineSmooth:!0,showArea:!1}:{},..."pie"===e?{donut:!1}:{},..."ring"===e?{donut:!0}:{}};s({...t,options:l})},d=(e,t)=>{const l={fontname:a.value.fontName,color:a.value.fontColor},o=[];for(let a=0;a{const{left:l,top:n,width:o,height:i}=e,u=t?.content||"",c=t?.vertical||!1,d=(0,r.x0)(10);s({type:"text",id:d,left:l,top:n,width:o,height:i,content:u,rotate:0,defaultFontName:a.value.fontName,defaultColor:a.value.fontColor,vertical:c},(()=>{setTimeout((()=>{const e=document.querySelector(`#editable-element-${d} .ProseMirror`);e&&e.focus()}),0)}))},v=(e,t,l={})=>{const{left:n,top:o,width:i,height:u}=e,c={type:"shape",id:(0,r.x0)(10),left:n,top:o,width:i,height:u,viewBox:t.viewBox,path:t.path,fill:a.value.themeColor,fixedRatio:!1,rotate:0,...l};if(t.special&&(c.special=!0),t.pathFormula){c.pathFormula=t.pathFormula,c.viewBox=[i,u];const e=ra[t.pathFormula];"editable"in e?(c.path=e.formula(i,u,e.defaultValue),c.keypoint=e.defaultValue):c.path=e.formula(i,u)}s(c)},m=(e,t)=>{const{left:l,top:n,start:o,end:i}=e,u={type:"line",id:(0,r.x0)(10),left:l,top:n,start:o,end:i,points:t.points,color:a.value.themeColor,style:t.style,width:2};t.isBroken&&(u.broken=[(o[0]+i[0])/2,(o[1]+i[1])/2]),t.isCurve&&(u.curve=[(o[0]+i[0])/2,(o[1]+i[1])/2]),t.isCubic&&(u.cubic=[[(o[0]+i[0])/2,(o[1]+i[1])/2],[(o[0]+i[0])/2,(o[1]+i[1])/2]]),s(u)},h=e=>{s({type:"latex",id:(0,r.x0)(10),width:e.w,height:e.h,rotate:0,left:(oa-e.w)/2,top:(oa*n.value-e.h)/2,path:e.path,latex:e.latex,color:a.value.fontColor,strokeWidth:2,viewBox:[e.w,e.h],fixedRatio:!0})},f=e=>{s({type:"video",id:(0,r.x0)(10),width:500,height:300,rotate:0,left:(oa-500)/2,top:(oa*n.value-300)/2,src:e,autoplay:!1})},g=e=>{s({type:"audio",id:(0,r.x0)(10),width:50,height:50,rotate:0,left:(oa-50)/2,top:(oa*n.value-50)/2,loop:!1,autoplay:!1,fixedRatio:!0,color:a.value.themeColor,src:e})};return{createImageElement:u,createChartElement:c,createTableElement:d,createTextElement:p,createShapeElement:v,createLineElement:m,createLatexElement:h,createVideoElement:f,createAudioElement:g}},va=()=>{const e=R(),t=$(),{currentSlide:l,slides:a}=(0,o.Jk)(t),{addHistorySnapshot:n}=da(),s=a=>{const{groupIdMap:o,elIdMap:i}=Ie(a),s=a[0];let r,u=0;do{r=l.value.elements.find((e=>{if(e.type!==s.type)return!1;const{minX:t,maxX:l,minY:a,maxY:n}=xe(e),{minX:o,maxX:i,minY:r,maxY:c}=xe({...s,left:s.left+u,top:s.top+u});return t===o&&l===i&&a===r&&n===c})),r&&(u+=10)}while(r);for(const e of a)e.id=i[e.id],e.left=e.left+u,e.top=e.top+u,e.groupId&&(e.groupId=o[e.groupId]);t.addElement(a),e.setActiveElementIdList(Object.values(i)),n()},u=e=>{const l=_e(e),a=e.map((e=>{const{groupIdMap:t,elIdMap:a}=Ie(e.elements);for(const n of e.elements)n.id=a[n.id],n.groupId&&(n.groupId=t[n.groupId]),n.link&&"slide"===n.link.type&&(l[n.link.target]?n.link.target=l[n.link.target]:delete n.link);if(e.animations)for(const l of e.animations)l.id=(0,r.x0)(10),l.elId=a[l.elId];return{...e,id:l[e.id]}}));t.addSlide(a),n()},c=(0,i.Fl)((()=>!(a.value.length>1)&&!(a.value[0].elements.length>0)));return{addElementsFromData:s,addSlidesFromData:u,isEmptySlide:c}},ma=()=>{const{createTextElement:e}=pa(),{addElementsFromData:t,addSlidesFromData:l}=va(),a=t=>{e({left:0,top:0,width:600,height:50},{content:t})},n=(e,n)=>{const o=n?.onlySlide||!1,i=n?.onlyElements||!1,s=fe(e);if("object"===typeof s){const{type:e,data:a}=s;"elements"!==e||o?"slides"!==e||i||l(a):t(a)}else if(!i&&!o){const e=la(s);a(e)}};return{pasteTextClipboardData:n}},ha=()=>{const e=R(),t=$(),{selectedSlidesIndex:l,activeElementIdList:a}=(0,o.Jk)(e),{currentSlide:n,slides:s,theme:u,slideIndex:c}=(0,o.Jk)(t),d=(0,i.Fl)((()=>[...l.value,c.value])),p=(0,i.Fl)((()=>s.value.filter(((e,t)=>d.value.includes(t))))),v=(0,i.Fl)((()=>p.value.map((e=>e.id)))),{pasteTextClipboardData:m}=ma(),{addSlidesFromData:h}=va(),{addHistorySnapshot:f}=da(),g=()=>{const l={id:(0,r.x0)(10),elements:[],background:{type:"solid",color:u.value.backgroundColor}};t.updateSlideIndex(0),e.setActiveElementIdList([]),t.setSlides([l])},y=l=>{l===ne.UP&&c.value>0?(a.value.length&&e.setActiveElementIdList([]),t.updateSlideIndex(c.value-1)):l===ne.DOWN&&c.value{const t=pe(JSON.stringify({type:"slides",data:p.value}));me(t).then((()=>{e.setThumbnailsFocus(!0)}))},x=()=>{he().then((e=>{m(e,{onlySlide:!0})})).catch((e=>ta.warning(e)))},k=()=>{const l={id:(0,r.x0)(10),elements:[],background:{type:"solid",color:u.value.backgroundColor}};e.setActiveElementIdList([]),t.addSlide(l),f()},b=l=>{const{groupIdMap:a,elIdMap:n}=Ie(l.elements);for(const e of l.elements)e.id=n[e.id],e.groupId&&(e.groupId=a[e.groupId]);const o={...l,id:(0,r.x0)(10)};e.setActiveElementIdList([]),t.addSlide(o),f()},_=()=>{const e=JSON.parse(JSON.stringify(n.value));h([e])},I=(l=v.value)=>{s.value.length===l.length?g():t.deleteSlide(l),e.updateSelectedSlidesIndex([]),f()},S=()=>{const e=[...v.value];w(),I(e)},C=()=>{const t=Array.from(Array(s.value.length),((e,t)=>t));e.setActiveElementIdList([]),e.updateSelectedSlidesIndex(t)},L=(e,l)=>{if(l===e)return;const a=JSON.parse(JSON.stringify(s.value)),n=a[l];a.splice(l,1),a.splice(e,0,n),t.setSlides(a),t.updateSlideIndex(e)};return{resetSlides:g,updateSlideIndex:y,copySlide:w,pasteSlide:x,createSlide:k,createSlideByTemplate:b,copyAndPasteSlide:_,deleteSlide:I,cutSlide:S,selectAllSlide:C,sortSlides:L}},fa=()=>{const e=R(),t=$(),{activeElementIdList:l}=(0,o.Jk)(e),{currentSlide:a}=(0,o.Jk)(t),{addHistorySnapshot:n}=da(),i=()=>{const o=JSON.parse(JSON.stringify(a.value.elements));for(const e of o)l.value.includes(e.id)&&(e.lock=!0);t.updateSlide({elements:o}),e.setActiveElementIdList([]),n()},s=l=>{const o=JSON.parse(JSON.stringify(a.value.elements));if(l.groupId){const a=[];for(const e of o)e.groupId===l.groupId&&(e.lock=!1,a.push(e.id));t.updateSlide({elements:o}),e.setActiveElementIdList(a)}else{for(const e of o)if(e.id===l.id){e.lock=!1;break}t.updateSlide({elements:o}),e.setActiveElementIdList([l.id])}n()};return{lockElement:i,unlockElement:s}},ga=()=>{const e=R(),t=$(),{activeElementIdList:l,activeGroupElementId:a}=(0,o.Jk)(e),{currentSlide:n}=(0,o.Jk)(t),{addHistorySnapshot:i}=da(),s=()=>{if(!l.value.length)return;let o=[];o=a.value?n.value.elements.filter((e=>e.id!==a.value)):n.value.elements.filter((e=>!l.value.includes(e.id))),e.setActiveElementIdList([]),t.updateSlide({elements:o}),i()},r=()=>{n.value.elements.length&&(e.setActiveElementIdList([]),t.updateSlide({elements:[]}),i())};return{deleteElement:s,deleteAllElements:r}},ya=()=>{const e=R(),t=$(),{activeElementIdList:l,activeElementList:a,handleElementId:n}=(0,o.Jk)(e),{currentSlide:s}=(0,o.Jk)(t),{addHistorySnapshot:u}=da(),c=(0,i.Fl)((()=>{if(a.value.length<2)return!1;const e=a.value[0].groupId;if(!e)return!0;const t=a.value.every((t=>(t.groupId&&t.groupId)===e));return!t})),d=()=>{if(!a.value.length)return;let e=JSON.parse(JSON.stringify(s.value.elements));const n=(0,r.x0)(10),o=[];for(const t of e)l.value.includes(t.id)&&(t.groupId=n,o.push(t));const i=e.findIndex((e=>e.id===o[o.length-1].id)),c=o.map((e=>e.id));e=e.filter((e=>!c.includes(e.id)));const d=i-o.length+1;e.splice(d,0,...o),t.updateSlide({elements:e}),u()},p=()=>{if(!a.value.length)return;const o=a.value.some((e=>e.groupId));if(!o)return;const i=JSON.parse(JSON.stringify(s.value.elements));for(const e of i)l.value.includes(e.id)&&e.groupId&&delete e.groupId;t.updateSlide({elements:i});const r=n.value?[n.value]:[];e.setActiveElementIdList(r),u()};return{canCombine:c,combineElements:d,uncombineElements:p}},wa=()=>{const e=R(),{activeElementIdList:t,activeElementList:l}=(0,o.Jk)(e),{pasteTextClipboardData:a}=ma(),{deleteElement:n}=ga(),i=()=>{if(!t.value.length)return;const a=pe(JSON.stringify({type:"elements",data:l.value}));me(a).then((()=>{e.setEditorareaFocus(!0)}))},s=()=>{i(),n()},r=()=>{he().then((e=>{a(e)})).catch((e=>ta.warning(e)))},u=()=>{i(),r()};return{copyElement:i,cutElement:s,pasteElement:r,quickCopyElement:u}},xa=()=>{const e=R(),{currentSlide:t}=(0,o.Jk)($()),{hiddenElementIdList:l}=(0,o.Jk)(e),a=()=>{const a=t.value.elements.filter((e=>!e.lock&&!l.value.includes(e.id))),n=a.map((e=>e.id));e.setActiveElementIdList(n)};return{selectAllElement:a}},ka=()=>{const e=$(),{activeElementIdList:t,activeGroupElementId:l}=(0,o.Jk)(R()),{currentSlide:a}=(0,o.Jk)(e),{addHistorySnapshot:n}=da(),i=(o,i=1)=>{let s=[];const r=e=>{let{left:t,top:l}=e;switch(o){case ne.LEFT:t-=i;break;case ne.RIGHT:t+=i;break;case ne.UP:l-=i;break;case ne.DOWN:l+=i;break;default:break}return{...e,left:t,top:l}};s=l.value?a.value.elements.map((e=>l.value===e.id?r(e):e)):a.value.elements.map((e=>t.value.includes(e.id)?r(e):e)),e.updateSlide({elements:s}),n()};return{moveElement:i}},ba=(l(541),()=>{const e=$(),{currentSlide:t}=(0,o.Jk)(e),{addHistorySnapshot:l}=da(),a=(e,t)=>({minLevel:e.findIndex((e=>e.id===t[0].id)),maxLevel:e.findIndex((e=>e.id===t[t.length-1].id))}),n=(e,t)=>{const l=JSON.parse(JSON.stringify(e));if(t.groupId){const n=l.filter((e=>e.groupId===t.groupId)),{minLevel:o,maxLevel:i}=a(e,n);if(i===e.length-1)return;const s=l[i+1],r=l.splice(o,n.length);if(s.groupId){const e=l.filter((e=>e.groupId===s.groupId));l.splice(o+e.length,0,...r)}else l.splice(o+1,0,...r)}else{const a=e.findIndex((e=>e.id===t.id));if(a===e.length-1)return;const n=l[a+1],o=l.splice(a,1)[0];if(n.groupId){const e=l.filter((e=>e.groupId===n.groupId));l.splice(a+e.length,0,o)}else l.splice(a+1,0,o)}return l},i=(e,t)=>{const l=JSON.parse(JSON.stringify(e));if(t.groupId){const n=l.filter((e=>e.groupId===t.groupId)),{minLevel:o}=a(e,n);if(0===o)return;const i=l[o-1],s=l.splice(o,n.length);if(i.groupId){const e=l.filter((e=>e.groupId===i.groupId));l.splice(o-e.length,0,...s)}else l.splice(o-1,0,...s)}else{const a=e.findIndex((e=>e.id===t.id));if(0===a)return;const n=l[a-1],o=l.splice(a,1)[0];if(n.groupId){const e=l.filter((e=>e.groupId===n.groupId));l.splice(a-e.length,0,o)}else l.splice(a-1,0,o)}return l},s=(e,t)=>{const l=JSON.parse(JSON.stringify(e));if(t.groupId){const n=l.filter((e=>e.groupId===t.groupId)),{minLevel:o,maxLevel:i}=a(e,n);if(i===e.length-1)return null;const s=l.splice(o,n.length);l.push(...s)}else{const a=e.findIndex((e=>e.id===t.id));if(a===e.length-1)return null;l.splice(a,1),l.push(t)}return l},r=(e,t)=>{const l=JSON.parse(JSON.stringify(e));if(t.groupId){const n=l.filter((e=>e.groupId===t.groupId)),{minLevel:o}=a(e,n);if(0===o)return;const i=l.splice(o,n.length);l.unshift(...i)}else{const a=e.findIndex((e=>e.id===t.id));if(0===a)return;l.splice(a,1),l.unshift(t)}return l},u=(a,o)=>{let u;o===Q.UP?u=n(t.value.elements,a):o===Q.DOWN?u=i(t.value.elements,a):o===Q.TOP?u=s(t.value.elements,a):o===Q.BOTTOM&&(u=r(t.value.elements,a)),u&&(e.updateSlide({elements:u}),l())};return{orderElement:u}});const _a=()=>{const e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()},Ia=()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},Sa=()=>{const e=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement;return!!e};var Ca=()=>{const e=X(),t=$(),l=()=>{_a(),e.setScreening(!0)},a=()=>{t.updateSlideIndex(0),l()},n=()=>{e.setScreening(!1),Sa()&&Ia()};return{enterScreening:l,enterScreeningFromStart:a,exitScreening:n}},La=()=>{const e=R(),{canvasPercentage:t,canvasScale:l,canvasDragged:a}=(0,o.Jk)(e),n=(0,i.Fl)((()=>Math.round(100*l.value)+"%")),s=l=>{let a=t.value;const n=5,o=200,i=30;"+"===l&&a<=o&&(a+=n),"-"===l&&a>=i&&(a-=n),e.setCanvasPercentage(a)},r=a=>{const n=Math.round(a/l.value*t.value)/100;e.setCanvasPercentage(n)},u=()=>{e.setCanvasPercentage(90),a&&e.setCanvasDragged(!1)};return{canvasScalePercentage:n,setCanvasScalePercentage:r,scaleCanvas:s,resetCanvas:u}},Ta=()=>{const e=R(),t=q(),{activeElementIdList:l,disableHotkeys:a,handleElement:n,handleElementId:s,editorAreaFocus:r,thumbnailsFocus:u,showSearchPanel:c}=(0,o.Jk)(e),{currentSlide:d}=(0,o.Jk)($()),{ctrlKeyState:p,shiftKeyState:v,spaceKeyState:m}=(0,o.Jk)(t),{updateSlideIndex:h,copySlide:f,createSlide:g,deleteSlide:y,cutSlide:w,copyAndPasteSlide:x,selectAllSlide:k}=ha(),{combineElements:b,uncombineElements:_}=ya(),{deleteElement:I}=ga(),{lockElement:S}=fa(),{copyElement:C,cutElement:L,quickCopyElement:T}=wa(),{selectAllElement:E}=xa(),{moveElement:M}=ka(),{orderElement:U}=ba(),{redo:W,undo:D}=da(),{enterScreening:H,enterScreeningFromStart:F}=Ca(),{scaleCanvas:A,resetCanvas:Z}=La(),O=()=>{l.value.length?C():u.value&&f()},z=()=>{l.value.length?L():u.value&&w()},P=()=>{l.value.length?T():u.value&&x()},B=()=>{r.value&&E(),u.value&&k()},N=()=>{r.value&&S()},j=()=>{r.value&&b()},Y=()=>{r.value&&_()},V=()=>{l.value.length?I():u.value&&y()},J=e=>{l.value.length?M(e):e!==ne.UP&&e!==ne.DOWN||h(e)},X=e=>{e===ne.PAGEUP?h(ne.UP):e===ne.PAGEDOWN&&h(ne.DOWN)},G=e=>{n.value&&U(n.value,e)},K=()=>{u.value&&g()},ee=()=>{if(!d.value.elements.length)return;if(!s.value){const t=d.value.elements[0];return void e.setActiveElementIdList([t.id])}const t=d.value.elements.findIndex((e=>e.id===s.value)),l=t>=d.value.elements.length-1?0:t+1,a=d.value.elements[l].id;e.setActiveElementIdList([a])},te=l=>{const{ctrlKey:n,shiftKey:o,altKey:i,metaKey:s}=l,d=n||s,m=l.key.toUpperCase();if(d&&!p.value&&t.setCtrlKeyState(!0),o&&!v.value&&t.setShiftKeyState(!0),a.value||m!==ne.SPACE||t.setSpaceKeyState(!0),d&&m===ne.P)return l.preventDefault(),void e.setDialogForExport("pdf");if(o&&m===ne.F5)return l.preventDefault(),H(),void t.setShiftKeyState(!1);if(m===ne.F5)return l.preventDefault(),void F();if(n&&m===ne.F)return l.preventDefault(),void e.setSearchPanelState(!c.value);if(r.value||u.value){if(d&&m===ne.C){if(a.value)return;l.preventDefault(),O()}if(d&&m===ne.X){if(a.value)return;l.preventDefault(),z()}if(d&&m===ne.D){if(a.value)return;l.preventDefault(),P()}if(d&&m===ne.Z){if(a.value)return;l.preventDefault(),D()}if(d&&m===ne.Y){if(a.value)return;l.preventDefault(),W()}if(d&&m===ne.A){if(a.value)return;l.preventDefault(),B()}if(d&&m===ne.L){if(a.value)return;l.preventDefault(),N()}if(!o&&d&&m===ne.G){if(a.value)return;l.preventDefault(),j()}if(o&&d&&m===ne.G){if(a.value)return;l.preventDefault(),Y()}if(i&&m===ne.F){if(a.value)return;l.preventDefault(),G(Q.TOP)}if(i&&m===ne.B){if(a.value)return;l.preventDefault(),G(Q.BOTTOM)}if(m===ne.DELETE||m===ne.BACKSPACE){if(a.value)return;l.preventDefault(),V()}if(m===ne.UP){if(a.value)return;l.preventDefault(),J(ne.UP)}if(m===ne.DOWN){if(a.value)return;l.preventDefault(),J(ne.DOWN)}if(m===ne.LEFT){if(a.value)return;l.preventDefault(),J(ne.LEFT)}if(m===ne.RIGHT){if(a.value)return;l.preventDefault(),J(ne.RIGHT)}if(m===ne.PAGEUP){if(a.value)return;l.preventDefault(),X(ne.PAGEUP)}if(m===ne.PAGEDOWN){if(a.value)return;l.preventDefault(),X(ne.PAGEDOWN)}if(m===ne.ENTER){if(a.value)return;l.preventDefault(),K()}if(m===ne.MINUS){if(a.value)return;l.preventDefault(),A("-")}if(m===ne.EQUAL){if(a.value)return;l.preventDefault(),A("+")}if(m===ne.DIGIT_0){if(a.value)return;l.preventDefault(),Z()}if(m===ne.TAB){if(a.value)return;l.preventDefault(),ee()}}},le=()=>{p.value&&t.setCtrlKeyState(!1),v.value&&t.setShiftKeyState(!1),m.value&&t.setSpaceKeyState(!1)};(0,i.bv)((()=>{document.addEventListener("keydown",te),document.addEventListener("keyup",le),window.addEventListener("blur",le)})),(0,i.Ah)((()=>{document.removeEventListener("keydown",te),document.removeEventListener("keyup",le),window.removeEventListener("blur",le)}))},Ea=()=>{const{editorAreaFocus:e,thumbnailsFocus:t,disableHotkeys:l}=(0,o.Jk)(R()),{pasteTextClipboardData:a}=ma(),{createImageElement:n}=pa(),s=e=>{na(e).then((e=>n(e)))},r=n=>{if(!e.value&&!t.value)return;if(l.value)return;if(!n.clipboardData)return;const o=n.clipboardData.items,i=o[0];if(i){for(const e of o)if("file"===e.kind&&-1!==e.type.indexOf("image")){const t=e.getAsFile();return void(t&&s(t))}"string"===i.kind&&"text/plain"===i.type&&i.getAsString((e=>a(e)))}};(0,i.bv)((()=>{document.addEventListener("paste",r)})),(0,i.Ah)((()=>{document.removeEventListener("paste",r)}))},Ma=l(7536),Ua=()=>{const e=$(),{theme:t}=(0,o.Jk)($()),{addSlidesFromData:l,isEmptySlide:a}=va(),n=(0,s.iH)(!1),i=(t,n=!1)=>{const o=t[0],i=new FileReader;i.addEventListener("load",(()=>{try{const t=JSON.parse(ve(i.result));n||a.value?e.setSlides(t):l(t)}catch{ta.error("无法正确读取 / 解析该文件")}})),i.readAsText(o)},u=e=>{let t=[0,0],l=[0,0];return e.isFlipV||e.isFlipH?e.isFlipV&&e.isFlipH?(t=[e.width,e.height],l=[0,0]):e.isFlipV&&!e.isFlipH?(t=[0,e.height],l=[e.width,0]):(t=[e.width,0],l=[0,e.height]):(t=[0,0],l=[e.width,e.height]),{type:"line",id:(0,r.x0)(10),width:e.borderWidth||1,left:e.left,top:e.top,start:t,end:l,style:"solid"===e.borderType?"solid":"dashed",color:e.borderColor,points:["","straightConnector1"===e.shapType?"arrow":""]}},c=o=>{const i=o[0];if(!i)return;n.value=!0;const s=[];for(const e of ua)s.push(...e.children);const c=new FileReader;c.onload=async o=>{const i=await(0,Ma.Q)(o.target.result,{slideFactor:75/914400,fontsizeFactor:100/98}),c=i.size.width,d=oa/c,p=[];for(const e of i.slides){const{type:l,value:a}=e.fill;let n;n="image"===l?{type:"image",image:a.picBase64,imageSize:"cover"}:"gradient"===l?{type:"gradient",gradientType:"linear",gradientColor:[a.colors[0].color,a.colors[a.colors.length-1].color],gradientRotate:a.rot}:{type:"solid",color:a};const o={id:(0,r.x0)(10),elements:[],background:n},i=e=>{for(const l of e)if(l.width=l.width*d,l.height=l.height*d,l.left=l.left*d,l.top=l.top*d,"text"===l.type){const e={type:"text",id:(0,r.x0)(10),width:l.width,height:l.height,left:l.left,top:l.top,rotate:l.rotate,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,content:l.content,lineHeight:1,outline:{color:l.borderColor,width:l.borderWidth,style:"solid"===l.borderType?"solid":"dashed"},fill:l.fillColor,vertical:l.isVertical};l.shadow&&(e.shadow=l.shadow),o.elements.push(e)}else if("image"===l.type)o.elements.push({type:"image",id:(0,r.x0)(10),src:l.src,width:l.width,height:l.height,left:l.left,top:l.top,fixedRatio:!0,rotate:l.rotate});else if("audio"===l.type)o.elements.push({type:"audio",id:(0,r.x0)(10),src:l.blob,width:l.width,height:l.height,left:l.left,top:l.top,rotate:0,fixedRatio:!1,color:t.value.themeColor,loop:!1,autoplay:!1});else if("video"===l.type)o.elements.push({type:"video",id:(0,r.x0)(10),src:l.blob||l.src,width:l.width,height:l.height,left:l.left,top:l.top,rotate:0,autoplay:!1});else if("shape"===l.type)if("line"===l.shapType||/Connector/.test(l.shapType)){const e=u(l);o.elements.push(e)}else{const e=s.find((e=>e.pptxShapeType===l.shapType)),a={mid:"middle",down:"bottom",up:"top"},n={type:"shape",id:(0,r.x0)(10),width:l.width,height:l.height,left:l.left,top:l.top,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:l.fillColor||"none",fixedRatio:!1,rotate:l.rotate,outline:{color:l.borderColor,width:l.borderWidth,style:"solid"===l.borderType?"solid":"dashed"},text:{content:l.content,defaultFontName:t.value.fontName,defaultColor:t.value.fontColor,align:a[l.vAlign]||"middle"},flipH:l.isFlipH,flipV:l.isFlipV};if(l.shadow&&(n.shadow=l.shadow),e&&(n.path=e.path,n.viewBox=e.viewBox,e.pathFormula)){n.pathFormula=e.pathFormula,n.viewBox=[l.width,l.height];const t=ra[e.pathFormula];"editable"in t?(n.path=t.formula(l.width,l.height,t.defaultValue),n.keypoint=t.defaultValue):n.path=t.formula(l.width,l.height)}"custom"===l.shapType&&(n.special=!0,n.path=l.path,n.viewBox=[l.width,l.height]),o.elements.push(n)}else if("table"===l.type){const e=l.data.length,a=l.data[0].length,n={fontname:t.value.fontName,color:t.value.fontColor},i=[];for(let t=0;te+"")),a=["系列1"],n=[t[1]]}else{const t=l.data;e=Object.values(t[0].xlabels),a=t.map((e=>e.key)),n=t.map((e=>e.values.map((e=>e.y))))}const i={};let s="bar";switch(l.chartType){case"barChart":case"bar3DChart":s="bar","bar"===l.barDir&&(i.horizontalBars=!0),"stacked"!==l.grouping&&"percentStacked"!==l.grouping||(i.stackBars=!0);break;case"lineChart":case"line3DChart":case"areaChart":case"area3DChart":case"scatterChart":case"bubbleChart":s="line","areaChart"!==l.chartType&&"area3DChart"!==l.chartType||(i.showArea=!0),"scatterChart"!==l.chartType&&"bubbleChart"!==l.chartType||(i.showLine=!1);break;case"pieChart":case"pie3DChart":case"doughnutChart":s="pie","doughnutChart"===l.chartType&&(i.donut=!0);break;default:}o.elements.push({type:"chart",id:(0,r.x0)(10),chartType:s,width:l.width,height:l.height,left:l.left,top:l.top,rotate:0,themeColor:[t.value.themeColor],gridColor:t.value.fontColor,data:{labels:e,legends:a,series:n},options:i})}else if("group"===l.type||"diagram"===l.type){const e=l.elements.map((e=>({...e,left:e.left+l.left,top:e.top+l.top})));i(e)}};i(e.elements),p.push(o)}a.value?e.setSlides(p):l(p),n.value=!1},c.readAsArrayBuffer(i)};return{importSpecificFile:i,importPPTXFile:c,exporting:n}};const Wa={class:"hotkey-doc"},Da={class:"title"},Ha={class:"label"},Fa={class:"value"};var Aa=(0,i.aZ)({__name:"HotkeyDoc",setup(e){return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Wa,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(ie),(e=>((0,i.wg)(),(0,i.iD)(i.HY,{key:e.type},[(0,i._)("div",Da,(0,oe.zw)(e.type),1),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.children,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"hotkey-item",key:e.label},[(0,i._)("div",Ha,(0,oe.zw)(e.label),1),(0,i._)("div",Fa,(0,oe.zw)(e.value),1)])))),128))],64)))),128))]))}});const $a=(0,Vl.Z)(Aa,[["__scopeId","data-v-a0322054"]]);var Za=$a;const Oa=["accept"];var Ra=(0,i.aZ)({__name:"FileInput",props:{accept:{default:"image/*"}},emits:["change"],setup(e,{emit:t}){const l=t,a=(0,s.iH)(),n=()=>{a.value&&(a.value.value="",a.value.click())},o=e=>{const t=e.target.files;t&&l("change",t)};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"file-input",onClick:t[1]||(t[1]=e=>n())},[(0,i.WI)(e.$slots,"default"),(0,i._)("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:a,accept:e.accept,onChange:t[0]||(t[0]=e=>o(e))},null,40,Oa)]))}});const za=(0,Vl.Z)(Ra,[["__scopeId","data-v-64bedb34"]]);var Pa=za;const Ba=e=>((0,i.dD)("data-v-a5c6b41c"),e=e(),(0,i.Cn)(),e),Na={key:0,class:"fullscreen-spin"},ja={class:"spin"},Ya=Ba((()=>(0,i._)("div",{class:"spinner"},null,-1))),Va={class:"text"};var Ja=(0,i.aZ)({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},tip:{default:""}},setup(e){return(e,t)=>e.loading?((0,i.wg)(),(0,i.iD)("div",Na,[(0,i._)("div",ja,[Ya,(0,i._)("div",Va,(0,oe.zw)(e.tip),1)])])):(0,i.kq)("",!0)}});const qa=(0,Vl.Z)(Ja,[["__scopeId","data-v-a5c6b41c"]]);var Xa=qa;const Ga={class:"header"};var Ka=(0,i.aZ)({__name:"Drawer",props:{visible:{type:Boolean},width:{default:320},contentStyle:{},placement:{default:"right"}},emits:["update:visible"],setup(e,{emit:t}){const l=e,a=t,o=(0,s.iH)(!1),r=(0,i.Fl)((()=>({width:l.width+"px",...l.contentStyle||{}})));return(e,t)=>{const s=(0,i.up)("IconClose");return(0,i.wg)(),(0,i.j4)(i.lR,{to:"body"},[(0,i.Wm)(n.uT,{name:`drawer-slide-${e.placement}`,onAfterLeave:t[1]||(t[1]=e=>o.value=!1),onBeforeEnter:t[2]||(t[2]=e=>o.value=!0)},{default:(0,i.w5)((()=>[(0,i.wy)((0,i._)("div",{class:(0,oe.C_)(["drawer",e.placement]),style:(0,oe.j5)({width:l.width+"px"})},[(0,i._)("div",Ga,[(0,i.WI)(e.$slots,"title"),(0,i._)("span",{class:"close-btn",onClick:t[0]||(t[0]=e=>a("update:visible",!1))},[(0,i.Wm)(s)])]),o.value?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"content",style:(0,oe.j5)(r.value)},[(0,i.WI)(e.$slots,"default")],4)):(0,i.kq)("",!0)],6),[[n.F8,e.visible]])])),_:3},8,["name"])])}}});const Qa=(0,Vl.Z)(Ka,[["__scopeId","data-v-749dadac"]]);var en=Qa;const tn={class:"prefix"},ln=["disabled","value","placeholder"],an={class:"suffix"};var nn=(0,i.aZ)({__name:"Input",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{expose:t,emit:l}){const a=l,o=(0,s.iH)(!1),r=e=>{a("update:value",e.target.value)},u=e=>{o.value=!1,a("blur",e)},c=e=>{o.value=!0,a("focus",e)},d=(0,s.iH)(),p=()=>{d.value&&d.value.focus()};return t({focus:p}),(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["input",{disabled:e.disabled,focused:o.value}])},[(0,i._)("span",tn,[(0,i.WI)(e.$slots,"prefix")]),(0,i._)("input",{type:"text",ref_key:"inputRef",ref:d,disabled:e.disabled,value:e.value,placeholder:e.placeholder,onInput:t[0]||(t[0]=e=>r(e)),onFocus:t[1]||(t[1]=e=>c(e)),onBlur:t[2]||(t[2]=e=>u(e)),onChange:t[3]||(t[3]=e=>a("change",e)),onKeydown:t[4]||(t[4]=(0,n.D2)((e=>a("enter",e)),["enter"]))},null,40,ln),(0,i._)("span",an,[(0,i.WI)(e.$slots,"suffix")])],2))}});const on=(0,Vl.Z)(nn,[["__scopeId","data-v-a97ba0dc"]]);var sn=on,rn=l(6488),un=(l(8627),(0,i.aZ)({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const l=e,a=t,n=(0,s.iH)(),o=(0,s.iH)(),r=(0,s.iH)(),u=(0,s.iH)(!1),c=(0,i.Fl)((()=>l.contentStyle||{}));return(0,i.YP)((()=>l.value),(()=>{n.value&&(l.value?n.value.show():n.value.hide())})),(0,i.bv)((()=>{n.value=(0,rn.ZP)(o.value,{content:r.value,allowHTML:!0,trigger:l.trigger,placement:l.placement,interactive:!0,appendTo:l.appendTo||document.body,maxWidth:"none",offset:[0,8],duration:200,animation:"scale",theme:"popover",onShow(){u.value=!0},onShown(){l.value||a("update:value",!0)},onHidden(){l.value&&a("update:value",!1),u.value=!1}})})),(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["popover",{center:e.center}]),ref_key:"triggerRef",ref:o},[(0,i._)("div",{class:"popover-content",style:(0,oe.j5)(c.value),ref_key:"contentRef",ref:r},[u.value?(0,i.WI)(e.$slots,"content",{key:0}):(0,i.kq)("",!0)],4),(0,i.WI)(e.$slots,"default")],2))}}));const cn=(0,Vl.Z)(un,[["__scopeId","data-v-70fabe9a"]]);var dn=cn,pn=(0,i.aZ)({__name:"PopoverMenuItem",props:{center:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const l=t;return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["popover-menu-item",{center:e.center}]),onClick:t[0]||(t[0]=e=>l("click"))},[(0,i.WI)(e.$slots,"default")],2))}});const vn=(0,Vl.Z)(pn,[["__scopeId","data-v-2f137c4f"]]);var mn=vn;const hn={class:"editor-header"},fn={class:"left"},gn={class:"menu-item"},yn={class:"title"},wn=["title"],xn={class:"right"},kn={class:"group-menu-item"},bn={class:"arrow-btn"},_n={class:"github-link",href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},In={class:"menu-item"};var Sn=(0,i.aZ)({__name:"index",setup(e){const t=R(),l=$(),{title:a}=(0,o.Jk)(l),{enterScreening:n,enterScreeningFromStart:r}=Ca(),{importSpecificFile:u,importPPTXFile:c,exporting:d}=Ua(),{resetSlides:p}=ha(),v=(0,s.iH)(!1),m=(0,s.iH)(!1),h=(0,s.iH)(!1),f=(0,s.iH)(),g=(0,s.iH)(""),y=()=>{g.value=a.value,h.value=!0,(0,i.Y3)((()=>f.value?.focus()))},w=()=>{l.setTitle(g.value),h.value=!1},x=e=>{window.open(e),v.value=!1},k=e=>{t.setDialogForExport(e),v.value=!1};return(e,t)=>{const l=(0,i.up)("IconHamburgerButton"),o=(0,i.up)("IconPpt"),b=(0,i.up)("IconDown"),_=(0,i.up)("IconDownload"),I=(0,i.up)("IconGithub"),S=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",hn,[(0,i._)("div",fn,[(0,i.Wm)(dn,{trigger:"click",placement:"bottom-start",value:v.value,"onUpdate:value":t[7]||(t[7]=e=>v.value=e)},{content:(0,i.w5)((()=>[(0,i.Wm)(Pa,{accept:".pptist",onChange:t[0]||(t[0]=e=>{(0,s.SU)(u)(e),v.value=!1})},{default:(0,i.w5)((()=>[(0,i.Wm)(mn,null,{default:(0,i.w5)((()=>[(0,i.Uk)("导入 pptist 文件")])),_:1})])),_:1}),(0,i.Wm)(Pa,{accept:"application/vnd.openxmlformats-officedocument.presentationml.presentation",onChange:t[1]||(t[1]=e=>{(0,s.SU)(c)(e),v.value=!1})},{default:(0,i.w5)((()=>[(0,i.Wm)(mn,null,{default:(0,i.w5)((()=>[(0,i.Uk)("导入 pptx 文件(测试版)")])),_:1})])),_:1}),(0,i.Wm)(mn,{onClick:t[2]||(t[2]=e=>k("pptx"))},{default:(0,i.w5)((()=>[(0,i.Uk)("导出文件")])),_:1}),(0,i.Wm)(mn,{onClick:t[3]||(t[3]=e=>{(0,s.SU)(p)(),v.value=!1})},{default:(0,i.w5)((()=>[(0,i.Uk)("重置幻灯片")])),_:1}),(0,i.Wm)(mn,{onClick:t[4]||(t[4]=e=>x("https://github.com/pipipi-pikachu/PPTist/issues"))},{default:(0,i.w5)((()=>[(0,i.Uk)("意见反馈")])),_:1}),(0,i.Wm)(mn,{onClick:t[5]||(t[5]=e=>x("https://github.com/pipipi-pikachu/PPTist/blob/master/doc/Q&A.md"))},{default:(0,i.w5)((()=>[(0,i.Uk)("常见问题")])),_:1}),(0,i.Wm)(mn,{onClick:t[6]||(t[6]=e=>{v.value=!1,m.value=!0})},{default:(0,i.w5)((()=>[(0,i.Uk)("快捷键")])),_:1})])),default:(0,i.w5)((()=>[(0,i._)("div",gn,[(0,i.Wm)(l,{class:"icon"})])])),_:1},8,["value"]),(0,i._)("div",yn,[h.value?((0,i.wg)(),(0,i.j4)(sn,{key:0,class:"title-input",ref_key:"titleInputRef",ref:f,value:g.value,"onUpdate:value":t[8]||(t[8]=e=>g.value=e),onBlur:t[9]||(t[9]=e=>w())},null,8,["value"])):((0,i.wg)(),(0,i.iD)("div",{key:1,class:"title-text",onClick:t[10]||(t[10]=e=>y()),title:(0,s.SU)(a)},(0,oe.zw)((0,s.SU)(a)),9,wn))])]),(0,i._)("div",xn,[(0,i._)("div",kn,[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"menu-item",onClick:t[11]||(t[11]=e=>(0,s.SU)(n)())},[(0,i.Wm)(o,{class:"icon"})])),[[S,"幻灯片放映"]]),(0,i.Wm)(dn,{trigger:"click",center:""},{content:(0,i.w5)((()=>[(0,i.Wm)(mn,{onClick:t[12]||(t[12]=e=>(0,s.SU)(r)())},{default:(0,i.w5)((()=>[(0,i.Uk)("从头开始")])),_:1}),(0,i.Wm)(mn,{onClick:t[13]||(t[13]=e=>(0,s.SU)(n)())},{default:(0,i.w5)((()=>[(0,i.Uk)("从当前页开始")])),_:1})])),default:(0,i.w5)((()=>[(0,i._)("div",bn,[(0,i.Wm)(b,{class:"arrow"})])])),_:1})]),(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"menu-item",onClick:t[14]||(t[14]=e=>k("pptx"))},[(0,i.Wm)(_,{class:"icon"})])),[[S,"导出"]]),(0,i._)("a",_n,[(0,i._)("div",In,[(0,i.Wm)(I,{class:"icon"})])])]),(0,i.Wm)(en,{width:320,visible:m.value,"onUpdate:visible":t[15]||(t[15]=e=>m.value=e),placement:"right"},{default:(0,i.w5)((()=>[(0,i.Wm)(Za)])),_:1},8,["visible"]),(0,i.Wm)(Xa,{loading:(0,s.SU)(d),tip:"正在导入..."},null,8,["loading"])])}}});const Cn=(0,Vl.Z)(Sn,[["__scopeId","data-v-0b9f8c7b"]]);var Ln=Cn;const Tn=Symbol(),En=Symbol(),Mn=Symbol(),Un=()=>{const e=window.getSelection();e&&e.removeAllRanges()};var Wn=e=>{const t=(0,s.iH)(0),l=(0,s.iH)(0),a=R(),{canvasPercentage:n,canvasDragged:r}=(0,o.Jk)(a),{viewportRatio:u}=(0,o.Jk)($()),c=()=>{if(!e.value)return;const o=e.value.clientWidth,i=e.value.clientHeight;if(i/o>u.value){const e=o*(n.value/100);a.setCanvasScale(e/oa),t.value=(o-e)/2,l.value=(i-e*u.value)/2}else{const e=i*(n.value/100);a.setCanvasScale(e/(oa*u.value)),t.value=(o-e/u.value)/2,l.value=(i-e)/2}},d=(n,o)=>{if(!e.value)return;const i=e.value.clientWidth,s=e.value.clientHeight,r=i*(n/100),c=i*(o/100),d=s*(n/100),p=s*(o/100);s/i>u.value?a.setCanvasScale(r/oa):a.setCanvasScale(d/(oa*u.value)),t.value=t.value-(r-c)/2,l.value=l.value-(d-p)/2};(0,i.YP)(n,d),(0,i.YP)(u,c),(0,i.YP)(r,(()=>{r.value||c()}));const p=(0,i.Fl)((()=>({width:oa,height:oa*u.value,left:t.value,top:l.value}))),v=new ResizeObserver(c);(0,i.bv)((()=>{e.value&&v.observe(e.value)})),(0,i.Ah)((()=>{e.value&&v.unobserve(e.value)}));const m=e=>{let n=!0;const o=e.pageX,i=e.pageY,s=t.value,r=l.value;document.onmousemove=e=>{if(!n)return;const a=e.pageX,u=e.pageY;t.value=s+(a-o),l.value=r+(u-i)},document.onmouseup=()=>{n=!1,document.onmousemove=null,document.onmouseup=null,a.setCanvasDragged(!0)}};return{viewportStyles:p,dragViewport:m}},Dn=(e,t)=>{const l=R(),{canvasScale:a,hiddenElementIdList:n}=(0,o.Jk)(l),i=(0,s.iH)(!1),r=(0,s.iH)(1),u=(0,s.iH)({top:0,left:0,width:0,height:0}),c=o=>{if(!t.value)return;let s=!0;const c=t.value.getBoundingClientRect(),d=5,p=o.pageX,v=o.pageY,m=(p-c.x)/a.value,h=(v-c.y)/a.value;u.value={top:h,left:m,width:0,height:0},i.value=!1,r.value=4,document.onmousemove=e=>{if(!s)return;const t=e.pageX,l=e.pageY,n=(t-p)/a.value,o=(l-v)/a.value,c=Math.abs(n),m=Math.abs(o);if(c0&&o>0?h=4:n<0&&o<0?h=2:n>0&&o<0?h=1:n<0&&o>0&&(h=3),u.value={...u.value,width:c,height:m},i.value=!0,r.value=h},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,s=!1;let t=[];for(let l=0;lo&&pi&&mo-s&&pi-c&&mo&&pi-c&&mo-s&&pi&&m{if(l.groupId){const a=t.map((e=>e.id)),n=e.value.filter((e=>e.groupId===l.groupId));return n.every((e=>a.includes(e.id)))}return!0}));const a=t.map((e=>e.id));l.setActiveElementIdList(a),i.value=!1}};return{mouseSelection:u,mouseSelectionVisible:i,mouseSelectionQuadrant:r,updateMouseSelection:c}},Hn=e=>{const{disableHotkeys:t}=(0,o.Jk)(R()),{createImageElement:l,createTextElement:a}=pa(),n=e=>{if(!e.dataTransfer||0===e.dataTransfer.items.length)return;const n=e.dataTransfer.items[0];if("file"===n.kind&&-1!==n.type.indexOf("image")){const e=n.getAsFile();e&&na(e).then((e=>l(e)))}else"string"===n.kind&&"text/plain"===n.type&&n.getAsString((e=>{if(t.value)return;const l=la(e);a({left:0,top:0,width:600,height:50},{content:l})}))};(0,i.bv)((()=>{e.value&&e.value.addEventListener("drop",n),document.ondragleave=e=>e.preventDefault(),document.ondrop=e=>e.preventDefault(),document.ondragenter=e=>e.preventDefault(),document.ondragover=e=>e.preventDefault()})),(0,i.Ah)((()=>{e.value&&e.value.removeEventListener("drop",n),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null}))};const Fn=(e,t)=>{const l=Math.atan2(e,t),a=180/Math.PI*l;return a};var An=(e,t,l)=>{const a=$(),{addHistorySnapshot:n}=da(),o=(o,i)=>{const s=!(o instanceof MouseEvent);if(s&&(!o.changedTouches||!o.changedTouches[0]))return;let r=!0,u=0;const c=i.rotate||0,d=i.left,p=i.top,v=i.width,m=i.height,h=d+v/2,f=p+m/2;if(!t.value)return;const g=t.value.getBoundingClientRect(),y=t=>{if(!r)return;const a=t instanceof MouseEvent?t.pageX:t.changedTouches[0].pageX,n=t instanceof MouseEvent?t.pageY:t.changedTouches[0].pageY,o=(a-g.left)/l.value,s=(n-g.top)/l.value,c=o-h,d=f-s;u=Fn(c,d);const p=5;Math.abs(u)<=p?u=0:u>0&&Math.abs(u-45)<=p?u-=u-45:u<0&&Math.abs(u+45)<=p?u-=u+45:u>0&&Math.abs(u-90)<=p?u-=u-90:u<0&&Math.abs(u+90)<=p?u-=u+90:u>0&&Math.abs(u-135)<=p?u-=u-135:u<0&&Math.abs(u+135)<=p?u-=u+135:u>0&&Math.abs(u-180)<=p?u-=u-180:u<0&&Math.abs(u+180)<=p&&(u-=u+180),e.value=e.value.map((e=>i.id===e.id?{...e,rotate:u}:e))},w=()=>{r=!1,document.onmousemove=null,document.onmouseup=null,c!==u&&(a.updateSlide({elements:e.value}),n())};s?(document.ontouchmove=y,document.ontouchend=w):(document.onmousemove=y,document.onmouseup=w)};return{rotateElement:o}};const $n={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频",latex:"公式"},Zn={text:20,image:20,shape:15,chart:200,table:20,video:250,audio:20,latex:20},On=(e,t)=>{const{left:l,top:a,width:n,height:o}=e,i=Math.sqrt(Math.pow(n,2)+Math.pow(o,2))/2,s=180*Math.atan(o/n)/Math.PI,r=(180-t-s)*Math.PI/180,u=(s-t)*Math.PI/180,c=(90-t)*Math.PI/180,d=t*Math.PI/180,p=n/2,v=o/2,m=l+p,h=a+v,f={left:m+i*Math.cos(r),top:h-i*Math.sin(r)},g={left:m+v*Math.cos(c),top:h-v*Math.sin(c)},y={left:m+i*Math.cos(u),top:h-i*Math.sin(u)},w={left:m+p*Math.cos(d),top:h+p*Math.sin(d)},x={left:m-i*Math.cos(r),top:h+i*Math.sin(r)},k={left:m-v*Math.sin(d),top:h+v*Math.cos(d)},b={left:m-i*Math.cos(u),top:h+i*Math.sin(u)},_={left:m-p*Math.cos(d),top:h-p*Math.sin(d)};return{leftTopPoint:f,topPoint:g,rightTopPoint:y,rightPoint:w,rightBottomPoint:x,bottomPoint:k,leftBottomPoint:b,leftPoint:_}},Rn=(e,t)=>{const l={[le.RIGHT_BOTTOM]:t.leftTopPoint,[le.LEFT_BOTTOM]:t.rightTopPoint,[le.LEFT_TOP]:t.rightBottomPoint,[le.RIGHT_TOP]:t.leftBottomPoint,[le.TOP]:t.bottomPoint,[le.BOTTOM]:t.topPoint,[le.LEFT]:t.rightPoint,[le.RIGHT]:t.leftPoint};return l[e]};var zn,Pn,Bn=(e,t,l)=>{const a=R(),n=$(),{activeElementIdList:i,activeGroupElementId:s}=(0,o.Jk)(a),{viewportRatio:r}=(0,o.Jk)(n),{ctrlOrShiftKeyActive:u}=(0,o.Jk)(q()),{addHistorySnapshot:c}=da(),d=(o,d,p)=>{const v=!(o instanceof MouseEvent);if(v&&(!o.changedTouches||!o.changedTouches[0]))return;let m=!0;a.setScalingState(!0);const h=d.left,f=d.top,g=d.width,y=d.height,w="table"===d.type?d.cellMinHeight:0,x="rotate"in d&&d.rotate?d.rotate:0,k=Math.PI*x/180,b=u.value||"fixedRatio"in d&&d.fixedRatio,_=g/y,I=v?o.changedTouches[0].pageX:o.pageX,S=v?o.changedTouches[0].pageY:o.pageY,C=Zn[d.type]||20,L=e=>e{const t=C/_;return e{const a=5,n=[];let o=!1,i=!1;const s={offsetX:0,offsetY:0};if(l||0===l)for(let t=0;t{if(!m)return;const a=t instanceof MouseEvent?t.pageX:t.changedTouches[0].pageX,n=t instanceof MouseEvent?t.pageY:t.changedTouches[0].pageY,o=a-I,i=n-S;let s=g,r=y,u=h,c=f;if(x){const e=(Math.cos(k)*o+Math.sin(k)*i)/l.value;let t=(Math.cos(k)*i-Math.sin(k)*o)/l.value;b&&(p!==le.RIGHT_BOTTOM&&p!==le.LEFT_TOP||(t=e/_),p!==le.LEFT_BOTTOM&&p!==le.RIGHT_TOP||(t=-e/_)),p===le.RIGHT_BOTTOM?(s=L(g+e),r=T(y+t)):p===le.LEFT_BOTTOM?(s=L(g-e),r=T(y+t),u=h-(s-g)):p===le.LEFT_TOP?(s=L(g-e),r=T(y-t),u=h-(s-g),c=f-(r-y)):p===le.RIGHT_TOP?(s=L(g+e),r=T(y-t),c=f-(r-y)):p===le.TOP?(r=L(y-t),c=f-(r-y)):p===le.BOTTOM?r=L(y+t):p===le.LEFT?(s=L(g-e),u=h-(s-g)):p===le.RIGHT&&(s=L(g+e));const a=On({width:s,height:r,left:u,top:c},x),n=Rn(p,a),d=n.left,v=n.top,m=d-M,w=v-U;u-=m,c-=w}else{let e=o/l.value,t=i/l.value;if(b&&(p!==le.RIGHT_BOTTOM&&p!==le.LEFT_TOP||(t=e/_),p!==le.LEFT_BOTTOM&&p!==le.RIGHT_TOP||(t=-e/_)),p===le.RIGHT_BOTTOM){const{offsetX:l,offsetY:a}=H(h+g+e,f+y+t);e-=l,t-=a,b&&(a?e=t*_:t=e/_),s=L(g+e),r=T(y+t)}else if(p===le.LEFT_BOTTOM){const{offsetX:l,offsetY:a}=H(h+e,f+y+t);e-=l,t-=a,b&&(a?e=-t*_:t=-e/_),s=L(g-e),r=T(y+t),u=h-(s-g)}else if(p===le.LEFT_TOP){const{offsetX:l,offsetY:a}=H(h+e,f+t);e-=l,t-=a,b&&(a?e=t*_:t=e/_),s=L(g-e),r=T(y-t),u=h-(s-g),c=f-(r-y)}else if(p===le.RIGHT_TOP){const{offsetX:l,offsetY:a}=H(h+g+e,f+t);e-=l,t-=a,b&&(a?e=-t*_:t=-e/_),s=L(g+e),r=T(y-t),c=f-(r-y)}else if(p===le.LEFT){const{offsetX:t}=H(h+e,null);e-=t,s=L(g-e),u=h-(s-g)}else if(p===le.RIGHT){const{offsetX:t}=H(h+g+e,null);e-=t,s=L(g+e)}else if(p===le.TOP){const{offsetY:e}=H(null,f+t);t-=e,r=L(y-t),c=f-(r-y)}else if(p===le.BOTTOM){const{offsetY:e}=H(null,f+y+t);t-=e,r=L(y+t)}}e.value=e.value.map((e=>{if(d.id!==e.id)return e;if("shape"===e.type&&"pathFormula"in e&&e.pathFormula){const t=ra[e.pathFormula];let l="";return l="editable"in t?t.formula(s,r,e.keypoint):t.formula(s,r),{...e,left:u,top:c,width:s,height:r,viewBox:[s,r],path:l}}if("table"===e.type){let t=w+(r-y)/e.data.length;return t=t<36?36:t,t===w?{...e,left:u,width:s}:{...e,left:u,top:c,width:s,height:r,cellMinHeight:t<36?36:t}}return{...e,left:u,top:c,width:s,height:r}}))},A=l=>{m=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const o=l instanceof MouseEvent?l.pageX:l.changedTouches[0].pageX,i=l instanceof MouseEvent?l.pageY:l.changedTouches[0].pageY;I===o&&S===i||(n.updateSlide({elements:e.value}),a.setScalingState(!1),c())};v?(document.ontouchmove=F,document.ontouchend=A):(document.onmousemove=F,document.onmouseup=A)},p=(t,a,o)=>{let s=!0;const{minX:r,maxX:d,minY:p,maxY:v}=a,m=d-r,h=v-p,f=m/h,g=t.pageX,y=t.pageY,w=JSON.parse(JSON.stringify(e.value));document.onmousemove=t=>{if(!s)return;const a=t.pageX,n=t.pageY,c=(a-g)/l.value;let x=(n-y)/l.value;u.value&&(o!==le.RIGHT_BOTTOM&&o!==le.LEFT_TOP||(x=c/f),o!==le.LEFT_BOTTOM&&o!==le.RIGHT_TOP||(x=-c/f));let k=r,b=d,_=p,I=v;o===le.RIGHT_BOTTOM?(b=d+c,I=v+x):o===le.LEFT_BOTTOM?(k=r+c,I=v+x):o===le.LEFT_TOP?(k=r+c,_=p+x):o===le.RIGHT_TOP?(b=d+c,_=p+x):o===le.TOP?_=p+x:o===le.BOTTOM?I=v+x:o===le.LEFT?k=r+c:o===le.RIGHT&&(b=d+c);const S=b-k,C=I-_;let L=S/m,T=C/h;L<=0&&(L=0),T<=0&&(T=0),e.value=e.value.map((e=>{if(("image"===e.type||"shape"===e.type)&&i.value.includes(e.id)){const t=w.find((t=>t.id===e.id));return{...e,width:t.width*L,height:t.height*T,left:k+(t.left-r)*L,top:_+(t.top-p)*T}}return e}))},document.onmouseup=t=>{s=!1,document.onmousemove=null,document.onmouseup=null,g===t.pageX&&y===t.pageY||(n.updateSlide({elements:e.value}),c())}};return{scaleElement:d,scaleMultiElement:p}},Nn=(e,t)=>{const l=R(),{activeElementIdList:a,activeGroupElementId:n,handleElementId:i,editorAreaFocus:s}=(0,o.Jk)(l),{ctrlOrShiftKeyActive:r}=(0,o.Jk)(q()),u=(o,u,c=!0)=>{if(s.value||l.setEditorareaFocus(!0),a.value.includes(u.id)){if(r.value){let t=[];if(u.groupId){const l=[];e.value.forEach((e=>{e.groupId===u.groupId&&l.push(e.id)})),t=a.value.filter((e=>!l.includes(e)))}else t=a.value.filter((e=>e!==u.id));t.length>0&&l.setActiveElementIdList(t)}else if(i.value!==u.id)l.setHandleElementId(u.id);else if(n.value!==u.id){const e=o instanceof MouseEvent?o.pageX:o.changedTouches[0].pageX,t=o instanceof MouseEvent?o.pageY:o.changedTouches[0].pageY;o.target.onmouseup=a=>{const n=a.pageX,o=a.pageY;e===n&&t===o&&(l.setActiveGroupElementId(u.id),a.target.onmouseup=null)}}}else{let t=[];if(t=r.value?[...a.value,u.id]:[u.id],u.groupId){const l=[];e.value.forEach((e=>{e.groupId===u.groupId&&l.push(e.id)})),t=[...t,...l]}l.setActiveElementIdList((0,D.uniq)(t)),l.setHandleElementId(u.id)}c&&t(o,u)};return{selectElement:u}},jn=(e,t,l)=>{const a=$(),{activeElementIdList:n,activeGroupElementId:i}=(0,o.Jk)(R()),{shiftKeyState:s}=(0,o.Jk)(q()),{viewportRatio:r}=(0,o.Jk)(a),{addHistorySnapshot:u}=da(),c=(o,c)=>{const d=!(o instanceof MouseEvent);if(d&&(!o.changedTouches||!o.changedTouches[0]))return;if(!n.value.includes(c.id))return;let p=!0;const v=oa,m=oa*r.value,h=5,f=JSON.parse(JSON.stringify(e.value)),g=f.filter((e=>n.value.includes(e.id))),y=c.left,w=c.top,x=c.width,k="height"in c&&c.height?c.height:0,b="rotate"in c&&c.rotate?c.rotate:0,_=d?o.changedTouches[0].pageX:o.pageX,I=d?o.changedTouches[0].pageY:o.pageY;let S=null;const C=c.id===i.value;let L=[],T=[];for(const t of e.value){if("line"===t.type)continue;if(C&&t.id===c.id)continue;if(!C&&n.value.includes(t.id))continue;let e,l,a,o;if("rotate"in t&&t.rotate){const{xRange:n,yRange:i}=ye({left:t.left,top:t.top,width:t.width,height:t.height,rotate:t.rotate});e=n[0],l=i[0],a=n[1]-n[0],o=i[1]-i[0]}else e=t.left,l=t.top,a=t.width,o=t.height;const i=e+a,s=l+o,r=l+o/2,u=e+a/2,d={value:l,range:[e,i]},p={value:s,range:[e,i]},v={value:r,range:[e,i]},m={value:e,range:[l,s]},h={value:i,range:[l,s]},f={value:u,range:[l,s]};L.push(d,p,v),T.push(m,h,f)}const E={value:0,range:[0,v]},M={value:m,range:[0,v]},U={value:m/2,range:[0,v]},W={value:0,range:[0,m]},D={value:v,range:[0,m]},H={value:v/2,range:[0,m]};L.push(E,M,U),T.push(W,D,H),L=be(L),T=be(T);const F=a=>{const o=a instanceof MouseEvent?a.pageX:a.changedTouches[0].pageX,i=a instanceof MouseEvent?a.pageY:a.changedTouches[0].pageY;if(!1!==S&&(S=Math.abs(_-o)Math.abs(u)&&(u=0),Math.abs(r)e.id===c.id?{...e,left:E,top:M}:e));else{const t=e.value.find((e=>e.id===c.id));if(!t)return;e.value=e.value.map((e=>n.value.includes(e.id)?e.id===c.id?{...e,left:E,top:M}:{...e,left:e.left+(E-t.left),top:e.top+(M-t.top)}:e))}},A=l=>{p=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null,t.value=[];const n=l instanceof MouseEvent?l.pageX:l.changedTouches[0].pageX,o=l instanceof MouseEvent?l.pageY:l.changedTouches[0].pageY;_===n&&I===o||(a.updateSlide({elements:e.value}),u())};d?(document.ontouchmove=F,document.ontouchend=A):(document.onmousemove=F,document.onmouseup=A)};return{dragElement:c}},Yn=e=>{const t=$(),{canvasScale:l}=(0,o.Jk)(R()),{ctrlOrShiftKeyActive:a}=(0,o.Jk)(q()),{addHistorySnapshot:n}=da(),i=(o,i,s)=>{let r=!0;const u=8,c=o.pageX,d=o.pageY,p=[];for(let t=0;t{if(!r)return;const n=t.pageX,o=t.pageY,v=(n-c)/l.value,m=(o-d)/l.value;let h=i.left+i.start[0],f=i.top+i.start[1],g=i.left+i.end[0],y=i.top+i.end[1];const w=i.broken||i.curve||[0,0];let x=i.left+w[0],k=i.top+w[1];const[b,_]=i.cubic||[[0,0],[0,0]];let I=i.left+b[0],S=i.top+b[1],C=i.left+_[0],L=i.top+_[1];if(s===ae.START){h+=v,f+=m,Math.abs(h-g)g&&(W[0]=M-T,D[0]=0),f>y&&(W[1]=U-E,D[1]=0),e.value=e.value.map((e=>{if(e.id===i.id){const t={...e,left:T,top:E,start:W,end:D};return s===ae.START||s===ae.END?a.value?(i.broken&&(t.broken=[x-T,k-E]),i.curve&&(t.curve=[x-T,k-E]),i.cubic&&(t.cubic=[[I-T,S-E],[C-T,L-E]])):(i.broken&&(t.broken=[(W[0]+D[0])/2,(W[1]+D[1])/2]),i.curve&&(t.curve=[(W[0]+D[0])/2,(W[1]+D[1])/2]),i.cubic&&(t.cubic=[[(W[0]+D[0])/2,(W[1]+D[1])/2],[(W[0]+D[0])/2,(W[1]+D[1])/2]])):s===ae.C?(i.broken&&(t.broken=[x-T,k-E]),i.curve&&(t.curve=[x-T,k-E])):i.cubic&&(t.cubic=[[I-T,S-E],[C-T,L-E]]),t}return e}))},document.onmouseup=l=>{r=!1,document.onmousemove=null,document.onmouseup=null;const a=l.pageX,o=l.pageY;c===a&&d===o||(t.updateSlide({elements:e.value}),n())}};return{dragLineElement:i}},Vn=(e,t)=>{const l=$(),{addHistorySnapshot:a}=da(),n=(n,o)=>{const i=!(n instanceof MouseEvent);if(i&&(!n.changedTouches||!n.changedTouches[0]))return;let s=!0;const r=i?n.changedTouches[0].pageX:n.pageX,u=i?n.changedTouches[0].pageY:n.pageY,c=ra[o.pathFormula];let d=null;if("editable"in c){const e=c.getBaseSize(o.width,o.height),t=e*o.keypoint,[l,a]=c.range,n=c.relative;d={baseSize:e,originPos:t,min:l,max:a,relative:n}}const p=l=>{if(!s)return;const a=l instanceof MouseEvent?l.pageX:l.changedTouches[0].pageX,n=l instanceof MouseEvent?l.pageY:l.changedTouches[0].pageY,i=(a-r)/t.value,p=(n-u)/t.value;e.value=e.value.map((e=>{if(e.id===o.id&&d){const{baseSize:t,originPos:l,min:a,max:n,relative:o}=d,s=e;let r=0;return"left"===o&&(r=(l+i)/t),"right"===o&&(r=(l-i)/t),"center"===o&&(r=(l-2*i)/t),"top"===o&&(r=(l+p)/t),"bottom"===o&&(r=(l-p)/t),rn&&(r=n),{...e,keypoint:r,path:c.formula(s.width,s.height,r)}}return e}))},v=t=>{s=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;const n=t instanceof MouseEvent?t.pageX:t.changedTouches[0].pageX,o=t instanceof MouseEvent?t.pageY:t.changedTouches[0].pageY;r===n&&u===o||(l.updateSlide({elements:e.value}),a())};i?(document.ontouchmove=p,document.ontouchend=v):(document.onmousemove=p,document.onmouseup=v)};return{moveShapeKeypoint:n}},Jn=e=>{const t=R(),{canvasScale:l,creatingElement:a}=(0,o.Jk)(t),n=t=>{const{start:a,end:n}=t;if(!e.value)return;const o=e.value.getBoundingClientRect(),[i,s]=a,[r,u]=n,c=Math.min(i,r),d=Math.max(i,r),p=Math.min(s,u),v=Math.max(s,u),m=(c-o.x)/l.value,h=(p-o.y)/l.value,f=(d-c)/l.value,g=(v-p)/l.value;return{left:m,top:h,width:f,height:g}},i=t=>{const{start:a,end:n}=t;if(!e.value)return;const o=e.value.getBoundingClientRect(),[i,s]=a,[r,u]=n,c=Math.min(i,r),d=Math.max(i,r),p=Math.min(s,u),v=Math.max(s,u),m=(c-o.x)/l.value,h=(p-o.y)/l.value,f=(d-c)/l.value,g=(v-p)/l.value,y=[i===c?0:f,s===p?0:g],w=[r===c?0:f,u===p?0:g];return{left:m,top:h,start:y,end:w}},{createTextElement:s,createShapeElement:r,createLineElement:u}=pa(),c=e=>{if(!a.value)return;const l=a.value.type;if("text"===l){const t=n(e);t&&s(t,{vertical:a.value.vertical})}else if("shape"===l){const t=n(e);t&&r(t,a.value.data)}else if("line"===l){const t=i(e);t&&u(t,a.value.data)}t.setCreatingElement(null)};return{formatCreateSelection:n,insertElementFromCreateSelection:c}},qn=()=>{const e=$(),{activeElementIdList:t,activeElementList:l}=(0,o.Jk)(R()),{currentSlide:a,viewportRatio:n}=(0,o.Jk)(e),{addHistorySnapshot:i}=da(),s=o=>{const s=oa,r=oa*n.value,{minX:u,maxX:c,minY:d,maxY:p}=ke(l.value),v=JSON.parse(JSON.stringify(a.value.elements));for(const e of v)if(t.value.includes(e.id)){if(o===ee.CENTER){const t=d+(p-d)/2-r/2,l=u+(c-u)/2-s/2;e.top=e.top-t,e.left=e.left-l}if(o===ee.TOP){const t=d-0;e.top=e.top-t}else if(o===ee.VERTICAL){const t=d+(p-d)/2-r/2;e.top=e.top-t}else if(o===ee.BOTTOM){const t=p-r;e.top=e.top-t}else if(o===ee.LEFT){const t=u-0;e.left=e.left-t}else if(o===ee.HORIZONTAL){const t=u+(c-u)/2-s/2;e.left=e.left-t}else if(o===ee.RIGHT){const t=c-s;e.left=e.left-t}}e.updateSlide({elements:v}),i()};return{alignElementToCanvas:s}},Xn=e=>{const t=(0,i.Fl)((()=>{if(e.value){const{h:t,v:l,blur:a,color:n}=e.value;return`${t}px ${l}px ${a}px ${n}`}return""}));return{shadowStyle:t}},Gn=(e,t)=>{const l=(0,i.Fl)((()=>{let l="";return e.value&&t.value?l="rotateX(180deg) rotateY(180deg)":t.value?l="rotateX(180deg)":e.value&&(l="rotateY(180deg)"),l}));return{flipStyle:l}};(function(e){e["RECT"]="rect",e["ELLIPSE"]="ellipse",e["POLYGON"]="polygon"})(zn||(zn={})),function(e){e["RECT"]="rect",e["ROUNDRECT"]="roundRect",e["ELLIPSE"]="ellipse",e["TRIANGLE"]="triangle",e["PENTAGON"]="pentagon",e["RHOMBUS"]="rhombus",e["STAR"]="star"}(Pn||(Pn={}));const Kn={rect:{name:"矩形",type:zn.RECT,radius:"0",style:""},rect2:{name:"矩形2",type:zn.POLYGON,style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(e,t)=>`M 0 0 L ${.8*e} 0 L ${e} ${.2*t} L ${e} ${t} L 0 ${t} Z`},rect3:{name:"矩形3",type:zn.POLYGON,style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(e,t)=>`M 0 0 L ${.8*e} 0 L ${e} ${.2*t} L ${e} ${t} L ${.2*e} ${t} L 0 ${.8*t} Z`},roundRect:{name:"圆角矩形",type:zn.RECT,radius:"10px",style:"inset(0 0 0 0 round 10px 10px 10px 10px)"},ellipse:{name:"圆形",type:zn.ELLIPSE,style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:zn.POLYGON,style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M ${.5*e} 0 L 0 ${t} L ${e} ${t} Z`},triangle2:{name:"三角形2",type:zn.POLYGON,style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(e,t)=>`M ${.5*e} ${t} L 0 0 L ${e} 0 Z`},triangle3:{name:"三角形3",type:zn.POLYGON,style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M 0 0 L 0 ${t} L ${e} ${t} Z`},rhombus:{name:"菱形",type:zn.POLYGON,style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(e,t)=>`M ${.5*e} 0 L ${e} ${.5*t} L ${.5*e} ${t} L 0 ${.5*t} Z`},pentagon:{name:"五边形",type:zn.POLYGON,style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(e,t)=>`M ${.5*e} 0 L ${e} ${.38*t} L ${.82*e} ${t} L ${.18*e} ${t} L 0 ${.38*t} Z`},hexagon:{name:"六边形",type:zn.POLYGON,style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(e,t)=>`M ${.2*e} 0 L ${.8*e} 0 L ${e} ${.5*t} L ${.8*e} ${t} L ${.2*e} ${t} L 0 ${.5*t} Z`},heptagon:{name:"七边形",type:zn.POLYGON,style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(e,t)=>`M ${.5*e} 0 L ${.9*e} ${.2*t} L ${e} ${.6*t} L ${.75*e} ${t} L ${.25*e} ${t} L 0 ${.6*t} L ${.1*e} ${.2*t} Z`},octagon:{name:"八边形",type:zn.POLYGON,style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:(e,t)=>`M ${.3*e} 0 L ${.7*e} 0 L ${e} ${.3*t} L ${e} ${.7*t} L ${.7*e} ${t} L ${.3*e} ${t} L 0 ${.7*t} L 0 ${.3*t} Z`},chevron:{name:"V形",type:zn.POLYGON,style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(e,t)=>`M ${.75*e} 0 L ${e} ${.5*t} L ${.75*e} ${t} L 0 ${t} L ${.25*e} ${.5*t} L 0 0 Z`},point:{name:"点",type:zn.POLYGON,style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(e,t)=>`M 0 0 L ${.75*e} 0 L ${e} ${.5*t} L ${.75*e} ${t} L 0 ${t} Z`},arrow:{name:"箭头",type:zn.POLYGON,style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(e,t)=>`M 0 ${.2*t} L ${.6*e} ${.2*t} L ${.6*e} 0 L ${e} ${.5*t} L ${.6*e} ${t} L ${.6*e} ${.8*t} L 0 ${.8*t} Z`},parallelogram:{name:"平行四边形",type:zn.POLYGON,style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(e,t)=>`M ${.3*e} 0 L ${e} 0 L ${.7*e} ${t} L 0 ${t} Z`},parallelogram2:{name:"平行四边形2",type:zn.POLYGON,style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(e,t)=>`M ${.3*e} ${t} L ${e} ${t} L ${.7*e} 0 L 0 0 Z`},trapezoid:{name:"梯形",type:zn.POLYGON,style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(e,t)=>`M ${.25*e} 0 L ${.75*e} 0 L ${e} ${t} L 0 ${t} Z`},trapezoid2:{name:"梯形2",type:zn.POLYGON,style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(e,t)=>`M 0 0 L ${e} 0 L ${.75*e} ${t} L ${.25*e} ${t} Z`}};var Qn=e=>{const t=(0,i.Fl)((()=>{if(!e.value)return Kn.rect;const t=e.value.shape||zn.RECT;return Kn[t]})),l=(0,i.Fl)((()=>{if(!e.value)return{top:"0",left:"0",width:"100%",height:"100%"};const[t,l]=e.value.range,a=(l[0]-t[0])/100,n=(l[1]-t[1])/100,o=t[0]/a,i=t[1]/n;return{left:-o+"%",top:-i+"%",width:100/a+"%",height:100/n+"%"}}));return{clipShape:t,imgPosition:l}},eo=e=>{const t=(0,i.Fl)((()=>{if(!e.value)return"";let t="";const l=Object.keys(e.value);for(const a of l)t+=`${a}(${e.value[a]}) `;return t}));return{filter:t}},to=e=>{const t=(0,i.Fl)((()=>e.value?.width??0)),l=(0,i.Fl)((()=>e.value?.style||"solid")),a=(0,i.Fl)((()=>e.value?.color||"#d14424")),n=(0,i.Fl)((()=>{if("dashed"!==l.value)return"0 0";const e=t.value;return e<=6?`${4.5*e} ${2*e}`:`${4*e} ${1.5*e}`}));return{outlineWidth:t,outlineStyle:l,outlineColor:a,strokeDashArray:n}};const lo=["width","height"],ao=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"];var no=(0,i.aZ)({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(e){const t=e,{outlineWidth:l,outlineColor:a,strokeDashArray:n}=to((0,s.Vh)(t,"outline"));return(e,t)=>e.outline?((0,i.wg)(),(0,i.iD)("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:e.width,height:e.height},[(0,i._)("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:e.radius,ry:e.radius,width:e.width,height:e.height,stroke:(0,s.SU)(a),"stroke-width":(0,s.SU)(l),"stroke-dasharray":(0,s.SU)(n)},null,8,ao)],8,lo)):(0,i.kq)("",!0)}});const oo=(0,Vl.Z)(no,[["__scopeId","data-v-35e36256"]]);var io=oo;const so=["width","height"],ro=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"];var uo=(0,i.aZ)({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:l,outlineColor:a,strokeDashArray:n}=to((0,s.Vh)(t,"outline"));return(e,t)=>e.outline?((0,i.wg)(),(0,i.iD)("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:e.width,height:e.height},[(0,i._)("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:e.width/2,cy:e.height/2,rx:e.width/2,ry:e.height/2,stroke:(0,s.SU)(a),"stroke-width":(0,s.SU)(l),"stroke-dasharray":(0,s.SU)(n)},null,8,ro)],8,so)):(0,i.kq)("",!0)}});const co=(0,Vl.Z)(uo,[["__scopeId","data-v-11836cf8"]]);var po=co;const vo=["width","height"],mo=["d","stroke","stroke-width","stroke-dasharray"];var ho=(0,i.aZ)({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(e){const t=e,{outlineWidth:l,outlineColor:a,strokeDashArray:n}=to((0,s.Vh)(t,"outline"));return(e,t)=>e.outline?((0,i.wg)(),(0,i.iD)("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:e.width,height:e.height},[(0,i._)("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:e.createPath(e.width,e.height),stroke:(0,s.SU)(a),"stroke-width":(0,s.SU)(l),"stroke-dasharray":(0,s.SU)(n)},null,8,mo)],8,vo)):(0,i.kq)("",!0)}});const fo=(0,Vl.Z)(ho,[["__scopeId","data-v-6e021ee2"]]);var go=fo;const yo={class:"image-outline"};var wo=(0,i.aZ)({__name:"index",props:{elementInfo:{}},setup(e){const t=e,l=(0,i.Fl)((()=>t.elementInfo.clip)),{clipShape:a}=Qn(l);return(e,t)=>((0,i.wg)(),(0,i.iD)("div",yo,["rect"===(0,s.SU)(a).type?((0,i.wg)(),(0,i.j4)(io,{key:0,width:e.elementInfo.width,height:e.elementInfo.height,radius:(0,s.SU)(a).radius,outline:e.elementInfo.outline},null,8,["width","height","radius","outline"])):"ellipse"===(0,s.SU)(a).type?((0,i.wg)(),(0,i.j4)(po,{key:1,width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"])):"polygon"===(0,s.SU)(a).type?((0,i.wg)(),(0,i.j4)(go,{key:2,width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline,createPath:(0,s.SU)(a).createPath},null,8,["width","height","outline","createPath"])):(0,i.kq)("",!0)]))}});const xo=wo;var ko=xo;const bo=e=>((0,i.dD)("data-v-5984406b"),e=e(),(0,i.Cn)(),e),_o=["src"],Io=["src"],So=["onMousedown"],Co=bo((()=>(0,i._)("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[(0,i._)("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"})],-1))),Lo=[Co],To=["onMousedown"],Eo=bo((()=>(0,i._)("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[(0,i._)("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1))),Mo=[Eo];var Uo=(0,i.aZ)({__name:"ImageClipHandler",props:{src:{},clipPath:{},width:{},height:{},top:{},left:{},rotate:{},clipData:{}},emits:["clip"],setup(e,{emit:t}){const l=e,a=t,{canvasScale:r}=(0,o.Jk)(R()),{ctrlOrShiftKeyActive:u}=(0,o.Jk)(q()),c=(0,s.iH)({top:"0",left:"0"}),d=(0,s.iH)(!1),p=(0,s.iH)(null),v=()=>{const[e,t]=l.clipData?l.clipData.range:[[0,0],[100,100]],a=(t[0]-e[0])/100,n=(t[1]-e[1])/100,o=e[0]/a,i=e[1]/n;return{widthScale:a,heightScale:n,left:o,top:i}},m=(0,i.Fl)((()=>{const{widthScale:e,heightScale:t,left:l,top:a}=v();return{left:-l,top:-a,width:100/e,height:100/t}})),h=(0,i.Fl)((()=>({top:m.value.top+"%",left:m.value.left+"%",width:m.value.width+"%",height:m.value.height+"%"}))),f=(0,s.iH)({top:0,left:0,width:0,height:0}),g=(0,i.Fl)((()=>{const{top:e,left:t,width:l,height:a}=f.value;return{top:e+"%",left:t+"%",width:l+"%",height:a+"%"}})),y=(0,i.Fl)((()=>{const e=m.value.width,t=m.value.height,{top:l,left:a,width:n,height:o}=f.value;return{left:100/n*-a+"%",top:100/o*-l+"%",width:e/n*100+"%",height:t/o*100+"%"}})),w=()=>{const{left:e,top:t}=v();f.value={left:e,top:t,width:100,height:100},c.value={top:-t+"%",left:-e+"%"}},x=()=>{if(d.value)return;if(!p.value)return void a("clip",null);const{left:e,top:t}=v(),n={left:(f.value.left-e)/100*l.width,top:(f.value.top-t)/100*l.height,width:(f.value.width-100)/100*l.width,height:(f.value.height-100)/100*l.height},o={range:p.value,position:n};a("clip",o)},k=e=>{const t=e.key.toUpperCase();t===ne.ENTER&&x()};(0,i.bv)((()=>{w(),document.addEventListener("keydown",k)})),(0,i.Ah)((()=>{document.removeEventListener("keydown",k)}));const b=()=>{const e={left:parseInt(y.value.left),top:parseInt(y.value.top),width:parseInt(y.value.width),height:parseInt(y.value.height)},t=100/e.width,l=100/e.height,a=[-e.left*t,-e.top*l],n=[100*t+a[0],100*l+a[1]];p.value=[a,n]},_=e=>{d.value=!0;let t=!0;const a=e.pageX,n=e.pageY,o=m.value,i={...f.value};document.onmousemove=e=>{if(!t)return;const s=e.pageX,u=e.pageY;let c=(s-a)/r.value/l.width*100,d=(u-n)/r.value/l.height*100;l.rotate>45&&l.rotate<135&&(c=(u-n)/r.value/l.width*100,d=-(s-a)/r.value/l.height*100),(l.rotate>=135&&l.rotate<=180||l.rotate>=-180&&l.rotate<=-135)&&(c=-c,d=-d),l.rotate>-135&&l.rotate<-45&&(c=-(u-n)/r.value/l.width*100,d=(s-a)/r.value/l.height*100);let p=i.left+c,v=i.top+d;p<0?p=0:p+i.width>o.width&&(p=o.width-i.width),v<0?v=0:v+i.height>o.height&&(v=o.height-i.height),f.value={...f.value,left:p,top:v}},document.onmouseup=()=>{t=!1,document.onmousemove=null,document.onmouseup=null,b(),setTimeout((()=>{d.value=!1}),0)}},I=(e,t)=>{d.value=!0;let a=!0;const n=50/l.width*100,o=50/l.height*100,i=e.pageX,s=e.pageY,c=m.value,p={...f.value},v=f.value.width/f.value.height;document.onmousemove=e=>{if(!a)return;const d=e.pageX,m=e.pageY;let h,g,y,w,x=(d-i)/r.value/l.width*100,k=(m-s)/r.value/l.height*100;l.rotate>45&&l.rotate<135&&(x=(m-s)/r.value/l.width*100,k=-(d-i)/r.value/l.height*100),(l.rotate>=135&&l.rotate<=180||l.rotate>=-180&&l.rotate<=-135)&&(x=-x,k=-k),l.rotate>-135&&l.rotate<-45&&(x=-(m-s)/r.value/l.width*100,k=(d-i)/r.value/l.height*100),u.value&&(t!==le.RIGHT_BOTTOM&&t!==le.LEFT_TOP||(k=x/v),t!==le.LEFT_BOTTOM&&t!==le.RIGHT_TOP||(k=-x/v)),t===le.LEFT_TOP?(p.left+x<0&&(x=-p.left),p.top+k<0&&(k=-p.top),p.width-xc.width&&(x=c.width-(p.left+p.width)),p.top+k<0&&(k=-p.top),p.width+xc.height&&(k=c.height-(p.top+p.height)),p.width-xc.width&&(x=c.width-(p.left+p.width)),p.top+p.height+k>c.height&&(k=c.height-(p.top+p.height)),p.width+xc.height&&(k=c.height-(p.top+p.height)),p.height+kc.width&&(x=c.width-(p.left+p.width)),p.width+x{a=!1,document.onmousemove=null,document.onmouseup=null,b(),setTimeout((()=>d.value=!1),0)}},S=(0,i.Fl)((()=>{const e="rotate-",t=l.rotate;return t>-22.5&&t<=22.5?e+0:t>22.5&&t<=67.5?e+45:t>67.5&&t<=112.5?e+90:t>112.5&&t<=157.5?e+135:t>157.5||t<=-157.5?e+0:t>-157.5&&t<=-112.5?e+45:t>-112.5&&t<=-67.5?e+90:t>-67.5&&t<=-22.5?e+135:e+0})),C=[le.LEFT_TOP,le.RIGHT_TOP,le.LEFT_BOTTOM,le.RIGHT_BOTTOM],L=[le.TOP,le.BOTTOM,le.LEFT,le.RIGHT];return(e,t)=>{const l=(0,i.Q2)("click-outside");return(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"image-clip-handler",style:(0,oe.j5)(c.value)},[(0,i._)("img",{class:"bottom-img",src:e.src,draggable:!1,alt:"",style:(0,oe.j5)(h.value)},null,12,_o),(0,i._)("div",{class:"top-image-content",style:(0,oe.j5)({...g.value,clipPath:e.clipPath})},[(0,i._)("img",{class:"top-img",src:e.src,draggable:!1,alt:"",style:(0,oe.j5)(y.value)},null,12,Io)],4),(0,i._)("div",{class:"operate",style:(0,oe.j5)(g.value),onMousedown:t[0]||(t[0]=(0,n.iM)((e=>_(e)),["stop"]))},[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(C,(e=>(0,i._)("div",{class:(0,oe.C_)(["clip-point",e,S.value]),key:e,onMousedown:(0,n.iM)((t=>I(t,e)),["stop"])},Lo,42,So))),64)),((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(L,(e=>(0,i._)("div",{class:(0,oe.C_)(["clip-point",e,S.value]),key:e,onMousedown:(0,n.iM)((t=>I(t,e)),["stop"])},Mo,42,To))),64))],36)],4)),[[l,x]])}}});const Wo=(0,Vl.Z)(Uo,[["__scopeId","data-v-5984406b"]]);var Do=Wo;const Ho=["src"];var Fo=(0,i.aZ)({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,l=R(),a=$(),{clipingImageElementId:r}=(0,o.Jk)(l),u=(0,i.Fl)((()=>r.value===t.elementInfo.id)),{addHistorySnapshot:c}=da(),d=(0,i.Fl)((()=>t.elementInfo.shadow)),{shadowStyle:p}=Xn(d),v=(0,i.Fl)((()=>t.elementInfo.flipH)),m=(0,i.Fl)((()=>t.elementInfo.flipV)),{flipStyle:h}=Gn(v,m),f=(0,i.Fl)((()=>t.elementInfo.clip)),{clipShape:g,imgPosition:y}=Qn(f),w=(0,i.Fl)((()=>t.elementInfo.filters)),{filter:x}=eo(w),k=e=>{t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))},b=e=>{if(l.setClipingImageElementId(""),!e)return;const{range:n,position:o}=e,i=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},s=t.elementInfo.left+o.left,r=t.elementInfo.top+o.top,u=t.elementInfo.width+o.width,d=t.elementInfo.height+o.height;let p=0,v=0;if(t.elementInfo.rotate){const e=s+u/2-(t.elementInfo.left+t.elementInfo.width/2),l=-(r+d/2-(t.elementInfo.top+t.elementInfo.height/2)),a=-t.elementInfo.rotate*Math.PI/180,n=e*Math.cos(a)-l*Math.sin(a),o=e*Math.sin(a)+l*Math.cos(a);p=n-e,v=-(o-l)}const m={clip:{...i,range:n},left:s+p,top:r+v,width:u,height:d};a.updateElement({id:t.elementInfo.id,props:m}),c()};return(e,t)=>{const l=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["editable-element-image",{lock:e.elementInfo.lock}]),style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[u.value?((0,i.wg)(),(0,i.j4)(Do,{key:0,src:e.elementInfo.src,clipData:e.elementInfo.clip,width:e.elementInfo.width,height:e.elementInfo.height,top:e.elementInfo.top,left:e.elementInfo.left,rotate:e.elementInfo.rotate,clipPath:(0,s.SU)(g).style,onClip:t[0]||(t[0]=e=>b(e))},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{key:1,class:"element-content",style:(0,oe.j5)({filter:(0,s.SU)(p)?`drop-shadow(${(0,s.SU)(p)})`:"",transform:(0,s.SU)(h)}),onMousedown:t[2]||(t[2]=e=>k(e)),onTouchstart:t[3]||(t[3]=e=>k(e))},[(0,i.Wm)(ko,{elementInfo:e.elementInfo},null,8,["elementInfo"]),(0,i._)("div",{class:"image-content",style:(0,oe.j5)({clipPath:(0,s.SU)(g).style})},[(0,i._)("img",{src:e.elementInfo.src,draggable:!1,style:(0,oe.j5)({top:(0,s.SU)(y).top,left:(0,s.SU)(y).left,width:(0,s.SU)(y).width,height:(0,s.SU)(y).height,filter:(0,s.SU)(x)}),onDragstart:t[1]||(t[1]=(0,n.iM)((()=>{}),["prevent"])),alt:""},null,44,Ho),e.elementInfo.colorMask?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"color-mask",style:(0,oe.j5)({backgroundColor:e.elementInfo.colorMask})},null,4)):(0,i.kq)("",!0)],4)],36)),[[l,e.contextmenus]])],4)],6)}}});const Ao=(0,Vl.Z)(Fo,[["__scopeId","data-v-1156b3e1"]]);var $o=Ao;const Zo=["width","height"],Oo=["d","stroke","stroke-width","stroke-dasharray"];var Ro=(0,i.aZ)({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(e){const t=e,{outlineWidth:l,outlineColor:a,strokeDashArray:n}=to((0,s.Vh)(t,"outline"));return(e,t)=>e.outline?((0,i.wg)(),(0,i.iD)("svg",{key:0,class:"element-outline",overflow:"visible",width:e.width,height:e.height},[(0,i._)("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${e.width},0 L${e.width},${e.height} L0,${e.height} Z`,stroke:(0,s.SU)(a),"stroke-width":(0,s.SU)(l),"stroke-dasharray":(0,s.SU)(n)},null,8,Oo)],8,Zo)):(0,i.kq)("",!0)}});const zo=(0,Vl.Z)(Ro,[["__scopeId","data-v-efb76626"]]);var Po=zo,Bo=l(2376),No=l(4348),jo=l(2806),Yo=l(728),Vo=l(8463),Jo=l(4251),qo=l(915),Xo=l(3833),Go=l(6912);const Ko=e=>{const t={},l=(e,l)=>t[e]=l;return l("Alt-ArrowUp",u.MI),l("Alt-ArrowDown",u.Ig),l("Mod-z",Vo.Yw),l("Mod-y",Vo.KX),l("Backspace",Go.dU),l("Escape",u.N0),l("Mod-b",(0,u.w9)(e.marks.strong)),l("Mod-i",(0,u.w9)(e.marks.em)),l("Mod-u",(0,u.w9)(e.marks.underline)),l("Mod-d",(0,u.w9)(e.marks.strikethrough)),l("Mod-e",(0,u.w9)(e.marks.code)),l("Mod-;",(0,u.w9)(e.marks.superscript)),l("Mod-'",(0,u.w9)(e.marks.subscript)),l("Enter",(0,u.QF)((0,Xo.s6)(e.nodes.list_item),u.QK,u.mD,u.X0,u.$j)),l("Mod-[",(0,Xo.IB)(e.nodes.list_item)),l("Mod-]",(0,Xo.bw)(e.nodes.list_item)),l("Tab",(0,Xo.bw)(e.nodes.list_item)),t},Qo=e=>(0,Go.S0)(/^\s*>\s$/,e),ei=e=>(0,Go.S0)(/^(\d+)\.\s$/,e,(e=>({order:+e[1]})),((e,t)=>t.childCount+t.attrs.order===+e[1])),ti=e=>(0,Go.S0)(/^\s*([-+*])\s$/,e),li=()=>{const e=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/;return new Go.VK(e,((e,t,l,a)=>{const{schema:n}=e,o=e.tr.insertText(`${t[2]} `,l,a),i=n.marks.code.create();return o.addMark(l,l+t[2].length,i)}))},ai=()=>{const e=/(?:https?:\/\/)?[\w-]+(?:\.[\w-]+)+\.?(?:\d+)?(?:\/\S*)?$/;return new Go.VK(e,((e,t,l,a)=>{const{schema:n}=e,o=e.tr.insertText(t[0],l,a),i=n.marks.link.create({href:t[0],title:t[0]});return o.addMark(l,l+t[0].length,i)}))},ni=e=>{const t=[...Go.yR,Go.LH,Go.pR];return t.push(Qo(e.nodes.blockquote)),t.push(ei(e.nodes.ordered_list)),t.push(ti(e.nodes.bullet_list)),t.push(li()),t.push(ai()),(0,Go.Hw)({rules:t})},oi=e=>"paragraph"===e.type.name&&2===e.nodeSize,ii=e=>new Bo.Sy({props:{decorations(t){const{$from:l}=t.selection;if(oi(l.parent)){const a=No.p.node(l.before(),l.after(),{"data-placeholder":e});return No.EH.create(t.doc,[a])}}}}),si=(e,t)=>{const l=t?.placeholder,a=[ni(e),(0,Yo.h)(Ko(e)),(0,Yo.h)(u.YR),(0,Jo.q)(),(0,qo.d)(),(0,Vo.m8)()];return l&&a.push(ii(l)),a};var ri=l(4073);const ui={attrs:{order:{default:1},listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>{const t=(e.hasAttribute("start")?e.getAttribute("start"):1)||1,l={order:+t},{listStyleType:a,fontSize:n,color:o}=e.style;return a&&(l["listStyleType"]=a),n&&(l["fontsize"]=n),o&&(l["color"]=o),l}}],toDOM:e=>{const{order:t,listStyleType:l,fontsize:a,color:n}=e.attrs;let o="";l&&(o+=`list-style-type: ${l};`),a&&(o+=`font-size: ${a};`),n&&(o+=`color: ${n};`);const i={style:o};return 1!==t&&(i["start"]=t),["ol",i,0]}},ci={attrs:{listStyleType:{default:""},fontsize:{default:""},color:{default:""}},content:"list_item+",group:"block",parseDOM:[{tag:"ul",getAttrs:e=>{const t={},{listStyleType:l,fontSize:a,color:n}=e.style;return l&&(t["listStyleType"]=l),a&&(t["fontsize"]=a),n&&(t["color"]=n),t}}],toDOM:e=>{const{listStyleType:t,fontsize:l,color:a}=e.attrs;let n="";return t&&(n+=`list-style-type: ${t};`),l&&(n+=`font-size: ${l};`),a&&(n+=`color: ${a};`),["ul",{style:n},0]}},di={...Xo.qb,content:"paragraph block*",group:"block"},pi={attrs:{align:{default:""},indent:{default:0},textIndent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:e=>{const{textAlign:t,textIndent:l}=e.style;let a=e.getAttribute("align")||t||"";a=/(left|right|center|justify)/.test(a)?a:"";let n=0;l&&(/em/.test(l)?n=parseInt(l):/px/.test(l)&&(n=Math.floor(parseInt(l)/20),n||(n=1)));const o=+(e.getAttribute("data-indent")||0);return{align:a,indent:o,textIndent:n}}},{tag:"img",ignore:!0},{tag:"pre",skip:!0}],toDOM:e=>{const{align:t,indent:l,textIndent:a}=e.attrs;let n="";t&&"left"!==t&&(n+=`text-align: ${t};`),a&&(n+=`text-indent: ${20*a}px;`);const o={style:n};return l&&(o["data-indent"]=l),["p",o,0]}},{doc:vi,blockquote:mi,text:hi}=ri.nodes;var fi={doc:vi,paragraph:pi,blockquote:mi,text:hi,ordered_list:ui,bullet_list:ci,list_item:di};const gi={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:e=>"sub"===e&&null}],toDOM:()=>["sub",0]},yi={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:e=>"super"===e&&null}],toDOM:()=>["sup",0]},wi={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:e=>"line-through"===e&&null},{style:"text-decoration-line",getAttrs:e=>"line-through"===e&&null}],toDOM:()=>["span",{style:"text-decoration-line: line-through;"},0]},xi={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:e=>"underline"===e&&null},{style:"text-decoration-line",getAttrs:e=>"underline"===e&&null}],toDOM:()=>["span",{style:"text-decoration: underline;"},0]},ki={attrs:{color:{}},inline:!0,group:"inline",parseDOM:[{style:"color",getAttrs:e=>e?{color:e}:{}}],toDOM:e=>{const{color:t}=e.attrs;let l="";return t&&(l+=`color: ${t};`),["span",{style:l},0]}},bi={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{style:"background-color",getAttrs:e=>e?{backcolor:e}:{}}],toDOM:e=>{const{backcolor:t}=e.attrs;let l="";return t&&(l+=`background-color: ${t};`),["span",{style:l},0]}},_i={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:e=>e?{fontsize:e}:{}}],toDOM:e=>{const{fontsize:t}=e.attrs;let l="";return t&&(l+=`font-size: ${t};`),["span",{style:l},0]}},Ii={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:e=>({fontname:e&&"string"===typeof e?e.replace(/[\"\']/g,""):""})}],toDOM:e=>{const{fontname:t}=e.attrs;let l="";return t&&(l+=`font-family: ${t};`),["span",{style:l},0]}},Si={attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href"),l=e.getAttribute("title");return{href:t,title:l}}}],toDOM:e=>["a",e.attrs,0]},Ci={attrs:{index:{default:null}},parseDOM:[{tag:"mark",getAttrs:e=>{const t=e.dataset.index;return{index:t}}}],toDOM:e=>["mark",{"data-index":e.attrs.index},0]},{em:Li,strong:Ti,code:Ei}=ri.marks;var Mi={em:Li,strong:Ti,fontsize:_i,fontname:Ii,code:Ei,forecolor:ki,backcolor:bi,subscript:gi,superscript:yi,strikethrough:wi,underline:xi,link:Si,mark:Ci};const Ui=fi,Wi=Mi,Di=new jo.V_({nodes:Ui,marks:Wi}),Hi=e=>{const t=`
    ${e}
    `,l=new window.DOMParser,a=l.parseFromString(t,"text/html").body.firstElementChild;return jo.aw.fromSchema(Di).parse(a)},Fi=(e,t,l,a)=>new No.tk(e,{state:Bo.yy.create({doc:Hi(t),plugins:si(Di,a)}),...l});var Ai,$i=l(9391);(function(e){e["RICH_TEXT_COMMAND"]="RICH_TEXT_COMMAND",e["SYNC_RICH_TEXT_ATTRS_TO_STORE"]="SYNC_RICH_TEXT_ATTRS_TO_STORE",e["OPEN_CHART_DATA_EDITOR"]="OPEN_CHART_DATA_EDITOR",e["OPEN_LATEX_EDITOR"]="OPEN_LATEX_EDITOR"})(Ai||(Ai={}));const Zi=(0,$i.Z)();var Oi=Zi;const Ri=(e,t,l)=>{const{selection:a,doc:n}=e;if(!a||!n)return e;const{from:o,to:i}=a,{nodes:s}=t,r=s.blockquote,u=s.list_item,c=s.paragraph,d=[];l=l||"";const p=new Set([r,u,c]);return n.nodesBetween(o,i,((e,t)=>{const a=e.type,n=e.attrs.align||"";return n!==l&&p.has(a)&&d.push({node:e,pos:t,nodeType:a}),!0})),d.length?(d.forEach((t=>{const{node:a,pos:n,nodeType:o}=t;let{attrs:i}=a;i=l?{...i,align:l}:{...i,align:null},e=e.setNodeMarkup(n,o,i,a.marks)})),e):e},zi=(e,t)=>{const{state:l}=e,{schema:a,selection:n}=l,o=Ri(l.tr.setSelection(n),a,t);e.dispatch(o)};function Pi(e,t,l,a){if(!e.doc)return e;const n=e.doc.nodeAt(t);if(!n)return e;const o=0,i=8;let s=(n.attrs[a]||0)+l;if(si&&(s=i),s===n.attrs[a])return e;const r={...n.attrs,[a]:s};return e.setNodeMarkup(t,n.type,r,n.marks)}const Bi=(e,t,l,a)=>{const{selection:n,doc:o}=e;if(!n||!o)return e;if(!(n instanceof Bo.Bs||n instanceof Bo.C1))return e;const{from:i,to:s}=n;return o.nodesBetween(i,s,((n,o)=>{const i=n.type;return"paragraph"===i.name||"blockquote"===i.name?(e=Pi(e,o,l,a),!1):!c(n,t)})),e},Ni=(e,t)=>{const{state:l}=e,{schema:a,selection:n}=l,o=Bi(l.tr.setSelection(n),a,t,"indent");return!!o.docChanged&&(e.dispatch(o),!0)},ji=(e,t)=>{const{state:l}=e,{schema:a,selection:n}=l,o=Bi(l.tr.setSelection(n),a,t,"textIndent");return!!o.docChanged&&(e.dispatch(o),!0)},Yi=(e,t,l,a={})=>(n,o)=>{const{schema:i,selection:s}=n,{$from:r,$to:u}=s,d=r.blockRange(u);if(!d)return!1;const p=f((e=>c(e,i)))(s);if(d.depth>=1&&p&&d.depth-p.depth<=1){if(p.node.type===e&&!l)return(0,Xo.IB)(t)(n,o);if(c(p.node,i)&&e.validContent(p.node.content)){const{tr:t}=n,i={...p.node.attrs,...a};return l&&(i.listStyleType=l),t.setNodeMarkup(p.pos,e,i),o&&o(t),!1}}const v={...a};return l&&(v.listStyleType=l),(0,Xo.KI)(e,v)(n,o)},Vi=(e,t)=>{const{state:l}=e,{schema:a,selection:n}=l,o=l.tr.setSelection(n),{doc:i}=o;if(!i)return o;const{from:s,to:r}=n;i.nodesBetween(s,r,((e,l)=>{if(c(e,a)&&s-3<=l&&r+3>=l+e.nodeSize){const e=Array.isArray(t)?t:[t];for(const t of e)o.setNodeAttribute(l,t.key,t.value)}return!1})),e.dispatch(o)};var Ji=(0,i.aZ)({__name:"ProsemirrorEditor",props:{elementId:{},defaultColor:{},defaultFontName:{},value:{},editable:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur","mousedown"],setup(e,{expose:t,emit:l}){const a=e,n=l,r=R(),{handleElementId:c,textFormatPainter:m,richTextAttrs:h}=(0,o.Jk)(r),f=(0,s.iH)();let g;const w=(0,D.debounce)((function(){n("update",g.dom.innerHTML)}),300,{trailing:!0}),x=()=>{r.setDisableHotkeysState(!0),n("focus")},k=()=>{r.setDisableHotkeysState(!1),n("blur")},b=(0,D.debounce)((function(){const e=C(g,{color:a.defaultColor,fontname:a.defaultFontName});r.setRichtextAttrs(e)}),30,{trailing:!0}),I=()=>{w(),b()},S=(0,i.Fl)((()=>a.value));(0,i.YP)(S,(()=>{if(!g)return;if(g.hasFocus())return;const{doc:e,tr:t}=g.state;g.dispatch(t.replaceRangeWith(0,e.content.size,Hi(S.value)))})),(0,i.YP)((()=>a.editable),(()=>{g.setProps({editable:()=>a.editable})}));const T=()=>g.focus();t({focus:T});const E=({target:e,action:t})=>{if(!e&&c.value!==a.elementId)return;if(e&&e!==a.elementId)return;const l="command"in t?[t]:t;for(const a of l)if("fontname"===a.command&&a.value){const e=g.state.schema.marks.fontname.create({fontname:a.value});d(g),p(g,e)}else if("fontsize"===a.command&&a.value){const e=g.state.schema.marks.fontsize.create({fontsize:a.value});d(g),p(g,e),Vi(g,{key:"fontsize",value:a.value})}else if("fontsize-add"===a.command){const e=a.value?+a.value:2;d(g);const t=L(g)+e+"px",l=g.state.schema.marks.fontsize.create({fontsize:t});p(g,l),Vi(g,{key:"fontsize",value:t})}else if("fontsize-reduce"===a.command){const e=a.value?+a.value:2;d(g);let t=L(g)-e;t<12&&(t=12);const l=g.state.schema.marks.fontsize.create({fontsize:t+"px"});p(g,l),Vi(g,{key:"fontsize",value:t+"px"})}else if("color"===a.command&&a.value){const e=g.state.schema.marks.forecolor.create({color:a.value});d(g),p(g,e),Vi(g,{key:"color",value:a.value})}else if("backcolor"===a.command&&a.value){const e=g.state.schema.marks.backcolor.create({backcolor:a.value});d(g),p(g,e)}else if("bold"===a.command)d(g),(0,u.w9)(g.state.schema.marks.strong)(g.state,g.dispatch);else if("em"===a.command)d(g),(0,u.w9)(g.state.schema.marks.em)(g.state,g.dispatch);else if("underline"===a.command)d(g),(0,u.w9)(g.state.schema.marks.underline)(g.state,g.dispatch);else if("strikethrough"===a.command)d(g),(0,u.w9)(g.state.schema.marks.strikethrough)(g.state,g.dispatch);else if("subscript"===a.command)(0,u.w9)(g.state.schema.marks.subscript)(g.state,g.dispatch);else if("superscript"===a.command)(0,u.w9)(g.state.schema.marks.superscript)(g.state,g.dispatch);else if("blockquote"===a.command){const e=y("blockquote",g.state);e?(0,u.xb)(g.state,g.dispatch):(0,u.ym)(g.state.schema.nodes.blockquote)(g.state,g.dispatch)}else if("code"===a.command)(0,u.w9)(g.state.schema.marks.code)(g.state,g.dispatch);else if("align"===a.command&&a.value)zi(g,a.value);else if("indent"===a.command&&a.value)Ni(g,+a.value);else if("textIndent"===a.command&&a.value)ji(g,+a.value);else if("bulletList"===a.command){const e=a.value||"",{bullet_list:t,list_item:l}=g.state.schema.nodes,n={color:h.value.color,fontsize:h.value.fontsize};Yi(t,l,e,n)(g.state,g.dispatch)}else if("orderedList"===a.command){const e=a.value||"",{ordered_list:t,list_item:l}=g.state.schema.nodes,n={color:h.value.color,fontsize:h.value.fontsize};Yi(t,l,e,n)(g.state,g.dispatch)}else if("clear"===a.command){d(g);const{$from:e,$to:t}=g.state.selection;g.dispatch(g.state.tr.removeMark(e.pos,t.pos)),Vi(g,[{key:"fontsize",value:""},{key:"color",value:""}])}else if("link"===a.command){const e=g.state.schema.marks.link,{from:t,to:l}=g.state.selection,n=v(g.state.doc,t,l,e);if(n)if(a.value){const e=g.state.schema.marks.link.create({href:a.value,title:a.value});p(g,e,{from:n.from.pos,to:n.to.pos+1})}else g.dispatch(g.state.tr.removeMark(n.from.pos,n.to.pos+1,e));else if(_(g.state,e))if(a.value){const e=g.state.schema.marks.link.create({href:a.value,title:a.value});p(g,e)}else(0,u.w9)(e)(g.state,g.dispatch);else a.value&&(d(g),(0,u.w9)(e,{href:a.value,title:a.value})(g.state,g.dispatch))}else"insert"===a.command&&a.value&&g.dispatch(g.state.tr.insertText(a.value));g.focus(),w(),b()},M=()=>{if(!m.value)return;const{keep:e,...t}=m.value,l=[{command:"clear"}];for(const a of Object.keys(t)){const e=a,t=m.value[a];!0===t?l.push({command:e}):t&&l.push({command:e,value:t})}E({action:l}),e||r.setTextFormatPainter(null)};(0,i.bv)((()=>{g=Fi(f.value,S.value,{handleDOMEvents:{focus:x,blur:k,keydown:I,click:b,mouseup:M},editable:()=>a.editable}),a.autoFocus&&g.focus()})),(0,i.Ah)((()=>{g&&g.destroy()}));const U=()=>{c.value===a.elementId&&b()};return Oi.on(Ai.RICH_TEXT_COMMAND,E),Oi.on(Ai.SYNC_RICH_TEXT_ATTRS_TO_STORE,U),(0,i.Ah)((()=>{Oi.off(Ai.RICH_TEXT_COMMAND,E),Oi.off(Ai.SYNC_RICH_TEXT_ATTRS_TO_STORE,U)})),(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["prosemirror-editor",{"format-painter":(0,s.SU)(m)}]),ref_key:"editorViewRef",ref:f,onMousedown:t[0]||(t[0]=e=>n("mousedown",e))},null,34))}});const qi=(0,Vl.Z)(Ji,[["__scopeId","data-v-653f533c"]]);var Xi=qi;const Gi=e=>((0,i.dD)("data-v-2a1e49ba"),e=e(),(0,i.Cn)(),e),Ki=Gi((()=>(0,i._)("div",{class:"drag-handler top"},null,-1))),Qi=Gi((()=>(0,i._)("div",{class:"drag-handler bottom"},null,-1)));var es=(0,i.aZ)({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,l=R(),a=$(),{handleElementId:n,isScaling:r}=(0,o.Jk)(l),{addHistorySnapshot:u}=da(),c=(0,s.iH)(),d=(0,i.Fl)((()=>t.elementInfo.shadow)),{shadowStyle:p}=Xn(d),v=(e,l=!0)=>{t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo,l))},m=(0,s.iH)(-1),h=(0,s.iH)(-1);(0,i.YP)(r,(()=>{n.value===t.elementInfo.id&&(r.value||(t.elementInfo.vertical||-1===m.value||(a.updateElement({id:t.elementInfo.id,props:{height:m.value}}),m.value=-1),t.elementInfo.vertical&&-1!==h.value&&(a.updateElement({id:t.elementInfo.id,props:{width:h.value}}),h.value=-1)))}));const f=e=>{const l=e[0].contentRect;if(!c.value)return;const n=l.height+20,o=l.width+20;t.elementInfo.vertical||t.elementInfo.height===n||(r.value?m.value=n:a.updateElement({id:t.elementInfo.id,props:{height:n}})),t.elementInfo.vertical&&t.elementInfo.width!==o&&(r.value?h.value=o:a.updateElement({id:t.elementInfo.id,props:{width:o}}))},g=new ResizeObserver(f);(0,i.bv)((()=>{c.value&&g.observe(c.value)})),(0,i.Ah)((()=>{c.value&&g.unobserve(c.value)}));const y=e=>{a.updateElement({id:t.elementInfo.id,props:{content:e}}),u()},w=(0,D.debounce)((function(){const e=t.elementInfo.content.replaceAll(/<[^>]+>/g,"");e||a.deleteElement(t.elementInfo.id)}),300,{trailing:!0}),x=(0,i.Fl)((()=>n.value===t.elementInfo.id));return(0,i.YP)(x,(()=>{x.value||w()})),(e,t)=>{const l=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["editable-element-text",{lock:e.elementInfo.lock}]),style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"element-content",ref_key:"elementRef",ref:c,style:(0,oe.j5)({width:e.elementInfo.vertical?"auto":e.elementInfo.width+"px",height:e.elementInfo.vertical?e.elementInfo.height+"px":"auto",backgroundColor:e.elementInfo.fill,opacity:e.elementInfo.opacity,textShadow:(0,s.SU)(p),lineHeight:e.elementInfo.lineHeight,letterSpacing:(e.elementInfo.wordSpace||0)+"px",color:e.elementInfo.defaultColor,fontFamily:e.elementInfo.defaultFontName,writingMode:e.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:t[2]||(t[2]=e=>v(e)),onTouchstart:t[3]||(t[3]=e=>v(e))},[(0,i.Wm)(Po,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),(0,i.Wm)(Xi,{class:"text",elementId:e.elementInfo.id,defaultColor:e.elementInfo.defaultColor,defaultFontName:e.elementInfo.defaultFontName,editable:!e.elementInfo.lock,value:e.elementInfo.content,style:(0,oe.j5)({"--paragraphSpace":`${void 0===e.elementInfo.paragraphSpace?5:e.elementInfo.paragraphSpace}px`}),onUpdate:t[0]||(t[0]=e=>y(e)),onMousedown:t[1]||(t[1]=e=>v(e,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),Ki,Qi],36)),[[l,e.contextmenus]])],4)],6)}}});const ts=(0,Vl.Z)(es,[["__scopeId","data-v-2a1e49ba"]]);var ls=ts;const as=["id","gradientTransform"],ns=["stop-color"],os=["stop-color"],is=["id"],ss=["stop-color"],rs=["stop-color"];var us=(0,i.aZ)({__name:"GradientDefs",props:{id:{},type:{},color1:{},color2:{},rotate:{default:0}},setup(e){return(e,t)=>"linear"===e.type?((0,i.wg)(),(0,i.iD)("linearGradient",{key:0,id:e.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${e.rotate},0.5,0.5)`},[(0,i._)("stop",{offset:"0%","stop-color":e.color1},null,8,ns),(0,i._)("stop",{offset:"100%","stop-color":e.color2},null,8,os)],8,as)):((0,i.wg)(),(0,i.iD)("radialGradient",{key:1,id:e.id},[(0,i._)("stop",{offset:"0%","stop-color":e.color1},null,8,ss),(0,i._)("stop",{offset:"100%","stop-color":e.color2},null,8,rs)],8,is))}});const cs=us;var ds=cs;const ps=["width","height"],vs={key:0},ms=["transform"],hs=["d","fill","stroke","stroke-width","stroke-dasharray"];var fs=(0,i.aZ)({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,l=R(),a=$(),{handleElementId:n,shapeFormatPainter:r}=(0,o.Jk)(l),{addHistorySnapshot:u}=da(),c=(e,l=!0)=>{t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo,l))},d=()=>{if(!r.value)return;const{keep:e,...n}=r.value;a.updateElement({id:t.elementInfo.id,props:n}),u(),e||l.setShapeFormatPainter(null)},p=(0,i.Fl)((()=>t.elementInfo.outline)),{outlineWidth:v,outlineColor:m,strokeDashArray:h}=to(p),f=(0,i.Fl)((()=>t.elementInfo.shadow)),{shadowStyle:g}=Xn(f),y=(0,i.Fl)((()=>t.elementInfo.flipH)),w=(0,i.Fl)((()=>t.elementInfo.flipV)),{flipStyle:x}=Gn(y,w),k=(0,s.iH)(!1);(0,i.YP)(n,(()=>{n.value!==t.elementInfo.id&&k.value&&(k.value=!1)}));const b=(0,i.Fl)((()=>{const e={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:e})),_=e=>{const l={...b.value,content:e};a.updateElement({id:t.elementInfo.id,props:{text:l}}),u()},I=()=>{if(!t.elementInfo.text)return;const e=t.elementInfo.text.content.replaceAll(/<[^>]+>/g,"");e||(a.removeElementProps({id:t.elementInfo.id,propName:"text"}),u())},S=(0,s.iH)(),C=()=>{k.value=!0,(0,i.Y3)((()=>S.value&&S.value.focus()))};return(e,t)=>{const l=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["editable-element-shape",{lock:e.elementInfo.lock,"format-painter":(0,s.SU)(r)}]),style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"element-content",style:(0,oe.j5)({opacity:e.elementInfo.opacity,filter:(0,s.SU)(g)?`drop-shadow(${(0,s.SU)(g)})`:"",transform:(0,s.SU)(x),color:b.value.defaultColor,fontFamily:b.value.defaultFontName}),onMousedown:t[3]||(t[3]=e=>c(e)),onMouseup:t[4]||(t[4]=e=>d()),onTouchstart:t[5]||(t[5]=e=>c(e)),onDblclick:t[6]||(t[6]=e=>C())},[((0,i.wg)(),(0,i.iD)("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height},[e.elementInfo.gradient?((0,i.wg)(),(0,i.iD)("defs",vs,[(0,i.Wm)(ds,{id:`editabel-gradient-${e.elementInfo.id}`,type:e.elementInfo.gradient.type,color1:e.elementInfo.gradient.color[0],color2:e.elementInfo.gradient.color[1],rotate:e.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):(0,i.kq)("",!0),(0,i._)("g",{transform:`scale(${e.elementInfo.width/e.elementInfo.viewBox[0]}, ${e.elementInfo.height/e.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[(0,i._)("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:e.elementInfo.path,fill:e.elementInfo.gradient?`url(#editabel-gradient-${e.elementInfo.id})`:e.elementInfo.fill,stroke:(0,s.SU)(m),"stroke-width":(0,s.SU)(v),"stroke-dasharray":(0,s.SU)(h)},null,8,hs)],8,ms)],8,ps)),(0,i._)("div",{class:(0,oe.C_)(["shape-text",[b.value.align,{editable:k.value||b.value.content}]])},[k.value||b.value.content?((0,i.wg)(),(0,i.j4)(Xi,{key:0,ref_key:"prosemirrorEditorRef",ref:S,elementId:e.elementInfo.id,defaultColor:b.value.defaultColor,defaultFontName:b.value.defaultFontName,editable:!e.elementInfo.lock,value:b.value.content,onUpdate:t[0]||(t[0]=e=>_(e)),onBlur:t[1]||(t[1]=e=>I()),onMousedown:t[2]||(t[2]=e=>c(e,!1))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):(0,i.kq)("",!0)],2)],36)),[[l,e.contextmenus]])],4)],6)}}});const gs=(0,Vl.Z)(fs,[["__scopeId","data-v-5d988de2"]]);var ys=gs;const ws=["id","markerWidth","markerHeight","refX","refY"],xs=["d","fill","transform"];var ks=(0,i.aZ)({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(e){const t=e,l={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},a={"arrow-start":180,"arrow-end":0},n=(0,i.Fl)((()=>l[t.type])),o=(0,i.Fl)((()=>a[`${t.type}-${t.position}`]||0)),s=(0,i.Fl)((()=>t.baseSize<2?2:t.baseSize));return(e,t)=>((0,i.wg)(),(0,i.iD)("marker",{id:`${e.id}-${e.type}-${e.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:3*s.value,markerHeight:3*s.value,refX:1.5*s.value,refY:1.5*s.value},[(0,i._)("path",{d:n.value,fill:e.color,transform:`scale(${.3*s.value}, ${.3*s.value}) rotate(${o.value}, 5, 5)`},null,8,xs)],8,ws))}});const bs=ks;var _s=bs;const Is=["width","height"],Ss=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Cs=["d"];var Ls=(0,i.aZ)({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,l=e=>{t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))},a=(0,i.Fl)((()=>t.elementInfo.shadow)),{shadowStyle:n}=Xn(a),o=(0,i.Fl)((()=>{const e=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return e<24?24:e})),r=(0,i.Fl)((()=>{const e=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return e<24?24:e})),u=(0,i.Fl)((()=>{if("dashed"!==t.elementInfo.style)return"0 0";const e=t.elementInfo.width;return e<=8?`${5*e} ${2.5*e}`:`${5*e} ${1.5*e}`})),c=(0,i.Fl)((()=>Ce(t.elementInfo)));return(e,t)=>{const a=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["editable-element-shape",{lock:e.elementInfo.lock}]),style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"})},[(0,i._)("div",{class:"element-content",style:(0,oe.j5)({filter:(0,s.SU)(n)?`drop-shadow(${(0,s.SU)(n)})`:""}),onMousedown:t[0]||(t[0]=e=>l(e)),onTouchstart:t[1]||(t[1]=e=>l(e))},[((0,i.wg)(),(0,i.iD)("svg",{overflow:"visible",width:o.value,height:r.value},[(0,i._)("defs",null,[e.elementInfo.points[0]?((0,i.wg)(),(0,i.j4)(_s,{key:0,id:e.elementInfo.id,position:"start",type:e.elementInfo.points[0],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):(0,i.kq)("",!0),e.elementInfo.points[1]?((0,i.wg)(),(0,i.j4)(_s,{key:1,id:e.elementInfo.id,position:"end",type:e.elementInfo.points[1],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):(0,i.kq)("",!0)]),(0,i._)("path",{class:"line-point",d:c.value,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.width,"stroke-dasharray":u.value,fill:"none","marker-start":e.elementInfo.points[0]?`url(#${e.elementInfo.id}-${e.elementInfo.points[0]}-start)`:"","marker-end":e.elementInfo.points[1]?`url(#${e.elementInfo.id}-${e.elementInfo.points[1]}-end)`:""},null,8,Ss),(0,i.wy)((0,i._)("path",{class:"line-path",d:c.value,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,Cs),[[a,e.contextmenus]])],8,Is))],36)],6)}}});const Ts=(0,Vl.Z)(Ls,[["__scopeId","data-v-16512454"]]);var Es=Ts,Ms=l(7678),Us=(l(4991),(0,i.aZ)({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColor:{},legends:{},options:{},gridColor:{},legend:{}},setup(e){const t=e,l=(0,s.iH)(),a=(0,i.f3)(Tn)||(0,s.iH)(1);let n;const o=(0,i.Fl)((()=>t.legend?t.height-20:t.height)),r=()=>({...t.data,series:t.data.series[0]}),u=()=>{const e=t.options||{};return{...e,width:t.width*a.value,height:o.value*a.value}},c=()=>{if(!l.value)return;const e=u();"bar"===t.type&&(n=new Ms.vz(l.value,t.data,e)),"line"===t.type&&(n=new Ms.wW(l.value,t.data,e)),"pie"===t.type&&(n=new Ms.uc(l.value,r(),e))},d=()=>{if(!n)return void c();const e=u(),l="pie"===t.type?r():t.data;n.update(l,e)};(0,i.YP)([()=>t.width,()=>t.height,()=>t.data,()=>t.options,a],d),(0,i.bv)(c);const p=(0,i.Fl)((()=>{let e=[];if(t.themeColor.length>=10)e=t.themeColor;else if(1===t.themeColor.length)e=(0,W.Z)(t.themeColor[0]).analogous(10).map((e=>e.toRgbString()));else{const l=t.themeColor.length,a=(0,W.Z)(t.themeColor[l-1]).analogous(11-l).map((e=>e.toRgbString()));e=[...t.themeColor.slice(0,l-1),...a]}return e})),v=()=>{if(l.value)for(let e=0;e<10;e++)l.value.style.setProperty(`--theme-color-${e+1}`,p.value[e])};(0,i.YP)(p,v),(0,i.bv)(v);const m=()=>{l.value&&t.gridColor&&l.value.style.setProperty("--grid-color",t.gridColor)};return(0,i.YP)((()=>t.gridColor),m),(0,i.bv)(m),(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"chart",style:(0,oe.j5)({flexDirection:"top"===e.legend?"column-reverse":"column"})},[(0,i._)("div",{class:"chart-content",ref_key:"chartRef",ref:l,style:(0,oe.j5)({width:e.width+"px",height:o.value+"px",transform:`scale(${1/(0,s.SU)(a)})`})},null,4),e.legend?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"legends",style:(0,oe.j5)({transform:`scale(${1/(0,s.SU)(a)})`})},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.legends,((t,l)=>((0,i.wg)(),(0,i.iD)("div",{class:"legend",key:l,style:(0,oe.j5)({color:e.gridColor})},[(0,i._)("div",{class:"block",style:(0,oe.j5)({backgroundColor:p.value[l]})},null,4),(0,i.Uk)(" "+(0,oe.zw)(t),1)],4)))),128))],4)):(0,i.kq)("",!0)],4))}}));const Ws=(0,Vl.Z)(Us,[["__scopeId","data-v-ae2a96a6"]]);var Ds=Ws,Hs=(0,i.aZ)({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,l=e=>{t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))},a=()=>{Oi.emit(Ai.OPEN_CHART_DATA_EDITOR)};return(e,t)=>{const n=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["editable-element-chart",{lock:e.elementInfo.lock}]),style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"element-content",style:(0,oe.j5)({backgroundColor:e.elementInfo.fill}),onMousedown:t[0]||(t[0]=e=>l(e)),onTouchstart:t[1]||(t[1]=e=>l(e)),onDblclick:t[2]||(t[2]=e=>a())},[(0,i.Wm)(Po,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),(0,i.Wm)(Ds,{width:e.elementInfo.width,height:e.elementInfo.height,type:e.elementInfo.chartType,data:e.elementInfo.data,options:e.elementInfo.options,themeColor:e.elementInfo.themeColor,gridColor:e.elementInfo.gridColor,legends:e.elementInfo.data.legends,legend:e.elementInfo.legend||""},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend"])],36)),[[n,e.contextmenus]])],4)],6)}}});const Fs=(0,Vl.Z)(Hs,[["__scopeId","data-v-6fc3de39"]]);var As=Fs;const $s=e=>{if(!e)return{};const{bold:t,em:l,underline:a,strikethrough:n,color:o,backcolor:i,fontsize:s,fontname:r,align:u}=e;let c=`${a?"underline":""} ${n?"line-through":""}`;return" "===c&&(c="none"),{fontWeight:t?"bold":"normal",fontStyle:l?"italic":"normal",textDecoration:c,color:o||"#000",backgroundColor:i||"",fontSize:s||"14px",fontFamily:r||"微软雅黑",textAlign:u||"left"}},Zs=e=>e.replace(/\n/g,"
    ").replace(/ /g," ");var Os=e=>{const t=(0,i.Fl)((()=>{const t=[];for(let l=0;l1||n.rowspan>1)for(let a=l;a{const t=(0,s.iH)(["",""]);return(0,i.YP)((()=>e.value),(()=>{e.value&&(t.value=Se(e.value.color))}),{immediate:!0}),{subThemeColor:t}};const zs=["innerHTML"];var Ps=(0,i.aZ)({__name:"CustomTextarea",props:{value:{default:""}},emits:["updateValue","insertExcelData"],setup(e,{emit:t}){const l=e,a=t,n=(0,s.iH)(),o=(0,s.iH)(""),r=(0,s.iH)(!1);(0,i.YP)((()=>l.value),(()=>{r.value||(o.value=l.value,n.value&&(n.value.innerHTML=l.value))}),{immediate:!0});const u=()=>{if(!n.value)return;const e=n.value.innerHTML;a("updateValue",e)},c=()=>{r.value=!0,n.value&&(n.value.onpaste=e=>{if(e.preventDefault(),!e.clipboardData)return;const t=e.clipboardData.items[0];t&&"string"===t.kind&&"text/plain"===t.type&&t.getAsString((e=>{const t=fe(e);if("object"===typeof t)return;const l=ge(e);if(l)return a("insertExcelData",l),void(n.value&&(n.value.innerHTML=l[0][0]));document.execCommand("insertText",!1,e)}))})},d=()=>{r.value=!1,n.value&&(n.value.onpaste=null)};return(0,i.Jd)((()=>{n.value&&(n.value.onpaste=null)})),(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"custom-textarea",ref_key:"textareaRef",ref:n,contenteditable:!0,onFocus:t[0]||(t[0]=e=>c()),onBlur:t[1]||(t[1]=e=>d()),onInput:t[2]||(t[2]=e=>u()),innerHTML:o.value},null,40,zs))}});const Bs=(0,Vl.Z)(Ps,[["__scopeId","data-v-7a7222ac"]]);var Ns=Bs;const js={key:0,class:"handler"},Ys=["onMousedown"],Vs=["width"],Js=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],qs=["innerHTML"];var Xs=(0,i.aZ)({__name:"EditableTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},emits:["change","changeColWidths","changeSelectedCells"],setup(e,{emit:t}){const l=e,a=t,{canvasScale:u}=(0,o.Jk)(R()),c=(0,s.iH)(!1),d=(0,s.iH)([]),p=(0,s.iH)([]),v=(0,i.Fl)({get(){return l.data},set(e){a("change",e)}}),m=(0,i.Fl)((()=>l.theme)),{subThemeColor:h}=Rs(m),f=(0,s.iH)([]),g=(0,i.Fl)((()=>f.value.reduce(((e,t)=>e+t))));(0,i.YP)([()=>l.colWidths,()=>l.width],(()=>{f.value=l.colWidths.map((e=>e*l.width))}),{immediate:!0});const y=()=>{d.value=[],p.value=[]};(0,i.YP)((()=>l.editable),(()=>{l.editable||y()}));const w=(0,i.Fl)((()=>{const e=[];for(let t=1;te+t));e.push(l)}return e})),x=(0,i.Fl)((()=>l.data)),{hideCells:k}=Os(x),b=(0,i.Fl)((()=>{if(!d.value.length)return[];const[e,t]=d.value;if(!p.value.length)return[`${e}_${t}`];const[l,a]=p.value;if(e===l&&t===a)return[`${e}_${t}`];const n=[],o=Math.min(e,l),i=Math.min(t,a),s=Math.max(e,l),r=Math.max(t,a);for(let u=0;u=o&&u<=s&&t>=i&&t<=r&&n.push(`${u}_${t}`)}return n}));(0,i.YP)(b,((e,t)=>{(0,D.isEqual)(e,t)||a("changeSelectedCells",b.value)}));const _=(0,i.Fl)((()=>b.value.length>1?null:b.value[0])),I=()=>c.value=!1,S=(e,t,l)=>{0===e.button&&(p.value=[],c.value=!0,d.value=[t,l])},C=(e,t)=>{c.value&&(p.value=[e,t])};(0,i.bv)((()=>{document.addEventListener("mouseup",I)})),(0,i.Ah)((()=>{document.removeEventListener("mouseup",I)}));const L=(e,t)=>k.value.includes(`${e}_${t}`),T=e=>{const t=v.value.length-1;d.value=[0,e],p.value=[t,e]},E=e=>{const t=v.value[e].length-1;d.value=[e,0],p.value=[e,t]},M=()=>{const e=v.value.length-1,t=v.value[e].length-1;d.value=[0,0],p.value=[e,t]},U=e=>{const t=JSON.parse(JSON.stringify(v.value)),l=v.value[e],a=[];for(let n=0;n=0;l--)if(!L(l,n)){t[l][n].rowspan=t[l][n].rowspan-1;break}t.splice(e,1),v.value=t},W=e=>{const t=JSON.parse(JSON.stringify(v.value)),l=[];for(let a=0;a=0;l--)if(!L(a,l)){t[a][l].colspan=t[a][l].colspan-1;break}v.value=t.map((t=>(t.splice(e,1),t))),f.value.splice(e,1),a("changeColWidths",f.value)},H=e=>{const t=JSON.parse(JSON.stringify(v.value)),l=[];for(let a=0;a{v.value=v.value.map((t=>{const l={colspan:1,rowspan:1,text:"",id:(0,r.x0)(10)};return t.splice(e,0,l),t})),f.value.splice(e,0,100),a("changeColWidths",f.value)},A=(e,t)=>{let l=JSON.parse(JSON.stringify(v.value));const n={colspan:1,rowspan:1,text:""};if(e){const t=[];for(let a=0;a{const l=[];for(let a=0;a{const[e,t]=d.value,[l,a]=p.value,n=Math.min(e,l),o=Math.min(t,a),i=Math.max(e,l),s=Math.max(t,a),r=JSON.parse(JSON.stringify(v.value));r[n][o].rowspan=i-n+1,r[n][o].colspan=s-o+1,v.value=r,y()},Z=(e,t)=>{const l=JSON.parse(JSON.stringify(v.value));l[e][t].rowspan=1,l[e][t].colspan=1,v.value=l,y()},O=(e,t)=>{y();let l=!0;const n=f.value[t],o=e.pageX,i=50;document.onmousemove=e=>{if(!l)return;const a=(e.pageX-o)/u.value,s=n+a{l=!1,document.onmousemove=null,document.onmouseup=null,a("changeColWidths",f.value)}},z=()=>{const e=JSON.parse(JSON.stringify(v.value));for(let t=0;t{const e=(t,l)=>v.value[t]?v.value[t][l]?L(t,l)?e(t,l+1):[t,l]:e(t+1,0):null;p.value=[];const t=d.value[0],l=d.value[1]+1,a=e(t,l);a?d.value=a:(H(t+1),d.value=[t+1,0]),(0,i.Y3)((()=>{const e=document.querySelector(".cell-text.active");e&&e.focus()}))},B=e=>{if(!l.editable||!b.value.length)return;const t=e.key.toUpperCase();if(b.value.length<2){if(t===ne.TAB&&(e.preventDefault(),P()),e.ctrlKey&&t===ne.UP){e.preventDefault();const t=+b.value[0].split("_")[0];H(t)}if(e.ctrlKey&&t===ne.DOWN){e.preventDefault();const t=+b.value[0].split("_")[0];H(t+1)}if(e.ctrlKey&&t===ne.LEFT){e.preventDefault();const t=+b.value[0].split("_")[1];F(t)}if(e.ctrlKey&&t===ne.RIGHT){e.preventDefault();const t=+b.value[0].split("_")[1];F(t+1)}}else t===ne.DELETE&&z()};(0,i.bv)((()=>{document.addEventListener("keydown",B)})),(0,i.Ah)((()=>{document.removeEventListener("keydown",B)}));const N=(0,D.debounce)((function(e,t,l){v.value[t][l].text=e,a("change",v.value)}),300,{trailing:!0}),j=(e,t,l)=>{const n=e.length,o=e[0].length;let s=0,r=0;t+n>v.value.length&&(s=t+n-v.value.length),l+o>v.value[0].length&&(r=l+o-v.value[0].length),(s||r)&&A(s,r),(0,i.Y3)((()=>{for(let a=0;a{const e=[];for(let t=0;t{const e=Y(),t=e.length>1,l=e[0].length>1;return{canDeleteRow:t,canDeleteCol:l}},J=(e,t)=>{const l=b.value.length>1,a=v.value[e][t],n=l,o=!l&&(a.rowspan>1||a.colspan>1);return{canMerge:n,canSplit:o}},q=e=>{const t=e.dataset.cellIndex,l=+t.split("_")[0],a=+t.split("_")[1];b.value.includes(`${l}_${a}`)||(d.value=[l,a],p.value=[]);const{canMerge:n,canSplit:o}=J(l,a),{canDeleteRow:i,canDeleteCol:s}=V();return[{text:"插入列",children:[{text:"到左侧",handler:()=>F(a)},{text:"到右侧",handler:()=>F(a+1)}]},{text:"插入行",children:[{text:"到上方",handler:()=>H(l)},{text:"到下方",handler:()=>H(l+1)}]},{text:"删除列",disable:!s,handler:()=>W(a)},{text:"删除行",disable:!i,handler:()=>U(l)},{divider:!0},{text:"合并单元格",disable:!n,handler:$},{text:"取消合并单元格",disable:!o,handler:()=>Z(l,a)},{divider:!0},{text:"选中当前列",handler:()=>T(a)},{text:"选中当前行",handler:()=>E(l)},{text:"选中全部单元格",handler:M}]};return(e,t)=>{const l=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",{class:"editable-table",style:(0,oe.j5)({width:g.value+"px"})},[e.editable?((0,i.wg)(),(0,i.iD)("div",js,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(w.value,((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"drag-line",key:t,style:(0,oe.j5)({left:e+"px"}),onMousedown:e=>O(e,t)},null,44,Ys)))),128))])):(0,i.kq)("",!0),(0,i._)("table",{class:(0,oe.C_)({theme:m.value,"row-header":m.value?.rowHeader,"row-footer":m.value?.rowFooter,"col-header":m.value?.colHeader,"col-footer":m.value?.colFooter}),style:(0,oe.j5)(`--themeColor: ${m.value?.color}; --subThemeColor1: ${(0,s.SU)(h)[0]}; --subThemeColor2: ${(0,s.SU)(h)[1]}`)},[(0,i._)("colgroup",null,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(f.value,((e,t)=>((0,i.wg)(),(0,i.iD)("col",{span:"1",key:t,width:e},null,8,Vs)))),128))]),(0,i._)("tbody",null,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(v.value,((t,a)=>((0,i.wg)(),(0,i.iD)("tr",{key:a,style:(0,oe.j5)({height:e.cellMinHeight+"px"})},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t,((t,o)=>(0,i.wy)(((0,i.wg)(),(0,i.iD)("td",{class:(0,oe.C_)(["cell",{selected:b.value.includes(`${a}_${o}`)&&b.value.length>1,active:_.value===`${a}_${o}`}]),style:(0,oe.j5)({borderStyle:e.outline.style,borderColor:e.outline.color,borderWidth:e.outline.width+"px",...(0,s.SU)($s)(t.style)}),key:t.id,rowspan:t.rowspan,colspan:t.colspan,"data-cell-index":`${a}_${o}`,onMousedown:e=>S(e,a,o),onMouseenter:e=>C(a,o)},[_.value===`${a}_${o}`?((0,i.wg)(),(0,i.j4)(Ns,{key:0,class:(0,oe.C_)(["cell-text",{active:_.value===`${a}_${o}`}]),style:(0,oe.j5)({minHeight:e.cellMinHeight-4+"px"}),value:t.text,onUpdateValue:e=>(0,s.SU)(N)(e,a,o),onInsertExcelData:e=>j(e,a,o)},null,8,["class","style","value","onUpdateValue","onInsertExcelData"])):((0,i.wg)(),(0,i.iD)("div",{key:1,class:"cell-text",style:(0,oe.j5)({minHeight:e.cellMinHeight-4+"px"}),innerHTML:(0,s.SU)(Zs)(t.text)},null,12,qs))],46,Js)),[[n.F8,!(0,s.SU)(k).includes(`${a}_${o}`)],[l,e=>q(e)]]))),128))],4)))),128))])],6)],4)}}});const Gs=(0,Vl.Z)(Xs,[["__scopeId","data-v-0236a619"]]);var Ks=Gs;const Qs={class:"element-content"};var er=(0,i.aZ)({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,l=R(),a=$(),{canvasScale:r,handleElementId:u,isScaling:c}=(0,o.Jk)(l),d=(0,s.iH)(),{addHistorySnapshot:p}=da(),v=e=>{t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))},m=(0,s.iH)(!1);(0,i.YP)(u,(()=>{u.value!==t.elementInfo.id&&(m.value=!1)})),(0,i.YP)(m,(()=>{l.setDisableHotkeysState(m.value)}));const h=()=>{t.elementInfo.lock||(m.value=!0)},f=(0,s.iH)(-1);(0,i.YP)(c,(()=>{u.value===t.elementInfo.id&&(c.value&&(m.value=!1),c.value||-1===f.value||(a.updateElement({id:t.elementInfo.id,props:{height:f.value}}),f.value=-1))}));const g=e=>{const l=e[0].contentRect;if(!d.value)return;const n=l.height;t.elementInfo.height!==n&&(c.value?f.value=n:a.updateElement({id:t.elementInfo.id,props:{height:n}}))},y=new ResizeObserver(g);(0,i.bv)((()=>{d.value&&y.observe(d.value)})),(0,i.Ah)((()=>{d.value&&y.unobserve(d.value)}));const w=e=>{a.updateElement({id:t.elementInfo.id,props:{data:e}}),p()},x=e=>{const l=e.reduce(((e,t)=>e+t)),n=e.map((e=>e/l));a.updateElement({id:t.elementInfo.id,props:{width:l,colWidths:n}}),p()},k=e=>{(0,i.Y3)((()=>l.setSelectedTableCells(e)))};return(e,t)=>{const l=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["editable-element-table",{lock:e.elementInfo.lock}]),ref_key:"elementRef",ref:d,style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",Qs,[(0,i.Wm)(Ks,{onMousedown:t[0]||(t[0]=(0,n.iM)((()=>{}),["stop"])),data:e.elementInfo.data,width:e.elementInfo.width,cellMinHeight:e.elementInfo.cellMinHeight,colWidths:e.elementInfo.colWidths,outline:e.elementInfo.outline,theme:e.elementInfo.theme,editable:m.value,onChange:t[1]||(t[1]=e=>w(e)),onChangeColWidths:t[2]||(t[2]=e=>x(e)),onChangeSelectedCells:t[3]||(t[3]=e=>k(e))},null,8,["data","width","cellMinHeight","colWidths","outline","theme","editable"]),!m.value||e.elementInfo.lock?((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,oe.C_)(["table-mask",{lock:e.elementInfo.lock}]),onDblclick:t[4]||(t[4]=e=>h()),onMousedown:t[5]||(t[5]=e=>v(e)),onTouchstart:t[6]||(t[6]=e=>v(e))},[(0,s.SU)(u)===e.elementInfo.id?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"mask-tip",style:(0,oe.j5)({transform:`scale(${1/(0,s.SU)(r)})`})},"双击编辑",4)):(0,i.kq)("",!0)],34)):(0,i.kq)("",!0)])),[[l,e.contextmenus]])],4)],6)}}});const tr=(0,Vl.Z)(er,[["__scopeId","data-v-742a731e"]]);var lr=tr;const ar=["width","height","stroke","stroke-width"],nr=["transform"],or=["d"];var ir=(0,i.aZ)({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,l=e=>{t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))},a=()=>{Oi.emit(Ai.OPEN_LATEX_EDITOR)};return(e,t)=>{const n=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["editable-element-latex",{lock:e.elementInfo.lock}]),style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"element-content",onMousedown:t[0]||(t[0]=e=>l(e)),onTouchstart:t[1]||(t[1]=e=>l(e)),onDblclick:t[2]||(t[2]=e=>a())},[((0,i.wg)(),(0,i.iD)("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[(0,i._)("g",{transform:`scale(${e.elementInfo.width/e.elementInfo.viewBox[0]}, ${e.elementInfo.height/e.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[(0,i._)("path",{d:e.elementInfo.path},null,8,or)],8,nr)],8,ar))],32)),[[n,e.contextmenus]])],4)],6)}}});const sr=(0,Vl.Z)(ir,[["__scopeId","data-v-35c33b80"]]);var rr=sr,ur=(e,t)=>{(0,i.bv)((()=>{if(!t.value)return;let l="normal";if(/m3u8(#|\?|$)/i.exec(e)?l="hls":/.flv(#|\?|$)/i.exec(e)&&(l="flv"),t.value&&"hls"===l&&(t.value.canPlayType("application/x-mpegURL")||t.value.canPlayType("application/vnd.apple.mpegURL"))&&(l="normal"),"hls"===l){const l=window.Hls;if(l&&l.isSupported()){const a=new l;a.loadSource(e),a.attachMedia(t.value)}}else if("flv"===l){const l=window.flvjs;if(l&&l.isSupported()){const a=l.createPlayer({type:"flv",url:e});a.attachMediaElement(t.value),a.load()}}}))};const cr=e=>((0,i.dD)("data-v-e55352ca"),e=e(),(0,i.Cn)(),e),dr={key:0,class:"load-error"},pr=["src","autoplay","poster"],vr={class:"bezel"},mr=cr((()=>(0,i._)("div",{class:"controller-mask"},null,-1))),hr={class:"controller"},fr={class:"icons icons-left"},gr={class:"icon-content"},yr={class:"volume"},wr={class:"icon-content"},xr=cr((()=>(0,i._)("span",{class:"thumb"},null,-1))),kr=[xr],br={class:"time"},_r={class:"ptime"},Ir={class:"dtime"},Sr={class:"icons icons-right"},Cr={class:"speed"},Lr={class:"icon speed-icon"},Tr=["onClick"],Er={class:"icon-content"},Mr={class:"bar"},Ur=cr((()=>(0,i._)("span",{class:"thumb"},null,-1))),Wr=[Ur];var Dr=(0,i.aZ)({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e){const t=e,l=(e=0)=>{if(0===e||isNaN(e))return"00:00";const t=e=>e<10?"0"+e:""+e,l=Math.floor(e/3600),a=Math.floor((e-3600*l)/60),n=Math.floor(e-3600*l-60*a);return(l>0?[l,a,n]:[a,n]).map(t).join(":")},a=e=>e.getBoundingClientRect().left,n=(0,s.iH)(),o=(0,s.iH)(),r=(0,s.iH)(),u=(0,s.iH)(.5),c=(0,s.iH)(!0),d=(0,s.iH)(0),p=(0,s.iH)(0),v=(0,s.iH)(0),m=(0,s.iH)(!1),h=(0,s.iH)(!1),f=(0,s.iH)(1),g=(0,s.iH)(!1),y=(0,s.iH)("00:00"),w=(0,s.iH)("0"),x=(0,i.Fl)((()=>l(d.value))),k=(0,i.Fl)((()=>l(p.value))),b=(0,i.Fl)((()=>d.value/p.value*100+"%")),_=(0,i.Fl)((()=>v.value/p.value*100+"%")),I=(0,i.Fl)((()=>100*u.value+"%")),S=(0,s.iH)(!1),C=[{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}],L=e=>{n.value&&(e=Math.max(e,0),e=Math.min(e,p.value),n.value.currentTime=e,d.value=e)},T=()=>{n.value&&(c.value=!1,n.value.play(),h.value=!0)},E=()=>{n.value&&(c.value=!0,n.value.pause(),h.value=!0)},M=()=>{c.value?T():E()},U=e=>{n.value&&(e=Math.max(e,0),e=Math.min(e,1),n.value.volume=e,u.value=e,n.value.muted&&0!==e&&(n.value.muted=!1))},W=e=>{n.value&&(n.value.playbackRate=e),f.value=e},D=()=>{p.value=n.value?.duration||0},H=()=>{d.value=n.value?.currentTime||0},F=()=>{m.value?(L(0),T()):E()},A=()=>{v.value=n.value?.buffered.length?n.value.buffered.end(n.value.buffered.length-1):0},$=(0,s.iH)(!1),Z=()=>$.value=!0,O=e=>{if(!n.value||!o.value)return;const t="clientX"in e?e.clientX:e.changedTouches[0].clientX;let l=(t-a(o.value))/o.value.clientWidth;l=Math.max(l,0),l=Math.min(l,1);const i=l*p.value;n.value.currentTime=i,d.value=i},R=e=>{if(!n.value||!o.value)return;const t="clientX"in e?e.clientX:e.changedTouches[0].clientX;let l=(t-a(o.value))/o.value.clientWidth;l=Math.max(l,0),l=Math.min(l,1);const i=l*p.value;n.value.currentTime=i,d.value=i,document.removeEventListener("mousemove",O),document.removeEventListener("touchmove",O),document.removeEventListener("mouseup",R),document.removeEventListener("touchend",R)},z=()=>{document.addEventListener("mousemove",O),document.addEventListener("touchmove",O),document.addEventListener("mouseup",R),document.addEventListener("touchend",R)},P=e=>{if(!r.value)return;const t="clientX"in e?e.clientX:e.changedTouches[0].clientX,l=(t-a(r.value))/45;U(l)},B=()=>{document.removeEventListener("mousemove",P),document.removeEventListener("touchmove",P),document.removeEventListener("mouseup",B),document.removeEventListener("touchend",B)},N=()=>{document.addEventListener("mousemove",P),document.addEventListener("touchmove",P),document.addEventListener("mouseup",B),document.addEventListener("touchend",B)},j=e=>{if(!r.value)return;const t=(e.clientX-a(r.value))/45;U(t)},Y=e=>{if(p.value&&o.value){const t=o.value.getBoundingClientRect().left,a=e.clientX-t;if(a<0||a>o.value.offsetWidth)return;const n=p.value*(a/o.value.offsetWidth);w.value=a-(n>=3600?25:20)+"px",y.value=l(n),g.value=!0}},V=()=>{n.value&&(n.value.muted?(n.value.muted=!1,U(.5)):(n.value.muted=!0,U(0)))},J=()=>{m.value=!m.value},q=(0,s.iH)(-1),X=(0,s.iH)(!1),G=()=>{X.value=!1,clearTimeout(q.value),q.value=setTimeout((()=>{n.value?.played.length&&(X.value=!0)}),3e3)};return ur(t.src,n),(e,t)=>{const l=(0,i.up)("IconPause"),a=(0,i.up)("IconPlayOne"),s=(0,i.up)("IconVolumeMute"),d=(0,i.up)("IconVolumeNotice"),p=(0,i.up)("IconVolumeSmall");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["video-player",{"hide-controller":X.value}]),style:(0,oe.j5)({width:e.width*e.scale+"px",height:e.height*e.scale+"px",transform:`scale(${1/e.scale})`}),onMousemove:t[22]||(t[22]=e=>G()),onClick:t[23]||(t[23]=e=>G())},[(0,i._)("div",{class:"video-wrap",onClick:t[8]||(t[8]=e=>M())},[$.value?((0,i.wg)(),(0,i.iD)("div",dr,"视频加载失败")):(0,i.kq)("",!0),(0,i._)("video",{class:"video",ref_key:"videoRef",ref:n,src:e.src,autoplay:e.autoplay,poster:e.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:t[0]||(t[0]=e=>D()),onTimeupdate:t[1]||(t[1]=e=>H()),onEnded:t[2]||(t[2]=e=>F()),onProgress:t[3]||(t[3]=e=>A()),onPlay:t[4]||(t[4]=e=>{G(),c.value=!1}),onPause:t[5]||(t[5]=e=>G()),onError:t[6]||(t[6]=e=>Z())},null,40,pr),(0,i._)("div",vr,[(0,i._)("span",{class:(0,oe.C_)(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:t[7]||(t[7]=e=>h.value=!1)},[c.value?((0,i.wg)(),(0,i.j4)(l,{key:0})):((0,i.wg)(),(0,i.j4)(a,{key:1}))],34)])]),mr,(0,i._)("div",hr,[(0,i._)("div",fr,[(0,i._)("div",{class:"icon play-icon",onClick:t[9]||(t[9]=e=>M())},[(0,i._)("span",gr,[c.value?((0,i.wg)(),(0,i.j4)(a,{key:0})):((0,i.wg)(),(0,i.j4)(l,{key:1}))])]),(0,i._)("div",yr,[(0,i._)("div",{class:"icon volume-icon",onClick:t[10]||(t[10]=e=>V())},[(0,i._)("span",wr,[0===u.value?((0,i.wg)(),(0,i.j4)(s,{key:0})):1===u.value?((0,i.wg)(),(0,i.j4)(d,{key:1})):((0,i.wg)(),(0,i.j4)(p,{key:2}))])]),(0,i._)("div",{class:"volume-bar-wrap",onMousedown:t[11]||(t[11]=e=>N()),onTouchstart:t[12]||(t[12]=e=>N()),onClick:t[13]||(t[13]=e=>j(e))},[(0,i._)("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:r},[(0,i._)("div",{class:"volume-bar-inner",style:(0,oe.j5)({width:I.value})},kr,4)],512)],32)]),(0,i._)("span",br,[(0,i._)("span",_r,(0,oe.zw)(x.value),1),(0,i.Uk)(" / "),(0,i._)("span",Ir,(0,oe.zw)(k.value),1)])]),(0,i._)("div",Sr,[(0,i._)("div",Cr,[(0,i._)("div",Lr,[(0,i._)("span",{class:"icon-content",onClick:t[14]||(t[14]=e=>S.value=!S.value)},(0,oe.zw)(1===f.value?"倍速":f.value+"x"),1),S.value?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"speed-menu",onMouseleave:t[15]||(t[15]=e=>S.value=!1)},[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(C,(e=>(0,i._)("div",{class:(0,oe.C_)(["speed-menu-item",{active:e.value===f.value}]),key:e.label,onClick:t=>W(e.value)},(0,oe.zw)(e.label),11,Tr))),64))],32)):(0,i.kq)("",!0)])]),(0,i._)("div",{class:"loop",onClick:t[16]||(t[16]=e=>J())},[(0,i._)("div",{class:(0,oe.C_)(["icon loop-icon",{active:m.value}])},[(0,i._)("span",Er,"循环"+(0,oe.zw)(m.value?"开":"关"),1)],2)])]),(0,i._)("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:o,onMousedown:t[17]||(t[17]=e=>z()),onTouchstart:t[18]||(t[18]=e=>z()),onMousemove:t[19]||(t[19]=e=>Y(e)),onMouseenter:t[20]||(t[20]=e=>g.value=!0),onMouseleave:t[21]||(t[21]=e=>g.value=!1)},[(0,i._)("div",{class:(0,oe.C_)(["bar-time",{hidden:!g.value}]),style:(0,oe.j5)({left:w.value})},(0,oe.zw)(y.value),7),(0,i._)("div",Mr,[(0,i._)("div",{class:"loaded",style:(0,oe.j5)({width:_.value})},null,4),(0,i._)("div",{class:"played",style:(0,oe.j5)({width:b.value})},Wr,4)])],544)])],38)}}});const Hr=(0,Vl.Z)(Dr,[["__scopeId","data-v-e55352ca"]]);var Fr=Hr,Ar=(0,i.aZ)({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:l}=(0,o.Jk)(R()),a=(e,l=!0)=>{t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo,l))};return(e,t)=>{const n=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["editable-element-video",{lock:e.elementInfo.lock}]),style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"element-content",onMousedown:t[2]||(t[2]=e=>a(e,!1)),onTouchstart:t[3]||(t[3]=e=>a(e,!1))},[(0,i.Wm)(Fr,{width:e.elementInfo.width,height:e.elementInfo.height,src:e.elementInfo.src,poster:e.elementInfo.poster,scale:(0,s.SU)(l)},null,8,["width","height","src","poster","scale"]),((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(["t","b","l","r"],(e=>(0,i._)("div",{class:(0,oe.C_)(["handler-border",e]),key:e,onMousedown:t[0]||(t[0]=e=>a(e)),onTouchstart:t[1]||(t[1]=e=>a(e))},null,34))),64))],32)),[[n,e.contextmenus]])],4)],6)}}});const $r=(0,Vl.Z)(Ar,[["__scopeId","data-v-5dc89f2a"]]);var Zr=$r;const Or=e=>((0,i.dD)("data-v-44037f56"),e=e(),(0,i.Cn)(),e),Rr=["src","autoplay"],zr={class:"controller"},Pr={class:"icons"},Br={class:"icon-content"},Nr={class:"volume"},jr={class:"icon-content"},Yr=Or((()=>(0,i._)("span",{class:"thumb"},null,-1))),Vr=[Yr],Jr={class:"time"},qr={class:"ptime"},Xr={class:"dtime"},Gr={class:"bar"},Kr=Or((()=>(0,i._)("span",{class:"thumb"},null,-1))),Qr=[Kr];var eu=(0,i.aZ)({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(e,{expose:t}){const l=e,a=(e=0)=>{if(0===e||isNaN(e))return"00:00";const t=e=>e<10?"0"+e:""+e,l=Math.floor(e/3600),a=Math.floor((e-3600*l)/60),n=Math.floor(e-3600*l-60*a);return(l>0?[l,a,n]:[a,n]).map(t).join(":")},n=e=>e.getBoundingClientRect().left,o=(0,s.iH)(),r=(0,s.iH)(),u=(0,s.iH)(),c=(0,s.iH)(.5),d=(0,s.iH)(!0),p=(0,s.iH)(0),v=(0,s.iH)(0),m=(0,s.iH)(0),h=(0,s.iH)(!1),f=(0,s.iH)("00:00"),g=(0,s.iH)("0"),y=(0,i.Fl)((()=>a(p.value))),w=(0,i.Fl)((()=>a(v.value))),x=(0,i.Fl)((()=>p.value/v.value*100+"%")),k=(0,i.Fl)((()=>m.value/v.value*100+"%")),b=(0,i.Fl)((()=>100*c.value+"%")),_=e=>{o.value&&(e=Math.max(e,0),e=Math.min(e,v.value),o.value.currentTime=e,p.value=e)},I=()=>{o.value&&(d.value=!1,o.value.play())},S=()=>{o.value&&(d.value=!0,o.value.pause())},C=()=>{d.value?I():S()},L=e=>{o.value&&(e=Math.max(e,0),e=Math.min(e,1),o.value.volume=e,c.value=e,o.value.muted&&0!==e&&(o.value.muted=!1))},T=()=>{v.value=o.value?.duration||0},E=()=>{p.value=o.value?.currentTime||0},M=()=>{d.value=!1},U=()=>{l.loop?(_(0),I()):S()},W=()=>{m.value=o.value?.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},D=()=>ta.error("视频加载失败"),H=e=>{if(!o.value||!r.value)return;const t="clientX"in e?e.clientX:e.changedTouches[0].clientX;let l=(t-n(r.value))/r.value.clientWidth;l=Math.max(l,0),l=Math.min(l,1);const a=l*v.value;o.value.currentTime=a,p.value=a},F=e=>{if(!o.value||!r.value)return;const t="clientX"in e?e.clientX:e.changedTouches[0].clientX;let l=(t-n(r.value))/r.value.clientWidth;l=Math.max(l,0),l=Math.min(l,1);const a=l*v.value;o.value.currentTime=a,p.value=a,document.removeEventListener("mousemove",H),document.removeEventListener("touchmove",H),document.removeEventListener("mouseup",F),document.removeEventListener("touchend",F)},A=()=>{document.addEventListener("mousemove",H),document.addEventListener("touchmove",H),document.addEventListener("mouseup",F),document.addEventListener("touchend",F)},$=e=>{if(!u.value)return;const t="clientX"in e?e.clientX:e.changedTouches[0].clientX,l=(t-n(u.value))/45;L(l)},Z=()=>{document.removeEventListener("mousemove",$),document.removeEventListener("touchmove",$),document.removeEventListener("mouseup",Z),document.removeEventListener("touchend",Z)},O=()=>{document.addEventListener("mousemove",$),document.addEventListener("touchmove",$),document.addEventListener("mouseup",Z),document.addEventListener("touchend",Z)},R=e=>{if(!u.value)return;const t=(e.clientX-n(u.value))/45;L(t)},z=e=>{if(v.value&&r.value){const t=r.value.getBoundingClientRect().left,l=e.clientX-t;if(l<0||l>r.value.offsetWidth)return;const n=v.value*(l/r.value.offsetWidth);g.value=l-(n>=3600?25:20)+"px",f.value=a(n),h.value=!0}},P=()=>{o.value&&(o.value.muted?(o.value.muted=!1,L(.5)):(o.value.muted=!0,L(0)))};return t({toggle:C}),(e,t)=>{const l=(0,i.up)("IconPlayOne"),a=(0,i.up)("IconPause"),n=(0,i.up)("IconVolumeMute"),s=(0,i.up)("IconVolumeNotice"),p=(0,i.up)("IconVolumeSmall");return(0,i.wg)(),(0,i.iD)("div",{class:"audio-player",style:(0,oe.j5)({transform:`scale(${1/e.scale})`})},[(0,i._)("audio",{class:"audio",ref_key:"audioRef",ref:o,src:e.src,autoplay:e.autoplay,onDurationchange:t[0]||(t[0]=e=>T()),onTimeupdate:t[1]||(t[1]=e=>E()),onPlay:t[2]||(t[2]=e=>M()),onEnded:t[3]||(t[3]=e=>U()),onProgress:t[4]||(t[4]=e=>W()),onError:t[5]||(t[5]=e=>D())},null,40,Rr),(0,i._)("div",zr,[(0,i._)("div",Pr,[(0,i._)("div",{class:"icon play-icon",onClick:t[6]||(t[6]=e=>C())},[(0,i._)("span",Br,[d.value?((0,i.wg)(),(0,i.j4)(l,{key:0})):((0,i.wg)(),(0,i.j4)(a,{key:1}))])]),(0,i._)("div",Nr,[(0,i._)("div",{class:"icon volume-icon",onClick:t[7]||(t[7]=e=>P())},[(0,i._)("span",jr,[0===c.value?((0,i.wg)(),(0,i.j4)(n,{key:0})):1===c.value?((0,i.wg)(),(0,i.j4)(s,{key:1})):((0,i.wg)(),(0,i.j4)(p,{key:2}))])]),(0,i._)("div",{class:"volume-bar-wrap",onMousedown:t[8]||(t[8]=e=>O()),onTouchstart:t[9]||(t[9]=e=>O()),onClick:t[10]||(t[10]=e=>R(e))},[(0,i._)("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:u},[(0,i._)("div",{class:"volume-bar-inner",style:(0,oe.j5)({width:b.value})},Vr,4)],512)],32)])]),(0,i._)("span",Jr,[(0,i._)("span",qr,(0,oe.zw)(y.value),1),(0,i.Uk)(" / "),(0,i._)("span",Xr,(0,oe.zw)(w.value),1)]),(0,i._)("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:r,onMousedown:t[11]||(t[11]=e=>A()),onTouchstart:t[12]||(t[12]=e=>A()),onMousemove:t[13]||(t[13]=e=>z(e)),onMouseenter:t[14]||(t[14]=e=>h.value=!0),onMouseleave:t[15]||(t[15]=e=>h.value=!1)},[(0,i._)("div",{class:(0,oe.C_)(["bar-time",{hidden:!h.value}]),style:(0,oe.j5)({left:g.value})},(0,oe.zw)(f.value),7),(0,i._)("div",Gr,[(0,i._)("div",{class:"loaded",style:(0,oe.j5)({width:k.value})},null,4),(0,i._)("div",{class:"played",style:(0,oe.j5)({width:x.value})},Qr,4)])],544)])],4)}}});const tu=(0,Vl.Z)(eu,[["__scopeId","data-v-44037f56"]]);var lu=tu,au=(0,i.aZ)({__name:"index",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(e){const t=e,{canvasScale:l,handleElementId:a}=(0,o.Jk)(R()),{viewportRatio:r}=(0,o.Jk)($()),u=(0,i.Fl)((()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px")),c=(0,i.Fl)((()=>{const e=oa,a=oa*r.value,n=280/l.value,o=50/l.value,i=t.elementInfo.width,s=t.elementInfo.height,u=t.elementInfo.left,c=t.elementInfo.top;let d=0,p=s;return u+n>=e&&(d=i-n),c+s+o>=a&&(p=-o),{left:d+"px",top:p+"px"}})),d=e=>{t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))};return(e,t)=>{const o=(0,i.up)("IconVolumeNotice"),r=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["editable-element-audio",{lock:e.elementInfo.lock}]),style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"element-content",onMousedown:t[1]||(t[1]=e=>d(e)),onTouchstart:t[2]||(t[2]=e=>d(e))},[(0,i.Wm)(o,{class:"audio-icon",style:(0,oe.j5)({fontSize:u.value,color:e.elementInfo.color})},null,8,["style"]),(0,s.SU)(a)===e.elementInfo.id?((0,i.wg)(),(0,i.j4)(lu,{key:0,class:"audio-player",style:(0,oe.j5)({...c.value}),src:e.elementInfo.src,loop:e.elementInfo.loop,scale:(0,s.SU)(l),onMousedown:t[0]||(t[0]=(0,n.iM)((()=>{}),["stop"]))},null,8,["style","src","loop","scale"])):(0,i.kq)("",!0)],32)),[[r,e.contextmenus]])],4)],6)}}});const nu=(0,Vl.Z)(au,[["__scopeId","data-v-53bdc956"]]);var ou=nu;const iu=["id"];var su=(0,i.aZ)({__name:"EditableElement",props:{elementInfo:{},elementIndex:{},isMultiSelect:{type:Boolean},selectElement:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,l=(0,i.Fl)((()=>{const e={[sa.IMAGE]:$o,[sa.TEXT]:ls,[sa.SHAPE]:ys,[sa.LINE]:Es,[sa.CHART]:As,[sa.TABLE]:lr,[sa.LATEX]:rr,[sa.VIDEO]:Zr,[sa.AUDIO]:ou};return e[t.elementInfo.type]||null})),{orderElement:a}=ba(),{alignElementToCanvas:n}=qn(),{combineElements:o,uncombineElements:s}=ya(),{deleteElement:r}=ga(),{lockElement:u,unlockElement:c}=fa(),{copyElement:d,pasteElement:p,cutElement:v}=wa(),{selectAllElement:m}=xa(),h=()=>t.elementInfo.lock?[{text:"解锁",handler:()=>c(t.elementInfo)}]:[{text:"剪切",subText:"Ctrl + X",handler:v},{text:"复制",subText:"Ctrl + C",handler:d},{text:"粘贴",subText:"Ctrl + V",handler:p},{divider:!0},{text:"水平居中",handler:()=>n(ee.HORIZONTAL),children:[{text:"水平垂直居中",handler:()=>n(ee.CENTER)},{text:"水平居中",handler:()=>n(ee.HORIZONTAL)},{text:"左对齐",handler:()=>n(ee.LEFT)},{text:"右对齐",handler:()=>n(ee.RIGHT)}]},{text:"垂直居中",handler:()=>n(ee.VERTICAL),children:[{text:"水平垂直居中",handler:()=>n(ee.CENTER)},{text:"垂直居中",handler:()=>n(ee.VERTICAL)},{text:"顶部对齐",handler:()=>n(ee.TOP)},{text:"底部对齐",handler:()=>n(ee.BOTTOM)}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>a(t.elementInfo,Q.TOP),children:[{text:"置于顶层",handler:()=>a(t.elementInfo,Q.TOP)},{text:"上移一层",handler:()=>a(t.elementInfo,Q.UP)}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:()=>a(t.elementInfo,Q.BOTTOM),children:[{text:"置于底层",handler:()=>a(t.elementInfo,Q.BOTTOM)},{text:"下移一层",handler:()=>a(t.elementInfo,Q.DOWN)}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?s:o,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:m},{text:"锁定",subText:"Ctrl + L",handler:u},{text:"删除",subText:"Delete",handler:r}];return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"editable-element",ref:"elementRef",id:`editable-element-${e.elementInfo.id}`,style:(0,oe.j5)({zIndex:e.elementIndex})},[((0,i.wg)(),(0,i.j4)((0,i.LL)(l.value),{elementInfo:e.elementInfo,selectElement:e.selectElement,contextmenus:h},null,8,["elementInfo","selectElement"]))],12,iu))}});const ru=su;var uu=ru,cu=(0,i.aZ)({__name:"MouseSelection",props:{top:{},left:{},width:{},height:{},quadrant:{}},setup(e){return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(`mouse-selection quadrant-${e.quadrant}`),style:(0,oe.j5)({top:e.top+"px",left:e.left+"px",width:e.width+"px",height:e.height+"px"})},null,6))}});const du=(0,Vl.Z)(cu,[["__scopeId","data-v-2c5e1d42"]]);var pu=du;const vu={class:"grid-lines"},mu=["d","stroke"];var hu=(0,i.aZ)({__name:"GridLines",setup(e){const{canvasScale:t,gridLineSize:l}=(0,o.Jk)(R()),{currentSlide:a,viewportRatio:n}=(0,o.Jk)($()),r=(0,i.Fl)((()=>a.value?.background)),u=(0,i.Fl)((()=>{const e=r.value?.color||"#fff",t=["#000","#fff"];return W.Z.mostReadable(e,t,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()})),c=(0,i.Fl)((()=>{const e=oa,t=oa*n.value;let a="";for(let n=0;n<=Math.floor(t/l.value);n++)a+=`M0 ${n*l.value} L${e} ${n*l.value} `;for(let n=0;n<=Math.floor(e/l.value);n++)a+=`M${n*l.value} 0 L${n*l.value} ${t} `;return a}));return(e,l)=>((0,i.wg)(),(0,i.iD)("svg",vu,[(0,i._)("path",{style:(0,oe.j5)({transform:`scale(${(0,s.SU)(t)})`}),d:c.value,fill:"none",stroke:u.value,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,mu)]))}});const fu=(0,Vl.Z)(hu,[["__scopeId","data-v-05484a24"]]);var gu=fu,yu=e=>{const t=(0,i.Fl)((()=>{if(!e.value)return{backgroundColor:"#fff"};const{type:t,color:l,image:a,imageSize:n,gradientColor:o,gradientRotate:i,gradientType:s}=e.value;if("solid"===t)return{backgroundColor:l};if("image"===t)return a?"repeat"===n?{backgroundImage:`url(${a}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${a}`,backgroundRepeat:"no-repeat",backgroundSize:n||"cover"}:{backgroundColor:"#fff"};if("gradient"===t){const e=i||0,t=o?o[0]:"#fff",l=o?o[1]:"#fff";return"radial"===s?{backgroundImage:`radial-gradient(${t}, ${l}`}:{backgroundImage:`linear-gradient(${e}deg, ${t}, ${l}`}}return{backgroundColor:"#fff"}}));return{backgroundStyle:t}},wu=(0,i.aZ)({__name:"ViewportBackground",setup(e){const{gridLineSize:t}=(0,o.Jk)(R()),{currentSlide:l}=(0,o.Jk)($()),a=(0,i.Fl)((()=>l.value?.background)),{backgroundStyle:n}=yu(a);return(e,l)=>((0,i.wg)(),(0,i.iD)("div",{class:"viewport-background",style:(0,oe.j5)((0,s.SU)(n))},[(0,s.SU)(t)?((0,i.wg)(),(0,i.j4)(gu,{key:0})):(0,i.kq)("",!0)],4))}});const xu=(0,Vl.Z)(wu,[["__scopeId","data-v-b6b18502"]]);var ku=xu,bu=(0,i.aZ)({__name:"AlignmentLine",props:{type:{},axis:{},length:{},canvasScale:{}},setup(e){const t=e,l=(0,i.Fl)((()=>t.axis.x*t.canvasScale+"px")),a=(0,i.Fl)((()=>t.axis.y*t.canvasScale+"px")),n=(0,i.Fl)((()=>"vertical"===t.type?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"alignment-line",style:(0,oe.j5)({left:l.value,top:a.value})},[(0,i._)("div",{class:(0,oe.C_)(["line",e.type]),style:(0,oe.j5)(n.value)},null,6)],4))}});const _u=(0,Vl.Z)(bu,[["__scopeId","data-v-ed6fc00a"]]);var Iu=_u;const Su={class:"ruler"};var Cu=(0,i.aZ)({__name:"Ruler",props:{viewportStyles:{}},setup(e){const t=e,{canvasScale:l}=(0,o.Jk)(R()),a=(0,i.Fl)((()=>t.viewportStyles.width*l.value/10));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Su,[(0,i._)("div",{class:"h",style:(0,oe.j5)({width:e.viewportStyles.width*(0,s.SU)(l)+"px",left:e.viewportStyles.left+"px"})},[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(20,(e=>(0,i._)("div",{class:(0,oe.C_)(["ruler-marker-100",{hide:a.value<36,omit:a.value<72}]),key:`marker-100-${e}`},[(0,i._)("span",null,(0,oe.zw)(e),1)],2))),64))],4),(0,i._)("div",{class:"v",style:(0,oe.j5)({height:e.viewportStyles.height*(0,s.SU)(l)+"px",top:e.viewportStyles.top+"px"})},[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(20,(e=>(0,i._)("div",{class:(0,oe.C_)(["ruler-marker-100",{hide:a.value<36,omit:a.value<72}]),key:e,style:(0,oe.j5)({height:a.value+"px"})},[(0,i._)("span",null,(0,oe.zw)(e),1)],6))),64))],4)]))}});const Lu=(0,Vl.Z)(Cu,[["__scopeId","data-v-2963c74c"]]);var Tu=Lu;const Eu=["width","height"],Mu=["d"];var Uu=(0,i.aZ)({__name:"ElementCreateSelection",emits:["created"],setup(e,{emit:t}){const l=t,a=R(),{creatingElement:r}=(0,o.Jk)(a),{ctrlOrShiftKeyActive:u}=(0,o.Jk)(q()),c=(0,s.iH)(),d=(0,s.iH)(),p=(0,s.iH)(),v=(0,s.iH)({x:0,y:0});(0,i.bv)((()=>{if(!p.value)return;const{x:e,y:t}=p.value.getBoundingClientRect();v.value={x:e,y:t}}));const m=e=>{let t=!0;const n=e.pageX,o=e.pageY;c.value=[n,o],document.onmousemove=e=>{if(!r.value||!t)return;let l=e.pageX,a=e.pageY;if(u.value){const e=l-n,t=a-o,i=Math.abs(e),s=Math.abs(t);if("shape"===r.value.type){const r=t>0&&e<0||t<0&&e>0;i>s?a=r?o-e:o+e:l=r?n-t:n+t}else"line"===r.value.type&&(i>s?a=o:l=n)}d.value=[l,a]},document.onmouseup=e=>{if(document.onmousemove=null,document.onmouseup=null,2===e.button)return void setTimeout((()=>a.setCreatingElement(null)),0);t=!1;const i=e.pageX,s=e.pageY,u=30;if("line"===r.value?.type&&(Math.abs(i-n)>=u||Math.abs(s-o)>=u))l("created",{start:c.value,end:d.value});else if("line"!==r.value?.type&&Math.abs(i-n)>=u&&Math.abs(s-o)>=u)l("created",{start:c.value,end:d.value});else{const e=200,t=Math.min(i,n),a=Math.min(s,o),r=Math.max(i,n),c=Math.max(s,o),d=r-t>=u?r-t:e,p=c-a>=u?c-a:e;l("created",{start:[t,a],end:[t+d,a+p]})}}},h=(0,i.Fl)((()=>{if(!c.value||!d.value)return null;if(!r.value||"line"!==r.value.type)return null;const[e,t]=c.value,[l,a]=d.value,n=Math.min(e,l),o=Math.max(e,l),i=Math.min(t,a),s=Math.max(t,a),u=o-n>=24?o-n:24,p=s-i>=24?s-i:24,v=e===n?0:o-n,m=t===i?0:s-i,h=l===n?0:o-n,f=a===i?0:s-i,g=`M${v}, ${m} L${h}, ${f}`;return{svgWidth:u,svgHeight:p,startX:v,startY:m,endX:h,endY:f,path:g}})),f=(0,i.Fl)((()=>{if(!c.value||!d.value)return{};const[e,t]=c.value,[l,a]=d.value,n=Math.min(e,l),o=Math.max(e,l),i=Math.min(t,a),s=Math.max(t,a),r=o-n,u=s-i;return{left:n-v.value.x+"px",top:i-v.value.y+"px",width:r+"px",height:u+"px"}}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"element-create-selection",ref_key:"selectionRef",ref:p,onMousedown:t[0]||(t[0]=(0,n.iM)((e=>m(e)),["stop"])),onContextmenu:t[1]||(t[1]=(0,n.iM)((()=>{}),["stop","prevent"]))},[c.value&&d.value?((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,oe.C_)(["selection",(0,s.SU)(r)?.type]),style:(0,oe.j5)(f.value)},["line"===(0,s.SU)(r)?.type&&h.value?((0,i.wg)(),(0,i.iD)("svg",{key:0,overflow:"visible",width:h.value.svgWidth,height:h.value.svgHeight},[(0,i._)("path",{d:h.value.path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,Mu)],8,Eu)):(0,i.kq)("",!0)],6)):(0,i.kq)("",!0)],544))}});const Wu=(0,Vl.Z)(Uu,[["__scopeId","data-v-85b0bbaa"]]);var Du=Wu;const Hu={overflow:"visible"},Fu=["d","fill"];var Au=(0,i.aZ)({__name:"ShapeCreateCanvas",emits:["created"],setup(e,{emit:t}){const l=t,a=R(),{ctrlOrShiftKeyActive:r}=(0,o.Jk)(q()),{theme:u}=(0,o.Jk)($()),c=(0,s.iH)(),d=(0,s.iH)(!1),p=(0,s.iH)({x:0,y:0});(0,i.bv)((()=>{if(!c.value)return;const{x:e,y:t}=c.value.getBoundingClientRect();p.value={x:e,y:t}}));const v=(0,s.iH)(null),m=(0,s.iH)([]),h=(0,s.iH)(!1),f=(e,t=!1)=>{let l=e.pageX-p.value.x,a=e.pageY-p.value.y;if(t)return{pageX:l,pageY:a};if(r.value&&m.value.length){const[e,t]=m.value[m.value.length-1];Math.abs(e-l)-Math.abs(t-a)>0?a=t:l=e}return{pageX:l,pageY:a}},g=e=>{if(d.value){const{pageX:t,pageY:l}=f(e,!0);return m.value.push([t,l]),void(v.value=null)}const{pageX:t,pageY:l}=f(e);if(v.value=[t,l],m.value.length>=2){const[e,a]=m.value[0];Math.abs(e-t)<5&&Math.abs(a-l)<5?h.value=!0:h.value=!1}else h.value=!1},y=(0,i.Fl)((()=>{let e="";for(let t=0;t{const t=m.value.map((e=>e[0])),l=m.value.map((e=>e[1])),a=Math.min(...t),n=Math.min(...l),o=Math.max(...t),i=Math.max(...l),s=m.value.map((e=>[e[0]-a,e[1]-n]));let r="";for(let p=0;p{const{pageX:t,pageY:a}=f(e);d.value=!0,h.value?l("created",w()):m.value.push([t,a]),document.onmouseup=()=>{d.value=!1}},k=()=>{a.setCreatingCustomShapeState(!1)},b=()=>{l("created",{...w(!1),fill:"rgba(0, 0, 0, 0)",outline:{width:2,color:u.value.themeColor,style:"solid"}}),k()},_=e=>{const t=e.key.toUpperCase();t===ne.ESC&&k(),t===ne.ENTER&&b()};return(0,i.bv)((()=>{ta.success("点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成",{duration:5e3}),document.addEventListener("keydown",_)})),(0,i.Ah)((()=>document.removeEventListener("keydown",_))),(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"shape-create-canvas",ref_key:"shapeCanvasRef",ref:c,onMousedown:t[0]||(t[0]=(0,n.iM)((e=>x(e)),["stop"])),onMousemove:t[1]||(t[1]=e=>g(e)),onContextmenu:t[2]||(t[2]=(0,n.iM)((e=>k()),["stop","prevent"]))},[((0,i.wg)(),(0,i.iD)("svg",Hu,[(0,i._)("path",{d:y.value,stroke:"#d14424",fill:h.value?"rgba(226, 83, 77, 0.15)":"none","stroke-width":"2"},null,8,Fu)]))],544))}});const $u=(0,Vl.Z)(Au,[["__scopeId","data-v-6dc9876e"]]);var Zu=$u,Ou=(e,t)=>{const l=(0,i.Fl)((()=>[{direction:le.LEFT_TOP,style:{}},{direction:le.TOP,style:{left:e.value/2+"px"}},{direction:le.RIGHT_TOP,style:{left:e.value+"px"}},{direction:le.LEFT,style:{top:t.value/2+"px"}},{direction:le.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:le.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:le.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:le.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}])),a=(0,i.Fl)((()=>[{direction:le.LEFT,style:{top:t.value/2+"px"}},{direction:le.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}])),n=(0,i.Fl)((()=>[{direction:le.TOP,style:{left:e.value/2+"px"}},{direction:le.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}])),o=(0,i.Fl)((()=>[{type:te.T,style:{width:e.value+"px"}},{type:te.B,style:{top:t.value+"px",width:e.value+"px"}},{type:te.L,style:{height:t.value+"px"}},{type:te.R,style:{left:e.value+"px",height:t.value+"px"}}]));return{resizeHandlers:l,textElementResizeHandlers:a,verticalTextElementResizeHandlers:n,borderLines:o}},Ru=(0,i.aZ)({__name:"ResizeHandler",props:{type:{},rotate:{default:0}},setup(e){const t=e,l=(0,i.Fl)((()=>{const e="rotate-",l=t.rotate;return l>-22.5&&l<=22.5?e+0:l>22.5&&l<=67.5?e+45:l>67.5&&l<=112.5?e+90:l>112.5&&l<=157.5?e+135:l>157.5||l<=-157.5?e+0:l>-157.5&&l<=-112.5?e+45:l>-112.5&&l<=-67.5?e+90:l>-67.5&&l<=-22.5?e+135:e+0}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["resize-handler",l.value,e.type])},null,2))}});const zu=(0,Vl.Z)(Ru,[["__scopeId","data-v-1e66197f"]]);var Pu=zu,Bu=(0,i.aZ)({__name:"BorderLine",props:{type:{},isWide:{type:Boolean,default:!1}},setup(e){return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["border-line",e.type,{wide:e.isWide}])},null,2))}});const Nu=(0,Vl.Z)(Bu,[["__scopeId","data-v-8346cf6c"]]);var ju=Nu,Yu=(0,i.aZ)({__name:"MultiSelectOperate",props:{elementList:{},scaleMultiElement:{type:Function}},setup(e){const t=e,{activeElementIdList:l,canvasScale:a}=(0,o.Jk)(R()),r=(0,i.Fl)((()=>t.elementList.filter((e=>l.value.includes(e.id))))),u=(0,s.iH)({minX:0,maxX:0,minY:0,maxY:0}),c=(0,i.Fl)((()=>(u.value.maxX-u.value.minX)*a.value)),d=(0,i.Fl)((()=>(u.value.maxY-u.value.minY)*a.value)),{resizeHandlers:p,borderLines:v}=Ou(c,d),m=()=>{const{minX:e,maxX:t,minY:l,maxY:a}=ke(r.value);u.value={minX:e,maxX:t,minY:l,maxY:a}};(0,i.m0)(m);const h=(0,i.Fl)((()=>r.value.some((e=>!!("image"!==e.type&&"shape"!==e.type||e.rotate)))));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"multi-select-operate",style:(0,oe.j5)({left:u.value.minX*(0,s.SU)(a)+"px",top:u.value.minY*(0,s.SU)(a)+"px"})},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(v),(e=>((0,i.wg)(),(0,i.j4)(ju,{key:e.type,type:e.type,style:(0,oe.j5)(e.style)},null,8,["type","style"])))),128)),h.value?(0,i.kq)("",!0):((0,i.wg)(!0),(0,i.iD)(i.HY,{key:0},(0,i.Ko)((0,s.SU)(p),(t=>((0,i.wg)(),(0,i.j4)(Pu,{key:t.direction,type:t.direction,style:(0,oe.j5)(t.style),onMousedown:(0,n.iM)((l=>e.scaleMultiElement(l,u.value,t.direction)),["stop"])},null,8,["type","style","onMousedown"])))),128))],4))}});const Vu=(0,Vl.Z)(Yu,[["__scopeId","data-v-97dc9b9a"]]);var Ju=Vu;const qu={class:"rotate-handler"};function Xu(e,t){return(0,i.wg)(),(0,i.iD)("div",qu)}const Gu={},Ku=(0,Vl.Z)(Gu,[["render",Xu],["__scopeId","data-v-b99d8dae"]]);var Qu=Ku;const ec={inheritAttrs:!1};var tc=(0,i.aZ)({...ec,__name:"ImageElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:l,clipingImageElementId:a}=(0,o.Jk)(R()),r=(0,i.Fl)((()=>a.value===t.elementInfo.id)),u=(0,i.Fl)((()=>t.elementInfo.width*l.value)),c=(0,i.Fl)((()=>t.elementInfo.height*l.value)),{resizeHandlers:d,borderLines:p}=Ou(u,c);return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["image-element-operate",{cliping:r.value}])},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(p),(e=>((0,i.wg)(),(0,i.j4)(ju,{class:"operate-border-line",key:e.type,type:e.type,style:(0,oe.j5)(e.style)},null,8,["type","style"])))),128)),e.handlerVisible?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(d),(t=>((0,i.wg)(),(0,i.j4)(Pu,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:(0,oe.j5)(t.style),onMousedown:(0,n.iM)((l=>e.scaleElement(l,e.elementInfo,t.direction)),["stop"])},null,8,["type","rotate","style","onMousedown"])))),128)),(0,i.Wm)(Qu,{class:"operate-rotate-handler",style:(0,oe.j5)({left:u.value/2+"px"}),onMousedown:t[0]||(t[0]=(0,n.iM)((t=>e.rotateElement(t,e.elementInfo)),["stop"]))},null,8,["style"])],64)):(0,i.kq)("",!0)],2))}});const lc=(0,Vl.Z)(tc,[["__scopeId","data-v-7bcad5a9"]]);var ac=lc;const nc={class:"text-element-operate"},oc={inheritAttrs:!1};var ic=(0,i.aZ)({...oc,__name:"TextElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:l}=(0,o.Jk)(R()),a=(0,i.Fl)((()=>t.elementInfo.width*l.value)),r=(0,i.Fl)((()=>t.elementInfo.height*l.value)),{textElementResizeHandlers:u,verticalTextElementResizeHandlers:c,borderLines:d}=Ou(a,r),p=(0,i.Fl)((()=>t.elementInfo.vertical?c.value:u.value));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",nc,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(d),(e=>((0,i.wg)(),(0,i.j4)(ju,{class:"operate-border-line",key:e.type,type:e.type,style:(0,oe.j5)(e.style)},null,8,["type","style"])))),128)),e.handlerVisible?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(p.value,(t=>((0,i.wg)(),(0,i.j4)(Pu,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:(0,oe.j5)(t.style),onMousedown:(0,n.iM)((l=>e.scaleElement(l,e.elementInfo,t.direction)),["stop"])},null,8,["type","rotate","style","onMousedown"])))),128)),(0,i.Wm)(Qu,{class:"operate-rotate-handler",style:(0,oe.j5)({left:a.value/2+"px"}),onMousedown:t[0]||(t[0]=(0,n.iM)((t=>e.rotateElement(t,e.elementInfo)),["stop"]))},null,8,["style"])],64)):(0,i.kq)("",!0)]))}});const sc=ic;var rc=sc;const uc={class:"shape-element-operate"},cc={inheritAttrs:!1};var dc=(0,i.aZ)({...cc,__name:"ShapeElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},moveShapeKeypoint:{type:Function}},setup(e){const t=e,{canvasScale:l}=(0,o.Jk)(R()),a=(0,i.Fl)((()=>t.elementInfo.width*l.value)),r=(0,i.Fl)((()=>t.elementInfo.height*l.value)),{resizeHandlers:u,borderLines:c}=Ou(a,r),d=(0,i.Fl)((()=>{if(!t.elementInfo.pathFormula||void 0===t.elementInfo.keypoint)return{};const e=ra[t.elementInfo.pathFormula];if("editable"in e){const a=e.getBaseSize(t.elementInfo.width,t.elementInfo.height)*t.elementInfo.keypoint;if("left"===e.relative)return{left:a*l.value+"px"};if("right"===e.relative)return{left:(t.elementInfo.width-a)*l.value+"px"};if("center"===e.relative)return{left:(t.elementInfo.width-a)/2*l.value+"px"};if("top"===e.relative)return{top:a*l.value+"px"};if("bottom"===e.relative)return{top:(t.elementInfo.height-a)*l.value+"px"}}return{}}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",uc,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(c),(e=>((0,i.wg)(),(0,i.j4)(ju,{class:"operate-border-line",key:e.type,type:e.type,style:(0,oe.j5)(e.style)},null,8,["type","style"])))),128)),e.handlerVisible?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(u),(t=>((0,i.wg)(),(0,i.j4)(Pu,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:(0,oe.j5)(t.style),onMousedown:(0,n.iM)((l=>e.scaleElement(l,e.elementInfo,t.direction)),["stop"])},null,8,["type","rotate","style","onMousedown"])))),128)),(0,i.Wm)(Qu,{class:"operate-rotate-handler",style:(0,oe.j5)({left:a.value/2+"px"}),onMousedown:t[0]||(t[0]=(0,n.iM)((t=>e.rotateElement(t,e.elementInfo)),["stop"]))},null,8,["style"]),void 0!==e.elementInfo.keypoint?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"operate-keypoint-handler",style:(0,oe.j5)(d.value),onMousedown:t[1]||(t[1]=(0,n.iM)((t=>e.moveShapeKeypoint(t,e.elementInfo)),["stop"]))},null,36)):(0,i.kq)("",!0)],64)):(0,i.kq)("",!0)]))}});const pc=(0,Vl.Z)(dc,[["__scopeId","data-v-52dcdbf8"]]);var vc=pc;const mc={class:"line-element-operate"},hc=["width","height","stroke"],fc={key:0},gc=["x1","y1","x2","y2"],yc=["x1","y1","x2","y2"],wc=["x1","y1","x2","y2"],xc=["x1","y1","x2","y2"],kc={inheritAttrs:!1};var bc=(0,i.aZ)({...kc,__name:"LineElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},dragLineElement:{type:Function}},setup(e){const t=e,{canvasScale:l}=(0,o.Jk)(R()),a=(0,i.Fl)((()=>Math.max(t.elementInfo.start[0],t.elementInfo.end[0]))),r=(0,i.Fl)((()=>Math.max(t.elementInfo.start[1],t.elementInfo.end[1]))),u=(0,i.Fl)((()=>{const e=[{handler:ae.START,style:{left:t.elementInfo.start[0]*l.value+"px",top:t.elementInfo.start[1]*l.value+"px"}},{handler:ae.END,style:{left:t.elementInfo.end[0]*l.value+"px",top:t.elementInfo.end[1]*l.value+"px"}}];if(t.elementInfo.curve||t.elementInfo.broken){const a=t.elementInfo.curve||t.elementInfo.broken;e.push({handler:ae.C,style:{left:a[0]*l.value+"px",top:a[1]*l.value+"px"}})}else if(t.elementInfo.cubic){const[a,n]=t.elementInfo.cubic;e.push({handler:ae.C1,style:{left:a[0]*l.value+"px",top:a[1]*l.value+"px"}}),e.push({handler:ae.C2,style:{left:n[0]*l.value+"px",top:n[1]*l.value+"px"}})}return e}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",mc,[e.handlerVisible?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(u.value,(t=>((0,i.wg)(),(0,i.j4)(Pu,{class:"operate-resize-handler",key:t.handler,style:(0,oe.j5)(t.style),onMousedown:(0,n.iM)((l=>e.dragLineElement(l,e.elementInfo,t.handler)),["stop"])},null,8,["style","onMousedown"])))),128)),((0,i.wg)(),(0,i.iD)("svg",{width:a.value||1,height:r.value||1,stroke:e.elementInfo.color,overflow:"visible",style:(0,oe.j5)({transform:`scale(${(0,s.SU)(l)})`})},[e.elementInfo.curve?((0,i.wg)(),(0,i.iD)("g",fc,[(0,i._)("line",{class:"anchor-line",x1:e.elementInfo.start[0],y1:e.elementInfo.start[1],x2:e.elementInfo.curve[0],y2:e.elementInfo.curve[1]},null,8,gc),(0,i._)("line",{class:"anchor-line",x1:e.elementInfo.end[0],y1:e.elementInfo.end[1],x2:e.elementInfo.curve[0],y2:e.elementInfo.curve[1]},null,8,yc)])):(0,i.kq)("",!0),e.elementInfo.cubic?((0,i.wg)(!0),(0,i.iD)(i.HY,{key:1},(0,i.Ko)(e.elementInfo.cubic,((t,l)=>((0,i.wg)(),(0,i.iD)("g",{key:l},[0===l?((0,i.wg)(),(0,i.iD)("line",{key:0,class:"anchor-line",x1:e.elementInfo.start[0],y1:e.elementInfo.start[1],x2:t[0],y2:t[1]},null,8,wc)):(0,i.kq)("",!0),1===l?((0,i.wg)(),(0,i.iD)("line",{key:1,class:"anchor-line",x1:e.elementInfo.end[0],y1:e.elementInfo.end[1],x2:t[0],y2:t[1]},null,8,xc)):(0,i.kq)("",!0)])))),128)):(0,i.kq)("",!0)],12,hc))],64)):(0,i.kq)("",!0)]))}});const _c=(0,Vl.Z)(bc,[["__scopeId","data-v-3aa5cc44"]]);var Ic=_c;const Sc={class:"table-element-operate"},Cc={inheritAttrs:!1};var Lc=(0,i.aZ)({...Cc,__name:"TableElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:l}=(0,o.Jk)(R()),a=(0,i.Fl)((()=>t.elementInfo.outline.width||1)),r=(0,i.Fl)((()=>(t.elementInfo.width+a.value)*l.value)),u=(0,i.Fl)((()=>t.elementInfo.height*l.value)),{resizeHandlers:c,borderLines:d}=Ou(r,u);return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Sc,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(d),(e=>((0,i.wg)(),(0,i.j4)(ju,{class:"operate-border-line",key:e.type,type:e.type,style:(0,oe.j5)(e.style)},null,8,["type","style"])))),128)),e.handlerVisible?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(c),(t=>((0,i.wg)(),(0,i.j4)(Pu,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:(0,oe.j5)(t.style),onMousedown:(0,n.iM)((l=>e.scaleElement(l,e.elementInfo,t.direction)),["stop"])},null,8,["type","rotate","style","onMousedown"])))),128)),(0,i.Wm)(Qu,{class:"operate-rotate-handler",style:(0,oe.j5)({left:r.value/2+"px"}),onMousedown:t[0]||(t[0]=(0,n.iM)((t=>e.rotateElement(t,e.elementInfo)),["stop"]))},null,8,["style"])],64)):(0,i.kq)("",!0)]))}});const Tc=Lc;var Ec=Tc;const Mc={class:"common-element-operate"},Uc={inheritAttrs:!1};var Wc=(0,i.aZ)({...Uc,__name:"CommonElementOperate",props:{elementInfo:{},handlerVisible:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function}},setup(e){const t=e,{canvasScale:l}=(0,o.Jk)(R()),a=(0,i.Fl)((()=>t.elementInfo.width*l.value)),r=(0,i.Fl)((()=>t.elementInfo.height*l.value)),{resizeHandlers:u,borderLines:c}=Ou(a,r),d=(0,i.Fl)((()=>["chart","video","audio"].includes(t.elementInfo.type)));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Mc,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(c),(e=>((0,i.wg)(),(0,i.j4)(ju,{class:"operate-border-line",key:e.type,type:e.type,style:(0,oe.j5)(e.style)},null,8,["type","style"])))),128)),e.handlerVisible?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(u),(t=>((0,i.wg)(),(0,i.j4)(Pu,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:(0,oe.j5)(t.style),onMousedown:(0,n.iM)((l=>e.scaleElement(l,e.elementInfo,t.direction)),["stop"])},null,8,["type","rotate","style","onMousedown"])))),128)),d.value?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(Qu,{key:0,class:"operate-rotate-handler",style:(0,oe.j5)({left:a.value/2+"px"}),onMousedown:t[0]||(t[0]=(0,n.iM)((t=>e.rotateElement(t,e.elementInfo)),["stop"]))},null,8,["style"]))],64)):(0,i.kq)("",!0)]))}});const Dc=Wc;var Hc=Dc,Fc=()=>{const e=$(),{addHistorySnapshot:t}=da(),l=(l,a)=>{const n=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if("web"===a.type&&!n.test(a.target))return ta.error("不是正确的网页链接地址"),!1;if("slide"===a.type&&!a.target)return ta.error("请先选择链接目标"),!1;const o={link:a};return e.updateElement({id:l.id,props:o}),t(),!0},a=l=>{e.removeElementProps({id:l.id,propName:"link"}),t()};return{setLink:l,removeLink:a}},Ac=(0,i.aZ)({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:0}},setup(e){return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["divider",e.type]),style:(0,oe.j5)({margin:"horizontal"===e.type?`${e.margin||24}px 0`:`0 ${e.margin||8}px`})},null,6))}});const $c=(0,Vl.Z)(Ac,[["__scopeId","data-v-6b66cde8"]]);var Zc=$c;const Oc=["href"],Rc={class:"btns"};var zc=(0,i.aZ)({__name:"LinkHandler",props:{elementInfo:{},link:{},openLinkDialog:{type:Function}},setup(e){const t=e,l=R(),a=$(),{canvasScale:n}=(0,o.Jk)(l),{slides:r}=(0,o.Jk)(a),{removeLink:u}=Fc(),c=(0,i.Fl)((()=>"line"===t.elementInfo.type?0:t.elementInfo.height)),d=e=>{const t=r.value.findIndex((t=>t.id===e));-1!==t&&(l.setActiveElementIdList([]),a.updateSlideIndex(t))};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"link-handler",style:(0,oe.j5)({top:c.value*(0,s.SU)(n)+10+"px"})},["web"===e.link.type?((0,i.wg)(),(0,i.iD)("a",{key:0,class:"link",href:e.link.target,target:"_blank"},(0,oe.zw)(e.link.target),9,Oc)):((0,i.wg)(),(0,i.iD)("a",{key:1,class:"link",onClick:t[0]||(t[0]=t=>d(e.link.target))},"幻灯片页面 "+(0,oe.zw)(e.link.target),1)),(0,i._)("div",Rc,[(0,i._)("div",{class:"btn",onClick:t[1]||(t[1]=t=>e.openLinkDialog())},"更换"),(0,i.Wm)(Zc,{type:"vertical"}),(0,i._)("div",{class:"btn",onClick:t[2]||(t[2]=t=>(0,s.SU)(u)(e.elementInfo))},"移除")])],4))}});const Pc=(0,Vl.Z)(zc,[["__scopeId","data-v-316c4664"]]);var Bc=Pc;const Nc={key:1,class:"animation-index"};var jc=(0,i.aZ)({__name:"index",props:{elementInfo:{},isSelected:{type:Boolean},isActive:{type:Boolean},isActiveGroupElement:{type:Boolean},isMultiSelect:{type:Boolean},rotateElement:{type:Function},scaleElement:{type:Function},dragLineElement:{type:Function},moveShapeKeypoint:{type:Function},openLinkDialog:{type:Function}},setup(e){const t=e,{canvasScale:l,toolbarState:a}=(0,o.Jk)(R()),{formatedAnimations:r}=(0,o.Jk)($()),u=(0,i.Fl)((()=>{const e={[sa.IMAGE]:ac,[sa.TEXT]:rc,[sa.SHAPE]:vc,[sa.LINE]:Ic,[sa.TABLE]:Ec,[sa.CHART]:Hc,[sa.LATEX]:Hc,[sa.VIDEO]:Hc,[sa.AUDIO]:Hc};return e[t.elementInfo.type]||null})),c=(0,i.Fl)((()=>{const e=[];for(let l=0;le.elId));a.includes(t.elementInfo.id)&&e.push(l)}return e})),d=(0,i.Fl)((()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0)),p=(0,i.Fl)((()=>"height"in t.elementInfo?t.elementInfo.height:0));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["operate",{"multi-select":e.isMultiSelect&&!e.isActive}]),style:(0,oe.j5)({top:e.elementInfo.top*(0,s.SU)(l)+"px",left:e.elementInfo.left*(0,s.SU)(l)+"px",transform:`rotate(${d.value}deg)`,transformOrigin:`${e.elementInfo.width*(0,s.SU)(l)/2}px ${p.value*(0,s.SU)(l)/2}px`})},[e.isSelected?((0,i.wg)(),(0,i.j4)((0,i.LL)(u.value),{key:0,elementInfo:e.elementInfo,handlerVisible:!e.elementInfo.lock&&(e.isActiveGroupElement||!e.isMultiSelect),rotateElement:e.rotateElement,scaleElement:e.scaleElement,dragLineElement:e.dragLineElement,moveShapeKeypoint:e.moveShapeKeypoint},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])):(0,i.kq)("",!0),"elAnimation"===(0,s.SU)(a)&&c.value.length?((0,i.wg)(),(0,i.iD)("div",Nc,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(c.value,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"index-item",key:e},(0,oe.zw)(e+1),1)))),128))])):(0,i.kq)("",!0),e.isActive&&e.elementInfo.link?((0,i.wg)(),(0,i.j4)(Bc,{key:2,elementInfo:e.elementInfo,link:e.elementInfo.link,openLinkDialog:e.openLinkDialog,onMousedown:t[0]||(t[0]=(0,n.iM)((()=>{}),["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):(0,i.kq)("",!0)],6))}});const Yc=(0,Vl.Z)(jc,[["__scopeId","data-v-5ec1ff35"]]);var Vc=Yc;const Jc=["src"];var qc=(0,i.aZ)({__name:"BaseImageElement",props:{elementInfo:{}},setup(e){const t=e,l=(0,i.Fl)((()=>t.elementInfo.shadow)),{shadowStyle:a}=Xn(l),n=(0,i.Fl)((()=>t.elementInfo.flipH)),o=(0,i.Fl)((()=>t.elementInfo.flipV)),{flipStyle:r}=Gn(n,o),u=(0,i.Fl)((()=>t.elementInfo.clip)),{clipShape:c,imgPosition:d}=Qn(u),p=(0,i.Fl)((()=>t.elementInfo.filters)),{filter:v}=eo(p);return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"base-element-image",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i._)("div",{class:"element-content",style:(0,oe.j5)({filter:(0,s.SU)(a)?`drop-shadow(${(0,s.SU)(a)})`:"",transform:(0,s.SU)(r)})},[(0,i.Wm)(ko,{elementInfo:e.elementInfo},null,8,["elementInfo"]),(0,i._)("div",{class:"image-content",style:(0,oe.j5)({clipPath:(0,s.SU)(c).style})},[(0,i._)("img",{src:e.elementInfo.src,draggable:!1,style:(0,oe.j5)({top:(0,s.SU)(d).top,left:(0,s.SU)(d).left,width:(0,s.SU)(d).width,height:(0,s.SU)(d).height,filter:(0,s.SU)(v)}),alt:""},null,12,Jc),e.elementInfo.colorMask?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"color-mask",style:(0,oe.j5)({backgroundColor:e.elementInfo.colorMask})},null,4)):(0,i.kq)("",!0)],4)],4)],4)],4))}});const Xc=(0,Vl.Z)(qc,[["__scopeId","data-v-24fef706"]]);var Gc=Xc;const Kc=["innerHTML"];var Qc=(0,i.aZ)({__name:"BaseTextElement",props:{elementInfo:{}},setup(e){const t=e,l=(0,i.Fl)((()=>t.elementInfo.shadow)),{shadowStyle:a}=Xn(l);return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"base-element-text",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i._)("div",{class:"element-content",style:(0,oe.j5)({width:e.elementInfo.vertical?"auto":e.elementInfo.width+"px",height:e.elementInfo.vertical?e.elementInfo.height+"px":"auto",backgroundColor:e.elementInfo.fill,opacity:e.elementInfo.opacity,textShadow:(0,s.SU)(a),lineHeight:e.elementInfo.lineHeight,letterSpacing:(e.elementInfo.wordSpace||0)+"px",color:e.elementInfo.defaultColor,fontFamily:e.elementInfo.defaultFontName,writingMode:e.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[(0,i.Wm)(Po,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),(0,i._)("div",{class:"text ProseMirror-static",style:(0,oe.j5)({"--paragraphSpace":`${void 0===e.elementInfo.paragraphSpace?5:e.elementInfo.paragraphSpace}px`}),innerHTML:e.elementInfo.content},null,12,Kc)],4)],4)],4))}});const ed=(0,Vl.Z)(Qc,[["__scopeId","data-v-52a206f2"]]);var td=ed;const ld=["width","height"],ad={key:0},nd=["transform"],od=["d","fill","stroke","stroke-width","stroke-dasharray"],id=["innerHTML"];var sd=(0,i.aZ)({__name:"BaseShapeElement",props:{elementInfo:{}},setup(e){const t=e,l=(0,i.Fl)((()=>t.elementInfo.outline)),{outlineWidth:a,outlineColor:n,strokeDashArray:o}=to(l),r=(0,i.Fl)((()=>t.elementInfo.shadow)),{shadowStyle:u}=Xn(r),c=(0,i.Fl)((()=>t.elementInfo.flipH)),d=(0,i.Fl)((()=>t.elementInfo.flipV)),{flipStyle:p}=Gn(c,d),v=(0,i.Fl)((()=>{const e={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:e}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"base-element-shape",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i._)("div",{class:"element-content",style:(0,oe.j5)({opacity:e.elementInfo.opacity,filter:(0,s.SU)(u)?`drop-shadow(${(0,s.SU)(u)})`:"",transform:(0,s.SU)(p),color:v.value.defaultColor,fontFamily:v.value.defaultFontName})},[((0,i.wg)(),(0,i.iD)("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height},[e.elementInfo.gradient?((0,i.wg)(),(0,i.iD)("defs",ad,[(0,i.Wm)(ds,{id:`base-gradient-${e.elementInfo.id}`,type:e.elementInfo.gradient.type,color1:e.elementInfo.gradient.color[0],color2:e.elementInfo.gradient.color[1],rotate:e.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):(0,i.kq)("",!0),(0,i._)("g",{transform:`scale(${e.elementInfo.width/e.elementInfo.viewBox[0]}, ${e.elementInfo.height/e.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[(0,i._)("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:e.elementInfo.path,fill:e.elementInfo.gradient?`url(#base-gradient-${e.elementInfo.id})`:e.elementInfo.fill,stroke:(0,s.SU)(n),"stroke-width":(0,s.SU)(a),"stroke-dasharray":(0,s.SU)(o)},null,8,od)],8,nd)],8,ld)),(0,i._)("div",{class:(0,oe.C_)(["shape-text",v.value.align])},[(0,i._)("div",{class:"ProseMirror-static",innerHTML:v.value.content},null,8,id)],2)],4)],4)],4))}});const rd=(0,Vl.Z)(sd,[["__scopeId","data-v-b13f8fa8"]]);var ud=rd;const cd=["width","height"],dd=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"];var pd=(0,i.aZ)({__name:"BaseLineElement",props:{elementInfo:{}},setup(e){const t=e,l=(0,i.Fl)((()=>t.elementInfo.shadow)),{shadowStyle:a}=Xn(l),n=(0,i.Fl)((()=>{const e=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return e<24?24:e})),o=(0,i.Fl)((()=>{const e=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return e<24?24:e})),r=(0,i.Fl)((()=>{if("dashed"!==t.elementInfo.style)return"0 0";const e=t.elementInfo.width;return e<=8?`${5*e} ${2.5*e}`:`${5*e} ${1.5*e}`})),u=(0,i.Fl)((()=>Ce(t.elementInfo)));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"base-element-line",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"})},[(0,i._)("div",{class:"element-content",style:(0,oe.j5)({filter:(0,s.SU)(a)?`drop-shadow(${(0,s.SU)(a)})`:""})},[((0,i.wg)(),(0,i.iD)("svg",{overflow:"visible",width:n.value,height:o.value},[(0,i._)("defs",null,[e.elementInfo.points[0]?((0,i.wg)(),(0,i.j4)(_s,{key:0,id:e.elementInfo.id,position:"start",type:e.elementInfo.points[0],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):(0,i.kq)("",!0),e.elementInfo.points[1]?((0,i.wg)(),(0,i.j4)(_s,{key:1,id:e.elementInfo.id,position:"end",type:e.elementInfo.points[1],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):(0,i.kq)("",!0)]),(0,i._)("path",{d:u.value,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.width,"stroke-dasharray":r.value,fill:"none","marker-start":e.elementInfo.points[0]?`url(#${e.elementInfo.id}-${e.elementInfo.points[0]}-start)`:"","marker-end":e.elementInfo.points[1]?`url(#${e.elementInfo.id}-${e.elementInfo.points[1]}-end)`:""},null,8,dd)],8,cd))],4)],4))}});const vd=(0,Vl.Z)(pd,[["__scopeId","data-v-443e2f82"]]);var md=vd,hd=(0,i.aZ)({__name:"BaseChartElement",props:{elementInfo:{}},setup(e){const t=(0,i.f3)(Tn)||(0,s.iH)(1),l=(0,i.Fl)((()=>t.value<1)),a=(0,i.Fl)((()=>l.value?1/t.value:1));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"base-element-chart",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i._)("div",{class:"element-content",style:(0,oe.j5)({backgroundColor:e.elementInfo.fill})},[(0,i.Wm)(Po,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),(0,i.Wm)(Ds,{width:e.elementInfo.width*a.value,height:e.elementInfo.height*a.value,type:e.elementInfo.chartType,data:e.elementInfo.data,options:e.elementInfo.options,themeColor:e.elementInfo.themeColor,gridColor:e.elementInfo.gridColor,legends:e.elementInfo.data.legends,legend:e.elementInfo.legend||"",style:(0,oe.j5)({zoom:1/a.value})},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend","style"])],4)],4)],4))}});const fd=(0,Vl.Z)(hd,[["__scopeId","data-v-7c03d68d"]]);var gd=fd;const yd=["width"],wd=["rowspan","colspan"],xd=["innerHTML"];var kd=(0,i.aZ)({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(e){const t=e,l=(0,s.iH)([]),a=(0,i.Fl)((()=>l.value.reduce(((e,t)=>e+t))));(0,i.YP)([()=>t.colWidths,()=>t.width],(()=>{l.value=t.colWidths.map((e=>e*t.width))}),{immediate:!0});const o=(0,i.Fl)((()=>t.data)),{hideCells:r}=Os(o),u=(0,i.Fl)((()=>t.theme)),{subThemeColor:c}=Rs(u);return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"static-table",style:(0,oe.j5)({width:a.value+"px"})},[(0,i._)("table",{class:(0,oe.C_)({theme:u.value,"row-header":u.value?.rowHeader,"row-footer":u.value?.rowFooter,"col-header":u.value?.colHeader,"col-footer":u.value?.colFooter}),style:(0,oe.j5)(`--themeColor: ${u.value?.color}; --subThemeColor1: ${(0,s.SU)(c)[0]}; --subThemeColor2: ${(0,s.SU)(c)[1]}`)},[(0,i._)("colgroup",null,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(l.value,((e,t)=>((0,i.wg)(),(0,i.iD)("col",{span:"1",key:t,width:e},null,8,yd)))),128))]),(0,i._)("tbody",null,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.data,((t,l)=>((0,i.wg)(),(0,i.iD)("tr",{key:l,style:(0,oe.j5)({height:e.cellMinHeight+"px"})},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t,((t,a)=>(0,i.wy)(((0,i.wg)(),(0,i.iD)("td",{class:"cell",style:(0,oe.j5)({borderStyle:e.outline.style,borderColor:e.outline.color,borderWidth:e.outline.width+"px",...(0,s.SU)($s)(t.style)}),key:t.id,rowspan:t.rowspan,colspan:t.colspan},[(0,i._)("div",{class:"cell-text",style:(0,oe.j5)({minHeight:e.cellMinHeight-4+"px"}),innerHTML:(0,s.SU)(Zs)(t.text)},null,12,xd)],12,wd)),[[n.F8,!(0,s.SU)(r).includes(`${l}_${a}`)]]))),128))],4)))),128))])],6)],4))}});const bd=(0,Vl.Z)(kd,[["__scopeId","data-v-5d949d4d"]]);var _d=bd;const Id={class:"element-content"};var Sd=(0,i.aZ)({__name:"BaseTableElement",props:{elementInfo:{}},setup(e){return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"base-element-table",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i._)("div",Id,[(0,i.Wm)(_d,{data:e.elementInfo.data,width:e.elementInfo.width,cellMinHeight:e.elementInfo.cellMinHeight,colWidths:e.elementInfo.colWidths,outline:e.elementInfo.outline,theme:e.elementInfo.theme},null,8,["data","width","cellMinHeight","colWidths","outline","theme"])])],4)],4))}});const Cd=(0,Vl.Z)(Sd,[["__scopeId","data-v-3eff7eba"]]);var Ld=Cd;const Td={class:"element-content"},Ed=["width","height","stroke","stroke-width"],Md=["transform"],Ud=["d"];var Wd=(0,i.aZ)({__name:"BaseLatexElement",props:{elementInfo:{}},setup(e){return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"base-element-latex",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i._)("div",Td,[((0,i.wg)(),(0,i.iD)("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[(0,i._)("g",{transform:`scale(${e.elementInfo.width/e.elementInfo.viewBox[0]}, ${e.elementInfo.height/e.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[(0,i._)("path",{d:e.elementInfo.path},null,8,Ud)],8,Md)],8,Ed))])],4)],4))}});const Dd=(0,Vl.Z)(Wd,[["__scopeId","data-v-1587280d"]]);var Hd=Dd,Fd=(0,i.aZ)({__name:"BaseVideoElement",props:{elementInfo:{}},setup(e){return(e,t)=>{const l=(0,i.up)("IconPlayOne");return(0,i.wg)(),(0,i.iD)("div",{class:"base-element-video",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i._)("div",{class:"element-content",style:(0,oe.j5)({backgroundImage:e.elementInfo.poster?`url(${e.elementInfo.poster})`:""})},[(0,i.Wm)(l,{class:"icon"})],4)],4)],4)}}});const Ad=(0,Vl.Z)(Fd,[["__scopeId","data-v-09436dde"]]);var $d=Ad;const Zd={class:"element-content"};var Od=(0,i.aZ)({__name:"BaseAudioElement",props:{elementInfo:{}},setup(e){const t=e,l=(0,i.Fl)((()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px"));return(e,t)=>{const a=(0,i.up)("IconVolumeNotice");return(0,i.wg)(),(0,i.iD)("div",{class:"base-element-audio",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i._)("div",Zd,[(0,i.Wm)(a,{class:"audio-icon",style:(0,oe.j5)({fontSize:l.value,color:e.elementInfo.color})},null,8,["style"])])],4)],4)}}});const Rd=(0,Vl.Z)(Od,[["__scopeId","data-v-5da834d7"]]);var zd=Rd,Pd=(0,i.aZ)({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(e){const t=e,l=(0,i.Fl)((()=>{const e={[sa.IMAGE]:Gc,[sa.TEXT]:td,[sa.SHAPE]:ud,[sa.LINE]:md,[sa.CHART]:gd,[sa.TABLE]:Ld,[sa.LATEX]:Hd,[sa.VIDEO]:$d,[sa.AUDIO]:zd};return e[t.elementInfo.type]||null}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["base-element",`base-element-${e.elementInfo.id}`]),style:(0,oe.j5)({zIndex:e.elementIndex})},[((0,i.wg)(),(0,i.j4)((0,i.LL)(l.value),{elementInfo:e.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}});const Bd=Pd;var Nd=Bd;const jd={key:1,class:"placeholder"};var Yd=(0,i.aZ)({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(e){const t=e,{viewportRatio:l}=(0,o.Jk)($()),a=(0,i.Fl)((()=>t.slide.background)),{backgroundStyle:n}=yu(a),r=(0,i.Fl)((()=>t.size/oa));return(0,i.JJ)(Tn,r),(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"thumbnail-slide",style:(0,oe.j5)({width:e.size+"px",height:e.size*(0,s.SU)(l)+"px"})},[e.visible?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"elements",style:(0,oe.j5)({width:(0,s.SU)(oa)+"px",height:(0,s.SU)(oa)*(0,s.SU)(l)+"px",transform:`scale(${r.value})`})},[(0,i._)("div",{class:"background",style:(0,oe.j5)((0,s.SU)(n))},null,4),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.slide.elements,((e,t)=>((0,i.wg)(),(0,i.j4)(Nd,{key:e.id,elementInfo:e,elementIndex:t+1},null,8,["elementInfo","elementIndex"])))),128))],4)):((0,i.wg)(),(0,i.iD)("div",jd,"加载中 ..."))],4))}});const Vd=(0,Vl.Z)(Yd,[["__scopeId","data-v-43dcaa52"]]);var Jd=Vd;const qd=["onClick"];var Xd=(0,i.aZ)({__name:"Tabs",props:{value:{},tabs:{},card:{type:Boolean,default:!1},tabsStyle:{},tabStyle:{},spaceAround:{type:Boolean,default:!1},spaceBetween:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const l=t;return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["tabs",{card:e.card,"space-around":e.spaceAround,"space-between":e.spaceBetween}]),style:(0,oe.j5)(e.tabsStyle||{})},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.tabs,(t=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["tab",{active:t.key===e.value}]),key:t.key,style:(0,oe.j5)({...e.tabStyle||{},"--color":t.color}),onClick:e=>l("update:value",t.key)},(0,oe.zw)(t.label),15,qd)))),128))],6))}});const Gd=(0,Vl.Z)(Xd,[["__scopeId","data-v-5e3d7626"]]);var Kd=Gd,Qd=(0,i.aZ)({__name:"Button",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"default"},size:{default:"normal"},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,n=()=>{l.disabled||a("click")};return(e,t)=>((0,i.wg)(),(0,i.iD)("button",{class:(0,oe.C_)(["button",{disabled:e.disabled,checked:!e.disabled&&e.checked,default:!e.disabled&&"default"===e.type,primary:!e.disabled&&"primary"===e.type,checkbox:!e.disabled&&"checkbox"===e.type,radio:!e.disabled&&"radio"===e.type,small:"small"===e.size,first:e.first,last:e.last}]),onClick:t[0]||(t[0]=e=>n())},[(0,i.WI)(e.$slots,"default")],2))}});const ep=(0,Vl.Z)(Qd,[["__scopeId","data-v-52c90330"]]);var tp=ep;const lp={key:0,class:"select-wrap"},ap={class:"selector"},np={class:"icon"},op=["onClick"],ip={class:"selector"},sp={class:"icon"};var rp=(0,i.aZ)({__name:"Select",props:{value:{},options:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const l=e,a=(0,i.Fl)((()=>l.options.find((e=>e.value===l.value))?.label||l.value)),n=t,o=(0,s.iH)(!1),r=(0,s.iH)(),u=(0,s.iH)(0),c=()=>{r.value&&(u.value=r.value.clientWidth)},d=new ResizeObserver(c);(0,i.bv)((()=>{r.value&&d.observe(r.value)})),(0,i.Ah)((()=>{r.value&&d.unobserve(r.value)}));const p=e=>{e.disabled||(n("update:value",e.value),o.value=!1)};return(e,t)=>{const l=(0,i.up)("IconDown");return e.disabled?((0,i.wg)(),(0,i.iD)("div",lp,[(0,i._)("div",{class:"select disabled",ref_key:"selectRef",ref:r},[(0,i._)("div",ap,(0,oe.zw)(e.value),1),(0,i._)("div",np,[(0,i.WI)(e.$slots,"icon",{},(()=>[(0,i.Wm)(l,{size:14})]))])],512)])):((0,i.wg)(),(0,i.j4)(dn,{key:1,class:"select-wrap",trigger:"click",value:o.value,"onUpdate:value":t[0]||(t[0]=e=>o.value=e),placement:"bottom",contentStyle:{padding:0,boxShadow:"0 6px 16px 0 rgba(0, 0, 0, 0.08)"}},{content:(0,i.w5)((()=>[(0,i._)("div",{class:"options",style:(0,oe.j5)({width:u.value+2+"px"})},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.options,(t=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["option",{disabled:t.disabled,selected:t.value===e.value}]),key:t.value,onClick:e=>p(t)},(0,oe.zw)(t.label),11,op)))),128))],4)])),default:(0,i.w5)((()=>[(0,i._)("div",{class:"select",ref_key:"selectRef",ref:r},[(0,i._)("div",ip,(0,oe.zw)(a.value),1),(0,i._)("div",sp,[(0,i.WI)(e.$slots,"icon",{},(()=>[(0,i.Wm)(l,{size:14})]))])],512)])),_:3},8,["value","contentStyle"]))}}});const up=(0,Vl.Z)(rp,[["__scopeId","data-v-5bf3b141"]]);var cp=up;const dp=e=>((0,i.dD)("data-v-cc39ee16"),e=e(),(0,i.Cn)(),e),pp={class:"link-dialog"},vp={key:2,class:"preview"},mp=dp((()=>(0,i._)("div",null,"预览:",-1))),hp={class:"btns"};var fp=(0,i.aZ)({__name:"LinkDialog",emits:["close"],setup(e,{emit:t}){const l=t,{handleElement:a}=(0,o.Jk)(R()),{slides:n,currentSlide:r}=(0,o.Jk)($()),u=(0,s.iH)("web"),c=(0,s.iH)(""),d=(0,s.iH)(""),p=(0,i.Fl)((()=>n.value.map(((e,t)=>({label:`幻灯片 ${t+1}`,value:e.id,disabled:r.value.id===e.id})))));d.value=n.value.find((e=>e.id!==r.value.id))?.id||"";const v=(0,i.Fl)((()=>d.value&&n.value.find((e=>e.id===d.value))||null)),m=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],{setLink:h}=Fc();(0,i.bv)((()=>{a.value?.link&&("web"===a.value.link.type?c.value=a.value.link.target:"slide"===a.value.link.type&&(d.value=a.value.link.target),u.value=a.value.link.type)}));const f=()=>{const e={type:u.value,target:"web"===u.value?c.value:d.value};if(a.value){const t=h(a.value,e);t?l("close"):c.value=""}};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",pp,[(0,i.Wm)(Kd,{tabs:m,value:u.value,"onUpdate:value":t[0]||(t[0]=e=>u.value=e),tabsStyle:{marginBottom:"20px"}},null,8,["value"]),"web"===u.value?((0,i.wg)(),(0,i.j4)(sn,{key:0,class:"input",value:c.value,"onUpdate:value":t[1]||(t[1]=e=>c.value=e),placeholder:"请输入网页链接地址"},null,8,["value"])):(0,i.kq)("",!0),"slide"===u.value?((0,i.wg)(),(0,i.j4)(cp,{key:1,class:"input",value:d.value,"onUpdate:value":t[2]||(t[2]=e=>d.value=e),options:p.value},null,8,["value","options"])):(0,i.kq)("",!0),"slide"===u.value&&v.value?((0,i.wg)(),(0,i.iD)("div",vp,[mp,(0,i.Wm)(Jd,{class:"thumbnail",slide:v.value,size:500},null,8,["slide"])])):(0,i.kq)("",!0),(0,i._)("div",hp,[(0,i.Wm)(tp,{onClick:t[3]||(t[3]=e=>l("close")),style:{"margin-right":"10px"}},{default:(0,i.w5)((()=>[(0,i.Uk)("取消")])),_:1}),(0,i.Wm)(tp,{type:"primary",onClick:t[4]||(t[4]=e=>f())},{default:(0,i.w5)((()=>[(0,i.Uk)("确认")])),_:1})])]))}});const gp=(0,Vl.Z)(fp,[["__scopeId","data-v-cc39ee16"]]);var yp=gp,wp=(0,i.aZ)({__name:"Modal",props:{visible:{type:Boolean},width:{default:480},closeButton:{type:Boolean,default:!1},closeOnClickMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},contentStyle:{}},emits:["update:visible","closed"],setup(e,{emit:t}){const{IconClose:l}=Zl,a=e,o=(0,s.iH)(),r=t,u=(0,s.iH)(!1),c=(0,i.Fl)((()=>({width:a.width+"px",...a.contentStyle||{}})));(0,i.YP)((()=>a.visible),(()=>{a.visible&&(0,i.Y3)((()=>o.value.focus()))}));const d=()=>{r("update:visible",!1),r("closed")},p=()=>{a.visible&&a.closeOnEsc&&d()},v=()=>{a.closeOnClickMask&&d()};return(e,t)=>((0,i.wg)(),(0,i.j4)(i.lR,{to:"body"},[(0,i.Wm)(n.uT,{name:"modal-fade"},{default:(0,i.w5)((()=>[(0,i.wy)((0,i._)("div",{class:"modal",ref_key:"modalRef",ref:o,tabindex:"-1",onKeyup:t[4]||(t[4]=(0,n.D2)((e=>p()),["esc"]))},[(0,i._)("div",{class:"mask",onClick:t[0]||(t[0]=e=>v())}),(0,i.Wm)(n.uT,{name:"modal-zoom",onAfterLeave:t[2]||(t[2]=e=>u.value=!1),onBeforeEnter:t[3]||(t[3]=e=>u.value=!0)},{default:(0,i.w5)((()=>[(0,i.wy)((0,i._)("div",{class:"modal-content",style:(0,oe.j5)(c.value)},[e.closeButton?((0,i.wg)(),(0,i.iD)("span",{key:0,class:"close-btn",onClick:t[1]||(t[1]=e=>d())},[(0,i.Wm)((0,s.SU)(l))])):(0,i.kq)("",!0),u.value?(0,i.WI)(e.$slots,"default",{key:1}):(0,i.kq)("",!0)],4),[[n.F8,e.visible]])])),_:3})],544),[[n.F8,e.visible]])])),_:3})]))}});const xp=(0,Vl.Z)(wp,[["__scopeId","data-v-fea8edcc"]]);var kp=xp;const bp={class:"operates"},_p={key:2,class:"drag-mask"};var Ip=(0,i.aZ)({__name:"index",setup(e){const t=R(),{activeElementIdList:l,activeGroupElementId:a,handleElementId:r,hiddenElementIdList:u,editorAreaFocus:c,gridLineSize:d,showRuler:p,creatingElement:v,creatingCustomShape:m,canvasScale:h,textFormatPainter:f}=(0,o.Jk)(t),{currentSlide:g}=(0,o.Jk)($()),{ctrlKeyState:y,spaceKeyState:w}=(0,o.Jk)(q()),x=(0,s.iH)(),k=(0,s.iH)([]),b=(0,s.iH)(!1),_=()=>b.value=!0;(0,i.YP)(r,(()=>{t.setActiveGroupElementId("")}));const I=(0,s.iH)([]),S=()=>{I.value=g.value?JSON.parse(JSON.stringify(g.value.elements)):[]};(0,i.m0)(S);const C=(0,s.iH)(),{dragViewport:L,viewportStyles:T}=Wn(C);Hn(C);const{mouseSelection:E,mouseSelectionVisible:M,mouseSelectionQuadrant:U,updateMouseSelection:W}=Dn(I,x),{dragElement:H}=jn(I,k,h),{dragLineElement:F}=Yn(I),{selectElement:A}=Nn(I,H),{scaleElement:Z,scaleMultiElement:O}=Bn(I,k,h),{rotateElement:z}=An(I,x,h),{moveShapeKeypoint:P}=Vn(I,h),{selectAllElement:B}=xa(),{deleteAllElements:N}=ga(),{pasteElement:j}=wa(),{enterScreeningFromStart:Y}=Ca(),{updateSlideIndex:V}=ha(),{createTextElement:J,createShapeElement:X}=pa();(0,i.bv)((()=>{l.value.length&&(0,i.Y3)((()=>t.setActiveElementIdList([])))}));const G=e=>{l.value.length&&t.setActiveElementIdList([]),w.value?L(e):W(e),c.value||t.setEditorareaFocus(!0),f.value&&t.setTextFormatPainter(null),Un()},K=e=>{if(l.value.length||v.value||m.value)return;if(!x.value)return;const t=x.value.getBoundingClientRect(),a=(e.pageX-t.x)/h.value,n=(e.pageY-t.y)/h.value;J({left:a,top:n,width:200/h.value,height:0})};(0,i.Ah)((()=>{f.value&&t.setTextFormatPainter(null)}));const Q=()=>{c.value&&t.setEditorareaFocus(!1)},{scaleCanvas:ee}=La(),te=(0,D.throttle)(ee,100,{leading:!0,trailing:!1}),le=(0,D.throttle)(V,300,{leading:!0,trailing:!1}),ae=e=>{e.preventDefault(),y.value?e.deltaY>0?te("-"):e.deltaY<0&&te("+"):e.deltaY>0?le(ne.DOWN):e.deltaY<0&&le(ne.UP)},ie=()=>{t.setRulerState(!p.value)},{insertElementFromCreateSelection:se,formatCreateSelection:re}=Jn(x),ue=e=>{const{start:l,end:a,path:n,viewBox:o}=e,i=re({start:l,end:a});if(i){const t={};e.fill&&(t.fill=e.fill),e.outline&&(t.outline=e.outline),X(i,{path:n,viewBox:o},t)}t.setCreatingCustomShapeState(!1)},ce=()=>[{text:"粘贴",subText:"Ctrl + V",handler:j},{text:"全选",subText:"Ctrl + A",handler:B},{text:"标尺",subText:p.value?"√":"",handler:ie},{text:"网格线",handler:()=>t.setGridLineSize(d.value?0:50),children:[{text:"无",subText:0===d.value?"√":"",handler:()=>t.setGridLineSize(0)},{text:"小",subText:25===d.value?"√":"",handler:()=>t.setGridLineSize(25)},{text:"中",subText:50===d.value?"√":"",handler:()=>t.setGridLineSize(50)},{text:"大",subText:100===d.value?"√":"",handler:()=>t.setGridLineSize(100)}]},{text:"重置当前页",handler:N},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:Y}];return(0,i.JJ)(Tn,h),(e,t)=>{const o=(0,i.Q2)("contextmenu"),c=(0,i.Q2)("click-outside");return(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"canvas",ref_key:"canvasRef",ref:C,onWheel:t[4]||(t[4]=e=>ae(e)),onMousedown:t[5]||(t[5]=e=>G(e)),onDblclick:t[6]||(t[6]=e=>K(e))},[(0,s.SU)(v)?((0,i.wg)(),(0,i.j4)(Du,{key:0,onCreated:t[0]||(t[0]=e=>(0,s.SU)(se)(e))})):(0,i.kq)("",!0),(0,s.SU)(m)?((0,i.wg)(),(0,i.j4)(Zu,{key:1,onCreated:t[1]||(t[1]=e=>ue(e))})):(0,i.kq)("",!0),(0,i._)("div",{class:"viewport-wrapper",style:(0,oe.j5)({width:(0,s.SU)(T).width*(0,s.SU)(h)+"px",height:(0,s.SU)(T).height*(0,s.SU)(h)+"px",left:(0,s.SU)(T).left+"px",top:(0,s.SU)(T).top+"px"})},[(0,i._)("div",bp,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(k.value,((e,t)=>((0,i.wg)(),(0,i.j4)(Iu,{key:t,type:e.type,axis:e.axis,length:e.length,canvasScale:(0,s.SU)(h)},null,8,["type","axis","length","canvasScale"])))),128)),(0,s.SU)(l).length>1?((0,i.wg)(),(0,i.j4)(Ju,{key:0,elementList:I.value,scaleMultiElement:(0,s.SU)(O)},null,8,["elementList","scaleMultiElement"])):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(I.value,(e=>(0,i.wy)(((0,i.wg)(),(0,i.j4)(Vc,{key:e.id,elementInfo:e,isSelected:(0,s.SU)(l).includes(e.id),isActive:(0,s.SU)(r)===e.id,isActiveGroupElement:(0,s.SU)(a)===e.id,isMultiSelect:(0,s.SU)(l).length>1,rotateElement:(0,s.SU)(z),scaleElement:(0,s.SU)(Z),openLinkDialog:_,dragLineElement:(0,s.SU)(F),moveShapeKeypoint:(0,s.SU)(P)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])),[[n.F8,!(0,s.SU)(u).includes(e.id)]]))),128)),(0,i.Wm)(ku)]),(0,i._)("div",{class:"viewport",ref_key:"viewportRef",ref:x,style:(0,oe.j5)({transform:`scale(${(0,s.SU)(h)})`})},[(0,s.SU)(M)?((0,i.wg)(),(0,i.j4)(pu,{key:0,top:(0,s.SU)(E).top,left:(0,s.SU)(E).left,width:(0,s.SU)(E).width,height:(0,s.SU)(E).height,quadrant:(0,s.SU)(U)},null,8,["top","left","width","height","quadrant"])):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(I.value,((e,t)=>(0,i.wy)(((0,i.wg)(),(0,i.j4)(uu,{key:e.id,elementInfo:e,elementIndex:t+1,isMultiSelect:(0,s.SU)(l).length>1,selectElement:(0,s.SU)(A),openLinkDialog:_},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])),[[n.F8,!(0,s.SU)(u).includes(e.id)]]))),128))],4)],4),(0,s.SU)(w)?((0,i.wg)(),(0,i.iD)("div",_p)):(0,i.kq)("",!0),(0,s.SU)(p)?((0,i.wg)(),(0,i.j4)(Tu,{key:3,viewportStyles:(0,s.SU)(T)},null,8,["viewportStyles"])):(0,i.kq)("",!0),(0,i.Wm)(kp,{visible:b.value,"onUpdate:visible":t[3]||(t[3]=e=>b.value=e),width:540},{default:(0,i.w5)((()=>[(0,i.Wm)(yp,{onClose:t[2]||(t[2]=e=>b.value=!1)})])),_:1},8,["visible"])],32)),[[o,ce],[c,Q]])}}});const Sp=(0,Vl.Z)(Ip,[["__scopeId","data-v-5294a048"]]);var Cp=Sp;const Lp={class:"shape-item-thumbnail"},Tp={class:"shape-content"},Ep={overflow:"visible",width:"18",height:"18"},Mp=["transform"],Up=["fill","stroke","d"];var Wp=(0,i.aZ)({__name:"ShapeItemThumbnail",props:{shape:{}},setup(e){return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Lp,[(0,i._)("div",Tp,[((0,i.wg)(),(0,i.iD)("svg",Ep,[(0,i._)("g",{transform:`scale(${18/e.shape.viewBox[0]}, ${18/e.shape.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[(0,i._)("path",{class:(0,oe.C_)(["shape-path",{outlined:e.shape.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:e.shape.outlined?"#999":"transparent",stroke:e.shape.outlined?"transparent":"#999","stroke-width":"2",d:e.shape.path},null,10,Up)],8,Mp)]))])]))}});const Dp=(0,Vl.Z)(Wp,[["__scopeId","data-v-8603ad34"]]);var Hp=Dp;const Fp={class:"shape-pool"},Ap={class:"category-name"},$p={class:"shape-list"};var Zp=(0,i.aZ)({__name:"ShapePool",emits:["select"],setup(e,{emit:t}){const l=t,a=e=>{l("select",e)};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Fp,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(ua),(e=>((0,i.wg)(),(0,i.iD)("div",{class:"category",key:e.type},[(0,i._)("div",Ap,(0,oe.zw)(e.type),1),(0,i._)("div",$p,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.children,((e,t)=>((0,i.wg)(),(0,i.j4)(Hp,{class:"shape-item",key:t,shape:e,onClick:t=>a(e)},null,8,["shape","onClick"])))),128))])])))),128))]))}});const Op=(0,Vl.Z)(Zp,[["__scopeId","data-v-8b994b42"]]);var Rp=Op;const zp=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],Pp={class:"line-pool"},Bp={class:"category-name"},Np={class:"line-list"},jp=["onClick"],Yp={overflow:"visible",width:"20",height:"20"},Vp=["d","stroke-dasharray","marker-start","marker-end"];var Jp=(0,i.aZ)({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const l=t,a=e=>{l("select",e)};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Pp,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(zp),((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"category",key:e.type},[(0,i._)("div",Bp,(0,oe.zw)(e.type),1),(0,i._)("div",Np,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.children,((e,l)=>((0,i.wg)(),(0,i.iD)("div",{class:"line-item",key:l},[(0,i._)("div",{class:"line-content",onClick:t=>a(e)},[((0,i.wg)(),(0,i.iD)("svg",Yp,[(0,i._)("defs",null,[e.points[0]?((0,i.wg)(),(0,i.j4)(_s,{key:0,class:"line-marker",id:`preset-line-${t}-${l}`,position:"start",type:e.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):(0,i.kq)("",!0),e.points[1]?((0,i.wg)(),(0,i.j4)(_s,{key:1,class:"line-marker",id:`preset-line-${t}-${l}`,position:"end",type:e.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):(0,i.kq)("",!0)]),(0,i._)("path",{class:"line-path",d:e.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":"solid"===e.style?"0, 0":"4, 1","marker-start":e.points[0]?`url(#preset-line-${t}-${l}-${e.points[0]}-start)`:"","marker-end":e.points[1]?`url(#preset-line-${t}-${l}-${e.points[1]}-end)`:""},null,8,Vp)]))],8,jp)])))),128))])])))),128))]))}});const qp=(0,Vl.Z)(Jp,[["__scopeId","data-v-554824b6"]]);var Xp=qp;const Gp={class:"chart-pool"},Kp=["onClick"];var Qp=(0,i.aZ)({__name:"ChartPool",emits:["select"],setup(e,{emit:t}){const l=t,a=["bar","horizontalBar","line","area","scatter","pie","ring"],n=e=>{l("select",e)};return(e,t)=>{const l=(0,i.up)("IconChartLine"),o=(0,i.up)("IconChartHistogram"),s=(0,i.up)("IconChartPie"),r=(0,i.up)("IconChartHistogramOne"),u=(0,i.up)("IconChartLineArea"),c=(0,i.up)("IconChartRing"),d=(0,i.up)("IconChartScatter");return(0,i.wg)(),(0,i.iD)("ul",Gp,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(a,((e,t)=>(0,i._)("li",{class:"chart-item",key:t},[(0,i._)("div",{class:"chart-content",onClick:t=>n(e)},["line"===e?((0,i.wg)(),(0,i.j4)(l,{key:0,size:"24"})):"bar"===e?((0,i.wg)(),(0,i.j4)(o,{key:1,size:"24"})):"pie"===e?((0,i.wg)(),(0,i.j4)(s,{key:2,size:"24"})):"horizontalBar"===e?((0,i.wg)(),(0,i.j4)(r,{key:3,size:"24"})):"area"===e?((0,i.wg)(),(0,i.j4)(u,{key:4,size:"24"})):"ring"===e?((0,i.wg)(),(0,i.j4)(c,{key:5,size:"24"})):"scatter"===e?((0,i.wg)(),(0,i.j4)(d,{key:6,size:"24"})):(0,i.kq)("",!0)],8,Kp)]))),64))])}}});const ev=(0,Vl.Z)(Qp,[["__scopeId","data-v-398f5699"]]);var tv=ev;const lv=e=>((0,i.dD)("data-v-268948c2"),e=e(),(0,i.Cn)(),e),av={class:"prefix"},nv={class:"input-wrap"},ov=["disabled","placeholder"],iv={class:"handlers"},sv=lv((()=>(0,i._)("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[(0,i._)("path",{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"})],-1))),rv=[sv],uv=lv((()=>(0,i._)("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"64 64 896 896"},[(0,i._)("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})],-1))),cv=[uv],dv={class:"suffix"};var pv=(0,i.aZ)({__name:"NumberInput",props:{value:{},disabled:{type:Boolean,default:!1},placeholder:{default:""},min:{default:0},max:{default:1/0},step:{default:1}},emits:["update:value","input","change","blur","focus","enter"],setup(e,{emit:t}){const l=e,a=t,o=(0,s.iH)(0),r=(0,s.iH)(!1);(0,i.YP)((()=>l.value),(()=>{l.value!==o.value&&(o.value=l.value)}),{immediate:!0}),(0,i.YP)(o,(()=>{let e=+o.value;isNaN(e)?e=l.min:e>l.max?e=l.max:e{r.value=!1,a("blur",e)},c=e=>{r.value=!0,a("focus",e)};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["number-input",{disabled:e.disabled,focused:r.value}])},[(0,i._)("span",av,[(0,i.WI)(e.$slots,"prefix")]),(0,i._)("div",nv,[(0,i.wy)((0,i._)("input",{type:"text",disabled:e.disabled,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),placeholder:e.placeholder,onInput:t[1]||(t[1]=e=>a("input",e)),onFocus:t[2]||(t[2]=e=>c(e)),onBlur:t[3]||(t[3]=e=>u(e)),onChange:t[4]||(t[4]=e=>a("change",e)),onKeydown:t[5]||(t[5]=(0,n.D2)((e=>a("enter",e)),["enter"]))},null,40,ov),[[n.nr,o.value]]),(0,i._)("div",iv,[(0,i._)("span",{class:"handler",onClick:t[6]||(t[6]=t=>o.value+=e.step)},rv),(0,i._)("span",{class:"handler",onClick:t[7]||(t[7]=t=>o.value-=e.step)},cv)])]),(0,i._)("span",dv,[(0,i.WI)(e.$slots,"suffix")])],2))}});const vv=(0,Vl.Z)(pv,[["__scopeId","data-v-268948c2"]]);var mv=vv;const hv=e=>((0,i.dD)("data-v-372c6730"),e=e(),(0,i.Cn)(),e),fv={class:"table-generator"},gv={class:"title"},yv={class:"lef"},wv=["onMouseenter"],xv={key:1,class:"custom"},kv={class:"row"},bv=hv((()=>(0,i._)("div",{class:"label",style:{width:"25%"}},"行数:",-1))),_v={class:"row"},Iv=hv((()=>(0,i._)("div",{class:"label",style:{width:"25%"}},"列数:",-1))),Sv={class:"btns"};var Cv=(0,i.aZ)({__name:"TableGenerator",emits:["insert","close"],setup(e,{emit:t}){const l=t,a=(0,s.iH)([]),n=(0,s.iH)(3),o=(0,s.iH)(3),r=(0,s.iH)(!1),u=()=>{if(!a.value.length)return;const[e,t]=a.value;l("insert",{row:e,col:t})},c=()=>n.value<1||n.value>20||o.value<1||o.value>20?ta.warning("行数/列数必须在0~20之间!"):(l("insert",{row:n.value,col:o.value}),void(r.value=!1)),d=()=>{l("close"),r.value=!1};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",fv,[(0,i._)("div",gv,[(0,i._)("div",yv,"表格 "+(0,oe.zw)(a.value.length?`${a.value[0]} x ${a.value[1]}`:""),1),(0,i._)("div",{class:"right",onClick:t[0]||(t[0]=e=>r.value=!r.value)},(0,oe.zw)(r.value?"返回":"自定义"),1)]),r.value?((0,i.wg)(),(0,i.iD)("div",xv,[(0,i._)("div",kv,[bv,(0,i.Wm)(mv,{min:1,max:20,value:n.value,"onUpdate:value":t[3]||(t[3]=e=>n.value=e),style:{width:"75%"}},null,8,["value"])]),(0,i._)("div",_v,[Iv,(0,i.Wm)(mv,{min:1,max:20,value:o.value,"onUpdate:value":t[4]||(t[4]=e=>o.value=e),style:{width:"75%"}},null,8,["value"])]),(0,i._)("div",Sv,[(0,i.Wm)(tp,{class:"btn",onClick:t[5]||(t[5]=e=>d())},{default:(0,i.w5)((()=>[(0,i.Uk)("取消")])),_:1}),(0,i.Wm)(tp,{class:"btn",type:"primary",onClick:t[6]||(t[6]=e=>c())},{default:(0,i.w5)((()=>[(0,i.Uk)("确认")])),_:1})])])):((0,i.wg)(),(0,i.iD)("table",{key:0,onMouseleave:t[1]||(t[1]=e=>a.value=[]),onClick:t[2]||(t[2]=e=>u())},[(0,i._)("tbody",null,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(10,(e=>(0,i._)("tr",{key:e},[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(10,(t=>(0,i._)("td",{onMouseenter:l=>a.value=[e,t],key:t},[(0,i._)("div",{class:(0,oe.C_)(["cell",{active:a.value.length&&e<=a.value[0]&&t<=a.value[1]}])},null,2)],40,wv))),64))]))),64))])],32))]))}});const Lv=(0,Vl.Z)(Cv,[["__scopeId","data-v-372c6730"]]);var Tv=Lv;const Ev={class:"media-input"},Mv={class:"btns"},Uv={class:"btns"};var Wv=(0,i.aZ)({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup(e,{emit:t}){const l=t,a=(0,s.iH)("video"),n=(0,s.iH)("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),o=(0,s.iH)("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),r=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],u=()=>{if(!n.value)return ta.error("请先输入正确的视频地址");l("insertVideo",n.value)},c=()=>{if(!o.value)return ta.error("请先输入正确的音频地址");l("insertAudio",o.value)};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Ev,[(0,i.Wm)(Kd,{tabs:r,value:a.value,"onUpdate:value":t[0]||(t[0]=e=>a.value=e),tabsStyle:{marginBottom:"15px"}},null,8,["value"]),"video"===a.value?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Wm)(sn,{value:n.value,"onUpdate:value":t[1]||(t[1]=e=>n.value=e),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),(0,i._)("div",Mv,[(0,i.Wm)(tp,{onClick:t[2]||(t[2]=e=>l("close")),style:{"margin-right":"10px"}},{default:(0,i.w5)((()=>[(0,i.Uk)("取消")])),_:1}),(0,i.Wm)(tp,{type:"primary",onClick:t[3]||(t[3]=e=>u())},{default:(0,i.w5)((()=>[(0,i.Uk)("确认")])),_:1})])],64)):(0,i.kq)("",!0),"audio"===a.value?((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i.Wm)(sn,{value:o.value,"onUpdate:value":t[4]||(t[4]=e=>o.value=e),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),(0,i._)("div",Uv,[(0,i.Wm)(tp,{onClick:t[5]||(t[5]=e=>l("close")),style:{"margin-right":"10px"}},{default:(0,i.w5)((()=>[(0,i.Uk)("取消")])),_:1}),(0,i.Wm)(tp,{type:"primary",onClick:t[6]||(t[6]=e=>c())},{default:(0,i.w5)((()=>[(0,i.Uk)("确认")])),_:1})])],64)):(0,i.kq)("",!0)]))}});const Dv=(0,Vl.Z)(Wv,[["__scopeId","data-v-35a1214c"]]);var Hv=Dv,Fv=l(3576);Fv.kh.SUB_SUP_SCALE=.5;const Av=[{label:"高斯公式",latex:"\\int\\int\\int _ { \\Omega } \\left( \\frac { \\partial {P} } { \\partial {x} } + \\frac { \\partial {Q} } { \\partial {y} } + \\frac { \\partial {R} }{ \\partial {z} } \\right) \\mathrm { d } V = \\oint _ { \\partial \\Omega } ( P \\cos \\alpha + Q \\cos \\beta + R \\cos \\gamma ) \\mathrm{ d} S"},{label:"傅里叶级数",latex:"f(x) = \\frac {a_0} 2 + \\sum_{n = 1}^\\infty {({a_n}\\cos {nx} + {b_n}\\sin {nx})}"},{label:"泰勒展开式",latex:"e ^ { x } = 1 + \\frac { x } { 1 ! } + \\frac { x ^ { 2 } } { 2 ! } + \\frac { x ^ { 3 } } { 3 ! } + ... , \\quad - \\infty < x < \\infty"},{label:"定积分",latex:"\\lim_ { n \\rightarrow + \\infty } \\sum _ { i = 1 } ^ { n } f \\left[ a + \\frac { i } { n } ( b - a ) \\right] \\frac { b - a } { n } = \\int _ { a } ^ { b } f ( x ) dx"},{label:"三角恒等式1",latex:"\\sin \\alpha \\pm \\sin \\beta = 2 \\sin \\frac { 1 } { 2 } ( \\alpha \\pm \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha \\mp \\beta )"},{label:"三角恒等式2",latex:"\\cos \\alpha + \\cos \\beta = 2 \\cos \\frac { 1 } { 2 } ( \\alpha + \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha - \\beta )"},{label:"和的展开式",latex:"( 1 + x ) ^ { n } = 1 + \\frac { n x } { 1 ! } + \\frac { n ( n - 1 ) x ^ { 2 } } { 2 ! } + ..."},{label:"欧拉公式",latex:" e^{ix} = \\cos {x} + i\\sin {x}"},{label:"贝努利方程",latex:"\\frac {dy} {dx} + P(x)y = Q(x) y^n ({n} \\not= {0,1})"},{label:"全微分方程",latex:"du(x,y) = P(x,y)dx + Q(x,y)dy = 0"},{label:"非齐次方程",latex:"y = (\\int Q(x) e^{\\int {P(x)dx}}dx + C)e^{-\\int {P(x)dx}}"},{label:"柯西中值定理",latex:"\\frac{{f(b) - f(a)}}{{F(b) - F(a)}} = \\frac{{f'(\\xi )}}{{F'(\\xi )}}"},{label:"拉格朗日中值定理",latex:"f(b) - f(a) = f'(\\xi )(b - a)"},{label:"导数公式",latex:"(\\arcsin x)' = \\frac{1}{{\\sqrt {1 - x^2} }}"},{label:"三角函数积分",latex:"\\int {tgxdx = - \\ln \\left| {\\cos x} \\right| + C}"},{label:"二次曲面",latex:"\\frac{{{x^2}}}{{{a^2}}} + \\frac{{{y^2}}}{{{b^2}}} - \\frac{{{z^2}}}{{{c^2}}} = 1"},{label:"二阶微分",latex:"\\frac {{d^2}y} {dx^2} + P(x) \\frac {dy} {dx} + Q(x)y = f(x)"},{label:"方向导数",latex:"\\frac{{\\partial f}}{{\\partial l}} = \\frac{{\\partial f}}{{\\partial x}}\\cos \\phi + \\frac{{\\partial f}}{{\\partial y}}\\sin \\phi"}],$v=[{type:"operators",label:"数学",children:[{latex:"\\cdot"},{latex:"\\pm"},{latex:"\\mp"},{latex:"+"},{latex:"-"},{latex:"\\times"},{latex:"\\div"},{latex:"<"},{latex:">"},{latex:"="},{latex:"\\neq\\ne"},{latex:"\\leqq"},{latex:"\\geqq"},{latex:"\\leq"},{latex:"\\geq"},{latex:"\\propto"},{latex:"\\sim"},{latex:"\\equiv"},{latex:"\\dagger"},{latex:"\\ddagger"},{latex:"\\ell"},{latex:"\\#"},{latex:"\\$"},{latex:"\\&"},{latex:"\\%"},{latex:"\\langle\\rangle"},{latex:"()"},{latex:"[]"},{latex:"\\{\\}"},{latex:"||"},{latex:"\\|"},{latex:"\\exists"},{latex:"\\in"},{latex:"\\subset"},{latex:"\\supset"},{latex:"\\cup"},{latex:"\\cap"},{latex:"\\infty"},{latex:"\\partial"},{latex:"\\nabla"},{latex:"\\aleph"},{latex:"\\wp"},{latex:"\\therefore"},{latex:"\\mid"},{latex:"\\sum"},{latex:"\\prod"},{latex:"\\bigoplus"},{latex:"\\bigodot"},{latex:"\\int"},{latex:"\\oint"},{latex:"\\oplus"},{latex:"\\odot"},{latex:"\\perp"},{latex:"\\angle"},{latex:"\\triangle"},{latex:"\\Box"},{latex:"\\rightarrow"},{latex:"\\to"},{latex:"\\leftarrow"},{latex:"\\gets"},{latex:"\\circ"},{latex:"\\bigcirc"},{latex:"\\bullet"},{latex:"\\star"},{latex:"\\diamond"},{latex:"\\ast"},{latex:","},{latex:"."},{latex:";"},{latex:"!"}]},{type:"group",label:"组合",children:[{latex:"\\frac{a}{b}"},{latex:"\\frac{dx}{dx}"},{latex:"\\frac{\\partial a}{\\partial b}"},{latex:"\\sqrt{x}"},{latex:"\\sqrt[n]{x}"},{latex:"x^{n}"},{latex:"x_{n}"},{latex:"x_a^b"},{latex:"\\int_{a}^{b}"},{latex:"\\oint_a^b"},{latex:"\\lim_{a \\rightarrow b}"},{latex:"\\prod_a^b"},{latex:"\\sum_a^b"},{latex:"\\left(\\begin{array}a \\\\ b\\end{array}\\right)"},{latex:"\\begin{bmatrix}a & b \\\\ c & d \\end{bmatrix}"},{latex:"\\begin{cases}a & x = 0 \\\\ b & x > 0\\end{cases}"},{latex:"\\hat{a}"},{latex:"\\breve{a}"},{latex:"\\acute{a}"},{latex:"\\grave{a}"},{latex:"\\tilde{a}"},{latex:"\\bar{a}"},{latex:"\\vec{a}"},{latex:"\\underline{a}"},{latex:"\\overline{a}"},{latex:"\\widehat{ab}"},{latex:"\\overleftarrow{ab}"},{latex:"\\overrightarrow{ab}"}]},{type:"verbatim",label:"函数",children:[{latex:"\\log"},{latex:"\\ln"},{latex:"\\exp"},{latex:"\\mod"},{latex:"\\lim"},{latex:"\\sin"},{latex:"\\cos"},{latex:"\\tan"},{latex:"\\csc"},{latex:"\\sec"},{latex:"\\cot"},{latex:"\\sinh"},{latex:"\\cosh"},{latex:"\\tanh"},{latex:"\\csch"},{latex:"\\sech"},{latex:"\\coth"},{latex:"\\arcsin"},{latex:"\\arccos"},{latex:"\\arctan"},{latex:"\\arccsc"},{latex:"\\arcsec"},{latex:"\\arccot"}]},{type:"greek",label:"希腊字母",children:[{latex:"\\alpha"},{latex:"\\beta"},{latex:"\\gamma"},{latex:"\\delta"},{latex:"\\varepsilon"},{latex:"\\zeta"},{latex:"\\eta"},{latex:"\\vartheta"},{latex:"\\iota"},{latex:"\\kappa"},{latex:"\\lambda"},{latex:"\\mu"},{latex:"\\nu"},{latex:"\\xi"},{latex:"\\omicron"},{latex:"\\pi"},{latex:"\\rho"},{latex:"\\sigma"},{latex:"\\tau"},{latex:"\\upsilon"},{latex:"\\varphi"},{latex:"\\chi"},{latex:"\\psi"},{latex:"\\omega"},{latex:"\\epsilon"},{latex:"\\theta"},{latex:"\\phi"},{latex:"\\varsigma"},{latex:"\\Alpha"},{latex:"\\Beta"},{latex:"\\Gamma"},{latex:"\\Delta"},{latex:"\\Epsilon"},{latex:"\\Zeta"},{latex:"\\Eta"},{latex:"\\Theta"},{latex:"\\Iota"},{latex:"\\Kappa"},{latex:"\\Lambda"},{latex:"\\Mu"},{latex:"\\Nu"},{latex:"\\Xi"},{latex:"\\Omicron"},{latex:"\\Pi"},{latex:"\\Rho"},{latex:"\\Sigma"},{latex:"\\Tau"},{latex:"\\Upsilon"},{latex:"\\Phi"},{latex:"\\Chi"},{latex:"\\Psi"},{latex:"\\Omega"}]}],Zv=["width","height"],Ov=["transform"],Rv=["d"];var zv=(0,i.aZ)({__name:"FormulaContent",props:{latex:{},width:{},height:{}},setup(e){const t=e,l=(0,s.iH)({x:0,y:0,w:0,h:0}),a=(0,s.iH)("");(0,i.YP)((()=>t.latex),(()=>{const e=new Fv._q(t.latex);a.value=e.pathd({}),l.value=e.box({})}),{immediate:!0});const n=(0,i.Fl)((()=>{const e=l.value.w+32,a=l.value.h+32;return e>t.width||a>t.height?e/a>t.width/t.height?t.width/e:t.height/a:1}));return(e,t)=>((0,i.wg)(),(0,i.iD)("svg",{class:"formula-content",overflow:"visible",width:l.value.w+32,height:l.value.h+32,stroke:"#000","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[(0,i._)("g",{transform:`scale(${n.value}, ${n.value}) translate(0,0) matrix(1,0,0,1,0,0)`,"transform-origin":"0 50%"},[(0,i._)("path",{d:a.value},null,8,Rv)],8,Ov)],8,Zv))}});const Pv=(0,Vl.Z)(zv,[["__scopeId","data-v-567417d3"]]);var Bv=Pv;const Nv=["innerHTML"];var jv=(0,i.aZ)({__name:"SymbolContent",props:{latex:{}},setup(e){const t=e,l=(0,i.Fl)((()=>{const e=new Fv._q(t.latex);return e.svg({SCALE_X:10,SCALE_Y:10})}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"symbol-content",innerHTML:l.value},null,8,Nv))}});const Yv=jv;var Vv=Yv;const Jv=["disabled","value","rows","placeholder"];var qv=(0,i.aZ)({__name:"TextArea",props:{value:{},rows:{default:4},disabled:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:value"],setup(e,{expose:t,emit:l}){const a=l,n=e=>{a("update:value",e.target.value)},o=(0,s.iH)(),r=()=>{o.value&&o.value.focus()};return t({focus:r}),(e,t)=>((0,i.wg)(),(0,i.iD)("textarea",{class:(0,oe.C_)(["textarea",{disabled:e.disabled,resizable:e.resizable}]),ref_key:"textareaRef",ref:o,disabled:e.disabled,value:e.value,rows:e.rows,placeholder:e.placeholder,onInput:t[0]||(t[0]=e=>n(e))},null,42,Jv))}});const Xv=(0,Vl.Z)(qv,[["__scopeId","data-v-65d72404"]]);var Gv=Xv;const Kv={class:"latex-editor"},Qv={class:"container"},em={class:"left"},tm={class:"input-area"},lm={class:"preview"},am={key:0,class:"placeholder"},nm={key:1,class:"preview-content"},om={class:"right"},im={class:"content"},sm={key:0,class:"symbol"},rm={class:"symbol-pool"},um=["onClick"],cm={key:1,class:"formula"},dm={class:"formula-title"},pm=["onClick"],vm={class:"footer"};var mm=(0,i.aZ)({__name:"index",props:{value:{default:""}},emits:["update","close"],setup(e,{emit:t}){const l=[{label:"常用符号",key:"symbol"},{label:"预置公式",key:"formula"}],a=e,n=t,o=Av,r=$v.map((e=>({label:e.label,key:e.type}))),u=(0,s.iH)(""),c=(0,s.iH)("symbol"),d=(0,s.iH)(),p=(0,s.iH)($v[0].type),v=(0,i.Fl)((()=>{const e=$v.find((e=>e.type===p.value));return e?.children||[]}));(0,i.bv)((()=>{a.value&&(u.value=a.value)}));const m=()=>{if(!u.value)return ta.error("公式不能为空");const e=new Fv._q(u.value),t=e.pathd({}),l=e.box({});n("update",{latex:u.value,path:t,w:l.w+32,h:l.h+32})},h=e=>{d.value&&(d.value.focus(),document.execCommand("insertText",!1,e))};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Kv,[(0,i._)("div",Qv,[(0,i._)("div",em,[(0,i._)("div",tm,[(0,i.Wm)(Gv,{value:u.value,"onUpdate:value":t[0]||(t[0]=e=>u.value=e),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:d},null,8,["value"])]),(0,i._)("div",lm,[u.value?((0,i.wg)(),(0,i.iD)("div",nm,[(0,i.Wm)(Bv,{width:518,height:138,latex:u.value},null,8,["latex"])])):((0,i.wg)(),(0,i.iD)("div",am,"公式预览"))])]),(0,i._)("div",om,[(0,i.Wm)(Kd,{tabs:l,value:c.value,"onUpdate:value":t[1]||(t[1]=e=>c.value=e),card:""},null,8,["value"]),(0,i._)("div",im,["symbol"===c.value?((0,i.wg)(),(0,i.iD)("div",sm,[(0,i.Wm)(Kd,{tabs:(0,s.SU)(r),value:p.value,"onUpdate:value":t[2]||(t[2]=e=>p.value=e),spaceBetween:"",tabsStyle:{margin:"10px 10px 0"}},null,8,["tabs","value"]),(0,i._)("div",rm,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(v.value,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"symbol-item",key:e.latex,onClick:t=>h(e.latex)},[(0,i.Wm)(Vv,{latex:e.latex},null,8,["latex"])],8,um)))),128))])])):((0,i.wg)(),(0,i.iD)("div",cm,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(o),(e=>((0,i.wg)(),(0,i.iD)("div",{class:"formula-item",key:e.label},[(0,i._)("div",dm,(0,oe.zw)(e.label),1),(0,i._)("div",{class:"formula-item-content",onClick:t=>u.value=e.latex},[(0,i.Wm)(Bv,{width:236,height:60,latex:e.latex},null,8,["latex"])],8,pm)])))),128))]))])])]),(0,i._)("div",vm,[(0,i.Wm)(tp,{class:"btn",onClick:t[3]||(t[3]=e=>n("close"))},{default:(0,i.w5)((()=>[(0,i.Uk)("取消")])),_:1}),(0,i.Wm)(tp,{class:"btn",type:"primary",onClick:t[4]||(t[4]=e=>m())},{default:(0,i.w5)((()=>[(0,i.Uk)("确定")])),_:1})])]))}});const hm=(0,Vl.Z)(mm,[["__scopeId","data-v-49a14edf"]]);var fm=hm;const gm={class:"canvas-tool"},ym={class:"left-handler"},wm={class:"add-element-handler"},xm={class:"handler-item group-btn"},km={class:"right-handler"},bm={class:"text"};var _m=(0,i.aZ)({__name:"index",setup(e){const t=R(),{creatingElement:l,creatingCustomShape:a,showSelectPanel:n,showSearchPanel:r}=(0,o.Jk)(t),{canUndo:u,canRedo:c}=(0,o.Jk)(J()),{redo:d,undo:p}=da(),{scaleCanvas:v,setCanvasScalePercentage:m,resetCanvas:h,canvasScalePercentage:f}=La(),g=[200,150,100,80,50],y=(0,s.iH)(!1),w=e=>{m(e),y.value=!1},{createImageElement:x,createChartElement:k,createTableElement:b,createLatexElement:_,createVideoElement:I,createAudioElement:S}=pa(),C=e=>{const t=e[0];t&&na(t).then((e=>x(e)))},L=(0,s.iH)(!1),T=(0,s.iH)(!1),E=(0,s.iH)(!1),M=(0,s.iH)(!1),U=(0,s.iH)(!1),W=(0,s.iH)(!1),D=(0,s.iH)(!1),H=(e=!1)=>{t.setCreatingElement({type:"text",vertical:e})},F=e=>{"任意多边形"===e.title?t.setCreatingCustomShapeState(!0):t.setCreatingElement({type:"shape",data:e}),L.value=!1},A=e=>{t.setCreatingElement({type:"line",data:e}),T.value=!1},$=()=>{t.setSelectPanelState(!n.value)},Z=()=>{t.setSearchPanelState(!r.value)};return(e,t)=>{const o=(0,i.up)("IconBack"),m=(0,i.up)("IconNext"),x=(0,i.up)("IconMoveOne"),O=(0,i.up)("IconSearch"),R=(0,i.up)("IconFontSize"),z=(0,i.up)("IconTextRotationNone"),P=(0,i.up)("IconTextRotationDown"),B=(0,i.up)("IconDown"),N=(0,i.up)("IconPicture"),j=(0,i.up)("IconGraphicDesign"),Y=(0,i.up)("IconConnection"),V=(0,i.up)("IconChartProportion"),J=(0,i.up)("IconInsertTable"),q=(0,i.up)("IconFormula"),X=(0,i.up)("IconVideoTwo"),G=(0,i.up)("IconMinus"),K=(0,i.up)("IconPlus"),Q=(0,i.up)("IconFullScreen"),ee=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",gm,[(0,i._)("div",ym,[(0,i.wy)((0,i.Wm)(o,{class:(0,oe.C_)(["handler-item",{disable:!(0,s.SU)(u)}]),onClick:t[0]||(t[0]=e=>(0,s.SU)(p)())},null,8,["class"]),[[ee,"撤销"]]),(0,i.wy)((0,i.Wm)(m,{class:(0,oe.C_)(["handler-item",{disable:!(0,s.SU)(c)}]),onClick:t[1]||(t[1]=e=>(0,s.SU)(d)())},null,8,["class"]),[[ee,"重做"]]),(0,i.Wm)(Zc,{type:"vertical",style:{height:"20px"}}),(0,i.wy)((0,i.Wm)(x,{class:(0,oe.C_)(["handler-item",{active:(0,s.SU)(n)}]),onClick:t[2]||(t[2]=e=>$())},null,8,["class"]),[[ee,"选择窗格"]]),(0,i.wy)((0,i.Wm)(O,{class:(0,oe.C_)(["handler-item",{active:(0,s.SU)(r)}]),onClick:t[3]||(t[3]=e=>Z())},null,8,["class"]),[[ee,"查找/替换"]])]),(0,i._)("div",wm,[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",xm,[(0,i.Wm)(R,{class:(0,oe.C_)(["icon",{active:"text"===(0,s.SU)(l)?.type}]),onClick:t[4]||(t[4]=e=>H())},null,8,["class"]),(0,i.Wm)(dn,{trigger:"click",value:D.value,"onUpdate:value":t[7]||(t[7]=e=>D.value=e),style:{height:"100%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(mn,{center:"",onClick:t[5]||(t[5]=()=>{H(),D.value=!1})},{default:(0,i.w5)((()=>[(0,i.Wm)(z),(0,i.Uk)(" 横向文本框")])),_:1}),(0,i.Wm)(mn,{center:"",onClick:t[6]||(t[6]=()=>{H(!0),D.value=!1})},{default:(0,i.w5)((()=>[(0,i.Wm)(P),(0,i.Uk)(" 竖向文本框")])),_:1})])),default:(0,i.w5)((()=>[(0,i.Wm)(B,{class:"arrow"})])),_:1},8,["value"])])),[[ee,"插入文字"]]),(0,i.Wm)(Pa,{onChange:t[8]||(t[8]=e=>C(e))},{default:(0,i.w5)((()=>[(0,i.wy)((0,i.Wm)(N,{class:"handler-item"},null,512),[[ee,"插入图片"]])])),_:1}),(0,i.Wm)(dn,{trigger:"click",value:L.value,"onUpdate:value":t[10]||(t[10]=e=>L.value=e)},{content:(0,i.w5)((()=>[(0,i.Wm)(Rp,{onSelect:t[9]||(t[9]=e=>F(e))})])),default:(0,i.w5)((()=>[(0,i.wy)((0,i.Wm)(j,{class:(0,oe.C_)(["handler-item",{active:(0,s.SU)(a)||"shape"===(0,s.SU)(l)?.type}])},null,8,["class"]),[[ee,"插入形状"]])])),_:1},8,["value"]),(0,i.Wm)(dn,{trigger:"click",value:T.value,"onUpdate:value":t[12]||(t[12]=e=>T.value=e)},{content:(0,i.w5)((()=>[(0,i.Wm)(Xp,{onSelect:t[11]||(t[11]=e=>A(e))})])),default:(0,i.w5)((()=>[(0,i.wy)((0,i.Wm)(Y,{class:(0,oe.C_)(["handler-item",{active:"line"===(0,s.SU)(l)?.type}])},null,8,["class"]),[[ee,"插入线条"]])])),_:1},8,["value"]),(0,i.Wm)(dn,{trigger:"click",value:E.value,"onUpdate:value":t[14]||(t[14]=e=>E.value=e)},{content:(0,i.w5)((()=>[(0,i.Wm)(tv,{onSelect:t[13]||(t[13]=e=>{(0,s.SU)(k)(e),E.value=!1})})])),default:(0,i.w5)((()=>[(0,i.wy)((0,i.Wm)(V,{class:"handler-item"},null,512),[[ee,"插入图表"]])])),_:1},8,["value"]),(0,i.Wm)(dn,{trigger:"click",value:M.value,"onUpdate:value":t[17]||(t[17]=e=>M.value=e)},{content:(0,i.w5)((()=>[(0,i.Wm)(Tv,{onClose:t[15]||(t[15]=e=>M.value=!1),onInsert:t[16]||(t[16]=({row:e,col:t})=>{(0,s.SU)(b)(e,t),M.value=!1})})])),default:(0,i.w5)((()=>[(0,i.wy)((0,i.Wm)(J,{class:"handler-item"},null,512),[[ee,"插入表格"]])])),_:1},8,["value"]),(0,i.wy)((0,i.Wm)(q,{class:"handler-item",onClick:t[18]||(t[18]=e=>W.value=!0)},null,512),[[ee,"插入公式"]]),(0,i.Wm)(dn,{trigger:"click",value:U.value,"onUpdate:value":t[22]||(t[22]=e=>U.value=e)},{content:(0,i.w5)((()=>[(0,i.Wm)(Hv,{onClose:t[19]||(t[19]=e=>U.value=!1),onInsertVideo:t[20]||(t[20]=e=>{(0,s.SU)(I)(e),U.value=!1}),onInsertAudio:t[21]||(t[21]=e=>{(0,s.SU)(S)(e),U.value=!1})})])),default:(0,i.w5)((()=>[(0,i.wy)((0,i.Wm)(X,{class:"handler-item"},null,512),[[ee,"插入音视频"]])])),_:1},8,["value"])]),(0,i._)("div",km,[(0,i.Wm)(G,{class:"handler-item viewport-size",onClick:t[23]||(t[23]=e=>(0,s.SU)(v)("-"))}),(0,i.Wm)(dn,{trigger:"click",value:y.value,"onUpdate:value":t[24]||(t[24]=e=>y.value=e)},{content:(0,i.w5)((()=>[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(g,(e=>(0,i.Wm)(mn,{center:"",key:e,onClick:t=>w(e)},{default:(0,i.w5)((()=>[(0,i.Uk)((0,oe.zw)(e)+"%",1)])),_:2},1032,["onClick"]))),64))])),default:(0,i.w5)((()=>[(0,i._)("span",bm,(0,oe.zw)((0,s.SU)(f)),1)])),_:1},8,["value"]),(0,i.Wm)(K,{class:"handler-item viewport-size",onClick:t[25]||(t[25]=e=>(0,s.SU)(v)("+"))}),(0,i.wy)((0,i.Wm)(Q,{class:"handler-item viewport-size-adaptation",onClick:t[26]||(t[26]=e=>(0,s.SU)(h)())},null,512),[[ee,"适应屏幕"]])]),(0,i.Wm)(kp,{visible:W.value,"onUpdate:visible":t[29]||(t[29]=e=>W.value=e),width:880},{default:(0,i.w5)((()=>[(0,i.Wm)(fm,{onClose:t[27]||(t[27]=e=>W.value=!1),onUpdate:t[28]||(t[28]=e=>{(0,s.SU)(_)(e),W.value=!1})})])),_:1},8,["visible"])])}}});const Im=(0,Vl.Z)(_m,[["__scopeId","data-v-7e81f183"]]);var Sm=Im,Cm=()=>{const{slides:e}=(0,o.Jk)($()),t=(0,s.iH)(null),l=(0,s.iH)(50),a=()=>{e.value.length>l.value?t.value=setTimeout((()=>{l.value=l.value+20,a()}),600):l.value=9999};return(0,i.bv)(a),(0,i.Ah)((()=>{t.value&&clearTimeout(t.value)})),{slidesLoadLimit:l}};const Lm={class:"layout-pool"},Tm=["onClick"];var Em=(0,i.aZ)({__name:"LayoutPool",emits:["select"],setup(e,{emit:t}){const l=t,{layouts:a}=(0,o.Jk)($()),n=e=>{l("select",e)};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Lm,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(a),(e=>((0,i.wg)(),(0,i.iD)("div",{class:"layout-item",key:e.id,onClick:t=>n(e)},[(0,i.Wm)(Jd,{class:"thumbnail",slide:e,size:180},null,8,["slide"])],8,Tm)))),128))]))}});const Mm=(0,Vl.Z)(Em,[["__scopeId","data-v-8ee3e590"]]);var Um=Mm,Wm=l(9980),Dm=l.n(Wm);const Hm={class:"add-slide"},Fm={class:"select-btn"},Am=["onMousedown"],$m={class:"page-number"};var Zm=(0,i.aZ)({__name:"index",setup(e){const t=R(),l=$(),a=q(),{selectedSlidesIndex:n,thumbnailsFocus:r}=(0,o.Jk)(t),{slides:u,slideIndex:c}=(0,o.Jk)(l),{ctrlKeyState:d,shiftKeyState:p}=(0,o.Jk)(a),{slidesLoadLimit:v}=Cm(),m=(0,i.Fl)((()=>[...n.value,c.value])),h=(0,s.iH)(!1),{copySlide:f,pasteSlide:g,createSlide:y,createSlideByTemplate:w,copyAndPasteSlide:x,deleteSlide:k,cutSlide:b,selectAllSlide:_,sortSlides:I}=ha(),S=(0,s.iH)();(0,i.YP)((()=>c.value),(()=>{m.value.length&&t.updateSelectedSlidesIndex([]),(0,i.Y3)((()=>{const e=S.value?.$el?.querySelector(".thumbnail-item.active");S.value&&e&&!Le(e,S.value.$el)&&setTimeout((()=>{e.scrollIntoView({behavior:"smooth"})}),100)}))}));const C=e=>{t.setActiveElementIdList([]),c.value!==e&&l.updateSlideIndex(e)},L=(e,l)=>{const a=m.value.length>1;if(!a||!m.value.includes(l)||0===e.button)if(d.value)if(c.value===l){if(!a)return;const e=m.value.filter((e=>e!==l));t.updateSelectedSlidesIndex(e),C(m.value[0])}else if(m.value.includes(l)){const e=m.value.filter((e=>e!==l));t.updateSelectedSlidesIndex(e)}else{const e=[...m.value,l];t.updateSelectedSlidesIndex(e)}else if(p.value){if(c.value===l&&!a)return;let e=Math.min(...m.value),n=l;l{r.value!==e&&(t.setThumbnailsFocus(e),e||t.updateSelectedSlidesIndex([]))},E=e=>{const{newIndex:t,oldIndex:l}=e;void 0!==t&&void 0!==l&&t!==l&&I(t,l)},{enterScreening:M,enterScreeningFromStart:U}=Ca(),W=()=>[{text:"粘贴",subText:"Ctrl + V",handler:g},{text:"全选",subText:"Ctrl + A",handler:_},{text:"新建页面",subText:"Enter",handler:y},{text:"幻灯片放映",subText:"F5",handler:U}],D=()=>[{text:"剪切",subText:"Ctrl + X",handler:b},{text:"复制",subText:"Ctrl + C",handler:f},{text:"粘贴",subText:"Ctrl + V",handler:g},{text:"全选",subText:"Ctrl + A",handler:_},{divider:!0},{text:"新建页面",subText:"Enter",handler:y},{text:"复制页面",subText:"Ctrl + D",handler:x},{text:"删除页面",subText:"Delete",handler:()=>k()},{divider:!0},{text:"从当前放映",subText:"Shift + F5",handler:M}];return(e,t)=>{const l=(0,i.up)("IconPlus"),a=(0,i.up)("IconDown"),n=(0,i.Q2)("contextmenu"),o=(0,i.Q2)("click-outside");return(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"thumbnails",onMousedown:t[4]||(t[4]=()=>T(!0))},[(0,i._)("div",Hm,[(0,i._)("div",{class:"btn",onClick:t[0]||(t[0]=e=>(0,s.SU)(y)())},[(0,i.Wm)(l,{class:"icon"}),(0,i.Uk)("添加幻灯片")]),(0,i.Wm)(dn,{trigger:"click",placement:"bottom-start",value:h.value,"onUpdate:value":t[2]||(t[2]=e=>h.value=e),center:""},{content:(0,i.w5)((()=>[(0,i.Wm)(Um,{onSelect:t[1]||(t[1]=e=>{(0,s.SU)(w)(e),h.value=!1})})])),default:(0,i.w5)((()=>[(0,i._)("div",Fm,[(0,i.Wm)(a)])])),_:1},8,["value"])]),(0,i.Wm)((0,s.SU)(Dm()),{class:"thumbnail-list",ref_key:"thumbnailsRef",ref:S,modelValue:(0,s.SU)(u),animation:200,scroll:!0,scrollSensitivity:50,onEnd:E,itemKey:"id"},{item:(0,i.w5)((({element:e,index:l})=>[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["thumbnail-item",{active:(0,s.SU)(c)===l,selected:m.value.includes(l)}]),onMousedown:e=>L(e,l),onDblclick:t[3]||(t[3]=e=>(0,s.SU)(M)())},[(0,i._)("div",{class:(0,oe.C_)(["label",{"offset-left":l>=99}])},(0,oe.zw)((0,s.SU)(G)(l+1,2)),3),(0,i.Wm)(Jd,{class:"thumbnail",slide:e,size:120,visible:l<(0,s.SU)(v)},null,8,["slide","visible"])],42,Am)),[[n,D]])])),_:1},8,["modelValue"]),(0,i._)("div",$m,"幻灯片 "+(0,oe.zw)((0,s.SU)(c)+1)+" / "+(0,oe.zw)((0,s.SU)(u).length),1)],32)),[[o,()=>T(!1)],[n,W]])}}});const Om=(0,Vl.Z)(Zm,[["__scopeId","data-v-0dbead61"]]);var Rm=Om,zm=()=>{const e=R(),{richTextAttrs:t,textFormatPainter:l}=(0,o.Jk)(e),a=(a=!1)=>{l.value?e.setTextFormatPainter(null):e.setTextFormatPainter({keep:a,bold:t.value.bold,em:t.value.em,underline:t.value.underline,strikethrough:t.value.strikethrough,color:t.value.color,backcolor:t.value.backcolor,fontname:t.value.fontname,fontsize:t.value.fontsize,align:t.value.align})};return{toggleTextFormatPainter:a}},Pm=l(8374);const Bm={class:"bar"},Nm=["data-tooltip"],jm=["data-tooltip"],Ym=["data-tooltip"];var Vm=(0,i.aZ)({__name:"Slider",props:{value:{},disabled:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},range:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const l=e=>e.getBoundingClientRect().left,a=e,n=t,o=(0,s.iH)(),r=(0,s.iH)(0),u=(0,s.iH)(0),c=(0,s.iH)(0),d=(0,s.iH)("end"),p=e=>{let t=e/100*(a.max-a.min);if(a.step>=1)t=Math.fround(t);else{const e=a.step.toString(),l=e.match(/^[0.]*([1-9])/);if(l){const a=l[1],n=e.indexOf(a)-1;if(n>0){const e=Math.pow(10,n);t=Math.fround(t*e)/e}}}return Pm.ZP.plus(t,a.min)},v=(0,i.Fl)((()=>p(r.value))),m=(0,i.Fl)((()=>p(u.value))),h=(0,i.Fl)((()=>p(c.value)));(0,i.YP)((()=>a.value),(()=>{a.max!==a.min&&("number"===typeof a.value?r.value=(a.value-a.min)/(a.max-a.min)*100:(u.value=(a.value[0]-a.min)/(a.max-a.min)*100,c.value=(a.value[1]-a.min)/(a.max-a.min)*100))}),{immediate:!0});const f=e=>{if(!o.value)return 0;const t="clientX"in e?e.clientX:e.changedTouches[0].clientX;let n=(t-l(o.value))/o.value.clientWidth;n=Math.max(n,0),n=Math.min(n,1);let i=100*n;const s=a.step/(a.max-a.min)*100,r=i%s;return r>0&&(r<=s/2?i-=r:i=i-r+s),i},g=e=>{const t=f(e);"start"===d.value?u.value=t:c.value=t},y=e=>{w(e);const t=p(r.value),l=a.value,o="start"===d.value?[t,l[1]]:[l[0],t];o[0]>o[1]&&([o[0],o[1]]=[o[1],o[0]]),n("update:value",o),document.removeEventListener("mousemove",g),document.removeEventListener("touchmove",g),document.removeEventListener("mouseup",y),document.removeEventListener("touchend",y)},w=e=>{r.value=f(e)},x=e=>{w(e);const t=p(r.value);n("update:value",t),document.removeEventListener("mousemove",w),document.removeEventListener("touchmove",w),document.removeEventListener("mouseup",x),document.removeEventListener("touchend",x)},k=e=>{if(!a.disabled)if(a.range){const t=f(e);Math.abs(t-u.value)((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["slider",{disabled:e.disabled}]),ref_key:"sliderRef",ref:o,onMousedown:t[0]||(t[0]=e=>k(e))},[(0,i._)("div",Bm,[e.range?((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i._)("div",{class:"track",style:(0,oe.j5)({width:c.value-u.value+"%",left:`${u.value}%`})},null,4),(0,i._)("div",{class:"thumb",style:(0,oe.j5)({left:`${u.value}%`}),"data-tooltip":m.value},null,12,jm),(0,i._)("div",{class:"thumb",style:(0,oe.j5)({left:`${c.value}%`}),"data-tooltip":h.value},null,12,Ym)],64)):((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i._)("div",{class:"track",style:(0,oe.j5)({width:`${r.value}%`})},null,4),(0,i._)("div",{class:"thumb",style:(0,oe.j5)({left:`${r.value}%`}),"data-tooltip":v.value},null,12,Nm)],64))])],34))}});const Jm=(0,Vl.Z)(Vm,[["__scopeId","data-v-563bd2a0"]]);var qm=Jm;const Xm=e=>((0,i.dD)("data-v-03715c20"),e=e(),(0,i.Cn)(),e),Gm={class:"element-opacity"},Km={class:"row"},Qm=Xm((()=>(0,i._)("div",{style:{width:"40%"}},"不透明度:",-1)));var eh=(0,i.aZ)({__name:"ElementOpacity",setup(e){const t=$(),{handleElement:l}=(0,o.Jk)(R()),a=(0,s.iH)(1);(0,i.YP)(l,(()=>{l.value&&(a.value="opacity"in l.value&&void 0!==l.value.opacity?l.value.opacity:1)}),{deep:!0,immediate:!0});const{addHistorySnapshot:n}=da(),r=e=>{if(!l.value)return;const a={opacity:e};t.updateElement({id:l.value.id,props:a}),n()};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Gm,[(0,i._)("div",Km,[Qm,(0,i.Wm)(qm,{min:0,max:1,step:.1,value:a.value,"onUpdate:value":t[0]||(t[0]=e=>r(e)),style:{width:"60%"}},null,8,["value"])])]))}});const th=(0,Vl.Z)(eh,[["__scopeId","data-v-03715c20"]]);var lh=th;const ah={class:"color-block"};var nh=(0,i.aZ)({__name:"ColorButton",props:{color:{}},setup(e){return(e,t)=>{const l=(0,i.up)("IconPlatte");return(0,i.wg)(),(0,i.j4)(tp,{class:"color-btn"},{default:(0,i.w5)((()=>[(0,i._)("div",ah,[(0,i._)("div",{class:"content",style:(0,oe.j5)({backgroundColor:e.color})},null,4)]),(0,i.Wm)(l,{class:"color-btn-icon"})])),_:1})}}});const oh=(0,Vl.Z)(nh,[["__scopeId","data-v-7fa73bdc"]]);var ih=oh,sh=l(6459),rh=(0,i.aZ)({__name:"Checkboard",props:{size:{default:8},white:{default:"#fff"},grey:{default:"#e6e6e6"}},setup(e){const t=e,l={},a=(e,t,l)=>{const a=document.createElement("canvas");a.width=a.height=2*l;const n=a.getContext("2d");return n?(n.fillStyle=e,n.fillRect(0,0,a.width,a.height),n.fillStyle=t,n.fillRect(0,0,l,l),n.translate(l,l),n.fillRect(0,0,l,l),a.toDataURL()):null},n=(e,t,n)=>{const o=e+","+t+","+n;if(l[o])return l[o];const i=a(e,t,n);return l[o]=i,i},o=(0,i.Fl)((()=>{const e=n(t.white,t.grey,t.size);return{backgroundImage:`url(${e})`}}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"checkerboard",style:(0,oe.j5)(o.value)},null,4))}});const uh=(0,Vl.Z)(rh,[["__scopeId","data-v-fa191ace"]]);var ch=uh;const dh=e=>((0,i.dD)("data-v-84628bc8"),e=e(),(0,i.Cn)(),e),ph={class:"alpha"},vh={class:"alpha-checkboard-wrap"},mh=dh((()=>(0,i._)("div",{class:"alpha-picker"},null,-1))),hh=[mh];var fh=(0,i.aZ)({__name:"Alpha",props:{value:{}},emits:["colorChange"],setup(e,{emit:t}){const l=e,a=t,n=(0,i.Fl)((()=>l.value)),o=(0,i.Fl)((()=>{const e=[n.value.r,n.value.g,n.value.b].join(",");return`linear-gradient(to right, rgba(${e}, 0) 0%, rgba(${e}, 1) 100%)`})),r=(0,s.iH)(),u=e=>{if(e.preventDefault(),!r.value)return;const t=r.value.clientWidth,l=r.value.getBoundingClientRect().left+window.pageXOffset,o=e.pageX-l;let i;i=o<0?0:o>t?1:Math.round(100*o/t)/100,n.value.a!==i&&a("colorChange",{r:n.value.r,g:n.value.g,b:n.value.b,a:i})},c=()=>{window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",c)},d=e=>{u(e),window.addEventListener("mousemove",u),window.addEventListener("mouseup",c)};return(0,i.Ah)(c),(e,t)=>((0,i.wg)(),(0,i.iD)("div",ph,[(0,i._)("div",vh,[(0,i.Wm)(ch)]),(0,i._)("div",{class:"alpha-gradient",style:(0,oe.j5)({background:o.value})},null,4),(0,i._)("div",{class:"alpha-container",ref_key:"alphaRef",ref:r,onMousedown:t[0]||(t[0]=e=>d(e))},[(0,i._)("div",{class:"alpha-pointer",style:(0,oe.j5)({left:100*n.value.a+"%"})},hh,4)],544)]))}});const gh=(0,Vl.Z)(fh,[["__scopeId","data-v-84628bc8"]]);var yh=gh;const wh=e=>((0,i.dD)("data-v-5711e710"),e=e(),(0,i.Cn)(),e),xh={class:"hue"},kh=wh((()=>(0,i._)("div",{class:"hue-picker"},null,-1))),bh=[kh];var _h=(0,i.aZ)({__name:"Hue",props:{value:{},hue:{}},emits:["colorChange"],setup(e,{emit:t}){const l=e,a=t,n=(0,s.iH)(0),o=(0,s.iH)(""),r=(0,i.Fl)((()=>{const e=(0,W.Z)(l.value).toHsl();return-1!==l.hue&&(e.h=l.hue),e})),u=(0,i.Fl)((()=>0===r.value.h&&"right"===o.value?"100%":100*r.value.h/360+"%"));(0,i.YP)((()=>l.value),(()=>{const e=(0,W.Z)(l.value).toHsl(),t=0===e.s?l.hue:e.h;0!==t&&t-n.value>0&&(o.value="right"),0!==t&&t-n.value<0&&(o.value="left"),n.value=t}));const c=(0,s.iH)(),d=e=>{if(e.preventDefault(),!c.value)return;const t=c.value.clientWidth,n=c.value.getBoundingClientRect().left+window.pageXOffset,o=e.pageX-n;let i,s;o<0?i=0:o>t?i=360:(s=100*o/t,i=360*s/100),-1!==l.hue&&r.value.h===i||a("colorChange",{h:i,l:r.value.l,s:r.value.s,a:r.value.a})},p=()=>{window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p)},v=e=>{d(e),window.addEventListener("mousemove",d),window.addEventListener("mouseup",p)};return(0,i.Ah)(p),(e,t)=>((0,i.wg)(),(0,i.iD)("div",xh,[(0,i._)("div",{class:"hue-container",ref_key:"hueRef",ref:c,onMousedown:t[0]||(t[0]=e=>v(e))},[(0,i._)("div",{class:"hue-pointer",style:(0,oe.j5)({left:u.value})},bh,4)],544)]))}});const Ih=(0,Vl.Z)(_h,[["__scopeId","data-v-5711e710"]]);var Sh=Ih;const Ch=e=>((0,i.dD)("data-v-c79c0446"),e=e(),(0,i.Cn)(),e),Lh=Ch((()=>(0,i._)("div",{class:"saturation-white"},null,-1))),Th=Ch((()=>(0,i._)("div",{class:"saturation-black"},null,-1))),Eh=Ch((()=>(0,i._)("div",{class:"saturation-circle"},null,-1))),Mh=[Eh];var Uh=(0,i.aZ)({__name:"Saturation",props:{value:{},hue:{}},emits:["colorChange"],setup(e,{emit:t}){const l=e,a=t,n=(0,i.Fl)((()=>{const e=(0,W.Z)(l.value).toHsv();return-1!==l.hue&&(e.h=l.hue),e})),o=(0,i.Fl)((()=>`hsl(${n.value.h}, 100%, 50%)`)),r=(0,i.Fl)((()=>-100*n.value.v+1+100+"%")),u=(0,i.Fl)((()=>100*n.value.s+"%")),c=(0,D.throttle)((function(e){a("colorChange",e)}),20,{leading:!0,trailing:!1}),d=(0,s.iH)(),p=e=>{if(e.preventDefault(),!d.value)return;const t=d.value.clientWidth,l=d.value.clientHeight,a=d.value.getBoundingClientRect().left+window.pageXOffset,o=d.value.getBoundingClientRect().top+window.pageYOffset,i=(0,D.clamp)(e.pageX-a,0,t),s=(0,D.clamp)(e.pageY-o,0,l),r=i/t,u=(0,D.clamp)(-s/l+1,0,1);c({h:n.value.h,s:r,v:u,a:n.value.a})},v=()=>{window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",v)},m=e=>{p(e),window.addEventListener("mousemove",p),window.addEventListener("mouseup",v)};return(0,i.Ah)(v),(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"saturation",ref_key:"saturationRef",ref:d,style:(0,oe.j5)({background:o.value}),onMousedown:t[0]||(t[0]=e=>m(e))},[Lh,Th,(0,i._)("div",{class:"saturation-pointer",style:(0,oe.j5)({top:r.value,left:u.value})},Mh,4)],36))}});const Wh=(0,Vl.Z)(Uh,[["__scopeId","data-v-c79c0446"]]);var Dh=Wh;const Hh={class:"editable-input"},Fh=["value"];var Ah=(0,i.aZ)({__name:"EditableInput",props:{value:{}},emits:["colorChange"],setup(e,{emit:t}){const l=e,a=t,n=(0,i.Fl)((()=>{let e="";return e=l.value.a<1?(0,W.Z)(l.value).toHex8String().toUpperCase():(0,W.Z)(l.value).toHexString().toUpperCase(),e.replace("#","")})),o=e=>{const t=e.target.value;if(t.length>=6){const e=(0,W.Z)(t);e.isValid()&&a("colorChange",e.toRgb())}};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Hh,[(0,i._)("input",{class:"input-content",value:n.value,onInput:t[0]||(t[0]=e=>o(e))},null,40,Fh)]))}});const $h=(0,Vl.Z)(Ah,[["__scopeId","data-v-65e2913c"]]);var Zh=$h;const Oh={class:"color-picker"},Rh={class:"picker-saturation-wrap"},zh={class:"picker-controls"},Ph={class:"picker-color-wrap"},Bh={class:"picker-sliders"},Nh={class:"picker-hue-wrap"},jh={class:"picker-alpha-wrap"},Yh={class:"picker-field"},Vh={class:"picker-presets"},Jh=["onClick"],qh={class:"picker-gradient-presets"},Xh=["onClick"],Gh={class:"picker-presets"},Kh=["onClick"],Qh={key:0,class:"recent-colors-title"},ef={class:"picker-presets"},tf=["onClick"],lf="RECENT_COLORS";var af=(0,i.aZ)({__name:"index",props:{modelValue:{default:"#e86b99"}},emits:["update:modelValue"],setup(e,{emit:t}){const l=e,a=t,n=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],o=(e,t,l)=>{const a=(0,W.Z)(e).toRgb(),n=(0,W.Z)(t).toRgb(),o=(n.r-a.r)/l,i=(n.g-a.g)/l,s=(n.b-a.b)/l,r=[];for(let u=0;u{const e=[];for(const t of n)e.push(o(t[1],t[0],5));return e},u=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],c=["#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57","#00afee","#0071be","#00215f","#72349d"],d=(0,s.iH)(-1),p=(0,s.iH)([]),v=(0,i.Fl)({get(){return(0,W.Z)(l.modelValue).toRgb()},set(e){const t=`rgba(${[e.r,e.g,e.b,e.a].join(",")})`;a("update:modelValue",t)}}),m=r(),h=(0,i.Fl)((()=>`rgba(${[v.value.r,v.value.g,v.value.b,v.value.a].join(",")})`)),f=e=>{d.value=(0,W.Z)(e).toHsl().h,a("update:modelValue",e)},g=(0,D.debounce)((function(){const e=(0,W.Z)(v.value).toRgbString();if(!p.value.includes(e)){p.value=[e,...p.value];const t=10;p.value.length>t&&(p.value=p.value.slice(0,t))}}),300,{trailing:!0});(0,i.bv)((()=>{const e=localStorage.getItem(lf);e&&(p.value=JSON.parse(e))})),(0,i.YP)(p,(()=>{const e=JSON.stringify(p.value);localStorage.setItem(lf,e)}));const y=e=>{"h"in e?(d.value=e.h,v.value=(0,W.Z)(e).toRgb()):(d.value=(0,W.Z)(e).toHsl().h,v.value=e),g()},w=()=>{const e="EyeDropper"in window;e?x():k()},x=()=>{ta.success("按 ESC 键关闭取色吸管");const e=new window.EyeDropper;e.open().then((e=>{const t=(0,W.Z)(e.sRGBHex);d.value=t.toHsl().h,v.value=t.toRgb(),g()})).catch((()=>{ta.success("关闭取色吸管")}))},k=()=>{const e=document.querySelector(".canvas");if(!e)return;const t=document.createElement("div");t.style.cssText="position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 9999; cursor: wait;",document.body.appendChild(t);const l=document.createElement("div");l.style.cssText="position: absolute; top: -100px; left: -100px; width: 16px; height: 16px; border: 1px solid #000; z-index: 999",t.appendChild(l);const{left:a,top:n,width:o,height:i}=e.getBoundingClientRect(),s=e=>(!e.tagName||"FOREIGNOBJECT"!==e.tagName.toUpperCase())&&(!e.classList||!e.classList.contains("operate"));(0,sh.rT)(e,{filter:s,fontEmbedCSS:"",width:o,height:i,canvasWidth:o,canvasHeight:i,pixelRatio:1}).then((e=>{e.style.cssText=`position: absolute; top: ${n}px; left: ${a}px; cursor: crosshair;`,t.style.cursor="default",t.appendChild(e);const o=e.getContext("2d");if(!o)return;let i="";const s=e=>{const t=e.x,s=e.y,r=t-a,u=s-n,[c,d,p,v]=o.getImageData(r,u,1,1).data;i=`rgba(${c}, ${d}, ${p}, ${(v/255).toFixed(2)})`,l.style.left=t+10+"px",l.style.top=s+10+"px",l.style.backgroundColor=i},r=()=>{i="",l.style.left="-100px",l.style.top="-100px",l.style.backgroundColor=""},u=l=>{if(i&&0===l.button){const e=(0,W.Z)(i);d.value=e.toHsl().h,v.value=e.toRgb(),g()}document.body.removeChild(t),e.removeEventListener("mousemove",s),e.removeEventListener("mouseleave",r),window.removeEventListener("mousedown",u)};e.addEventListener("mousemove",s),e.addEventListener("mouseleave",r),window.addEventListener("mousedown",u)})).catch((()=>{ta.error("取色吸管初始化失败"),document.body.removeChild(t)}))};return(e,t)=>{const l=(0,i.up)("IconNeedle");return(0,i.wg)(),(0,i.iD)("div",Oh,[(0,i._)("div",Rh,[(0,i.Wm)(Dh,{value:v.value,hue:d.value,onColorChange:t[0]||(t[0]=e=>y(e))},null,8,["value","hue"])]),(0,i._)("div",zh,[(0,i._)("div",Ph,[(0,i._)("div",{class:"picker-current-color",style:(0,oe.j5)({background:h.value})},null,4),(0,i.Wm)(ch)]),(0,i._)("div",Bh,[(0,i._)("div",Nh,[(0,i.Wm)(Sh,{value:v.value,hue:d.value,onColorChange:t[1]||(t[1]=e=>y(e))},null,8,["value","hue"])]),(0,i._)("div",jh,[(0,i.Wm)(yh,{value:v.value,onColorChange:t[2]||(t[2]=e=>y(e))},null,8,["value"])])])]),(0,i._)("div",Yh,[(0,i.Wm)(Zh,{class:"input",value:v.value,onColorChange:t[3]||(t[3]=e=>y(e))},null,8,["value"]),(0,i._)("div",{class:"straw",onClick:t[4]||(t[4]=e=>w())},[(0,i.Wm)(l)]),(0,i._)("div",{class:"transparent",onClick:t[5]||(t[5]=e=>f("#00000000"))},[(0,i.Wm)(ch)])]),(0,i._)("div",Vh,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(u,(e=>(0,i._)("div",{class:"picker-presets-color",key:e,style:(0,oe.j5)({background:e}),onClick:t=>f(e)},null,12,Jh))),64))]),(0,i._)("div",qh,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(m),((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"picker-gradient-col",key:t},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"picker-gradient-color",key:e,style:(0,oe.j5)({background:e}),onClick:t=>f(e)},null,12,Xh)))),128))])))),128))]),(0,i._)("div",Gh,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(c,(e=>(0,i._)("div",{key:e,class:"picker-presets-color",style:(0,oe.j5)({background:e}),onClick:t=>f(e)},null,12,Kh))),64))]),p.value.length?((0,i.wg)(),(0,i.iD)("div",Qh,"最近使用:")):(0,i.kq)("",!0),(0,i._)("div",ef,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(p.value,(e=>((0,i.wg)(),(0,i.iD)("div",{key:e,class:"picker-presets-color alpha",onClick:t=>f(e)},[(0,i._)("div",{class:"picker-presets-color-content",style:(0,oe.j5)({background:e})},null,4)],8,tf)))),128))])])}}});const nf=(0,Vl.Z)(af,[["__scopeId","data-v-fec0b01a"]]);var of=nf;const sf=e=>((0,i.dD)("data-v-0566b060"),e=e(),(0,i.Cn)(),e),rf=sf((()=>(0,i._)("span",{class:"switch-core"},null,-1))),uf=[rf];var cf=(0,i.aZ)({__name:"Switch",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const l=e,a=t,n=()=>{l.disabled||a("update:value",!l.value)};return(e,t)=>((0,i.wg)(),(0,i.iD)("span",{class:(0,oe.C_)(["switch",{active:e.value,disabled:e.disabled}]),onClick:t[0]||(t[0]=e=>n())},uf,2))}});const df=(0,Vl.Z)(cf,[["__scopeId","data-v-0566b060"]]);var pf=df;const vf=e=>((0,i.dD)("data-v-18fbbd33"),e=e(),(0,i.Cn)(),e),mf={class:"element-outline"},hf={key:0,class:"row"},ff=vf((()=>(0,i._)("div",{style:{width:"40%"}},"启用边框:",-1))),gf={class:"switch-wrapper",style:{width:"60%"}},yf={class:"row"},wf=vf((()=>(0,i._)("div",{style:{width:"40%"}},"边框样式:",-1))),xf={class:"row"},kf=vf((()=>(0,i._)("div",{style:{width:"40%"}},"边框颜色:",-1))),bf={class:"row"},_f=vf((()=>(0,i._)("div",{style:{width:"40%"}},"边框粗细:",-1)));var If=(0,i.aZ)({__name:"ElementOutline",props:{fixed:{type:Boolean,default:!1}},setup(e){const t=$(),{theme:l}=(0,o.Jk)(t),{handleElement:a}=(0,o.Jk)(R()),n=(0,s.iH)(),r=(0,s.iH)(!1);(0,i.YP)(a,(()=>{a.value&&(n.value="outline"in a.value?a.value.outline:void 0,r.value=!!n.value)}),{deep:!0,immediate:!0});const{addHistorySnapshot:u}=da(),c=e=>{if(!a.value)return;const l={outline:{...n.value,...e}};t.updateElement({id:a.value.id,props:l}),u()},d=e=>{if(a.value){if(e){const e=l.value.outline;t.updateElement({id:a.value.id,props:{outline:e}})}else t.removeElementProps({id:a.value.id,propName:"outline"});u()}};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",mf,[e.fixed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",hf,[ff,(0,i._)("div",gf,[(0,i.Wm)(pf,{value:r.value,"onUpdate:value":t[0]||(t[0]=e=>d(e))},null,8,["value"])])])),r.value&&n.value?((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i._)("div",yf,[wf,(0,i.Wm)(cp,{style:{width:"60%"},value:n.value.style||"","onUpdate:value":t[1]||(t[1]=e=>c({style:e})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"}]},null,8,["value"])]),(0,i._)("div",xf,[kf,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:n.value.color,"onUpdate:modelValue":t[2]||(t[2]=e=>c({color:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:n.value.color||"#000"},null,8,["color"])])),_:1})]),(0,i._)("div",bf,[_f,(0,i.Wm)(mv,{value:n.value.width||0,"onUpdate:value":t[3]||(t[3]=e=>c({width:e})),style:{width:"60%"}},null,8,["value"])])],64)):(0,i.kq)("",!0)]))}});const Sf=(0,Vl.Z)(If,[["__scopeId","data-v-18fbbd33"]]);var Cf=Sf;const Lf=e=>((0,i.dD)("data-v-3a267bbc"),e=e(),(0,i.Cn)(),e),Tf={class:"element-shadow"},Ef={class:"row"},Mf=Lf((()=>(0,i._)("div",{style:{width:"40%"}},"启用阴影:",-1))),Uf={class:"switch-wrapper",style:{width:"60%"}},Wf={class:"row"},Df=Lf((()=>(0,i._)("div",{style:{width:"40%"}},"水平阴影:",-1))),Hf={class:"row"},Ff=Lf((()=>(0,i._)("div",{style:{width:"40%"}},"垂直阴影:",-1))),Af={class:"row"},$f=Lf((()=>(0,i._)("div",{style:{width:"40%"}},"模糊距离:",-1))),Zf={class:"row"},Of=Lf((()=>(0,i._)("div",{style:{width:"40%"}},"阴影颜色:",-1)));var Rf=(0,i.aZ)({__name:"ElementShadow",setup(e){const t=$(),{theme:l}=(0,o.Jk)(t),{handleElement:a}=(0,o.Jk)(R()),n=(0,s.iH)(),r=(0,s.iH)(!1);(0,i.YP)(a,(()=>{a.value&&(n.value="shadow"in a.value?a.value.shadow:void 0,r.value=!!n.value)}),{deep:!0,immediate:!0});const{addHistorySnapshot:u}=da(),c=e=>{if(!a.value||!n.value)return;const l={...n.value,...e};t.updateElement({id:a.value.id,props:{shadow:l}}),u()},d=e=>{if(a.value){if(e){const e=l.value.shadow;t.updateElement({id:a.value.id,props:{shadow:e}})}else t.removeElementProps({id:a.value.id,propName:"shadow"});u()}};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Tf,[(0,i._)("div",Ef,[Mf,(0,i._)("div",Uf,[(0,i.Wm)(pf,{value:r.value,"onUpdate:value":t[0]||(t[0]=e=>d(e))},null,8,["value"])])]),r.value&&n.value?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i._)("div",Wf,[Df,(0,i.Wm)(qm,{style:{width:"60%"},min:-10,max:10,step:1,value:n.value.h,"onUpdate:value":t[1]||(t[1]=e=>c({h:e}))},null,8,["value"])]),(0,i._)("div",Hf,[Ff,(0,i.Wm)(qm,{style:{width:"60%"},min:-10,max:10,step:1,value:n.value.v,"onUpdate:value":t[2]||(t[2]=e=>c({v:e}))},null,8,["value"])]),(0,i._)("div",Af,[$f,(0,i.Wm)(qm,{style:{width:"60%"},min:1,max:20,step:1,value:n.value.blur,"onUpdate:value":t[3]||(t[3]=e=>c({blur:e}))},null,8,["value"])]),(0,i._)("div",Zf,[Of,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:n.value.color,"onUpdate:modelValue":t[4]||(t[4]=e=>c({color:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:n.value.color},null,8,["color"])])),_:1})])],64)):(0,i.kq)("",!0)]))}});const zf=(0,Vl.Z)(Rf,[["__scopeId","data-v-3a267bbc"]]);var Pf=zf;const Bf={class:"text-color-block"};var Nf=(0,i.aZ)({__name:"TextColorButton",props:{color:{}},setup(e){return(e,t)=>((0,i.wg)(),(0,i.j4)(tp,{class:"text-color-btn"},{default:(0,i.w5)((()=>[(0,i.WI)(e.$slots,"default"),(0,i._)("div",Bf,[(0,i._)("div",{class:"text-color-block-content",style:(0,oe.j5)({backgroundColor:e.color})},null,4)])])),_:3}))}});const jf=(0,Vl.Z)(Nf,[["__scopeId","data-v-37449800"]]);var Yf=jf,Vf=(0,i.aZ)({__name:"CheckboxButton",props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(e,t)=>((0,i.wg)(),(0,i.j4)(tp,{checked:e.checked,disabled:e.disabled,type:"checkbox"},{default:(0,i.w5)((()=>[(0,i.WI)(e.$slots,"default")])),_:3},8,["checked","disabled"]))}});const Jf=Vf;var qf=Jf,Xf=(0,i.aZ)({__name:"ButtonGroup",props:{passive:{type:Boolean,default:!1}},setup(e){return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["button-group",{passive:e.passive}]),ref:"groupRef"},[(0,i.WI)(e.$slots,"default")],2))}});const Gf=(0,Vl.Z)(Xf,[["__scopeId","data-v-4db942e2"]]);var Kf=Gf,Qf=(0,i.aZ)({__name:"RadioButton",props:{value:{},disabled:{type:Boolean,default:!1}},setup(e){const{value:t,updateValue:l}=(0,i.f3)(Mn);return(e,a)=>((0,i.wg)(),(0,i.j4)(tp,{checked:!e.disabled&&(0,s.SU)(t)===e.value,disabled:e.disabled,type:"radio",onClick:a[0]||(a[0]=t=>!e.disabled&&(0,s.SU)(l)(e.value))},{default:(0,i.w5)((()=>[(0,i.WI)(e.$slots,"default")])),_:3},8,["checked","disabled"]))}});const eg=Qf;var tg=eg,lg=(0,i.aZ)({__name:"RadioGroup",props:{value:{},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const l=e,a=t,n=e=>{l.disabled||a("update:value",e)},o=(0,i.Fl)((()=>l.value));return(0,i.JJ)(Mn,{value:o,updateValue:n}),(e,t)=>((0,i.wg)(),(0,i.j4)(Kf,{class:"radio-group"},{default:(0,i.w5)((()=>[(0,i.WI)(e.$slots,"default")])),_:3}))}});const ag=lg;var ng=ag;const og={class:"select-group"};function ig(e,t){return(0,i.wg)(),(0,i.iD)("div",og,[(0,i.WI)(e.$slots,"default",{},void 0,!0)])}const sg={},rg=(0,Vl.Z)(sg,[["render",ig],["__scopeId","data-v-d2acb09c"]]);var ug=rg;const cg=e=>((0,i.dD)("data-v-4cf37a85"),e=e(),(0,i.Cn)(),e),dg={class:"text-style-panel"},pg={class:"preset-style"},vg=["onClick"],mg={class:"link-popover"},hg={class:"btns"},fg={class:"row",passive:""},gg={class:"list-wrap"},yg=["onClick"],wg=cg((()=>(0,i._)("span",null,null,-1))),xg=[wg],kg=cg((()=>(0,i._)("div",{style:{width:"10px"}},null,-1))),bg={class:"list-wrap"},_g=["onClick"],Ig=cg((()=>(0,i._)("span",null,null,-1))),Sg=[Ig],Cg={class:"row"},Lg=cg((()=>(0,i._)("div",{style:{width:"10px"}},null,-1))),Tg={class:"row"},Eg=cg((()=>(0,i._)("div",{style:{width:"40%"}},"行间距:",-1))),Mg={class:"row"},Ug=cg((()=>(0,i._)("div",{style:{width:"40%"}},"段间距:",-1))),Wg={class:"row"},Dg=cg((()=>(0,i._)("div",{style:{width:"40%"}},"字间距:",-1))),Hg={class:"row"},Fg=cg((()=>(0,i._)("div",{style:{width:"40%"}},"文本框填充:",-1)));var Ag=(0,i.aZ)({__name:"TextStylePanel",setup(e){const t=[{label:"大标题",style:{fontSize:"26px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"66px"},{command:"align",value:"center"}]},{label:"小标题",style:{fontSize:"22px",fontWeight:700},cmd:[{command:"clear"},{command:"bold"},{command:"fontsize",value:"40px"},{command:"align",value:"center"}]},{label:"正文",style:{fontSize:"20px"},cmd:[{command:"clear"},{command:"fontsize",value:"20px"}]},{label:"正文[小]",style:{fontSize:"18px"},cmd:[{command:"clear"},{command:"fontsize",value:"18px"}]},{label:"注释 1",style:{fontSize:"16px",fontStyle:"italic"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"em"}]},{label:"注释 2",style:{fontSize:"16px",textDecoration:"underline"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"underline"}]}],l=R(),a=$(),{handleElement:n,handleElementId:r,richTextAttrs:u,availableFonts:c,textFormatPainter:d}=(0,o.Jk)(l),{addHistorySnapshot:p}=da(),{toggleTextFormatPainter:v}=zm(),m=e=>{a.updateElement({id:r.value,props:e}),p()},h=(0,s.iH)(!1),f=(0,s.iH)(!1),g=(0,s.iH)(!1),y=(0,s.iH)(!1),w=(0,s.iH)(["disc","circle","square"]),x=(0,s.iH)(["decimal","lower-roman","upper-roman","lower-alpha","upper-alpha","lower-greek"]),k=(0,s.iH)("#000"),b=(0,s.iH)(),_=(0,s.iH)(),I=(0,s.iH)();(0,i.YP)(n,(()=>{n.value&&"text"===n.value.type&&(k.value=n.value.fill||"#fff",b.value=n.value.lineHeight||1.5,_.value=n.value.wordSpace||0,I.value=void 0===n.value.paragraphSpace?5:n.value.paragraphSpace,Oi.emit(Ai.SYNC_RICH_TEXT_ATTRS_TO_STORE))}),{deep:!0,immediate:!0});const S=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],C=[.9,1,1.15,1.2,1.4,1.5,1.8,2,2.5,3],L=[0,1,2,3,4,5,6,8,10],T=[0,5,10,15,20,25,30,40,50,80],E=e=>{m({lineHeight:e})},U=e=>{m({paragraphSpace:e})},W=e=>{m({wordSpace:e})},D=e=>{m({fill:e})},H=(e,t)=>{Oi.emit(Ai.RICH_TEXT_COMMAND,{action:{command:e,value:t}})},F=e=>{Oi.emit(Ai.RICH_TEXT_COMMAND,{action:e})},A=(0,s.iH)(""),Z=(0,s.iH)(!1);(0,i.YP)(u,(()=>Z.value=!1));const O=()=>{A.value=u.value.link},z=e=>{const t=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(!e||!t.test(e))return ta.error("不是正确的网页链接地址");H("link",e),Z.value=!1};return(e,l)=>{const a=(0,i.up)("IconFontSize"),n=(0,i.up)("IconAddText"),o=(0,i.up)("IconText"),r=(0,i.up)("IconHighLight"),p=(0,i.up)("IconTextBold"),m=(0,i.up)("IconTextItalic"),$=(0,i.up)("IconTextUnderline"),R=(0,i.up)("IconStrikethrough"),P=(0,i.up)("IconCode"),B=(0,i.up)("IconQuote"),N=(0,i.up)("IconFormat"),j=(0,i.up)("IconFormatBrush"),Y=(0,i.up)("IconLinkOne"),V=(0,i.up)("IconAlignTextLeft"),J=(0,i.up)("IconAlignTextCenter"),q=(0,i.up)("IconAlignTextRight"),X=(0,i.up)("IconAlignTextBoth"),G=(0,i.up)("IconList"),K=(0,i.up)("IconDown"),Q=(0,i.up)("IconOrderedList"),ee=(0,i.up)("IconIndentLeft"),te=(0,i.up)("IconIndentRight"),le=(0,i.up)("IconRowHeight"),ae=(0,i.up)("IconVerticalSpacingBetweenItems"),ne=(0,i.up)("IconFullwidth"),ie=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",dg,[(0,i._)("div",pg,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(t,(e=>(0,i._)("div",{class:"preset-style-item",key:e.label,style:(0,oe.j5)(e.style),onClick:t=>F(e.cmd)},(0,oe.zw)(e.label),13,vg))),64))]),(0,i.Wm)(Zc),(0,i.Wm)(ug,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(cp,{class:"font-select",style:{width:"60%"},value:(0,s.SU)(u).fontname,"onUpdate:value":l[0]||(l[0]=e=>H("fontname",e)),options:[...(0,s.SU)(c),...(0,s.SU)(M)]},{icon:(0,i.w5)((()=>[(0,i.Wm)(a)])),_:1},8,["value","options"]),(0,i.Wm)(cp,{style:{width:"40%"},value:(0,s.SU)(u).fontsize,"onUpdate:value":l[1]||(l[1]=e=>H("fontsize",e)),options:S.map((e=>({label:e,value:e})))},{icon:(0,i.w5)((()=>[(0,i.Wm)(n)])),_:1},8,["value","options"])])),_:1}),(0,i.Wm)(Kf,{class:"row",passive:""},{default:(0,i.w5)((()=>[(0,i.Wm)(dn,{trigger:"click",style:{width:"30%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(u).color,"onUpdate:modelValue":l[2]||(l[2]=e=>H("color",e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(Yf,{first:"",color:(0,s.SU)(u).color},{default:(0,i.w5)((()=>[(0,i.Wm)(o)])),_:1},8,["color"])),[[ie,"文字颜色"]])])),_:1}),(0,i.Wm)(dn,{trigger:"click",style:{width:"30%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(u).backcolor,"onUpdate:modelValue":l[3]||(l[3]=e=>H("backcolor",e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(Yf,{color:(0,s.SU)(u).backcolor},{default:(0,i.w5)((()=>[(0,i.Wm)(r)])),_:1},8,["color"])),[[ie,"文字高亮"]])])),_:1}),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{class:"font-size-btn",style:{width:"20%"},onClick:l[4]||(l[4]=e=>H("fontsize-add"))},{default:(0,i.w5)((()=>[(0,i.Wm)(a),(0,i.Uk)("+")])),_:1})),[[ie,"增大字号"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:l[5]||(l[5]=e=>H("fontsize-reduce"))},{default:(0,i.w5)((()=>[(0,i.Wm)(a),(0,i.Uk)("-")])),_:1})),[[ie,"减小字号"]])])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).bold,onClick:l[6]||(l[6]=e=>H("bold"))},{default:(0,i.w5)((()=>[(0,i.Wm)(p)])),_:1},8,["checked"])),[[ie,"加粗"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).em,onClick:l[7]||(l[7]=e=>H("em"))},{default:(0,i.w5)((()=>[(0,i.Wm)(m)])),_:1},8,["checked"])),[[ie,"斜体"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).underline,onClick:l[8]||(l[8]=e=>H("underline"))},{default:(0,i.w5)((()=>[(0,i.Wm)($)])),_:1},8,["checked"])),[[ie,"下划线"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).strikethrough,onClick:l[9]||(l[9]=e=>H("strikethrough"))},{default:(0,i.w5)((()=>[(0,i.Wm)(R)])),_:1},8,["checked"])),[[ie,"删除线"]])])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).superscript,onClick:l[10]||(l[10]=e=>H("superscript"))},{default:(0,i.w5)((()=>[(0,i.Uk)("A²")])),_:1},8,["checked"])),[[ie,"上标"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).subscript,onClick:l[11]||(l[11]=e=>H("subscript"))},{default:(0,i.w5)((()=>[(0,i.Uk)("A₂")])),_:1},8,["checked"])),[[ie,"下标"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).code,onClick:l[12]||(l[12]=e=>H("code"))},{default:(0,i.w5)((()=>[(0,i.Wm)(P)])),_:1},8,["checked"])),[[ie,"行内代码"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).blockquote,onClick:l[13]||(l[13]=e=>H("blockquote"))},{default:(0,i.w5)((()=>[(0,i.Wm)(B)])),_:1},8,["checked"])),[[ie,"引用"]])])),_:1}),(0,i.Wm)(Kf,{class:"row",passive:""},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{first:"",style:{flex:"1"},onClick:l[14]||(l[14]=e=>H("clear"))},{default:(0,i.w5)((()=>[(0,i.Wm)(N)])),_:1})),[[ie,"清除格式"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:!!(0,s.SU)(d),onClick:l[15]||(l[15]=e=>(0,s.SU)(v)()),onDblclick:l[16]||(l[16]=e=>(0,s.SU)(v)(!0))},{default:(0,i.w5)((()=>[(0,i.Wm)(j)])),_:1},8,["checked"])),[[ie,"格式刷(双击连续使用)"]]),(0,i.Wm)(dn,{placement:"bottom-end",trigger:"click",value:Z.value,"onUpdate:value":l[21]||(l[21]=e=>Z.value=e),style:{width:"33.33%"}},{content:(0,i.w5)((()=>[(0,i._)("div",mg,[(0,i.Wm)(sn,{value:A.value,"onUpdate:value":l[17]||(l[17]=e=>A.value=e),placeholder:"请输入超链接"},null,8,["value"]),(0,i._)("div",hg,[(0,i.Wm)(tp,{size:"small",disabled:!(0,s.SU)(u).link,onClick:l[18]||(l[18]=e=>z()),style:{"margin-right":"5px"}},{default:(0,i.w5)((()=>[(0,i.Uk)("移除")])),_:1},8,["disabled"]),(0,i.Wm)(tp,{size:"small",type:"primary",onClick:l[19]||(l[19]=e=>z(A.value))},{default:(0,i.w5)((()=>[(0,i.Uk)("确认")])),_:1})])])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{last:"",style:{width:"100%"},checked:!!(0,s.SU)(u).link,onClick:l[20]||(l[20]=e=>O())},{default:(0,i.w5)((()=>[(0,i.Wm)(Y)])),_:1},8,["checked"])),[[ie,"超链接"]])])),_:1},8,["value"])])),_:1}),(0,i.Wm)(Zc),(0,i.Wm)(ng,{class:"row","button-style":"solid",value:(0,s.SU)(u).align,"onUpdate:value":l[22]||(l[22]=e=>H("align",e))},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"left",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(V)])),_:1})),[[ie,"左对齐"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"center",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(J)])),_:1})),[[ie,"居中"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"right",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(q)])),_:1})),[[ie,"右对齐"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"justify",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(X)])),_:1})),[[ie,"两端对齐"]])])),_:1},8,["value"]),(0,i._)("div",fg,[(0,i.Wm)(Kf,{style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{first:"",type:(0,s.SU)(u).bulletList?"primary":"default",style:{flex:"1"},onClick:l[23]||(l[23]=e=>H("bulletList"))},{default:(0,i.w5)((()=>[(0,i.Wm)(G)])),_:1},8,["type"])),[[ie,"项目符号"]]),(0,i.Wm)(dn,{trigger:"click",value:h.value,"onUpdate:value":l[24]||(l[24]=e=>h.value=e)},{content:(0,i.w5)((()=>[(0,i._)("div",gg,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(w.value,(e=>((0,i.wg)(),(0,i.iD)("ul",{class:"list",key:e,style:(0,oe.j5)({listStyleType:e}),onClick:t=>H("bulletList",e)},[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(3,(e=>(0,i._)("li",{class:"list-item",key:e},xg))),64))],12,yg)))),128))])])),default:(0,i.w5)((()=>[(0,i.Wm)(tp,{last:"",class:"popover-btn"},{default:(0,i.w5)((()=>[(0,i.Wm)(K)])),_:1})])),_:1},8,["value"])])),_:1}),kg,(0,i.Wm)(Kf,{style:{flex:"1"},passive:""},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{first:"",type:(0,s.SU)(u).orderedList?"primary":"default",style:{flex:"1"},onClick:l[25]||(l[25]=e=>H("orderedList"))},{default:(0,i.w5)((()=>[(0,i.Wm)(Q)])),_:1},8,["type"])),[[ie,"编号"]]),(0,i.Wm)(dn,{trigger:"click",value:f.value,"onUpdate:value":l[26]||(l[26]=e=>f.value=e)},{content:(0,i.w5)((()=>[(0,i._)("div",bg,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(x.value,(e=>((0,i.wg)(),(0,i.iD)("ul",{class:"list",key:e,style:(0,oe.j5)({listStyleType:e}),onClick:t=>H("orderedList",e)},[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(3,(e=>(0,i._)("li",{class:"list-item",key:e},Sg))),64))],12,_g)))),128))])])),default:(0,i.w5)((()=>[(0,i.Wm)(tp,{last:"",class:"popover-btn"},{default:(0,i.w5)((()=>[(0,i.Wm)(K)])),_:1})])),_:1},8,["value"])])),_:1})]),(0,i._)("div",Cg,[(0,i.Wm)(Kf,{style:{flex:"1"},passive:""},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{first:"",style:{flex:"1"},onClick:l[27]||(l[27]=e=>H("indent","-1"))},{default:(0,i.w5)((()=>[(0,i.Wm)(ee)])),_:1})),[[ie,"减小段落缩进"]]),(0,i.Wm)(dn,{trigger:"click",value:g.value,"onUpdate:value":l[29]||(l[29]=e=>g.value=e)},{content:(0,i.w5)((()=>[(0,i.Wm)(mn,{onClick:l[28]||(l[28]=e=>H("textIndent","-1"))},{default:(0,i.w5)((()=>[(0,i.Uk)("减小首行缩进")])),_:1})])),default:(0,i.w5)((()=>[(0,i.Wm)(tp,{last:"",class:"popover-btn"},{default:(0,i.w5)((()=>[(0,i.Wm)(K)])),_:1})])),_:1},8,["value"])])),_:1}),Lg,(0,i.Wm)(Kf,{style:{flex:"1"},passive:""},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{first:"",style:{flex:"1"},onClick:l[30]||(l[30]=e=>H("indent","+1"))},{default:(0,i.w5)((()=>[(0,i.Wm)(te)])),_:1})),[[ie,"增大段落缩进"]]),(0,i.Wm)(dn,{trigger:"click",value:y.value,"onUpdate:value":l[32]||(l[32]=e=>y.value=e)},{content:(0,i.w5)((()=>[(0,i.Wm)(mn,{onClick:l[31]||(l[31]=e=>H("textIndent","+1"))},{default:(0,i.w5)((()=>[(0,i.Uk)("增大首行缩进")])),_:1})])),default:(0,i.w5)((()=>[(0,i.Wm)(tp,{last:"",class:"popover-btn"},{default:(0,i.w5)((()=>[(0,i.Wm)(K)])),_:1})])),_:1},8,["value"])])),_:1})]),(0,i.Wm)(Zc),(0,i._)("div",Tg,[Eg,(0,i.Wm)(cp,{style:{width:"60%"},value:b.value||1,"onUpdate:value":l[33]||(l[33]=e=>E(e)),options:C.map((e=>({label:e+"倍",value:e})))},{icon:(0,i.w5)((()=>[(0,i.Wm)(le)])),_:1},8,["value","options"])]),(0,i._)("div",Mg,[Ug,(0,i.Wm)(cp,{style:{width:"60%"},value:I.value||0,"onUpdate:value":l[34]||(l[34]=e=>U(e)),options:T.map((e=>({label:e+"px",value:e})))},{icon:(0,i.w5)((()=>[(0,i.Wm)(ae)])),_:1},8,["value","options"])]),(0,i._)("div",Wg,[Dg,(0,i.Wm)(cp,{style:{width:"60%"},value:_.value||0,"onUpdate:value":l[35]||(l[35]=e=>W(e)),options:L.map((e=>({label:e+"px",value:e})))},{icon:(0,i.w5)((()=>[(0,i.Wm)(ne)])),_:1},8,["value","options"])]),(0,i._)("div",Hg,[Fg,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:k.value,"onUpdate:modelValue":l[36]||(l[36]=e=>D(e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:k.value},null,8,["color"])])),_:1})]),(0,i.Wm)(Zc),(0,i.Wm)(Cf),(0,i.Wm)(Zc),(0,i.Wm)(Pf),(0,i.Wm)(Zc),(0,i.Wm)(lh)])}}});const $g=(0,Vl.Z)(Ag,[["__scopeId","data-v-4cf37a85"]]);var Zg=$g;const Og={class:"element-flip"};var Rg=(0,i.aZ)({__name:"ElementFlip",setup(e){const t=$(),{handleElement:l}=(0,o.Jk)(R()),a=(0,s.iH)(!1),n=(0,s.iH)(!1);(0,i.YP)(l,(()=>{!l.value||"image"!==l.value.type&&"shape"!==l.value.type||(a.value=!!l.value.flipH,n.value=!!l.value.flipV)}),{deep:!0,immediate:!0});const{addHistorySnapshot:r}=da(),u=e=>{l.value&&(t.updateElement({id:l.value.id,props:e}),r())};return(e,t)=>{const l=(0,i.up)("IconFlipVertically"),o=(0,i.up)("IconFlipHorizontally");return(0,i.wg)(),(0,i.iD)("div",Og,[(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(qf,{style:{flex:"1"},checked:n.value,onClick:t[0]||(t[0]=e=>u({flipV:!n.value}))},{default:(0,i.w5)((()=>[(0,i.Wm)(l),(0,i.Uk)(" 垂直翻转")])),_:1},8,["checked"]),(0,i.Wm)(qf,{style:{flex:"1"},checked:a.value,onClick:t[1]||(t[1]=e=>u({flipH:!a.value}))},{default:(0,i.w5)((()=>[(0,i.Wm)(o),(0,i.Uk)(" 水平翻转")])),_:1},8,["checked"])])),_:1})])}}});const zg=(0,Vl.Z)(Rg,[["__scopeId","data-v-7571b056"]]);var Pg=zg;const Bg=e=>((0,i.dD)("data-v-2c8acf3c"),e=e(),(0,i.Cn)(),e),Ng={class:"element-filter"},jg={class:"row"},Yg=Bg((()=>(0,i._)("div",{style:{flex:"2"}},"启用滤镜:",-1))),Vg={class:"switch-wrapper",style:{flex:"3"}},Jg={key:0,class:"filter"},qg={class:"name"};var Xg=(0,i.aZ)({__name:"ElementFilter",setup(e){const t=[{label:"模糊",key:"blur",default:0,value:0,unit:"px",max:10,step:1},{label:"亮度",key:"brightness",default:100,value:100,unit:"%",max:200,step:5},{label:"对比度",key:"contrast",default:100,value:100,unit:"%",max:200,step:5},{label:"灰度",key:"grayscale",default:0,value:0,unit:"%",max:100,step:5},{label:"饱和度",key:"saturate",default:100,value:100,unit:"%",max:200,step:5},{label:"色相",key:"hue-rotate",default:0,value:0,unit:"deg",max:360,step:10},{label:"不透明度",key:"opacity",default:100,value:100,unit:"%",max:100,step:5}],l=$(),{handleElement:a,handleElementId:n}=(0,o.Jk)(R()),r=(0,s.iH)(JSON.parse(JSON.stringify(t))),u=(0,s.iH)(!1),{addHistorySnapshot:c}=da();(0,i.YP)(a,(()=>{if(!a.value||"image"!==a.value.type)return;const e=a.value.filters;e?(r.value=t.map((t=>{const l=e[t.key];return l?{...t,value:parseInt(l)}:t})),u.value=!0):(r.value=JSON.parse(JSON.stringify(t)),u.value=!1)}),{deep:!0,immediate:!0});const d=(e,t)=>{const o=a.value,i=o.filters||{},s={...i,[e.key]:`${t}${e.unit}`};l.updateElement({id:n.value,props:{filters:s}}),c()},p=e=>{a.value&&(e?l.updateElement({id:a.value.id,props:{filters:{}}}):l.removeElementProps({id:a.value.id,propName:"filters"}),c())};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Ng,[(0,i._)("div",jg,[Yg,(0,i._)("div",Vg,[(0,i.Wm)(pf,{value:u.value,"onUpdate:value":t[0]||(t[0]=e=>p(e))},null,8,["value"])])]),u.value?((0,i.wg)(),(0,i.iD)("div",Jg,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(r.value,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"filter-item",key:e.key},[(0,i._)("div",qg,(0,oe.zw)(e.label),1),(0,i.Wm)(qm,{class:"filter-slider",max:e.max,min:0,step:e.step,value:e.value,"onUpdate:value":t=>d(e,t)},null,8,["max","step","value","onUpdate:value"])])))),128))])):(0,i.kq)("",!0)]))}});const Gg=(0,Vl.Z)(Xg,[["__scopeId","data-v-2c8acf3c"]]);var Kg=Gg;const Qg=e=>((0,i.dD)("data-v-0ae0ff99"),e=e(),(0,i.Cn)(),e),ey={class:"element-color-mask"},ty={class:"row"},ly=Qg((()=>(0,i._)("div",{style:{width:"40%"}},"着色(蒙版):",-1))),ay={class:"switch-wrapper",style:{width:"60%"}},ny={key:0,class:"row",style:{"margin-top":"15px"}},oy=Qg((()=>(0,i._)("div",{style:{width:"40%"}},"蒙版颜色:",-1))),iy="rgba(226, 83, 77, 0.5)";var sy=(0,i.aZ)({__name:"ElementColorMask",setup(e){const t=$(),{handleElement:l,handleElementId:a}=(0,o.Jk)(R()),n=(0,s.iH)(iy),r=(0,s.iH)(!1),{addHistorySnapshot:u}=da();(0,i.YP)(l,(()=>{l.value&&"image"===l.value.type&&(l.value.colorMask?(n.value=l.value.colorMask,r.value=!0):r.value=!1)}),{deep:!0,immediate:!0});const c=e=>{l.value&&(e?t.updateElement({id:l.value.id,props:{colorMask:iy}}):t.removeElementProps({id:l.value.id,propName:"colorMask"}),u())},d=e=>{t.updateElement({id:a.value,props:{colorMask:e}}),u()};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",ey,[(0,i._)("div",ty,[ly,(0,i._)("div",ay,[(0,i.Wm)(pf,{value:r.value,"onUpdate:value":t[0]||(t[0]=e=>c(e))},null,8,["value"])])]),r.value?((0,i.wg)(),(0,i.iD)("div",ny,[oy,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=e=>d(e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:n.value},null,8,["color"])])),_:1})])):(0,i.kq)("",!0)]))}});const ry=(0,Vl.Z)(sy,[["__scopeId","data-v-0ae0ff99"]]);var uy=ry;const cy=e=>((0,i.dD)("data-v-080b6de7"),e=e(),(0,i.Cn)(),e),dy={class:"image-style-panel"},py={class:"clip"},vy=cy((()=>(0,i._)("div",{class:"title"},"按形状:",-1))),my={class:"shape-clip"},hy=["onClick"],fy={key:0,class:"title"};var gy=(0,i.aZ)({__name:"ImageStylePanel",setup(e){const t=Kn,l=[{label:"纵横比(正方形)",children:[{key:"1:1",ratio:1}]},{label:"纵横比(纵向)",children:[{key:"2:3",ratio:1.5},{key:"3:4",ratio:4/3},{key:"3:5",ratio:5/3},{key:"4:5",ratio:5/4}]},{label:"纵横比(横向)",children:[{key:"3:2",ratio:2/3},{key:"4:3",ratio:3/4},{key:"5:3",ratio:.6},{key:"5:4",ratio:.8}]},{children:[{key:"16:9",ratio:9/16},{key:"16:10",ratio:.625}]}],a=R(),n=$(),{handleElement:r,handleElementId:u}=(0,o.Jk)(a),{currentSlide:c}=(0,o.Jk)(n),d=r,p=(0,s.iH)(!1),{addHistorySnapshot:v}=da(),m=()=>{a.setClipingImageElementId(u.value),p.value=!1},h=()=>{const e=r.value,t=e.width,l=e.height,a=e.left,n=e.top,o=e.clip?e.clip.range:[[0,0],[100,100]],i=t/((o[1][0]-o[0][0])/100),s=l/((o[1][1]-o[0][1])/100),u=a-i*(o[0][0]/100),c=n-s*(o[0][1]/100);return{originClipRange:o,originWidth:i,originHeight:s,originLeft:u,originTop:c}},f=(e,t=0)=>{const l=r.value,{originClipRange:a,originWidth:o,originHeight:i,originLeft:s,originTop:c}=h();if(t){const a=i/o,r=0,d=100;let p;if(a>t){const e=(1-t/a)/2*100;p=[[r,e],[d,d-e]]}else{const e=(1-a/t)/2*100;p=[[e,r],[d-e,d]]}n.updateElement({id:u.value,props:{clip:{...l.clip,shape:e,range:p},left:s+o*(p[0][0]/100),top:c+i*(p[0][1]/100),width:o*(p[1][0]-p[0][0])/100,height:i*(p[1][1]-p[0][1])/100}})}else n.updateElement({id:u.value,props:{clip:{...l.clip,shape:e,range:a}}});m(),v()},g=e=>{const t=e[0];t&&(na(t).then((e=>{const t={src:e};n.updateElement({id:u.value,props:t})})),v())},y=()=>{const e=r.value;if(e.clip){const{originWidth:e,originHeight:t,originLeft:l,originTop:a}=h();n.updateElement({id:u.value,props:{left:l,top:a,width:e,height:t}})}n.removeElementProps({id:u.value,propName:["clip","outline","flip","shadow","filters","colorMask"]}),v()},w=()=>{const e=r.value,t={...c.value.background,type:"image",image:e.src,imageSize:"cover"};n.updateSlide({background:t}),v()};return(e,a)=>{const n=(0,i.up)("IconTailoring"),o=(0,i.up)("IconDown"),r=(0,i.up)("IconTransform"),u=(0,i.up)("IconUndo"),c=(0,i.up)("IconTheme");return(0,i.wg)(),(0,i.iD)("div",dy,[(0,i._)("div",{class:"origin-image",style:(0,oe.j5)({backgroundImage:`url(${(0,s.SU)(d).src})`})},null,4),(0,i.Wm)(Pg),(0,i.Wm)(Kf,{class:"row",passive:""},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{first:"",style:{width:"calc(100% / 6 * 5)"},onClick:a[0]||(a[0]=e=>m())},{default:(0,i.w5)((()=>[(0,i.Wm)(n,{class:"btn-icon"}),(0,i.Uk)(" 裁剪图片")])),_:1}),(0,i.Wm)(dn,{trigger:"click",value:p.value,"onUpdate:value":a[1]||(a[1]=e=>p.value=e),style:{width:"calc(100% / 6)"}},{content:(0,i.w5)((()=>[(0,i._)("div",py,[vy,(0,i._)("div",my,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(t),((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"shape-clip-item",key:t,onClick:e=>f(t)},[(0,i._)("div",{class:"shape",style:(0,oe.j5)({clipPath:e.style})},null,4)],8,hy)))),128))]),((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(l,(e=>((0,i.wg)(),(0,i.iD)(i.HY,{key:e.label},[e.label?((0,i.wg)(),(0,i.iD)("div",fy,"按"+(0,oe.zw)(e.label)+":",1)):(0,i.kq)("",!0),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.children,(e=>((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},key:e.key,onClick:t=>f("rect",e.ratio)},{default:(0,i.w5)((()=>[(0,i.Uk)((0,oe.zw)(e.key),1)])),_:2},1032,["onClick"])))),128))])),_:2},1024)],64)))),64))])])),default:(0,i.w5)((()=>[(0,i.Wm)(tp,{last:"",class:"popover-btn",style:{width:"100%"}},{default:(0,i.w5)((()=>[(0,i.Wm)(o)])),_:1})])),_:1},8,["value"])])),_:1}),(0,i.Wm)(Zc),(0,i.Wm)(uy),(0,i.Wm)(Zc),(0,i.Wm)(Kg),(0,i.Wm)(Zc),(0,i.Wm)(Cf),(0,i.Wm)(Zc),(0,i.Wm)(Pf),(0,i.Wm)(Zc),(0,i.Wm)(Pa,{onChange:a[2]||(a[2]=e=>g(e))},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{class:"full-width-btn"},{default:(0,i.w5)((()=>[(0,i.Wm)(r,{class:"btn-icon"}),(0,i.Uk)(" 替换图片")])),_:1})])),_:1}),(0,i.Wm)(tp,{class:"full-width-btn",onClick:a[3]||(a[3]=e=>y())},{default:(0,i.w5)((()=>[(0,i.Wm)(u,{class:"btn-icon"}),(0,i.Uk)(" 重置样式")])),_:1}),(0,i.Wm)(tp,{class:"full-width-btn",onClick:a[4]||(a[4]=e=>w())},{default:(0,i.w5)((()=>[(0,i.Wm)(c,{class:"btn-icon"}),(0,i.Uk)(" 设为背景")])),_:1})])}}});const yy=(0,Vl.Z)(gy,[["__scopeId","data-v-080b6de7"]]);var wy=yy,xy=()=>{const e=R(),{shapeFormatPainter:t,handleElement:l}=(0,o.Jk)(e),a=(a=!1)=>{const n=l.value;t.value?e.setShapeFormatPainter(null):e.setShapeFormatPainter({keep:a,fill:n.fill,gradient:n.gradient,outline:n.outline,opacity:n.opacity,shadow:n.shadow})};return{toggleShapeFormatPainter:a}};const ky=e=>((0,i.dD)("data-v-0674f2cf"),e=e(),(0,i.Cn)(),e),by={class:"shape-style-panel"},_y={class:"title"},Iy=ky((()=>(0,i._)("span",null,"点击替换形状",-1))),Sy={class:"shape-pool"},Cy={class:"shape-list"},Ly={class:"row"},Ty=ky((()=>(0,i._)("div",{style:{width:"10px"}},null,-1))),Ey={class:"row"},My=ky((()=>(0,i._)("div",{style:{width:"40%"}},"起点颜色:",-1))),Uy={class:"row"},Wy=ky((()=>(0,i._)("div",{style:{width:"40%"}},"终点颜色:",-1))),Dy={key:0,class:"row"},Hy=ky((()=>(0,i._)("div",{style:{width:"40%"}},"渐变角度:",-1))),Fy={class:"row"};var Ay=(0,i.aZ)({__name:"ShapeStylePanel",setup(e){const t=R(),l=$(),{handleElement:a,handleElementId:n,richTextAttrs:r,availableFonts:u,textFormatPainter:c,shapeFormatPainter:d}=(0,o.Jk)(t),p=a,v=(0,s.iH)("#000"),m=(0,s.iH)({type:"linear",rotate:0,color:["#fff","#fff"]}),h=(0,s.iH)("fill"),f=(0,s.iH)("middle");(0,i.YP)(a,(()=>{a.value&&"shape"===a.value.type&&(v.value=a.value.fill||"#fff",m.value=a.value.gradient||{type:"linear",rotate:0,color:[v.value,"#fff"]},h.value=a.value.gradient?"gradient":"fill",f.value=a.value?.text?.align||"middle")}),{deep:!0,immediate:!0});const{addHistorySnapshot:g}=da(),{toggleTextFormatPainter:y}=zm(),{toggleShapeFormatPainter:w}=xy(),x=e=>{l.updateElement({id:n.value,props:e}),g()},k=e=>{"fill"===e?(l.removeElementProps({id:n.value,propName:"gradient"}),g()):x({gradient:m.value})},b=e=>{if(!m.value)return;const t={...m.value,...e};x({gradient:t})},_=e=>{x({fill:e})},I=e=>{const{width:t,height:l}=a.value,n={viewBox:e.viewBox,path:e.path,special:e.special};if(e.pathFormula){n.pathFormula=e.pathFormula,n.viewBox=[t,l];const a=ra[e.pathFormula];"editable"in a?(n.path=a.formula(t,l,a.defaultValue),n.keypoint=a.defaultValue):n.path=a.formula(t,l)}else n.pathFormula=void 0,n.keypoint=void 0;x(n)},S=e=>{const t=a.value,l={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"},n=t.text||l;x({text:{...n,align:e}})},C=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],L=(e,t)=>{Oi.emit(Ai.RICH_TEXT_COMMAND,{action:{command:e,value:t}})};return(e,t)=>{const l=(0,i.up)("IconDown"),a=(0,i.up)("IconFontSize"),n=(0,i.up)("IconAddText"),o=(0,i.up)("IconText"),g=(0,i.up)("IconHighLight"),x=(0,i.up)("IconTextBold"),T=(0,i.up)("IconTextItalic"),E=(0,i.up)("IconTextUnderline"),U=(0,i.up)("IconStrikethrough"),W=(0,i.up)("IconFormat"),D=(0,i.up)("IconFormatBrush"),H=(0,i.up)("IconAlignTextLeft"),F=(0,i.up)("IconAlignTextCenter"),A=(0,i.up)("IconAlignTextRight"),$=(0,i.up)("IconAlignTextTopOne"),Z=(0,i.up)("IconAlignTextMiddleOne"),O=(0,i.up)("IconAlignTextBottomOne"),R=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",by,[(0,i._)("div",_y,[Iy,(0,i.Wm)(l)]),(0,i._)("div",Sy,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(ua),(e=>((0,i.wg)(),(0,i.iD)("div",{class:"category",key:e.type},[(0,i._)("div",Cy,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.children,((e,t)=>((0,i.wg)(),(0,i.iD)(i.HY,null,["任意多边形"!==e.title?((0,i.wg)(),(0,i.j4)(Hp,{class:"shape-item",key:t,shape:e,onClick:t=>I(e)},null,8,["shape","onClick"])):(0,i.kq)("",!0)],64)))),256))])])))),128))]),(0,i._)("div",Ly,[(0,i.Wm)(cp,{style:{flex:"1"},value:h.value,"onUpdate:value":t[0]||(t[0]=e=>k(e)),options:[{label:"纯色填充",value:"fill"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),Ty,"fill"===h.value?((0,i.wg)(),(0,i.j4)(dn,{key:0,trigger:"click",style:{flex:"1"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:v.value,"onUpdate:modelValue":t[1]||(t[1]=e=>_(e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:v.value},null,8,["color"])])),_:1})):((0,i.wg)(),(0,i.j4)(cp,{key:1,style:{flex:"1"},value:m.value.type,"onUpdate:value":t[2]||(t[2]=e=>b({type:e})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),"gradient"===h.value?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i._)("div",Ey,[My,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:m.value.color[0],"onUpdate:modelValue":t[3]||(t[3]=e=>b({color:[e,m.value.color[1]]}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:m.value.color[0]},null,8,["color"])])),_:1})]),(0,i._)("div",Uy,[Wy,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:m.value.color[1],"onUpdate:modelValue":t[4]||(t[4]=e=>b({color:[m.value.color[0],e]}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:m.value.color[1]},null,8,["color"])])),_:1})]),"linear"===m.value.type?((0,i.wg)(),(0,i.iD)("div",Dy,[Hy,(0,i.Wm)(qm,{style:{width:"60%"},min:0,max:360,step:15,value:m.value.rotate,"onUpdate:value":t[5]||(t[5]=e=>b({rotate:e}))},null,8,["value"])])):(0,i.kq)("",!0)],64)):(0,i.kq)("",!0),(0,i.Wm)(Pg),(0,i.Wm)(Zc),(0,s.SU)(p).text?.content?((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i.Wm)(ug,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(cp,{class:"font-select",style:{width:"60%"},value:(0,s.SU)(r).fontname,"onUpdate:value":t[6]||(t[6]=e=>L("fontname",e)),options:[...(0,s.SU)(u),...(0,s.SU)(M)]},{icon:(0,i.w5)((()=>[(0,i.Wm)(a)])),_:1},8,["value","options"]),(0,i.Wm)(cp,{style:{width:"40%"},value:(0,s.SU)(r).fontsize,"onUpdate:value":t[7]||(t[7]=e=>L("fontsize",e)),options:C.map((e=>({label:e,value:e})))},{icon:(0,i.w5)((()=>[(0,i.Wm)(n)])),_:1},8,["value","options"])])),_:1}),(0,i.Wm)(Kf,{class:"row",passive:""},{default:(0,i.w5)((()=>[(0,i.Wm)(dn,{trigger:"click",style:{width:"30%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(r).color,"onUpdate:modelValue":t[8]||(t[8]=e=>L("color",e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(Yf,{first:"",color:(0,s.SU)(r).color},{default:(0,i.w5)((()=>[(0,i.Wm)(o)])),_:1},8,["color"])),[[R,"文字颜色"]])])),_:1}),(0,i.Wm)(dn,{trigger:"click",style:{width:"30%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(r).backcolor,"onUpdate:modelValue":t[9]||(t[9]=e=>L("backcolor",e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(Yf,{color:(0,s.SU)(r).backcolor},{default:(0,i.w5)((()=>[(0,i.Wm)(g)])),_:1},8,["color"])),[[R,"文字高亮"]])])),_:1}),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{class:"font-size-btn",style:{width:"20%"},onClick:t[10]||(t[10]=e=>L("fontsize-add"))},{default:(0,i.w5)((()=>[(0,i.Wm)(a),(0,i.Uk)("+")])),_:1})),[[R,"增大字号"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:t[11]||(t[11]=e=>L("fontsize-reduce"))},{default:(0,i.w5)((()=>[(0,i.Wm)(a),(0,i.Uk)("-")])),_:1})),[[R,"减小字号"]])])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(r).bold,onClick:t[12]||(t[12]=e=>L("bold"))},{default:(0,i.w5)((()=>[(0,i.Wm)(x)])),_:1},8,["checked"])),[[R,"加粗"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(r).em,onClick:t[13]||(t[13]=e=>L("em"))},{default:(0,i.w5)((()=>[(0,i.Wm)(T)])),_:1},8,["checked"])),[[R,"斜体"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(r).underline,onClick:t[14]||(t[14]=e=>L("underline"))},{default:(0,i.w5)((()=>[(0,i.Wm)(E)])),_:1},8,["checked"])),[[R,"下划线"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:(0,s.SU)(r).strikethrough,onClick:t[15]||(t[15]=e=>L("strikethrough"))},{default:(0,i.w5)((()=>[(0,i.Wm)(U)])),_:1},8,["checked"])),[[R,"删除线"]])])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},onClick:t[16]||(t[16]=e=>L("clear"))},{default:(0,i.w5)((()=>[(0,i.Wm)(W)])),_:1})),[[R,"清除格式"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:!!(0,s.SU)(c),onClick:t[17]||(t[17]=e=>(0,s.SU)(y)()),onDblclick:t[18]||(t[18]=e=>(0,s.SU)(y)(!0))},{default:(0,i.w5)((()=>[(0,i.Wm)(D)])),_:1},8,["checked"])),[[R,"格式刷(双击连续使用)"]])])),_:1}),(0,i.Wm)(Zc),(0,i.Wm)(ng,{class:"row","button-style":"solid",value:(0,s.SU)(r).align,"onUpdate:value":t[19]||(t[19]=e=>L("align",e))},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"left",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(H)])),_:1})),[[R,"左对齐"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"center",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(F)])),_:1})),[[R,"居中"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"right",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(A)])),_:1})),[[R,"右对齐"]])])),_:1},8,["value"]),(0,i.Wm)(ng,{class:"row","button-style":"solid",value:f.value,"onUpdate:value":t[20]||(t[20]=e=>S(e))},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"top",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)($)])),_:1})),[[R,"顶对齐"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"middle",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(Z)])),_:1})),[[R,"居中"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"bottom",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(O)])),_:1})),[[R,"底对齐"]])])),_:1},8,["value"]),(0,i.Wm)(Zc)],64)):(0,i.kq)("",!0),(0,i.Wm)(Cf),(0,i.Wm)(Zc),(0,i.Wm)(Pf),(0,i.Wm)(Zc),(0,i.Wm)(lh),(0,i.Wm)(Zc),(0,i._)("div",Fy,[(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:!!(0,s.SU)(d),onClick:t[21]||(t[21]=e=>(0,s.SU)(w)()),onDblclick:t[22]||(t[22]=e=>(0,s.SU)(w)(!0))},{default:(0,i.w5)((()=>[(0,i.Wm)(D),(0,i.Uk)(" 形状格式刷")])),_:1},8,["checked"])),[[R,"双击连续使用"]])])])}}});const $y=(0,Vl.Z)(Ay,[["__scopeId","data-v-0674f2cf"]]);var Zy=$y;const Oy=e=>((0,i.dD)("data-v-ae80032c"),e=e(),(0,i.Cn)(),e),Ry={class:"line-style-panel"},zy={class:"row"},Py=Oy((()=>(0,i._)("div",{style:{width:"40%"}},"线条样式:",-1))),By={class:"row"},Ny=Oy((()=>(0,i._)("div",{style:{width:"40%"}},"线条颜色:",-1))),jy={class:"row"},Yy=Oy((()=>(0,i._)("div",{style:{width:"40%"}},"线条宽度:",-1))),Vy={class:"row"},Jy=Oy((()=>(0,i._)("div",{style:{width:"40%"}},"起点样式:",-1))),qy={class:"row"},Xy=Oy((()=>(0,i._)("div",{style:{width:"40%"}},"终点样式:",-1)));var Gy=(0,i.aZ)({__name:"LineStylePanel",setup(e){const t=$(),{handleElement:l}=(0,o.Jk)(R()),a=l,{addHistorySnapshot:n}=da(),r=e=>{l.value&&(t.updateElement({id:l.value.id,props:e}),n())};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Ry,[(0,i._)("div",zy,[Py,(0,i.Wm)(cp,{style:{width:"60%"},value:(0,s.SU)(a).style,"onUpdate:value":t[0]||(t[0]=e=>r({style:e})),options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"}]},null,8,["value"])]),(0,i._)("div",By,[Ny,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(a).color,"onUpdate:modelValue":t[1]||(t[1]=e=>r({color:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:(0,s.SU)(a).color},null,8,["color"])])),_:1})]),(0,i._)("div",jy,[Yy,(0,i.Wm)(mv,{value:(0,s.SU)(a).width,"onUpdate:value":t[2]||(t[2]=e=>r({width:e})),style:{width:"60%"}},null,8,["value"])]),(0,i._)("div",Vy,[Jy,(0,i.Wm)(cp,{style:{width:"60%"},value:(0,s.SU)(a).points[0],"onUpdate:value":t[3]||(t[3]=e=>r({points:[e,(0,s.SU)(a).points[1]]})),options:[{label:"无",value:""},{label:"箭头",value:"arrow"},{label:"圆点",value:"dot"}]},null,8,["value"])]),(0,i._)("div",qy,[Xy,(0,i.Wm)(cp,{style:{width:"60%"},value:(0,s.SU)(a).points[1],"onUpdate:value":t[4]||(t[4]=e=>r({points:[(0,s.SU)(a).points[0],e]})),options:[{label:"无",value:""},{label:"箭头",value:"arrow"},{label:"圆点",value:"dot"}]},null,8,["value"])]),(0,i.Wm)(Zc),(0,i.Wm)(Pf)]))}});const Ky=(0,Vl.Z)(Gy,[["__scopeId","data-v-ae80032c"]]);var Qy=Ky;const ew={class:"chart-data-editor"},tw={class:"editor-content"},lw={class:"range-box"},aw=["id","onFocus","onPaste"],nw={class:"btns"},ow={class:"left"},iw={class:"right"},sw=100,rw=32;var uw=(0,i.aZ)({__name:"ChartDataEditor",props:{data:{}},emits:["save","close"],setup(e,{emit:t}){const l=e,a=t,o=(0,s.iH)([0,0]),r=(0,s.iH)({width:0,height:0}),u=(0,s.iH)(null),c=(0,i.Fl)((()=>{const e=o.value[0]*sw,t=o.value[1]*rw;return[{type:"t",style:{width:e+"px"}},{type:"b",style:{top:t+"px",width:e+"px"}},{type:"l",style:{height:t+"px"}},{type:"r",style:{left:e+"px",height:t+"px"}}]})),d=(0,i.Fl)((()=>{const e=o.value[0]*sw,t=o.value[1]*rw;return{left:e+"px",top:t+"px"}})),p=()=>{const e=[],{labels:t,legends:a,series:n}=l.data,i=t.length,s=n.length;e.push(["",...a]);for(let l=0;l{if(!u.value)return;const[e,t]=u.value,l=document.querySelector(`#cell-${e+1}-${t}`);l&&l.focus()},m=e=>{const t=e.key.toUpperCase();t===ne.ENTER&&v()};(0,i.bv)((()=>{document.addEventListener("keydown",m)})),(0,i.Ah)((()=>{document.removeEventListener("keydown",m)}));const h=()=>{const[e,t]=o.value,l=[],n=[],i=[];for(let a=1;a{for(let e=1;e<31;e++)for(let t=1;t<7;t++){const l=document.querySelector(`#cell-${e}-${t}`);l&&(l.value="")}},g=(e,t,l)=>{if(e.preventDefault(),!e.clipboardData)return;const a=e.clipboardData.items[0];a&&"string"===a.kind&&"text/plain"===a.type&&a.getAsString((e=>{const a=fe(e);if("object"===typeof a)return;const n=ge(e);if(n){const e=t+n.length,a=l+n[0].length;for(let o=t;oa("close"),w=e=>{let t=!0;const l=e.pageX,a=e.pageY,n=o.value[0]*sw,i=o.value[1]*rw;document.onmousemove=e=>{if(!t)return;const o=e.pageX,s=e.pageY,u=o-l,c=s-a,d=n+u,p=i+c;r.value={width:d,height:p}},document.onmouseup=e=>{t=!1,document.onmousemove=null,document.onmouseup=null;const n=e.pageX,i=e.pageY;if(l===n&&a===i)return;let s=r.value.width,u=r.value.height;s%sw>.5*sw&&(s+=sw-s%sw),u%rw>.5*rw&&(u+=rw-u%rw);let c=Math.round(u/rw),d=Math.round(s/sw);c<3&&(c=3),d<2&&(d=2),o.value=[d,c],r.value={width:0,height:0}}};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",ew,[(0,i._)("div",tw,[(0,i._)("div",lw,[(0,i._)("div",{class:"temp-range",style:(0,oe.j5)({width:r.value.width+"px",height:r.value.height+"px"})},null,4),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(c.value,(e=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["range-line",e.type]),key:e.type,style:(0,oe.j5)(e.style)},null,6)))),128)),(0,i._)("div",{class:"resizable",style:(0,oe.j5)(d.value),onMousedown:t[0]||(t[0]=(0,n.iM)((e=>w(e)),["stop"]))},null,36)]),(0,i._)("table",null,[(0,i._)("tbody",null,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(31,(e=>(0,i._)("tr",{key:e},[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(7,(t=>(0,i._)("td",{key:t,class:(0,oe.C_)({head:1===t&&e<=o.value[1]||1===e&&t<=o.value[0]})},[(0,i._)("input",{class:(0,oe.C_)(["item",{selected:e<=o.value[1]&&t<=o.value[0]}]),id:`cell-${e-1}-${t-1}`,autocomplete:"off",onFocus:l=>u.value=[e-1,t-1],onPaste:l=>g(l,e-1,t-1)},null,42,aw)],2))),64))]))),64))])])]),(0,i._)("div",nw,[(0,i._)("div",ow,[(0,i.Wm)(tp,{class:"btn",onClick:t[1]||(t[1]=e=>f())},{default:(0,i.w5)((()=>[(0,i.Uk)("清空")])),_:1})]),(0,i._)("div",iw,[(0,i.Wm)(tp,{class:"btn",onClick:t[2]||(t[2]=e=>y())},{default:(0,i.w5)((()=>[(0,i.Uk)("取消")])),_:1}),(0,i.Wm)(tp,{type:"primary",class:"btn",onClick:t[3]||(t[3]=e=>h()),style:{"margin-left":"10px"}},{default:(0,i.w5)((()=>[(0,i.Uk)("确认")])),_:1})])])]))}});const cw=(0,Vl.Z)(uw,[["__scopeId","data-v-f7b59928"]]);var dw=cw;const pw=e=>((0,i.dD)("data-v-26bf4835"),e=e(),(0,i.Cn)(),e),vw=pw((()=>(0,i._)("span",{class:"checkbox-input"},null,-1))),mw=pw((()=>(0,i._)("input",{class:"checkbox-original",type:"checkbox"},null,-1))),hw={class:"checkbox-label"};var fw=(0,i.aZ)({__name:"Checkbox",props:{value:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const l=e,a=t,n=e=>{l.disabled||a("update:value",e.target.checked)};return(e,t)=>((0,i.wg)(),(0,i.iD)("label",{class:(0,oe.C_)(["checkbox",{checked:e.value,disabled:e.disabled}]),onChange:t[0]||(t[0]=e=>n(e))},[vw,mw,(0,i._)("span",hw,[(0,i.WI)(e.$slots,"default")])],34))}});const gw=(0,Vl.Z)(fw,[["__scopeId","data-v-26bf4835"]]);var yw=gw;const ww=e=>((0,i.dD)("data-v-45827db6"),e=e(),(0,i.Cn)(),e),xw={class:"chart-style-panel"},kw={class:"row"},bw={class:"row"},_w={key:1,class:"row"},Iw={key:2,class:"row"},Sw={class:"row"},Cw=ww((()=>(0,i._)("div",{style:{width:"40%"}},"图例:",-1))),Lw={class:"row"},Tw=ww((()=>(0,i._)("div",{style:{width:"40%"}},"背景填充:",-1))),Ew={class:"row"},Mw=ww((()=>(0,i._)("div",{style:{width:"40%"}},"网格颜色:",-1))),Uw={style:{width:"40%"}},Ww={class:"color-btn-wrap",style:{width:"100%"}},Dw=["onClick"],Hw={class:"preset-themes"},Fw=["onClick","onMouseenter"];var Aw=(0,i.aZ)({__name:"index",setup(e){const t=[["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d"],["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78"],["#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],["#893448","#d95850","#eb8146","#ffb248","#f2d643","#ebdba4"],["#4ea397","#22c3aa","#7bd9a5","#d0648a","#f58db2","#f2b3c9"],["#3fb1e3","#6be6c1","#626c91","#a0a7e6","#c4ebad","#96dee8"],["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb"],["#c1232b","#27727b","#fcce10","#e87c25","#b5c334","#fe8463"],["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3"],["#e01f54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2"],["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8"],["#8a7ca8","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc"]],l=R(),a=$(),{handleElement:r,handleElementId:u}=(0,o.Jk)(l),{theme:c}=(0,o.Jk)(a),d=r,p=(0,s.iH)(!1),v=(0,s.iH)(!1),m=(0,s.iH)([-1,-1]),{addHistorySnapshot:h}=da(),f=(0,s.iH)("#000"),g=(0,s.iH)([]),y=(0,s.iH)(""),w=(0,s.iH)(""),x=(0,s.iH)(!0),k=(0,s.iH)(!0),b=(0,s.iH)(!1),_=(0,s.iH)(!1),I=(0,s.iH)(!1),S=(0,s.iH)(!1);(0,i.YP)(r,(()=>{if(r.value&&"chart"===r.value.type){if(f.value=r.value.fill||"#fff",r.value.options){const{lineSmooth:e,showLine:t,showArea:l,horizontalBars:a,donut:n,stackBars:o}=r.value.options;x.value=!!e,k.value=!!t,b.value=!!l,_.value=!!a,I.value=!!n,S.value=!!o}g.value=r.value.themeColor,y.value=r.value.gridColor||"#333",w.value=r.value.legend||""}}),{deep:!0,immediate:!0});const C=e=>{a.updateElement({id:u.value,props:e}),h()},L=e=>{p.value=!1,C({data:e})},T=e=>{C({fill:e})},E=e=>{const t=r.value,l={...t.options,...e};C({options:l})},M=(e,t)=>{const l={themeColor:g.value.map(((l,a)=>a===t?e:l))};C(l)},U=()=>{const e={themeColor:[...g.value,c.value.themeColor]};C(e)},W=(e,t)=>{const l=e.slice(0,t+1);C({themeColor:l}),v.value=!1},D=e=>{const t={themeColor:g.value.filter(((t,l)=>l!==e))};C(t)},H=e=>{C({gridColor:e})},F=e=>{C({legend:e})},A=()=>p.value=!0;return Oi.on(Ai.OPEN_CHART_DATA_EDITOR,A),(0,i.Ah)((()=>{Oi.off(Ai.OPEN_CHART_DATA_EDITOR,A)})),(e,l)=>{const a=(0,i.up)("IconEdit"),o=(0,i.up)("IconCloseSmall"),r=(0,i.up)("IconPlus"),u=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",xw,[(0,i.Wm)(tp,{class:"full-width-btn",onClick:l[0]||(l[0]=e=>p.value=!0)},{default:(0,i.w5)((()=>[(0,i.Wm)(a,{class:"btn-icon"}),(0,i.Uk)(" 编辑图表数据 ")])),_:1}),(0,i.Wm)(Zc),"line"===(0,s.SU)(d).chartType?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i._)("div",kw,[(0,i.Wm)(yw,{"onUpdate:value":l[1]||(l[1]=e=>E({showArea:e})),value:b.value,style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Uk)("面积图样式")])),_:1},8,["value"]),(0,i.Wm)(yw,{"onUpdate:value":l[2]||(l[2]=e=>E({showLine:e})),value:!k.value,style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Uk)("散点图样式")])),_:1},8,["value"])]),(0,i._)("div",bw,[(0,i.Wm)(yw,{"onUpdate:value":l[3]||(l[3]=e=>E({lineSmooth:e})),value:x.value},{default:(0,i.w5)((()=>[(0,i.Uk)("使用平滑曲线")])),_:1},8,["value"])])],64)):(0,i.kq)("",!0),"bar"===(0,s.SU)(d).chartType?((0,i.wg)(),(0,i.iD)("div",_w,[(0,i.Wm)(yw,{"onUpdate:value":l[4]||(l[4]=e=>E({horizontalBars:e})),value:_.value,style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Uk)("条形图样式")])),_:1},8,["value"]),(0,i.Wm)(yw,{"onUpdate:value":l[5]||(l[5]=e=>E({stackBars:e})),value:S.value,style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Uk)("堆叠样式")])),_:1},8,["value"])])):(0,i.kq)("",!0),"pie"===(0,s.SU)(d).chartType?((0,i.wg)(),(0,i.iD)("div",Iw,[(0,i.Wm)(yw,{"onUpdate:value":l[6]||(l[6]=e=>E({donut:e})),value:I.value},{default:(0,i.w5)((()=>[(0,i.Uk)("环形图样式")])),_:1},8,["value"])])):(0,i.kq)("",!0),(0,i.Wm)(Zc),(0,i._)("div",Sw,[Cw,(0,i.Wm)(cp,{style:{width:"60%"},value:w.value,"onUpdate:value":l[7]||(l[7]=e=>F(e)),options:[{label:"不显示",value:""},{label:"显示在上方",value:"top"},{label:"显示在下方",value:"bottom"}]},null,8,["value"])]),(0,i.Wm)(Zc),(0,i._)("div",Lw,[Tw,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:f.value,"onUpdate:modelValue":l[8]||(l[8]=e=>T(e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:f.value},null,8,["color"])])),_:1})]),(0,i._)("div",Ew,[Mw,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:y.value,"onUpdate:modelValue":l[9]||(l[9]=e=>H(e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:y.value},null,8,["color"])])),_:1})]),(0,i.Wm)(Zc),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(g.value,((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"row",key:t},[(0,i._)("div",Uw,(0,oe.zw)(0===t?"主题配色:":""),1),(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:e,"onUpdate:modelValue":e=>M(e,t)},null,8,["modelValue","onUpdate:modelValue"])])),default:(0,i.w5)((()=>[(0,i._)("div",Ww,[(0,i.Wm)(ih,{color:e},null,8,["color"]),0!==t?(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{key:0,class:"delete-color-btn",onClick:(0,n.iM)((e=>D(t)),["stop"])},[(0,i.Wm)(o)],8,Dw)),[[u,"删除"]]):(0,i.kq)("",!0)])])),_:2},1024)])))),128)),(0,i.Wm)(Kf,{class:"row",passive:""},{default:(0,i.w5)((()=>[(0,i.Wm)(dn,{trigger:"click",open:v.value,"onUpdate:open":l[11]||(l[11]=e=>v.value=e),style:{width:"40%"}},{content:(0,i.w5)((()=>[(0,i._)("div",Hw,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(t,((e,t)=>(0,i._)("div",{class:"preset-theme",key:t},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e,((a,n)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["preset-theme-color",{select:m.value[0]===t&&n<=m.value[1]}]),key:a,style:(0,oe.j5)({backgroundColor:a}),onClick:t=>W(e,n),onMouseenter:e=>m.value=[t,n],onMouseleave:l[10]||(l[10]=e=>m.value=[-1,-1])},null,46,Fw)))),128))]))),64))])])),default:(0,i.w5)((()=>[(0,i.Wm)(tp,{first:"",style:{width:"100%"}},{default:(0,i.w5)((()=>[(0,i.Uk)("推荐主题")])),_:1})])),_:1},8,["open"]),(0,i.Wm)(tp,{last:"",disabled:g.value.length>=10,style:{width:"60%"},onClick:l[12]||(l[12]=e=>U())},{default:(0,i.w5)((()=>[(0,i.Wm)(r,{class:"btn-icon"}),(0,i.Uk)(" 添加主题色 ")])),_:1},8,["disabled"])])),_:1}),(0,i.Wm)(Zc),(0,i.Wm)(Cf),(0,i.Wm)(kp,{visible:p.value,"onUpdate:visible":l[15]||(l[15]=e=>p.value=e),width:640},{default:(0,i.w5)((()=>[(0,i.Wm)(dw,{data:(0,s.SU)(d).data,onClose:l[13]||(l[13]=e=>p.value=!1),onSave:l[14]||(l[14]=e=>L(e))},null,8,["data"])])),_:1},8,["visible"])])}}});const $w=(0,Vl.Z)(Aw,[["__scopeId","data-v-45827db6"]]);var Zw=$w;const Ow=e=>((0,i.dD)("data-v-e5523cbc"),e=e(),(0,i.Cn)(),e),Rw={class:"table-style-panel"},zw={class:"row"},Pw=Ow((()=>(0,i._)("div",{style:{width:"40%"}},"行数:",-1))),Bw={class:"set-count",style:{width:"60%"}},Nw={class:"count-text"},jw={class:"row"},Yw=Ow((()=>(0,i._)("div",{style:{width:"40%"}},"列数:",-1))),Vw={class:"set-count",style:{width:"60%"}},Jw={class:"count-text"},qw={class:"row theme-switch"},Xw=Ow((()=>(0,i._)("div",{style:{width:"40%"}},"启用主题表格:",-1))),Gw={class:"switch-wrapper",style:{width:"60%"}},Kw={class:"row"},Qw={class:"row"},ex={class:"row"},tx=Ow((()=>(0,i._)("div",{style:{width:"40%"}},"主题颜色:",-1)));var lx=(0,i.aZ)({__name:"TableStylePanel",setup(e){const t=$(),{handleElement:l,handleElementId:a,selectedTableCells:n,availableFonts:u}=(0,o.Jk)(R()),c=(0,i.Fl)((()=>t.theme.themeColor)),d=["12px","14px","16px","18px","20px","22px","24px","28px","32px"],p=(0,s.iH)({bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"12px",fontname:"微软雅黑",align:"left"}),v=(0,s.iH)(),m=(0,s.iH)(!1),h=(0,s.iH)(0),f=(0,s.iH)(0),g=(0,s.iH)(0),y=(0,s.iH)(0);(0,i.YP)(l,(()=>{l.value&&"table"===l.value.type&&(v.value=l.value.theme,m.value=!!v.value,h.value=l.value.data.length,f.value=l.value.data[0].length,g.value=l.value.data.length,y.value=l.value.data[0].length)}),{deep:!0,immediate:!0});const{addHistorySnapshot:w}=da(),x=()=>{if(!l.value||"table"!==l.value.type)return;let e=0,t=0;if(n.value.length){const l=n.value[0];e=+l.split("_")[0],t=+l.split("_")[1]}const a=l.value.data[e][t].style;p.value=a?{bold:!!a.bold,em:!!a.em,underline:!!a.underline,strikethrough:!!a.strikethrough,color:a.color||"#000",backcolor:a.backcolor||"",fontsize:a.fontsize||"12px",fontname:a.fontname||"微软雅黑",align:a.align||"left"}:{bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"",fontsize:"12px",fontname:"微软雅黑",align:"left"}};(0,i.bv)((()=>{n.value.length&&x()})),(0,i.YP)(n,x);const k=e=>{t.updateElement({id:a.value,props:e}),w()},b=e=>{const t=l.value,a=JSON.parse(JSON.stringify(t.data));for(let l=0;l{if(!v.value)return;const t={...v.value,...e};k({theme:t})},I=e=>{if(e){const e={theme:{color:c.value,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}};k(e)}else t.removeElementProps({id:a.value,propName:"theme"}),w()},S=e=>{const t=l.value,a=t.data.length;if(e>a){const l=new Array(f.value).fill({id:(0,r.x0)(10),colspan:1,rowspan:1,text:""}),n=new Array(e-a).fill(l),o=JSON.parse(JSON.stringify(t.data));o.push(...n),k({data:o})}else{const l=t.data.slice(0,e);k({data:l})}},C=e=>{const t=l.value,a=t.data[0].length;let n=t.data,o=t.colWidths.map((e=>e*t.width));if(e>a){n=n.map((t=>{const l=new Array(e-a).fill({id:(0,r.x0)(10),colspan:1,rowspan:1,text:""});return t.push(...l),t}));const t=new Array(e-a).fill(100);o.push(...t)}else n=n.map((t=>t.slice(0,e))),o=o.slice(0,e);const i=o.reduce(((e,t)=>e+t)),s=o.map((e=>e/i)),u={width:i,data:n,colWidths:s};k(u)};return(e,t)=>{const l=(0,i.up)("IconFontSize"),a=(0,i.up)("IconAddText"),n=(0,i.up)("IconText"),o=(0,i.up)("IconFill"),r=(0,i.up)("IconTextBold"),c=(0,i.up)("IconTextItalic"),g=(0,i.up)("IconTextUnderline"),y=(0,i.up)("IconStrikethrough"),w=(0,i.up)("IconAlignTextLeft"),x=(0,i.up)("IconAlignTextCenter"),k=(0,i.up)("IconAlignTextRight"),L=(0,i.up)("IconMinus"),T=(0,i.up)("IconPlus"),E=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",Rw,[(0,i.Wm)(ug,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(cp,{style:{width:"50%"},value:p.value.fontname,"onUpdate:value":t[0]||(t[0]=e=>b({fontname:e})),options:[...(0,s.SU)(u),...(0,s.SU)(M)]},{icon:(0,i.w5)((()=>[(0,i.Wm)(l)])),_:1},8,["value","options"]),(0,i.Wm)(cp,{style:{width:"50%"},value:p.value.fontsize,"onUpdate:value":t[1]||(t[1]=e=>b({fontsize:e})),options:d.map((e=>({label:e,value:e})))},{icon:(0,i.w5)((()=>[(0,i.Wm)(a)])),_:1},8,["value","options"])])),_:1}),(0,i.Wm)(Kf,{class:"row",passive:""},{default:(0,i.w5)((()=>[(0,i.Wm)(dn,{trigger:"click",style:{width:"50%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:p.value.color,"onUpdate:modelValue":t[2]||(t[2]=e=>b({color:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(Yf,{first:"",color:p.value.color},{default:(0,i.w5)((()=>[(0,i.Wm)(n)])),_:1},8,["color"])),[[E,"文字颜色"]])])),_:1}),(0,i.Wm)(dn,{trigger:"click",style:{width:"50%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:p.value.backcolor,"onUpdate:modelValue":t[3]||(t[3]=e=>b({backcolor:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(Yf,{last:"",color:p.value.backcolor},{default:(0,i.w5)((()=>[(0,i.Wm)(o)])),_:1},8,["color"])),[[E,"单元格填充"]])])),_:1})])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:p.value.bold,onClick:t[4]||(t[4]=e=>b({bold:!p.value.bold}))},{default:(0,i.w5)((()=>[(0,i.Wm)(r)])),_:1},8,["checked"])),[[E,"加粗"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:p.value.em,onClick:t[5]||(t[5]=e=>b({em:!p.value.em}))},{default:(0,i.w5)((()=>[(0,i.Wm)(c)])),_:1},8,["checked"])),[[E,"斜体"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:p.value.underline,onClick:t[6]||(t[6]=e=>b({underline:!p.value.underline}))},{default:(0,i.w5)((()=>[(0,i.Wm)(g)])),_:1},8,["checked"])),[[E,"下划线"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(qf,{style:{flex:"1"},checked:p.value.strikethrough,onClick:t[7]||(t[7]=e=>b({strikethrough:!p.value.strikethrough}))},{default:(0,i.w5)((()=>[(0,i.Wm)(y)])),_:1},8,["checked"])),[[E,"删除线"]])])),_:1}),(0,i.Wm)(ng,{class:"row","button-style":"solid",value:p.value.align,"onUpdate:value":t[8]||(t[8]=e=>b({align:e}))},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"left",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(w)])),_:1})),[[E,"左对齐"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"center",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(x)])),_:1})),[[E,"居中"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"right",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(k)])),_:1})),[[E,"右对齐"]])])),_:1},8,["value"]),(0,i.Wm)(Zc),(0,i.Wm)(Cf,{fixed:!0}),(0,i.Wm)(Zc),(0,i._)("div",zw,[Pw,(0,i._)("div",Bw,[(0,i.Wm)(tp,{class:"btn",disabled:h.value<=1,onClick:t[9]||(t[9]=e=>S(h.value-1))},{default:(0,i.w5)((()=>[(0,i.Wm)(L)])),_:1},8,["disabled"]),(0,i._)("div",Nw,(0,oe.zw)(h.value),1),(0,i.Wm)(tp,{class:"btn",disabled:h.value>=30,onClick:t[10]||(t[10]=e=>S(h.value+1))},{default:(0,i.w5)((()=>[(0,i.Wm)(T)])),_:1},8,["disabled"])])]),(0,i._)("div",jw,[Yw,(0,i._)("div",Vw,[(0,i.Wm)(tp,{class:"btn",disabled:f.value<=1,onClick:t[11]||(t[11]=e=>C(f.value-1))},{default:(0,i.w5)((()=>[(0,i.Wm)(L)])),_:1},8,["disabled"]),(0,i._)("div",Jw,(0,oe.zw)(f.value),1),(0,i.Wm)(tp,{class:"btn",disabled:f.value>=30,onClick:t[12]||(t[12]=e=>C(f.value+1))},{default:(0,i.w5)((()=>[(0,i.Wm)(T)])),_:1},8,["disabled"])])]),(0,i.Wm)(Zc),(0,i._)("div",qw,[Xw,(0,i._)("div",Gw,[(0,i.Wm)(pf,{value:m.value,"onUpdate:value":t[13]||(t[13]=e=>I(e))},null,8,["value"])])]),v.value?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i._)("div",Kw,[(0,i.Wm)(yw,{"onUpdate:value":t[14]||(t[14]=e=>_({rowHeader:e})),value:v.value.rowHeader,style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Uk)("标题行")])),_:1},8,["value"]),(0,i.Wm)(yw,{"onUpdate:value":t[15]||(t[15]=e=>_({rowFooter:e})),value:v.value.rowFooter,style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Uk)("汇总行")])),_:1},8,["value"])]),(0,i._)("div",Qw,[(0,i.Wm)(yw,{"onUpdate:value":t[16]||(t[16]=e=>_({colHeader:e})),value:v.value.colHeader,style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Uk)("第一列")])),_:1},8,["value"]),(0,i.Wm)(yw,{"onUpdate:value":t[17]||(t[17]=e=>_({colFooter:e})),value:v.value.colFooter,style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Uk)("最后一列")])),_:1},8,["value"])]),(0,i._)("div",ex,[tx,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:v.value.color,"onUpdate:modelValue":t[18]||(t[18]=e=>_({color:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:v.value.color},null,8,["color"])])),_:1})])],64)):(0,i.kq)("",!0)])}}});const ax=(0,Vl.Z)(lx,[["__scopeId","data-v-e5523cbc"]]);var nx=ax;const ox=e=>((0,i.dD)("data-v-3a5ca316"),e=e(),(0,i.Cn)(),e),ix={class:"latex-style-panel"},sx={class:"row"},rx={class:"row"},ux=ox((()=>(0,i._)("div",{style:{width:"40%"}},"颜色:",-1))),cx={class:"row"},dx=ox((()=>(0,i._)("div",{style:{width:"40%"}},"粗细:",-1)));var px=(0,i.aZ)({__name:"LatexStylePanel",setup(e){const t=$(),{handleElement:l}=(0,o.Jk)(R()),a=l,n=(0,s.iH)(!1),{addHistorySnapshot:r}=da(),u=e=>{l.value&&(t.updateElement({id:l.value.id,props:e}),r())},c=e=>{u({path:e.path,latex:e.latex,width:e.w,height:e.h,viewBox:[e.w,e.h]})},d=()=>n.value=!0;return Oi.on(Ai.OPEN_LATEX_EDITOR,d),(0,i.Ah)((()=>{Oi.off(Ai.OPEN_LATEX_EDITOR,d)})),(e,t)=>((0,i.wg)(),(0,i.iD)("div",ix,[(0,i._)("div",sx,[(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[0]||(t[0]=e=>n.value=!0)},{default:(0,i.w5)((()=>[(0,i.Uk)("编辑 LaTeX")])),_:1})]),(0,i.Wm)(Zc),(0,i._)("div",rx,[ux,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(a).color,"onUpdate:modelValue":t[1]||(t[1]=e=>u({color:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:(0,s.SU)(a).color},null,8,["color"])])),_:1})]),(0,i._)("div",cx,[dx,(0,i.Wm)(mv,{min:1,max:3,value:(0,s.SU)(a).strokeWidth,"onUpdate:value":t[2]||(t[2]=e=>u({strokeWidth:e})),style:{width:"60%"}},null,8,["value"])]),(0,i.Wm)(kp,{visible:n.value,"onUpdate:visible":t[5]||(t[5]=e=>n.value=e),width:880},{default:(0,i.w5)((()=>[(0,i.Wm)(fm,{value:(0,s.SU)(a).latex,onClose:t[3]||(t[3]=e=>n.value=!1),onUpdate:t[4]||(t[4]=e=>{c(e),n.value=!1})},null,8,["value"])])),_:1},8,["visible"])]))}});const vx=(0,Vl.Z)(px,[["__scopeId","data-v-3a5ca316"]]);var mx=vx;const hx=e=>((0,i.dD)("data-v-b3551c8c"),e=e(),(0,i.Cn)(),e),fx={class:"video-style-panel"},gx=hx((()=>(0,i._)("div",{class:"title"},"视频预览封面",-1))),yx={class:"background-image-wrapper"},wx={class:"background-image"},xx={class:"row"},kx={class:"row switch-row"},bx=hx((()=>(0,i._)("div",{style:{width:"40%"}},"自动播放:",-1))),_x={class:"switch-wrapper",style:{width:"60%"}};var Ix=(0,i.aZ)({__name:"VideoStylePanel",setup(e){const t=$(),{handleElement:l}=(0,o.Jk)(R()),a=l,{addHistorySnapshot:n}=da(),r=e=>{l.value&&(t.updateElement({id:l.value.id,props:e}),n())},u=e=>{const t=e[0];t&&na(t).then((e=>r({poster:e})))};return(e,t)=>{const l=(0,i.up)("IconPlus");return(0,i.wg)(),(0,i.iD)("div",fx,[gx,(0,i._)("div",yx,[(0,i.Wm)(Pa,{onChange:t[0]||(t[0]=e=>u(e))},{default:(0,i.w5)((()=>[(0,i._)("div",wx,[(0,i._)("div",{class:"content",style:(0,oe.j5)({backgroundImage:(0,s.SU)(a).poster?`url(${(0,s.SU)(a).poster})`:""})},[(0,i.Wm)(l)],4)])])),_:1})]),(0,i._)("div",xx,[(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[1]||(t[1]=e=>r({poster:""}))},{default:(0,i.w5)((()=>[(0,i.Uk)("重置封面")])),_:1})]),(0,i._)("div",kx,[bx,(0,i._)("div",_x,[(0,i.Wm)(pf,{value:(0,s.SU)(a).autoplay,"onUpdate:value":t[2]||(t[2]=e=>r({autoplay:e}))},null,8,["value"])])])])}}});const Sx=(0,Vl.Z)(Ix,[["__scopeId","data-v-b3551c8c"]]);var Cx=Sx;const Lx=e=>((0,i.dD)("data-v-32517bcf"),e=e(),(0,i.Cn)(),e),Tx={class:"audio-style-panel"},Ex={class:"row"},Mx=Lx((()=>(0,i._)("div",{style:{width:"40%"}},"图标颜色:",-1))),Ux={class:"row switch-row"},Wx=Lx((()=>(0,i._)("div",{style:{width:"40%"}},"自动播放:",-1))),Dx={class:"switch-wrapper",style:{width:"60%"}},Hx={class:"row switch-row"},Fx=Lx((()=>(0,i._)("div",{style:{width:"40%"}},"循环播放:",-1))),Ax={class:"switch-wrapper",style:{width:"60%"}};var $x=(0,i.aZ)({__name:"AudioStylePanel",setup(e){const t=$(),{handleElement:l}=(0,o.Jk)(R()),a=l,{addHistorySnapshot:n}=da(),r=e=>{l.value&&(t.updateElement({id:l.value.id,props:e}),n())};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Tx,[(0,i._)("div",Ex,[Mx,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(a).color,"onUpdate:modelValue":t[0]||(t[0]=e=>r({color:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:(0,s.SU)(a).color},null,8,["color"])])),_:1})]),(0,i._)("div",Ux,[Wx,(0,i._)("div",Dx,[(0,i.Wm)(pf,{value:(0,s.SU)(a).autoplay,"onUpdate:value":t[1]||(t[1]=e=>r({autoplay:e}))},null,8,["value"])])]),(0,i._)("div",Hx,[Fx,(0,i._)("div",Ax,[(0,i.Wm)(pf,{value:(0,s.SU)(a).loop,"onUpdate:value":t[2]||(t[2]=e=>r({loop:e}))},null,8,["value"])])])]))}});const Zx=(0,Vl.Z)($x,[["__scopeId","data-v-32517bcf"]]);var Ox=Zx;const Rx=e=>((0,i.dD)("data-v-80f1bc4e"),e=e(),(0,i.Cn)(),e),zx={class:"multi-style-panel"},Px={class:"row"},Bx=Rx((()=>(0,i._)("div",{style:{width:"40%"}},"填充颜色:",-1))),Nx={class:"row"},jx=Rx((()=>(0,i._)("div",{style:{width:"40%"}},"边框样式:",-1))),Yx={class:"row"},Vx=Rx((()=>(0,i._)("div",{style:{width:"40%"}},"边框颜色:",-1))),Jx={class:"row"},qx=Rx((()=>(0,i._)("div",{style:{width:"40%"}},"边框粗细:",-1)));var Xx=(0,i.aZ)({__name:"MultiStylePanel",setup(e){const t=$(),{richTextAttrs:l,availableFonts:a,activeElementList:n}=(0,o.Jk)(R()),{addHistorySnapshot:r}=da(),u=(e,l)=>{t.updateElement({id:e,props:l}),r()},c=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],d=(0,s.iH)("#fff"),p=(0,s.iH)({width:0,color:"#fff",style:"solid"}),v=e=>{for(const t of n.value){if("text"!==t.type&&"shape"!==t.type&&"chart"!==t.type||u(t.id,{fill:e}),"table"===t.type){const l=JSON.parse(JSON.stringify(t.data));for(let t=0;t{for(const t of n.value){if("text"===t.type||"image"===t.type||"shape"===t.type||"table"===t.type||"chart"===t.type){const l=t.outline||{width:2,color:"#000",style:"solid"},a={outline:{...l,...e}};u(t.id,a)}"line"===t.type&&u(t.id,e)}p.value={...p.value,...e}},h=(e,t)=>{for(const l of n.value){if(("text"===l.type||"shape"===l.type&&l.text?.content)&&Oi.emit(Ai.RICH_TEXT_COMMAND,{target:l.id,action:{command:e,value:t}}),"table"===l.type){const a=JSON.parse(JSON.stringify(l.data));for(let l=0;l{const n=(0,i.up)("IconFontSize"),o=(0,i.up)("IconAddText"),r=(0,i.up)("IconText"),u=(0,i.up)("IconHighLight"),f=(0,i.up)("IconAlignTextLeft"),g=(0,i.up)("IconAlignTextCenter"),y=(0,i.up)("IconAlignTextRight"),w=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",zx,[(0,i._)("div",Px,[Bx,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:d.value,"onUpdate:modelValue":t[0]||(t[0]=e=>v(e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:d.value},null,8,["color"])])),_:1})]),(0,i.Wm)(Zc),(0,i._)("div",Nx,[jx,(0,i.Wm)(cp,{style:{width:"60%"},value:p.value.style||"","onUpdate:value":t[1]||(t[1]=e=>m({style:e})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"}]},null,8,["value"])]),(0,i._)("div",Yx,[Vx,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:p.value.color,"onUpdate:modelValue":t[2]||(t[2]=e=>m({color:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:p.value.color||"#000"},null,8,["color"])])),_:1})]),(0,i._)("div",Jx,[qx,(0,i.Wm)(mv,{value:p.value.width||0,"onUpdate:value":t[3]||(t[3]=e=>m({width:e})),style:{width:"60%"}},null,8,["value"])]),(0,i.Wm)(Zc),(0,i.Wm)(ug,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(cp,{style:{width:"60%"},value:(0,s.SU)(l).fontname,"onUpdate:value":t[4]||(t[4]=e=>h("fontname",e)),options:[...(0,s.SU)(a),...(0,s.SU)(M)]},{icon:(0,i.w5)((()=>[(0,i.Wm)(n)])),_:1},8,["value","options"]),(0,i.Wm)(cp,{style:{width:"40%"},value:(0,s.SU)(l).fontsize,"onUpdate:value":t[5]||(t[5]=e=>h("fontsize",e)),options:c.map((e=>({label:e,value:e})))},{icon:(0,i.w5)((()=>[(0,i.Wm)(o)])),_:1},8,["value","options"])])),_:1}),(0,i.Wm)(Kf,{class:"row",passive:""},{default:(0,i.w5)((()=>[(0,i.Wm)(dn,{trigger:"click",style:{width:"30%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(l).color,"onUpdate:modelValue":t[6]||(t[6]=e=>h("color",e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(Yf,{first:"",color:(0,s.SU)(l).color},{default:(0,i.w5)((()=>[(0,i.Wm)(r)])),_:1},8,["color"])),[[w,"文字颜色"]])])),_:1}),(0,i.Wm)(dn,{trigger:"click",style:{width:"30%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(l).backcolor,"onUpdate:modelValue":t[7]||(t[7]=e=>h("backcolor",e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(Yf,{color:(0,s.SU)(l).backcolor},{default:(0,i.w5)((()=>[(0,i.Wm)(u)])),_:1},8,["color"])),[[w,"文字高亮"]])])),_:1}),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{class:"font-size-btn",style:{width:"20%"},onClick:t[8]||(t[8]=e=>h("fontsize-add","2"))},{default:(0,i.w5)((()=>[(0,i.Wm)(n),(0,i.Uk)("+")])),_:1})),[[w,"增大字号"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{last:"",class:"font-size-btn",style:{width:"20%"},onClick:t[9]||(t[9]=e=>h("fontsize-reduce","2"))},{default:(0,i.w5)((()=>[(0,i.Wm)(n),(0,i.Uk)("-")])),_:1})),[[w,"减小字号"]])])),_:1}),(0,i.Wm)(ng,{class:"row","button-style":"solid",value:(0,s.SU)(l).align,"onUpdate:value":t[10]||(t[10]=e=>h("align",e))},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"left",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(f)])),_:1})),[[w,"左对齐"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"center",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(g)])),_:1})),[[w,"居中"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tg,{value:"right",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(y)])),_:1})),[[w,"右对齐"]])])),_:1},8,["value"])])}}});const Gx=(0,Vl.Z)(Xx,[["__scopeId","data-v-80f1bc4e"]]);var Kx=Gx;const Qx={class:"element-style-panel"};var ek=(0,i.aZ)({__name:"index",setup(e){const t={[sa.TEXT]:Zg,[sa.IMAGE]:wy,[sa.SHAPE]:Zy,[sa.LINE]:Qy,[sa.CHART]:Zw,[sa.TABLE]:nx,[sa.LATEX]:mx,[sa.VIDEO]:Cx,[sa.AUDIO]:Ox},{activeElementIdList:l,activeElementList:a,handleElement:n,activeGroupElementId:s}=(0,o.Jk)(R()),r=(0,i.Fl)((()=>{if(l.value.length>1){if(!s.value)return Kx;const e=a.value.find((e=>e.id===s.value));return e&&t[e.type]||null}return n.value&&t[n.value.type]||null}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",Qx,[((0,i.wg)(),(0,i.j4)((0,i.LL)(r.value)))]))}});const tk=ek;var lk=tk;const ak=e=>((0,i.dD)("data-v-a2bcea28"),e=e(),(0,i.Cn)(),e),nk={class:"element-positopn-panel"},ok=ak((()=>(0,i._)("div",{class:"title"},"层级:",-1))),ik=ak((()=>(0,i._)("div",{class:"title"},"对齐:",-1))),sk={class:"row"},rk=ak((()=>(0,i._)("div",{style:{width:"10%"}},null,-1))),uk={key:0,class:"row"},ck={key:1,style:{width:"10%"}},dk={class:"row"},pk=ak((()=>(0,i._)("div",{style:{width:"7%"}},null,-1)));var vk=(0,i.aZ)({__name:"ElementPositionPanel",setup(e){const t=$(),{handleElement:l,handleElementId:a}=(0,o.Jk)(R()),n=(0,s.iH)(0),r=(0,s.iH)(0),u=(0,s.iH)(0),c=(0,s.iH)(0),d=(0,s.iH)(0),p=(0,s.iH)(!1),v=(0,i.Fl)((()=>l.value&&Zn[l.value.type]||20)),m=(0,i.Fl)((()=>"text"===l.value?.type&&!l.value.vertical)),h=(0,i.Fl)((()=>"text"===l.value?.type&&l.value.vertical));(0,i.YP)(l,(()=>{l.value&&(n.value=(0,D.round)(l.value.left,1),r.value=(0,D.round)(l.value.top,1),p.value="fixedRatio"in l.value&&!!l.value.fixedRatio,"line"!==l.value.type&&(u.value=(0,D.round)(l.value.width,1),c.value=(0,D.round)(l.value.height,1),d.value="rotate"in l.value&&void 0!==l.value.rotate?(0,D.round)(l.value.rotate,1):0))}),{deep:!0,immediate:!0});const{orderElement:f}=ba(),{alignElementToCanvas:g}=qn(),{addHistorySnapshot:y}=da(),w=e=>{const l={left:e};t.updateElement({id:a.value,props:l}),y()},x=e=>{const l={top:e};t.updateElement({id:a.value,props:l}),y()},k=(e,t)=>{if(l.value&&"shape"===l.value.type&&"pathFormula"in l.value&&l.value.pathFormula){const a=ra[l.value.pathFormula];let n="";return n="editable"in a?a.formula(e,t,l.value.keypoint):a.formula(e,t),{viewBox:[e,t],path:n}}return null},b=e=>{let l={width:e};const n=k(e,c.value);n&&(l={...l,...n}),t.updateElement({id:a.value,props:l}),y()},_=e=>{let l={height:e};const n=k(u.value,e);n&&(l={...l,...n}),t.updateElement({id:a.value,props:l}),y()},I=e=>{const l={rotate:e};t.updateElement({id:a.value,props:l}),y()},S=e=>{const l={fixedRatio:e};t.updateElement({id:a.value,props:l}),y()},C=e=>{let l=45*Math.floor(d.value/45);"+"===e?l+=45:"-"===e&&(l-=45),l<-180&&(l=-180),l>180&&(l=180);const n={rotate:l};t.updateElement({id:a.value,props:n}),y()};return(e,t)=>{const a=(0,i.up)("IconSendToBack"),o=(0,i.up)("IconBringToFrontOne"),y=(0,i.up)("IconBringToFront"),k=(0,i.up)("IconSentToBack"),L=(0,i.up)("IconAlignLeft"),T=(0,i.up)("IconAlignVertically"),E=(0,i.up)("IconAlignRight"),M=(0,i.up)("IconAlignTop"),U=(0,i.up)("IconAlignHorizontally"),W=(0,i.up)("IconAlignBottom"),D=(0,i.up)("IconLock"),H=(0,i.up)("IconUnlock"),F=(0,i.up)("IconRotate"),A=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",nk,[ok,(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[0]||(t[0]=e=>(0,s.SU)(f)((0,s.SU)(l),(0,s.SU)(Q).TOP))},{default:(0,i.w5)((()=>[(0,i.Wm)(a,{class:"btn-icon"}),(0,i.Uk)(" 置顶")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[1]||(t[1]=e=>(0,s.SU)(f)((0,s.SU)(l),(0,s.SU)(Q).BOTTOM))},{default:(0,i.w5)((()=>[(0,i.Wm)(o,{class:"btn-icon"}),(0,i.Uk)(" 置底")])),_:1})])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[2]||(t[2]=e=>(0,s.SU)(f)((0,s.SU)(l),(0,s.SU)(Q).UP))},{default:(0,i.w5)((()=>[(0,i.Wm)(y,{class:"btn-icon"}),(0,i.Uk)(" 上移")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[3]||(t[3]=e=>(0,s.SU)(f)((0,s.SU)(l),(0,s.SU)(Q).DOWN))},{default:(0,i.w5)((()=>[(0,i.Wm)(k,{class:"btn-icon"}),(0,i.Uk)(" 下移")])),_:1})])),_:1}),(0,i.Wm)(Zc),ik,(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:t[4]||(t[4]=e=>(0,s.SU)(g)((0,s.SU)(ee).LEFT))},{default:(0,i.w5)((()=>[(0,i.Wm)(L)])),_:1})),[[A,"左对齐"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:t[5]||(t[5]=e=>(0,s.SU)(g)((0,s.SU)(ee).HORIZONTAL))},{default:(0,i.w5)((()=>[(0,i.Wm)(T)])),_:1})),[[A,"水平居中"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:t[6]||(t[6]=e=>(0,s.SU)(g)((0,s.SU)(ee).RIGHT))},{default:(0,i.w5)((()=>[(0,i.Wm)(E)])),_:1})),[[A,"右对齐"]])])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:t[7]||(t[7]=e=>(0,s.SU)(g)((0,s.SU)(ee).TOP))},{default:(0,i.w5)((()=>[(0,i.Wm)(M)])),_:1})),[[A,"上对齐"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:t[8]||(t[8]=e=>(0,s.SU)(g)((0,s.SU)(ee).VERTICAL))},{default:(0,i.w5)((()=>[(0,i.Wm)(U)])),_:1})),[[A,"垂直居中"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:t[9]||(t[9]=e=>(0,s.SU)(g)((0,s.SU)(ee).BOTTOM))},{default:(0,i.w5)((()=>[(0,i.Wm)(W)])),_:1})),[[A,"下对齐"]])])),_:1}),(0,i.Wm)(Zc),(0,i._)("div",sk,[(0,i.Wm)(mv,{step:5,value:n.value,"onUpdate:value":t[10]||(t[10]=e=>w(e)),style:{width:"45%"}},{prefix:(0,i.w5)((()=>[(0,i.Uk)(" 水平: ")])),_:1},8,["value"]),rk,(0,i.Wm)(mv,{step:5,value:r.value,"onUpdate:value":t[11]||(t[11]=e=>x(e)),style:{width:"45%"}},{prefix:(0,i.w5)((()=>[(0,i.Uk)(" 垂直: ")])),_:1},8,["value"])]),"line"!==(0,s.SU)(l).type?((0,i.wg)(),(0,i.iD)("div",uk,[(0,i.Wm)(mv,{min:v.value,max:1500,step:5,disabled:h.value,value:u.value,"onUpdate:value":t[12]||(t[12]=e=>b(e)),style:{width:"45%"}},{prefix:(0,i.w5)((()=>[(0,i.Uk)(" 宽度: ")])),_:1},8,["min","disabled","value"]),["image","shape","audio"].includes((0,s.SU)(l).type)?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[p.value?(0,i.wy)(((0,i.wg)(),(0,i.j4)(D,{key:0,style:{width:"10%"},class:"icon-btn",onClick:t[13]||(t[13]=e=>S(!1))},null,512)),[[A,"解除宽高比锁定"]]):(0,i.wy)(((0,i.wg)(),(0,i.j4)(H,{key:1,style:{width:"10%"},class:"icon-btn",onClick:t[14]||(t[14]=e=>S(!0))},null,512)),[[A,"宽高比锁定"]])],64)):((0,i.wg)(),(0,i.iD)("div",ck)),(0,i.Wm)(mv,{min:v.value,max:800,step:5,disabled:m.value||"table"===(0,s.SU)(l).type,value:c.value,"onUpdate:value":t[15]||(t[15]=e=>_(e)),style:{width:"45%"}},{prefix:(0,i.w5)((()=>[(0,i.Uk)(" 高度: ")])),_:1},8,["min","disabled","value"])])):(0,i.kq)("",!0),["line","video","audio"].includes((0,s.SU)(l).type)?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)(i.HY,{key:1},[(0,i.Wm)(Zc),(0,i._)("div",dk,[(0,i.Wm)(mv,{min:-180,max:180,step:5,value:d.value,"onUpdate:value":t[16]||(t[16]=e=>I(e)),style:{width:"45%"}},{prefix:(0,i.w5)((()=>[(0,i.Uk)(" 旋转: ")])),_:1},8,["value"]),pk,(0,i._)("div",{class:"text-btn",onClick:t[17]||(t[17]=e=>C("-")),style:{width:"24%"}},[(0,i.Wm)(F),(0,i.Uk)(" -45°")]),(0,i._)("div",{class:"text-btn",onClick:t[18]||(t[18]=e=>C("+")),style:{width:"24%"}},[(0,i.Wm)(F,{style:(0,oe.j5)({transform:"rotateY(180deg)"})},null,8,["style"]),(0,i.Uk)(" +45°")])])],64))])}}});const mk=(0,Vl.Z)(vk,[["__scopeId","data-v-a2bcea28"]]);var hk=mk;const fk=1e3,gk="click",yk="animate__",wk=[{type:"bounce",name:"弹跳",children:[{name:"弹入",value:"bounceIn"},{name:"向右弹入",value:"bounceInLeft"},{name:"向左弹入",value:"bounceInRight"},{name:"向上弹入",value:"bounceInUp"},{name:"向下弹入",value:"bounceInDown"}]},{type:"fade",name:"浮现",children:[{name:"浮入",value:"fadeIn"},{name:"向下浮入",value:"fadeInDown"},{name:"向下长距浮入",value:"fadeInDownBig"},{name:"向右浮入",value:"fadeInLeft"},{name:"向右长距浮入",value:"fadeInLeftBig"},{name:"向左浮入",value:"fadeInRight"},{name:"向左长距浮入",value:"fadeInRightBig"},{name:"向上浮入",value:"fadeInUp"},{name:"向上长距浮入",value:"fadeInUpBig"},{name:"从左上浮入",value:"fadeInTopLeft"},{name:"从右上浮入",value:"fadeInTopRight"},{name:"从左下浮入",value:"fadeInBottomLeft"},{name:"从右下浮入",value:"fadeInBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转进入",value:"rotateIn"},{name:"绕左下进入",value:"rotateInDownLeft"},{name:"绕右下进入",value:"rotateInDownRight"},{name:"绕左上进入",value:"rotateInUpLeft"},{name:"绕右上进入",value:"rotateInUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"放大进入",value:"zoomIn"},{name:"向下放大进入",value:"zoomInDown"},{name:"从左放大进入",value:"zoomInLeft"},{name:"从右放大进入",value:"zoomInRight"},{name:"向上放大进入",value:"zoomInUp"}]},{type:"slide",name:"滑入",children:[{name:"向下滑入",value:"slideInDown"},{name:"从右滑入",value:"slideInLeft"},{name:"从左滑入",value:"slideInRight"},{name:"向上滑入",value:"slideInUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转进入",value:"flipInX"},{name:"Y轴翻转进入",value:"flipInY"}]},{type:"back",name:"放大滑入",children:[{name:"向下放大滑入",value:"backInDown"},{name:"从左放大滑入",value:"backInLeft"},{name:"从右放大滑入",value:"backInRight"},{name:"向上放大滑入",value:"backInUp"}]},{type:"lightSpeed",name:"飞入",children:[{name:"从右飞入",value:"lightSpeedInRight"},{name:"从左飞入",value:"lightSpeedInLeft"}]}],xk=[{type:"bounce",name:"弹跳",children:[{name:"弹出",value:"bounceOut"},{name:"向左弹出",value:"bounceOutLeft"},{name:"向右弹出",value:"bounceOutRight"},{name:"向上弹出",value:"bounceOutUp"},{name:"向下弹出",value:"bounceOutDown"}]},{type:"fade",name:"浮现",children:[{name:"浮出",value:"fadeOut"},{name:"向下浮出",value:"fadeOutDown"},{name:"向下长距浮出",value:"fadeOutDownBig"},{name:"向左浮出",value:"fadeOutLeft"},{name:"向左长距浮出",value:"fadeOutLeftBig"},{name:"向右浮出",value:"fadeOutRight"},{name:"向右长距浮出",value:"fadeOutRightBig"},{name:"向上浮出",value:"fadeOutUp"},{name:"向上长距浮出",value:"fadeOutUpBig"},{name:"从左上浮出",value:"fadeOutTopLeft"},{name:"从右上浮出",value:"fadeOutTopRight"},{name:"从左下浮出",value:"fadeOutBottomLeft"},{name:"从右下浮出",value:"fadeOutBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转退出",value:"rotateOut"},{name:"绕左下退出",value:"rotateOutDownLeft"},{name:"绕右下退出",value:"rotateOutDownRight"},{name:"绕左上退出",value:"rotateOutUpLeft"},{name:"绕右上退出",value:"rotateOutUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"缩小退出",value:"zoomOut"},{name:"向下缩小退出",value:"zoomOutDown"},{name:"从左缩小退出",value:"zoomOutLeft"},{name:"从右缩小退出",value:"zoomOutRight"},{name:"向上缩小退出",value:"zoomOutUp"}]},{type:"slide",name:"滑出",children:[{name:"向下滑出",value:"slideOutDown"},{name:"从左滑出",value:"slideOutLeft"},{name:"从右滑出",value:"slideOutRight"},{name:"向上滑出",value:"slideOutUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转退出",value:"flipOutX"},{name:"Y轴翻转退出",value:"flipOutY"}]},{type:"back",name:"缩小滑出",children:[{name:"向下缩小滑出",value:"backOutDown"},{name:"从左缩小滑出",value:"backOutLeft"},{name:"从右缩小滑出",value:"backOutRight"},{name:"向上缩小滑出",value:"backOutUp"}]},{type:"lightSpeed",name:"飞出",children:[{name:"从右飞出",value:"lightSpeedOutRight"},{name:"从左飞出",value:"lightSpeedOutLeft"}]}],kk=[{type:"shake",name:"晃动",children:[{name:"左右摇晃",value:"shakeX"},{name:"上下摇晃",value:"shakeY"},{name:"摇头",value:"headShake"},{name:"摆动",value:"swing"},{name:"晃动",value:"wobble"},{name:"惊恐",value:"tada"},{name:"果冻",value:"jello"}]},{type:"other",name:"其他",children:[{name:"弹跳",value:"bounce"},{name:"闪烁",value:"flash"},{name:"脉搏",value:"pulse"},{name:"橡皮筋",value:"rubberBand"},{name:"心跳(快)",value:"heartBeat"}]}],bk=[{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"}],_k=e=>((0,i.dD)("data-v-5abd2ee4"),e=e(),(0,i.Cn)(),e),Ik={class:"element-animation-panel"},Sk={key:0,class:"element-animation"},Ck={class:"type-title"},Lk={class:"pool-item-wrapper"},Tk=["onMouseenter","onClick"],Ek={key:0,class:"mask"},Mk={key:1,class:"tip"},Uk={class:"sequence-content"},Wk={class:"index"},Dk={class:"text"},Hk={class:"handler"},Fk={key:0,class:"configs"},Ak={class:"config-item"},$k=_k((()=>(0,i._)("div",{style:{width:"35%"}},"持续时长:",-1))),Zk={class:"config-item"},Ok=_k((()=>(0,i._)("div",{style:{width:"35%"}},"触发方式:",-1))),Rk={class:"config-item"};var zk=(0,i.aZ)({__name:"ElementAnimationPanel",setup(e){const t={};for(const o of wk)for(const e of o.children)t[e.value]=e.name;for(const o of xk)for(const e of o.children)t[e.value]=e.name;for(const o of kk)for(const e of o.children)t[e.value]=e.name;const l=["in","out","attention"],a=$(),{handleElement:n,handleElementId:u}=(0,o.Jk)(R()),{currentSlide:c,formatedAnimations:d,currentSlideAnimations:p}=(0,o.Jk)(a),v=[{key:"in",label:"入场",color:"#68a490"},{key:"out",label:"退场",color:"#d86344"},{key:"attention",label:"强调",color:"#e8b76a"}],m=(0,s.iH)("in"),h=(0,s.iH)(!1);(0,i.YP)((()=>u.value),(()=>{g.value=!1}));const f=(0,s.iH)(""),g=(0,s.iH)(!1),{addHistorySnapshot:y}=da(),w=(0,i.Fl)((()=>{const e=[];for(let l=0;le.id===o.elId));if(!i)continue;const s=$n[i.type],r=t[o.effect];e.push({...o,index:0===n?l+1:"",elType:s,animationEffect:r})}}return e})),x=(0,i.Fl)((()=>{const e=p.value,t=e.filter((e=>e.elId===u.value));return t||[]})),k=e=>{const t=p.value.filter((t=>t.id!==e));a.updateSlide({animations:t}),y()},b=e=>{const{newIndex:t,oldIndex:l}=e;if(void 0===t||void 0===l||t===l)return;const n=JSON.parse(JSON.stringify(p.value)),o=n[l];n.splice(l,1),n.splice(t,0,o),a.updateSlide({animations:n}),y()},_=(e,t,l)=>{const a=document.querySelector(`#editable-element-${e} [class^=editable-element-]`);if(a){const e=`${yk}${t}`;document.documentElement.style.setProperty("--animate-duration",`${l}ms`),a.classList.add(`${yk}animated`,e);const n=()=>{document.documentElement.style.removeProperty("--animate-duration"),a.classList.remove(`${yk}animated`,e)};a.addEventListener("animationend",n,{once:!0})}},I=async()=>{h.value=!h.value;for(let e=0;esetTimeout(e,t.duration+100))),_(t.elId,t.effect,t.duration),e>=w.value.length-1&&(h.value=!1)}},S=(e,t)=>{if(t<100||t>5e3)return;const l=p.value.map((l=>l.id===e?{...l,duration:t}:l));a.updateSlide({animations:l}),y()},C=(e,t)=>{const l=p.value.map((l=>l.id===e?{...l,trigger:t}:l));a.updateSlide({animations:l}),y()},L=(e,t)=>{const l=p.value.map((l=>l.id===T.value?{...l,type:e,effect:t}:l));a.updateSlide({animations:l}),g.value=!1,y();const n=p.value.find((e=>e.elId===u.value)),o=n?.duration||fk;setTimeout((()=>{_(u.value,t,o)}),0)},T=(0,s.iH)(""),E=(e,t)=>{if(T.value)return void L(e,t);const l=JSON.parse(JSON.stringify(p.value));l.push({id:(0,r.x0)(10),elId:u.value,type:e,effect:t,duration:fk,trigger:gk}),a.updateSlide({animations:l}),g.value=!1,y(),setTimeout((()=>{_(u.value,t,fk)}),0)},M=(0,s.iH)(!1),U=e=>{e?setTimeout((()=>M.value=!0),600):M.value=!1},W=e=>{g.value=!0,T.value=e,U(!0)},D={in:wk,out:xk,attention:kk};return(e,t)=>{const a=(0,i.up)("IconEffects"),o=(0,i.up)("IconClick"),r=(0,i.up)("IconPlayOne"),u=(0,i.up)("IconCloseSmall"),c=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",Ik,[(0,s.SU)(n)?((0,i.wg)(),(0,i.iD)("div",Sk,[(0,i.Wm)(dn,{trigger:"click",value:g.value,"onUpdate:value":[t[3]||(t[3]=e=>g.value=e),t[4]||(t[4]=e=>U(e))],style:{width:"100%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(Kd,{tabs:v,value:m.value,"onUpdate:value":t[0]||(t[0]=e=>m.value=e),tabsStyle:{marginBottom:"20px"},tabStyle:{width:"33.333%"},spaceAround:""},null,8,["value"]),((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(l,(e=>((0,i.wg)(),(0,i.iD)(i.HY,null,[m.value===e?((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["animation-pool",e]),key:e},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(D[e],(l=>((0,i.wg)(),(0,i.iD)("div",{class:"pool-type",key:l.name},[(0,i._)("div",Ck,(0,oe.zw)(l.name)+":",1),(0,i._)("div",Lk,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(l.children,(l=>((0,i.wg)(),(0,i.iD)("div",{class:"pool-item",key:l.name,onMouseenter:e=>f.value=l.value,onMouseleave:t[1]||(t[1]=e=>f.value=""),onClick:t=>E(e,l.value)},[(0,i._)("div",{class:(0,oe.C_)(["animation-box",[`${(0,s.SU)(yk)}animated`,`${(0,s.SU)(yk)}fast`,f.value===l.value&&`${(0,s.SU)(yk)}${l.value}`]])},(0,oe.zw)(l.name),3)],40,Tk)))),128))])])))),128)),M.value?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",Ek))],2)):(0,i.kq)("",!0)],64)))),64))])),default:(0,i.w5)((()=>[(0,i.Wm)(tp,{class:"element-animation-btn",onClick:t[2]||(t[2]=e=>T.value="")},{default:(0,i.w5)((()=>[(0,i.Wm)(a,{style:{"margin-right":"5px"}}),(0,i.Uk)(" 添加动画 ")])),_:1})])),_:1},8,["value"])])):((0,i.wg)(),(0,i.iD)("div",Mk,[(0,i.Wm)(o,{style:{"margin-right":"5px"}}),(0,i.Uk)(" 选中画布中的元素添加动画")])),(0,i.Wm)(Zc),(0,i.Wm)((0,s.SU)(Dm()),{class:"animation-sequence",modelValue:w.value,animation:200,scroll:!0,scrollSensitivity:50,handle:".sequence-content",itemKey:"id",onEnd:b},{item:(0,i.w5)((({element:e})=>[(0,i._)("div",{class:(0,oe.C_)(["sequence-item",[e.type,{active:(0,s.SU)(n)?.id===e.elId}]])},[(0,i._)("div",Uk,[(0,i._)("div",Wk,(0,oe.zw)(e.index),1),(0,i._)("div",Dk,"【"+(0,oe.zw)(e.elType)+"】"+(0,oe.zw)(e.animationEffect),1),(0,i._)("div",Hk,[(0,i.wy)((0,i.Wm)(r,{class:"handler-btn",onClick:t=>_(e.elId,e.effect,e.duration)},null,8,["onClick"]),[[c,"预览"]]),(0,i.wy)((0,i.Wm)(u,{class:"handler-btn",onClick:t=>k(e.id)},null,8,["onClick"]),[[c,"删除"]])])]),x.value[0]?.elId===e.elId?((0,i.wg)(),(0,i.iD)("div",Fk,[(0,i.Wm)(Zc,{style:{margin:"16px 0"}}),(0,i._)("div",Ak,[$k,(0,i.Wm)(mv,{min:500,max:3e3,step:500,value:e.duration,"onUpdate:value":t=>S(e.id,t),style:{width:"65%"}},null,8,["value","onUpdate:value"])]),(0,i._)("div",Zk,[Ok,(0,i.Wm)(cp,{value:e.trigger,"onUpdate:value":t=>C(e.id,t),style:{width:"65%"},options:[{label:"主动触发",value:"click"},{label:"与上一动画同时",value:"meantime"},{label:"上一动画之后",value:"auto"}]},null,8,["value","onUpdate:value"])]),(0,i._)("div",Rk,[(0,i.Wm)(tp,{style:{width:"100%"},onClick:t=>W(e.id)},{default:(0,i.w5)((()=>[(0,i.Uk)("更换动画")])),_:2},1032,["onClick"])])])):(0,i.kq)("",!0)],2)])),_:1},8,["modelValue"]),w.value.length>=2?((0,i.wg)(),(0,i.iD)(i.HY,{key:2},[(0,i.Wm)(Zc),(0,i.Wm)(tp,{onClick:t[5]||(t[5]=e=>I())},{default:(0,i.w5)((()=>[(0,i.Uk)((0,oe.zw)(h.value?"停止预览":"预览全部"),1)])),_:1})],64)):(0,i.kq)("",!0)])}}});const Pk=(0,Vl.Z)(zk,[["__scopeId","data-v-5abd2ee4"]]);var Bk=Pk;const Nk=[{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#5b9bd5","#ed7d31","#a5a5a5","#ffc000","#4472c4","#70ad47"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#83992a","#3c9670","#44709d","#a23b32","#d87728","#deb340"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#e48312","#bd582c","#865640","#9b8357","#c2bc80","#94a088"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#90c225","#54a121","#e6b91e","#e86618","#c42f19","#918756"]},{background:"#ffffff",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#1cade4","#2683c6","#27ced7","#42ba97","#3e8853","#62a39f"]},{background:"#e9efd6",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#a5300f","#de7e18","#9f8351","#728653","#92aa4c","#6aac91"]},{background:"#17444e",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#b01513","#ea6312","#e6b729","#6bab90","#55839a","#9e5d9d"]},{background:"#36234d",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#b31166","#e33d6f","#e45f3c","#e9943a","#9b6bf2","#d63cd0"]},{background:"#247fad",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#052f61","#a50e82","#14967c","#6a9e1f","#e87d37","#c62324"]},{background:"#103f55",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#40aebd","#97e8d5","#a1cf49","#628f3e","#f2df3a","#fcb01c"]},{background:"#242367",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#ac3ec1","#477bd1","#46b298","#90ba4c","#dd9d31","#e25345"]},{background:"#e4b75e",fontColor:"#333333",fontname:"Microsoft Yahei",colors:["#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529"]},{background:"#333333",fontColor:"#ffffff",fontname:"Microsoft Yahei",colors:["#bdc8df","#003fa9","#f5ba00","#ff7567","#7676d9","#923ffc"]}];var jk=()=>{const e=$(),{slides:t,currentSlide:l,theme:a}=(0,o.Jk)(e),{addHistorySnapshot:n}=da(),i=e=>{const t=[];for(const l of e.elements){if("shape"===l.type&&0!==(0,W.Z)(l.fill).getAlpha()){const e=(0,W.Z)(l.fill).toRgbString();t.includes(e)||t.push(e)}if("text"===l.type&&l.fill&&0!==(0,W.Z)(l.fill).getAlpha()){const e=(0,W.Z)(l.fill).toRgbString();t.includes(e)||t.push(e)}if("table"===l.type&&l.theme&&0!==(0,W.Z)(l.theme.color).getAlpha()){const e=(0,W.Z)(l.theme.color).toRgbString();t.includes(e)||t.push(e)}if("chart"===l.type&&l.fill&&0!==(0,W.Z)(l.fill).getAlpha()){const e=(0,W.Z)(l.fill).toRgbString();t.includes(e)||t.push(e)}if("line"===l.type&&0!==(0,W.Z)(l.color).getAlpha()){const e=(0,W.Z)(l.color).toRgbString();t.includes(e)||t.push(e)}if("audio"===l.type&&0!==(0,W.Z)(l.color).getAlpha()){const e=(0,W.Z)(l.color).toRgbString();t.includes(e)||t.push(e)}}return t},s=(e,t)=>{const l=i(e),a={};if(l.length>t.length){const e=(0,W.Z)(t[0]).analogous(l.length-t.length+10),a=e.map((e=>e.toHexString())).slice(1);t.push(...a)}for(let n=0;n{const l=s(e,t.colors);e.background&&"image"===e.background.type||(e.background={type:"solid",color:t.background});for(const a of e.elements){if("shape"===a.type&&(a.fill=l[(0,W.Z)(a.fill).toRgbString()]||a.fill,a.gradient&&delete a.gradient),"text"===a.type&&(a.fill&&(a.fill=l[(0,W.Z)(a.fill).toRgbString()]||a.fill),a.defaultColor=t.fontColor,a.defaultFontName=t.fontname),"table"===a.type){a.theme&&(a.theme.color=l[(0,W.Z)(a.theme.color).toRgbString()]||a.theme.color);for(const e of a.data)for(const l of e)l.style&&(l.style.color=t.fontColor,l.style.fontname=t.fontname)}"chart"===a.type&&(a.themeColor=[l[(0,W.Z)(a.themeColor[0]).toRgbString()]]||0,a.gridColor=t.fontColor),"line"===a.type&&(a.color=l[(0,W.Z)(a.color).toRgbString()]||a.color),"audio"===a.type&&(a.color=l[(0,W.Z)(a.color).toRgbString()]||a.color),"latex"===a.type&&(a.color=t.fontColor)}},u=t=>{const a=JSON.parse(JSON.stringify(l.value));r(a,t),e.updateSlide({background:a.background,elements:a.elements}),n()},c=l=>{const a=JSON.parse(JSON.stringify(t.value));for(const e of a)r(e,l);e.setTheme({backgroundColor:l.background,themeColor:l.colors[0],fontColor:l.fontColor,fontName:l.fontname}),e.setSlides(a),n()},d=(l=!1)=>{const o=JSON.parse(JSON.stringify(t.value)),{themeColor:i,backgroundColor:s,fontColor:r,fontName:u,outline:c,shadow:d}=a.value;for(const e of o){e.background&&"image"===e.background.type||(e.background={type:"solid",color:s});for(const t of e.elements)if(l&&("outline"in t&&t.outline&&(t.outline=c),"shadow"in t&&t.shadow&&(t.shadow=d)),"shape"===t.type)t.fill=i;else if("line"===t.type)t.color=i;else if("text"===t.type)t.defaultColor=r,t.defaultFontName=u,t.fill&&(t.fill=i);else if("table"===t.type){t.theme&&(t.theme.color=i);for(const e of t.data)for(const t of e)t.style&&(t.style.color=r,t.style.fontname=u)}else"chart"===t.type?(t.themeColor=[i],t.gridColor=r):"latex"===t.type?t.color=r:"audio"===t.type&&(t.color=i)}e.setSlides(o),n()};return{applyPresetThemeToSingleSlide:u,applyPresetThemeToAllSlides:c,applyThemeToAllSlides:d}};const Yk=e=>((0,i.dD)("data-v-ea674bd8"),e=e(),(0,i.Cn)(),e),Vk={class:"slide-design-panel"},Jk=Yk((()=>(0,i._)("div",{class:"title"},"背景填充",-1))),qk={class:"row"},Xk=Yk((()=>(0,i._)("div",{style:{width:"10px"}},null,-1))),Gk={key:0,class:"background-image-wrapper"},Kk={class:"background-image"},Qk={key:1,class:"background-gradient-wrapper"},eb={class:"row"},tb=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"起点颜色:",-1))),lb={class:"row"},ab=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"终点颜色:",-1))),nb={key:0,class:"row"},ob=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"渐变角度:",-1))),ib={class:"row"},sb={class:"row"},rb=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"画布尺寸:",-1))),ub={class:"title"},cb=Yk((()=>(0,i._)("span",null,"全局主题",-1))),db=Yk((()=>(0,i._)("span",{class:"text"},"更多",-1))),pb={class:"row"},vb=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"字体:",-1))),mb={class:"row"},hb=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"字体颜色:",-1))),fb={class:"row"},gb=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"背景颜色:",-1))),yb={class:"row"},wb=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"主题色:",-1))),xb={class:"row"},kb=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"边框样式:",-1))),bb={class:"row"},_b=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"边框颜色:",-1))),Ib={class:"row"},Sb=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"边框粗细:",-1))),Cb={class:"row",style:{height:"30px"}},Lb=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"水平阴影:",-1))),Tb={class:"row",style:{height:"30px"}},Eb=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"垂直阴影:",-1))),Mb={class:"row",style:{height:"30px"}},Ub=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"模糊距离:",-1))),Wb={class:"row"},Db=Yk((()=>(0,i._)("div",{style:{width:"40%"}},"阴影颜色:",-1))),Hb={class:"row"},Fb=Yk((()=>(0,i._)("div",{class:"title"},"预置主题",-1))),Ab={class:"theme-list"},$b={class:"theme-item-content"},Zb={class:"colors"},Ob={class:"btns"},Rb=["onClick"],zb=["onClick"];var Pb=(0,i.aZ)({__name:"SlideDesignPanel",setup(e){const t=$(),{availableFonts:l}=(0,o.Jk)(R()),{slides:a,currentSlide:n,viewportRatio:r,theme:u}=(0,o.Jk)(t),c=(0,s.iH)(!1),d=(0,i.Fl)((()=>n.value.background?n.value.background:{type:"solid",value:"#fff"})),{addHistorySnapshot:p}=da(),{applyPresetThemeToSingleSlide:v,applyPresetThemeToAllSlides:m,applyThemeToAllSlides:h}=jk(),f=e=>{if("solid"===e){const e={...d.value,type:"solid",color:d.value.color||"#fff"};t.updateSlide({background:e})}else if("image"===e){const e={...d.value,type:"image",image:d.value.image||"",imageSize:d.value.imageSize||"cover"};t.updateSlide({background:e})}else{const e={...d.value,type:"gradient",gradientType:d.value.gradientType||"linear",gradientColor:d.value.gradientColor||["#fff","#fff"],gradientRotate:d.value.gradientRotate||0};t.updateSlide({background:e})}p()},g=e=>{t.updateSlide({background:{...d.value,...e}}),p()},y=e=>{const t=e[0];t&&na(t).then((e=>g({image:e})))},w=()=>{const e=a.value.map((e=>({...e,background:n.value.background})));t.setSlides(e),p()},x=e=>{t.setTheme(e)},k=e=>{t.setViewportRatio(e)};return(e,t)=>{const a=(0,i.up)("IconPlus"),n=(0,i.up)("IconDown"),o=(0,i.up)("IconRight");return(0,i.wg)(),(0,i.iD)("div",Vk,[Jk,(0,i._)("div",qk,[(0,i.Wm)(cp,{style:{flex:"1"},value:d.value.type,"onUpdate:value":t[0]||(t[0]=e=>f(e)),options:[{label:"纯色填充",value:"solid"},{label:"图片填充",value:"image"},{label:"渐变填充",value:"gradient"}]},null,8,["value"]),Xk,"solid"===d.value.type?((0,i.wg)(),(0,i.j4)(dn,{key:0,trigger:"click",style:{flex:"1"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:d.value.color,"onUpdate:modelValue":t[1]||(t[1]=e=>g({color:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:d.value.color||"#fff"},null,8,["color"])])),_:1})):"image"===d.value.type?((0,i.wg)(),(0,i.j4)(cp,{key:1,style:{flex:"1"},value:d.value.imageSize||"cover","onUpdate:value":t[2]||(t[2]=e=>g({imageSize:e})),options:[{label:"缩放",value:"contain"},{label:"拼贴",value:"repeat"},{label:"缩放铺满",value:"cover"}]},null,8,["value"])):((0,i.wg)(),(0,i.j4)(cp,{key:2,style:{flex:"1"},value:d.value.gradientType||"","onUpdate:value":t[3]||(t[3]=e=>g({gradientType:e})),options:[{label:"线性渐变",value:"linear"},{label:"径向渐变",value:"radial"}]},null,8,["value"]))]),"image"===d.value.type?((0,i.wg)(),(0,i.iD)("div",Gk,[(0,i.Wm)(Pa,{onChange:t[4]||(t[4]=e=>y(e))},{default:(0,i.w5)((()=>[(0,i._)("div",Kk,[(0,i._)("div",{class:"content",style:(0,oe.j5)({backgroundImage:`url(${d.value.image})`})},[(0,i.Wm)(a)],4)])])),_:1})])):(0,i.kq)("",!0),"gradient"===d.value.type?((0,i.wg)(),(0,i.iD)("div",Qk,[(0,i._)("div",eb,[tb,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:d.value.gradientColor[0],"onUpdate:modelValue":t[5]||(t[5]=e=>g({gradientColor:[e,d.value.gradientColor[1]]}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:d.value.gradientColor[0]},null,8,["color"])])),_:1})]),(0,i._)("div",lb,[ab,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:d.value.gradientColor[1],"onUpdate:modelValue":t[6]||(t[6]=e=>g({gradientColor:[d.value.gradientColor[0],e]}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:d.value.gradientColor[1]},null,8,["color"])])),_:1})]),"linear"===d.value.gradientType?((0,i.wg)(),(0,i.iD)("div",nb,[ob,(0,i.Wm)(qm,{min:0,max:360,step:15,value:d.value.gradientRotate||0,"onUpdate:value":t[7]||(t[7]=e=>g({gradientRotate:e})),style:{width:"60%"}},null,8,["value"])])):(0,i.kq)("",!0)])):(0,i.kq)("",!0),(0,i._)("div",ib,[(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[8]||(t[8]=e=>w())},{default:(0,i.w5)((()=>[(0,i.Uk)("应用背景到全部")])),_:1})]),(0,i.Wm)(Zc),(0,i._)("div",sb,[rb,(0,i.Wm)(cp,{style:{width:"60%"},value:(0,s.SU)(r),"onUpdate:value":t[9]||(t[9]=e=>k(e)),options:[{label:"宽屏 16 : 9",value:.5625},{label:"宽屏 16 : 10",value:.625},{label:"标准 4 : 3",value:.75},{label:"纸张 A3 / A4",value:.70710678},{label:"竖向 A3 / A4",value:1.41421356}]},null,8,["value"])]),(0,i.Wm)(Zc),(0,i._)("div",ub,[cb,(0,i._)("span",{class:"more",onClick:t[10]||(t[10]=e=>c.value=!c.value)},[db,c.value?((0,i.wg)(),(0,i.j4)(n,{key:0})):((0,i.wg)(),(0,i.j4)(o,{key:1}))])]),(0,i._)("div",pb,[vb,(0,i.Wm)(cp,{style:{width:"60%"},value:(0,s.SU)(u).fontName,"onUpdate:value":t[11]||(t[11]=e=>x({fontName:e})),options:[...(0,s.SU)(l),...(0,s.SU)(M)]},null,8,["value","options"])]),(0,i._)("div",mb,[hb,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(u).fontColor,"onUpdate:modelValue":t[12]||(t[12]=e=>x({fontColor:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:(0,s.SU)(u).fontColor},null,8,["color"])])),_:1})]),(0,i._)("div",fb,[gb,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(u).backgroundColor,"onUpdate:modelValue":t[13]||(t[13]=e=>x({backgroundColor:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:(0,s.SU)(u).backgroundColor},null,8,["color"])])),_:1})]),(0,i._)("div",yb,[wb,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(u).themeColor,"onUpdate:modelValue":t[14]||(t[14]=e=>x({themeColor:e}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:(0,s.SU)(u).themeColor},null,8,["color"])])),_:1})]),c.value?((0,i.wg)(),(0,i.iD)(i.HY,{key:2},[(0,i._)("div",xb,[kb,(0,i.Wm)(cp,{style:{width:"60%"},value:(0,s.SU)(u).outline.style||"","onUpdate:value":t[15]||(t[15]=e=>x({outline:{...(0,s.SU)(u).outline,style:e}})),options:[{label:"实线边框",value:"solid"},{label:"虚线边框",value:"dashed"}]},null,8,["value"])]),(0,i._)("div",bb,[_b,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(u).outline.color,"onUpdate:modelValue":t[16]||(t[16]=e=>x({outline:{...(0,s.SU)(u).outline,color:e}}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:(0,s.SU)(u).outline.color||"#000"},null,8,["color"])])),_:1})]),(0,i._)("div",Ib,[Sb,(0,i.Wm)(mv,{value:(0,s.SU)(u).outline.width||0,"onUpdate:value":t[17]||(t[17]=e=>x({outline:{...(0,s.SU)(u).outline,width:e}})),style:{width:"60%"}},null,8,["value"])]),(0,i._)("div",Cb,[Lb,(0,i.Wm)(qm,{style:{width:"60%"},min:-10,max:10,step:1,value:(0,s.SU)(u).shadow.h,"onUpdate:value":t[18]||(t[18]=e=>x({shadow:{...(0,s.SU)(u).shadow,h:e}}))},null,8,["value"])]),(0,i._)("div",Tb,[Eb,(0,i.Wm)(qm,{style:{width:"60%"},min:-10,max:10,step:1,value:(0,s.SU)(u).shadow.v,"onUpdate:value":t[19]||(t[19]=e=>x({shadow:{...(0,s.SU)(u).shadow,v:e}}))},null,8,["value"])]),(0,i._)("div",Mb,[Ub,(0,i.Wm)(qm,{style:{width:"60%"},min:1,max:20,step:1,value:(0,s.SU)(u).shadow.blur,"onUpdate:value":t[20]||(t[20]=e=>x({shadow:{...(0,s.SU)(u).shadow,blur:e}}))},null,8,["value"])]),(0,i._)("div",Wb,[Db,(0,i.Wm)(dn,{trigger:"click",style:{width:"60%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:(0,s.SU)(u).shadow.color,"onUpdate:modelValue":t[21]||(t[21]=e=>x({shadow:{...(0,s.SU)(u).shadow,color:e}}))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i.Wm)(ih,{color:(0,s.SU)(u).shadow.color},null,8,["color"])])),_:1})])],64)):(0,i.kq)("",!0),(0,i._)("div",Hb,[(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[22]||(t[22]=e=>(0,s.SU)(h)(c.value))},{default:(0,i.w5)((()=>[(0,i.Uk)("应用主题到全部")])),_:1})]),(0,i.Wm)(Zc),Fb,(0,i._)("div",Ab,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(Nk),((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"theme-item",key:t,style:(0,oe.j5)({backgroundColor:e.background,fontFamily:e.fontname})},[(0,i._)("div",$b,[(0,i._)("div",{class:"text",style:(0,oe.j5)({color:e.fontColor})},"文字 Aa",4),(0,i._)("div",Zb,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.colors,((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"color-block",key:t,style:(0,oe.j5)({backgroundColor:e})},null,4)))),128))]),(0,i._)("div",Ob,[(0,i._)("div",{class:"btn",onClick:t=>(0,s.SU)(v)(e)},"应用",8,Rb),(0,i._)("div",{class:"btn",onClick:t=>(0,s.SU)(m)(e)},"应用全局",8,zb)])])],4)))),128))])])}}});const Bb=(0,Vl.Z)(Pb,[["__scopeId","data-v-ea674bd8"]]);var Nb=Bb;const jb={class:"slide-animation-panel"},Yb={class:"animation-pool"},Vb=["onClick"],Jb={class:"animation-text"};var qb=(0,i.aZ)({__name:"SlideAnimationPanel",setup(e){const t=$(),{slides:l,currentSlide:a}=(0,o.Jk)(t),n=(0,i.Fl)((()=>a.value.turningMode||"slideY")),r=bk,{addHistorySnapshot:u}=da(),c=e=>{e!==n.value&&(t.updateSlide({turningMode:e}),u())},d=()=>{const e=l.value.map((e=>({...e,turningMode:a.value.turningMode})));t.setSlides(e),ta.success("已应用到全部"),u()};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",jb,[(0,i._)("div",Yb,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(r),(e=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["animation-item",{active:n.value===e.value}]),key:e.label,onClick:t=>c(e.value)},[(0,i._)("div",{class:(0,oe.C_)(["animation-block",e.value])},null,2),(0,i._)("div",Jb,(0,oe.zw)(e.label),1)],10,Vb)))),128))]),(0,i.Wm)(tp,{style:{width:"100%"},onClick:t[0]||(t[0]=e=>d())},{default:(0,i.w5)((()=>[(0,i.Uk)("应用到全部")])),_:1})]))}});const Xb=(0,Vl.Z)(qb,[["__scopeId","data-v-0562c530"]]);var Gb=Xb,Kb=()=>{const e=$(),{activeElementIdList:t,activeElementList:l}=(0,o.Jk)(R()),{currentSlide:a}=(0,o.Jk)(e),{addHistorySnapshot:n}=da(),i=o=>{const{minX:i,maxX:s,minY:r,maxY:u}=ke(l.value),c=JSON.parse(JSON.stringify(a.value.elements)),d={};for(const e of l.value)if(e.groupId&&!d[e.groupId]){const t=l.value.filter((t=>t.groupId===e.groupId));d[e.groupId]=ke(t)}if(o===ee.LEFT)c.forEach((e=>{if(t.value.includes(e.id))if(e.groupId){const t=d[e.groupId],l=t.minX-i;e.left=e.left-l}else if("rotate"in e&&e.rotate){const{offsetX:t}=we({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate});e.left=i-t}else e.left=i}));else if(o===ee.RIGHT)c.forEach((e=>{if(t.value.includes(e.id))if(e.groupId){const t=d[e.groupId],l=t.maxX-s;e.left=e.left-l}else{const t="line"===e.type?Math.max(e.start[0],e.end[0]):e.width;if("rotate"in e&&e.rotate){const{offsetX:l}=we({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate});e.left=s-t+l}else e.left=s-t}}));else if(o===ee.TOP)c.forEach((e=>{if(t.value.includes(e.id))if(e.groupId){const t=d[e.groupId],l=t.minY-r;e.top=e.top-l}else if("rotate"in e&&e.rotate){const{offsetY:t}=we({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate});e.top=r-t}else e.top=r}));else if(o===ee.BOTTOM)c.forEach((e=>{if(t.value.includes(e.id))if(e.groupId){const t=d[e.groupId],l=t.maxY-u;e.top=e.top-l}else{const t="line"===e.type?Math.max(e.start[1],e.end[1]):e.height;if("rotate"in e&&e.rotate){const{offsetY:l}=we({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate});e.top=u-t+l}else e.top=u-t}}));else if(o===ee.HORIZONTAL){const e=(i+s)/2;c.forEach((l=>{if(t.value.includes(l.id))if(l.groupId){const t=d[l.groupId],a=(t.maxX+t.minX)/2,n=a-e;l.left=l.left-n}else{const t="line"===l.type?Math.max(l.start[0],l.end[0]):l.width;l.left=e-t/2}}))}else if(o===ee.VERTICAL){const e=(r+u)/2;c.forEach((l=>{if(t.value.includes(l.id))if(l.groupId){const t=d[l.groupId],a=(t.maxY+t.minY)/2,n=a-e;l.top=l.top-n}else{const t="line"===l.type?Math.max(l.start[1],l.end[1]):l.height;l.top=e-t/2}}))}e.updateSlide({elements:c}),n()};return{alignActiveElement:i}},Qb=()=>{const e=$(),{activeElementIdList:t,activeElementList:l}=(0,o.Jk)(R()),{currentSlide:a}=(0,o.Jk)(e),{addHistorySnapshot:n}=da(),s=(0,i.Fl)((()=>{let e=0;const t=[];for(const a of l.value)a.groupId?t.includes(a.groupId)||(t.push(a.groupId),e+=1):e+=1;return e})),r=()=>{const{minX:o,maxX:i}=ke(l.value),s=JSON.parse(JSON.stringify(l.value)),r=JSON.parse(JSON.stringify(a.value.elements)),u=[];let c=[];for(const e of s)if(e.groupId){const t=c.find((t=>t.groupId===e.groupId));t?c=c.map((t=>t.groupId===e.groupId?{...t,els:[...t.els,e]}:t)):c.push({groupId:e.groupId,els:[e]})}else{const{minX:t,maxX:l}=xe(e);u.push({min:t,max:l,el:e})}const d=[];for(const e of c){const{minX:t,maxX:l}=ke(e.els);d.push({min:t,max:l,els:e.els})}const p=[...u,...d];p.sort(((e,t)=>e.min-t.min));let v=0;for(const e of p){const t=e.max-e.min;v+=t}const m=(i-o-v)/(p.length-1),h=[],f=p[0];let g={min:f.min,max:f.max};if("el"in f)h.push({pos:f.min,el:f.el});else for(const e of f.els){const{minX:t}=xe(e);h.push({pos:t,el:e})}for(let e=1;e{const{minY:o,maxY:i}=ke(l.value),s=JSON.parse(JSON.stringify(l.value)),r=JSON.parse(JSON.stringify(a.value.elements)),u=[];let c=[];for(const e of s)if(e.groupId){const t=c.find((t=>t.groupId===e.groupId));t?c=c.map((t=>t.groupId===e.groupId?{...t,els:[...t.els,e]}:t)):c.push({groupId:e.groupId,els:[e]})}else{const{minY:t,maxY:l}=xe(e);u.push({min:t,max:l,el:e})}const d=[];for(const e of c){const{minY:t,maxY:l}=ke(e.els);d.push({min:t,max:l,els:e.els})}const p=[...u,...d];p.sort(((e,t)=>e.min-t.min));let v=0;for(const e of p){const t=e.max-e.min;v+=t}const m=(i-o-v)/(p.length-1),h=[],f=p[0];let g={min:f.min,max:f.max};if("el"in f)h.push({pos:f.min,el:f.el});else for(const e of f.els){const{minY:t}=xe(e);h.push({pos:t,el:e})}for(let e=1;e{t.value?n(e):o(e)};return(e,n)=>{const o=(0,i.up)("IconAlignLeft"),p=(0,i.up)("IconAlignHorizontally"),v=(0,i.up)("IconAlignRight"),m=(0,i.up)("IconAlignTop"),h=(0,i.up)("IconAlignVertically"),f=(0,i.up)("IconAlignBottom"),g=(0,i.up)("IconGroup"),y=(0,i.up)("IconUngroup"),w=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",e_,[(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:n[0]||(n[0]=e=>d((0,s.SU)(ee).LEFT))},{default:(0,i.w5)((()=>[(0,i.Wm)(o)])),_:1})),[[w,"左对齐"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:n[1]||(n[1]=e=>d((0,s.SU)(ee).HORIZONTAL))},{default:(0,i.w5)((()=>[(0,i.Wm)(p)])),_:1})),[[w,"水平居中"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:n[2]||(n[2]=e=>d((0,s.SU)(ee).RIGHT))},{default:(0,i.w5)((()=>[(0,i.Wm)(v)])),_:1})),[[w,"右对齐"]])])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:n[3]||(n[3]=e=>d((0,s.SU)(ee).TOP))},{default:(0,i.w5)((()=>[(0,i.Wm)(m)])),_:1})),[[w,"上对齐"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:n[4]||(n[4]=e=>d((0,s.SU)(ee).VERTICAL))},{default:(0,i.w5)((()=>[(0,i.Wm)(h)])),_:1})),[[w,"垂直居中"]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(tp,{style:{flex:"1"},onClick:n[5]||(n[5]=e=>d((0,s.SU)(ee).BOTTOM))},{default:(0,i.w5)((()=>[(0,i.Wm)(f)])),_:1})),[[w,"下对齐"]])])),_:1}),(0,s.SU)(r)>2?((0,i.wg)(),(0,i.j4)(Kf,{key:0,class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{style:{flex:"1"},onClick:n[6]||(n[6]=e=>(0,s.SU)(u)())},{default:(0,i.w5)((()=>[(0,i.Uk)("水平均匀分布")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:n[7]||(n[7]=e=>(0,s.SU)(c)())},{default:(0,i.w5)((()=>[(0,i.Uk)("垂直均匀分布")])),_:1})])),_:1})):(0,i.kq)("",!0),(0,i.Wm)(Zc),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{disabled:!(0,s.SU)(t),onClick:n[8]||(n[8]=e=>(0,s.SU)(l)()),style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(g,{style:{"margin-right":"3px"}}),(0,i.Uk)("组合")])),_:1},8,["disabled"]),(0,i.Wm)(tp,{disabled:(0,s.SU)(t),onClick:n[9]||(n[9]=e=>(0,s.SU)(a)()),style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(y,{style:{"margin-right":"3px"}}),(0,i.Uk)("取消组合")])),_:1},8,["disabled"])])),_:1})])}}});const l_=(0,Vl.Z)(t_,[["__scopeId","data-v-e95a4c6c"]]);var a_=l_;const n_=[{key:"letter",label:"字母",children:["α","β","γ","δ","ϵ","ε","ζ","η","θ","ϑ","ι","κ","λ","μ","ν","ξ","π","ϖ","ρ","ϱ","σ","ς","τ","υ","ϕ","φ","χ","ψ","ω","Γ","Δ","Θ","Λ","Ξ","Π","Σ","Υ","Φ","Ψ","Ω","𝐀","𝐁","𝐂","𝐃","𝐄","𝐅","𝐆","𝐇","𝐈","𝐉","𝐊","𝐋","𝐌","𝐍","𝐎","𝐏","𝐐","𝐑","𝐒","𝐓","𝐔","𝐕","𝐖","𝐗","𝐘","𝐙","𝐚","𝐛","𝐜","𝐝","𝐞","𝐟","𝐠","𝐡","𝐢","𝐣","𝐤","𝐥","𝐦","𝐧","𝐨","𝐩","𝐪","𝐫","𝐬","𝐭","𝐮","𝐯","𝐰","𝐱","𝐲","𝐳","𝓐","𝓑","𝓒","𝓓","𝓔","𝓕","𝓖","𝓗","𝓘","𝓙","𝓚","𝓛","𝓜","𝓝","𝓞","𝓟","𝓠","𝓡","𝓢","𝓣","𝓤","𝓥","𝓦","𝓧","𝓨","𝓩","𝓪","𝓫","𝓬","𝓭","𝓮","𝓯","𝓰","𝓱","𝓲","𝓳","𝓴","𝓵","𝓶","𝓷","𝓸","𝓹","𝓺","𝓻","𝓼","𝓽","𝓾","𝓿","𝔀","𝔁","𝔂","𝔃"]},{key:"number",label:"序号",children:["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","º","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹","₀","₁","₂","₃","₄","₅","₆","₇","₈","₉","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ","Ⅼ","Ⅽ","Ⅾ","Ⅿ","ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","ⅺ","ⅻ","ⅼ","ⅽ","ⅾ","ⅿ","ↀ","ↁ","ↂ","㊀","㊁","㊂","㊃","㊄","㊅","㊆","㊇","㊈","㊉","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩","𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡"]},{key:"math",label:"数学",children:["+","-","×","÷","=","~","¬","±","%","°","ǃ","‰","‱","½","⅓","⅔","¼","¾","<",">","l","o","g","l","g","l","n","⨂","⨁","⨄","⨃","⨅","⨆","√","∛","∜","∝","∞","∟","∠","∡","∢","∧","∨","∩","∪","∫","∬","∭","∮","∯","∰","∱","∲","∳","∴","∵","∼","∽","∾","∿","≃","≄","≅","≆","≇","≈","≊","≋","≌","≍","≎","≏","≐","≑","≒","≓","≔","≕","≤","≥","≦","≧","≨","≩","≪","≫","≺","≻","≼","≽","≾","≿","⊀","⊁","⊂","⊃","⊄","⊅","⊆","⊇","⊈","⊉","⊊","⊋","⊏","⊐","⊑","⊒","⊓","⊔","⊢","⊣","⊤","⊥","⊦","⊧","⊨","⊩","⊪","⊫","⊬","⊭","⊮","⊯","⊲","⊳","⊴","⊵","⋀","⋁","⋂","⋃","⋉","⋊","⋋","⋌","⟨","⟩","⟪","⟫","⟮","⟯","⧼","⧽","⦰"]},{key:"arrow",label:"箭头",children:["←","↑","→","↓","↔","↕","↖","↗","↘","↙","↚","↛","↜","↝","↞","↟","↠","↡","↢","↣","↤","↥","↦","↧","↨","↫","↬","↭","↮","↯","↰","↱","↲","↳","↴","↵","↶","↷","↸","↹","↺","↻","↼","↽","↾","↿","⇀","⇁","⇂","⇃","⇄","⇅","⇆","⇇","⇈","⇉","⇊","⇋","⇌","⇍","⇎","⇏","⇐","⇑","⇒","⇓","⇔","⇕","⇖","⇗","⇘","⇙","⇚","⇛","⇜","⇝","⇞","⇟","⇠","⇡","⇢","⇣","⇤","⇥","⇦","⇧","⇨","⇩","⇪","⇫","⇬","⇭","⇮","⇯","⇰","⇱","⇲","⇳","⇴","⇵","⇶","⇷","⇸","⇹","⇺","⇻","⇼","⇽","⇾","⇿"]},{key:"graph",label:"图形",children:["▢","▣","▤","▥","▦","▧","▨","▩","▭","▮","▯","▰","▱","▲","▷","▼","◁","◈","◉","◍","◐","◑","◒","◓","◔","◕","◧","◨","◩","◪","◫","◬","◭","◮"]}],o_={class:"symbol-panel"},i_={class:"pool"},s_=["onClick"],r_={class:"symbol"};var u_=(0,i.aZ)({__name:"SymbolPanel",setup(e){const t=(0,s.iH)(n_[0].key),l=(0,i.Fl)((()=>{const e=n_.find((e=>e.key===t.value));return e?.children||[]})),a=n_.map((e=>({key:e.key,label:e.label}))),n=e=>{Oi.emit(Ai.RICH_TEXT_COMMAND,{action:{command:"insert",value:e}})};return(e,o)=>((0,i.wg)(),(0,i.iD)("div",o_,[(0,i.Wm)(Kd,{tabs:(0,s.SU)(a),value:t.value,"onUpdate:value":o[0]||(o[0]=e=>t.value=e),tabsStyle:{marginBottom:"8px"},spaceBetween:""},null,8,["tabs","value"]),(0,i._)("div",i_,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(l.value,((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"symbol-item",key:t,onClick:t=>n(e)},[(0,i._)("div",r_,(0,oe.zw)(e),1)],8,s_)))),128))])]))}});const c_=(0,Vl.Z)(u_,[["__scopeId","data-v-2bb5f257"]]);var d_=c_;const p_={class:"toolbar"},v_={class:"content"};var m_=(0,i.aZ)({__name:"index",setup(e){const t=R(),{activeElementIdList:l,handleElement:n,toolbarState:r}=(0,o.Jk)(t),u=(0,i.Fl)((()=>"text"===n.value?.type?[{label:"样式",key:a.EL_STYLE},{label:"符号",key:a.SYMBOL},{label:"位置",key:a.EL_POSITION},{label:"动画",key:a.EL_ANIMATION}]:[{label:"样式",key:a.EL_STYLE},{label:"位置",key:a.EL_POSITION},{label:"动画",key:a.EL_ANIMATION}])),c=[{label:"设计",key:a.SLIDE_DESIGN},{label:"切换",key:a.SLIDE_ANIMATION},{label:"动画",key:a.EL_ANIMATION}],d=[{label:"样式",key:a.EL_STYLE},{label:"位置",key:a.MULTI_POSITION}],p=e=>{t.setToolbarState(e)},v=(0,i.Fl)((()=>l.value.length?l.value.length>1?d:u.value:c));(0,i.YP)(v,(()=>{const e=v.value.map((e=>e.key));e.includes(r.value)||t.setToolbarState(e[0])}));const m=(0,i.Fl)((()=>{const e={[a.EL_STYLE]:lk,[a.EL_POSITION]:hk,[a.EL_ANIMATION]:Bk,[a.SLIDE_DESIGN]:Nb,[a.SLIDE_ANIMATION]:Gb,[a.MULTI_POSITION]:a_,[a.SYMBOL]:d_};return e[r.value]||null}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",p_,[(0,i.Wm)(Kd,{tabs:v.value,value:(0,s.SU)(r),card:"","onUpdate:value":t[0]||(t[0]=e=>p(e))},null,8,["tabs","value"]),(0,i._)("div",v_,[((0,i.wg)(),(0,i.j4)((0,i.LL)(m.value)))])]))}});const h_=(0,Vl.Z)(m_,[["__scopeId","data-v-6c9ece83"]]);var f_=h_;const g_={class:"editor"};var y_=(0,i.aZ)({__name:"Editor",props:{value:{}},emits:["update"],setup(e,{expose:t,emit:l}){const a=e,n=l,o=R(),r=(0,s.iH)();let c;const v=(0,s.iH)(),m=(0,s.iH)(),h=(0,s.iH)(),f=()=>{m.value&&m.value.hide()},g=(0,D.debounce)((function(){n("update",c.dom.innerHTML)}),300,{trailing:!0}),y=()=>{o.setDisableHotkeysState(!0)},w=()=>{o.setDisableHotkeysState(!1)},x=()=>{if(!c)return;const{doc:e,tr:t}=c.state;c.dispatch(t.replaceRangeWith(0,e.content.size,Hi(a.value)))};t({updateTextContent:x});const k=()=>{const e=window.getSelection();if(!e||!e.anchorNode||!e.focusNode||e.isCollapsed||"Caret"===e.type||"None"===e.type)return;const t=e.getRangeAt(0);if(m.value){v.value=C(c);const{x:e,y:l,left:a,top:n}=t.getBoundingClientRect();m.value.setProps({getReferenceClientRect:()=>({x:e,y:l,left:a,top:n,height:0,width:0,right:a,bottom:n})}),m.value.show()}},b=(e,t)=>{if("color"===e&&t){const e=c.state.schema.marks.forecolor.create({color:t});d(c),p(c,e)}else if("backcolor"===e&&t){const e=c.state.schema.marks.backcolor.create({backcolor:t});d(c),p(c,e)}else if("bold"===e)d(c),(0,u.w9)(c.state.schema.marks.strong)(c.state,c.dispatch);else if("em"===e)d(c),(0,u.w9)(c.state.schema.marks.em)(c.state,c.dispatch);else if("underline"===e)d(c),(0,u.w9)(c.state.schema.marks.underline)(c.state,c.dispatch);else if("strikethrough"===e)d(c),(0,u.w9)(c.state.schema.marks.strikethrough)(c.state,c.dispatch);else if("bulletList"===e){const{bullet_list:e,list_item:t}=c.state.schema.nodes;Yi(e,t,"")(c.state,c.dispatch)}else if("orderedList"===e){const{ordered_list:e,list_item:t}=c.state.schema.nodes;Yi(e,t,"")(c.state,c.dispatch)}else if("clear"===e){d(c);const{$from:e,$to:t}=c.state.selection;c.dispatch(c.state.tr.removeMark(e.pos,t.pos))}c.focus(),g(),v.value=C(c)};return(0,i.bv)((()=>{c=Fi(r.value,a.value,{handleDOMEvents:{focus:y,blur:w,mouseup:k,mousedown:()=>{window.getSelection()?.removeAllRanges(),f()},keydown:f,input:g}},{placeholder:"点击输入演讲者备注"}),m.value=(0,rn.ZP)(r.value,{duration:0,content:h.value,interactive:!0,trigger:"manual",placement:"top-start",hideOnClick:"toggle",offset:[0,6]})})),(0,i.Ah)((()=>{c&&c.destroy()})),(e,t)=>{const l=(0,i.up)("IconTextBold"),a=(0,i.up)("IconTextItalic"),n=(0,i.up)("IconTextUnderline"),o=(0,i.up)("IconStrikethrough"),s=(0,i.up)("IconText"),u=(0,i.up)("IconHighLight"),c=(0,i.up)("IconList"),d=(0,i.up)("IconOrderedList"),p=(0,i.up)("IconFormat"),m=(0,i.Q2)("click-outside");return(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",g_,[(0,i._)("div",{class:"prosemirror-editor",ref_key:"editorViewRef",ref:r},null,512),(0,i._)("div",{class:"menu",ref_key:"menuRef",ref:h},[(0,i._)("button",{class:(0,oe.C_)({active:v.value?.bold}),onClick:t[0]||(t[0]=e=>b("bold"))},[(0,i.Wm)(l)],2),(0,i._)("button",{class:(0,oe.C_)({active:v.value?.em}),onClick:t[1]||(t[1]=e=>b("em"))},[(0,i.Wm)(a)],2),(0,i._)("button",{class:(0,oe.C_)({active:v.value?.underline}),onClick:t[2]||(t[2]=e=>b("underline"))},[(0,i.Wm)(n)],2),(0,i._)("button",{class:(0,oe.C_)({active:v.value?.strikethrough}),onClick:t[3]||(t[3]=e=>b("strikethrough"))},[(0,i.Wm)(o)],2),(0,i.Wm)(dn,{trigger:"click",style:{width:"30%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:v.value?.color,"onUpdate:modelValue":t[4]||(t[4]=e=>b("color",e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i._)("button",null,[(0,i.Wm)(s)])])),_:1}),(0,i.Wm)(dn,{trigger:"click",style:{width:"30%"}},{content:(0,i.w5)((()=>[(0,i.Wm)(of,{modelValue:v.value?.backcolor,"onUpdate:modelValue":t[5]||(t[5]=e=>b("backcolor",e))},null,8,["modelValue"])])),default:(0,i.w5)((()=>[(0,i._)("button",null,[(0,i.Wm)(u)])])),_:1}),(0,i._)("button",{class:(0,oe.C_)({active:v.value?.bulletList}),onClick:t[6]||(t[6]=e=>b("bulletList"))},[(0,i.Wm)(c)],2),(0,i._)("button",{class:(0,oe.C_)({active:v.value?.orderedList}),onClick:t[7]||(t[7]=e=>b("orderedList"))},[(0,i.Wm)(d)],2),(0,i._)("button",{onClick:t[8]||(t[8]=e=>b("clear"))},[(0,i.Wm)(p)])],512)])),[[m,f]])}}});const w_=(0,Vl.Z)(y_,[["__scopeId","data-v-31d96c24"]]);var x_=w_;const k_={class:"remark"};var b_=(0,i.aZ)({__name:"index",props:{height:{}},emits:["update:height"],setup(e,{emit:t}){const l=e,a=t,n=$(),{currentSlide:r}=(0,o.Jk)(n),u=(0,s.iH)();(0,i.YP)((()=>r.value.id),(()=>{(0,i.Y3)((()=>{u.value.updateTextContent()}))}),{immediate:!0});const c=(0,i.Fl)((()=>r.value?.remark||"")),d=e=>{n.updateSlide({remark:e})},p=e=>{let t=!0;const n=e.pageY,o=l.height;document.onmousemove=e=>{if(!t)return;const l=e.pageY,i=l-n;let s=-i+o;s<40&&(s=40),s>360&&(s=360),a("update:height",s)},document.onmouseup=()=>{t=!1,document.onmousemove=null,document.onmouseup=null}};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",k_,[(0,i._)("div",{class:"resize-handler",onMousedown:t[0]||(t[0]=e=>p(e))},null,32),(0,i.Wm)(x_,{value:c.value,ref_key:"editorRef",ref:u,onUpdate:t[1]||(t[1]=e=>d(e))},null,8,["value"])]))}});const __=(0,Vl.Z)(b_,[["__scopeId","data-v-458a41b9"]]);var I_=__,S_=l(3162),C_=l(3907);const L_=["style","script","template"],T_=["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"],E_={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]},M_=["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],U_=(e,t)=>{const l=t-e.position;W_(e,l)},W_=(e,t)=>{e.position=e.position+t},D_=(e,t)=>{const l=!1;while(!l){const l=e.indexOf("<",t);if(-1===l)return l;const a=e.charAt(l+1);if("/"===a||"!"===a||/[A-Za-z0-9]/.test(a))return l;t=l+1}return-1},H_=e=>{const{str:t}=e;let l=D_(t,e.position);if(l===e.position)return;-1===l&&(l=t.length);const a=t.slice(e.position,l);U_(e,l),e.tokens.push({type:"text",content:a})},F_=e=>{const{str:t}=e;W_(e,4);let l=t.indexOf("--\x3e",e.position),a=l+3;-1===l&&(l=a=t.length);const n=t.slice(e.position,l);U_(e,a),e.tokens.push({type:"comment",content:n})},A_=e=>{const{str:t}=e,l=t.length;let a=e.position;while(a"===e);if(l)break;a++}let n=a+1;while(n"===e);if(!l)break;n++}U_(e,n);const o=t.slice(a,n);return e.tokens.push({type:"tag",content:o}),o},$_=e=>{const{str:t,tokens:l}=e;let a=e.position,n=null,o=a;const i=[],s=t.length;while(a"===e;if(l){a!==o&&i.push(t.slice(o,a));break}const s=/\s/.test(e);if(s){a!==o&&i.push(t.slice(o,a)),o=a+1,a++;continue}const r="'"===e||'"'===e;r?(n=e,a++):a++}U_(e,a);const r="attribute";for(let u=0;u1){const a=e+t;l.push({type:r,content:a}),u+=1;continue}const a=i[u+2];if(u+=1,a){const t=e+"="+a;l.push({type:r,content:t}),u+=1;continue}}}if((0,D.endsWith)(e,"=")){const t=i[u+1];if(t&&-1===t.indexOf("=")){const a=e+t;l.push({type:r,content:a}),u+=1;continue}const a=e.slice(0,-1);l.push({type:r,content:a})}else l.push({type:r,content:e})}},Z_=(e,t)=>{const{str:l,tokens:a}=t,n=e.toLowerCase(),o=l.length;let i=t.position;while(i{const{str:t}=e,l=t.charAt(e.position+1),a="/"===l;W_(e,a?2:1),e.tokens.push({type:"tag-start",close:a});const n=A_(e);$_(e);const o=t.charAt(e.position),i="/"===o;return W_(e,i?2:1),e.tokens.push({type:"tag-end",close:i}),n},R_=e=>{const t=e.str,l=t.length;while(e.position{const t={str:e,position:0,tokens:[]};return R_(t),t.tokens},P_=e=>{const t={tagName:null,children:[]},l={tokens:e,cursor:0,stack:[t]};return j_(l),t.children},B_=(e,t)=>{const l=E_[e];if(l){let a=t.length-1;while(a>=0){const n=t[a].tagName;if(n===e)break;if(n&&l.includes(n))return!0;a--}}return!1},N_=(e,t)=>{e.splice(t)},j_=e=>{const{stack:t,tokens:l}=e;let{cursor:a}=e,n=t[t.length-1].children;const o=l.length;while(a-1)if(t[e].tagName===s){n=!0;break}while(a0){if(s===t[e].tagName){N_(t,e);const l=e-1;n=t[l].children;break}e-=1}}const c=[];let d;while(a{const l=e.indexOf(t);return-1===l?[e]:[e.slice(0,l),e.slice(l+t.length)]},V_=e=>{const t=e.charAt(0),l=e.length-1,a='"'===t||"'"===t;return a&&t===e.charAt(l)?e.slice(1,l):e},J_=e=>e.map((e=>{const t=Y_(e.trim(),"="),l=t[0],a="string"===typeof t[1]?V_(t[1]):null;return{key:l,value:a}})),q_=e=>e.map((e=>{if("element"===e.type){const t=q_(e.children),l={type:"element",tagName:e.tagName.toLowerCase(),attributes:J_(e.attributes),children:t};return l}const t={type:e.type,content:e.content};return t})),X_=e=>{const t=z_(e),l=P_(t);return q_(l)};var G_=l(5851),K_=l(7943);const Q_={1:"Z",2:"M",4:"H",8:"V",16:"L",32:"C",64:"S",128:"Q",256:"T",512:"A"},eI=e=>{const t=new G_.OU(e),l=[];for(const a of t.commands){const e=Q_[a.type];if(2!==a.type&&16!==a.type||l.push({x:a.x,y:a.y,relative:a.relative,type:e}),32===a.type)l.push({x:a.x,y:a.y,curve:{type:"cubic",x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2},relative:a.relative,type:e});else if(128===a.type)l.push({x:a.x,y:a.y,curve:{type:"quadratic",x1:a.x1,y1:a.y1},relative:a.relative,type:e});else if(512===a.type){const e=l[l.length-1];if(!["M","L","Q","C"].includes(e.type))continue;const t=(0,K_.Z)({px:e.x,py:e.y,cx:a.x,cy:a.y,rx:a.rX,ry:a.rY,xAxisRotation:a.xRot,largeArcFlag:a.lArcFlag,sweepFlag:a.sweepFlag});for(const a of t)l.push({x:a.x,y:a.y,curve:{type:"cubic",x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2},relative:!1,type:"C"})}else{if(1!==a.type)continue;l.push({close:!0,type:e})}}return l},tI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lI="data:image/svg+xml;base64,",aI=e=>{e=e.replace(/\r\n/g,"\n");let t="";for(let l=0;l127&&a<2048?(t+=String.fromCharCode(a>>6|192),t+=String.fromCharCode(63&a|128)):(t+=String.fromCharCode(a>>12|224),t+=String.fromCharCode(a>>6&63|128),t+=String.fromCharCode(63&a|128))}return t},nI=e=>{let t,l,a,n,o,i,s,r="",u=0;e=aI(e);while(u>2,o=(3&t)<<4|l>>4,i=(15&l)<<2|a>>6,s=63&a,isNaN(l)?i=s=64:isNaN(a)&&(s=64),r=r+tI.charAt(n)+tI.charAt(o)+tI.charAt(i)+tI.charAt(s);return r},oI=e=>{const t=new XMLSerializer,l=t.serializeToString(e);return lI+nI(l)},iI=100,sI=.75;var rI=()=>{const e=$(),{slides:t,theme:l,viewportRatio:a,title:n}=(0,o.Jk)(e),i=(0,s.iH)(!1),r=(e,t,l,a=!0)=>{i.value=!0;const o="png"===t?sh.YM:sh.hi,s=e.querySelectorAll("foreignObject [xmlns]");s.forEach((e=>e.removeAttribute("xmlns"))),setTimeout((()=>{const s={quality:l,width:1600};a&&(s.fontEmbedCSS=""),o(e,s).then((e=>{i.value=!1,(0,S_.saveAs)(e,`${n.value}.${t}`)})).catch((()=>{i.value=!1,ta.error("导出图片失败")}))}),200)},u=e=>{const t=new Blob([pe(JSON.stringify(e))],{type:""});(0,S_.saveAs)(t,`${n.value}.pptist`)},c=()=>{const e=new Blob([JSON.stringify(t.value)],{type:""});(0,S_.saveAs)(e,`${n.value}.json`)},d=e=>{const t=(0,W.Z)(e),l=t.getAlpha(),a=0===l?"#ffffff":t.setAlpha(1).toHexString();return{alpha:l,color:a}},p=e=>{const t=X_(e);let l=!1,a=0;const n=[],o=(e,t={})=>{for(const i of e){const e="tagName"in i&&["div","li","p"].includes(i.tagName);if(e&&n.length){const e=n[n.length-1];e.options||(e.options={}),e.options.breakLine=!0}const s={...t},r="attributes"in i?i.attributes.find((e=>"style"===e.key)):null;if(r&&r.value){const e=r.value.split(";");for(const t of e){const[e,l]=t.split(": "),[a,n]=[(0,D.trim)(e),(0,D.trim)(l)];a&&n&&(s[a]=n)}}if("tagName"in i){if("em"===i.tagName&&(s["font-style"]="italic"),"strong"===i.tagName&&(s["font-weight"]="bold"),"sup"===i.tagName&&(s["vertical-align"]="super"),"sub"===i.tagName&&(s["vertical-align"]="sub"),"a"===i.tagName){const e=i.attributes.find((e=>"href"===e.key));s["href"]=e?.value||""}if("ul"===i.tagName&&(s["list-type"]="ul"),"ol"===i.tagName&&(s["list-type"]="ol"),"li"===i.tagName&&(l=!0),"p"===i.tagName&&"attributes"in i){const e=i.attributes.find((e=>"data-indent"===e.key));e&&e.value&&(a=+e.value)}}if("tagName"in i&&"br"===i.tagName)n.push({text:"",options:{breakLine:!0}});else if("content"in i){const e=i.content.replace(/ /g," ").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,""),t={};s["font-size"]&&(t.fontSize=parseInt(s["font-size"])*sI),s["color"]&&(t.color=d(s["color"]).color),s["background-color"]&&(t.highlight=d(s["background-color"]).color),s["text-decoration-line"]&&(-1!==s["text-decoration-line"].indexOf("underline")&&(t.underline={color:t.color||"#000000",style:"sng"}),-1!==s["text-decoration-line"].indexOf("line-through")&&(t.strike="sngStrike")),s["text-decoration"]&&(-1!==s["text-decoration"].indexOf("underline")&&(t.underline={color:t.color||"#000000",style:"sng"}),-1!==s["text-decoration"].indexOf("line-through")&&(t.strike="sngStrike")),s["vertical-align"]&&("super"===s["vertical-align"]&&(t.superscript=!0),"sub"===s["vertical-align"]&&(t.subscript=!0)),s["text-align"]&&(t.align=s["text-align"]),s["font-weight"]&&(t.bold="bold"===s["font-weight"]),s["font-style"]&&(t.italic="italic"===s["font-style"]),s["font-family"]&&(t.fontFace=s["font-family"]),s["href"]&&(t.hyperlink={url:s["href"]}),l&&"ol"===s["list-type"]&&(t.bullet={type:"number",indent:1.25*(t.fontSize||20)},t.paraSpaceBefore=.1,l=!1),l&&"ul"===s["list-type"]&&(t.bullet={indent:1.25*(t.fontSize||20)},t.paraSpaceBefore=.1,l=!1),a&&(t.indentLevel=a,a=0),n.push({text:e,options:t})}else"children"in i&&o(i.children,s)}};return o(t),n},v=(e,t={x:1,y:1})=>e.map((e=>{if(void 0!==e.close)return{close:!0};if("M"===e.type)return{x:e.x/iI*t.x,y:e.y/iI*t.y,moveTo:!0};if(e.curve){if("cubic"===e.curve.type)return{x:e.x/iI*t.x,y:e.y/iI*t.y,curve:{type:"cubic",x1:e.curve.x1/iI*t.x,y1:e.curve.y1/iI*t.y,x2:e.curve.x2/iI*t.x,y2:e.curve.y2/iI*t.y}};if("quadratic"===e.curve.type)return{x:e.x/iI*t.x,y:e.y/iI*t.y,curve:{type:"quadratic",x1:e.curve.x1/iI*t.x,y1:e.curve.y1/iI*t.y}}}return{x:e.x/iI*t.x,y:e.y/iI*t.y}})),m=e=>{const t=d(e.color),{h:l,v:a}=e;let n=4,o=45;return 0===l&&0===a?(n=4,o=45):0===l?a>0?(n=a,o=90):(n=-a,o=270):0===a?l>0?(n=l,o=1):(n=-l,o=180):l>0&&a>0?(n=Math.max(l,a),o=45):l>0&&a<0?(n=Math.max(l,-a),o=315):l<0&&a>0?(n=Math.max(-l,a),o=135):l<0&&a<0&&(n=Math.max(-l,-a),o=225),{type:"outer",color:t.color.replace("#",""),opacity:t.alpha,blur:e.blur*sI,offset:n,angle:o}},h=e=>{const t=d(e?.color||"#000000");return{color:t.color,transparency:100*(1-t.alpha),width:(e.width||1)*sI,dashType:"solid"===e.style?"solid":"dash"}},f=e=>{const{type:l,target:a}=e;if("web"===l)return{url:a};if("slide"===l){const e=t.value.findIndex((e=>e.id===a));if(-1!==e)return{slide:e+1}}return null},g=(e,t,o)=>{i.value=!0;const s=new C_.Z;if(.625===a.value?s.layout="LAYOUT_16x10":.75===a.value?s.layout="LAYOUT_4x3":.70710678===a.value?(s.defineLayout({name:"A3",width:10,height:7.0710678}),s.layout="A3"):1.41421356===a.value?(s.defineLayout({name:"A3_V",width:10,height:14.1421356}),s.layout="A3_V"):s.layout="LAYOUT_16x9",t){const{color:e,alpha:t}=d(l.value.backgroundColor);s.defineSlideMaster({title:"PPTIST_MASTER",background:{color:e,transparency:100*(1-t)}})}for(const l of e){const e=s.addSlide();if(l.background){const t=l.background;if("image"===t.type&&t.image)e.background={data:t.image};else if("solid"===t.type&&t.color){const l=d(t.color);e.background={color:l.color,transparency:100*(1-l.alpha)}}else if("gradient"===t.type&&t.gradientColor){const[l,a]=t.gradientColor,n=W.Z.mix(l,a).toHexString(),o=d(n);e.background={color:o.color,transparency:100*(1-o.alpha)}}}if(l.remark&&e.addNotes(l.remark),l.elements)for(const t of l.elements)if("text"===t.type){const l=p(t.content),a={x:t.left/iI,y:t.top/iI,w:t.width/iI,h:t.height/iI,fontSize:20*sI,fontFace:"微软雅黑",color:"#000000",valign:"top",margin:10*sI,paraSpaceBefore:5*sI,lineSpacingMultiple:1.2,autoFit:!0};if(t.rotate&&(a.rotate=t.rotate),t.wordSpace&&(a.charSpacing=t.wordSpace*sI),t.lineHeight&&(a.lineSpacingMultiple=t.lineHeight/1.25),t.fill){const e=d(t.fill),l=void 0===t.opacity?1:t.opacity;a.fill={color:e.color,transparency:100*(1-e.alpha*l)}}t.defaultColor&&(a.color=d(t.defaultColor).color),t.defaultFontName&&(a.fontFace=t.defaultFontName),t.shadow&&(a.shadow=m(t.shadow)),t.outline?.width&&(a.line=h(t.outline)),void 0!==t.opacity&&(a.transparency=100*(1-t.opacity)),void 0!==t.paragraphSpace&&(a.paraSpaceBefore=t.paragraphSpace*sI),t.vertical&&(a.vert="eaVert"),e.addText(l,a)}else if("image"===t.type){const l={path:t.src,x:t.left/iI,y:t.top/iI,w:t.width/iI,h:t.height/iI};if(t.flipH&&(l.flipH=t.flipH),t.flipV&&(l.flipV=t.flipV),t.rotate&&(l.rotate=t.rotate),t.link){const e=f(t.link);e&&(l.hyperlink=e)}if(t.filters?.opacity&&(l.transparency=100-parseInt(t.filters?.opacity)),t.clip){"ellipse"===t.clip.shape&&(l.rounding=!0);const[e,a]=t.clip.range,[n,o]=e,[i,s]=a,r=t.width/((i-n)/iI),u=t.height/((s-o)/iI);l.w=r/iI,l.h=u/iI,l.sizing={type:"crop",x:n/iI*r/iI,y:o/iI*u/iI,w:(i-n)/iI*r/iI,h:(s-o)/iI*u/iI}}e.addImage(l)}else if("shape"===t.type){if(t.special){const l=document.querySelector(`.thumbnail-list .base-element-${t.id} svg`),a=oI(l),n={data:a,x:t.left/iI,y:t.top/iI,w:t.width/iI,h:t.height/iI};if(t.rotate&&(n.rotate=t.rotate),t.link){const e=f(t.link);e&&(n.hyperlink=e)}e.addImage(n)}else{const l={x:t.width/t.viewBox[0],y:t.height/t.viewBox[1]},a=v(eI(t.path),l),n=d(t.fill),o=void 0===t.opacity?1:t.opacity,i={x:t.left/iI,y:t.top/iI,w:t.width/iI,h:t.height/iI,fill:{color:n.color,transparency:100*(1-n.alpha*o)},points:a};if(t.flipH&&(i.flipH=t.flipH),t.flipV&&(i.flipV=t.flipV),t.shadow&&(i.shadow=m(t.shadow)),t.outline?.width&&(i.line=h(t.outline)),t.rotate&&(i.rotate=t.rotate),t.link){const e=f(t.link);e&&(i.hyperlink=e)}e.addShape("custGeom",i)}if(t.text){const l=p(t.text.content),a={x:t.left/iI,y:t.top/iI,w:t.width/iI,h:t.height/iI,fontSize:20*sI,fontFace:"微软雅黑",color:"#000000",paraSpaceBefore:5*sI,valign:t.text.align};t.rotate&&(a.rotate=t.rotate),t.text.defaultColor&&(a.color=d(t.text.defaultColor).color),t.text.defaultFontName&&(a.fontFace=t.text.defaultFontName),e.addText(l,a)}}else if("line"===t.type){const l=Ce(t),a=v(eI(l)),{minX:n,maxX:o,minY:i,maxY:s}=xe(t),r=d(t.color),u={x:t.left/iI,y:t.top/iI,w:(o-n)/iI,h:(s-i)/iI,line:{color:r.color,transparency:100*(1-r.alpha),width:t.width*sI,dashType:"solid"===t.style?"solid":"dash",beginArrowType:t.points[0]?"arrow":"none",endArrowType:t.points[1]?"arrow":"none"},points:a};t.shadow&&(u.shadow=m(t.shadow)),e.addShape("custGeom",u)}else if("chart"===t.type){const l=[];for(let e=0;ed(e).color));else if(1===t.themeColor.length)a=(0,W.Z)(t.themeColor[0]).analogous(10).map((e=>d(e.toHexString()).color));else{const e=t.themeColor.length,l=(0,W.Z)(t.themeColor[e-1]).analogous(11-e).map((e=>e.toHexString()));a=[...t.themeColor.slice(0,e-1),...l].map((e=>d(e).color))}const n={x:t.left/iI,y:t.top/iI,w:t.width/iI,h:t.height/iI,chartColors:"pie"===t.chartType?a:a.slice(0,t.data.series.length)};t.fill&&(n.plotArea={fill:{color:d(t.fill).color}}),t.legend&&(n.showLegend=!0,n.legendPos="top"===t.legend?"t":"b",n.legendColor=d(t.gridColor||"#000000").color,n.legendFontSize=14*sI);let o=s.ChartType.bar;"bar"===t.chartType?(o=s.ChartType.bar,n.barDir=t.options?.horizontalBars?"bar":"col"):"line"===t.chartType?(t.options?.showArea?o=s.ChartType.area:!1===t.options?.showLine?(o=s.ChartType.scatter,l.unshift({name:"X-Axis",values:Array(t.data.series[0].length).fill(0).map(((e,t)=>t))}),n.lineSize=0):o=s.ChartType.line,t.options?.lineSmooth&&(n.lineSmooth=!0)):"pie"===t.chartType&&(t.options?.donut?(o=s.ChartType.doughnut,n.holeSize=75):o=s.ChartType.pie),e.addChart(o,l,n)}else if("table"===t.type){const l=[];for(let e=0;e1||n.rowspan>1)for(let a=e;ad(e))));for(let e=0;et.width*e/iI))};t.theme&&(s.fill={color:"#ffffff"}),t.outline.width&&t.outline.color&&(s.border={type:"solid"===t.outline.style?"solid":"dash",pt:t.outline.width*sI,color:d(t.outline.color).color}),e.addTable(a,s)}else if("latex"===t.type){const l=document.querySelector(`.thumbnail-list .base-element-${t.id} svg`),a=oI(l),n={data:a,x:t.left/iI,y:t.top/iI,w:t.width/iI,h:t.height/iI};if(t.link){const e=f(t.link);e&&(n.hyperlink=e)}e.addImage(n)}else if(!o&&("video"===t.type||"audio"===t.type)){const l={x:t.left/iI,y:t.top/iI,w:t.width/iI,h:t.height/iI,path:t.src,type:t.type};"video"===t.type&&t.poster&&(l.cover=t.poster);const a=t.src.match(/\.([a-zA-Z0-9]+)(?:[\?#]|$)/);a&&a[1]?l.extn=a[1]:t.ext&&(l.extn=t.ext);const n=["avi","mp4","m4v","mov","wmv"],o=["mp3","m4a","mp4","wav","wma"];l.extn&&[...n,...o].includes(l.extn)&&e.addMedia(l)}}setTimeout((()=>{s.writeFile({fileName:`${n.value}.pptx`}).then((()=>i.value=!1)).catch((()=>{i.value=!1,ta.error("导出失败")}))}),200)};return{exporting:i,exportImage:r,exportJSON:c,exportSpecificFile:u,exportPPTX:g}};const uI=e=>((0,i.dD)("data-v-1df3f398"),e=e(),(0,i.Cn)(),e),cI={class:"export-img-dialog"},dI={class:"thumbnails-view"},pI={class:"configs"},vI={class:"row"},mI=uI((()=>(0,i._)("div",{class:"title"},"导出格式:",-1))),hI={class:"row"},fI=uI((()=>(0,i._)("div",{class:"title"},"导出范围:",-1))),gI={key:0,class:"row"},yI=["data-range"],wI={class:"row"},xI=uI((()=>(0,i._)("div",{class:"title"},"图片质量:",-1))),kI={class:"row"},bI=uI((()=>(0,i._)("div",{class:"title"},"忽略在线字体:",-1))),_I={class:"config-item"},II={class:"btns"};var SI=(0,i.aZ)({__name:"ExportImage",emits:["close"],setup(e,{emit:t}){const l=t,{slides:a,currentSlide:n}=(0,o.Jk)($()),r=(0,s.iH)(),u=(0,s.iH)("all"),c=(0,s.iH)([1,a.value.length]),d=(0,s.iH)("jpeg"),p=(0,s.iH)(1),v=(0,s.iH)(!0),m=(0,i.Fl)((()=>"all"===u.value?a.value:"current"===u.value?[n.value]:a.value.filter(((e,t)=>{const[l,a]=c.value;return t>=l-1&&t<=a-1})))),{exportImage:h,exporting:f}=rI(),g=()=>{r.value&&h(r.value,d.value,p.value,v.value)};return(e,t)=>{const n=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",cI,[(0,i._)("div",dI,[(0,i._)("div",{class:"thumbnails",ref_key:"imageThumbnailsRef",ref:r},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(m.value,(e=>((0,i.wg)(),(0,i.j4)(Jd,{class:"thumbnail",key:e.id,slide:e,size:1600},null,8,["slide"])))),128))],512)]),(0,i._)("div",pI,[(0,i._)("div",vI,[mI,(0,i.Wm)(ng,{class:"config-item",value:d.value,"onUpdate:value":t[0]||(t[0]=e=>d.value=e)},{default:(0,i.w5)((()=>[(0,i.Wm)(tg,{style:{width:"50%"},value:"jpeg"},{default:(0,i.w5)((()=>[(0,i.Uk)("JPEG")])),_:1}),(0,i.Wm)(tg,{style:{width:"50%"},value:"png"},{default:(0,i.w5)((()=>[(0,i.Uk)("PNG")])),_:1})])),_:1},8,["value"])]),(0,i._)("div",hI,[fI,(0,i.Wm)(ng,{class:"config-item",value:u.value,"onUpdate:value":t[1]||(t[1]=e=>u.value=e)},{default:(0,i.w5)((()=>[(0,i.Wm)(tg,{style:{width:"33.33%"},value:"all"},{default:(0,i.w5)((()=>[(0,i.Uk)("全部")])),_:1}),(0,i.Wm)(tg,{style:{width:"33.33%"},value:"current"},{default:(0,i.w5)((()=>[(0,i.Uk)("当前页")])),_:1}),(0,i.Wm)(tg,{style:{width:"33.33%"},value:"custom"},{default:(0,i.w5)((()=>[(0,i.Uk)("自定义")])),_:1})])),_:1},8,["value"])]),"custom"===u.value?((0,i.wg)(),(0,i.iD)("div",gI,[(0,i._)("div",{class:"title","data-range":`(${c.value[0]} ~ ${c.value[1]})`},"自定义范围:",8,yI),(0,i.Wm)(qm,{class:"config-item",range:"",min:1,max:(0,s.SU)(a).length,step:1,value:c.value,"onUpdate:value":t[2]||(t[2]=e=>c.value=e)},null,8,["max","value"])])):(0,i.kq)("",!0),(0,i._)("div",wI,[xI,(0,i.Wm)(qm,{class:"config-item",min:0,max:1,step:.1,value:p.value,"onUpdate:value":t[3]||(t[3]=e=>p.value=e)},null,8,["value"])]),(0,i._)("div",kI,[bI,(0,i._)("div",_I,[(0,i.wy)((0,i.Wm)(pf,{value:v.value,"onUpdate:value":t[4]||(t[4]=e=>v.value=e)},null,8,["value"]),[[n,"导出时默认忽略在线字体,若您在幻灯片中使用了在线字体,且希望导出后保留相关样式,可选择关闭【忽略在线字体】选项,但要注意这将会增加导出用时。"]])])])]),(0,i._)("div",II,[(0,i.Wm)(tp,{class:"btn export",type:"primary",onClick:t[5]||(t[5]=e=>g())},{default:(0,i.w5)((()=>[(0,i.Uk)("导出图片")])),_:1}),(0,i.Wm)(tp,{class:"btn close",onClick:t[6]||(t[6]=e=>l("close"))},{default:(0,i.w5)((()=>[(0,i.Uk)("关闭")])),_:1})]),(0,i.Wm)(Xa,{loading:(0,s.SU)(f),tip:"正在导出..."},null,8,["loading"])])}}});const CI=(0,Vl.Z)(SI,[["__scopeId","data-v-1df3f398"]]);var LI=CI;const TI={class:"export-json-dialog"},EI={class:"preview"},MI={class:"btns"};var UI=(0,i.aZ)({__name:"ExportJSON",emits:["close"],setup(e,{emit:t}){const l=t,{slides:a}=(0,o.Jk)($()),{exportJSON:n}=rI();return(e,t)=>((0,i.wg)(),(0,i.iD)("div",TI,[(0,i._)("div",EI,[(0,i._)("pre",null,(0,oe.zw)((0,s.SU)(a)),1)]),(0,i._)("div",MI,[(0,i.Wm)(tp,{class:"btn export",type:"primary",onClick:t[0]||(t[0]=e=>(0,s.SU)(n)())},{default:(0,i.w5)((()=>[(0,i.Uk)("导出 JSON")])),_:1}),(0,i.Wm)(tp,{class:"btn close",onClick:t[1]||(t[1]=e=>l("close"))},{default:(0,i.w5)((()=>[(0,i.Uk)("关闭")])),_:1})])]))}});const WI=(0,Vl.Z)(UI,[["__scopeId","data-v-6a7223ca"]]);var DI=WI;const HI=()=>{const e=document.createElement("iframe");return e.style.width="0",e.style.height="0",e.style.position="absolute",e.style.right="0",e.style.top="0",e.style.border="0",document.body.appendChild(e),e},FI=(e,t,l)=>{const a="";let n="";const o=document.styleSheets;if(o)for(const d of o)if(d.cssRules)for(const e of d.cssRules)n+=e.cssText;const{width:i,height:s,margin:r}=l,u=`\n \n \n \n `,c=""+t.innerHTML+"";e.open(),e.write(`\n ${a}\n \n ${u}\n ${c}\n \n `),e.close()},AI=(e,t)=>{const l=HI(),a=l.contentWindow;if(!l.contentDocument||!a)return;FI(l.contentDocument,e,t);const n=()=>{a.focus(),a.print()},o=()=>{l.removeEventListener("load",n),a.removeEventListener("afterprint",o),document.body.removeChild(l)};l.addEventListener("load",n),a.addEventListener("afterprint",o)},$I=e=>((0,i.dD)("data-v-1668f898"),e=e(),(0,i.Cn)(),e),ZI={class:"export-pdf-dialog"},OI={class:"thumbnails-view"},RI={class:"configs"},zI={class:"row"},PI=$I((()=>(0,i._)("div",{class:"title"},"导出范围:",-1))),BI={class:"row"},NI=$I((()=>(0,i._)("div",{class:"title"},"每页数量:",-1))),jI={class:"row"},YI=$I((()=>(0,i._)("div",{class:"title"},"边缘留白:",-1))),VI={class:"config-item"},JI=$I((()=>(0,i._)("div",{class:"tip"}," 提示:若打印预览与实际样式不一致,请在弹出的打印窗口中勾选【背景图形】选项。 ",-1))),qI={class:"btns"};var XI=(0,i.aZ)({__name:"ExportPDF",emits:["close"],setup(e,{emit:t}){const l=t,{slides:a,currentSlide:n,viewportRatio:r}=(0,o.Jk)($()),u=(0,s.iH)(),c=(0,s.iH)("all"),d=(0,s.iH)(1),p=(0,s.iH)(!0),v=()=>{if(!u.value)return;const e={width:1600,height:"all"===c.value?1600*r.value*d.value:1600*r.value,margin:p.value?50:0};AI(u.value,e)};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",ZI,[(0,i._)("div",OI,[(0,i._)("div",{class:"thumbnails",ref_key:"pdfThumbnailsRef",ref:u},["current"===c.value?((0,i.wg)(),(0,i.j4)(Jd,{key:0,class:"thumbnail",slide:(0,s.SU)(n),size:1600},null,8,["slide"])):((0,i.wg)(!0),(0,i.iD)(i.HY,{key:1},(0,i.Ko)((0,s.SU)(a),((e,t)=>((0,i.wg)(),(0,i.j4)(Jd,{class:(0,oe.C_)(["thumbnail",{"break-page":(t+1)%d.value===0}]),key:e.id,slide:e,size:1600},null,8,["class","slide"])))),128))],512)]),(0,i._)("div",RI,[(0,i._)("div",zI,[PI,(0,i.Wm)(ng,{class:"config-item",value:c.value,"onUpdate:value":t[0]||(t[0]=e=>c.value=e)},{default:(0,i.w5)((()=>[(0,i.Wm)(tg,{style:{width:"50%"},value:"all"},{default:(0,i.w5)((()=>[(0,i.Uk)("全部")])),_:1}),(0,i.Wm)(tg,{style:{width:"50%"},value:"current"},{default:(0,i.w5)((()=>[(0,i.Uk)("当前页")])),_:1})])),_:1},8,["value"])]),(0,i._)("div",BI,[NI,(0,i.Wm)(cp,{class:"config-item",value:d.value,"onUpdate:value":t[1]||(t[1]=e=>d.value=e),options:[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3}]},null,8,["value"])]),(0,i._)("div",jI,[YI,(0,i._)("div",VI,[(0,i.Wm)(pf,{value:p.value,"onUpdate:value":t[2]||(t[2]=e=>p.value=e)},null,8,["value"])])]),JI]),(0,i._)("div",qI,[(0,i.Wm)(tp,{class:"btn export",type:"primary",onClick:t[3]||(t[3]=e=>v())},{default:(0,i.w5)((()=>[(0,i.Uk)("打印 / 导出 PDF")])),_:1}),(0,i.Wm)(tp,{class:"btn close",onClick:t[4]||(t[4]=e=>l("close"))},{default:(0,i.w5)((()=>[(0,i.Uk)("关闭")])),_:1})])]))}});const GI=(0,Vl.Z)(XI,[["__scopeId","data-v-1668f898"]]);var KI=GI;const QI=e=>((0,i.dD)("data-v-265d4b60"),e=e(),(0,i.Cn)(),e),eS={class:"export-pptx-dialog"},tS={class:"configs"},lS={class:"row"},aS=QI((()=>(0,i._)("div",{class:"title"},"导出范围:",-1))),nS={key:0,class:"row"},oS=["data-range"],iS={class:"row"},sS=QI((()=>(0,i._)("div",{class:"title"},"忽略音频/视频:",-1))),rS={class:"config-item"},uS={class:"row"},cS=QI((()=>(0,i._)("div",{class:"title"},"覆盖默认母版:",-1))),dS={class:"config-item"},pS={key:1,class:"tip"},vS={class:"btns"};var mS=(0,i.aZ)({__name:"ExportPPTX",emits:["close"],setup(e,{emit:t}){const l=t,{slides:a,currentSlide:n}=(0,o.Jk)($()),{exportPPTX:r,exporting:u}=rI(),c=(0,s.iH)("all"),d=(0,s.iH)([1,a.value.length]),p=(0,s.iH)(!0),v=(0,s.iH)(!0),m=(0,i.Fl)((()=>"all"===c.value?a.value:"current"===c.value?[n.value]:a.value.filter(((e,t)=>{const[l,a]=d.value;return t>=l-1&&t<=a-1}))));return(e,t)=>{const n=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",eS,[(0,i._)("div",tS,[(0,i._)("div",lS,[aS,(0,i.Wm)(ng,{class:"config-item",value:c.value,"onUpdate:value":t[0]||(t[0]=e=>c.value=e)},{default:(0,i.w5)((()=>[(0,i.Wm)(tg,{style:{width:"33.33%"},value:"all"},{default:(0,i.w5)((()=>[(0,i.Uk)("全部")])),_:1}),(0,i.Wm)(tg,{style:{width:"33.33%"},value:"current"},{default:(0,i.w5)((()=>[(0,i.Uk)("当前页")])),_:1}),(0,i.Wm)(tg,{style:{width:"33.33%"},value:"custom"},{default:(0,i.w5)((()=>[(0,i.Uk)("自定义")])),_:1})])),_:1},8,["value"])]),"custom"===c.value?((0,i.wg)(),(0,i.iD)("div",nS,[(0,i._)("div",{class:"title","data-range":`(${d.value[0]} ~ ${d.value[1]})`},"自定义范围:",8,oS),(0,i.Wm)(qm,{class:"config-item",range:"",min:1,max:(0,s.SU)(a).length,step:1,value:d.value,"onUpdate:value":t[1]||(t[1]=e=>d.value=e)},null,8,["max","value"])])):(0,i.kq)("",!0),(0,i._)("div",iS,[sS,(0,i._)("div",rS,[(0,i.wy)((0,i.Wm)(pf,{value:v.value,"onUpdate:value":t[2]||(t[2]=e=>v.value=e)},null,8,["value"]),[[n,"导出时默认忽略音视频,若您的幻灯片中存在音视频元素,且希望将其导出到PPTX文件中,可选择关闭【忽略音视频】选项,但要注意这将会大幅增加导出用时。"]])])]),(0,i._)("div",uS,[cS,(0,i._)("div",dS,[(0,i.Wm)(pf,{value:p.value,"onUpdate:value":t[3]||(t[3]=e=>p.value=e)},null,8,["value"])])]),v.value?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",pS," 提示:1. 支持导出格式:avi、mp4、mov、wmv、mp3、wav;2. 跨域资源无法导出。 "))]),(0,i._)("div",vS,[(0,i.Wm)(tp,{class:"btn export",type:"primary",onClick:t[4]||(t[4]=e=>(0,s.SU)(r)(m.value,p.value,v.value))},{default:(0,i.w5)((()=>[(0,i.Uk)("导出 PPTX")])),_:1}),(0,i.Wm)(tp,{class:"btn close",onClick:t[5]||(t[5]=e=>l("close"))},{default:(0,i.w5)((()=>[(0,i.Uk)("关闭")])),_:1})]),(0,i.Wm)(Xa,{loading:(0,s.SU)(u),tip:"正在导出..."},null,8,["loading"])])}}});const hS=(0,Vl.Z)(mS,[["__scopeId","data-v-265d4b60"]]);var fS=hS;const gS=e=>((0,i.dD)("data-v-26422ed7"),e=e(),(0,i.Cn)(),e),yS={class:"export-pptist-dialog"},wS={class:"configs"},xS={class:"row"},kS=gS((()=>(0,i._)("div",{class:"title"},"导出范围:",-1))),bS={key:0,class:"row"},_S=["data-range"],IS=gS((()=>(0,i._)("div",{class:"tip"}," 提示:.pptist 是本应用的特有文件后缀,支持将该类型的文件导入回应用中。 ",-1))),SS={class:"btns"};var CS=(0,i.aZ)({__name:"ExportSpecificFile",emits:["close"],setup(e,{emit:t}){const l=t,{slides:a,currentSlide:n}=(0,o.Jk)($()),{exportSpecificFile:r}=rI(),u=(0,s.iH)("all"),c=(0,s.iH)([1,a.value.length]),d=(0,i.Fl)((()=>"all"===u.value?a.value:"current"===u.value?[n.value]:a.value.filter(((e,t)=>{const[l,a]=c.value;return t>=l-1&&t<=a-1}))));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",yS,[(0,i._)("div",wS,[(0,i._)("div",xS,[kS,(0,i.Wm)(ng,{class:"config-item",value:u.value,"onUpdate:value":t[0]||(t[0]=e=>u.value=e)},{default:(0,i.w5)((()=>[(0,i.Wm)(tg,{style:{width:"33.33%"},value:"all"},{default:(0,i.w5)((()=>[(0,i.Uk)("全部")])),_:1}),(0,i.Wm)(tg,{style:{width:"33.33%"},value:"current"},{default:(0,i.w5)((()=>[(0,i.Uk)("当前页")])),_:1}),(0,i.Wm)(tg,{style:{width:"33.33%"},value:"custom"},{default:(0,i.w5)((()=>[(0,i.Uk)("自定义")])),_:1})])),_:1},8,["value"])]),"custom"===u.value?((0,i.wg)(),(0,i.iD)("div",bS,[(0,i._)("div",{class:"title","data-range":`(${c.value[0]} ~ ${c.value[1]})`},"自定义范围:",8,_S),(0,i.Wm)(qm,{class:"config-item",range:"",min:1,max:(0,s.SU)(a).length,step:1,value:c.value,"onUpdate:value":t[1]||(t[1]=e=>c.value=e)},null,8,["max","value"])])):(0,i.kq)("",!0),IS]),(0,i._)("div",SS,[(0,i.Wm)(tp,{class:"btn export",type:"primary",onClick:t[2]||(t[2]=e=>(0,s.SU)(r)(d.value))},{default:(0,i.w5)((()=>[(0,i.Uk)("导出 .pptist 文件")])),_:1}),(0,i.Wm)(tp,{class:"btn close",onClick:t[3]||(t[3]=e=>l("close"))},{default:(0,i.w5)((()=>[(0,i.Uk)("关闭")])),_:1})])]))}});const LS=(0,Vl.Z)(CS,[["__scopeId","data-v-26422ed7"]]);var TS=LS;const ES={class:"export-dialog"},MS={class:"content"};var US=(0,i.aZ)({__name:"index",setup(e){const t=R(),{dialogForExport:l}=(0,o.Jk)(t),a=t.setDialogForExport,n=[{key:"pptist",label:"导出 pptist 文件"},{key:"pptx",label:"导出 PPTX"},{key:"image",label:"导出图片"},{key:"json",label:"导出 JSON"},{key:"pdf",label:"打印 / 导出 PDF"}],r=(0,i.Fl)((()=>{const e={image:LI,json:DI,pdf:KI,pptx:fS,pptist:TS};return l.value&&e[l.value]||null}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",ES,[(0,i.Wm)(Kd,{tabs:n,value:(0,s.SU)(l),card:"","onUpdate:value":t[0]||(t[0]=e=>(0,s.SU)(a)(e))},null,8,["value"]),(0,i._)("div",MS,[((0,i.wg)(),(0,i.j4)((0,i.LL)(r.value),{onClose:t[1]||(t[1]=e=>(0,s.SU)(a)(""))},null,32))])]))}});const WS=(0,Vl.Z)(US,[["__scopeId","data-v-b20137f0"]]);var DS=WS;const HS={class:"title"},FS={class:"content"};var AS=(0,i.aZ)({__name:"MoveablePanel",props:{width:{},height:{},left:{default:10},top:{default:10},title:{default:""},moveable:{type:Boolean,default:!0}},emits:["close"],setup(e,{emit:t}){const l=e,a=t,n=(0,s.iH)(0),o=(0,s.iH)(0),r=(0,s.iH)(),u=(0,i.Fl)((()=>l.height?l.height:r.value?.clientHeight||0));(0,i.bv)((()=>{l.left>=0?n.value=l.left:n.value=document.body.clientWidth+l.left-l.width,l.top>=0?o.value=l.top:o.value=document.body.clientHeight+l.top-u.value}));const c=e=>{if(!l.moveable)return;let t=!0;const a=document.body.clientWidth,i=document.body.clientHeight,s=e.pageX,r=e.pageY,c=n.value,d=o.value;document.onmousemove=e=>{if(!t)return;const p=e.pageX-s,v=e.pageY-r;let m=c+p,h=d+v;m<0&&(m=0),h<0&&(h=0),m+l.width>a&&(m=a-l.width),h+u.value>i&&(h=i-u.value),n.value=m,o.value=h},document.onmouseup=()=>{t=!1,document.onmousemove=null,document.onmouseup=null}};return(e,t)=>{const l=(0,i.up)("IconClose");return(0,i.wg)(),(0,i.iD)("div",{class:"moveable-panel",ref_key:"moveablePanelRef",ref:r,style:(0,oe.j5)({width:e.width+"px",height:e.height?e.height+"px":"auto",left:n.value+"px",top:o.value+"px"})},[e.title?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i._)("div",{class:"header",onMousedown:t[1]||(t[1]=e=>c(e))},[(0,i._)("div",HS,(0,oe.zw)(e.title),1),(0,i._)("div",{class:"close-btn",onClick:t[0]||(t[0]=e=>a("close"))},[(0,i.Wm)(l)])],32),(0,i._)("div",FS,[(0,i.WI)(e.$slots,"default")])],64)):((0,i.wg)(),(0,i.iD)("div",{key:1,class:"content",onMousedown:t[2]||(t[2]=e=>c(e))},[(0,i.WI)(e.$slots,"default")],32))],4)}}});const $S=(0,Vl.Z)(AS,[["__scopeId","data-v-fc791e00"]]);var ZS=$S;const OS=e=>((0,i.dD)("data-v-15470598"),e=e(),(0,i.Cn)(),e),RS={key:0,class:"handler"},zS={class:"btns"},PS={key:0,class:"icon-btns"},BS={class:"element-list"},NS={key:0,class:"group-els"},jS=OS((()=>(0,i._)("div",{class:"group-title"},"组合",-1))),YS=["onClick","onDblclick"],VS=["id","value","onBlur","onKeydown"],JS={key:1,class:"name"},qS={class:"icons"},XS=["onClick","onDblclick"],GS=["id","value","onBlur","onKeydown"],KS={key:1,class:"name"},QS={class:"icons"};var eC=(0,i.aZ)({__name:"SelectPanel",setup(e){const t=$(),l=R(),{currentSlide:a}=(0,o.Jk)(t),{handleElement:r,handleElementId:u,activeElementIdList:c,activeGroupElementId:d,hiddenElementIdList:p}=(0,o.Jk)(l),{orderElement:v}=ba(),m=(0,i.Fl)((()=>{const e=[];for(const t of a.value.elements)if(t.groupId){const l=e[e.length-1];l&&"group"===l.type&&l.id&&l.id===t.groupId?l.elements.push(t):e.push({type:"group",id:t.groupId,elements:[t]})}else e.push(t);return e})),h=(e,t)=>{if(u.value===t)return;if(p.value.includes(t))return;const a=e.elements.map((e=>e.id));l.setActiveElementIdList(a),l.setHandleElementId(t),(0,i.Y3)((()=>l.setActiveGroupElementId(t)))},f=e=>{u.value!==e&&(p.value.includes(e)||l.setActiveElementIdList([e]))},g=e=>{p.value.includes(e)?l.setHiddenElementIdList(p.value.filter((t=>t!==e))):l.setHiddenElementIdList([...p.value,e]),c.value.includes(e)&&l.setActiveElementIdList([])},y=()=>{const e=a.value.elements.map((e=>e.id)),t=p.value.filter((t=>!e.includes(t)));l.setHiddenElementIdList(t)},w=()=>{const e=a.value.elements.map((e=>e.id));l.setHiddenElementIdList([...p.value,...e]),c.value.length&&l.setActiveElementIdList([])},x=(0,s.iH)(""),k=(e,l)=>{const a=e.target.value;t.updateElement({id:l,props:{name:a}}),x.value=""},b=e=>{x.value=e,(0,i.Y3)((()=>{const t=document.querySelector(`#input-${e}`);t.focus()}))},_=()=>{l.setSelectPanelState(!1)};return(e,t)=>{const l=(0,i.up)("IconDown"),o=(0,i.up)("IconUp"),u=(0,i.up)("IconPreviewClose"),I=(0,i.up)("IconPreviewOpen");return(0,i.wg)(),(0,i.j4)(ZS,{class:"select-panel",width:200,height:360,title:`选择(${(0,s.SU)(c).length}/${(0,s.SU)(a).elements.length})`,left:-270,top:90,onClose:t[4]||(t[4]=e=>_())},{default:(0,i.w5)((()=>[m.value.length?((0,i.wg)(),(0,i.iD)("div",RS,[(0,i._)("div",zS,[(0,i.Wm)(tp,{size:"small",style:{"margin-right":"5px"},onClick:t[0]||(t[0]=e=>y())},{default:(0,i.w5)((()=>[(0,i.Uk)("全部显示")])),_:1}),(0,i.Wm)(tp,{size:"small",onClick:t[1]||(t[1]=e=>w())},{default:(0,i.w5)((()=>[(0,i.Uk)("全部隐藏")])),_:1})]),(0,s.SU)(r)?((0,i.wg)(),(0,i.iD)("div",PS,[(0,i.Wm)(l,{class:"icon-btn",onClick:t[2]||(t[2]=e=>(0,s.SU)(v)((0,s.SU)(r),(0,s.SU)(Q).UP))}),(0,i.Wm)(o,{class:"icon-btn",onClick:t[3]||(t[3]=e=>(0,s.SU)(v)((0,s.SU)(r),(0,s.SU)(Q).DOWN))})])):(0,i.kq)("",!0)])):(0,i.kq)("",!0),(0,i._)("div",BS,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(m.value,(e=>((0,i.wg)(),(0,i.iD)(i.HY,{key:e.id},["group"===e.type?((0,i.wg)(),(0,i.iD)("div",NS,[jS,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.elements,(t=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["item",{active:(0,s.SU)(c).includes(t.id),"group-active":(0,s.SU)(d).includes(t.id)}]),key:t.id,onClick:l=>h(e,t.id),onDblclick:e=>b(t.id)},[x.value===t.id?((0,i.wg)(),(0,i.iD)("input",{key:0,id:`input-${t.id}`,value:t.name||(0,s.SU)($n)[t.type],class:"input",type:"text",onBlur:e=>k(e,t.id),onKeydown:(0,n.D2)((e=>k(e,t.id)),["enter"])},null,40,VS)):((0,i.wg)(),(0,i.iD)("div",JS,(0,oe.zw)(t.name||(0,s.SU)($n)[t.type]),1)),(0,i._)("div",qS,[(0,s.SU)(p).includes(t.id)?((0,i.wg)(),(0,i.j4)(u,{key:0,style:{"font-size":"17px"},onClick:(0,n.iM)((e=>g(t.id)),["stop"])},null,8,["onClick"])):((0,i.wg)(),(0,i.j4)(I,{key:1,style:{"font-size":"17px"},onClick:(0,n.iM)((e=>g(t.id)),["stop"])},null,8,["onClick"]))])],42,YS)))),128))])):((0,i.wg)(),(0,i.iD)("div",{key:1,class:(0,oe.C_)(["item",{active:(0,s.SU)(c).includes(e.id)}]),onClick:t=>f(e.id),onDblclick:t=>b(e.id)},[x.value===e.id?((0,i.wg)(),(0,i.iD)("input",{key:0,id:`input-${e.id}`,value:e.name||(0,s.SU)($n)[e.type],class:"input",type:"text",onBlur:t=>k(t,e.id),onKeydown:(0,n.D2)((t=>k(t,e.id)),["enter"])},null,40,GS)):((0,i.wg)(),(0,i.iD)("div",KS,(0,oe.zw)(e.name||(0,s.SU)($n)[e.type]),1)),(0,i._)("div",QS,[(0,s.SU)(p).includes(e.id)?((0,i.wg)(),(0,i.j4)(u,{key:0,style:{"font-size":"17px"},onClick:(0,n.iM)((t=>g(e.id)),["stop"])},null,8,["onClick"])):((0,i.wg)(),(0,i.j4)(I,{key:1,style:{"font-size":"17px"},onClick:(0,n.iM)((t=>g(e.id)),["stop"])},null,8,["onClick"]))])],42,XS))],64)))),128))])])),_:1},8,["title"])}}});const tC=(0,Vl.Z)(eC,[["__scopeId","data-v-15470598"]]);var lC=tC,aC=()=>{const e=R(),t=$(),{handleElement:l}=(0,o.Jk)(e),{slides:a,slideIndex:n,currentSlide:r}=(0,o.Jk)(t),u=(0,s.iH)(""),c=(0,s.iH)(""),d=(0,s.iH)([]),p=(0,s.iH)(-1),v=(0,s.iH)("g"),m=()=>{const e=[],t=new RegExp(u.value,v.value),l=/(<([^>]+)>)/g;for(const n of a.value)for(const a of n.elements)if("text"===a.type){const o=a.content.replace(l,""),i=o.match(t);i&&e.push(...new Array(i.length).fill({slideId:n.id,elId:a.id,elType:a.type}))}else if("shape"===a.type&&a.text&&a.text.content){const o=a.text.content.replace(l,""),i=o.match(t);i&&e.push(...new Array(i.length).fill({slideId:n.id,elId:a.id,elType:a.type}))}else if("table"===a.type)for(let o=0;o{const t=[...e.childNodes],l=[];while(t.length){const e=t.shift();e.nodeType===e.TEXT_NODE?e.wholeText&&l.push(e):t.unshift(...e.childNodes)}return l},f=e=>{let t=0;const l=e.map((e=>{const l=t,a=t+e.wholeText.length;return t=a,{text:e.wholeText,startIdx:l,endIdx:a}}));return l},g=(e,t)=>{const l=new RegExp(t,v.value),a=[];let n=l.exec(e);while(n)a.push(n),n=l.exec(e);return a},y=(e,t,l,a)=>{for(let n=l.length-1;n>=0;n--){const o=l[n],i=o.index,s=i+o[0].length;for(let l=0;l=s)break;let c=e[l];const d=Math.max(0,i-r),p=Math.min(u,s)-r-d;d>0&&(c=c.splitText(d)),p{for(const l of e)l.innerHTML=l.innerHTML.replace(new RegExp(u.value,v.value),(()=>`${u.value}`))},x=()=>{const e=document.querySelectorAll(".editable-element mark");for(const t of e)setTimeout((()=>{const e=t.parentNode,l=t.textContent;e.replaceChild(document.createTextNode(l),t)}),0)},k=()=>{x(),setTimeout((()=>{for(let e=0;ee)).join(""),o=g(n,u.value);y(t,l,o,e)}}}),0)},b=()=>{const e=document.querySelectorAll("mark[data-index]");for(const t of e)setTimeout((()=>{const e=t.dataset.index;void 0!==e&&+e===p.value?t.classList.add("active"):t.classList.remove("active")}),0)},_=()=>{if(-1===p.value)return;const e=d.value[p.value];if(e.slideId===r.value.id)setTimeout(b,0);else{const l=a.value.findIndex((t=>t.id===e.slideId));-1!==l&&t.updateSlideIndex(l)}},I=()=>{if(!u.value)return ta.warning("请先输入查找内容");e.setActiveElementIdList([]),-1===p.value?m():p.value{if(!u.value)return ta.warning("请先输入查找内容");e.setActiveElementIdList([]),-1===p.value?m():p.value>0?p.value-=1:p.value=d.value.length-1,_()},C=()=>{if(!u.value)return;if(-1===p.value)return void I();const e=d.value[p.value];let l=null;if("table"===e.elType){const[t,a]=e.cellIndex;l=document.querySelector(`#editable-element-${e.elId} .cell[data-cell-index="${t}_${a}"] .cell-text`)}else l=document.querySelector(`#editable-element-${e.elId} .ProseMirror`);if(!l)return;const a=document.createElement("div");a.innerHTML=l.innerHTML;let n=!1;const o=a.querySelectorAll("mark[data-index]");for(const t of o){const e=t.parentNode;if(t.classList.contains("active"))n?e.removeChild(t):(e.replaceChild(document.createTextNode(c.value),t),n=!0);else{const l=t.textContent;e.replaceChild(document.createTextNode(l),t)}}if("text"===e.elType){const l={content:a.innerHTML};t.updateElement({id:e.elId,props:l})}else if("shape"===e.elType){const l=r.value.elements.find((t=>t.id===e.elId));if(l&&"shape"===l.type&&l.text){const n={text:{...l.text,content:a.innerHTML}};t.updateElement({id:e.elId,props:n})}}else if("table"===e.elType){const l=r.value.elements.find((t=>t.id===e.elId));if(l&&"table"===l.type){const n=l.data.map(((t,l)=>l===e.cellIndex[0]?t.map(((t,l)=>l===e.cellIndex[1]?{...t,text:a.innerHTML}:t)):t)),o={data:n};t.updateElement({id:e.elId,props:o})}}d.value.splice(p.value,1),d.value.length?(p.value>d.value.length-1&&(p.value=0),(0,i.Y3)((()=>{k(),_()}))):p.value=-1},L=()=>{if(u.value)if(-1!==p.value){for(let e=0;ee.id===n.slideId));if(!o)continue;const i=o.elements.find((e=>e.id===n.elId));if(!i)continue;const s=document.createElement("div");if("text"===i.type?s.innerHTML=i.content:"shape"===i.type&&(s.innerHTML=i.text?.content||""),"table"===n.elType){const e=i.data.map((e=>e.map((e=>e.text?{...e,text:e.text.replaceAll(u.value,c.value)}:e)))),l={data:e};t.updateElement({id:n.elId,slideId:n.slideId,props:l})}else{const l=h(s),a=f(l),o=a.map((({text:e})=>e)).join(""),i=g(o,u.value);y(l,a,i,e);const d=s.querySelectorAll("mark[data-index]");let p=-1;for(const e of d){const t=+e.dataset.index,l=e.parentNode;t===p?l.removeChild(e):(l.replaceChild(document.createTextNode(c.value),e),p=t)}if("text"===n.elType){const e={content:s.innerHTML};t.updateElement({id:n.elId,slideId:n.slideId,props:e})}else if("shape"===n.elType){const e=r.value.elements.find((e=>e.id===n.elId));if(e&&"shape"===e.type&&e.text){const l={text:{...e.text,content:s.innerHTML}};t.updateElement({id:n.elId,slideId:n.slideId,props:l})}}}}d.value=[],p.value=-1}else I()},T=()=>{p.value=-1,d.value=[],u.value||x()};(0,i.YP)(u,T),(0,i.YP)(n,(()=>{(0,i.Y3)((()=>{k(),setTimeout(b,0)}))})),(0,i.YP)(l,(()=>{l.value&&(p.value=-1,d.value=[],x())})),(0,i.Jd)(x);const E=()=>{v.value="g"===v.value?"gi":"g",T()};return{searchWord:u,replaceWord:c,searchResults:d,searchIndex:p,modifiers:v,searchNext:I,searchPrev:S,replace:C,replaceAll:L,toggleModifiers:E}};const nC={class:"count"},oC={key:1,class:"footer"};var iC=(0,i.aZ)({__name:"SearchPanel",setup(e){const t=R(),{searchWord:l,replaceWord:a,searchResults:o,searchIndex:r,modifiers:u,searchNext:c,searchPrev:d,replace:p,replaceAll:v,toggleModifiers:m}=aC(),h=(0,s.iH)("search"),f=[{key:"search",label:"查找"},{key:"replace",label:"替换"}],g=()=>{t.setSearchPanelState(!1)},y=(0,s.iH)();return(0,i.bv)((()=>{y.value.focus()})),(0,i.YP)(h,(()=>{(0,i.Y3)((()=>{y.value.focus()}))})),(e,t)=>{const w=(0,i.up)("IconClose"),x=(0,i.up)("IconLeft"),k=(0,i.up)("IconRight"),b=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.j4)(ZS,{class:"search-panel",width:330,height:0,left:-270,top:90},{default:(0,i.w5)((()=>[(0,i._)("div",{class:"close-btn",onClick:t[0]||(t[0]=e=>g()),onMousedown:t[1]||(t[1]=(0,n.iM)((()=>{}),["stop"]))},[(0,i.Wm)(w)],32),(0,i.Wm)(Kd,{tabs:f,value:h.value,"onUpdate:value":t[2]||(t[2]=e=>h.value=e)},null,8,["value"]),(0,i._)("div",{class:(0,oe.C_)(["content",h.value]),onMousedown:t[12]||(t[12]=(0,n.iM)((()=>{}),["stop"]))},[(0,i.Wm)(sn,{class:"input",value:(0,s.SU)(l),"onUpdate:value":t[6]||(t[6]=e=>(0,s.dq)(l)?l.value=e:null),placeholder:"输入查找内容",onEnter:t[7]||(t[7]=e=>(0,s.SU)(c)()),ref_key:"searchInpRef",ref:y},{suffix:(0,i.w5)((()=>[(0,i._)("span",nC,(0,oe.zw)((0,s.SU)(r)+1)+"/"+(0,oe.zw)((0,s.SU)(o).length),1),(0,i.Wm)(Zc,{type:"vertical"}),(0,i.wy)(((0,i.wg)(),(0,i.iD)("span",{class:(0,oe.C_)(["ignore-case",{active:"g"===(0,s.SU)(u)}]),onClick:t[3]||(t[3]=e=>(0,s.SU)(m)())},[(0,i.Uk)("Aa")],2)),[[b,"忽略大小写"]]),(0,i.Wm)(Zc,{type:"vertical"}),(0,i.wy)((0,i.Wm)(x,{class:"next-btn left",onClick:t[4]||(t[4]=e=>(0,s.SU)(d)())},null,512),[[b,"上一个"]]),(0,i.wy)((0,i.Wm)(k,{class:"next-btn right",onClick:t[5]||(t[5]=e=>(0,s.SU)(c)())},null,512),[[b,"下一个"]])])),_:1},8,["value"]),"replace"===h.value?((0,i.wg)(),(0,i.j4)(sn,{key:0,class:"input",value:(0,s.SU)(a),"onUpdate:value":t[8]||(t[8]=e=>(0,s.dq)(a)?a.value=e:null),placeholder:"输入替换内容",onEnter:t[9]||(t[9]=e=>(0,s.SU)(p)())},null,8,["value"])):(0,i.kq)("",!0),"replace"===h.value?((0,i.wg)(),(0,i.iD)("div",oC,[(0,i.Wm)(tp,{disabled:!(0,s.SU)(l),style:{"margin-left":"5px"},onClick:t[10]||(t[10]=e=>(0,s.SU)(p)())},{default:(0,i.w5)((()=>[(0,i.Uk)("替换")])),_:1},8,["disabled"]),(0,i.Wm)(tp,{disabled:!(0,s.SU)(l),type:"primary",style:{"margin-left":"5px"},onClick:t[11]||(t[11]=e=>(0,s.SU)(v)())},{default:(0,i.w5)((()=>[(0,i.Uk)("全部替换")])),_:1},8,["disabled"])])):(0,i.kq)("",!0)],34)])),_:1})}}});const sC=(0,Vl.Z)(iC,[["__scopeId","data-v-fb93ddde"]]);var rC=sC;const uC={class:"pptist-editor"},cC={class:"layout-content"},dC={class:"layout-content-center"};var pC=(0,i.aZ)({__name:"index",setup(e){const t=R(),{dialogForExport:l,showSelectPanel:a,showSearchPanel:n}=(0,o.Jk)(t),r=()=>t.setDialogForExport(""),u=(0,s.iH)(40);return Ta(),Ea(),(e,t)=>((0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",uC,[(0,i.Wm)(Ln,{class:"layout-header"}),(0,i._)("div",cC,[(0,i.Wm)(Rm,{class:"layout-content-left"}),(0,i._)("div",dC,[(0,i.Wm)(Sm,{class:"center-top"}),(0,i.Wm)(Cp,{class:"center-body",style:(0,oe.j5)({height:`calc(100% - ${u.value+40}px)`})},null,8,["style"]),(0,i.Wm)(I_,{class:"center-bottom",height:u.value,"onUpdate:height":t[0]||(t[0]=e=>u.value=e),style:(0,oe.j5)({height:`${u.value}px`})},null,8,["height","style"])]),(0,i.Wm)(f_,{class:"layout-content-right"})])]),(0,s.SU)(a)?((0,i.wg)(),(0,i.j4)(lC,{key:0})):(0,i.kq)("",!0),(0,s.SU)(n)?((0,i.wg)(),(0,i.j4)(rC,{key:1})):(0,i.kq)("",!0),(0,i.Wm)(kp,{visible:!!(0,s.SU)(l),width:680,onClosed:t[1]||(t[1]=e=>r())},{default:(0,i.w5)((()=>[(0,i.Wm)(DS)])),_:1},8,["visible"])],64))}});const vC=(0,Vl.Z)(pC,[["__scopeId","data-v-1e00f97b"]]);var mC=vC,hC=()=>{const e=$(),{slides:t,slideIndex:l,formatedAnimations:a}=(0,o.Jk)(e),n=(0,s.iH)(0),r=(0,s.iH)(!1),u=(0,s.iH)(l.value),c=()=>{if(r.value)return;const{animations:e,autoNext:t}=a.value[n.value];n.value+=1,r.value=!0;let l=0;for(const a of e){const n=document.querySelector(`#screen-element-${a.elId} [class^=base-element-]`);if(!n){l+=1;continue}const o=`${yk}${a.effect}`;n.style.removeProperty("--animate-duration");for(const e of n.classList)-1!==e.indexOf(yk)&&n.classList.remove(e,`${yk}animated`);n.style.setProperty("--animate-duration",`${a.duration}ms`),n.classList.add(o,`${yk}animated`);const i=()=>{"out"!==a.type&&(n.style.removeProperty("--animate-duration"),n.classList.remove(o,`${yk}animated`)),l+=1,l===e.length&&(r.value=!1,t&&c())};n.addEventListener("animationend",i,{once:!0})}},d=()=>{n.value-=1;const{animations:e}=a.value[n.value];for(const t of e){const e=document.querySelector(`#screen-element-${t.elId} [class^=base-element-]`);if(e){e.style.removeProperty("--animate-duration");for(const t of e.classList)-1!==t.indexOf(yk)&&e.classList.remove(t,`${yk}animated`)}}e.every((e=>"attention"===e.type))&&g()},p=(0,s.iH)(0),v=()=>{p.value&&(clearInterval(p.value),p.value=0)};(0,i.Ah)(v);const m=(0,s.iH)(!1),h=e=>{m.value=e},f=(0,D.throttle)((function(e){ta.success(e)}),1e3,{leading:!0,trailing:!1}),g=()=>{a.value.length&&n.value>0?d():l.value>0?(e.updateSlideIndex(l.value-1),l.value{a.value.length&&n.value{v(),ta.success("开始自动放映"),p.value=setInterval(y,w.value)},k=e=>{v(),w.value=e,x()},b=(0,D.throttle)((function(e){e.deltaY<0?g():e.deltaY>0&&y()}),500,{leading:!0,trailing:!1}),_=(0,s.iH)(null),I=e=>{_.value={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}},S=e=>{if(!_.value)return;const t=Math.abs(_.value.x-e.changedTouches[0].pageX),l=e.changedTouches[0].pageY-_.value.y;Math.abs(l)>t&&Math.abs(l)>50&&(_.value=null,l>0?g():y())},C=e=>{const t=e.key.toUpperCase();t===ne.UP||t===ne.LEFT||t===ne.PAGEUP?g():t!==ne.DOWN&&t!==ne.RIGHT&&t!==ne.SPACE&&t!==ne.ENTER&&t!==ne.PAGEDOWN||y()};(0,i.bv)((()=>document.addEventListener("keydown",C))),(0,i.Ah)((()=>document.removeEventListener("keydown",C)));const L=()=>{e.updateSlideIndex(l.value-1),n.value=0},T=()=>{e.updateSlideIndex(l.value+1),n.value=0},E=t=>{e.updateSlideIndex(t),n.value=0},M=l=>{const a=t.value.findIndex((e=>e.id===l));-1!==a&&(e.updateSlideIndex(a),n.value=0)};return{autoPlayTimer:p,autoPlayInterval:w,setAutoPlayInterval:k,autoPlay:x,closeAutoPlay:v,loopPlay:m,setLoopPlay:h,mousewheelListener:b,touchStartListener:I,touchEndListener:S,turnPrevSlide:L,turnNextSlide:T,turnSlideToIndex:E,turnSlideToId:M,execPrev:g,execNext:y,animationIndex:n}},fC=e=>{const t=$(),{viewportRatio:l}=(0,o.Jk)(t),a=(0,s.iH)(0),n=(0,s.iH)(0),r=()=>{const t=e?.value||document.body,o=t.clientWidth,i=t.clientHeight;let s,r;i/o===l.value?(s=o,r=i):i/o>l.value?(s=o,r=o*l.value):(s=i/l.value,r=i),a.value=s,n.value=r};return(0,i.bv)((()=>{r(),window.addEventListener("resize",r)})),(0,i.Ah)((()=>{window.removeEventListener("resize",r)})),{slideWidth:a,slideHeight:n}},gC=()=>{const e=(0,s.iH)(!0),t=(0,s.iH)(!0),{exitScreening:l}=Ca(),a=()=>{e.value=Sa(),!e.value&&t.value&&l(),t.value=!0};(0,i.bv)((()=>{e.value=Sa(),document.addEventListener("fullscreenchange",a),document.addEventListener("webkitfullscreenchange",a)})),(0,i.Ah)((()=>{document.removeEventListener("fullscreenchange",a),document.removeEventListener("webkitfullscreenchange",a)}));const n=()=>{e.value&&(t.value=!1,Ia())};return{fullscreenState:e,manualExitFullscreen:n}};const yC={class:"element-content"};var wC=(0,i.aZ)({__name:"ScreenVideoElement",props:{elementInfo:{}},setup(e){const{currentSlide:t}=(0,o.Jk)($()),l=(0,i.f3)(Tn)||(0,s.iH)(1),a=(0,i.f3)(En)||(0,s.iH)(""),n=(0,i.Fl)((()=>t.value.id===a.value));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"base-element-video screen-element-video",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i._)("div",yC,[n.value?((0,i.wg)(),(0,i.j4)(Fr,{key:0,width:e.elementInfo.width,height:e.elementInfo.height,src:e.elementInfo.src,poster:e.elementInfo.poster,autoplay:e.elementInfo.autoplay,scale:(0,s.SU)(l)},null,8,["width","height","src","poster","autoplay","scale"])):(0,i.kq)("",!0)])],4)],4))}});const xC=(0,Vl.Z)(wC,[["__scopeId","data-v-76bf5b3f"]]);var kC=xC;const bC={class:"element-content"};var _C=(0,i.aZ)({__name:"ScreenAudioElement",props:{elementInfo:{}},setup(e){const t=e,{viewportRatio:l,currentSlide:a}=(0,o.Jk)($()),n=(0,i.f3)(Tn)||(0,s.iH)(1),r=(0,i.f3)(En)||(0,s.iH)(""),u=(0,i.Fl)((()=>a.value.id===r.value)),c=(0,i.Fl)((()=>Math.min(t.elementInfo.width,t.elementInfo.height)+"px")),d=(0,i.Fl)((()=>{const e=oa,a=oa*l.value,o=280/n.value,i=50/n.value,s=t.elementInfo.width,r=t.elementInfo.height,u=t.elementInfo.left,c=t.elementInfo.top;let d=0,p=r;return u+o>=e&&(d=s-o),c+r+i>=a&&(p=-i),{left:d+"px",top:p+"px"}})),p=(0,s.iH)(),v=()=>{p.value&&p.value.toggle()};return(e,t)=>{const l=(0,i.up)("IconVolumeNotice");return(0,i.wg)(),(0,i.iD)("div",{class:"base-element-audio screen-element-audio",style:(0,oe.j5)({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[(0,i._)("div",{class:"rotate-wrapper",style:(0,oe.j5)({transform:`rotate(${e.elementInfo.rotate}deg)`})},[(0,i._)("div",bC,[(0,i.Wm)(l,{class:"audio-icon",style:(0,oe.j5)({fontSize:c.value,color:e.elementInfo.color}),onClick:t[0]||(t[0]=e=>v())},null,8,["style"]),u.value?((0,i.wg)(),(0,i.j4)(lu,{key:0,class:"audio-player",ref_key:"audioPlayerRef",ref:p,style:(0,oe.j5)({...d.value}),src:e.elementInfo.src,loop:e.elementInfo.loop,autoplay:e.elementInfo.autoplay,scale:(0,s.SU)(n)},null,8,["style","src","loop","autoplay","scale"])):(0,i.kq)("",!0)])],4)],4)}}});const IC=(0,Vl.Z)(_C,[["__scopeId","data-v-adf39436"]]);var SC=IC;const CC=["id","title"];var LC=(0,i.aZ)({__name:"ScreenElement",props:{elementInfo:{},elementIndex:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(e){const t=e,l=(0,i.Fl)((()=>{const e={[sa.IMAGE]:Gc,[sa.TEXT]:td,[sa.SHAPE]:ud,[sa.LINE]:md,[sa.CHART]:gd,[sa.TABLE]:Ld,[sa.LATEX]:Hd,[sa.VIDEO]:kC,[sa.AUDIO]:SC};return e[t.elementInfo.type]||null})),{formatedAnimations:a,theme:n}=(0,o.Jk)($()),r=(0,i.Fl)((()=>{const e=a.value.findIndex((e=>{const l=e.animations.map((e=>e.elId));return l.includes(t.elementInfo.id)}));if(-1===e)return!1;if(ee.elId===t.elementInfo.id));return"in"===l?.type})),u=()=>{const e=t.elementInfo.link;e&&("web"===e.type?(t.manualExitFullscreen(),window.open(e.target)):"slide"===e.type&&t.turnSlideToId(e.target))};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["screen-element",{link:e.elementInfo.link}]),id:`screen-element-${e.elementInfo.id}`,style:(0,oe.j5)({zIndex:e.elementIndex,color:(0,s.SU)(n).fontColor,fontFamily:(0,s.SU)(n).fontName,visibility:r.value?"hidden":"visible"}),title:e.elementInfo.link?.target||"",onClick:t[0]||(t[0]=e=>u())},[((0,i.wg)(),(0,i.j4)((0,i.LL)(l.value),{elementInfo:e.elementInfo},null,8,["elementInfo"]))],14,CC))}});const TC=(0,Vl.Z)(LC,[["__scopeId","data-v-2139723a"]]);var EC=TC,MC=(0,i.aZ)({__name:"ScreenSlide",props:{slide:{},scale:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(e){const t=e,{viewportRatio:l}=(0,o.Jk)($()),a=(0,i.Fl)((()=>t.slide.background)),{backgroundStyle:n}=yu(a),r=(0,i.Fl)((()=>t.slide.id));return(0,i.JJ)(En,r),(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"screen-slide",style:(0,oe.j5)({width:(0,s.SU)(oa)+"px",height:(0,s.SU)(oa)*(0,s.SU)(l)+"px",transform:`scale(${e.scale})`})},[(0,i._)("div",{class:"background",style:(0,oe.j5)({...(0,s.SU)(n)})},null,4),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.slide.elements,((t,l)=>((0,i.wg)(),(0,i.j4)(EC,{key:t.id,elementInfo:t,elementIndex:l+1,animationIndex:e.animationIndex,turnSlideToId:e.turnSlideToId,manualExitFullscreen:e.manualExitFullscreen},null,8,["elementInfo","elementIndex","animationIndex","turnSlideToId","manualExitFullscreen"])))),128))],4))}});const UC=(0,Vl.Z)(MC,[["__scopeId","data-v-016af5da"]]);var WC=UC;const DC={class:"screen-slide-list"};var HC=(0,i.aZ)({__name:"ScreenSlideList",props:{slideWidth:{},slideHeight:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(e){const t=e,{slides:l,slideIndex:a}=(0,o.Jk)($()),n=(0,i.Fl)((()=>l.value.map((e=>{let t=e.turningMode;if(t||(t="slideY"),"random"===t){const e=bk.filter((e=>!["random","no"].includes(e.value))).map((e=>e.value));t=e[Math.floor(Math.random()*e.length)]}return{...e,turningMode:t}})))),r=(0,i.Fl)((()=>t.slideWidth/oa));return(0,i.JJ)(Tn,r),(e,t)=>((0,i.wg)(),(0,i.iD)("div",DC,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(n.value,((t,l)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["slide-item",`turning-mode-${t.turningMode}`,{current:l===(0,s.SU)(a),before:l<(0,s.SU)(a),after:l>(0,s.SU)(a),hide:(l===(0,s.SU)(a)-1||l===(0,s.SU)(a)+1)&&t.turningMode!==n.value[(0,s.SU)(a)].turningMode}]),key:t.id},[Math.abs((0,s.SU)(a)-l)<2||t.animations?.length?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"slide-content",style:(0,oe.j5)({width:e.slideWidth+"px",height:e.slideHeight+"px"})},[(0,i.Wm)(WC,{slide:t,scale:r.value,animationIndex:e.animationIndex,turnSlideToId:e.turnSlideToId,manualExitFullscreen:e.manualExitFullscreen},null,8,["slide","scale","animationIndex","turnSlideToId","manualExitFullscreen"])],4)):(0,i.kq)("",!0)],2)))),128))]))}});const FC=(0,Vl.Z)(HC,[["__scopeId","data-v-552b63d2"]]);var AC=FC;const $C={class:"slide-thumbnails"},ZC={class:"return-button"},OC={class:"slide-thumbnails-content"},RC=["onClick"];var zC=(0,i.aZ)({__name:"SlideThumbnails",props:{turnSlideToIndex:{type:Function}},emits:["close"],setup(e,{emit:t}){const l=e,a=t,{slides:n,slideIndex:r}=(0,o.Jk)($()),{slidesLoadLimit:u}=Cm(),c=e=>{l.turnSlideToIndex(e),a("close")};return(e,t)=>{const l=(0,i.up)("IconArrowCircleLeft");return(0,i.wg)(),(0,i.iD)("div",$C,[(0,i._)("div",ZC,[(0,i.Wm)(l,{class:"icon",onClick:t[0]||(t[0]=e=>a("close"))})]),(0,i._)("div",OC,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(n),((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["thumbnail",{active:t===(0,s.SU)(r)}]),key:e.id,onClick:e=>c(t)},[(0,i.Wm)(Jd,{slide:e,size:150,visible:t<(0,s.SU)(u)},null,8,["slide","visible"])],10,RC)))),128))])])}}});const PC=(0,Vl.Z)(zC,[["__scopeId","data-v-15912b32"]]);var BC=PC;const NC={key:0,class:"blackboard"};var jC=(0,i.aZ)({__name:"WritingBoard",props:{color:{default:"#ffcc00"},model:{default:"pen"},blackboard:{type:Boolean,default:!1},penSize:{default:6},markSize:{default:24},rubberSize:{default:80}},emits:["end"],setup(e,{expose:t,emit:l}){const a=e,n=l;let o=null;const r=(0,s.iH)(),u=(0,s.iH)();let c={x:0,y:0},d=!1,p=0,v=-1;const m=(0,s.iH)({x:0,y:0}),h=(0,s.iH)(!1),f=(0,s.iH)(0),g=(0,s.iH)(0),y=(0,i.Fl)((()=>u.value?f.value/u.value.width:1)),w=(0,i.Fl)((()=>u.value?g.value/u.value.height:1)),x=()=>{r.value&&(f.value=r.value.clientWidth,g.value=r.value.clientHeight)},k=new ResizeObserver(x);(0,i.bv)((()=>{r.value&&k.observe(r.value)})),(0,i.Ah)((()=>{r.value&&k.unobserve(r.value)}));const b=()=>{u.value&&r.value&&(o=u.value.getContext("2d"),o&&(u.value.width=r.value.clientWidth,u.value.height=r.value.clientHeight,o.lineCap="round",o.lineJoin="round"))};(0,i.bv)(b);const _=()=>{o&&("mark"===a.model?(o.globalCompositeOperation="xor",o.globalAlpha=.5):"pen"===a.model&&(o.globalCompositeOperation="source-over",o.globalAlpha=1))};(0,i.YP)((()=>a.model),_);const I=(e,t,l)=>{if(!o)return;const n=c.x,i=c.y;o.lineWidth=l,o.strokeStyle=a.color,o.beginPath(),o.moveTo(n,i),o.lineTo(e,t),o.stroke(),o.closePath()},S=(e,t)=>{if(!o||!u.value)return;const l=c.x,n=c.y,i=a.rubberSize/2,s=i*Math.sin(Math.atan((t-n)/(e-l))),r=i*Math.cos(Math.atan((t-n)/(e-l))),d=[l+s,n-r],p=[l-s,n+r],v=[e+s,t-r],m=[e-s,t+r];o.save(),o.beginPath(),o.arc(e,t,i,0,2*Math.PI),o.clip(),o.clearRect(0,0,u.value.width,u.value.height),o.restore(),o.save(),o.beginPath(),o.moveTo(...d),o.lineTo(...v),o.lineTo(...m),o.lineTo(...p),o.closePath(),o.clip(),o.clearRect(0,0,u.value.width,u.value.height),o.restore()},C=(e,t)=>{const l=c.x,a=c.y;return Math.sqrt((e-l)*(e-l)+(t-a)*(t-a))},L=(e,t)=>{const l=10,n=.1,o=a.penSize,i=3,s=e/t;let r;return r=s<=n?o:s>=l?i:o-s/l*o,-1===v?r:1*r/3+2*v/3},T=(e,t)=>{const l=(new Date).getTime();if("pen"===a.model){const a=C(e,t),n=l-p,o=L(a,n);I(e,t,o),v=o}else"mark"===a.model?I(e,t,a.markSize):S(e,t);c={x:e,y:t},p=(new Date).getTime()},E=e=>{if(!u.value)return[0,0];const t=e instanceof MouseEvent?e:e.changedTouches[0],l=u.value.getBoundingClientRect(),a=t.pageX-l.x,n=t.pageY-l.y;return[a,n]},M=e=>{const[t,l]=E(e),a=t/y.value,n=l/w.value;d=!0,c={x:a,y:n},p=(new Date).getTime(),e instanceof MouseEvent||(m.value={x:t,y:l},h.value=!0)},U=e=>{const[t,l]=E(e),a=t/y.value,n=l/w.value;m.value={x:t,y:l},d&&T(a,n)},W=()=>{d&&(d=!1,n("end"))},D=()=>{o&&u.value&&(o.clearRect(0,0,u.value.width,u.value.height),n("end"))},H=()=>u.value?.toDataURL(),F=e=>{if(o&&u.value&&(o.clearRect(0,0,u.value.width,u.value.height),e)){o.globalCompositeOperation="source-over",o.globalAlpha=1;const t=new Image;t.src=e,t.onload=()=>{o.drawImage(t,0,0),_()}}};return t({clearCanvas:D,getImageDataURL:H,setImageDataURL:F}),(e,t)=>{const l=(0,i.up)("IconWrite"),a=(0,i.up)("IconHighLight");return(0,i.wg)(),(0,i.iD)("div",{class:"writing-board",ref_key:"writingBoardRef",ref:r},[e.blackboard?((0,i.wg)(),(0,i.iD)("div",NC)):(0,i.kq)("",!0),(0,i._)("canvas",{class:"canvas",ref_key:"canvasRef",ref:u,style:(0,oe.j5)({width:f.value+"px",height:g.value+"px"}),onMousedown:t[0]||(t[0]=e=>M(e)),onMousemove:t[1]||(t[1]=e=>U(e)),onMouseup:t[2]||(t[2]=e=>W()),onTouchstart:t[3]||(t[3]=e=>M(e)),onTouchmove:t[4]||(t[4]=e=>U(e)),onTouchend:t[5]||(t[5]=e=>{W(),h.value=!1}),onMouseleave:t[6]||(t[6]=e=>{W(),h.value=!1}),onMouseenter:t[7]||(t[7]=e=>h.value=!0)},null,36),h.value?((0,i.wg)(),(0,i.iD)(i.HY,{key:1},["eraser"===e.model?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"eraser",style:(0,oe.j5)({left:m.value.x-e.rubberSize/2+"px",top:m.value.y-e.rubberSize/2+"px",width:e.rubberSize+"px",height:e.rubberSize+"px"})},null,4)):(0,i.kq)("",!0),"pen"===e.model?((0,i.wg)(),(0,i.iD)("div",{key:1,class:"pen",style:(0,oe.j5)({left:m.value.x-e.penSize/2+"px",top:m.value.y-6*e.penSize+e.penSize/2+"px",color:e.color})},["pen"===e.model?((0,i.wg)(),(0,i.j4)(l,{key:0,class:"icon",size:6*e.penSize},null,8,["size"])):(0,i.kq)("",!0)],4)):(0,i.kq)("",!0),"mark"===e.model?((0,i.wg)(),(0,i.iD)("div",{key:2,class:"pen",style:(0,oe.j5)({left:m.value.x-e.markSize/2+"px",top:m.value.y+"px",color:e.color})},["mark"===e.model?((0,i.wg)(),(0,i.j4)(a,{key:0,class:"icon",size:1.5*e.markSize},null,8,["size"])):(0,i.kq)("",!0)],4)):(0,i.kq)("",!0)],64)):(0,i.kq)("",!0)],512)}}});const YC=(0,Vl.Z)(jC,[["__scopeId","data-v-d8027742"]]);var VC=YC;const JC=e=>((0,i.dD)("data-v-92cd0b5a"),e=e(),(0,i.Cn)(),e),qC={class:"writing-board-tool"},XC={class:"tool-content"},GC={class:"size"},KC=JC((()=>(0,i._)("div",{class:"label"},"墨迹粗细:",-1))),QC={class:"size"},eL=JC((()=>(0,i._)("div",{class:"label"},"墨迹粗细:",-1))),tL={class:"size"},lL=JC((()=>(0,i._)("div",{class:"label"},"橡皮大小:",-1))),aL={class:"colors"},nL=["onClick"];var oL=(0,i.aZ)({__name:"WritingBoardTool",props:{slideWidth:{},slideHeight:{},left:{default:-5},top:{default:-5}},emits:["close"],setup(e,{emit:t}){const l=["#000000","#ffffff","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c","#ffff3a"],a=t,{currentSlide:r}=(0,o.Jk)($()),u=(0,s.iH)(),c=(0,s.iH)("#e2534d"),d=(0,s.iH)("pen"),p=(0,s.iH)(!1),v=(0,s.iH)(""),m=(0,s.iH)(6),h=(0,s.iH)(24),f=(0,s.iH)(80),g=e=>{d.value===e?v.value=v.value===e?"":e:(v.value&&(v.value=""),d.value=e)},y=()=>{u.value.clearCanvas()},w=e=>{"eraser"===d.value&&(d.value="pen"),c.value=e},x=()=>{a("close")};(0,i.YP)(r,(()=>{V.writingBoardImgs.where("id").equals(r.value.id).toArray().then((e=>{const t=e[0];u.value.setImageDataURL(t?.dataURL||"")}))}),{immediate:!0});const k=()=>{const e=u.value.getImageDataURL();e&&V.writingBoardImgs.where("id").equals(r.value.id).toArray().then((t=>{const l=t[0];l?V.writingBoardImgs.update(l,{dataURL:e}):V.writingBoardImgs.add({id:r.value.id,dataURL:e})}))};return(e,t)=>{const a=(0,i.up)("IconWrite"),o=(0,i.up)("IconHighLight"),s=(0,i.up)("IconErase"),r=(0,i.up)("IconClear"),b=(0,i.up)("IconFill"),_=(0,i.up)("IconClose"),I=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",qC,[(0,i._)("div",{class:"writing-board-wrap",style:(0,oe.j5)({width:e.slideWidth+"px",height:e.slideHeight+"px"})},[(0,i.Wm)(VC,{ref_key:"writingBoardRef",ref:u,color:c.value,blackboard:p.value,model:d.value,penSize:m.value,markSize:h.value,rubberSize:f.value,onEnd:t[0]||(t[0]=e=>k())},null,8,["color","blackboard","model","penSize","markSize","rubberSize"])],4),(0,i.Wm)(ZS,{class:"tools-panel",width:520,height:50,left:e.left,top:e.top,moveable:""===v.value},{default:(0,i.w5)((()=>[(0,i._)("div",{class:"tools",onMousedown:t[10]||(t[10]=(0,n.iM)((()=>{}),["stop"]))},[(0,i._)("div",XC,[(0,i.Wm)(dn,{trigger:"manual",value:"pen"===v.value},{content:(0,i.w5)((()=>[(0,i._)("div",GC,[KC,(0,i.Wm)(qm,{class:"size-slider",min:4,max:10,step:2,value:m.value,"onUpdate:value":t[1]||(t[1]=e=>m.value=e)},null,8,["value"])])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["btn",{active:"pen"===d.value}]),onClick:t[2]||(t[2]=e=>g("pen"))},[(0,i.Wm)(a,{class:"icon"})],2)),[[I,"画笔"]])])),_:1},8,["value"]),(0,i.Wm)(dn,{trigger:"manual",value:"mark"===v.value},{content:(0,i.w5)((()=>[(0,i._)("div",QC,[eL,(0,i.Wm)(qm,{class:"size-slider",min:16,max:40,step:4,value:h.value,"onUpdate:value":t[3]||(t[3]=e=>h.value=e)},null,8,["value"])])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["btn",{active:"mark"===d.value}]),onClick:t[4]||(t[4]=e=>g("mark"))},[(0,i.Wm)(o,{class:"icon"})],2)),[[I,"荧光笔"]])])),_:1},8,["value"]),(0,i.Wm)(dn,{trigger:"manual",value:"eraser"===v.value},{content:(0,i.w5)((()=>[(0,i._)("div",tL,[lL,(0,i.Wm)(qm,{class:"size-slider",min:20,max:200,step:20,value:f.value,"onUpdate:value":t[5]||(t[5]=e=>f.value=e)},null,8,["value"])])])),default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["btn",{active:"eraser"===d.value}]),onClick:t[6]||(t[6]=e=>g("eraser"))},[(0,i.Wm)(s,{class:"icon"})],2)),[[I,"橡皮擦"]])])),_:1},8,["value"]),(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"btn",onClick:t[7]||(t[7]=e=>y())},[(0,i.Wm)(r,{class:"icon"})])),[[I,"清除墨迹"]]),(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["btn",{active:p.value}]),onClick:t[8]||(t[8]=e=>p.value=!p.value)},[(0,i.Wm)(b,{class:"icon"})],2)),[[I,"黑板"]]),(0,i._)("div",aL,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(l,(e=>(0,i._)("div",{class:(0,oe.C_)(["color",{active:e===c.value}]),key:e,style:(0,oe.j5)({backgroundColor:e}),onClick:t=>w(e)},null,14,nL))),64))])]),(0,i.wy)(((0,i.wg)(),(0,i.iD)("div",{class:"btn",onClick:t[9]||(t[9]=e=>x())},[(0,i.Wm)(_,{class:"icon"})])),[[I,"关闭画笔"]])],32)])),_:1},8,["left","top","moveable"])])}}});const iL=(0,Vl.Z)(oL,[["__scopeId","data-v-92cd0b5a"]]);var sL=iL;const rL=e=>((0,i.dD)("data-v-83a589f0"),e=e(),(0,i.Cn)(),e),uL={class:"header"},cL={class:"content"},dL={class:"timer"},pL=["value","disabled"],vL=rL((()=>(0,i._)("div",{class:"colon"},":",-1))),mL={class:"timer"},hL=["value","disabled"];var fL=(0,i.aZ)({__name:"CountdownTimer",props:{left:{default:5},top:{default:5}},emits:["close"],setup(e,{emit:t}){const l=t,a=(0,s.iH)(null),o=(0,s.iH)(!1),r=(0,s.iH)(!1),u=(0,s.iH)(0),c=(0,i.Fl)((()=>Math.floor(u.value/60))),d=(0,i.Fl)((()=>u.value%60)),p=(0,i.Fl)((()=>!r.value||o.value)),v=()=>{a.value&&clearInterval(a.value)};(0,i.Ah)(v);const m=()=>{v(),o.value=!1},h=()=>{v(),o.value=!1,r.value?u.value=600:u.value=0},f=()=>{v(),r.value?a.value=setInterval((()=>{u.value=u.value-1,u.value<=0&&h()}),1e3):a.value=setInterval((()=>{u.value=u.value+1,u.value>36e3&&m()}),1e3),o.value=!0},g=()=>{o.value?m():f()},y=()=>{r.value=!r.value,h()},w=(e,t)=>{const l=e.target;let a=l.value;const n=/^(\d)+$/.test(a);n?("second"===t&&+a>=60&&(a="59"),u.value="minute"===t?60*+a+d.value:+a+60*c.value):l.value=G("minute"===t?c.value:d.value,2)};return(e,t)=>{const a=(0,i.up)("IconClose");return(0,i.wg)(),(0,i.j4)(ZS,{class:"countdown-timer",width:180,height:110,left:e.left,top:e.top},{default:(0,i.w5)((()=>[(0,i._)("div",uL,[(0,i._)("span",{class:"text-btn",onClick:t[0]||(t[0]=e=>g())},(0,oe.zw)(o.value?"暂停":"开始"),1),(0,i._)("span",{class:"text-btn",onClick:t[1]||(t[1]=e=>h())},"重置"),(0,i._)("span",{class:(0,oe.C_)(["text-btn",{active:r.value}]),onClick:t[2]||(t[2]=e=>y())},"倒计时",2)]),(0,i._)("div",cL,[(0,i._)("div",dL,[(0,i._)("input",{type:"text",value:(0,s.SU)(G)(c.value,2),maxlength:3,disabled:p.value,onMousedown:t[3]||(t[3]=(0,n.iM)((()=>{}),["stop"])),onBlur:t[4]||(t[4]=e=>w(e,"minute")),onKeydown:[t[5]||(t[5]=(0,n.iM)((()=>{}),["stop"])),t[6]||(t[6]=(0,n.D2)((0,n.iM)((e=>w(e,"minute")),["stop"]),["enter"]))]},null,40,pL)]),vL,(0,i._)("div",mL,[(0,i._)("input",{type:"text",value:(0,s.SU)(G)(d.value,2),maxlength:3,disabled:p.value,onMousedown:t[7]||(t[7]=(0,n.iM)((()=>{}),["stop"])),onBlur:t[8]||(t[8]=e=>w(e,"second")),onKeydown:[t[9]||(t[9]=(0,n.iM)((()=>{}),["stop"])),t[10]||(t[10]=(0,n.D2)((0,n.iM)((e=>w(e,"second")),["stop"]),["enter"]))]},null,40,hL)])]),(0,i._)("div",{class:"close-btn",onClick:t[11]||(t[11]=e=>l("close"))},[(0,i.Wm)(a,{class:"icon"})])])),_:1},8,["left","top"])}}});const gL=(0,Vl.Z)(fL,[["__scopeId","data-v-83a589f0"]]);var yL=gL;const wL={class:"tools-left"},xL={class:"content"};var kL=(0,i.aZ)({__name:"BaseView",props:{changeViewMode:{type:Function}},setup(e){const t=e,{slides:l,slideIndex:a}=(0,o.Jk)($()),{autoPlayTimer:n,autoPlay:r,closeAutoPlay:u,autoPlayInterval:c,setAutoPlayInterval:d,loopPlay:p,setLoopPlay:v,mousewheelListener:m,touchStartListener:h,touchEndListener:f,turnPrevSlide:g,turnNextSlide:y,turnSlideToIndex:w,turnSlideToId:x,execPrev:k,execNext:b,animationIndex:_}=hC(),{slideWidth:I,slideHeight:S}=fC(),{exitScreening:C}=Ca(),{fullscreenState:L,manualExitFullscreen:T}=gC(),E=(0,s.iH)(!1),M=(0,s.iH)(!1),U=(0,s.iH)(!1),W=(0,s.iH)(!1),D=(0,s.iH)(!1),H=()=>[{text:"上一页",subText:"↑ ←",disable:a.value<=0,handler:()=>g()},{text:"下一页",subText:"↓ →",disable:a.value>=l.value.length-1,handler:()=>y()},{text:"第一页",disable:0===a.value,handler:()=>w(0)},{text:"最后一页",disable:a.value===l.value.length-1,handler:()=>w(l.value.length-1)},{divider:!0},{text:n.value?"取消自动放映":"自动放映",handler:n.value?u:r,children:[{text:"2.5秒",subText:2500===c.value?"√":"",handler:()=>d(2500)},{text:"5秒",subText:5e3===c.value?"√":"",handler:()=>d(5e3)},{text:"7.5秒",subText:7500===c.value?"√":"",handler:()=>d(7500)},{text:"10秒",subText:1e4===c.value?"√":"",handler:()=>d(1e4)}]},{text:"循环放映",subText:p.value?"√":"",handler:()=>v(!p.value)},{divider:!0},{text:"显示工具栏",handler:()=>E.value=!0},{text:"查看所有幻灯片",handler:()=>W.value=!0},{text:"画笔工具",handler:()=>M.value=!0},{text:"演讲者视图",handler:()=>t.changeViewMode("presenter")},{divider:!0},{text:"结束放映",subText:"ESC",handler:C}];return(e,t)=>{const n=(0,i.up)("IconLeftTwo"),o=(0,i.up)("IconRightTwo"),r=(0,i.up)("IconWrite"),u=(0,i.up)("IconMagic"),c=(0,i.up)("IconStopwatchStart"),d=(0,i.up)("IconListView"),p=(0,i.up)("IconOffScreenOne"),v=(0,i.up)("IconFullScreenOne"),g=(0,i.up)("IconPower"),y=(0,i.Q2)("contextmenu"),F=(0,i.Q2)("tooltip");return(0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["base-view",{"laser-pen":D.value}])},[(0,i.wy)((0,i.Wm)(AC,{slideWidth:(0,s.SU)(I),slideHeight:(0,s.SU)(S),animationIndex:(0,s.SU)(_),turnSlideToId:(0,s.SU)(x),manualExitFullscreen:(0,s.SU)(T),onWheel:t[0]||(t[0]=e=>(0,s.SU)(m)(e)),onTouchstart:t[1]||(t[1]=e=>(0,s.SU)(h)(e)),onTouchend:t[2]||(t[2]=e=>(0,s.SU)(f)(e))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[y,H]]),W.value?((0,i.wg)(),(0,i.j4)(BC,{key:0,turnSlideToIndex:(0,s.SU)(w),onClose:t[3]||(t[3]=e=>W.value=!1)},null,8,["turnSlideToIndex"])):(0,i.kq)("",!0),M.value?((0,i.wg)(),(0,i.j4)(sL,{key:1,slideWidth:(0,s.SU)(I),slideHeight:(0,s.SU)(S),onClose:t[4]||(t[4]=e=>M.value=!1)},null,8,["slideWidth","slideHeight"])):(0,i.kq)("",!0),U.value?((0,i.wg)(),(0,i.j4)(yL,{key:2,onClose:t[5]||(t[5]=e=>U.value=!1)})):(0,i.kq)("",!0),(0,i._)("div",wL,[(0,i.Wm)(n,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[6]||(t[6]=e=>(0,s.SU)(k)())}),(0,i.Wm)(o,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[7]||(t[7]=e=>(0,s.SU)(b)())})]),(0,i._)("div",{class:(0,oe.C_)(["tools-right",{visible:E.value}]),onMouseleave:t[16]||(t[16]=e=>E.value=!1),onMouseenter:t[17]||(t[17]=e=>E.value=!0)},[(0,i._)("div",xL,[(0,i._)("div",{class:"tool-btn page-number",onClick:t[8]||(t[8]=e=>W.value=!0)},"幻灯片 "+(0,oe.zw)((0,s.SU)(a)+1)+" / "+(0,oe.zw)((0,s.SU)(l).length),1),(0,i.wy)((0,i.Wm)(r,{class:"tool-btn",onClick:t[9]||(t[9]=e=>M.value=!0)},null,512),[[F,"画笔工具"]]),(0,i.wy)((0,i.Wm)(u,{class:(0,oe.C_)(["tool-btn",{active:D.value}]),onClick:t[10]||(t[10]=e=>D.value=!D.value)},null,8,["class"]),[[F,"激光笔"]]),(0,i.wy)((0,i.Wm)(c,{class:(0,oe.C_)(["tool-btn",{active:U.value}]),onClick:t[11]||(t[11]=e=>U.value=!U.value)},null,8,["class"]),[[F,"计时器"]]),(0,i.wy)((0,i.Wm)(d,{class:"tool-btn",onClick:t[12]||(t[12]=t=>e.changeViewMode("presenter"))},null,512),[[F,"演讲者视图"]]),(0,s.SU)(L)?(0,i.wy)(((0,i.wg)(),(0,i.j4)(p,{key:0,class:"tool-btn",onClick:t[13]||(t[13]=e=>(0,s.SU)(T)())},null,512)),[[F,"退出全屏"]]):(0,i.wy)(((0,i.wg)(),(0,i.j4)(v,{key:1,class:"tool-btn",onClick:t[14]||(t[14]=e=>(0,s.SU)(_a)())},null,512)),[[F,"进入全屏"]]),(0,i.wy)((0,i.Wm)(g,{class:"tool-btn",onClick:t[15]||(t[15]=e=>(0,s.SU)(C)())},null,512),[[F,"结束放映"]])])],34)],2)}}});const bL=(0,Vl.Z)(kL,[["__scopeId","data-v-e9c1efea"]]);var _L=bL;const IL=e=>((0,i.dD)("data-v-77a65275"),e=e(),(0,i.Cn)(),e),SL={class:"presenter-view"},CL={class:"toolbar"},LL=IL((()=>(0,i._)("span",null,"普通视图",-1))),TL=IL((()=>(0,i._)("span",null,"画笔",-1))),EL=IL((()=>(0,i._)("span",null,"激光笔",-1))),ML=IL((()=>(0,i._)("span",null,"计时器",-1))),UL=IL((()=>(0,i._)("span",null,"结束放映",-1))),WL={class:"content"},DL=["onClick"],HL={class:"remark"},FL={class:"header"},AL=IL((()=>(0,i._)("span",null,"演讲者备注",-1))),$L=["innerHTML"],ZL={class:"remark-scale"};var OL=(0,i.aZ)({__name:"PresenterView",props:{changeViewMode:{type:Function}},setup(e){const t=e,{slides:l,slideIndex:a,viewportRatio:r,currentSlide:u}=(0,o.Jk)($()),c=(0,s.iH)(),d=(0,s.iH)(),p=(0,s.iH)(!1),v=(0,s.iH)(!1),m=(0,s.iH)(!1),{mousewheelListener:h,touchStartListener:f,touchEndListener:g,turnPrevSlide:y,turnNextSlide:w,turnSlideToIndex:x,turnSlideToId:k,animationIndex:b}=hC(),{slideWidth:_,slideHeight:I}=fC(c),{exitScreening:S}=Ca(),{slidesLoadLimit:C}=Cm(),{fullscreenState:L,manualExitFullscreen:T}=gC(),E=(0,s.iH)(16),M=(0,i.Fl)((()=>la(u.value.remark||"无备注"))),U=e=>{d.value&&d.value.scrollBy(e.deltaY,0)},W=e=>{e<12||e>40||(E.value=e)};(0,i.YP)(a,(()=>{(0,i.Y3)((()=>{if(!d.value)return;const e=d.value.querySelector(".thumbnail.active");if(!e)return;const t=d.value.offsetWidth,l=e.offsetLeft;d.value.scrollTo({left:l-t/2,behavior:"smooth"})}))}));const D=()=>[{text:"上一页",subText:"↑ ←",disable:a.value<=0,handler:()=>y()},{text:"下一页",subText:"↓ →",disable:a.value>=l.value.length-1,handler:()=>w()},{text:"第一页",disable:0===a.value,handler:()=>x(0)},{text:"最后一页",disable:a.value===l.value.length-1,handler:()=>x(l.value.length-1)},{divider:!0},{text:"画笔工具",handler:()=>p.value=!0},{text:"普通视图",handler:()=>t.changeViewMode("base")},{divider:!0},{text:"结束放映",subText:"ESC",handler:S}];return(e,t)=>{const o=(0,i.up)("IconListView"),u=(0,i.up)("IconWrite"),y=(0,i.up)("IconMagic"),w=(0,i.up)("IconStopwatchStart"),H=(0,i.up)("IconOffScreenOne"),F=(0,i.up)("IconPower"),A=(0,i.up)("IconMinus"),$=(0,i.up)("IconPlus"),Z=(0,i.Q2)("contextmenu");return(0,i.wg)(),(0,i.iD)("div",SL,[(0,i._)("div",CL,[(0,i._)("div",{class:"tool-btn",onClick:t[0]||(t[0]=t=>e.changeViewMode("base"))},[(0,i.Wm)(o,{class:"tool-icon"}),LL]),(0,i._)("div",{class:(0,oe.C_)(["tool-btn",{active:p.value}]),onClick:t[1]||(t[1]=e=>p.value=!p.value)},[(0,i.Wm)(u,{class:"tool-icon"}),TL],2),(0,i._)("div",{class:(0,oe.C_)(["tool-btn",{active:m.value}]),onClick:t[2]||(t[2]=e=>m.value=!m.value)},[(0,i.Wm)(y,{class:"tool-icon"}),EL],2),(0,i._)("div",{class:(0,oe.C_)(["tool-btn",{active:v.value}]),onClick:t[3]||(t[3]=e=>v.value=!v.value)},[(0,i.Wm)(w,{class:"tool-icon"}),ML],2),(0,i._)("div",{class:"tool-btn",onClick:t[4]||(t[4]=()=>(0,s.SU)(L)?(0,s.SU)(T)():(0,s.SU)(_a)())},[(0,s.SU)(L)?((0,i.wg)(),(0,i.j4)(H,{key:0,class:"tool-icon"})):((0,i.wg)(),(0,i.j4)(H,{key:1,class:"tool-icon"})),(0,i._)("span",null,(0,oe.zw)((0,s.SU)(L)?"退出全屏":"全屏"),1)]),(0,i.Wm)(Zc,{class:"divider"}),(0,i._)("div",{class:"tool-btn",onClick:t[5]||(t[5]=e=>(0,s.SU)(S)())},[(0,i.Wm)(F,{class:"tool-icon"}),UL])]),(0,i._)("div",WL,[(0,i._)("div",{class:(0,oe.C_)(["slide-list-wrap",{"laser-pen":m.value}]),ref_key:"slideListWrapRef",ref:c},[(0,i.wy)((0,i.Wm)(AC,{slideWidth:(0,s.SU)(_),slideHeight:(0,s.SU)(I),animationIndex:(0,s.SU)(b),turnSlideToId:(0,s.SU)(k),manualExitFullscreen:(0,s.SU)(T),onWheel:t[6]||(t[6]=e=>(0,s.SU)(h)(e)),onTouchstart:t[7]||(t[7]=e=>(0,s.SU)(f)(e)),onTouchend:t[8]||(t[8]=e=>(0,s.SU)(g)(e))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[Z,D]]),p.value?((0,i.wg)(),(0,i.j4)(sL,{key:0,slideWidth:(0,s.SU)(_),slideHeight:(0,s.SU)(I),left:-365,top:-155,onClose:t[9]||(t[9]=e=>p.value=!1)},null,8,["slideWidth","slideHeight"])):(0,i.kq)("",!0),v.value?((0,i.wg)(),(0,i.j4)(yL,{key:1,left:75,onClose:t[10]||(t[10]=e=>v.value=!1)})):(0,i.kq)("",!0)],2),(0,i._)("div",{class:"thumbnails",ref_key:"thumbnailsRef",ref:d,onWheel:t[11]||(t[11]=(0,n.iM)((e=>U(e)),["prevent"]))},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(l),((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["thumbnail",{active:t===(0,s.SU)(a)}]),key:e.id,onClick:e=>(0,s.SU)(x)(t)},[(0,i.Wm)(Jd,{slide:e,size:120/(0,s.SU)(r),visible:t<(0,s.SU)(C)},null,8,["slide","size","visible"])],10,DL)))),128))],544)]),(0,i._)("div",HL,[(0,i._)("div",FL,[AL,(0,i._)("span",null,"P "+(0,oe.zw)((0,s.SU)(a)+1)+" / "+(0,oe.zw)((0,s.SU)(l).length),1)]),(0,i._)("div",{class:"remark-content ProseMirror-static",style:(0,oe.j5)({fontSize:E.value+"px"}),innerHTML:M.value},null,12,$L),(0,i._)("div",ZL,[(0,i._)("div",{class:(0,oe.C_)(["scale-btn",{disable:12===E.value}]),onClick:t[12]||(t[12]=e=>W(E.value-2))},[(0,i.Wm)(A)],2),(0,i._)("div",{class:(0,oe.C_)(["scale-btn",{disable:40===E.value}]),onClick:t[13]||(t[13]=e=>W(E.value+2))},[(0,i.Wm)($)],2)])])])}}});const RL=(0,Vl.Z)(OL,[["__scopeId","data-v-77a65275"]]);var zL=RL;const PL={class:"pptist-screen"};var BL=(0,i.aZ)({__name:"index",setup(e){const t=(0,s.iH)("base"),l=e=>{t.value=e},{exitScreening:a}=Ca(),n=e=>{const t=e.key.toUpperCase();t===ne.ESC&&a()};return(0,i.bv)((()=>document.addEventListener("keydown",n))),(0,i.Ah)((()=>document.removeEventListener("keydown",n))),(e,a)=>((0,i.wg)(),(0,i.iD)("div",PL,["base"===t.value?((0,i.wg)(),(0,i.j4)(_L,{key:0,changeViewMode:l})):"presenter"===t.value?((0,i.wg)(),(0,i.j4)(zL,{key:1,changeViewMode:l})):(0,i.kq)("",!0)]))}});const NL=(0,Vl.Z)(BL,[["__scopeId","data-v-6bf3d190"]]);var jL=NL,YL=(0,i.aZ)({__name:"MobileEditableElement",props:{elementInfo:{},elementIndex:{},selectElement:{type:Function}},setup(e){const t=e,l=(0,i.Fl)((()=>{const e={[sa.IMAGE]:$o,[sa.TEXT]:ls,[sa.SHAPE]:ys,[sa.LINE]:Es,[sa.CHART]:As,[sa.TABLE]:lr,[sa.LATEX]:rr,[sa.VIDEO]:Zr,[sa.AUDIO]:ou};return e[t.elementInfo.type]||null}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"mobile-editable-element",style:(0,oe.j5)({zIndex:e.elementIndex})},[((0,i.wg)(),(0,i.j4)((0,i.LL)(l.value),{elementInfo:e.elementInfo,selectElement:e.selectElement,contextmenus:()=>null},null,8,["elementInfo","selectElement"]))],4))}});const VL=YL;var JL=VL,qL=(0,i.aZ)({__name:"MobileOperate",props:{elementInfo:{},isSelected:{type:Boolean},canvasScale:{},scaleElement:{type:Function},rotateElement:{type:Function}},setup(e){const t=e,l=(0,i.Fl)((()=>"rotate"in t.elementInfo?t.elementInfo.rotate:0)),a=(0,i.Fl)((()=>t.elementInfo.width*t.canvasScale)),o=(0,i.Fl)((()=>t.elementInfo.height*t.canvasScale)),{borderLines:r,resizeHandlers:u,textElementResizeHandlers:c}=Ou(a,o),d="text"===t.elementInfo.type||"table"===t.elementInfo.type?c:u,p=(0,i.Fl)((()=>["chart","video","audio"].includes(t.elementInfo.type)));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"mobile-operate",style:(0,oe.j5)({top:e.elementInfo.top*e.canvasScale+"px",left:e.elementInfo.left*e.canvasScale+"px",transform:`rotate(${l.value}deg)`,transformOrigin:`${e.elementInfo.width*e.canvasScale/2}px ${e.elementInfo.height*e.canvasScale/2}px`})},[e.isSelected?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(r),(e=>((0,i.wg)(),(0,i.j4)(ju,{class:"operate-border-line",key:e.type,type:e.type,style:(0,oe.j5)(e.style)},null,8,["type","style"])))),128)),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(d),(t=>((0,i.wg)(),(0,i.j4)(Pu,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:(0,oe.j5)(t.style),onTouchstart:(0,n.iM)((l=>e.scaleElement(l,e.elementInfo,t.direction)),["stop"])},null,8,["type","rotate","style","onTouchstart"])))),128)),p.value?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(Qu,{key:0,class:"operate-rotate-handler",style:(0,oe.j5)({left:a.value/2+"px"}),onTouchstart:t[0]||(t[0]=(0,n.iM)((t=>e.rotateElement(t,e.elementInfo)),["stop"]))},null,8,["style"]))],64)):(0,i.kq)("",!0)],4))}});const XL=(0,Vl.Z)(qL,[["__scopeId","data-v-fd451ff6"]]);var GL=XL;const KL={class:"mobile-thumbnails"},QL=["onClick"],eT={class:"label"};var tT=(0,i.aZ)({__name:"MobileThumbnails",setup(e){const t=$(),{slides:l,slideIndex:a}=(0,o.Jk)(t),{sortSlides:n}=ha(),{slidesLoadLimit:r}=Cm(),u=e=>{t.updateSlideIndex(e)},c=e=>{const{newIndex:t,oldIndex:l}=e;void 0!==t&&void 0!==l&&t!==l&&n(t,l)};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",KL,[(0,i.Wm)((0,s.SU)(Dm()),{class:"thumbnail-list",modelValue:(0,s.SU)(l),animation:200,scroll:!0,scrollSensitivity:50,delayOnTouchOnly:!0,delay:800,itemKey:"id",onEnd:c},{item:(0,i.w5)((({element:e,index:t})=>[(0,i._)("div",{class:(0,oe.C_)(["thumbnail-item",{active:(0,s.SU)(a)===t}]),onClick:e=>u(t)},[(0,i._)("div",eT,(0,oe.zw)(t+1),1),(0,i.Wm)(Jd,{class:"thumbnail",slide:e,size:120,visible:t<(0,s.SU)(r)},null,8,["slide","visible"])],10,QL)])),_:1},8,["modelValue"])]))}});const lT=(0,Vl.Z)(tT,[["__scopeId","data-v-2c80920e"]]);var aT=lT;const nT={class:"slide-toolbar"},oT={class:"remark"},iT=["value"],sT={class:"toolbar"};var rT=(0,i.aZ)({__name:"SlideToolbar",setup(e){const t=$(),{viewportRatio:l,currentSlide:a}=(0,o.Jk)(t),{createSlide:n,copyAndPasteSlide:r,deleteSlide:u}=ha(),{createTextElement:c,createImageElement:d,createShapeElement:p}=pa(),v=()=>{const e=400,t=56;c({left:(oa-e)/2,top:(oa*l.value-t)/2,width:e,height:t},{content:"

    新添加文本

    "})},m=e=>{e&&e[0]&&na(e[0]).then((e=>d(e)))},h=e=>{const t={viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},a={viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"},n={square:t,round:a},o=200;p({left:(oa-o)/2,top:(oa*l.value-o)/2,width:o,height:o},n[e])},f=(0,i.Fl)((()=>a.value?.remark||"")),g=e=>{const l=e.target.value;t.updateSlide({remark:l})};return(e,t)=>{const l=(0,i.up)("IconPlus"),a=(0,i.up)("IconCopy"),o=(0,i.up)("IconDelete"),c=(0,i.up)("IconFontSize"),d=(0,i.up)("IconPicture"),p=(0,i.up)("IconSquare"),y=(0,i.up)("IconRound");return(0,i.wg)(),(0,i.iD)("div",nT,[(0,i._)("div",oT,[(0,i._)("textarea",{value:f.value,placeholder:"点击输入演讲者备注",onInput:t[0]||(t[0]=e=>g(e))},null,40,iT)]),(0,i._)("div",sT,[(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[1]||(t[1]=e=>(0,s.SU)(n)())},{default:(0,i.w5)((()=>[(0,i.Wm)(l,{class:"icon"}),(0,i.Uk)(" 新幻灯片")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[2]||(t[2]=e=>(0,s.SU)(r)())},{default:(0,i.w5)((()=>[(0,i.Wm)(a,{class:"icon"}),(0,i.Uk)(" 复制")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[3]||(t[3]=e=>(0,s.SU)(u)())},{default:(0,i.w5)((()=>[(0,i.Wm)(o,{class:"icon"}),(0,i.Uk)(" 删除")])),_:1})])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[4]||(t[4]=e=>v())},{default:(0,i.w5)((()=>[(0,i.Wm)(c,{class:"icon"}),(0,i.Uk)(" 文字")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(Pa,{onChange:t[5]||(t[5]=e=>m(e))},{default:(0,i.w5)((()=>[(0,i.Wm)(d,{class:"icon"}),(0,i.Uk)("图片 ")])),_:1})])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[6]||(t[6]=e=>h("square"))},{default:(0,i.w5)((()=>[(0,i.Wm)(p,{class:"icon"}),(0,i.Uk)(" 矩形")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:t[7]||(t[7]=e=>h("round"))},{default:(0,i.w5)((()=>[(0,i.Wm)(y,{class:"icon"}),(0,i.Uk)(" 圆形")])),_:1})])),_:1})]),(0,i.Wm)(aT)])}}});const uT=(0,Vl.Z)(rT,[["__scopeId","data-v-24150aba"]]);var cT=uT;const dT=e=>((0,i.dD)("data-v-f3d1ac70"),e=e(),(0,i.Cn)(),e),pT={class:"element-toolbar"},vT={class:"content"},mT={key:0,class:"style"},hT={class:"row-block"},fT=dT((()=>(0,i._)("div",{class:"label"},"文字颜色:",-1))),gT={class:"colors"},yT=["onClick"],wT={class:"row-block"},xT=dT((()=>(0,i._)("div",{class:"label"},"填充色:",-1))),kT={class:"colors"},bT=["onClick"],_T={key:1,class:"common"};var IT=(0,i.aZ)({__name:"ElementToolbar",setup(e){const t=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c","#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57"],l=R(),a=$(),{handleElement:n,handleElementId:r,richTextAttrs:u}=(0,o.Jk)(l),{addHistorySnapshot:c}=da(),d=(e,t)=>{a.updateElement({id:e,props:t}),c()},p=[{key:"style",label:"样式"},{key:"common",label:"布局"}],v=(0,s.iH)("common"),{orderElement:m}=ba(),{alignElementToCanvas:h}=qn(),{addElementsFromData:f}=va(),{deleteElement:g}=ga(),y=()=>{const e=JSON.parse(JSON.stringify(n.value));f([e])},w=(e,t)=>{Oi.emit(Ai.RICH_TEXT_COMMAND,{action:{command:e,value:t}})},x=e=>{if(n.value){if(("text"===n.value.type||"shape"===n.value.type&&n.value.text?.content)&&Oi.emit(Ai.RICH_TEXT_COMMAND,{action:{command:"color",value:e}}),"table"===n.value.type){const t=JSON.parse(JSON.stringify(n.value.data));for(let l=0;l{if(n.value){if("text"!==n.value.type&&"shape"!==n.value.type&&"chart"!==n.value.type||d(r.value,{fill:e}),"table"===n.value.type){const t=JSON.parse(JSON.stringify(n.value.data));for(let l=0;l{const a=(0,i.up)("IconTextBold"),o=(0,i.up)("IconTextItalic"),r=(0,i.up)("IconTextUnderline"),c=(0,i.up)("IconStrikethrough"),d=(0,i.up)("IconFontSize"),f=(0,i.up)("IconAlignTextLeft"),b=(0,i.up)("IconAlignTextCenter"),_=(0,i.up)("IconAlignTextRight"),I=(0,i.up)("IconCopy"),S=(0,i.up)("IconDelete"),C=(0,i.up)("IconSendToBack"),L=(0,i.up)("IconBringToFrontOne"),T=(0,i.up)("IconBringToFront"),E=(0,i.up)("IconSentToBack"),M=(0,i.up)("IconAlignLeft"),U=(0,i.up)("IconAlignVertically"),W=(0,i.up)("IconAlignRight"),D=(0,i.up)("IconAlignTop"),H=(0,i.up)("IconAlignHorizontally"),F=(0,i.up)("IconAlignBottom");return(0,i.wg)(),(0,i.iD)("div",pT,[(0,i.Wm)(Kd,{tabs:p,value:v.value,"onUpdate:value":l[0]||(l[0]=e=>v.value=e),tabsStyle:{marginBottom:"8px"},tabStyle:{width:"30%",margin:"0 10%"}},null,8,["value"]),(0,i._)("div",vT,["style"===v.value?((0,i.wg)(),(0,i.iD)("div",mT,[(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).bold,onClick:l[1]||(l[1]=e=>w("bold"))},{default:(0,i.w5)((()=>[(0,i.Wm)(a)])),_:1},8,["checked"]),(0,i.Wm)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).em,onClick:l[2]||(l[2]=e=>w("em"))},{default:(0,i.w5)((()=>[(0,i.Wm)(o)])),_:1},8,["checked"]),(0,i.Wm)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).underline,onClick:l[3]||(l[3]=e=>w("underline"))},{default:(0,i.w5)((()=>[(0,i.Wm)(r)])),_:1},8,["checked"]),(0,i.Wm)(qf,{style:{flex:"1"},checked:(0,s.SU)(u).strikethrough,onClick:l[4]||(l[4]=e=>w("strikethrough"))},{default:(0,i.w5)((()=>[(0,i.Wm)(c)])),_:1},8,["checked"])])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[5]||(l[5]=e=>w("fontsize-add"))},{default:(0,i.w5)((()=>[(0,i.Wm)(d),(0,i.Uk)("+")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[6]||(l[6]=e=>w("fontsize-reduce"))},{default:(0,i.w5)((()=>[(0,i.Wm)(d),(0,i.Uk)("-")])),_:1})])),_:1}),(0,i.Wm)(Zc,{style:{margin:"20px 0"}}),(0,i.Wm)(ng,{class:"row","button-style":"solid",value:(0,s.SU)(u).align,"onUpdate:value":l[7]||(l[7]=e=>w("align",e))},{default:(0,i.w5)((()=>[(0,i.Wm)(tg,{value:"left",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(f)])),_:1}),(0,i.Wm)(tg,{value:"center",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(b)])),_:1}),(0,i.Wm)(tg,{value:"right",style:{flex:"1"}},{default:(0,i.w5)((()=>[(0,i.Wm)(_)])),_:1})])),_:1},8,["value"]),(0,i.Wm)(Zc,{style:{margin:"20px 0"}}),(0,i._)("div",hT,[fT,(0,i._)("div",gT,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(t,(e=>(0,i._)("div",{class:"color",key:e,onClick:t=>x(e)},[(0,i._)("div",{class:"color-block",style:(0,oe.j5)({backgroundColor:e})},null,4)],8,yT))),64))])]),(0,i._)("div",wT,[xT,(0,i._)("div",kT,[((0,i.wg)(),(0,i.iD)(i.HY,null,(0,i.Ko)(t,(e=>(0,i._)("div",{class:"color",key:e,onClick:t=>k(e)},[(0,i._)("div",{class:"color-block",style:(0,oe.j5)({backgroundColor:e})},null,4)],8,bT))),64))])])])):(0,i.kq)("",!0),"common"===v.value?((0,i.wg)(),(0,i.iD)("div",_T,[(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[8]||(l[8]=e=>y())},{default:(0,i.w5)((()=>[(0,i.Wm)(I,{class:"icon"}),(0,i.Uk)(" 复制")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[9]||(l[9]=e=>(0,s.SU)(g)())},{default:(0,i.w5)((()=>[(0,i.Wm)(S,{class:"icon"}),(0,i.Uk)(" 删除")])),_:1})])),_:1}),(0,i.Wm)(Zc,{style:{margin:"20px 0"}}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[10]||(l[10]=e=>(0,s.SU)(m)((0,s.SU)(n),(0,s.SU)(Q).TOP))},{default:(0,i.w5)((()=>[(0,i.Wm)(C,{class:"icon"}),(0,i.Uk)(" 置顶")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[11]||(l[11]=e=>(0,s.SU)(m)((0,s.SU)(n),(0,s.SU)(Q).BOTTOM))},{default:(0,i.w5)((()=>[(0,i.Wm)(L,{class:"icon"}),(0,i.Uk)(" 置底")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[12]||(l[12]=e=>(0,s.SU)(m)((0,s.SU)(n),(0,s.SU)(Q).UP))},{default:(0,i.w5)((()=>[(0,i.Wm)(T,{class:"icon"}),(0,i.Uk)(" 上移")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[13]||(l[13]=e=>(0,s.SU)(m)((0,s.SU)(n),(0,s.SU)(Q).DOWN))},{default:(0,i.w5)((()=>[(0,i.Wm)(E,{class:"icon"}),(0,i.Uk)(" 下移")])),_:1})])),_:1}),(0,i.Wm)(Zc,{style:{margin:"20px 0"}}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[14]||(l[14]=e=>(0,s.SU)(h)((0,s.SU)(ee).LEFT))},{default:(0,i.w5)((()=>[(0,i.Wm)(M,{class:"icon"}),(0,i.Uk)(" 左对齐")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[15]||(l[15]=e=>(0,s.SU)(h)((0,s.SU)(ee).HORIZONTAL))},{default:(0,i.w5)((()=>[(0,i.Wm)(U,{class:"icon"}),(0,i.Uk)(" 水平居中")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[16]||(l[16]=e=>(0,s.SU)(h)((0,s.SU)(ee).RIGHT))},{default:(0,i.w5)((()=>[(0,i.Wm)(W,{class:"icon"}),(0,i.Uk)(" 右对齐")])),_:1})])),_:1}),(0,i.Wm)(Kf,{class:"row"},{default:(0,i.w5)((()=>[(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[17]||(l[17]=e=>(0,s.SU)(h)((0,s.SU)(ee).TOP))},{default:(0,i.w5)((()=>[(0,i.Wm)(D,{class:"icon"}),(0,i.Uk)(" 上对齐")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[18]||(l[18]=e=>(0,s.SU)(h)((0,s.SU)(ee).VERTICAL))},{default:(0,i.w5)((()=>[(0,i.Wm)(H,{class:"icon"}),(0,i.Uk)(" 垂直居中")])),_:1}),(0,i.Wm)(tp,{style:{flex:"1"},onClick:l[19]||(l[19]=e=>(0,s.SU)(h)((0,s.SU)(ee).BOTTOM))},{default:(0,i.w5)((()=>[(0,i.Wm)(F,{class:"icon"}),(0,i.Uk)(" 下对齐")])),_:1})])),_:1})])):(0,i.kq)("",!0)])])}}});const ST=(0,Vl.Z)(IT,[["__scopeId","data-v-f3d1ac70"]]);var CT=ST;const LT={class:"mobile-editor-header"},TT={class:"history"};var ET=(0,i.aZ)({__name:"Header",props:{changeMode:{type:Function}},setup(e){const{canUndo:t,canRedo:l}=(0,o.Jk)(J()),{redo:a,undo:r}=da();return(e,o)=>{const u=(0,i.up)("IconBack"),c=(0,i.up)("IconNext"),d=(0,i.up)("IconLogout");return(0,i.wg)(),(0,i.iD)("div",LT,[(0,i._)("div",TT,[(0,i._)("div",{class:(0,oe.C_)(["history-item",{disable:!(0,s.SU)(t)}]),onClick:o[0]||(o[0]=(0,n.iM)((e=>(0,s.SU)(r)()),["stop"]))},[(0,i.Wm)(u),(0,i.Uk)(" 撤销")],2),(0,i._)("div",{class:(0,oe.C_)(["history-item",{disable:!(0,s.SU)(l)}]),onClick:o[1]||(o[1]=(0,n.iM)((e=>(0,s.SU)(a)()),["stop"]))},[(0,i.Wm)(c),(0,i.Uk)(" 重做")],2)]),(0,i._)("div",{class:"back",onClick:o[2]||(o[2]=t=>e.changeMode("preview"))},[(0,i.Wm)(d),(0,i.Uk)(" 退出编辑")])])}}});const MT=(0,Vl.Z)(ET,[["__scopeId","data-v-5c34ab81"]]);var UT=MT;const WT={class:"mobile-editor"};var DT=(0,i.aZ)({__name:"index",props:{changeMode:{type:Function}},setup(e){const t=$(),l=R(),{slideIndex:a,currentSlide:n,viewportRatio:r}=(0,o.Jk)(t),{activeElementIdList:u,handleElement:c}=(0,o.Jk)(l),d=(0,s.iH)(),p=(0,s.iH)(),v=(0,s.iH)([]),m=(0,i.Fl)((()=>n.value.background)),{backgroundStyle:h}=yu(m),f=(0,i.Fl)((()=>{if(!d.value)return 1;const e=d.value.clientWidth,t=d.value.clientHeight,l=t/e;return l>=r.value?(e-20)/oa:(t-20)/r.value/oa}));(0,i.bv)((()=>{u.value.length&&l.setActiveElementIdList([]),0!==a.value&&t.updateSlideIndex(0)}));const g=(0,i.Fl)((()=>({width:oa*f.value+"px",height:oa*r.value*f.value+"px"}))),y=(0,s.iH)([]),w=()=>{y.value=n.value?JSON.parse(JSON.stringify(n.value.elements)):[]};(0,i.m0)(w);const{dragElement:x}=jn(y,v,f),{scaleElement:k}=Bn(y,v,f),{rotateElement:b}=An(y,p,f),_=(e,t,a=!0)=>{u.value.includes(t.id)||(l.setActiveElementIdList([t.id]),l.setHandleElementId(t.id)),a&&x(e,t)},I=()=>{l.setActiveElementIdList([])};return(e,t)=>((0,i.wg)(),(0,i.iD)("div",WT,[(0,i.Wm)(UT,{changeMode:e.changeMode},null,8,["changeMode"]),(0,i._)("div",{class:"content",ref_key:"contentRef",ref:d,onTouchstart:t[0]||(t[0]=e=>I())},[(0,i._)("div",{class:"viewport-wrapper",style:(0,oe.j5)(g.value)},[(0,i._)("div",{class:"background",style:(0,oe.j5)((0,s.SU)(h))},null,4),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(v.value,((e,t)=>((0,i.wg)(),(0,i.j4)(Iu,{key:t,type:e.type,axis:e.axis,length:e.length,canvasScale:f.value},null,8,["type","axis","length","canvasScale"])))),128)),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(y.value,(e=>((0,i.wg)(),(0,i.iD)(i.HY,{key:e.id},["line"!==e.type?((0,i.wg)(),(0,i.j4)(GL,{key:0,elementInfo:e,isSelected:(0,s.SU)(u).includes(e.id),canvasScale:f.value,scaleElement:(0,s.SU)(k),rotateElement:(0,s.SU)(b)},null,8,["elementInfo","isSelected","canvasScale","scaleElement","rotateElement"])):(0,i.kq)("",!0)],64)))),128)),(0,i._)("div",{class:"viewport",ref_key:"viewportRef",ref:p,style:(0,oe.j5)({transform:`scale(${f.value})`})},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(y.value,((e,t)=>((0,i.wg)(),(0,i.j4)(JL,{key:e.id,elementInfo:e,elementIndex:t+1,selectElement:_},null,8,["elementInfo","elementIndex"])))),128))],4)],4)],544),(0,i.Wm)(cT),(0,s.SU)(c)?((0,i.wg)(),(0,i.j4)(CT,{key:0})):(0,i.kq)("",!0)]))}});const HT=(0,Vl.Z)(DT,[["__scopeId","data-v-3756d058"]]);var FT=HT;const AT={class:"header"};var $T=(0,i.aZ)({__name:"MobilePlayer",props:{changeMode:{type:Function}},setup(e){const t=$(),{slides:l,slideIndex:a,currentSlide:n,viewportRatio:r}=(0,o.Jk)(t),u=(0,s.iH)(!1),c=(0,s.iH)({width:0,height:0});(0,i.bv)((()=>{0!==a.value&&t.updateSlideIndex(0),c.value={width:document.body.clientHeight,height:document.body.clientWidth}}));const d=(0,i.Fl)((()=>{const e=c.value.height/c.value.width;let t=0,l=0;return e>=r.value?(t=c.value.width,l=t*r.value):(l=c.value.height,t=l/r.value),{width:t,height:l}})),p=(0,s.iH)(null),v=e=>{p.value={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}},m=e=>{if(!p.value)return;const n=Math.abs(p.value.y-e.changedTouches[0].pageY),o=e.changedTouches[0].pageX-p.value.x;Math.abs(o)>n&&Math.abs(o)>50&&(p.value=null,o<0&&a.value>0&&t.updateSlideIndex(a.value-1),o>0&&a.value{const o=(0,i.up)("IconLogout");return(0,i.wg)(),(0,i.iD)("div",{class:"mobile-player",style:(0,oe.j5)({width:c.value.width+"px",height:c.value.height+"px",transform:`rotate(90deg) translateY(-${c.value.height}px)`})},[(0,i._)("div",{class:"screen-slide-list",onClick:t[0]||(t[0]=e=>u.value=!u.value),onTouchstart:t[1]||(t[1]=e=>v(e)),onTouchend:t[2]||(t[2]=e=>m(e))},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(l),((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,oe.C_)(["slide-item",`turning-mode-${e.turningMode||"slideY"}`,{current:t===(0,s.SU)(a),before:t<(0,s.SU)(a),after:t>(0,s.SU)(a),hide:(t===(0,s.SU)(a)-1||t===(0,s.SU)(a)+1)&&e.turningMode!==(0,s.SU)(n).turningMode}]),key:e.id},[Math.abs((0,s.SU)(a)-t)<2?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"slide-content",style:(0,oe.j5)({width:d.value.width+"px",height:d.value.height+"px"})},[(0,i.Wm)(Jd,{slide:e,size:d.value.width},null,8,["slide","size"])],4)):(0,i.kq)("",!0)],2)))),128))],32),u.value?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i._)("div",AT,[(0,i._)("div",{class:"back",onClick:t[3]||(t[3]=t=>e.changeMode("preview"))},[(0,i.Wm)(o),(0,i.Uk)(" 退出播放")])]),(0,i.Wm)(aT,{class:"thumbnails"})],64)):(0,i.kq)("",!0)],4)}}});const ZT=(0,Vl.Z)($T,[["__scopeId","data-v-62f26eba"]]);var OT=ZT;const RT={class:"thumbnail-list"},zT={class:"menu"};var PT=(0,i.aZ)({__name:"MobilePreview",props:{changeMode:{type:Function}},setup(e){const{slides:t}=(0,o.Jk)($()),{slidesLoadLimit:l}=Cm(),a=(0,s.iH)(),n=(0,s.iH)(0);return(0,i.bv)((()=>{a.value&&(n.value=a.value.clientWidth)})),(e,o)=>{const r=(0,i.up)("IconEdit"),u=(0,i.up)("IconFullScreenPlay");return(0,i.wg)(),(0,i.iD)("div",{class:"mobile-preview",ref_key:"mobileRef",ref:a},[(0,i._)("div",RT,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)((0,s.SU)(t),((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:"thumbnail-item",key:e.id},[(0,i.Wm)(Jd,{slide:e,size:n.value-20,visible:t<(0,s.SU)(l)},null,8,["slide","size","visible"])])))),128))]),(0,i._)("div",zT,[(0,i._)("div",{class:"menu-item",onClick:o[0]||(o[0]=t=>e.changeMode("editor"))},[(0,i.Wm)(r,{class:"icon"}),(0,i.Uk)(" 编辑")]),(0,i.Wm)(Zc,{type:"vertical",style:{height:"30px"}}),(0,i._)("div",{class:"menu-item",onClick:o[1]||(o[1]=t=>e.changeMode("player"))},[(0,i.Wm)(u,{class:"icon"}),(0,i.Uk)(" 播放")])])],512)}}});const BT=(0,Vl.Z)(PT,[["__scopeId","data-v-53dd42dc"]]);var NT=BT;const jT={class:"mobile"};var YT=(0,i.aZ)({__name:"index",setup(e){const t=(0,s.iH)("preview"),l=e=>t.value=e,a=(0,i.Fl)((()=>{const e={editor:FT,player:OT,preview:NT};return e[t.value]||null}));return(e,t)=>((0,i.wg)(),(0,i.iD)("div",jT,[((0,i.wg)(),(0,i.j4)((0,i.LL)(a.value),{changeMode:l}))]))}});const VT=(0,Vl.Z)(YT,[["__scopeId","data-v-9826ff08"]]);var JT=VT,qT=(0,i.aZ)({__name:"App",setup(e){const t=K(),l=R(),a=J(),{databaseId:n}=(0,o.Jk)(l),{screening:r}=(0,o.Jk)(X());return window.onbeforeunload=()=>!1,(0,i.bv)((async()=>{await j(),a.initSnapshotDatabase(),l.setAvailableFonts()})),window.addEventListener("unload",(()=>{const e=localStorage.getItem(B),t=e?JSON.parse(e):[];t.push(n.value);const l=JSON.stringify(t);localStorage.setItem(B,l)})),(e,l)=>(0,s.SU)(r)?((0,i.wg)(),(0,i.j4)(jL,{key:0})):(0,s.SU)(t)?((0,i.wg)(),(0,i.j4)(mC,{key:1})):((0,i.wg)(),(0,i.j4)(JT,{key:2}))}});const XT=qT;var GT=XT,KT=l(5205);(0,KT.z)("service-worker.js",{ready(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered(){console.log("Service worker has been registered.")},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(){console.log("New content is available; please refresh.")},offline(){console.log("No internet connection found. App is running in offline mode.")},error(e){console.error("Error during service worker registration:",e)}});l(9744),l(9091);const QT={class:"menu-content"},eE=["onClick"],tE={class:"text"},lE={key:0,class:"sub-text"};var aE=(0,i.aZ)({__name:"MenuContent",props:{menus:{},handleClickMenuItem:{type:Function}},setup(e){return(e,t)=>{const l=(0,i.up)("menu-content",!0);return(0,i.wg)(),(0,i.iD)("ul",QT,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.menus,((t,a)=>((0,i.wg)(),(0,i.iD)(i.HY,{key:t.text||a},[t.hide?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("li",{key:0,class:(0,oe.C_)(["menu-item",{divider:t.divider,disable:t.disable}]),onClick:(0,n.iM)((l=>e.handleClickMenuItem(t)),["stop"])},[t.divider?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,oe.C_)(["menu-item-content",{"has-children":t.children,"has-handler":t.handler}])},[(0,i._)("span",tE,(0,oe.zw)(t.text),1),t.subText&&!t.children?((0,i.wg)(),(0,i.iD)("span",lE,(0,oe.zw)(t.subText),1)):(0,i.kq)("",!0),t.children&&t.children.length?((0,i.wg)(),(0,i.j4)(l,{key:1,class:"sub-menu",menus:t.children,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])):(0,i.kq)("",!0)],2))],10,eE))],64)))),128))])}}});const nE=(0,Vl.Z)(aE,[["__scopeId","data-v-77e74b43"]]);var oE=nE,iE=(0,i.aZ)({__name:"index",props:{axis:{},el:{},menus:{},removeContextmenu:{type:Function}},setup(e){const t=e,l=(0,i.Fl)((()=>{const e=170,l=30,a=11,n=5,{x:o,y:i}=t.axis,s=t.menus.filter((e=>!(e.divider||e.hide))).length,r=t.menus.filter((e=>e.divider)).length,u=e,c=s*l+r*a+2*n,d=document.body.clientWidth,p=document.body.clientHeight;return{left:d<=o+u?o-u:o,top:p<=i+c?i-c:i}})),a=e=>{e.disable||e.children&&!e.handler||(e.handler&&e.handler(t.el),t.removeContextmenu())};return(e,t)=>((0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",{class:"mask",onContextmenu:t[0]||(t[0]=(0,n.iM)((t=>e.removeContextmenu()),["prevent"])),onMousedown:t[1]||(t[1]=t=>e.removeContextmenu())},null,32),(0,i._)("div",{class:"contextmenu",style:(0,oe.j5)({left:l.value.left+"px",top:l.value.top+"px"}),onContextmenu:t[2]||(t[2]=(0,n.iM)((()=>{}),["prevent"]))},[(0,i.Wm)(oE,{menus:e.menus,handleClickMenuItem:a},null,8,["menus"])],36)],64))}});const sE=iE;var rE=sE;const uE="CTX_CONTEXTMENU_HANDLER",cE=(e,t,l)=>{t.stopPropagation(),t.preventDefault();const a=l.value(e);if(!a)return;let o=null;const s=()=>{o&&(document.body.removeChild(o),o=null),e.classList.remove("contextmenu-active"),document.body.removeEventListener("scroll",s),window.removeEventListener("resize",s)},r={axis:{x:t.x,y:t.y},el:e,menus:a,removeContextmenu:s};o=document.createElement("div");const u=(0,i.Wm)(rE,r,null);(0,n.sY)(u,o),document.body.appendChild(o),e.classList.add("contextmenu-active"),document.body.addEventListener("scroll",s),window.addEventListener("resize",s)},dE={mounted(e,t){e[uE]=l=>cE(e,l,t),e.addEventListener("contextmenu",e[uE])},unmounted(e){e&&e[uE]&&(e.removeEventListener("contextmenu",e[uE]),delete e[uE])}};var pE=dE;const vE="CTX_CLICK_OUTSIDE_HANDLER",mE=(e,t,l)=>{const a=l.value,n=t.composedPath(),o=n?n.indexOf(e)<0:!e.contains(t.target);o&&a(t)},hE={mounted(e,t){e[vE]=l=>mE(e,l,t),setTimeout((()=>{document.addEventListener("click",e[vE])}),0)},unmounted(e){e[vE]&&(document.removeEventListener("click",e[vE]),delete e[vE])}};var fE=hE;const gE="TOOLTIP_INSTANCE",yE={mounted(e,t){let l="",a="top",n=[300,0];"string"===typeof t.value?l=t.value:(l=t.value.content,void 0!==t.value.placement&&(a=t.value.placement),void 0!==t.value.delay&&(n=t.value.delay)),e[gE]=(0,rn.ZP)(e,{content:l,theme:"tooltip",duration:100,animation:"scale",allowHTML:!0,placement:a,delay:n})},updated(e,t){let l="";l="string"===typeof t.value?t.value:t.value.content,e[gE]&&e[gE].setContent(l)},unmounted(e){e[gE]&&e[gE].destroy()}};var wE=yE,xE={install(e){e.directive("contextmenu",pE),e.directive("click-outside",fE),e.directive("tooltip",wE)}};const kE=(0,n.ri)(GT);kE.use(Ol),kE.use(xE),kE.use((0,o.WB)()),kE.mount("#app")},2480:function(){},3180:function(){},7687:function(){}},t={};function l(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(o.exports,o,o.exports,l),o.loaded=!0,o.exports}l.m=e,function(){var e=[];l.O=function(t,a,n,o){if(!a){var i=1/0;for(c=0;c=o)&&Object.keys(l.O).every((function(e){return l.O[e](a[r])}))?a.splice(r--,1):(s=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[a,n,o]}}(),function(){l.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(t,{a:t}),t}}(),function(){l.d=function(e,t){for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){l.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){l.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){var e={143:0};l.O.j=function(t){return 0===e[t]};var t=function(t,a){var n,o,i=a[0],s=a[1],r=a[2],u=0;if(i.some((function(t){return 0!==e[t]}))){for(n in s)l.o(s,n)&&(l.m[n]=s[n]);if(r)var c=r(l)}for(t&&t(a);u {\n return (\n node.type === schema.nodes.bullet_list ||\n node.type === schema.nodes.ordered_list\n )\n}\n\nexport const autoSelectAll = (view: EditorView) => {\n const { empty } = view.state.selection\n if (empty) selectAll(view.state, view.dispatch)\n}\n\nexport const addMark = (editorView: EditorView, mark: Mark, selection?: { from: number; to: number; }) => {\n if (selection) {\n editorView.dispatch(editorView.state.tr.addMark(selection.from, selection.to, mark))\n }\n else {\n const { $from, $to } = editorView.state.selection\n editorView.dispatch(editorView.state.tr.addMark($from.pos, $to.pos, mark))\n }\n}\n\nexport const findNodesWithSameMark = (doc: Node, from: number, to: number, markType: MarkType) => {\n let ii = from\n const finder = (mark: Mark) => mark.type === markType\n let firstMark = null\n let fromNode = null\n let toNode = null\n\n while (ii <= to) {\n const node = doc.nodeAt(ii)\n if (!node || !node.marks) return null\n\n const mark = node.marks.find(finder)\n if (!mark) return null\n\n if (firstMark && mark !== firstMark) return null\n\n fromNode = fromNode || node\n firstMark = firstMark || mark\n toNode = node\n ii++\n }\n\n let fromPos = from\n let toPos = to\n\n let jj = 0\n ii = from - 1\n while (ii > jj) {\n const node = doc.nodeAt(ii)\n const mark = node && node.marks.find(finder)\n if (!mark || mark !== firstMark) break\n fromPos = ii\n fromNode = node\n ii--\n }\n\n ii = to + 1\n jj = doc.nodeSize - 2\n while (ii < jj) {\n const node = doc.nodeAt(ii)\n const mark = node && node.marks.find(finder)\n if (!mark || mark !== firstMark) break\n toPos = ii\n toNode = node\n ii++\n }\n\n return {\n mark: firstMark,\n from: {\n node: fromNode,\n pos: fromPos,\n },\n to: {\n node: toNode,\n pos: toPos,\n },\n }\n}\n\nconst equalNodeType = (nodeType: NodeType, node: Node) => {\n return Array.isArray(nodeType) && nodeType.indexOf(node.type) > -1 || node.type === nodeType\n}\n\nconst findParentNodeClosestToPos = ($pos: ResolvedPos, predicate: (node: Node) => boolean) => {\n for (let i = $pos.depth; i > 0; i--) {\n const node = $pos.node(i)\n if (predicate(node)) {\n return {\n pos: i > 0 ? $pos.before(i) : 0,\n start: $pos.start(i),\n depth: i,\n node,\n }\n }\n }\n}\n\nexport const findParentNode = (predicate: (node: Node) => boolean) => {\n return (_ref: Selection) => findParentNodeClosestToPos(_ref.$from, predicate)\n}\n\nexport const findParentNodeOfType = (nodeType: NodeType) => {\n return (selection: Selection) => {\n return findParentNode((node: Node) => {\n return equalNodeType(nodeType, node)\n })(selection)\n }\n}\n\nexport const isActiveOfParentNodeType = (nodeType: string, state: EditorState) => {\n const node = state.schema.nodes[nodeType]\n return !!findParentNodeOfType(node)(state.selection)\n}\n\nexport const getLastTextNode = (node: Node | null): Node | null => {\n if (!node) return null\n if (node.type.name === 'text') return node\n if (!node.lastChild) return null\n\n return getLastTextNode(node.lastChild)\n}\n\nexport const getMarkAttrs = (view: EditorView) => {\n const { selection, doc } = view.state\n const { from } = selection\n\n let node = doc.nodeAt(from) || doc.nodeAt(from - 1)\n node = getLastTextNode(node)\n\n return node?.marks || []\n}\n\nexport const getAttrValue = (marks: readonly Mark[], markType: string, attr: string): string | null => {\n for (const mark of marks) {\n if (mark.type.name === markType && mark.attrs[attr]) return mark.attrs[attr]\n }\n return null\n}\n\nexport const isActiveMark = (marks: readonly Mark[], markType: string) => {\n for (const mark of marks) {\n if (mark.type.name === markType) return true\n }\n return false\n}\n\nexport const markActive = (state: EditorState, type: MarkType) => {\n const { from, $from, to, empty } = state.selection\n if (empty) return type.isInSet(state.storedMarks || $from.marks())\n return state.doc.rangeHasMark(from, to, type)\n}\n\nexport const getAttrValueInSelection = (view: EditorView, attr: string) => {\n const { selection, doc } = view.state\n const { from, to } = selection\n\n let keepChecking = true\n let value = ''\n doc.nodesBetween(from, to, node => {\n if (keepChecking && node.attrs[attr]) {\n keepChecking = false\n value = node.attrs[attr]\n }\n return keepChecking\n })\n return value\n}\n\ntype Align = 'left' | 'right' | 'center'\n\ninterface DefaultAttrs {\n color: string\n backcolor: string\n fontsize: string\n fontname: string\n align: Align\n}\nconst _defaultAttrs: DefaultAttrs = {\n color: '#000',\n backcolor: '',\n fontsize: '20px',\n fontname: '微软雅黑',\n align: 'left',\n}\nexport const getTextAttrs = (view: EditorView, attrs: Partial = {}) => {\n const defaultAttrs: DefaultAttrs = { ..._defaultAttrs, ...attrs }\n\n const marks = getMarkAttrs(view)\n\n const isBold = isActiveMark(marks, 'strong')\n const isEm = isActiveMark(marks, 'em')\n const isUnderline = isActiveMark(marks, 'underline')\n const isStrikethrough = isActiveMark(marks, 'strikethrough')\n const isSuperscript = isActiveMark(marks, 'superscript')\n const isSubscript = isActiveMark(marks, 'subscript')\n const isCode = isActiveMark(marks, 'code')\n const color = getAttrValue(marks, 'forecolor', 'color') || defaultAttrs.color\n const backcolor = getAttrValue(marks, 'backcolor', 'backcolor') || defaultAttrs.backcolor\n const fontsize = getAttrValue(marks, 'fontsize', 'fontsize') || defaultAttrs.fontsize\n const fontname = getAttrValue(marks, 'fontname', 'fontname') || defaultAttrs.fontname\n const link = getAttrValue(marks, 'link', 'href') || ''\n const align = (getAttrValueInSelection(view, 'align') || defaultAttrs.align) as Align\n const isBulletList = isActiveOfParentNodeType('bullet_list', view.state)\n const isOrderedList = isActiveOfParentNodeType('ordered_list', view.state)\n const isBlockquote = isActiveOfParentNodeType('blockquote', view.state)\n\n return {\n bold: isBold,\n em: isEm,\n underline: isUnderline,\n strikethrough: isStrikethrough,\n superscript: isSuperscript,\n subscript: isSubscript,\n code: isCode,\n color: color,\n backcolor: backcolor,\n fontsize: fontsize,\n fontname: fontname,\n link: link,\n align: align,\n bulletList: isBulletList,\n orderedList: isOrderedList,\n blockquote: isBlockquote,\n }\n}\n\nexport type TextAttrs = ReturnType\n\nexport const getFontsize = (view: EditorView) => {\n const marks = getMarkAttrs(view)\n const fontsize = getAttrValue(marks, 'fontsize', 'fontsize') || _defaultAttrs.fontsize\n return parseInt(fontsize)\n}\n\nexport const defaultRichTextAttrs: TextAttrs = {\n bold: false,\n em: false,\n underline: false,\n strikethrough: false,\n superscript: false,\n subscript: false,\n code: false,\n color: '#000',\n backcolor: '',\n fontsize: '20px',\n fontname: '微软雅黑',\n link: '',\n align: 'left',\n bulletList: false,\n orderedList: false,\n blockquote: false,\n}","export const SYS_FONTS = [\n { label: 'Arial', value: 'Arial' },\n { label: '微软雅黑', value: 'Microsoft Yahei' },\n { label: '宋体', value: 'SimSun' },\n { label: '黑体', value: 'SimHei' },\n { label: '楷体', value: 'KaiTi' },\n { label: '新宋体', value: 'NSimSun' },\n { label: '仿宋', value: 'FangSong' },\n { label: '苹方', value: 'PingFang SC' },\n { label: '华文黑体', value: 'STHeiti' },\n { label: '华文楷体', value: 'STKaiti' },\n { label: '华文宋体', value: 'STSong' },\n { label: '华文仿宋', value: 'STFangSong' },\n { label: '华文中宋', value: 'STZhongSong' },\n { label: '华文琥珀', value: 'STHupo' },\n { label: '华文新魏', value: 'STXinwei' },\n { label: '华文隶书', value: 'STLiti' },\n { label: '华文行楷', value: 'STXingkai' },\n { label: '冬青黑体', value: 'Hiragino Sans GB' },\n { label: '兰亭黑', value: 'Lantinghei SC' },\n { label: '偏偏体', value: 'Hanzipen SC' },\n { label: '手札体', value: 'Hannotate SC' },\n { label: '宋体', value: 'Songti SC' },\n { label: '娃娃体', value: 'Wawati SC' },\n { label: '行楷', value: 'Xingkai SC' },\n { label: '圆体', value: 'Yuanti SC' },\n { label: '华文细黑', value: 'STXihei' },\n { label: '幼圆', value: 'YouYuan' },\n { label: '隶书', value: 'LiSu' },\n]\n\nexport const WEB_FONTS = [\n { label: '得意黑', value: '得意黑' },\n { label: '仓耳小丸子', value: '仓耳小丸子' },\n { label: '优设标题黑', value: '优设标题黑' },\n { label: '峰广明锐体', value: '峰广明锐体' },\n { label: '摄图摩登小方体', value: '摄图摩登小方体' },\n { label: '站酷快乐体', value: '站酷快乐体' },\n { label: '字制区喜脉体', value: '字制区喜脉体' },\n { label: '素材集市康康体', value: '素材集市康康体' },\n { label: '素材集市酷方体', value: '素材集市酷方体' },\n { label: '途牛类圆体', value: '途牛类圆体' },\n { label: '锐字真言体', value: '锐字真言体' },\n]","/**\n * 判断操作系统是否存在某字体\n * @param fontName 字体名\n */\nexport const isSupportFont = (fontName: string) => {\n if (typeof fontName !== 'string') return false\n\n const arial = 'Arial'\n if (fontName.toLowerCase() === arial.toLowerCase()) return true\n\n const size = 100\n const width = 100\n const height = 100\n const str = 'a'\n\n const canvas = document.createElement('canvas')\n const ctx = canvas.getContext('2d', { willReadFrequently: true })\n\n if (!ctx) return false\n\n canvas.width = width\n canvas.height = height\n ctx.textAlign = 'center'\n ctx.fillStyle = 'black'\n ctx.textBaseline = 'middle'\n\n const getDotArray = (_fontFamily: string) => {\n ctx.clearRect(0, 0, width, height)\n ctx.font = `${size}px ${_fontFamily}, ${arial}`\n ctx.fillText(str, width / 2, height / 2)\n const imageData = ctx.getImageData(0, 0, width, height).data\n return [].slice.call(imageData).filter(item => item !== 0)\n }\n\n return getDotArray(arial).join('') !== getDotArray(fontName).join('')\n}","import type { Slide } from '@/types/slides'\n\nexport const slides: Slide[] = [\n {\n id: 'test-slide-1',\n elements: [\n {\n type: 'shape',\n id: '4cbRxp',\n left: 0,\n top: 200,\n width: 546,\n height: 362.5,\n viewBox: [200, 200],\n path: 'M 0 0 L 0 200 L 200 200 Z',\n fill: '#5b9bd5',\n fixedRatio: false,\n opacity: 0.7,\n rotate: 0\n },\n {\n type: 'shape',\n id: 'ookHrf',\n left: 0,\n top: 0,\n width: 300,\n height: 320,\n viewBox: [200, 200],\n path: 'M 0 0 L 0 200 L 200 200 Z',\n fill: '#5b9bd5',\n fixedRatio: false,\n flipV: true,\n rotate: 0\n },\n {\n type: 'text',\n id: 'idn7Mx',\n left: 355,\n top: 65.25,\n width: 585,\n height: 188,\n lineHeight: 1.2,\n content: '

    PPTIST

    ',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333'\n },\n {\n type: 'text',\n id: '7stmVP',\n left: 355,\n top: 253.25,\n width: 585,\n height: 56,\n content: '

    基于 Vue 3.x + TypeScript 的在线演示文稿应用

    ',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333'\n },\n {\n type: 'line',\n id: 'FnpZs4',\n left: 361,\n top: 238,\n start: [0, 0],\n end: [549, 0],\n points: ['', ''],\n color: '#5b9bd5',\n style: 'solid',\n width: 2,\n },\n ],\n background: {\n type: 'solid',\n color: '#ffffff',\n },\n },\n {\n id: 'test-slide-2',\n elements: [\n {\n type: 'text',\n id: 'ptNnUJ',\n left: 145,\n top: 148,\n width: 711,\n height: 77,\n lineHeight: 1.2,\n content: '

    在此处添加标题

    ',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n }, \n {\n type: 'text',\n id: 'mRHvQN',\n left: 207.50000000000003,\n top: 249.84259259259264,\n width: 585,\n height: 56,\n content: '

    在此处添加副标题

    ',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n }, \n {\n type: 'line',\n id: '7CQDwc',\n left: 323.09259259259267,\n top: 238.33333333333334,\n start: [0, 0],\n end: [354.8148148148148, 0],\n points: ['', ''],\n color: '#5b9bd5',\n style: 'solid',\n width: 4\n }, \n {\n type: 'shape',\n id: '09wqWw',\n left: -27.648148148148138,\n top: 432.73148148148147,\n width: 1056.2962962962963,\n height: 162.96296296296296,\n viewBox: [200, 200],\n path: 'M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z',\n fill: '#5b9bd5',\n fixedRatio: false,\n rotate: 0\n }\n ],\n background: {\n type: 'solid',\n color: '#fff',\n },\n },\n {\n id: 'test-slide-3',\n elements: [\n {\n type: 'shape',\n id: 'vSheCJ',\n left: 183.5185185185185,\n top: 175.5092592592593,\n width: 605.1851851851851,\n height: 185.18518518518516,\n viewBox: [200, 200],\n path: 'M 0 0 L 200 0 L 200 200 L 0 200 Z',\n fill: '#5b9bd5',\n fixedRatio: false,\n rotate: 0\n }, \n {\n type: 'shape',\n id: 'Mpwv7x',\n left: 211.29629629629628,\n top: 201.80555555555557,\n width: 605.1851851851851,\n height: 185.18518518518516,\n viewBox: [200, 200],\n path: 'M 0 0 L 200 0 L 200 200 L 0 200 Z',\n fill: '#5b9bd5',\n fixedRatio: false,\n rotate: 0,\n opacity: 0.7\n }, \n {\n type: 'text',\n id: 'WQOTAp',\n left: 304.9074074074074,\n top: 198.10185185185182,\n width: 417.9629629629629,\n height: 140,\n content: '

    感谢观看

    ',\n rotate: 0,\n defaultFontName: 'Microsoft Yahei',\n defaultColor: '#333',\n wordSpace: 5\n }\n ],\n background: {\n type: 'solid',\n color: '#fff',\n },\n },\n]","import type { SlideTheme } from '@/types/slides'\n\nexport const theme: SlideTheme = {\n themeColor: '#5b9bd5',\n fontColor: '#333',\n fontName: 'Microsoft Yahei',\n backgroundColor: '#fff',\n shadow: {\n h: 3,\n v: 3,\n blur: 2,\n color: '#808080',\n },\n outline: {\n width: 2,\n color: '#525252',\n style: 'solid',\n },\n}","/* eslint-disable max-lines */\n\nimport type { Slide } from '@/types/slides'\n\nexport const layouts: Slide[] = [\n {\n id: 'template',\n elements: [\n {\n type: 'shape',\n id: '4cbRxp',\n left: 0,\n top: 200,\n width: 546,\n height: 362.5,\n viewBox: [200, 200],\n path: 'M 0 0 L 0 200 L 200 200 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n opacity: 0.7,\n rotate: 0\n },\n {\n type: 'shape',\n id: 'ookHrf',\n left: 0,\n top: 0,\n width: 300,\n height: 320,\n viewBox: [200, 200],\n path: 'M 0 0 L 0 200 L 200 200 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n flipV: true,\n rotate: 0\n },\n {\n type: 'text',\n id: 'AkIh3E',\n left: 355,\n top: 95.11111111111111,\n width: 585,\n height: 116,\n lineHeight: 1.2,\n content: '

    输入标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n wordSpace: 6\n },\n {\n type: 'text',\n id: '7stmVP',\n left: 355,\n top: 253.25,\n width: 585,\n height: 56,\n content: '

    请在此处输入副标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n },\n {\n type: 'line',\n id: 'FnpZs4',\n left: 361,\n top: 238,\n start: [0, 0],\n end: [549, 0],\n points: ['', ''],\n color: '{{themeColor}}',\n style: 'solid',\n width: 2,\n },\n ],\n background: {\n type: 'solid',\n color: '{{backgroundColor}}',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'ptNnUJ',\n left: 145,\n top: 148,\n width: 711,\n height: 77,\n lineHeight: 1.2,\n content: '

    在此处添加标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n }, \n {\n type: 'text',\n id: 'mRHvQN',\n left: 207.50000000000003,\n top: 249.84259259259264,\n width: 585,\n height: 56,\n content: '

    在此处添加副标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n }, \n {\n type: 'line',\n id: '7CQDwc',\n left: 323.09259259259267,\n top: 238.33333333333334,\n start: [0, 0],\n end: [354.8148148148148, 0],\n points: ['', ''],\n color: '{{themeColor}}',\n style: 'solid',\n width: 4\n }, \n {\n type: 'shape',\n id: '09wqWw',\n left: -27.648148148148138,\n top: 432.73148148148147,\n width: 1056.2962962962963,\n height: 162.96296296296296,\n viewBox: [200, 200],\n path: 'M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0\n }\n ],\n background: {\n type: 'solid',\n color: '{{backgroundColor}}',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'shape',\n id: 'vSheCJ',\n left: 183.5185185185185,\n top: 175.5092592592593,\n width: 605.1851851851851,\n height: 185.18518518518516,\n viewBox: [200, 200],\n path: 'M 0 0 L 200 0 L 200 200 L 0 200 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0\n }, \n {\n type: 'shape',\n id: 'Mpwv7x',\n left: 211.29629629629628,\n top: 201.80555555555557,\n width: 605.1851851851851,\n height: 185.18518518518516,\n viewBox: [200, 200],\n path: 'M 0 0 L 200 0 L 200 200 L 0 200 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0,\n opacity: 0.7\n }, \n {\n type: 'text',\n id: 'WQOTAp',\n left: 304.9074074074074,\n top: 198.10185185185182,\n width: 417.9629629629629,\n height: 140,\n content: '

    感谢观看

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n wordSpace: 5\n }\n ],\n background: {\n type: 'solid',\n color: '{{backgroundColor}}',\n },\n },\n {\n id: 'MZVO1kkj',\n elements: [\n {\n type: 'shape',\n id: 'cql0h8',\n left: 0,\n top: 0,\n width: 352.59259259259255,\n height: 562.5,\n viewBox: [200, 200],\n path: 'M 0 0 L 200 0 L 200 200 L 0 200 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0\n },\n {\n type: 'shape',\n id: '_RTaF4',\n left: 171.4814814814814,\n top: 100.13888888888887,\n width: 362.22222222222223,\n height: 362.22222222222223,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: 'rgba(255,255,255,0)',\n fixedRatio: false,\n rotate: 0,\n outline: {\n width: 10,\n color: '{{backgroundColor}}',\n style: 'solid'\n }\n },\n {\n type: 'shape',\n id: 'UZfo8N',\n left: 216.66666666666663,\n top: 145.32407407407408,\n width: 271.85185185185185,\n height: 271.85185185185185,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{backgroundColor}}',\n fixedRatio: false,\n rotate: 0,\n text: {\n content: '

    01

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n },\n {\n type: 'text',\n id: 'ysqtBg',\n left: 561.4814814814814,\n top: 100.1388888888889,\n width: 359.25925925925924,\n height: 80,\n content: '

    在此处输入标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n },\n {\n type: 'text',\n id: 'lXsoHa',\n left: 572.5925925925925,\n top: 202.3611111111111,\n width: 257.77777777777777,\n height: 260,\n content: '
    1. 在此处输入内容

    2. 在此处输入内容

    3. 在此处输入内容

    4. 在此处输入内容

    5. 在此处输入内容

    6. 在此处输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n lineHeight: 2,\n fill: '{{subColor}}'\n }\n ],\n background: {\n type: 'solid',\n color: '{{backgroundColor}}',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'shape',\n id: 'EBBnTr',\n left: 360.5996472663139,\n top: 141.8496472663139,\n width: 278.80070546737215,\n height: 278.80070546737215,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: true,\n rotate: 0,\n outline: {\n width: 0,\n color: '{{backgroundColor}}',\n style: 'solid'\n }\n }, \n {\n type: 'shape',\n id: 'gDIWDH',\n left: 456.4373897707231,\n top: 98.287037037037,\n width: 87.12522045855381,\n height: 87.12522045855381,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: true,\n rotate: 0,\n outline: {\n width: 4,\n color: '{{backgroundColor}}',\n style: 'solid'\n },\n text: {\n content: '

    1

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n }, \n {\n type: 'shape',\n id: 'DUWT7E',\n left: 317.037037037037,\n top: 237.68738977072314,\n width: 87.12522045855381,\n height: 87.12522045855381,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: true,\n rotate: 0,\n outline: {\n width: 4,\n color: '{{backgroundColor}}',\n style: 'solid'\n },\n text: {\n content: '

    4

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n }, \n {\n type: 'shape',\n id: 'pbhn38',\n left: 456.43738977072303,\n top: 377.08774250440916,\n width: 87.12522045855381,\n height: 87.12522045855381,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: true,\n rotate: 0,\n outline: {\n width: 4,\n color: '{{backgroundColor}}',\n style: 'solid'\n },\n text: {\n content: '

    3

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n }, \n {\n type: 'shape',\n id: 'CvMKrO',\n left: 595.8377425044091,\n top: 237.6873897707231,\n width: 87.12522045855381,\n height: 87.12522045855381,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: true,\n rotate: 0,\n outline: {\n width: 4,\n color: '{{backgroundColor}}',\n style: 'solid'\n },\n text: {\n content: '

    2

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n }, \n {\n type: 'text',\n id: 'adudHB',\n left: 402.962962962963,\n top: 39.39814814814815,\n width: 194.07407407407408,\n height: 50,\n content: '

    在此输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n }, \n {\n type: 'text',\n id: '9UpDwg',\n left: 402.962962962963,\n top: 473.1018518518518,\n width: 194.07407407407408,\n height: 50,\n content: '

    在此输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n }, \n {\n type: 'text',\n id: 'GERdpB',\n left: 111.48148148148151,\n top: 256.25,\n width: 194.07407407407408,\n height: 50,\n content: '

    在此输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n }, \n {\n type: 'text',\n id: 'G5qoho',\n left: 691.1111111111111,\n top: 256.25,\n width: 194.07407407407408,\n height: 50,\n content: '

    在此输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n }, \n {\n type: 'shape',\n id: 'vdZcI6',\n left: 415.18518518518516,\n top: 196.4351851851852,\n width: 169.62962962962962,\n height: 169.62962962962962,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{backgroundColor}}',\n fixedRatio: false,\n rotate: 0\n }\n ],\n background: {\n type: 'solid',\n color: '{{backgroundColor}}',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'shape',\n id: 'tYUmrx',\n left: 156.66666666666683,\n top: 149.02777777777771,\n width: 264.4444444444445,\n height: 264.4444444444445,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0,\n text: {\n content: '

    01

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n },\n {\n type: 'shape',\n id: '0GVHf8',\n left: 342.2222222222223,\n top: 217.17592592592587,\n width: 128.14814814814812,\n height: 128.14814814814812,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{backgroundColor}}',\n fixedRatio: false,\n rotate: 0\n },\n {\n type: 'text',\n id: 'BO33Sv',\n left: 378.8888888888889,\n top: 235.24999999999994,\n width: 464.4444444444444,\n height: 92,\n content: '

    在此处添加标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n }\n ],\n background: {\n type: 'solid',\n color: '{{backgroundColor}}',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'Hj7ttp',\n left: 69.35185185185185,\n top: 49.21759259259262,\n width: 420,\n height: 63,\n lineHeight: 1.2,\n content: '

    1.请输入标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{themeColor}}',\n },\n {\n type: 'text',\n id: 'FmKMNB',\n left: 69.35185185185185,\n top: 129.28240740740745,\n width: 420,\n height: 384,\n content: '

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}',\n },\n {\n type: 'text',\n id: 'rI7ZeO',\n left: 510.64814814814815,\n top: 49.21759259259262,\n width: 420,\n height: 63,\n lineHeight: 1.2,\n content: '

    2.请输入标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{themeColor}}',\n },\n {\n type: 'text',\n id: 'KspwGc',\n left: 510.64814814814815,\n top: 129.28240740740745,\n width: 420,\n height: 384,\n content: '

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}',\n },\n ],\n background: {\n type: 'solid',\n color: '{{backgroundColor}}',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'Rx63Jo',\n left: 69.35185185185179,\n top: 51.71759259259262,\n width: 420,\n height: 58,\n lineHeight: 1.2,\n content: '

    1.请输入标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{themeColor}}',\n },\n {\n type: 'text',\n id: 'ulyuzE',\n left: 69.35185185185179,\n top: 131.78240740740745,\n width: 420,\n height: 129,\n content: '

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}',\n },\n {\n type: 'text',\n id: 'kr35Ca',\n left: 510.6481481481481,\n top: 51.71759259259262,\n width: 420,\n height: 58,\n lineHeight: 1.2,\n content: '

    2.请输入标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{themeColor}}',\n },\n {\n type: 'text',\n id: 'BNQSpC',\n left: 510.6481481481481,\n top: 131.78240740740745,\n width: 420,\n height: 129,\n content: '

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}',\n },\n {\n type: 'text',\n id: 'Vr38Nu',\n left: 69.35185185185185,\n top: 301.71759259259255,\n width: 420,\n height: 58,\n lineHeight: 1.2,\n content: '

    3.请输入标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{themeColor}}',\n },\n {\n type: 'text',\n id: 'IwKRSu',\n left: 69.35185185185185,\n top: 381.7824074074074,\n width: 420,\n height: 129,\n content: '

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}',\n },\n {\n type: 'text',\n id: '0Opr1v',\n left: 510.64814814814815,\n top: 301.71759259259255,\n width: 420,\n height: 58,\n lineHeight: 1.2,\n content: '

    4.请输入标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{themeColor}}',\n },\n {\n type: 'text',\n id: '4L9Uzz',\n left: 510.64814814814815,\n top: 381.7824074074074,\n width: 420,\n height: 129,\n content: '

    在此处输入内容

    在此处输入内容

    在此处输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}',\n },\n ],\n background: {\n type: 'solid',\n color: '{{backgroundColor}}',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'text',\n id: 'GdEGxg',\n left: 134.53703703703704,\n top: 127.25,\n width: 152.77777777777777,\n height: 308,\n lineHeight: 1.8,\n content: '

    请在此处输入标题

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n wordSpace: 8,\n fill: '{{themeColor}}',\n },\n {\n type: 'text',\n id: 'y5sAfw',\n left: 332.8703703703704,\n top: 127.25,\n width: 532.5925925925926,\n height: 50,\n content: '

    请在此处输入内容1

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}',\n },\n {\n type: 'text',\n id: 'VeuocM',\n left: 332.8703703703704,\n top: 212.0648148148148,\n width: 532.5925925925926,\n height: 50,\n content: '

    请在此处输入内容2

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}',\n },\n {\n type: 'text',\n id: 'RyFWQe',\n left: 332.8703703703704,\n top: 296.8796296296296,\n width: 532.5925925925926,\n height: 50,\n content: '

    请在此处输入内容3

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}',\n },\n {\n type: 'text',\n id: 'Q56viI',\n left: 332.8703703703704,\n top: 381.69444444444446,\n width: 532.5925925925926,\n height: 50,\n content: '

    请在此处输入内容4

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}',\n },\n ],\n background: {\n type: 'solid',\n color: '{{backgroundColor}}',\n },\n },\n {\n id: 'template',\n elements: [\n {\n type: 'shape',\n id: 'SUWirT',\n left: 73.8888888888889,\n top: 64.21296296296302,\n width: 49.629629629629626,\n height: 49.629629629629626,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0,\n text: {\n content: '

    1

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n }, \n {\n type: 'text',\n id: 'YjzN1M',\n left: 148.70370370370372,\n top: 64.21296296296302,\n width: 323.7037037037037,\n height: 120,\n content: '

    在此输入内容

    在此输入内容

    在此输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}'\n }, \n {\n type: 'shape',\n id: 'fS09I7',\n left: 527.5925925925926,\n top: 64.21296296296302,\n width: 49.629629629629626,\n height: 49.629629629629626,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0,\n text: {\n content: '

    2

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n }, \n {\n type: 'text',\n id: 'qCnfB1',\n left: 602.4074074074074,\n top: 64.21296296296302,\n width: 323.7037037037037,\n height: 120,\n content: '

    在此输入内容

    在此输入内容

    在此输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}'\n },\n {\n type: 'shape',\n id: 'difAAT',\n left: 73.8888888888889,\n top: 221.25000000000003,\n width: 49.629629629629626,\n height: 49.629629629629626,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0,\n text: {\n content: '

    3

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n }, \n {\n type: 'text',\n id: 'EUlvMo',\n left: 148.70370370370372,\n top: 221.25000000000003,\n width: 323.7037037037037,\n height: 120,\n content: '

    在此输入内容

    在此输入内容

    在此输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}'\n }, \n {\n type: 'shape',\n id: 'US_9jB',\n left: 527.5925925925926,\n top: 221.25000000000003,\n width: 49.629629629629626,\n height: 49.629629629629626,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0,\n text: {\n content: '

    4

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n }, \n {\n type: 'text',\n id: '243MnQ',\n left: 602.4074074074074,\n top: 221.25000000000003,\n width: 323.7037037037037,\n height: 120,\n content: '

    在此输入内容

    在此输入内容

    在此输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}'\n }, \n {\n type: 'shape',\n id: 'Y_KUj0',\n left: 73.8888888888889,\n top: 378.287037037037,\n width: 49.629629629629626,\n height: 49.629629629629626,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0,\n text: {\n content: '

    5

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n }, \n {\n type: 'text',\n id: '9GglMe',\n left: 148.70370370370372,\n top: 378.287037037037,\n width: 323.7037037037037,\n height: 120,\n content: '

    在此输入内容

    在此输入内容

    在此输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}'\n }, \n {\n type: 'shape',\n id: 'eSInje',\n left: 527.5925925925926,\n top: 378.287037037037,\n width: 49.629629629629626,\n height: 49.629629629629626,\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n fill: '{{themeColor}}',\n fixedRatio: false,\n rotate: 0,\n text: {\n content: '

    6

    ',\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n align: 'middle'\n }\n }, \n {\n type: 'text',\n id: '0S3yUg',\n left: 602.4074074074074,\n top: 378.287037037037,\n width: 323.7037037037037,\n height: 120,\n content: '

    在此输入内容

    在此输入内容

    在此输入内容

    ',\n rotate: 0,\n defaultFontName: '{{fontName}}',\n defaultColor: '{{fontColor}}',\n fill: '{{subColor}}'\n }\n ],\n background: {\n type: 'solid',\n color: '{{backgroundColor}}',\n },\n },\n]","import { defineStore } from 'pinia'\nimport tinycolor from 'tinycolor2'\nimport { omit } from 'lodash'\nimport type { Slide, SlideTheme, PPTElement, PPTAnimation } from '@/types/slides'\nimport { slides } from '@/mocks/slides'\nimport { theme } from '@/mocks/theme'\nimport { layouts } from '@/mocks/layout'\n\ninterface RemoveElementPropData {\n id: string\n propName: string | string[]\n}\n\ninterface UpdateElementData {\n id: string | string[]\n props: Partial\n slideId?: string\n}\n\ninterface FormatedAnimation {\n animations: PPTAnimation[]\n autoNext: boolean\n}\n\nexport interface SlidesState {\n title: string\n theme: SlideTheme\n slides: Slide[]\n slideIndex: number\n viewportRatio: number\n}\n\nexport const useSlidesStore = defineStore('slides', {\n state: (): SlidesState => ({\n title: '未命名演示文稿', // 幻灯片标题\n theme: theme, // 主题样式\n slides: slides, // 幻灯片页面数据\n slideIndex: 0, // 当前页面索引\n viewportRatio: 0.5625, // 可视区域比例,默认16:9\n }),\n\n getters: {\n currentSlide(state) {\n return state.slides[state.slideIndex]\n },\n \n currentSlideAnimations(state) {\n const currentSlide = state.slides[state.slideIndex]\n if (!currentSlide?.animations) return []\n\n const els = currentSlide.elements\n const elIds = els.map(el => el.id)\n return currentSlide.animations.filter(animation => elIds.includes(animation.elId))\n },\n\n // 格式化的当前页动画\n // 将触发条件为“与上一动画同时”的项目向上合并到序列中的同一位置\n // 为触发条件为“上一动画之后”项目的上一项添加自动向下执行标记\n formatedAnimations(state) {\n const currentSlide = state.slides[state.slideIndex]\n if (!currentSlide?.animations) return []\n\n const els = currentSlide.elements\n const elIds = els.map(el => el.id)\n const animations = currentSlide.animations.filter(animation => elIds.includes(animation.elId))\n\n const formatedAnimations: FormatedAnimation[] = []\n for (const animation of animations) {\n if (animation.trigger === 'click' || !formatedAnimations.length) {\n formatedAnimations.push({ animations: [animation], autoNext: false })\n }\n else if (animation.trigger === 'meantime') {\n const last = formatedAnimations[formatedAnimations.length - 1]\n last.animations = last.animations.filter(item => item.elId !== animation.elId)\n last.animations.push(animation)\n formatedAnimations[formatedAnimations.length - 1] = last\n }\n else if (animation.trigger === 'auto') {\n const last = formatedAnimations[formatedAnimations.length - 1]\n last.autoNext = true\n formatedAnimations[formatedAnimations.length - 1] = last\n formatedAnimations.push({ animations: [animation], autoNext: false })\n }\n }\n return formatedAnimations\n },\n \n layouts(state) {\n const {\n themeColor,\n fontColor,\n fontName,\n backgroundColor,\n } = state.theme\n \n const subColor = tinycolor(fontColor).isDark() ? 'rgba(230, 230, 230, 0.5)' : 'rgba(180, 180, 180, 0.5)'\n \n const layoutsString = JSON.stringify(layouts)\n .replaceAll('{{themeColor}}', themeColor)\n .replaceAll('{{fontColor}}', fontColor)\n .replaceAll('{{fontName}}', fontName)\n .replaceAll('{{backgroundColor}}', backgroundColor)\n .replaceAll('{{subColor}}', subColor)\n \n return JSON.parse(layoutsString)\n },\n },\n\n actions: {\n setTitle(title: string) {\n if (!title) this.title = '未命名演示文稿'\n else this.title = title\n },\n\n setTheme(themeProps: Partial) {\n this.theme = { ...this.theme, ...themeProps }\n },\n \n setViewportRatio(viewportRatio: number) {\n this.viewportRatio = viewportRatio\n },\n \n setSlides(slides: Slide[]) {\n this.slides = slides\n },\n \n addSlide(slide: Slide | Slide[]) {\n const slides = Array.isArray(slide) ? slide : [slide]\n const addIndex = this.slideIndex + 1\n this.slides.splice(addIndex, 0, ...slides)\n this.slideIndex = addIndex\n },\n \n updateSlide(props: Partial) {\n const slideIndex = this.slideIndex\n this.slides[slideIndex] = { ...this.slides[slideIndex], ...props }\n },\n \n deleteSlide(slideId: string | string[]) {\n const slidesId = Array.isArray(slideId) ? slideId : [slideId]\n \n const deleteSlidesIndex = []\n for (let i = 0; i < slidesId.length; i++) {\n const index = this.slides.findIndex(item => item.id === slidesId[i])\n deleteSlidesIndex.push(index)\n }\n let newIndex = Math.min(...deleteSlidesIndex)\n \n const maxIndex = this.slides.length - slidesId.length - 1\n if (newIndex > maxIndex) newIndex = maxIndex\n \n this.slideIndex = newIndex\n this.slides = this.slides.filter(item => !slidesId.includes(item.id))\n },\n \n updateSlideIndex(index: number) {\n this.slideIndex = index\n },\n \n addElement(element: PPTElement | PPTElement[]) {\n const elements = Array.isArray(element) ? element : [element]\n const currentSlideEls = this.slides[this.slideIndex].elements\n const newEls = [...currentSlideEls, ...elements]\n this.slides[this.slideIndex].elements = newEls\n },\n\n deleteElement(elementId: string | string[]) {\n const elementIdList = Array.isArray(elementId) ? elementId : [elementId]\n const currentSlideEls = this.slides[this.slideIndex].elements\n const newEls = currentSlideEls.filter(item => !elementIdList.includes(item.id))\n this.slides[this.slideIndex].elements = newEls\n },\n \n updateElement(data: UpdateElementData) {\n const { id, props, slideId } = data\n const elIdList = typeof id === 'string' ? [id] : id\n\n const slideIndex = slideId ? this.slides.findIndex(item => item.id === slideId) : this.slideIndex\n const slide = this.slides[slideIndex]\n const elements = slide.elements.map(el => {\n return elIdList.includes(el.id) ? { ...el, ...props } : el\n })\n this.slides[slideIndex].elements = (elements as PPTElement[])\n },\n \n removeElementProps(data: RemoveElementPropData) {\n const { id, propName } = data\n const propsNames = typeof propName === 'string' ? [propName] : propName\n \n const slideIndex = this.slideIndex\n const slide = this.slides[slideIndex]\n const elements = slide.elements.map(el => {\n return el.id === id ? omit(el, propsNames) : el\n })\n this.slides[slideIndex].elements = (elements as PPTElement[])\n },\n },\n})","import { customAlphabet } from 'nanoid'\nimport { defineStore } from 'pinia'\nimport { ToolbarStates } from '@/types/toolbar'\nimport type { CreatingElement, ShapeFormatPainter, TextFormatPainter } from '@/types/edit'\nimport type { DialogForExportTypes } from '@/types/export'\nimport { type TextAttrs, defaultRichTextAttrs } from '@/utils/prosemirror/utils'\nimport { SYS_FONTS } from '@/configs/font'\nimport { isSupportFont } from '@/utils/font'\n\nimport { useSlidesStore } from './slides'\n\nexport interface MainState {\n activeElementIdList: string[]\n handleElementId: string\n activeGroupElementId: string\n hiddenElementIdList: string[]\n canvasPercentage: number\n canvasScale: number\n canvasDragged: boolean\n thumbnailsFocus: boolean\n editorAreaFocus: boolean\n disableHotkeys: boolean\n gridLineSize: number\n showRuler: boolean\n creatingElement: CreatingElement | null\n creatingCustomShape: boolean\n availableFonts: typeof SYS_FONTS\n toolbarState: ToolbarStates\n clipingImageElementId: string\n isScaling: boolean\n richTextAttrs: TextAttrs\n selectedTableCells: string[]\n selectedSlidesIndex: number[]\n dialogForExport: DialogForExportTypes\n databaseId: string\n textFormatPainter: TextFormatPainter | null\n shapeFormatPainter: ShapeFormatPainter | null\n showSelectPanel: boolean\n showSearchPanel: boolean\n}\n\nconst nanoid = customAlphabet('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')\nexport const databaseId = nanoid(10)\n\nexport const useMainStore = defineStore('main', {\n state: (): MainState => ({\n activeElementIdList: [], // 被选中的元素ID集合,包含 handleElementId\n handleElementId: '', // 正在操作的元素ID\n activeGroupElementId: '', // 组合元素成员中,被选中可独立操作的元素ID\n hiddenElementIdList: [], // 被隐藏的元素ID集合\n canvasPercentage: 90, // 画布可视区域百分比\n canvasScale: 1, // 画布缩放比例(基于宽度1000px)\n canvasDragged: false, // 画布被拖拽移动\n thumbnailsFocus: false, // 左侧导航缩略图区域聚焦\n editorAreaFocus: false, // 编辑区域聚焦\n disableHotkeys: false, // 禁用快捷键\n gridLineSize: 0, // 网格线尺寸(0表示不显示网格线)\n showRuler: false, // 显示标尺\n creatingElement: null, // 正在插入的元素信息,需要通过绘制插入的元素(文字、形状、线条)\n creatingCustomShape: false, // 正在绘制任意多边形\n availableFonts: SYS_FONTS, // 当前环境可用字体\n toolbarState: ToolbarStates.SLIDE_DESIGN, // 右侧工具栏状态\n clipingImageElementId: '', // 当前正在裁剪的图片ID \n richTextAttrs: defaultRichTextAttrs, // 富文本状态\n selectedTableCells: [], // 选中的表格单元格\n isScaling: false, // 正在进行元素缩放\n selectedSlidesIndex: [], // 当前被选中的页面索引集合\n dialogForExport: '', // 导出面板\n databaseId, // 标识当前应用的indexedDB数据库ID\n textFormatPainter: null, // 文字格式刷\n shapeFormatPainter: null, // 形状格式刷\n showSelectPanel: false, // 打开选择面板\n showSearchPanel: false, // 打开查找替换面板\n }),\n\n getters: {\n activeElementList(state) {\n const slidesStore = useSlidesStore()\n const currentSlide = slidesStore.currentSlide\n if (!currentSlide || !currentSlide.elements) return []\n return currentSlide.elements.filter(element => state.activeElementIdList.includes(element.id))\n },\n \n handleElement(state) {\n const slidesStore = useSlidesStore()\n const currentSlide = slidesStore.currentSlide\n if (!currentSlide || !currentSlide.elements) return null\n return currentSlide.elements.find(element => state.handleElementId === element.id) || null\n },\n },\n\n actions: {\n setActiveElementIdList(activeElementIdList: string[]) {\n if (activeElementIdList.length === 1) this.handleElementId = activeElementIdList[0]\n else this.handleElementId = ''\n \n this.activeElementIdList = activeElementIdList\n },\n \n setHandleElementId(handleElementId: string) {\n this.handleElementId = handleElementId\n },\n \n setActiveGroupElementId(activeGroupElementId: string) {\n this.activeGroupElementId = activeGroupElementId\n },\n \n setHiddenElementIdList(hiddenElementIdList: string[]) {\n this.hiddenElementIdList = hiddenElementIdList\n },\n \n setCanvasPercentage(percentage: number) {\n this.canvasPercentage = percentage\n },\n \n setCanvasScale(scale: number) {\n this.canvasScale = scale\n },\n \n setCanvasDragged(isDragged: boolean) {\n this.canvasDragged = isDragged\n },\n \n setThumbnailsFocus(isFocus: boolean) {\n this.thumbnailsFocus = isFocus\n },\n \n setEditorareaFocus(isFocus: boolean) {\n this.editorAreaFocus = isFocus\n },\n \n setDisableHotkeysState(disable: boolean) {\n this.disableHotkeys = disable\n },\n \n setGridLineSize(size: number) {\n this.gridLineSize = size\n },\n \n setRulerState(show: boolean) {\n this.showRuler = show\n },\n \n setCreatingElement(element: CreatingElement | null) {\n this.creatingElement = element\n },\n \n setCreatingCustomShapeState(state: boolean) {\n this.creatingCustomShape = state\n },\n \n setAvailableFonts() {\n this.availableFonts = SYS_FONTS.filter(font => isSupportFont(font.value))\n },\n \n setToolbarState(toolbarState: ToolbarStates) {\n this.toolbarState = toolbarState\n },\n \n setClipingImageElementId(elId: string) {\n this.clipingImageElementId = elId\n },\n \n setRichtextAttrs(attrs: TextAttrs) {\n this.richTextAttrs = attrs\n },\n \n setSelectedTableCells(cells: string[]) {\n this.selectedTableCells = cells\n },\n \n setScalingState(isScaling: boolean) {\n this.isScaling = isScaling\n },\n \n updateSelectedSlidesIndex(selectedSlidesIndex: number[]) {\n this.selectedSlidesIndex = selectedSlidesIndex\n },\n\n setDialogForExport(type: DialogForExportTypes) {\n this.dialogForExport = type\n },\n\n setTextFormatPainter(textFormatPainter: TextFormatPainter | null) {\n this.textFormatPainter = textFormatPainter\n },\n\n setShapeFormatPainter(shapeFormatPainter: ShapeFormatPainter | null) {\n this.shapeFormatPainter = shapeFormatPainter\n },\n\n setSelectPanelState(show: boolean) {\n this.showSelectPanel = show\n },\n\n setSearchPanelState(show: boolean) {\n this.showSearchPanel = show\n },\n },\n})","export const LOCALSTORAGE_KEY_DISCARDED_DB = 'PPTIST_DISCARDED_DB'","import Dexie from 'dexie'\nimport { databaseId } from '@/store/main'\nimport type { Slide } from '@/types/slides'\nimport { LOCALSTORAGE_KEY_DISCARDED_DB } from '@/configs/storage'\n\nexport interface writingBoardImg {\n id: string\n dataURL: string\n}\n\nexport interface Snapshot {\n index: number\n slides: Slide[]\n}\n\nconst databaseNamePrefix = 'PPTist'\n\n// 删除失效/过期的数据库\n// 应用关闭时(关闭或刷新浏览器),会将其数据库ID记录在 localStorage 中,表示该ID指向的数据库已失效\n// 当应用初始化时,检查当前所有数据库,将被记录失效的数据库删除\n// 另外,距离初始化时间超过12小时的数据库也将被删除(这是为了防止出现因意外未被正确删除的库)\nexport const deleteDiscardedDB = async () => {\n const now = new Date().getTime()\n\n const localStorageDiscardedDB = localStorage.getItem(LOCALSTORAGE_KEY_DISCARDED_DB)\n const localStorageDiscardedDBList: string[] = localStorageDiscardedDB ? JSON.parse(localStorageDiscardedDB) : []\n\n const databaseNames = await Dexie.getDatabaseNames()\n const discardedDBNames = databaseNames.filter(name => {\n if (name.indexOf(databaseNamePrefix) === -1) return false\n \n const [prefix, id, time] = name.split('_')\n if (prefix !== databaseNamePrefix || !id || !time) return true\n if (localStorageDiscardedDBList.includes(id)) return true\n if (now - (+time) >= 1000 * 60 * 60 * 12) return true\n\n return false\n })\n\n for (const name of discardedDBNames) Dexie.delete(name)\n localStorage.removeItem(LOCALSTORAGE_KEY_DISCARDED_DB)\n}\n\nclass PPTistDB extends Dexie {\n public snapshots: Dexie.Table\n public writingBoardImgs: Dexie.Table\n\n public constructor() {\n super(`${databaseNamePrefix}_${databaseId}_${new Date().getTime()}`)\n this.version(1).stores({\n snapshots: '++id',\n writingBoardImgs: '++id',\n })\n this.snapshots = this.table('snapshots')\n this.writingBoardImgs = this.table('writingBoardImgs')\n }\n}\n\nexport const db = new PPTistDB()","import { defineStore } from 'pinia'\nimport type { IndexableTypeArray } from 'dexie'\nimport { db, type Snapshot } from '@/utils/database'\n\nimport { useSlidesStore } from './slides'\nimport { useMainStore } from './main'\n\nexport interface ScreenState {\n snapshotCursor: number\n snapshotLength: number\n}\n\nexport const useSnapshotStore = defineStore('snapshot', {\n state: (): ScreenState => ({\n snapshotCursor: -1, // 历史快照指针\n snapshotLength: 0, // 历史快照长度\n }),\n\n getters: {\n canUndo(state) {\n return state.snapshotCursor > 0\n },\n canRedo(state) {\n return state.snapshotCursor < state.snapshotLength - 1\n },\n },\n\n actions: {\n setSnapshotCursor(cursor: number) {\n this.snapshotCursor = cursor\n },\n setSnapshotLength(length: number) {\n this.snapshotLength = length\n },\n\n async initSnapshotDatabase() {\n const slidesStore = useSlidesStore()\n \n const newFirstSnapshot = {\n index: slidesStore.slideIndex,\n slides: slidesStore.slides,\n }\n await db.snapshots.add(newFirstSnapshot)\n this.setSnapshotCursor(0)\n this.setSnapshotLength(1)\n },\n \n async addSnapshot() {\n const slidesStore = useSlidesStore()\n\n // 获取当前indexeddb中全部快照的ID\n const allKeys = await db.snapshots.orderBy('id').keys()\n \n let needDeleteKeys: IndexableTypeArray = []\n \n // 记录需要删除的快照ID\n // 若当前快照指针不处在最后一位,那么再添加快照时,应该将当前指针位置后面的快照全部删除,对应的实际情况是:\n // 用户撤回多次后,再进行操作(添加快照),此时原先被撤销的快照都应该被删除\n if (this.snapshotCursor >= 0 && this.snapshotCursor < allKeys.length - 1) {\n needDeleteKeys = allKeys.slice(this.snapshotCursor + 1)\n }\n \n // 添加新快照\n const snapshot = {\n index: slidesStore.slideIndex,\n slides: slidesStore.slides,\n }\n await db.snapshots.add(snapshot)\n \n // 计算当前快照长度,用于设置快照指针的位置(此时指针应该处在最后一位,即:快照长度 - 1)\n let snapshotLength = allKeys.length - needDeleteKeys.length + 1\n \n // 快照数量超过长度限制时,应该将头部多余的快照删除\n const snapshotLengthLimit = 20\n if (snapshotLength > snapshotLengthLimit) {\n needDeleteKeys.push(allKeys[0])\n snapshotLength--\n }\n \n // 快照数大于1时,需要保证撤回操作后维持页面焦点不变:也就是将倒数第二个快照对应的索引设置为当前页的索引\n // https://github.com/pipipi-pikachu/PPTist/issues/27\n if (snapshotLength >= 2) {\n db.snapshots.update(allKeys[snapshotLength - 2] as number, { index: slidesStore.slideIndex })\n }\n \n await db.snapshots.bulkDelete(needDeleteKeys)\n \n this.setSnapshotCursor(snapshotLength - 1)\n this.setSnapshotLength(snapshotLength)\n },\n \n async unDo() {\n if (this.snapshotCursor <= 0) return\n\n const slidesStore = useSlidesStore()\n const mainStore = useMainStore()\n \n const snapshotCursor = this.snapshotCursor - 1\n const snapshots: Snapshot[] = await db.snapshots.orderBy('id').toArray()\n const snapshot = snapshots[snapshotCursor]\n const { index, slides } = snapshot\n \n const slideIndex = index > slides.length - 1 ? slides.length - 1 : index\n \n slidesStore.setSlides(slides)\n slidesStore.updateSlideIndex(slideIndex)\n this.setSnapshotCursor(snapshotCursor)\n mainStore.setActiveElementIdList([])\n },\n \n async reDo() {\n if (this.snapshotCursor >= this.snapshotLength - 1) return\n\n const slidesStore = useSlidesStore()\n const mainStore = useMainStore()\n \n const snapshotCursor = this.snapshotCursor + 1\n const snapshots: Snapshot[] = await db.snapshots.orderBy('id').toArray()\n const snapshot = snapshots[snapshotCursor]\n const { index, slides } = snapshot\n \n const slideIndex = index > slides.length - 1 ? slides.length - 1 : index\n \n slidesStore.setSlides(slides)\n slidesStore.updateSlideIndex(slideIndex)\n this.setSnapshotCursor(snapshotCursor)\n mainStore.setActiveElementIdList([])\n },\n },\n})","import { defineStore } from 'pinia'\n\nexport interface KeyboardState {\n ctrlKeyState: boolean\n shiftKeyState: boolean\n spaceKeyState: boolean\n}\n\nexport const useKeyboardStore = defineStore('keyboard', {\n state: (): KeyboardState => ({\n ctrlKeyState: false, // ctrl键按下状态\n shiftKeyState: false, // shift键按下状态\n spaceKeyState: false, // space键按下状态\n }),\n\n getters: {\n ctrlOrShiftKeyActive(state) {\n return state.ctrlKeyState || state.shiftKeyState\n },\n },\n\n actions: {\n setCtrlKeyState(active: boolean) {\n this.ctrlKeyState = active\n },\n setShiftKeyState(active: boolean) {\n this.shiftKeyState = active\n },\n setSpaceKeyState(active: boolean) {\n this.spaceKeyState = active\n },\n },\n})","import { defineStore } from 'pinia'\n\nexport interface ScreenState {\n screening: boolean\n}\n\nexport const useScreenStore = defineStore('screen', {\n state: (): ScreenState => ({\n screening: false, // 是否进入放映状态\n }),\n\n actions: {\n setScreening(screening: boolean) {\n this.screening = screening\n },\n },\n})","import { padStart } from 'lodash'\n\n/**\n * 补足数字位数\n * @param digit 数字\n * @param len 位数\n */\nexport const fillDigit = (digit: number, len: number) => {\n return padStart('' + digit, len, '0')\n}\n\n/**\n * 判断设备\n */\nexport const isPC = () => {\n return !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|Mobile|BlackBerry|Symbian|Windows Phone)/i)\n}","import type { ShapePoolItem } from '@/configs/shapes'\r\nimport type { LinePoolItem } from '@/configs/lines'\r\nimport type { ImageClipDataRange, PPTElementOutline, PPTElementShadow, ShapeGradient } from './slides'\r\n\r\nexport enum ElementOrderCommands {\r\n UP = 'up',\r\n DOWN = 'down',\r\n TOP = 'top',\r\n BOTTOM = 'bottom',\r\n}\r\n\r\nexport enum ElementAlignCommands {\r\n TOP = 'top',\r\n BOTTOM = 'bottom',\r\n LEFT = 'left',\r\n RIGHT = 'right',\r\n VERTICAL = 'vertical',\r\n HORIZONTAL = 'horizontal',\r\n CENTER = 'center',\r\n}\r\n\r\nexport const enum OperateBorderLines {\r\n T = 'top',\r\n B = 'bottom',\r\n L = 'left',\r\n R = 'right',\r\n}\r\n\r\nexport const enum OperateResizeHandlers {\r\n LEFT_TOP = 'left-top',\r\n TOP = 'top',\r\n RIGHT_TOP = 'right-top',\r\n LEFT = 'left',\r\n RIGHT = 'right',\r\n LEFT_BOTTOM = 'left-bottom',\r\n BOTTOM = 'bottom',\r\n RIGHT_BOTTOM = 'right-bottom',\r\n}\r\n\r\nexport const enum OperateLineHandlers {\r\n START = 'start',\r\n END = 'end',\r\n C = 'ctrl',\r\n C1 = 'ctrl1',\r\n C2 = 'ctrl2',\r\n}\r\n\r\nexport interface AlignmentLineAxis {\r\n x: number\r\n y: number\r\n}\r\n\r\nexport interface AlignmentLineProps {\r\n type: 'vertical' | 'horizontal'\r\n axis: AlignmentLineAxis\r\n length: number\r\n}\r\n\r\nexport interface MultiSelectRange {\r\n minX: number\r\n maxX: number\r\n minY: number\r\n maxY: number\r\n}\r\n\r\nexport interface ImageClipedEmitData {\r\n range: ImageClipDataRange\r\n position: {\r\n left: number\r\n top: number\r\n width: number\r\n height: number\r\n }\r\n}\r\n\r\nexport interface CreateElementSelectionData {\r\n start: [number, number]\r\n end: [number, number]\r\n}\r\n\r\nexport interface CreateCustomShapeData {\r\n start: [number, number]\r\n end: [number, number]\r\n path: string\r\n viewBox: [number, number]\r\n fill?: string\r\n outline?: PPTElementOutline\r\n}\r\n\r\nexport interface CreatingTextElement {\r\n type: 'text'\r\n vertical?: boolean\r\n}\r\nexport interface CreatingShapeElement {\r\n type: 'shape'\r\n data: ShapePoolItem\r\n}\r\nexport interface CreatingLineElement {\r\n type: 'line'\r\n data: LinePoolItem\r\n}\r\nexport type CreatingElement = CreatingTextElement | CreatingShapeElement | CreatingLineElement\r\n\r\nexport type TextFormatPainterKeys = 'bold' | 'em' | 'underline' | 'strikethrough' | 'color' | 'backcolor' | 'fontsize' | 'fontname' | 'align'\r\n\r\nexport interface TextFormatPainter {\r\n keep: boolean\r\n bold?: boolean\r\n em?: boolean\r\n underline?: boolean\r\n strikethrough?: boolean\r\n color?: string\r\n backcolor?: string\r\n fontsize?: string\r\n fontname?: string\r\n align?: 'left' | 'right' | 'center'\r\n}\r\n\r\nexport interface ShapeFormatPainter {\r\n keep: boolean\r\n fill?: string\r\n gradient?: ShapeGradient\r\n outline?: PPTElementOutline\r\n opacity?: number\r\n shadow?: PPTElementShadow\r\n}","export const enum KEYS {\n C = 'C',\n X = 'X',\n Z = 'Z',\n Y = 'Y',\n A = 'A',\n G = 'G',\n L = 'L',\n F = 'F',\n D = 'D',\n B = 'B',\n P = 'P',\n MINUS = '-',\n EQUAL = '=',\n DIGIT_0 = '0',\n DELETE = 'DELETE',\n UP = 'ARROWUP',\n DOWN = 'ARROWDOWN',\n LEFT = 'ARROWLEFT',\n RIGHT = 'ARROWRIGHT',\n ENTER = 'ENTER',\n SPACE = ' ',\n TAB = 'TAB',\n BACKSPACE = 'BACKSPACE',\n ESC = 'ESCAPE',\n PAGEUP = 'PAGEUP',\n PAGEDOWN = 'PAGEDOWN',\n F5 = 'F5',\n}\n\nexport const HOTKEY_DOC = [\n {\n type: '通用',\n children: [\n { label: '剪切', value: 'Ctrl + X' },\n { label: '复制', value: 'Ctrl + C' },\n { label: '粘贴', value: 'Ctrl + V' },\n { label: '粘贴为纯文本', value: 'Ctrl + Shift + V' },\n { label: '快速复制粘贴', value: 'Ctrl + D' },\n { label: '全选', value: 'Ctrl + A' },\n { label: '撤销', value: 'Ctrl + Z' },\n { label: '恢复', value: 'Ctrl + Y' },\n { label: '删除', value: 'Delete / Backspace' },\n { label: '多选', value: '按住 Ctrl 或 Shift' },\n { label: '打开搜索替换', value: 'Ctrl + F' },\n { label: '打印', value: 'Ctrl + P' },\n { label: '关闭弹窗', value: 'ESC' },\n ],\n },\n {\n type: '幻灯片放映',\n children: [\n { label: '从头开始放映幻灯片', value: 'F5' },\n { label: '从当前开始放映幻灯片', value: 'Shift + F5' },\n { label: '切换上一页', value: '↑ / ← / PgUp' },\n { label: '切换下一页', value: '↓ / → / PgDown' },\n { label: '切换下一页', value: 'Enter / Space' },\n { label: '退出放映', value: 'ESC' },\n ],\n },\n {\n type: '幻灯片编辑',\n children: [\n { label: '新建幻灯片', value: 'Enter' },\n { label: '移动画布', value: 'Space + 鼠标拖拽' },\n { label: '缩放画布', value: 'Ctrl + 鼠标滚轮' },\n { label: '放大画布', value: 'Ctrl + =' },\n { label: '缩小画布', value: 'Ctrl + -' },\n { label: '使画布适应当前屏幕', value: 'Ctrl + 0' },\n { label: '上一页(未选中元素)', value: '↑ / ←' },\n { label: '下一页(未选中元素)', value: '↓ / →' },\n { label: '上一页', value: '鼠标上滚 / PgUp' },\n { label: '下一页', value: '鼠标下滚 / PgDown' },\n ],\n },\n {\n type: '元素操作',\n children: [\n { label: '移动', value: '↑ / ← / ↓ / →' },\n { label: '锁定', value: 'Ctrl + L' },\n { label: '组合', value: 'Ctrl + G' },\n { label: '取消组合', value: 'Ctrl + Shift + G' },\n { label: '置顶层', value: 'Alt + F' },\n { label: '置底层', value: 'Alt + B' },\n { label: '锁定宽高比例', value: '按住 Ctrl 或 Shift' },\n { label: '创建水平 / 垂直线条', value: '按住 Ctrl 或 Shift' },\n { label: '切换焦点元素', value: 'Tab' },\n { label: '确认图片裁剪', value: 'Enter' },\n { label: '完成自定义形状绘制', value: 'Enter' },\n ],\n },\n {\n type: '表格编辑',\n children: [\n { label: '聚焦到下一个单元格', value: 'Tab' },\n { label: '在上方插入一行', value: 'Ctrl + ↑' },\n { label: '在下方插入一行', value: 'Ctrl + ↓' },\n { label: '在左侧插入一列', value: 'Ctrl + ←' },\n { label: '在右侧插入一列', value: 'Ctrl + →' },\n ],\n },\n {\n type: '图表数据编辑',\n children: [\n { label: '聚焦到下一行', value: 'Enter' },\n ],\n },\n {\n type: '文本编辑',\n children: [\n { label: '加粗', value: 'Ctrl + B' },\n { label: '斜体', value: 'Ctrl + I' },\n { label: '下划线', value: 'Ctrl + U' },\n { label: '行内代码', value: 'Ctrl + E' },\n { label: '上角标', value: 'Ctrl + ;' },\n { label: '下角标', value: `Ctrl + '` },\n { label: '选中段落', value: `ESC` },\n ],\n },\n]","import CryptoJS from 'crypto-js'\n\nconst CRYPTO_KEY = 'pptist'\n\n/**\n * 加密\n * @param msg 待加密字符串\n */\nexport const encrypt = (msg: string) => {\n return CryptoJS.AES.encrypt(msg, CRYPTO_KEY).toString()\n}\n\n/**\n * 解密\n * @param ciphertext 待解密字符串\n */\nexport const decrypt = (ciphertext: string) => {\n const bytes = CryptoJS.AES.decrypt(ciphertext, CRYPTO_KEY)\n return bytes.toString(CryptoJS.enc.Utf8)\n}","import Clipboard from 'clipboard'\nimport { decrypt } from '@/utils/crypto'\n\n/**\n * 复制文本到剪贴板\n * @param text 文本内容\n */\nexport const copyText = (text: string) => {\n return new Promise((resolve, reject) => {\n const fakeElement = document.createElement('button')\n const clipboard = new Clipboard(fakeElement, {\n text: () => text,\n action: () => 'copy',\n container: document.body,\n })\n clipboard.on('success', e => {\n clipboard.destroy()\n resolve(e)\n })\n clipboard.on('error', e => {\n clipboard.destroy()\n reject(e)\n })\n document.body.appendChild(fakeElement)\n fakeElement.click()\n document.body.removeChild(fakeElement)\n })\n}\n\n// 读取剪贴板\nexport const readClipboard = (): Promise => {\n return new Promise((resolve, reject) => {\n if (navigator.clipboard?.readText) {\n navigator.clipboard.readText().then(text => {\n if (!text) reject('剪贴板为空或者不包含文本')\n return resolve(text)\n })\n }\n else reject('浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V')\n })\n}\n\n// 解析加密后的剪贴板内容\nexport const pasteCustomClipboardString = (text: string) => {\n let clipboardData\n try {\n clipboardData = JSON.parse(decrypt(text))\n }\n catch {\n clipboardData = text\n }\n\n return clipboardData\n}\n\n// 尝试解析剪贴板内容是否为Excel表格(或类似的)数据格式\nexport const pasteExcelClipboardString = (text: string): string[][] | null => {\n const lines: string[] = text.split('\\r\\n')\n\n if (lines[lines.length - 1] === '') lines.pop()\n\n let colCount = -1\n const data: string[][] = []\n for (const index in lines) {\n data[index] = lines[index].split('\\t')\n\n if (data[index].length === 1) return null\n if (colCount === -1) colCount = data[index].length\n else if (colCount !== data[index].length) return null\n }\n return data\n}","import tinycolor from 'tinycolor2'\r\nimport { nanoid } from 'nanoid'\r\nimport type { PPTElement, PPTLineElement, Slide } from '@/types/slides'\r\n\r\ninterface RotatedElementData {\r\n left: number\r\n top: number\r\n width: number\r\n height: number\r\n rotate: number\r\n}\r\n\r\ninterface IdMap {\r\n [id: string]: string\r\n}\r\n\r\n/**\r\n * 计算元素在画布中的矩形范围旋转后的新位置范围\r\n * @param element 元素的位置大小和旋转角度信息\r\n */\r\nexport const getRectRotatedRange = (element: RotatedElementData) => {\r\n const { left, top, width, height, rotate = 0 } = element\r\n\r\n const radius = Math.sqrt( Math.pow(width, 2) + Math.pow(height, 2) ) / 2\r\n const auxiliaryAngle = Math.atan(height / width) * 180 / Math.PI\r\n\r\n const tlbraRadian = (180 - rotate - auxiliaryAngle) * Math.PI / 180\r\n const trblaRadian = (auxiliaryAngle - rotate) * Math.PI / 180\r\n\r\n const middleLeft = left + width / 2\r\n const middleTop = top + height / 2\r\n\r\n const xAxis = [\r\n middleLeft + radius * Math.cos(tlbraRadian),\r\n middleLeft + radius * Math.cos(trblaRadian),\r\n middleLeft - radius * Math.cos(tlbraRadian),\r\n middleLeft - radius * Math.cos(trblaRadian),\r\n ]\r\n const yAxis = [\r\n middleTop - radius * Math.sin(tlbraRadian),\r\n middleTop - radius * Math.sin(trblaRadian),\r\n middleTop + radius * Math.sin(tlbraRadian),\r\n middleTop + radius * Math.sin(trblaRadian),\r\n ]\r\n\r\n return {\r\n xRange: [Math.min(...xAxis), Math.max(...xAxis)],\r\n yRange: [Math.min(...yAxis), Math.max(...yAxis)],\r\n }\r\n}\r\n\r\n/**\r\n * 计算元素在画布中的矩形范围旋转后的新位置与旋转之前位置的偏离距离\r\n * @param element 元素的位置大小和旋转角度信息\r\n */\r\nexport const getRectRotatedOffset = (element: RotatedElementData) => {\r\n const { xRange: originXRange, yRange: originYRange } = getRectRotatedRange({\r\n left: element.left,\r\n top: element.top,\r\n width: element.width,\r\n height: element.height,\r\n rotate: 0,\r\n })\r\n const { xRange: rotatedXRange, yRange: rotatedYRange } = getRectRotatedRange({\r\n left: element.left,\r\n top: element.top,\r\n width: element.width,\r\n height: element.height,\r\n rotate: element.rotate,\r\n })\r\n return {\r\n offsetX: rotatedXRange[0] - originXRange[0],\r\n offsetY: rotatedYRange[0] - originYRange[0],\r\n }\r\n}\r\n\r\n/**\r\n * 计算元素在画布中的位置范围\r\n * @param element 元素信息\r\n */\r\nexport const getElementRange = (element: PPTElement) => {\r\n let minX, maxX, minY, maxY\r\n\r\n if (element.type === 'line') {\r\n minX = element.left\r\n maxX = element.left + Math.max(element.start[0], element.end[0])\r\n minY = element.top\r\n maxY = element.top + Math.max(element.start[1], element.end[1])\r\n }\r\n else if ('rotate' in element && element.rotate) {\r\n const { left, top, width, height, rotate } = element\r\n const { xRange, yRange } = getRectRotatedRange({ left, top, width, height, rotate })\r\n minX = xRange[0]\r\n maxX = xRange[1]\r\n minY = yRange[0]\r\n maxY = yRange[1]\r\n }\r\n else {\r\n minX = element.left\r\n maxX = element.left + element.width\r\n minY = element.top\r\n maxY = element.top + element.height\r\n }\r\n return { minX, maxX, minY, maxY }\r\n}\r\n\r\n/**\r\n * 计算一组元素在画布中的位置范围\r\n * @param elementList 一组元素信息\r\n */\r\nexport const getElementListRange = (elementList: PPTElement[]) => {\r\n const leftValues: number[] = []\r\n const topValues: number[] = []\r\n const rightValues: number[] = []\r\n const bottomValues: number[] = []\r\n\r\n elementList.forEach(element => {\r\n const { minX, maxX, minY, maxY } = getElementRange(element)\r\n leftValues.push(minX)\r\n topValues.push(minY)\r\n rightValues.push(maxX)\r\n bottomValues.push(maxY)\r\n })\r\n\r\n const minX = Math.min(...leftValues)\r\n const maxX = Math.max(...rightValues)\r\n const minY = Math.min(...topValues)\r\n const maxY = Math.max(...bottomValues)\r\n\r\n return { minX, maxX, minY, maxY }\r\n}\r\n\r\nexport interface AlignLine {\r\n value: number\r\n range: [number, number]\r\n}\r\n\r\n/**\r\n * 将一组对齐吸附线进行去重:同位置的的多条对齐吸附线仅留下一条,取该位置所有对齐吸附线的最大值和最小值为新的范围\r\n * @param lines 一组对齐吸附线信息\r\n */\r\nexport const uniqAlignLines = (lines: AlignLine[]) => {\r\n const uniqLines: AlignLine[] = []\r\n lines.forEach(line => {\r\n const index = uniqLines.findIndex(_line => _line.value === line.value)\r\n if (index === -1) uniqLines.push(line)\r\n else {\r\n const uniqLine = uniqLines[index]\r\n const rangeMin = Math.min(uniqLine.range[0], line.range[0])\r\n const rangeMax = Math.max(uniqLine.range[1], line.range[1])\r\n const range: [number, number] = [rangeMin, rangeMax]\r\n const _line = { value: line.value, range }\r\n uniqLines[index] = _line\r\n }\r\n })\r\n return uniqLines\r\n}\r\n\r\n/**\r\n * 以页面列表为基础,为每一个页面生成新的ID,并关联到旧ID形成一个字典\r\n * 主要用于页面元素时,维持数据中各处页面ID原有的关系\r\n * @param slides 页面列表\r\n */\r\nexport const createSlideIdMap = (slides: Slide[]) => {\r\n const slideIdMap: IdMap = {}\r\n for (const slide of slides) {\r\n slideIdMap[slide.id] = nanoid(10)\r\n }\r\n return slideIdMap\r\n}\r\n\r\n/**\r\n * 以元素列表为基础,为每一个元素生成新的ID,并关联到旧ID形成一个字典\r\n * 主要用于复制元素时,维持数据中各处元素ID原有的关系\r\n * 例如:原本两个组合的元素拥有相同的groupId,复制后依然会拥有另一个相同的groupId\r\n * @param elements 元素列表数据\r\n */\r\nexport const createElementIdMap = (elements: PPTElement[]) => {\r\n const groupIdMap: IdMap = {}\r\n const elIdMap: IdMap = {}\r\n for (const element of elements) {\r\n const groupId = element.groupId\r\n if (groupId && !groupIdMap[groupId]) {\r\n groupIdMap[groupId] = nanoid(10)\r\n }\r\n elIdMap[element.id] = nanoid(10)\r\n }\r\n return {\r\n groupIdMap,\r\n elIdMap,\r\n }\r\n}\r\n\r\n/**\r\n * 根据表格的主题色,获取对应用于配色的子颜色\r\n * @param themeColor 主题色\r\n */\r\nexport const getTableSubThemeColor = (themeColor: string) => {\r\n const rgba = tinycolor(themeColor)\r\n return [\r\n rgba.setAlpha(0.3).toRgbString(),\r\n rgba.setAlpha(0.1).toRgbString(),\r\n ]\r\n}\r\n\r\n/**\r\n * 获取线条元素路径字符串\r\n * @param element 线条元素\r\n */\r\nexport const getLineElementPath = (element: PPTLineElement) => {\r\n const start = element.start.join(',')\r\n const end = element.end.join(',')\r\n if (element.broken) {\r\n const mid = element.broken.join(',')\r\n return `M${start} L${mid} L${end}`\r\n }\r\n else if (element.curve) {\r\n const mid = element.curve.join(',')\r\n return `M${start} Q${mid} ${end}`\r\n }\r\n else if (element.cubic) {\r\n const [c1, c2] = element.cubic\r\n const p1 = c1.join(',')\r\n const p2 = c2.join(',')\r\n return `M${start} C${p1} ${p2} ${end}`\r\n }\r\n return `M${start} L${end}`\r\n}\r\n\r\n/**\r\n * 判断一个元素是否在可视范围内\r\n * @param element 元素\r\n * @param parent 父元素\r\n */\r\nexport const isElementInViewport = (element: HTMLElement, parent: HTMLElement): boolean => {\r\n const elementRect = element.getBoundingClientRect()\r\n const parentRect = parent.getBoundingClientRect()\r\n\r\n return (\r\n elementRect.top >= parentRect.top &&\r\n elementRect.bottom <= parentRect.bottom\r\n )\r\n}","// https://iconpark.bytedance.com/official\n\nimport type { App } from 'vue'\nimport {\n PlayOne,\n FullScreenPlay,\n Lock,\n Unlock,\n Ppt,\n Format,\n Picture,\n FullScreen,\n List,\n OrderedList,\n FlipVertically,\n FlipHorizontally,\n FontSize,\n Code,\n TextBold,\n TextItalic,\n TextUnderline,\n Strikethrough,\n Edit,\n Quote,\n BackgroundColor,\n Group,\n Ungroup,\n Back,\n Next,\n Fullwidth,\n AlignTop,\n AlignLeft,\n AlignRight,\n AlignBottom,\n AlignVertically,\n AlignHorizontally,\n BringToFront,\n SendToBack,\n AlignTextLeft,\n AlignTextRight,\n AlignTextCenter,\n AlignTextBoth,\n RowHeight,\n Write,\n InsertTable,\n AddText,\n Fill,\n Tailoring,\n Effects,\n ColorFilter,\n Up,\n Down,\n Plus,\n Minus,\n Connection,\n BringToFrontOne,\n SentToBack,\n Github,\n ChartProportion,\n ChartHistogram,\n ChartHistogramOne,\n ChartLineArea,\n ChartRing,\n ChartScatter,\n ChartLine,\n ChartPie,\n Text,\n Rotate,\n LeftTwo,\n RightTwo,\n Platte,\n Close,\n CloseSmall,\n Undo,\n Transform,\n Click,\n Theme,\n ArrowCircleLeft,\n GraphicDesign,\n Logout,\n Erase,\n Clear,\n AlignTextTopOne,\n AlignTextBottomOne,\n AlignTextMiddleOne,\n Pause,\n VolumeMute,\n VolumeNotice,\n VolumeSmall,\n VideoTwo,\n Formula,\n LinkOne,\n FullScreenOne,\n OffScreenOne,\n Power,\n ListView,\n Magic,\n HighLight,\n Download,\n IndentLeft,\n IndentRight,\n VerticalSpacingBetweenItems,\n Copy,\n Delete,\n Square,\n Round,\n Needle,\n TextRotationNone,\n TextRotationDown,\n FormatBrush,\n PreviewOpen,\n PreviewClose,\n StopwatchStart,\n Search,\n Left,\n Right,\n MoveOne,\n HamburgerButton,\n Attention,\n CheckOne,\n CloseOne,\n Info,\n} from '@icon-park/vue-next'\n\nexport interface Icons {\n [key: string]: typeof PlayOne\n}\n\nexport const icons: Icons = {\n IconPlayOne: PlayOne,\n IconFullScreenPlay: FullScreenPlay,\n IconLock: Lock,\n IconUnlock: Unlock,\n IconPpt: Ppt,\n IconFormat: Format,\n IconPicture: Picture,\n IconFullScreen: FullScreen,\n IconList: List,\n IconOrderedList: OrderedList,\n IconFlipVertically: FlipVertically,\n IconFlipHorizontally: FlipHorizontally,\n IconFontSize: FontSize,\n IconCode: Code,\n IconTextBold: TextBold,\n IconTextItalic: TextItalic,\n IconTextUnderline: TextUnderline,\n IconStrikethrough: Strikethrough,\n IconEdit: Edit,\n IconQuote: Quote,\n IconBackgroundColor: BackgroundColor,\n IconGroup: Group,\n IconUngroup: Ungroup,\n IconBack: Back,\n IconNext: Next,\n IconFullwidth: Fullwidth,\n IconAlignTop: AlignTop,\n IconAlignLeft: AlignLeft,\n IconAlignRight: AlignRight,\n IconAlignBottom: AlignBottom,\n IconAlignVertically: AlignVertically,\n IconAlignHorizontally: AlignHorizontally,\n IconBringToFront: BringToFront,\n IconSendToBack: SendToBack,\n IconAlignTextLeft: AlignTextLeft,\n IconAlignTextRight: AlignTextRight,\n IconAlignTextCenter: AlignTextCenter,\n IconAlignTextBoth: AlignTextBoth,\n IconRowHeight: RowHeight,\n IconWrite: Write,\n IconInsertTable: InsertTable,\n IconAddText: AddText,\n IconFill: Fill,\n IconTailoring: Tailoring,\n IconEffects: Effects,\n IconColorFilter: ColorFilter,\n IconUp: Up,\n IconDown: Down,\n IconPlus: Plus,\n IconMinus: Minus,\n IconConnection: Connection,\n IconBringToFrontOne: BringToFrontOne,\n IconSentToBack: SentToBack,\n IconGithub: Github,\n IconChartProportion: ChartProportion,\n IconChartHistogram: ChartHistogram,\n IconChartHistogramOne: ChartHistogramOne,\n IconChartLineArea: ChartLineArea,\n IconChartRing: ChartRing,\n IconChartScatter: ChartScatter,\n IconChartLine: ChartLine,\n IconChartPie: ChartPie,\n IconText: Text,\n IconRotate: Rotate,\n IconLeftTwo: LeftTwo,\n IconRightTwo: RightTwo,\n IconPlatte: Platte,\n IconClose: Close,\n IconCloseSmall: CloseSmall,\n IconUndo: Undo,\n IconTransform: Transform,\n IconClick: Click,\n IconTheme: Theme,\n IconArrowCircleLeft: ArrowCircleLeft,\n IconGraphicDesign: GraphicDesign,\n IconLogout: Logout,\n IconErase: Erase,\n IconClear: Clear,\n IconAlignTextTopOne: AlignTextTopOne,\n IconAlignTextBottomOne: AlignTextBottomOne,\n IconAlignTextMiddleOne: AlignTextMiddleOne,\n IconPause: Pause,\n IconVolumeMute: VolumeMute,\n IconVolumeNotice: VolumeNotice,\n IconVolumeSmall: VolumeSmall,\n IconVideoTwo: VideoTwo,\n IconFormula: Formula,\n IconLinkOne: LinkOne,\n IconFullScreenOne: FullScreenOne,\n IconOffScreenOne: OffScreenOne,\n IconPower: Power,\n IconListView: ListView,\n IconMagic: Magic,\n IconHighLight: HighLight,\n IconDownload: Download,\n IconIndentLeft: IndentLeft,\n IconIndentRight: IndentRight,\n IconVerticalSpacingBetweenItems: VerticalSpacingBetweenItems,\n IconCopy: Copy,\n IconDelete: Delete,\n IconSquare: Square,\n IconRound: Round,\n IconNeedle: Needle,\n IconTextRotationNone: TextRotationNone,\n IconTextRotationDown: TextRotationDown,\n IconFormatBrush: FormatBrush,\n IconPreviewOpen: PreviewOpen,\n IconPreviewClose: PreviewClose,\n IconStopwatchStart: StopwatchStart,\n IconSearch: Search,\n IconLeft: Left,\n IconRight: Right,\n IconMoveOne: MoveOne,\n IconHamburgerButton: HamburgerButton,\n IconAttention: Attention,\n IconCheckOne: CheckOne,\n IconCloseOne: CloseOne,\n IconInfo: Info,\n}\n\nexport default {\n install(app: App) {\n for (const key of Object.keys(icons)) {\n app.component(key, icons[key])\n }\n }\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Transition as _Transition, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-03d14766\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"id\"]\nconst _hoisted_2 = { class: \"icons\" }\nconst _hoisted_3 = { class: \"content\" }\nconst _hoisted_4 = {\n key: 0,\n class: \"title\"\n}\nconst _hoisted_5 = { class: \"description\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"control\"\n}\n\nimport { onMounted, ref, onBeforeMount } from 'vue'\nimport { icons } from '@/plugins/icon'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Message',\n props: {\n id: {},\n message: {},\n type: { default: 'success' },\n title: { default: '' },\n duration: { default: 3000 },\n closable: { type: Boolean, default: false }\n },\n emits: [\"close\", \"destroy\"],\n setup(__props: any, { expose: __expose, emit: __emit }) {\n\nconst {\n IconAttention,\n IconCheckOne,\n IconCloseOne,\n IconInfo,\n IconCloseSmall,\n} = icons\n\nconst props = __props\n\nconst emit = __emit\n\nconst visible = ref(true)\nconst timer = ref(null)\n\nconst startTimer = () => {\n if (props.duration <= 0) return\n timer.value = setTimeout(close, props.duration)\n}\nconst clearTimer = () => {\n if (timer.value) clearTimeout(timer.value)\n}\n\nconst close = () => visible.value = false\n\nonBeforeMount(() => {\n clearTimer()\n})\nonMounted(() => {\n startTimer()\n})\n\n__expose({\n close,\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Transition, {\n name: \"message-fade\",\n appear: \"\",\n mode: \"in-out\",\n onBeforeLeave: _cache[3] || (_cache[3] = ($event: any) => (emit('close'))),\n onAfterLeave: _cache[4] || (_cache[4] = ($event: any) => (emit('destroy')))\n }, {\n default: _withCtx(() => [\n (visible.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"message\",\n id: _ctx.id\n }, [\n _createElementVNode(\"div\", {\n class: \"message-container\",\n onMouseenter: _cache[1] || (_cache[1] = ($event: any) => (clearTimer())),\n onMouseleave: _cache[2] || (_cache[2] = ($event: any) => (startTimer()))\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_ctx.type === 'warning')\n ? (_openBlock(), _createBlock(_unref(IconAttention), {\n key: 0,\n theme: \"filled\",\n size: \"18\",\n fill: \"#faad14\"\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.type === 'success')\n ? (_openBlock(), _createBlock(_unref(IconCheckOne), {\n key: 1,\n theme: \"filled\",\n size: \"18\",\n fill: \"#52c41a\"\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.type === 'error')\n ? (_openBlock(), _createBlock(_unref(IconCloseOne), {\n key: 2,\n theme: \"filled\",\n size: \"18\",\n fill: \"#ff4d4f\"\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.type === 'info')\n ? (_openBlock(), _createBlock(_unref(IconInfo), {\n key: 3,\n theme: \"filled\",\n size: \"18\",\n fill: \"#1677ff\"\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n (_ctx.title)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, _toDisplayString(_ctx.title), 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_5, _toDisplayString(_ctx.message), 1)\n ]),\n (_ctx.closable)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"span\", {\n class: \"close-btn\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (close()))\n }, [\n _createVNode(_unref(IconCloseSmall))\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ], 32)\n ], 8, _hoisted_1))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }))\n}\n}\n\n})","\n\n\n\n","import script from \"./Message.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Message.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Message.vue?vue&type=style&index=0&id=03d14766&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-03d14766\"]])\n\nexport default __exports__","import { createVNode, render, type AppContext } from 'vue'\nimport MessageComponent from '@/components/Message.vue'\n\nexport interface MessageOptions {\n type?: 'info' | 'success' | 'warning' | 'error'\n title?: string\n message?: string\n duration?: number\n closable?: boolean\n ctx?: AppContext\n onClose?: () => void\n}\n\nexport type MessageTypeOptions = Omit\nexport interface MessageIntance {\n id: string\n close: () => void\n}\n\nexport type MessageFn = (message: string, options?: MessageTypeOptions) => MessageIntance\nexport interface Message {\n (options: MessageOptions): MessageIntance\n info: MessageFn\n success: MessageFn\n error: MessageFn\n warning: MessageFn\n closeAll: () => void\n _context?: AppContext | null\n}\n\nconst instances: MessageIntance[] = []\nlet wrap: HTMLDivElement | null = null\nlet seed = 0\nconst defaultOptions: MessageOptions = {\n duration: 3000,\n}\n\nconst message: Message = (options: MessageOptions) => {\n const id = 'message-' + seed++\n const props = {\n ...defaultOptions,\n ...options,\n id,\n }\n\n if (!wrap) {\n wrap = document.createElement('div')\n wrap.className = 'message-wrap'\n wrap.style.cssText = `\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n z-index: 6000;\n pointer-events: none;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n padding: 15px;\n background-color: rgba(255, 255, 255, 0);\n transition: all 1s ease-in-out;\n align-items: center;\n `\n document.body.appendChild(wrap)\n }\n\n const vm = createVNode(MessageComponent, props, null)\n const div = document.createElement('div')\n\n vm.appContext = options.ctx || message._context || null\n vm.props!.onClose = options.onClose\n vm.props!.onDestroy = () => {\n if (wrap && wrap.childNodes.length <= 1) {\n wrap.remove()\n wrap = null\n }\n render(null, div)\n }\n\n render(vm, div)\n wrap.appendChild(div.firstElementChild!)\n\n const instance = {\n id,\n close: () => vm?.component?.exposed?.close(),\n }\n\n instances.push(instance)\n return instance\n}\n\nmessage.success = (msg: string, options?: MessageTypeOptions) => message({ ...options, type: 'success', message: msg })\nmessage.info = (msg: string, options?: MessageTypeOptions) => message({ ...options, type: 'info', message: msg })\nmessage.warning = (msg: string, options?: MessageTypeOptions) => message({ ...options, type: 'warning', message: msg })\nmessage.error = (msg: string, options?: MessageTypeOptions) => message({ ...options, type: 'error', message: msg })\n\nmessage.closeAll = function() {\n for (let i = instances.length - 1; i >= 0; i--) {\n instances[i].close()\n }\n}\n\nexport default message","/**\r\n * 将普通文本转为带段落信息的HTML字符串\r\n * @param text 文本\r\n */\r\nexport const parseText2Paragraphs = (text: string) => {\r\n const htmlText = text.replace(/[\\n\\r]+/g, '
    ')\r\n const paragraphs = htmlText.split('
    ')\r\n let string = ''\r\n for (const paragraph of paragraphs) {\r\n if (paragraph) string += `
    ${paragraph}
    `\r\n }\r\n return string\r\n}","interface ImageSize {\n width: number\n height: number\n}\n\n/**\n * 获取图片的原始宽高\n * @param src 图片地址\n */\nexport const getImageSize = (src: string): Promise => {\n return new Promise(resolve => {\n const img = document.createElement('img')\n img.src = src\n img.style.opacity = '0'\n document.body.appendChild(img)\n\n img.onload = () => {\n const imgWidth = img.clientWidth\n const imgHeight = img.clientHeight\n \n img.onload = null\n img.onerror = null\n\n document.body.removeChild(img)\n\n resolve({ width: imgWidth, height: imgHeight })\n }\n\n img.onerror = () => {\n img.onload = null\n img.onerror = null\n }\n })\n}\n\n/**\n * 读取图片文件的dataURL\n * @param file 图片文件\n */\nexport const getImageDataURL = (file: File): Promise => {\n return new Promise(resolve => {\n const reader = new FileReader()\n reader.addEventListener('load', () => {\n resolve(reader.result as string)\n })\n reader.readAsDataURL(file)\n })\n}","export const VIEWPORT_SIZE = 1000","import type { BarChartOptions, LineChartOptions, PieChartOptions } from 'chartist'\n\nexport const enum ShapePathFormulasKeys {\n ROUND_RECT = 'roundRect',\n ROUND_RECT_DIAGONAL = 'roundRectDiagonal',\n ROUND_RECT_SINGLE = 'roundRectSingle',\n ROUND_RECT_SAMESIDE = 'roundRectSameSide',\n CUT_RECT_DIAGONAL = 'cutRectDiagonal',\n CUT_RECT_SINGLE = 'cutRectSingle',\n CUT_RECT_SAMESIDE = 'cutRectSameSide',\n CUT_ROUND_RECT = 'cutRoundRect',\n MESSAGE = 'message',\n ROUND_MESSAGE = 'roundMessage',\n L = 'L',\n RING_RECT = 'ringRect',\n PLUS = 'plus',\n TRIANGLE = 'triangle',\n PARALLELOGRAM_LEFT = 'parallelogramLeft',\n PARALLELOGRAM_RIGHT = 'parallelogramRight',\n TRAPEZOID = 'trapezoid',\n BULLET = 'bullet',\n INDICATOR = 'indicator',\n}\n\nexport const enum ElementTypes {\n TEXT = 'text',\n IMAGE = 'image',\n SHAPE = 'shape',\n LINE = 'line',\n CHART = 'chart',\n TABLE = 'table',\n LATEX = 'latex',\n VIDEO = 'video',\n AUDIO = 'audio',\n}\n\n/**\n * 元素阴影\n * \n * h: 水平偏移量\n * \n * v: 垂直偏移量\n * \n * blur: 模糊程度\n * \n * color: 阴影颜色\n */\nexport interface PPTElementShadow {\n h: number\n v: number\n blur: number\n color: string\n}\n\n/**\n * 元素边框\n * \n * style?: 边框样式(实线或虚线)\n * \n * width?: 边框宽度\n * \n * color?: 边框颜色\n */\nexport interface PPTElementOutline {\n style?: 'dashed' | 'solid'\n width?: number\n color?: string\n}\n\n/**\n * 元素超链接\n * \n * type: 链接类型(网页、幻灯片页面)\n * \n * target: 目标地址(网页链接、幻灯片页面ID)\n */\nexport interface PPTElementLink {\n type: 'web' | 'slide'\n target: string\n}\n\n\n/**\n * 元素通用属性\n * \n * id: 元素ID\n * \n * left: 元素水平方向位置(距离画布左侧)\n * \n * top: 元素垂直方向位置(距离画布顶部)\n * \n * lock?: 锁定元素\n * \n * groupId?: 组合ID(拥有相同组合ID的元素即为同一组合元素成员)\n * \n * width: 元素宽度\n * \n * height: 元素高度\n * \n * rotate: 旋转角度\n * \n * link?: 超链接\n * \n * name?: 元素名\n */\ninterface PPTBaseElement {\n id: string\n left: number\n top: number\n lock?: boolean\n groupId?: string\n width: number\n height: number\n rotate: number\n link?: PPTElementLink\n name?: string\n}\n\n\n/**\n * 文本元素\n * \n * type: 元素类型(text)\n * \n * content: 文本内容(HTML字符串)\n * \n * defaultFontName: 默认字体(会被文本内容中的HTML内联样式覆盖)\n * \n * defaultColor: 默认颜色(会被文本内容中的HTML内联样式覆盖)\n * \n * outline?: 边框\n * \n * fill?: 填充色\n * \n * lineHeight?: 行高(倍),默认1.5\n * \n * wordSpace?: 字间距,默认0\n * \n * opacity?: 不透明度,默认1\n * \n * shadow?: 阴影\n * \n * paragraphSpace?: 段间距,默认 5px\n * \n * vertical?: 竖向文本\n */\nexport interface PPTTextElement extends PPTBaseElement {\n type: 'text'\n content: string\n defaultFontName: string\n defaultColor: string\n outline?: PPTElementOutline\n fill?: string\n lineHeight?: number\n wordSpace?: number\n opacity?: number\n shadow?: PPTElementShadow\n paragraphSpace?: number\n vertical?: boolean\n}\n\n\n/**\n * 图片翻转、形状翻转\n * \n * flipH?: 水平翻转\n * \n * flipV?: 垂直翻转\n */\nexport interface ImageOrShapeFlip {\n flipH?: boolean\n flipV?: boolean\n}\n\n/**\n * 图片滤镜\n * \n * https://developer.mozilla.org/zh-CN/docs/Web/CSS/filter\n * \n * 'blur'?: 模糊,默认0(px)\n * \n * 'brightness'?: 亮度,默认100(%)\n * \n * 'contrast'?: 对比度,默认100(%)\n * \n * 'grayscale'?: 灰度,默认0(%)\n * \n * 'saturate'?: 饱和度,默认100(%)\n * \n * 'hue-rotate'?: 色相旋转,默认0(deg)\n * \n * 'opacity'?: 不透明度,默认100(%)\n */\nexport type ImageElementFilterKeys = 'blur' | 'brightness' | 'contrast' | 'grayscale' | 'saturate' | 'hue-rotate' | 'opacity'\nexport interface ImageElementFilters {\n 'blur'?: string\n 'brightness'?: string\n 'contrast'?: string\n 'grayscale'?: string\n 'saturate'?: string\n 'hue-rotate'?: string\n 'opacity'?: string\n}\n\nexport type ImageClipDataRange = [[number, number], [number, number]]\n\n/**\n * 图片裁剪\n * \n * range: 裁剪范围,例如:[[10, 10], [90, 90]] 表示裁取原图从左上角 10%, 10% 到 90%, 90% 的范围\n * \n * shape: 裁剪形状,见 configs/imageClip.ts CLIPPATHS \n */\nexport interface ImageElementClip {\n range: ImageClipDataRange\n shape: string\n}\n\n/**\n * 图片元素\n * \n * type: 元素类型(image)\n * \n * fixedRatio: 固定图片宽高比例\n * \n * src: 图片地址\n * \n * outline?: 边框\n * \n * filters?: 图片滤镜\n * \n * clip?: 裁剪信息\n * \n * flipH?: 水平翻转\n * \n * flipV?: 垂直翻转\n * \n * shadow?: 阴影\n */\nexport interface PPTImageElement extends PPTBaseElement {\n type: 'image'\n fixedRatio: boolean\n src: string\n outline?: PPTElementOutline\n filters?: ImageElementFilters\n clip?: ImageElementClip\n flipH?: boolean\n flipV?: boolean\n shadow?: PPTElementShadow\n colorMask?: string\n}\n\n\n/**\n * 形状渐变\n * \n * type: 渐变类型(径向、线性)\n * \n * color: 渐变颜色\n * \n * rotate: 渐变角度(线性渐变)\n */\nexport interface ShapeGradient {\n type: 'linear' | 'radial'\n color: [string, string]\n rotate: number\n}\n\nexport type ShapeTextAlign = 'top' | 'middle' | 'bottom' \n\n/**\n * 形状内文本\n * \n * content: 文本内容(HTML字符串)\n * \n * defaultFontName: 默认字体(会被文本内容中的HTML内联样式覆盖)\n * \n * defaultColor: 默认颜色(会被文本内容中的HTML内联样式覆盖)\n * \n * align: 文本对齐方向(垂直方向)\n */\nexport interface ShapeText {\n content: string\n defaultFontName: string\n defaultColor: string\n align: ShapeTextAlign\n}\n\n/**\n * 形状元素\n * \n * type: 元素类型(shape)\n * \n * viewBox: SVG的viewBox属性,例如 [1000, 1000] 表示 '0 0 1000 1000'\n * \n * path: 形状路径,SVG path 的 d 属性\n * \n * fixedRatio: 固定形状宽高比例\n * \n * fill: 填充,不存在渐变时生效\n * \n * gradient?: 渐变,该属性存在时将优先作为填充\n * \n * outline?: 边框\n * \n * opacity?: 不透明度\n * \n * flipH?: 水平翻转\n * \n * flipV?: 垂直翻转\n * \n * shadow?: 阴影\n * \n * special?: 特殊形状(标记一些难以解析的形状,例如路径使用了 L Q C A 以外的类型,该类形状在导出后将变为图片的形式)\n * \n * text?: 形状内文本\n * \n * pathFormula?: 形状路径计算公式\n * 一般情况下,形状的大小变化时仅由宽高基于 viewBox 的缩放比例来调整形状,而 viewBox 本身和 path 不会变化,\n * 但也有一些形状希望能更精确的控制一些关键点的位置,此时就需要提供路径计算公式,通过在缩放时更新 viewBox 并重新计算 path 来重新绘制形状\n * \n * keypoint?: 关键点位置百分比\n */\nexport interface PPTShapeElement extends PPTBaseElement {\n type: 'shape'\n viewBox: [number, number]\n path: string\n fixedRatio: boolean\n fill: string\n gradient?: ShapeGradient\n outline?: PPTElementOutline\n opacity?: number\n flipH?: boolean\n flipV?: boolean\n shadow?: PPTElementShadow\n special?: boolean\n text?: ShapeText\n pathFormula?: ShapePathFormulasKeys\n keypoint?: number\n}\n\n\nexport type LinePoint = '' | 'arrow' | 'dot' \n\n/**\n * 线条元素\n * \n * type: 元素类型(line)\n * \n * start: 起点位置([x, y])\n * \n * end: 终点位置([x, y])\n * \n * style: 线条样式(实线、虚线)\n * \n * color: 线条颜色\n * \n * points: 端点样式([起点样式, 终点样式],可选:无、箭头、圆点)\n * \n * shadow?: 阴影\n * \n * broken?: 折线控制点位置([x, y])\n * \n * curve?: 二次曲线控制点位置([x, y])\n * \n * cubic?: 三次曲线控制点位置([[x1, y1], [x2, y2]])\n */\nexport interface PPTLineElement extends Omit {\n type: 'line'\n start: [number, number]\n end: [number, number]\n style: 'solid' | 'dashed'\n color: string\n points: [LinePoint, LinePoint]\n shadow?: PPTElementShadow\n broken?: [number, number]\n curve?: [number, number]\n cubic?: [[number, number], [number, number]]\n}\n\n\nexport type PresetChartType = 'bar' | 'horizontalBar' | 'line' | 'area' | 'scatter' | 'pie' | 'ring'\nexport type ChartType = 'bar' | 'line' | 'pie'\nexport type ChartOptions = LineChartOptions & BarChartOptions & PieChartOptions\nexport interface ChartData {\n labels: string[]\n legends: string[]\n series: number[][]\n}\n\n/**\n * 图表元素\n * \n * type: 元素类型(chart)\n * \n * fill?: 填充色\n * \n * chartType: 图表基础类型(bar/line/pie),所有图表类型都是由这三种基本类型衍生而来\n * \n * data: 图表数据\n * \n * options?: 图表配置项\n * \n * outline?: 边框\n * \n * themeColor: 主题色\n * \n * gridColor?: 网格&坐标颜色\n * \n * legend?: 图例/位置\n */\nexport interface PPTChartElement extends PPTBaseElement {\n type: 'chart'\n fill?: string\n chartType: ChartType\n data: ChartData\n options?: ChartOptions\n outline?: PPTElementOutline\n themeColor: string[]\n gridColor?: string\n legend?: '' | 'top' | 'bottom'\n}\n\n\n/**\n * 表格单元格样式\n * \n * bold?: 加粗\n * \n * em?: 斜体\n * \n * underline?: 下划线\n * \n * strikethrough?: 删除线\n * \n * color?: 字体颜色\n * \n * backcolor?: 填充色\n * \n * fontsize?: 字体大小\n * \n * fontname?: 字体\n * \n * align?: 对齐方式\n */\nexport interface TableCellStyle {\n bold?: boolean\n em?: boolean\n underline?: boolean\n strikethrough?: boolean\n color?: string\n backcolor?: string\n fontsize?: string\n fontname?: string\n align?: 'left' | 'center' | 'right'\n}\n\n\n/**\n * 表格单元格\n * \n * id: 单元格ID\n * \n * colspan: 合并列数\n * \n * rowspan: 合并行数\n * \n * text: 文字内容\n * \n * style?: 单元格样式\n */\nexport interface TableCell {\n id: string\n colspan: number\n rowspan: number\n text: string\n style?: TableCellStyle\n}\n\n/**\n * 表格主题\n * \n * color: 主题色\n * \n * rowHeader: 标题行\n * \n * rowFooter: 汇总行\n * \n * colHeader: 第一列\n * \n * colFooter: 最后一列\n */\nexport interface TableTheme {\n color: string\n rowHeader: boolean\n rowFooter: boolean\n colHeader: boolean\n colFooter: boolean\n}\n\n/**\n * 表格元素\n * \n * type: 元素类型(table)\n * \n * outline: 边框\n * \n * theme?: 主题\n * \n * colWidths: 列宽数组,如[30, 50, 20]表示三列宽度分别为30%, 50%, 20%\n * \n * cellMinHeight: 单元格最小高度\n * \n * data: 表格数据\n */\nexport interface PPTTableElement extends PPTBaseElement {\n type: 'table'\n outline: PPTElementOutline\n theme?: TableTheme\n colWidths: number[]\n cellMinHeight: number\n data: TableCell[][]\n}\n\n\n/**\n * LaTeX元素(公式)\n * \n * type: 元素类型(latex)\n * \n * latex: latex代码\n * \n * path: svg path\n * \n * color: 颜色\n * \n * strokeWidth: 路径宽度\n * \n * viewBox: SVG的viewBox属性\n * \n * fixedRatio: 固定形状宽高比例\n */\nexport interface PPTLatexElement extends PPTBaseElement {\n type: 'latex'\n latex: string\n path: string\n color: string\n strokeWidth: number\n viewBox: [number, number]\n fixedRatio: boolean\n}\n\n/**\n * 视频元素\n * \n * type: 元素类型(video)\n * \n * src: 视频地址\n * \n * autoplay: 自动播放\n * \n * poster: 预览封面\n * \n * ext: 视频后缀,当资源链接缺少后缀时用该字段确认资源类型\n */\nexport interface PPTVideoElement extends PPTBaseElement {\n type: 'video'\n src: string\n autoplay: boolean\n poster?: string\n ext?: string\n}\n\n/**\n * 音频元素\n * \n * type: 元素类型(audio)\n * \n * fixedRatio: 固定图标宽高比例\n * \n * color: 图标颜色\n * \n * loop: 循环播放\n * \n * autoplay: 自动播放\n * \n * src: 音频地址\n * \n * ext: 音频后缀,当资源链接缺少后缀时用该字段确认资源类型\n */\nexport interface PPTAudioElement extends PPTBaseElement {\n type: 'audio'\n fixedRatio: boolean\n color: string\n loop: boolean\n autoplay: boolean\n src: string\n ext?: string\n}\n\n\nexport type PPTElement = PPTTextElement | PPTImageElement | PPTShapeElement | PPTLineElement | PPTChartElement | PPTTableElement | PPTLatexElement | PPTVideoElement | PPTAudioElement\n\n\n/**\n * 元素动画\n * \n * id: 动画id\n * \n * elId: 元素ID\n * \n * effect: 动画效果\n * \n * type: 动画类型(入场、退场、强调)\n * \n * duration: 动画持续时间\n * \n * trigger: 动画触发方式(click - 单击时、meantime - 与上一动画同时、auto - 上一动画之后)\n */\nexport interface PPTAnimation {\n id: string\n elId: string\n effect: string\n type: 'in' | 'out' | 'attention'\n duration: number\n trigger: 'click' | 'meantime' | 'auto'\n}\n\n/**\n * 幻灯片背景\n * \n * type: 背景类型(纯色、图片、渐变)\n * \n * color?: 背景颜色(纯色)\n * \n * image?: 图片地址(图片)\n * \n * imageSize?: 图片填充方式\n * \n * gradientType?: 渐变类型(线性、径向)\n * \n * gradientColor?: 渐变颜色\n * \n * gradientRotate?: 渐变角度(线性)\n */\nexport interface SlideBackground {\n type: 'solid' | 'image' | 'gradient'\n color?: string\n image?: string\n imageSize?: 'cover' | 'contain' | 'repeat'\n gradientType?: 'linear' | 'radial'\n gradientColor?: [string, string]\n gradientRotate?: number\n}\n\n\nexport type TurningMode = 'no' | 'fade' | 'slideX' | 'slideY' | 'random' | 'slideX3D' | 'slideY3D' | 'rotate' | 'scaleY' | 'scaleX' | 'scale' | 'scaleReverse'\n\n/**\n * 幻灯片页面\n * \n * id: 页面ID\n * \n * elements: 元素集合\n * \n * remark?: 备注\n * \n * background?: 页面背景\n * \n * animations?: 元素动画集合\n * \n * turningMode?: 翻页方式\n */\nexport interface Slide {\n id: string\n elements: PPTElement[]\n remark?: string\n background?: SlideBackground\n animations?: PPTAnimation[]\n turningMode?: TurningMode\n}\n\n/**\n * 幻灯片主题\n * \n * backgroundColor: 页面背景颜色\n * \n * themeColor: 主题色,用于默认创建的形状颜色等\n * \n * fontColor: 字体颜色\n * \n * fontName: 字体\n */\nexport interface SlideTheme {\n backgroundColor: string\n themeColor: string\n fontColor: string\n fontName: string\n outline: PPTElementOutline\n shadow: PPTElementShadow\n}\n","/* eslint-disable max-lines */\n\n// 非专业设计人士可以用该应用绘制基本形状:https://github.com/pipipi-pikachu/svgPathCreator\n\nimport { ShapePathFormulasKeys } from '@/types/slides'\n\nexport interface ShapePoolItem {\n viewBox: [number, number]\n path: string\n special?: boolean\n pathFormula?: ShapePathFormulasKeys\n outlined?: boolean\n pptxShapeType?: string\n title?: string\n}\n\ninterface ShapeListItem {\n type: string\n children: ShapePoolItem[]\n}\n\nexport const SHAPE_PATH_FORMULAS = {\n [ShapePathFormulasKeys.ROUND_RECT]: {\n editable: true,\n defaultValue: 0.125,\n range: [0, 0.5],\n relative: 'left',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const radius = Math.min(width, height) * value\n return `M ${radius} 0 L ${width - radius} 0 Q ${width} 0 ${width} ${radius} L ${width} ${height - radius} Q ${width} ${height} ${width - radius} ${height} L ${radius} ${height} Q 0 ${height} 0 ${height - radius} L 0 ${radius} Q 0 0 ${radius} 0 Z`\n }\n },\n [ShapePathFormulasKeys.CUT_RECT_DIAGONAL]: {\n editable: true,\n defaultValue: 0.2,\n range: [0, 0.9],\n relative: 'right',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const radius = Math.min(width, height) * value\n return `M 0 ${height - radius} L 0 0 L ${width - radius} 0 L ${width} ${radius} L ${width} ${height} L ${radius} ${height} Z`\n }\n },\n [ShapePathFormulasKeys.CUT_RECT_SINGLE]: {\n editable: true,\n defaultValue: 0.2,\n range: [0, 0.9],\n relative: 'right',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const radius = Math.min(width, height) * value\n return `M 0 ${height} L 0 0 L ${width - radius} 0 L ${width} ${radius} L ${width} ${height} Z`\n }\n },\n [ShapePathFormulasKeys.CUT_RECT_SAMESIDE]: {\n editable: true,\n defaultValue: 0.2,\n range: [0, 0.5],\n relative: 'left',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const radius = Math.min(width, height) * value\n return `M 0 ${radius} L ${radius} 0 L ${width - radius} 0 L ${width} ${radius} L ${width} ${height} L 0 ${height} Z`\n }\n },\n [ShapePathFormulasKeys.ROUND_RECT_DIAGONAL]: {\n editable: true,\n defaultValue: 0.125,\n range: [0, 1],\n relative: 'left',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const radius = Math.min(width, height) * value\n return `M ${radius} 0 L ${width} 0 L ${width} ${height - radius} Q ${width} ${height} ${width - radius} ${height} L 0 ${height} L 0 ${radius} Q 0 0 ${radius} 0 Z`\n }\n },\n [ShapePathFormulasKeys.ROUND_RECT_SINGLE]: {\n editable: true,\n defaultValue: 0.125,\n range: [0, 1],\n relative: 'right',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const radius = Math.min(width, height) * value\n return `M 0 0 L ${width - radius} 0 Q ${width} 0 ${width} ${radius} L ${width} ${height} L 0 ${height} L 0 0 Z`\n }\n },\n [ShapePathFormulasKeys.ROUND_RECT_SAMESIDE]: {\n editable: true,\n defaultValue: 0.125,\n range: [0, 0.5],\n relative: 'left',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const radius = Math.min(width, height) * value\n return `M 0 ${radius} Q 0 0 ${radius} 0 L ${width - radius} 0 Q ${width} 0 ${width} ${radius} L ${width} ${height} L 0 ${height} Z`\n }\n },\n [ShapePathFormulasKeys.CUT_ROUND_RECT]: {\n editable: true,\n defaultValue: 0.125,\n range: [0, 0.5],\n relative: 'left',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const radius = Math.min(width, height) * value\n return `M ${radius} 0 L ${width - radius} 0 L ${width} ${radius} L ${width} ${height} L 0 ${height} L 0 ${radius} Q 0 0 ${radius} 0 Z`\n }\n },\n [ShapePathFormulasKeys.MESSAGE]: {\n formula: (width: number, height: number) => {\n const arrowWidth = width * 0.2\n const arrowheight = height * 0.2\n return `M 0 0 L ${width} 0 L ${width} ${height - arrowheight} L ${width / 2} ${height - arrowheight} L ${width / 2 - arrowWidth} ${height} L ${width / 2 - arrowWidth} ${height - arrowheight} L 0 ${height - arrowheight} Z`\n }\n },\n [ShapePathFormulasKeys.ROUND_MESSAGE]: {\n formula: (width: number, height: number) => {\n const radius = Math.min(width, height) * 0.125\n const arrowWidth = width * 0.2\n const arrowheight = height * 0.2\n return `M 0 ${radius} Q 0 0 ${radius} 0 L ${width - radius} 0 Q ${width} 0 ${width} ${radius} L ${width} ${height - radius - arrowheight} Q ${width} ${height - arrowheight} ${width - radius} ${height - arrowheight} L ${width / 2} ${height - arrowheight} L ${width / 2 - arrowWidth} ${height} L ${width / 2 - arrowWidth} ${height - arrowheight} L ${radius} ${height - arrowheight} Q 0 ${height - arrowheight} 0 ${height - radius - arrowheight} L 0 ${radius} Z`\n }\n },\n [ShapePathFormulasKeys.L]: {\n editable: true,\n defaultValue: 0.25,\n range: [0.1, 0.9],\n relative: 'left',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const lineWidth = Math.min(width, height) * value\n return `M 0 0 L 0 ${height} L ${width} ${height} L ${width} ${height - lineWidth} L ${lineWidth} ${height - lineWidth} L ${lineWidth} 0 Z`\n }\n },\n [ShapePathFormulasKeys.RING_RECT]: {\n editable: true,\n defaultValue: 0.25,\n range: [0.1, 0.45],\n relative: 'left',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const lineWidth = Math.min(width, height) * value\n return `M 0 0 ${width} 0 ${width} ${height} L 0 ${height} L 0 0 Z M ${lineWidth} ${lineWidth} L ${lineWidth} ${height - lineWidth} L ${width - lineWidth} ${height - lineWidth} L ${width - lineWidth} ${lineWidth} Z`\n }\n },\n [ShapePathFormulasKeys.PLUS]: {\n editable: true,\n defaultValue: 0.25,\n range: [0.1, 0.9],\n relative: 'center',\n getBaseSize: (width: number, height: number) => Math.min(width, height),\n formula: (width: number, height: number, value: number) => {\n const lineWidth = Math.min(width, height) * value\n return `M ${width / 2 - lineWidth / 2} 0 L ${width / 2 - lineWidth / 2} ${height / 2 - lineWidth / 2} L 0 ${height / 2 - lineWidth / 2} L 0 ${height / 2 + lineWidth / 2} L ${width / 2 - lineWidth / 2} ${height / 2 + lineWidth / 2} L ${width / 2 - lineWidth / 2} ${height} L ${width / 2 + lineWidth / 2} ${height} L ${width / 2 + lineWidth / 2} ${height / 2 + lineWidth / 2} L ${width} ${height / 2 + lineWidth / 2} L ${width} ${height / 2 - lineWidth / 2} L ${width / 2 + lineWidth / 2} ${height / 2 - lineWidth / 2} L ${width / 2 + lineWidth / 2} 0 Z`\n }\n },\n [ShapePathFormulasKeys.TRIANGLE]: {\n editable: true,\n defaultValue: 0.5,\n range: [0, 1],\n relative: 'left',\n getBaseSize: (width: number) => width,\n formula: (width: number, height: number, value: number) => {\n const vertex = width * value\n return `M ${vertex} 0 L 0 ${height} L ${width} ${height} Z`\n }\n },\n [ShapePathFormulasKeys.PARALLELOGRAM_LEFT]: {\n editable: true,\n defaultValue: 0.25,\n range: [0, 0.9],\n relative: 'left',\n getBaseSize: (width: number) => width,\n formula: (width: number, height: number, value: number) => {\n const point = width * value\n return `M ${point} 0 L ${width} 0 L ${width - point} ${height} L 0 ${height} Z`\n }\n },\n [ShapePathFormulasKeys.PARALLELOGRAM_RIGHT]: {\n editable: true,\n defaultValue: 0.25,\n range: [0, 0.9],\n relative: 'right',\n getBaseSize: (width: number) => width,\n formula: (width: number, height: number, value: number) => {\n const point = width * value\n return `M 0 0 L ${width - point} 0 L ${width} ${height} L ${point} ${height} Z`\n }\n },\n [ShapePathFormulasKeys.TRAPEZOID]: {\n editable: true,\n defaultValue: 0.25,\n range: [0, 0.5],\n relative: 'left',\n getBaseSize: (width: number) => width,\n formula: (width: number, height: number, value: number) => {\n const point = width * value\n return `M ${point} 0 L ${width - point} 0 L ${width} ${height} L 0 ${height} Z`\n }\n },\n [ShapePathFormulasKeys.BULLET]: {\n editable: true,\n defaultValue: 0.2,\n range: [0, 1],\n relative: 'top',\n getBaseSize: (width: number, height: number) => height,\n formula: (width: number, height: number, value: number) => {\n const point = height * value\n return `M ${width / 2} 0 L 0 ${point} L 0 ${height} L ${width} ${height} L ${width} ${point} Z`\n }\n },\n [ShapePathFormulasKeys.INDICATOR]: {\n editable: true,\n defaultValue: 0.2,\n range: [0, 0.9],\n relative: 'right',\n getBaseSize: (width: number) => width,\n formula: (width: number, height: number, value: number) => {\n const point = width * value\n return `M ${width} ${height / 2} L ${width - point} 0 L 0 0 L ${point} ${height / 2} L 0 ${height} L ${width - point} ${height} Z`\n }\n },\n}\n\nexport const SHAPE_LIST: ShapeListItem[] = [\n {\n type: '矩形',\n children: [\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 200 0 L 200 200 L 0 200 Z',\n pptxShapeType: 'rect',\n },\n {\n viewBox: [200, 200],\n path: 'M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z',\n pathFormula: ShapePathFormulasKeys.ROUND_RECT,\n pptxShapeType: 'roundRect',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z',\n pathFormula: ShapePathFormulasKeys.CUT_RECT_SINGLE,\n pptxShapeType: 'snip1Rect',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z',\n pathFormula: ShapePathFormulasKeys.CUT_RECT_SAMESIDE,\n pptxShapeType: 'snip2SameRect',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z',\n pathFormula: ShapePathFormulasKeys.CUT_RECT_DIAGONAL,\n pptxShapeType: 'snip2DiagRect',\n },\n {\n viewBox: [200, 200],\n path: 'M 50 0 L 150 0 L 200 50 L 200 200 L 0 200 L 0 50 Q 0 0 50 0 Z',\n pathFormula: ShapePathFormulasKeys.CUT_ROUND_RECT,\n pptxShapeType: 'snipRoundRect',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z',\n pathFormula: ShapePathFormulasKeys.ROUND_RECT_SINGLE,\n pptxShapeType: 'round1Rect',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z',\n pathFormula: ShapePathFormulasKeys.ROUND_RECT_SAMESIDE,\n pptxShapeType: 'round2SameRect',\n },\n {\n viewBox: [200, 200],\n path: 'M 50 0 L 200 0 L 200 150 Q 200 200 150 200 L 0 200 L 0 50 Q 0 0 50 0 Z',\n pathFormula: ShapePathFormulasKeys.ROUND_RECT_DIAGONAL,\n pptxShapeType: 'round2DiagRect',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 80 L 60 0 L 100 40 L 180 20 L 200 120 L 160 200 L 0 200 L 60 140 Z',\n title: '任意多边形',\n },\n ]\n },\n\n {\n type: '常用形状',\n children: [\n {\n viewBox: [200, 200],\n path: 'M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z',\n pptxShapeType: 'ellipse',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 0 200 L 200 200 L 100 0 Z',\n pathFormula: ShapePathFormulasKeys.TRIANGLE,\n pptxShapeType: 'triangle',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 0 200 L 200 200 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 70 20 L 0 160 Q 0 200 40 200 L 160 200 Q 200 200 200 160 L 130 20 Q 100 -20 70 20 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z',\n pathFormula: ShapePathFormulasKeys.PARALLELOGRAM_LEFT,\n pptxShapeType: 'parallelogram',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z',\n pathFormula: ShapePathFormulasKeys.PARALLELOGRAM_RIGHT,\n },\n {\n viewBox: [200, 200],\n path: 'M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z',\n pathFormula: ShapePathFormulasKeys.TRAPEZOID,\n pptxShapeType: 'trapezoid',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z',\n pptxShapeType: 'diamond',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z',\n pathFormula: ShapePathFormulasKeys.BULLET,\n },\n {\n viewBox: [200, 200],\n path: 'M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z',\n pathFormula: ShapePathFormulasKeys.INDICATOR,\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 C 80 20 120 20 200 0 C 180 80 180 120 200 200 C 80 180 120 180 0 200 C 20 120 20 80 0 0 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 10 10 C 60 0 140 0 190 10 C 200 60 200 140 190 190 C 140 200 60 200 10 190 C 0 140 0 60 10 10 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z',\n pptxShapeType: 'pie',\n },\n {\n viewBox: [200, 200],\n path: 'M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z',\n pptxShapeType: 'chord',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z',\n pptxShapeType: 'teardrop',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z',\n pptxShapeType: 'pentagon',\n },\n {\n viewBox: [200, 200],\n path: 'M 40 0 L 160 0 L 200 100 L 160 200 L 40 200 L 0 100 Z',\n pptxShapeType: 'hexagon',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z',\n pptxShapeType: 'octagon',\n },\n {\n viewBox: [200, 200],\n path: 'M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z',\n pathFormula: ShapePathFormulasKeys.L\n },\n {\n viewBox: [200, 200],\n path: 'M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z',\n pathFormula: ShapePathFormulasKeys.RING_RECT,\n },\n {\n viewBox: [200, 200],\n path: 'M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z',\n pathFormula: ShapePathFormulasKeys.PLUS,\n },\n {\n viewBox: [200, 200],\n path: 'M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z',\n pathFormula: ShapePathFormulasKeys.MESSAGE,\n },\n {\n viewBox: [200, 200],\n path: 'M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z',\n pathFormula: ShapePathFormulasKeys.ROUND_MESSAGE,\n },\n {\n viewBox: [200, 200],\n path: 'M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 120 80 L 200 100 L 120 120 L 100 200 L 80 120 L 0 100 L 80 80 L 100 0 Z',\n pptxShapeType: 'star4',\n },\n {\n viewBox: [1024, 1024],\n path: 'M1018.67652554 400.05983681l-382.95318779-5.89158658L512 34.78141155 388.27666225 394.16825023l-382.95318779 5.89158658L311.68602415 629.83174977l-117.83174978 365.27842665 312.25413766-223.88032637 312.25413904 223.88032637-117.83175116-365.27842665 318.14572563-229.77191296z',\n pptxShapeType: 'star5',\n special: true,\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 140 60 L 200 60 L 160 100 L 200 140 L 140 140 L 100 200 L 60 140 L 0 140 L 40 100 L 0 60 L 60 60 L 100 0 Z',\n pptxShapeType: 'star6',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 80 40 L 20 20 L 40 80 L 0 100 L 40 120 L 20 180 L 80 160 L 100 200 L 120 160 L 180 180 L 160 120 L 200 100 L 160 80 L 180 20 L 120 40 L 100 0 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 200 0 C 80 40 80 160 200 200 C -60 200 -60 0 200 0 Z',\n },\n ],\n },\n \n {\n type: '箭头',\n children: [\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z',\n pptxShapeType: 'upArrow',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z',\n pptxShapeType: 'downArrow',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z',\n pptxShapeType: 'leftArrow',\n },\n {\n viewBox: [200, 200],\n path: 'M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z',\n pptxShapeType: 'rightArrow',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z',\n pptxShapeType: 'upDownArrow',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z',\n pptxShapeType: 'leftRightArrow',\n },\n {\n viewBox: [200, 200],\n path: 'M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z',\n pptxShapeType: 'notchedRightArrow',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z',\n pptxShapeType: 'chevron',\n },\n {\n viewBox: [200, 200],\n path: 'M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z',\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z',\n pptxShapeType: 'homePlate',\n },\n {\n viewBox: [200, 200],\n path: 'M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z'\n },\n {\n viewBox: [200, 200],\n path: 'M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z'\n },\n {\n viewBox: [1024, 1024],\n path: 'M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z',\n special: true,\n },\n ],\n },\n\n {\n type: '其他形状',\n children: [\n {\n viewBox: [1024, 1024],\n path: 'M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M997.8886764 504.17210418L537.2729208 43.89182982c-13.97838539-13.97838539-36.56745619-13.97838539-50.5458416 0L26.1113236 504.17210418c-13.41924998 13.41924998-21.02349164 31.64706454-21.02349163 50.65766867 0 39.47496036 32.09437288 71.56933323 71.56933324 71.56933323h48.53295408V954.83524937c0 19.79339373 15.99127289 35.78466661 35.78466663 35.78466662H440.43066677V740.12724968h125.24633315v250.49266631h297.34821416c19.79339373 0 35.78466661-15.99127289 35.78466663-35.78466662V626.39910608h48.53295408c19.01060414 0 37.23841869-7.49241457 50.65766869-21.02349163 27.84494371-27.95677079 27.84494371-73.24673948-0.11182708-101.20351027z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M1009.13013121 349.27572283L674.72427717 14.86986879c-8.82158299-8.82158299-20.35749924-13.16451618-31.89341544-13.16451618s-23.07183245 4.34293316-31.89341547 13.16451618L392.29790453 233.6451272c-16.5574327-1.90003326-33.25058207-2.71433322-49.94373146-2.71433324-99.34459624 0-198.68919249 32.70771543-280.25490606 98.12314628-20.90036589 16.69314938-22.52896582 48.04369819-3.66434987 67.04403081l246.59717401 246.59717401-292.33368895 292.06225564c-3.52863319 3.52863319-5.83581644 8.27871636-6.24296642 13.30023282l-4.61436649 50.48659809c-1.22144996 12.75736619 8.95729967 23.6146991 21.57894918 23.6146991 0.6785833 0 1.35716662 0 2.03574992-0.13571666l50.48659809-4.61436649c5.02151649-0.40714999 9.77159962-2.71433322 13.30023282-6.24296643l292.33368896-292.33368896 246.59717402 246.59717401c8.82158299 8.82158299 20.35749924 13.16451618 31.89341544 13.16451618 13.16451618 0 26.19331567-5.70009979 35.15061536-16.82886604 76.40848044-95.40881307 108.16617924-214.83947521 95.27309638-330.33435417l218.63954175-218.63954173c17.50744934-17.37173267 17.50744934-45.8722316 0-63.51539759z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M976.62005979 160.47737905c-0.39452595-0.39452595-80.35178503 78.64217259-239.47725131 237.50462156l-111.6508437-111.65084369 237.89914752-237.89914752c-125.19623464-75.35445635-286.03131335-56.02268482-390.31767264 48.26367449-81.92988882 81.92988882-112.57140424 200.15616502-83.37648398 310.09739626l2.36715569 8.81107954-372.82702222 372.69551356c-8.15353628 8.15353628-8.15353628 21.56741857 0 29.72095487l185.95323084 185.95323084c8.15353628 8.15353628 21.56741857 8.15353628 29.72095485 0l372.56400493-372.56400493 8.81107953 2.3671557c110.07273989 29.32642892 228.29901608-1.18357785 310.36041356-83.24497533 104.41786795-104.2863593 123.74963948-265.12143802 49.97328693-390.05465535z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m220.16 343.26755556l-239.616 332.23111111c-14.44977778 20.13866667-44.37333333 20.13866667-58.82311111 0L291.84 481.16622222c-4.32355555-6.03022222 0-14.44977778 7.39555555-14.44977777h53.36177778c11.60533333 0 22.64177778 5.57511111 29.46844445 15.13244444l81.00977777 112.41244444 178.85866667-248.03555555c6.82666667-9.44355555 17.74933333-15.13244445 29.46844445-15.13244445H724.76444445c7.39555555 0 11.71911111 8.41955555 7.39555555 14.44977778z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h418.70222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m188.18844445 703.37422223l-75.09333334-0.34133333L512 570.48177778l-112.98133333 134.71288889-75.20711112 0.34133333c-5.00622222 0-9.10222222-3.98222222-9.10222222-9.10222222 0-2.16177778 0.79644445-4.20977778 2.16177778-5.91644445l148.02488889-176.35555555L316.87111111 337.92c-1.36533333-1.70666667-2.16177778-3.75466667-2.16177778-5.91644445 0-5.00622222 4.096-9.10222222 9.10222222-9.10222222l75.20711112 0.34133334L512 458.06933333l112.98133333-134.71288888 75.09333334-0.34133334c5.00622222 0 9.10222222 3.98222222 9.10222222 9.10222222 0 2.16177778-0.79644445 4.20977778-2.16177778 5.91644445L559.21777778 514.27555555l147.91111111 176.35555556c1.36533333 1.70666667 2.16177778 3.75466667 2.16177778 5.91644444 0 5.00622222-4.096 9.10222222-9.10222222 9.10222223z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m218.45333333 537.03111112c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222H548.40888889v172.94222222c0 5.00622222-4.096 9.10222222-9.10222222 9.10222222h-54.61333334c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V548.40888889H302.64888889c-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222v-54.61333334c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h172.94222222V302.64888889c0-5.00622222 4.096-9.10222222 9.10222222-9.10222222h54.61333334c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v172.94222222h172.94222222c5.00622222 0 9.10222222 4.096 9.10222222 9.10222222v54.61333334z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m163.95377778 517.57511112L427.46311111 700.64355555c-1.59288889 1.13777778-3.41333333 1.70666667-5.34755556 1.70666667-5.00622222 0-9.10222222-4.096-9.10222222-9.10222222V331.88977778c0-1.93422222 0.56888889-3.75466667 1.70666667-5.34755556 2.95822222-4.096 8.64711111-5.00622222 12.74311111-2.048L675.95377778 505.17333333c0.79644445 0.56888889 1.47911111 1.25155555 2.048 2.048 2.95822222 3.98222222 2.048 9.67111111-2.048 12.62933334z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m200.81777778 666.39644445l-32.54044445 44.37333333c-2.95822222 4.096-8.64711111 4.89244445-12.74311111 1.93422222L479.34577778 577.76355555c-2.38933333-1.70666667-3.75466667-4.43733333-3.75466667-7.39555555V257.13777778c0-5.00622222 4.096-9.10222222 9.10222222-9.10222223h54.72711112c5.00622222 0 9.10222222 4.096 9.10222222 9.10222223v281.6l162.24711111 117.30488889c4.096 2.84444445 5.00622222 8.53333333 2.048 12.62933333z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M981.10577778 314.48177778c-25.6-61.09866667-62.464-115.93955555-109.34044445-163.04355556-46.87644445-46.99022222-101.60355555-83.968-162.70222222-109.568C646.59911111 15.58755555 580.38044445 2.27555555 512 2.27555555h-2.27555555c-68.83555555 0.34133333-135.39555555 13.99466667-198.08711112 40.84622223-60.52977778 25.94133333-114.80177778 62.80533333-161.22311111 109.79555555-46.42133333 46.99022222-82.83022222 101.60355555-108.08888889 162.47466667C16.27022222 378.42488889 3.072 445.44 3.41333333 514.38933333c0.34133333 78.96177778 19.22844445 157.35466667 54.49955556 227.44177778v172.94222222c0 28.89955555 23.43822222 52.33777778 52.224 52.33777778h172.71466666c69.97333333 35.38488889 148.13866667 54.272 226.98666667 54.61333334h2.38933333c68.03911111 0 133.91644445-13.19822222 196.03911112-39.02577778 60.75733333-25.37244445 115.37066667-61.78133333 162.13333333-108.31644445 46.87644445-46.53511111 83.74044445-100.92088889 109.568-161.56444444 26.73777778-62.80533333 40.39111111-129.59288889 40.73244445-198.54222223 0.22755555-69.29066667-13.19822222-136.53333333-39.59466667-199.79377777zM284.89955555 566.61333333c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955556 54.61333333-24.34844445 54.61333333-54.49955556 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955555-54.61333333s24.46222222-54.61333333 54.49955555-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z m227.10044445 0c-30.03733333 0-54.49955555-24.46222222-54.49955556-54.61333333s24.46222222-54.61333333 54.49955556-54.61333333 54.49955555 24.46222222 54.49955555 54.61333333-24.46222222 54.61333333-54.49955555 54.61333333z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM745.4750693 325.8561164l-267.95558363 371.52436096c-16.15876501 22.52048353-49.62140436 22.52048353-65.78016939 0L253.07805667 477.51948567c-4.83490607-6.74342161 0-16.15876501 8.27023406-16.15876499h59.67291961c12.97790576 0 25.31963967 6.23448413 32.95370188 16.92217123l90.59087157 125.70755774 200.01242995-277.37092701c7.63406221-10.56045272 19.84856175-16.92217125 32.95370189-16.92217124H737.20483524c8.27023407 0 13.10514012 9.41534338 8.27023406 16.158765z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h468.2224823c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM720.79160148 697.63494611c5.59831228 6.61618726 0.8906406 16.6677025-7.76129658 16.66770249h-74.94104404c-5.98001539 0-11.70556205-2.67192177-15.64982754-7.25235911L512 575.36271635l-110.43943332 131.68757314c-3.81703111 4.58043732-9.54257777 7.25235911-15.64982754 7.25235911H310.9696951c-8.65193717 0-13.35960887-10.05151525-7.76129658-16.66770249L458.81603326 512 303.20839852 326.36505389c-5.59831228-6.61618726-0.8906406-16.6677025 7.76129658-16.66770249h74.94104404c5.98001539 0 11.70556205 2.67192177 15.64982754 7.25235911L512 448.63728365l110.43943332-131.68757314c3.81703111-4.58043732 9.54257777-7.25235911 15.64982754-7.25235911H713.0303049c8.65193717 0 13.35960887 10.05151525 7.76129658 16.66770249L565.18396674 512l155.60763474 185.63494611z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM677.02297814 523.19662459L423.31764398 722.70011704c-9.41534338 7.37959347-23.28388974 0.76340622-23.28388975-11.19662459V312.62374191c0-11.9600308 13.86854636-18.70345241 23.28388975-11.19662457l253.70533416 199.37625807c7.25235911 5.72554666 7.25235911 16.6677025 0 22.39324918z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M980.2224823 3.06251924H43.7775177c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499846v936.4449646c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h936.4449646c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V43.7775177c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846zM756.28999077 542.53624885c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962H552.71499847v193.39624268c0 5.59831228-4.58043732 10.17874961-10.17874962 10.17874962h-61.0724977c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962V552.71499847H277.88875885c-5.59831228 0-10.17874961-4.58043732-10.17874962-10.17874962v-61.0724977c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h193.39624268V277.88875885c0-5.59831228 4.58043732-10.17874961 10.17874962-10.17874962h61.0724977c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v193.39624268h193.39624268c5.59831228 0 10.17874961 4.58043732 10.17874962 10.17874962v61.0724977z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M902.67315697 135.41705551L528.62204754 7.94466448C524.10877635 6.40354749 518.05438818 5.63298899 512 5.63298899s-12.10877635 0.7705585-16.62204754 2.31167549L121.32684303 135.41705551c-9.13662215 3.08223399-16.62204754 13.64989334-16.62204753 23.33691443v531.02488283c0 9.68702108 6.27454775 22.45627614 13.87005291 28.51066431L498.0198673 1013.9638196c3.85279247 2.9721542 8.8063828 4.51327118 13.87005291 4.51327118s10.12734022-1.54111698 13.87005291-4.51327118l379.4450189-295.67430252c7.59550517-5.94430839 13.87005291-18.71356345 13.87005291-28.51066431V158.75396994c0.22015956-9.68702108-7.26526581-20.14460066-16.40188796-23.33691443zM712.89560763 323.43332829L478.86598471 645.63685899c-7.04510625 9.68702108-21.57563786 9.68702108-28.6207441 0l-139.14084824-191.5388259c-4.18303182-5.8342286 0-13.9801327 7.15518603-13.9801327h60.76404132c5.61406904 0 11.0079785 2.75199463 14.31037204 7.26526582l71.22162091 97.97100864 166.11039557-228.74579323c3.30239355-4.51327118 8.58622323-7.26526581 14.31037204-7.26526581H705.7404216c7.15518602 0.11007979 11.33821785 8.25598388 7.15518603 14.09021248z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M959.86498307 186.28001231H797.00498922v-101.78749614c0-44.91373267-36.51626425-81.42999692-81.42999691-81.42999693H308.42500769c-44.91373267 0-81.42999692 36.51626425-81.42999691 81.42999693v101.78749614H64.13501693c-22.52048353 0-40.71499847 18.19451494-40.71499846 40.71499847v40.71499845c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874962h76.8495596l31.42688945 665.43575611c2.03574992 43.38692024 37.91584233 77.61296581 81.30276254 77.6129658h577.64404066c43.5141546 0 79.26701262-34.09881122 81.30276254-77.6129658l31.42688945-665.43575611H990.40123192c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874962v-40.71499845c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499847z m-254.46874039 0H318.60375732v-91.60874653h386.79248536v91.60874653z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M980.2224823 248.62485371H654.50249462V104.85001539c0-22.52048353-18.19451494-40.71499847-40.71499847-40.71499846H94.67126578v-50.89374808c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-71.25124732c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v997.5174623c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h71.25124732c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961V674.85999383h315.54123807v143.77483833c0 22.52048353 18.19451494 40.71499847 40.71499846 40.71499846h529.29497999c22.52048353 0 40.71499847-18.19451494 40.71499846-40.71499846V289.33985217c0-22.52048353-18.19451494-40.71499847-40.71499846-40.71499846z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M804.63905145 265.16532183V94.67126578h109.42155836c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961H109.93939019c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h109.42155836v170.49405605c0 103.6960117 53.94737296 194.92305513 135.3773699 246.83467817-81.42999692 51.91162303-135.37736988 143.13866646-135.3773699 246.83467817v170.49405605h-109.42155836c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v71.25124732c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h804.12121962c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-71.25124732c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961h-109.42155836V758.83467817c0-103.6960117-53.94737296-194.92305513-135.3773699-246.83467817 81.42999692-51.91162303 135.37736988-143.13866646 135.3773699-246.83467817z',\n special: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M1020.928 448.44373333l-35.36213334-373.4528c-1.79200001-19.3536-17.2032-34.64533332-36.55679999-36.55679999L575.55626667 3.072h-0.47786666c-3.82293334 0-6.8096 1.19466667-9.07946669 3.46453333L6.53653333 565.99893332c-4.65919999 4.65919999-4.65919999 12.1856 0 16.84480001l434.61973334 434.61973334c2.26986667 2.26986667 5.25653333 3.46453333 8.48213333 3.46453333s6.21226667-1.19466667 8.48213333-3.46453333l559.46239999-559.46239999c2.38933332-2.5088 3.584-5.97333334 3.34506668-9.55733335zM735.40266668 362.66666667c-42.17173333 0-76.45866667-34.28693333-76.45866667-76.45866667s34.28693333-76.45866667 76.45866667-76.45866667 76.45866667 34.28693333 76.45866665 76.45866667-34.28693333 76.45866667-76.45866665 76.45866667z',\n special: true,\n },\n ],\n },\n\n {\n type: '线性',\n children: [\n {\n viewBox: [1024, 1024],\n path: 'M1009.55537674 75.96950982l-61.38012212-61.38012214c-4.48769762-4.48769762-11.870684-4.48769762-16.3583816 0L14.44462326 931.67210859c-4.48769762 4.48769762-4.48769762 11.870684 0 16.35838159l61.38012212 61.38012214c4.48769762 4.48769762 11.870684 4.48769762 16.3583816 0L1009.41061232 92.18312698c4.63246205-4.34293316 4.63246205-11.72591956 0.14476442-16.21361716zM210.88996692 419.35075905c114.94296453 0 208.46079213-93.51782759 208.46079213-208.46079213s-93.51782759-208.46079213-208.46079213-208.4607921-208.46079213 93.51782759-208.4607921 208.4607921 93.51782759 208.46079213 208.4607921 208.46079213z m0-312.69118816c57.47148228 0 104.23039605 46.75891379 104.23039607 104.23039603s-46.75891379 104.23039605-104.23039607 104.23039607-104.23039605-46.75891379-104.23039603-104.23039607 46.75891379-104.23039605 104.23039603-104.23039603zM813.11003308 604.64924095c-114.94296453 0-208.46079213 93.51782759-208.46079213 208.46079213s93.51782759 208.46079213 208.46079213 208.4607921 208.46079213-93.51782759 208.4607921-208.4607921-93.51782759-208.46079213-208.4607921-208.46079213z m0 312.69118816c-57.47148228 0-104.23039605-46.75891379-104.23039607-104.23039603s46.75891379-104.23039605 104.23039607-104.23039607 104.23039605 46.75891379 104.23039603 104.23039607-46.75891379 104.23039605-104.23039603 104.23039603z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M1004.96017383 478.58365209L483.27851088 25.80594621c-4.00443838-3.45210207-9.11354943-5.3852792-14.49882864-5.38527921h-122.20441284c-10.21822208 0-14.91308089 12.70373557-7.18037228 19.33177152l483.57045622 419.77561022H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672657v82.85044938c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672657h807.92996557L339.25681303 984.24756148c-7.7327086 6.76612003-3.0378498 19.33177153 7.18037229 19.33177152h126.34693531c2.62359757 0 5.24719513-0.96658859 7.18037228-2.76168164L1004.96017383 545.41634791c20.2983601-17.67476253 20.2983601-49.1579333 0-66.83269582z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M1011.38217956 558.9924242L545.80649025 22.43713295c-17.81503843-20.62055629-49.79794206-20.62055629-67.75325638 0L12.61782044 558.9924242c-6.31241519 7.29434645-1.12220714 18.51641789 8.41655359 18.51641789h113.62347344c6.45269109 0 12.62483038-2.80551785 16.97338308-7.71517411L458.69516062 215.87758959V1005.77114384c0 6.1721393 5.04993216 11.22207145 11.22207144 11.22207145h84.16553588c6.1721393 0 11.22207145-5.04993216 11.22207144-11.22207145V215.87758959l307.06393007 353.91607839c4.20827679 4.90965626 10.38041608 7.71517413 16.97338308 7.71517411h113.62347344c9.53876074 0 14.72896878-11.22207145 8.41655359-18.51641789z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M1009.1026963 459.52804874H201.17273073l483.57045624-419.77561022c7.7327086-6.76612003 3.0378498-19.33177153-7.18037229-19.33177152h-122.20441283c-5.3852792 0-10.49439025 1.93317715-14.49882866 5.38527921L19.03982617 478.58365209c-20.2983601 17.67476253-20.2983601 49.1579333 0 66.69461175L543.89742302 1000.81765136c2.07126124 1.79509307 4.55677472 2.76168163 7.18037228 2.76168164h126.3469353c10.21822208 0 14.91308089-12.70373557 7.18037228-19.33177152L201.17273073 564.47195126H1009.1026963c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672657v-82.85044938c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672657z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M1002.96562597 446.49115791h-113.62347344c-6.45269109 0-12.62483038 2.80551785-16.97338308 7.71517411L565.30483938 808.12241041V18.22885616c0-6.1721393-5.04993216-11.22207145-11.22207144-11.22207145h-84.16553588c-6.1721393 0-11.22207145 5.04993216-11.22207144 11.22207145v789.89355425L151.63123055 454.20633202c-4.20827679-4.90965626-10.38041608-7.71517413-16.97338308-7.71517411h-113.62347344c-9.53876074 0-14.72896878 11.36234735-8.41655359 18.51641789L478.19350975 1001.56286705c17.81503843 20.62055629 49.79794206 20.62055629 67.75325638 0L1011.38217956 465.0075758c6.31241519-7.29434645 1.12220714-18.51641789-8.41655359-18.51641789z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M975.82443246 622.46726585H14.8973037c-6.07569962 0-11.04672658 4.97102697-11.04672658 11.04672658v82.85044937c0 6.07569962 4.97102697 11.04672658 11.04672658 11.04672659h835.6848661L651.32683905 980.10503902c-5.66144737 7.18037229-0.55233633 17.9509307 8.69929718 17.9509307h100.11095967c6.76612003 0 13.11798782-3.0378498 17.39859437-8.42312903l233.08593092-295.63802022c22.78387358-28.99765728 2.20934532-71.52755463-34.79718873-71.52755462zM1009.1026963 296.58883161H173.4178302l199.25533075-252.69387063c5.66144737-7.18037229 0.55233633-17.9509307-8.69929718-17.9509307h-100.11095967c-6.76612003 0-13.11798782 3.0378498-17.39859437 8.42312903L13.37837881 330.00517953c-22.78387358 28.99765728-2.20934532 71.52755463 34.65910466 71.52755462h961.06521283c6.07569962 0 11.04672658-4.97102697 11.04672658-11.04672658v-82.85044937c0-6.07569962-4.97102697-11.04672658-11.04672658-11.04672659z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M1010.75873115 64.13501693H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874961v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874964h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874964v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874961zM1010.75873115 858.07748691H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874964v81.42999691c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874961h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874961v-81.42999691c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874964zM1010.75873115 461.10625194H13.24126885c-5.59831228 0-10.17874961 4.58043732-10.17874961 10.17874959v81.42999694c0 5.59831228 4.58043732 10.17874961 10.17874961 10.17874959h997.5174623c5.59831228 0 10.17874961-4.58043732 10.17874961-10.17874959v-81.42999694c0-5.59831228-4.58043732-10.17874961-10.17874961-10.17874959z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M591.98717801 512l405.34042913-483.16579151c6.79427767-8.02960089 1.08090782-20.22841761-9.41933951-20.2284176h-123.22349044c-7.25752386 0-14.20621693 3.24272343-18.99309439 8.80167789L511.38233839 415.95362022 177.07299399 17.40746878c-4.63246205-5.55895447-11.58115512-8.80167789-18.99309439-8.80167789H34.85640916c-10.50024731 0-16.21361717 12.19881672-9.41933952 20.2284176L430.77749876 512 25.43706964 995.16579151c-6.79427767 8.02960089-1.08090782 20.22841761 9.41933952 20.2284176h123.22349044c7.25752386 0 14.20621693-3.24272343 18.99309439-8.80167789l334.3093444-398.54615144 334.30934441 398.54615144c4.63246205 5.55895447 11.58115512 8.80167789 18.99309439 8.80167789h123.22349044c10.50024731 0 16.21361717-12.19881672 9.41933951-20.2284176L591.98717801 512z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M953.5488 832.61667556c-24.08448-57.08913778-58.74574221-108.31644445-102.70947556-152.28017777-43.96373333-43.96373333-95.19104-78.49756444-152.28017777-102.70947558-0.50972445-0.25486222-1.01944888-0.38229333-1.52917334-0.63715555C776.41955556 519.64586667 828.02915556 426.23886221 828.02915556 320.85333332c0-174.58062221-141.44853334-316.02915556-316.02915556-316.02915554S195.97084444 146.27271111 195.97084444 320.85333332c0 105.38552889 51.6096 198.79253333 130.99918223 256.26396447-0.50972445 0.25486222-1.01944888 0.38229333-1.52917334 0.63715555-57.08913778 24.08448-108.31644445 58.61831112-152.28017777 102.70947554-43.96373333 43.96373333-78.49756444 95.19104-102.70947556 152.28017779C46.74901333 888.55893332 34.13333334 947.8144 32.85902222 1008.72647111c-0.12743111 5.7344 4.46008889 10.44935111 10.19448889 10.44935111h76.45866667c5.60696888 0 10.06705778-4.46008889 10.19448889-9.93962666 2.54862221-98.37681778 42.05226667-190.50951112 111.88451555-260.34176001 72.25344-72.25344 168.20906666-112.01194667 270.40881778-112.01194667s198.15537778 39.75850667 270.40881778 112.01194667C852.24106667 818.72668444 891.74471111 910.85937779 894.29333333 1009.23619556c0.12743111 5.60696888 4.58752 9.93962667 10.19448889 9.93962666h76.45866667c5.7344 0 10.32192-4.71495112 10.19448889-10.44935111-1.27431111-60.91207112-13.88999112-120.16753779-37.59217778-176.10979555zM512 540.03484444c-58.49088 0-113.54112-22.81016889-154.95623111-64.22527999S292.81848888 379.34421333 292.81848888 320.85333332c0-58.49088 22.81016889-113.54112 64.22528001-154.9562311S453.50912 101.67182221 512 101.67182221s113.54112 22.81016889 154.95623111 64.22528001S731.18151112 262.36245333 731.18151112 320.85333332c0 58.49088-22.81016889 113.54112-64.22528001 154.95623113S570.49088 540.03484444 512 540.03484444z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M985.31555555 111.50222222H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888889v728.17777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h946.6311111c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V147.91111111c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888889z m-45.5111111 126.06577778V830.57777778H84.19555555V237.568l-31.40266666-24.46222222 44.71466666-57.45777778 48.6968889 37.888h731.70488888l48.69688889-37.888 44.71466667 57.45777778-31.51644444 24.46222222z M877.90933333 193.42222222L512 477.86666667 146.09066667 193.42222222l-48.69688889-37.888-44.71466667 57.45777778 31.40266667 24.46222222 388.66488889 302.19377778c22.98311111 17.86311111 55.18222222 17.86311111 78.16533333 0L939.80444445 237.568l31.40266666-24.46222222-44.71466666-57.45777778-48.58311112 37.77422222z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M985.31555555 88.74666667H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888888v564.33777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h432.35555555v127.43111111H275.34222222c-10.01244445 0-18.20444445 8.192-18.20444444 18.20444445v54.61333333c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h491.52c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333333c0-10.01244445-8.192-18.20444445-18.20444444-18.20444445H552.96V725.90222222h432.35555555c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V125.15555555c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888888z m-45.5111111 555.23555555H84.19555555V170.66666667h855.6088889v473.31555555z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333 0-101.26222222 35.61244445-194.33244445 95.00444444-267.15022222l595.39911111 595.39911111C706.33244445 899.64088889 613.26222222 935.25333333 512 935.25333333z m328.24888889-156.10311111L244.84977778 183.75111111C317.66755555 124.35911111 410.73777778 88.74666667 512 88.74666667c233.69955555 0 423.25333333 189.55377778 423.25333333 423.25333333 0 101.26222222-35.61244445 194.33244445-95.00444444 267.15022222z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M901.80266667 257.82044445L656.95288889 12.97066667c-6.82666667-6.82666667-16.04266667-10.69511111-25.71377778-10.69511112H147.91111111c-20.13866667 0-36.40888889 16.27022222-36.40888889 36.4088889v946.6311111c0 20.13866667 16.27022222 36.40888889 36.40888889 36.4088889h728.17777778c20.13866667 0 36.40888889-16.27022222 36.40888889-36.4088889V283.648c0-9.67111111-3.86844445-19.00088889-10.69511111-25.82755555zM828.52977778 300.37333333H614.4V86.24355555L828.52977778 300.37333333z m2.048 639.43111112H193.42222222V84.19555555h343.60888889v245.76c0 26.39644445 21.39022222 47.78666667 47.78666667 47.78666667h245.76v562.06222223z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M981.07392 55.79662222H42.92608c-31.22062222 0-50.71758221 34.02410666-35.04355556 61.16693334L304.28728889 620.82616888V927.42542221c0 22.55530667 18.09521779 40.77795555 40.52309333 40.77795557h334.37923556c22.42787556 0 40.52309333-18.22264888 40.52309333-40.77795557V620.82616888L1016.24490667 116.96355556c15.54659555-27.14282666-3.95036444-61.16693333-35.17098667-61.16693334zM628.47203556 876.45297779H395.52796444V677.66044445h233.07150222v198.79253334z m12.23338666-301.50200891l-12.10595556 21.15356445h-233.19893332l-12.10595556-21.15356445L130.59868445 147.54702221h762.8026311L640.70542222 574.95096888z',\n special: true,\n outlined: true,\n },\n {\n viewBox: [1024, 1024],\n path: 'M980.62285431 4.54099753H654.39920987c-4.2719763 0-7.76722963 3.49525333-7.76722962 7.76722964v72.4941432c0 4.2719763 3.49525333 7.76722963 7.76722962 7.76722963h207.64393877L604.04167111 350.57107753c-64.72691358-49.83972347-143.69374815-76.7661195-226.67365136-76.7661195-99.54999309 0-193.27456395 38.83614815-263.5679921 109.25903012S4.54099753 547.08198717 4.54099753 646.63198025s38.83614815 193.27456395 109.25903012 263.5679921C184.09345581 980.62285431 277.81802667 1019.45900247 377.36801975 1019.45900247s193.27456395-38.83614815 263.5679921-109.25903012C711.35889383 839.90654419 750.19504197 746.18197333 750.19504197 646.63198025c0-82.9799032-26.92639605-161.68783013-76.63666567-226.41474372L931.4304 162.34521283V369.60079013c0 4.2719763 3.49525333 7.76722963 7.76722963 7.76722962h72.4941432c4.2719763 0 7.76722963-3.49525333 7.76722964-7.76722962V43.37714569c0-21.35988148-17.47626667-38.83614815-38.83614816-38.83614816zM377.36801975 921.07409383c-151.33152395 0-274.44211358-123.11058963-274.44211358-274.44211358s123.11058963-274.44211358 274.44211358-274.44211358 274.44211358 123.11058963 274.44211358 274.44211358-123.11058963 274.44211358-274.44211358 274.44211358z',\n special: true,\n outlined: true,\n },\n ],\n }\n]","import type { ChartType } from '@/types/slides'\n\ninterface ChartTypes {\n [propName: string]: ChartType\n}\n\nexport const CHART_TYPES: ChartTypes = {\n bar: 'bar',\n horizontalBar: 'bar',\n line: 'line',\n area: 'line',\n scatter: 'line',\n pie: 'pie',\n ring: 'pie',\n}","import { debounce, throttle} from 'lodash'\nimport { useSnapshotStore } from '@/store'\n\nexport default () => {\n const snapshotStore = useSnapshotStore()\n\n // 添加历史快照(历史记录)\n const addHistorySnapshot = debounce(function() {\n snapshotStore.addSnapshot()\n }, 300, { trailing: true })\n\n // 重做\n const redo = throttle(function() {\n snapshotStore.reDo()\n }, 100, { leading: true, trailing: false })\n\n // 撤销\n const undo = throttle(function() {\n snapshotStore.unDo()\n }, 100, { leading: true, trailing: false })\n\n return {\n addHistorySnapshot,\n redo,\n undo,\n }\n}","import { storeToRefs } from 'pinia'\nimport { nanoid } from 'nanoid'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport { getImageSize } from '@/utils/image'\nimport { VIEWPORT_SIZE } from '@/configs/canvas'\nimport type { PPTLineElement, PPTElement, TableCell, TableCellStyle, PPTShapeElement, PPTChartElement, ChartOptions, PresetChartType } from '@/types/slides'\nimport { type ShapePoolItem, SHAPE_PATH_FORMULAS } from '@/configs/shapes'\nimport type { LinePoolItem } from '@/configs/lines'\nimport { CHART_TYPES } from '@/configs/chartTypes'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\ninterface CommonElementPosition {\n top: number\n left: number\n width: number\n height: number\n}\n\ninterface LineElementPosition {\n top: number\n left: number\n start: [number, number]\n end: [number, number]\n}\n\nexport default () => {\n const mainStore = useMainStore()\n const slidesStore = useSlidesStore()\n const { creatingElement } = storeToRefs(mainStore)\n const { theme, viewportRatio } = storeToRefs(slidesStore)\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n // 创建(插入)一个元素并将其设置为被选中元素\n const createElement = (element: PPTElement, callback?: () => void) => {\n slidesStore.addElement(element)\n mainStore.setActiveElementIdList([element.id])\n\n if (creatingElement.value) mainStore.setCreatingElement(null)\n\n setTimeout(() => {\n mainStore.setEditorareaFocus(true)\n }, 0)\n\n if (callback) callback()\n\n addHistorySnapshot()\n }\n\n /**\n * 创建图片元素\n * @param src 图片地址\n */\n const createImageElement = (src: string) => {\n getImageSize(src).then(({ width, height }) => {\n const scale = height / width\n \n if (scale < viewportRatio.value && width > VIEWPORT_SIZE) {\n width = VIEWPORT_SIZE\n height = width * scale\n }\n else if (height > VIEWPORT_SIZE * viewportRatio.value) {\n height = VIEWPORT_SIZE * viewportRatio.value\n width = height / scale\n }\n\n createElement({\n type: 'image',\n id: nanoid(10),\n src,\n width,\n height,\n left: (VIEWPORT_SIZE - width) / 2,\n top: (VIEWPORT_SIZE * viewportRatio.value - height) / 2,\n fixedRatio: true,\n rotate: 0,\n })\n })\n }\n \n /**\n * 创建图表元素\n * @param chartType 图表类型\n */\n const createChartElement = (type: PresetChartType) => {\n const newElement: PPTChartElement = {\n type: 'chart',\n id: nanoid(10),\n chartType: CHART_TYPES[type],\n left: 300,\n top: 81.25,\n width: 400,\n height: 400,\n rotate: 0,\n themeColor: [theme.value.themeColor],\n gridColor: theme.value.fontColor,\n data: {\n labels: ['类别1', '类别2', '类别3', '类别4', '类别5'],\n legends: ['系列1'],\n series: [\n [12, 19, 5, 2, 18],\n ],\n },\n }\n\n const options: ChartOptions = {\n ...(type === 'bar' ? { horizontalBars: false, stackBars: false } : {}),\n ...(type === 'horizontalBar' ? { horizontalBars: true, stackBars: false } : {}),\n ...(type === 'line' ? { showLine: true, lineSmooth: true, showArea: false } : {}),\n ...(type === 'area' ? { showLine: true, lineSmooth: true, showArea: true } : {}),\n ...(type === 'scatter' ? { showLine: false, lineSmooth: true, showArea: false } : {}),\n ...(type === 'pie' ? { donut: false } : {}),\n ...(type === 'ring' ? { donut: true } : {}),\n }\n\n createElement({\n ...newElement,\n options,\n })\n }\n \n /**\n * 创建表格元素\n * @param row 行数\n * @param col 列数\n */\n const createTableElement = (row: number, col: number) => {\n const style: TableCellStyle = {\n fontname: theme.value.fontName,\n color: theme.value.fontColor,\n }\n const data: TableCell[][] = []\n for (let i = 0; i < row; i++) {\n const rowCells: TableCell[] = []\n for (let j = 0; j < col; j++) {\n rowCells.push({ id: nanoid(10), colspan: 1, rowspan: 1, text: '', style })\n }\n data.push(rowCells)\n }\n\n const DEFAULT_CELL_WIDTH = 100\n const DEFAULT_CELL_HEIGHT = 36\n\n const colWidths: number[] = new Array(col).fill(1 / col)\n\n const width = col * DEFAULT_CELL_WIDTH\n const height = row * DEFAULT_CELL_HEIGHT\n\n createElement({\n type: 'table',\n id: nanoid(10),\n width,\n height,\n colWidths,\n rotate: 0,\n data,\n left: (VIEWPORT_SIZE - width) / 2,\n top: (VIEWPORT_SIZE * viewportRatio.value - height) / 2,\n outline: {\n width: 2,\n style: 'solid',\n color: '#eeece1',\n },\n theme: {\n color: theme.value.themeColor,\n rowHeader: true,\n rowFooter: false,\n colHeader: false,\n colFooter: false,\n },\n cellMinHeight: 36,\n })\n }\n \n /**\n * 创建文本元素\n * @param position 位置大小信息\n * @param content 文本内容\n */\n \n interface CreateTextData {\n content?: string\n vertical?: boolean\n }\n const createTextElement = (position: CommonElementPosition, data?: CreateTextData) => {\n const { left, top, width, height } = position\n const content = data?.content || ''\n const vertical = data?.vertical || false\n\n const id = nanoid(10)\n createElement({\n type: 'text',\n id,\n left, \n top, \n width, \n height,\n content,\n rotate: 0,\n defaultFontName: theme.value.fontName,\n defaultColor: theme.value.fontColor,\n vertical,\n }, () => {\n setTimeout(() => {\n const editorRef: HTMLElement | null = document.querySelector(`#editable-element-${id} .ProseMirror`)\n if (editorRef) editorRef.focus()\n }, 0)\n })\n }\n \n /**\n * 创建形状元素\n * @param position 位置大小信息\n * @param data 形状路径信息\n */\n const createShapeElement = (position: CommonElementPosition, data: ShapePoolItem, supplement: Partial = {}) => {\n const { left, top, width, height } = position\n const newElement: PPTShapeElement = {\n type: 'shape',\n id: nanoid(10),\n left, \n top, \n width, \n height,\n viewBox: data.viewBox,\n path: data.path,\n fill: theme.value.themeColor,\n fixedRatio: false,\n rotate: 0,\n ...supplement,\n }\n if (data.special) newElement.special = true\n if (data.pathFormula) {\n newElement.pathFormula = data.pathFormula\n newElement.viewBox = [width, height]\n\n const pathFormula = SHAPE_PATH_FORMULAS[data.pathFormula]\n if ('editable' in pathFormula) {\n newElement.path = pathFormula.formula(width, height, pathFormula.defaultValue)\n newElement.keypoint = pathFormula.defaultValue\n }\n else newElement.path = pathFormula.formula(width, height)\n }\n createElement(newElement)\n }\n \n /**\n * 创建线条元素\n * @param position 位置大小信息\n * @param data 线条的路径和样式\n */\n const createLineElement = (position: LineElementPosition, data: LinePoolItem) => {\n const { left, top, start, end } = position\n\n const newElement: PPTLineElement = {\n type: 'line',\n id: nanoid(10),\n left, \n top, \n start,\n end,\n points: data.points,\n color: theme.value.themeColor,\n style: data.style,\n width: 2,\n }\n if (data.isBroken) newElement.broken = [(start[0] + end[0]) / 2, (start[1] + end[1]) / 2]\n if (data.isCurve) newElement.curve = [(start[0] + end[0]) / 2, (start[1] + end[1]) / 2]\n if (data.isCubic) newElement.cubic = [[(start[0] + end[0]) / 2, (start[1] + end[1]) / 2], [(start[0] + end[0]) / 2, (start[1] + end[1]) / 2]]\n createElement(newElement)\n }\n \n /**\n * 创建LaTeX元素\n * @param svg SVG代码\n */\n const createLatexElement = (data: { path: string; latex: string; w: number; h: number; }) => {\n createElement({\n type: 'latex',\n id: nanoid(10),\n width: data.w,\n height: data.h,\n rotate: 0,\n left: (VIEWPORT_SIZE - data.w) / 2,\n top: (VIEWPORT_SIZE * viewportRatio.value - data.h) / 2,\n path: data.path,\n latex: data.latex,\n color: theme.value.fontColor,\n strokeWidth: 2,\n viewBox: [data.w, data.h],\n fixedRatio: true,\n })\n }\n \n /**\n * 创建视频元素\n * @param src 视频地址\n */\n const createVideoElement = (src: string) => {\n createElement({\n type: 'video',\n id: nanoid(10),\n width: 500,\n height: 300,\n rotate: 0,\n left: (VIEWPORT_SIZE - 500) / 2,\n top: (VIEWPORT_SIZE * viewportRatio.value - 300) / 2,\n src,\n autoplay: false,\n })\n }\n \n /**\n * 创建音频元素\n * @param src 音频地址\n */\n const createAudioElement = (src: string) => {\n createElement({\n type: 'audio',\n id: nanoid(10),\n width: 50,\n height: 50,\n rotate: 0,\n left: (VIEWPORT_SIZE - 50) / 2,\n top: (VIEWPORT_SIZE * viewportRatio.value - 50) / 2,\n loop: false,\n autoplay: false,\n fixedRatio: true,\n color: theme.value.themeColor,\n src,\n })\n }\n\n return {\n createImageElement,\n createChartElement,\n createTableElement,\n createTextElement,\n createShapeElement,\n createLineElement,\n createLatexElement,\n createVideoElement,\n createAudioElement,\n }\n}","import { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { nanoid } from 'nanoid'\nimport { useSlidesStore, useMainStore } from '@/store'\nimport type { PPTElement, Slide } from '@/types/slides'\nimport { createSlideIdMap, createElementIdMap, getElementRange } from '@/utils/element'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\nexport default () => {\n const mainStore = useMainStore()\n const slidesStore = useSlidesStore()\n const { currentSlide, slides } = storeToRefs(slidesStore)\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n /**\n * 添加指定的元素数据(一组)\n * @param elements 元素列表数据\n */\n const addElementsFromData = (elements: PPTElement[]) => {\n const { groupIdMap, elIdMap } = createElementIdMap(elements)\n\n const firstElement = elements[0]\n let offset = 0\n let lastSameElement: PPTElement | undefined\n \n do {\n lastSameElement = currentSlide.value.elements.find(el => {\n if (el.type !== firstElement.type) return false\n \n const { minX: oMinX, maxX: oMaxX, minY: oMinY, maxY: oMaxY } = getElementRange(el)\n const { minX: nMinX, maxX: nMaxX, minY: nMinY, maxY: nMaxY } = getElementRange({\n ...firstElement,\n left: firstElement.left + offset,\n top: firstElement.top + offset\n })\n if (\n oMinX === nMinX &&\n oMaxX === nMaxX &&\n oMinY === nMinY &&\n oMaxY === nMaxY\n ) return true\n \n return false\n })\n if (lastSameElement) offset += 10\n\n } while (lastSameElement)\n \n for (const element of elements) {\n element.id = elIdMap[element.id]\n\n element.left = element.left + offset\n element.top = element.top + offset\n\n if (element.groupId) element.groupId = groupIdMap[element.groupId]\n }\n slidesStore.addElement(elements)\n mainStore.setActiveElementIdList(Object.values(elIdMap))\n addHistorySnapshot()\n }\n\n /**\n * 添加指定的页面数据\n * @param slide 页面数据\n */\n const addSlidesFromData = (slides: Slide[]) => {\n const slideIdMap = createSlideIdMap(slides)\n const newSlides = slides.map(slide => {\n const { groupIdMap, elIdMap } = createElementIdMap(slide.elements)\n\n for (const element of slide.elements) {\n element.id = elIdMap[element.id]\n if (element.groupId) element.groupId = groupIdMap[element.groupId]\n\t\t\n // 若元素绑定了页面跳转链接\n if (element.link && element.link.type === 'slide') {\n\n // 待添加页面中包含该页面,则替换相关绑定关系\n if (slideIdMap[element.link.target]) {\n element.link.target = slideIdMap[element.link.target]\n }\n // 待添加页面中不包含该页面,则删除该元素绑定的页面跳转\n else delete element.link\n }\n }\n // 动画id替换\n if (slide.animations) {\n for (const animation of slide.animations) {\n animation.id = nanoid(10)\n animation.elId = elIdMap[animation.elId]\n }\n }\n return {\n ...slide,\n id: slideIdMap[slide.id],\n }\n })\n slidesStore.addSlide(newSlides)\n addHistorySnapshot()\n }\n\n const isEmptySlide = computed(() => {\n if (slides.value.length > 1) return false\n if (slides.value[0].elements.length > 0) return false\n return true\n })\n\n return {\n addElementsFromData,\n addSlidesFromData,\n isEmptySlide,\n }\n}","import { pasteCustomClipboardString } from '@/utils/clipboard'\nimport { parseText2Paragraphs } from '@/utils/textParser'\nimport useCreateElement from '@/hooks/useCreateElement'\nimport useAddSlidesOrElements from '@/hooks/useAddSlidesOrElements'\n\ninterface PasteTextClipboardDataOptions {\n onlySlide?: boolean\n onlyElements?: boolean\n}\n\nexport default () => {\n const { createTextElement } = useCreateElement()\n const { addElementsFromData, addSlidesFromData } = useAddSlidesOrElements()\n\n /**\n * 粘贴普通文本:创建为新的文本元素\n * @param text 文本\n */\n const createTextElementFromClipboard = (text: string) => {\n createTextElement({\n left: 0,\n top: 0,\n width: 600,\n height: 50,\n }, { content: text })\n }\n\n /**\n * 解析剪贴板内容,根据解析结果选择合适的粘贴方式\n * @param text 剪贴板内容\n * @param options 配置项:onlySlide -- 仅处理页面粘贴;onlyElements -- 仅处理元素粘贴;\n */\n const pasteTextClipboardData = (text: string, options?: PasteTextClipboardDataOptions) => {\n const onlySlide = options?.onlySlide || false\n const onlyElements = options?.onlyElements || false\n\n const clipboardData = pasteCustomClipboardString(text)\n\n // 元素或页面\n if (typeof clipboardData === 'object') {\n const { type, data } = clipboardData\n\n if (type === 'elements' && !onlySlide) addElementsFromData(data)\n else if (type === 'slides' && !onlyElements) addSlidesFromData(data)\n }\n\n // 普通文本\n else if (!onlyElements && !onlySlide) {\n const string = parseText2Paragraphs(clipboardData)\n createTextElementFromClipboard(string)\n }\n }\n\n return {\n pasteTextClipboardData,\n }\n}","import { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { nanoid } from 'nanoid'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { Slide } from '@/types/slides'\nimport { copyText, readClipboard } from '@/utils/clipboard'\nimport { encrypt } from '@/utils/crypto'\nimport { createElementIdMap } from '@/utils/element'\nimport { KEYS } from '@/configs/hotkey'\nimport message from '@/utils/message'\nimport usePasteTextClipboardData from '@/hooks/usePasteTextClipboardData'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\nimport useAddSlidesOrElements from '@/hooks//useAddSlidesOrElements'\n\nexport default () => {\n const mainStore = useMainStore()\n const slidesStore = useSlidesStore()\n const { selectedSlidesIndex: _selectedSlidesIndex, activeElementIdList } = storeToRefs(mainStore)\n const { currentSlide, slides, theme, slideIndex } = storeToRefs(slidesStore)\n\n const selectedSlidesIndex = computed(() => [..._selectedSlidesIndex.value, slideIndex.value])\n const selectedSlides = computed(() => slides.value.filter((item, index) => selectedSlidesIndex.value.includes(index)))\n const selectedSlidesId = computed(() => selectedSlides.value.map(item => item.id))\n\n const { pasteTextClipboardData } = usePasteTextClipboardData()\n const { addSlidesFromData } = useAddSlidesOrElements()\n const { addHistorySnapshot } = useHistorySnapshot()\n\n // 重置幻灯片\n const resetSlides = () => {\n const emptySlide: Slide = {\n id: nanoid(10),\n elements: [],\n background: {\n type: 'solid',\n color: theme.value.backgroundColor,\n },\n }\n slidesStore.updateSlideIndex(0)\n mainStore.setActiveElementIdList([])\n slidesStore.setSlides([emptySlide])\n }\n\n /**\n * 移动页面焦点\n * @param command 移动页面焦点命令:上移、下移\n */\n const updateSlideIndex = (command: string) => {\n if (command === KEYS.UP && slideIndex.value > 0) {\n if (activeElementIdList.value.length) mainStore.setActiveElementIdList([])\n slidesStore.updateSlideIndex(slideIndex.value - 1)\n }\n else if (command === KEYS.DOWN && slideIndex.value < slides.value.length - 1) {\n if (activeElementIdList.value.length) mainStore.setActiveElementIdList([])\n slidesStore.updateSlideIndex(slideIndex.value + 1)\n }\n }\n\n // 将当前页面数据加密后复制到剪贴板\n const copySlide = () => {\n const text = encrypt(JSON.stringify({\n type: 'slides',\n data: selectedSlides.value,\n }))\n\n copyText(text).then(() => {\n mainStore.setThumbnailsFocus(true)\n })\n }\n\n // 尝试将剪贴板页面数据解密后添加到下一页(粘贴)\n const pasteSlide = () => {\n readClipboard().then(text => {\n pasteTextClipboardData(text, { onlySlide: true })\n }).catch(err => message.warning(err))\n }\n\n // 创建一页空白页并添加到下一页\n const createSlide = () => {\n const emptySlide: Slide = {\n id: nanoid(10),\n elements: [],\n background: {\n type: 'solid',\n color: theme.value.backgroundColor,\n },\n }\n mainStore.setActiveElementIdList([])\n slidesStore.addSlide(emptySlide)\n addHistorySnapshot()\n }\n\n // 根据模板创建新页面\n const createSlideByTemplate = (slide: Slide) => {\n const { groupIdMap, elIdMap } = createElementIdMap(slide.elements)\n\n for (const element of slide.elements) {\n element.id = elIdMap[element.id]\n if (element.groupId) element.groupId = groupIdMap[element.groupId]\n }\n const newSlide = {\n ...slide,\n id: nanoid(10),\n }\n mainStore.setActiveElementIdList([])\n slidesStore.addSlide(newSlide)\n addHistorySnapshot()\n }\n\n // 将当前页复制一份到下一页\n const copyAndPasteSlide = () => {\n const slide = JSON.parse(JSON.stringify(currentSlide.value))\n addSlidesFromData([slide])\n }\n\n // 删除当前页,若将删除全部页面,则执行重置幻灯片操作\n const deleteSlide = (targetSlidesId = selectedSlidesId.value) => {\n if (slides.value.length === targetSlidesId.length) resetSlides()\n else slidesStore.deleteSlide(targetSlidesId)\n\n mainStore.updateSelectedSlidesIndex([])\n\n addHistorySnapshot()\n }\n\n // 将当前页复制后删除(剪切)\n // 由于复制操作会导致多选状态消失,所以需要提前将需要删除的页面ID进行缓存\n const cutSlide = () => {\n const targetSlidesId = [...selectedSlidesId.value]\n copySlide()\n deleteSlide(targetSlidesId)\n }\n\n // 选中全部幻灯片\n const selectAllSlide = () => {\n const newSelectedSlidesIndex = Array.from(Array(slides.value.length), (item, index) => index)\n mainStore.setActiveElementIdList([])\n mainStore.updateSelectedSlidesIndex(newSelectedSlidesIndex)\n }\n\n // 拖拽调整幻灯片顺序同步数据\n const sortSlides = (newIndex: number, oldIndex: number) => {\n if (oldIndex === newIndex) return\n \n const _slides = JSON.parse(JSON.stringify(slides.value))\n const _slide = _slides[oldIndex]\n _slides.splice(oldIndex, 1)\n _slides.splice(newIndex, 0, _slide)\n slidesStore.setSlides(_slides)\n slidesStore.updateSlideIndex(newIndex)\n }\n\n return {\n resetSlides,\n updateSlideIndex,\n copySlide,\n pasteSlide,\n createSlide,\n createSlideByTemplate,\n copyAndPasteSlide,\n deleteSlide,\n cutSlide,\n selectAllSlide,\n sortSlides,\n }\n}","import { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTElement } from '@/types/slides'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\nexport default () => {\n const mainStore = useMainStore()\n const slidesStore = useSlidesStore()\n const { activeElementIdList } = storeToRefs(mainStore)\n const { currentSlide } = storeToRefs(slidesStore)\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n // 锁定选中的元素,并清空选中元素状态\n const lockElement = () => {\n const newElementList: PPTElement[] = JSON.parse(JSON.stringify(currentSlide.value.elements))\n \n for (const element of newElementList) {\n if (activeElementIdList.value.includes(element.id)) element.lock = true\n }\n slidesStore.updateSlide({ elements: newElementList })\n mainStore.setActiveElementIdList([])\n addHistorySnapshot()\n }\n\n /**\n * 解除元素的锁定状态,并将其设置为当前选择元素\n * @param handleElement 需要解锁的元素\n */\n const unlockElement = (handleElement: PPTElement) => {\n const newElementList: PPTElement[] = JSON.parse(JSON.stringify(currentSlide.value.elements))\n\n if (handleElement.groupId) {\n const groupElementIdList = []\n for (const element of newElementList) {\n if (element.groupId === handleElement.groupId) {\n element.lock = false\n groupElementIdList.push(element.id)\n }\n }\n slidesStore.updateSlide({ elements: newElementList })\n mainStore.setActiveElementIdList(groupElementIdList)\n }\n else {\n for (const element of newElementList) {\n if (element.id === handleElement.id) {\n element.lock = false\n break\n }\n }\n slidesStore.updateSlide({ elements: newElementList })\n mainStore.setActiveElementIdList([handleElement.id])\n }\n addHistorySnapshot()\n }\n\n return {\n lockElement,\n unlockElement,\n }\n}","import { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTElement } from '@/types/slides'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\nexport default () => {\n const mainStore = useMainStore()\n const slidesStore = useSlidesStore()\n const { activeElementIdList, activeGroupElementId } = storeToRefs(mainStore)\n const { currentSlide } = storeToRefs(slidesStore)\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n // 删除全部选中元素\n // 组合元素成员中,存在被选中可独立操作的元素时,优先删除该元素。否则默认删除所有被选中的元素\n const deleteElement = () => {\n if (!activeElementIdList.value.length) return\n\n let newElementList: PPTElement[] = []\n if (activeGroupElementId.value) {\n newElementList = currentSlide.value.elements.filter(el => el.id !== activeGroupElementId.value)\n }\n else {\n newElementList = currentSlide.value.elements.filter(el => !activeElementIdList.value.includes(el.id))\n }\n\n mainStore.setActiveElementIdList([])\n slidesStore.updateSlide({ elements: newElementList })\n addHistorySnapshot()\n }\n\n // 删除内面内全部元素(无论是否选中)\n const deleteAllElements = () => {\n if (!currentSlide.value.elements.length) return\n mainStore.setActiveElementIdList([])\n slidesStore.updateSlide({ elements: [] })\n addHistorySnapshot()\n }\n\n return {\n deleteElement,\n deleteAllElements,\n }\n}","import { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { nanoid } from 'nanoid'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTElement } from '@/types/slides'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\nexport default () => {\n const mainStore = useMainStore()\n const slidesStore = useSlidesStore()\n const { activeElementIdList, activeElementList, handleElementId } = storeToRefs(mainStore)\n const { currentSlide } = storeToRefs(slidesStore)\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n /**\n * 判断当前选中的元素是否可以组合\n */\n const canCombine = computed(() => {\n if (activeElementList.value.length < 2) return false\n\n const firstGroupId = activeElementList.value[0].groupId\n if (!firstGroupId) return true\n\n const inSameGroup = activeElementList.value.every(el => (el.groupId && el.groupId) === firstGroupId)\n return !inSameGroup\n })\n\n /**\n * 组合当前选中的元素:给当前选中的元素赋予一个相同的分组ID\n */\n const combineElements = () => {\n if (!activeElementList.value.length) return\n\n // 生成一个新元素列表进行后续操作\n let newElementList: PPTElement[] = JSON.parse(JSON.stringify(currentSlide.value.elements))\n\n // 生成分组ID\n const groupId = nanoid(10)\n\n // 收集需要组合的元素列表,并赋上唯一分组ID\n const combineElementList: PPTElement[] = []\n for (const element of newElementList) {\n if (activeElementIdList.value.includes(element.id)) {\n element.groupId = groupId\n combineElementList.push(element)\n }\n }\n\n // 确保该组合内所有元素成员的层级是连续的,具体操作方法为:\n // 先获取到该组合内最上层元素的层级,将本次需要组合的元素从新元素列表中移除,\n // 再根据最上层元素的层级位置,将上面收集到的需要组合的元素列表一起插入到新元素列表中合适的位置\n const combineElementMaxLevel = newElementList.findIndex(_element => _element.id === combineElementList[combineElementList.length - 1].id)\n const combineElementIdList = combineElementList.map(_element => _element.id)\n newElementList = newElementList.filter(_element => !combineElementIdList.includes(_element.id))\n\n const insertLevel = combineElementMaxLevel - combineElementList.length + 1\n newElementList.splice(insertLevel, 0, ...combineElementList)\n\n slidesStore.updateSlide({ elements: newElementList })\n addHistorySnapshot()\n }\n\n /**\n * 取消组合元素:移除选中元素的分组ID\n */\n const uncombineElements = () => {\n if (!activeElementList.value.length) return\n const hasElementInGroup = activeElementList.value.some(item => item.groupId)\n if (!hasElementInGroup) return\n \n const newElementList: PPTElement[] = JSON.parse(JSON.stringify(currentSlide.value.elements))\n for (const element of newElementList) {\n if (activeElementIdList.value.includes(element.id) && element.groupId) delete element.groupId\n }\n slidesStore.updateSlide({ elements: newElementList })\n\n // 取消组合后,需要重置激活元素状态\n // 默认重置为当前正在操作的元素,如果不存在则重置为空\n const handleElementIdList = handleElementId.value ? [handleElementId.value] : []\n mainStore.setActiveElementIdList(handleElementIdList)\n\n addHistorySnapshot()\n }\n\n return {\n canCombine,\n combineElements,\n uncombineElements,\n }\n}","import { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport { copyText, readClipboard } from '@/utils/clipboard'\nimport { encrypt } from '@/utils/crypto'\nimport message from '@/utils/message'\nimport usePasteTextClipboardData from '@/hooks/usePasteTextClipboardData'\nimport useDeleteElement from './useDeleteElement'\n\nexport default () => {\n const mainStore = useMainStore()\n const { activeElementIdList, activeElementList } = storeToRefs(mainStore)\n\n const { pasteTextClipboardData } = usePasteTextClipboardData()\n const { deleteElement } = useDeleteElement()\n\n // 将选中元素数据加密后复制到剪贴板\n const copyElement = () => {\n if (!activeElementIdList.value.length) return\n\n const text = encrypt(JSON.stringify({\n type: 'elements',\n data: activeElementList.value,\n }))\n\n copyText(text).then(() => {\n mainStore.setEditorareaFocus(true)\n })\n }\n\n // 将选中元素复制后删除(剪切)\n const cutElement = () => {\n copyElement()\n deleteElement()\n }\n\n // 尝试将剪贴板元素数据解密后进行粘贴\n const pasteElement = () => {\n readClipboard().then(text => {\n pasteTextClipboardData(text)\n }).catch(err => message.warning(err))\n }\n\n // 将选中元素复制后立刻粘贴\n const quickCopyElement = () => {\n copyElement()\n pasteElement()\n }\n\n return {\n copyElement,\n cutElement,\n pasteElement,\n quickCopyElement,\n }\n}","import { storeToRefs } from 'pinia'\r\nimport { useMainStore, useSlidesStore } from '@/store'\r\n\r\nexport default () => {\r\n const mainStore = useMainStore()\r\n const { currentSlide } = storeToRefs(useSlidesStore())\r\n const { hiddenElementIdList } = storeToRefs(mainStore)\r\n\r\n // 将当前页面全部元素设置为被选择状态\r\n const selectAllElement = () => {\r\n const unlockedElements = currentSlide.value.elements.filter(el => !el.lock && !hiddenElementIdList.value.includes(el.id))\r\n const newActiveElementIdList = unlockedElements.map(el => el.id)\r\n mainStore.setActiveElementIdList(newActiveElementIdList)\r\n }\r\n\r\n return {\r\n selectAllElement,\r\n }\r\n}","import { storeToRefs } from 'pinia'\r\nimport { useMainStore, useSlidesStore } from '@/store'\r\nimport type { PPTElement } from '@/types/slides'\r\nimport { KEYS } from '@/configs/hotkey'\r\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\r\n\r\nexport default () => {\r\n const slidesStore = useSlidesStore()\r\n const { activeElementIdList, activeGroupElementId } = storeToRefs(useMainStore())\r\n const { currentSlide } = storeToRefs(slidesStore)\r\n\r\n const { addHistorySnapshot } = useHistorySnapshot()\r\n\r\n /**\r\n * 将元素向指定方向移动指定的距离\r\n * 组合元素成员中,存在被选中可独立操作的元素时,优先移动该元素。否则默认移动所有被选中的元素\r\n * @param command 移动方向\r\n * @param step 移动距离\r\n */\r\n const moveElement = (command: string, step = 1) => {\r\n let newElementList: PPTElement[] = []\r\n\r\n const move = (el: PPTElement) => {\r\n let { left, top } = el\r\n switch (command) {\r\n case KEYS.LEFT: \r\n left = left - step\r\n break\r\n case KEYS.RIGHT: \r\n left = left + step\r\n break\r\n case KEYS.UP: \r\n top = top - step\r\n break\r\n case KEYS.DOWN: \r\n top = top + step\r\n break\r\n default: break\r\n }\r\n return { ...el, left, top }\r\n }\r\n\r\n if (activeGroupElementId.value) {\r\n newElementList = currentSlide.value.elements.map(el => {\r\n return activeGroupElementId.value === el.id ? move(el) : el\r\n })\r\n }\r\n else {\r\n newElementList = currentSlide.value.elements.map(el => {\r\n return activeElementIdList.value.includes(el.id) ? move(el) : el\r\n })\r\n }\r\n\r\n slidesStore.updateSlide({ elements: newElementList })\r\n addHistorySnapshot()\r\n }\r\n\r\n return {\r\n moveElement,\r\n }\r\n}","import { storeToRefs } from 'pinia'\nimport { useSlidesStore } from '@/store'\nimport type { PPTElement } from '@/types/slides'\nimport { ElementOrderCommands } from '@/types/edit'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\nexport default () => {\n const slidesStore = useSlidesStore()\n const { currentSlide } = storeToRefs(slidesStore)\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n /**\n * 获取组合元素层级范围\n * @param elementList 本页所有元素列表\n * @param combineElementList 组合元素列表\n */\n const getCombineElementLevelRange = (elementList: PPTElement[], combineElementList: PPTElement[]) => {\n return {\n minLevel: elementList.findIndex(_element => _element.id === combineElementList[0].id),\n maxLevel: elementList.findIndex(_element => _element.id === combineElementList[combineElementList.length - 1].id),\n }\n }\n\n /**\n * 上移一层\n * @param elementList 本页所有元素列表\n * @param element 当前操作的元素\n */\n const moveUpElement = (elementList: PPTElement[], element: PPTElement) => {\n const copyOfElementList: PPTElement[] = JSON.parse(JSON.stringify(elementList))\n\n // 如果被操作的元素是组合元素成员,需要将该组合全部成员一起进行移动\n if (element.groupId) {\n\n // 获取到该组合全部成员,以及所有成员的层级范围\n const combineElementList = copyOfElementList.filter(_element => _element.groupId === element.groupId)\n const { minLevel, maxLevel } = getCombineElementLevelRange(elementList, combineElementList)\n\n // 已经处在顶层,无法继续移动\n if (maxLevel === elementList.length - 1) return\n\n // 通过组合成员范围的最大值,获取到该组合上一层的元素,然后将该组合元素从元素列表中移除(并缓存被移除的元素列表)\n // 若上层元素处在另一个组合中,则将上述被移除的组合元素插入到该上层组合上方\n // 若上层元素不处于任何分组中,则将上述被移除的组合元素插入到该上层元素上方\n const nextElement = copyOfElementList[maxLevel + 1]\n const movedElementList = copyOfElementList.splice(minLevel, combineElementList.length)\n\n if (nextElement.groupId) {\n const nextCombineElementList = copyOfElementList.filter(_element => _element.groupId === nextElement.groupId)\n copyOfElementList.splice(minLevel + nextCombineElementList.length, 0, ...movedElementList)\n }\n else copyOfElementList.splice(minLevel + 1, 0, ...movedElementList)\n }\n\n // 如果被操作的元素不是组合元素成员\n else {\n\n // 获取该元素在列表中的层级\n const level = elementList.findIndex(item => item.id === element.id)\n\n // 已经处在顶层,无法继续移动\n if (level === elementList.length - 1) return\n\n // 获取到该组合上一层的元素,然后将该组合元素从元素列表中移除(并缓存被移除的元素列表)\n const nextElement = copyOfElementList[level + 1]\n const movedElement = copyOfElementList.splice(level, 1)[0]\n\n // 通过组合成员范围的最大值,获取到该组合上一层的元素,然后将该组合元素从元素列表中移除(并缓存被移除的元素列表)\n // 若上层元素处在另一个组合中,则将上述被移除的组合元素插入到该上层组合上方\n // 若上层元素不处于任何分组中,则将上述被移除的组合元素插入到该上层元素上方\n if (nextElement.groupId) {\n const combineElementList = copyOfElementList.filter(_element => _element.groupId === nextElement.groupId)\n copyOfElementList.splice(level + combineElementList.length, 0, movedElement)\n }\n else copyOfElementList.splice(level + 1, 0, movedElement)\n }\n\n return copyOfElementList\n }\n\n /**\n * 下移一层,操作方式同上移\n * @param elementList 本页所有元素列表\n * @param element 当前操作的元素\n */\n const moveDownElement = (elementList: PPTElement[], element: PPTElement) => {\n const copyOfElementList: PPTElement[] = JSON.parse(JSON.stringify(elementList))\n\n if (element.groupId) {\n const combineElementList = copyOfElementList.filter(_element => _element.groupId === element.groupId)\n const { minLevel } = getCombineElementLevelRange(elementList, combineElementList)\n if (minLevel === 0) return\n\n const prevElement = copyOfElementList[minLevel - 1]\n const movedElementList = copyOfElementList.splice(minLevel, combineElementList.length)\n\n if (prevElement.groupId) {\n const prevCombineElementList = copyOfElementList.filter(_element => _element.groupId === prevElement.groupId)\n copyOfElementList.splice(minLevel - prevCombineElementList.length, 0, ...movedElementList)\n }\n else copyOfElementList.splice(minLevel - 1, 0, ...movedElementList)\n }\n\n else {\n const level = elementList.findIndex(item => item.id === element.id)\n if (level === 0) return\n\n const prevElement = copyOfElementList[level - 1]\n const movedElement = copyOfElementList.splice(level, 1)[0]\n\n if (prevElement.groupId) {\n const combineElementList = copyOfElementList.filter(_element => _element.groupId === prevElement.groupId)\n copyOfElementList.splice(level - combineElementList.length, 0, movedElement)\n }\n else copyOfElementList.splice(level - 1, 0, movedElement)\n }\n\n return copyOfElementList\n }\n\n /**\n * 置顶层\n * @param elementList 本页所有元素列表\n * @param element 当前操作的元素\n */\n const moveTopElement = (elementList: PPTElement[], element: PPTElement) => {\n const copyOfElementList: PPTElement[] = JSON.parse(JSON.stringify(elementList))\n\n // 如果被操作的元素是组合元素成员,需要将该组合全部成员一起进行移动\n if (element.groupId) {\n\n // 获取到该组合全部成员,以及所有成员的层级范围\n const combineElementList = copyOfElementList.filter(_element => _element.groupId === element.groupId)\n const { minLevel, maxLevel } = getCombineElementLevelRange(elementList, combineElementList)\n\n // 已经处在顶层,无法继续移动\n if (maxLevel === elementList.length - 1) return null\n\n // 将该组合元素从元素列表中移除,然后将被移除的元素添加到元素列表顶部\n const movedElementList = copyOfElementList.splice(minLevel, combineElementList.length)\n copyOfElementList.push(...movedElementList)\n }\n\n // 如果被操作的元素不是组合元素成员\n else {\n\n // 获取该元素在列表中的层级\n const level = elementList.findIndex(item => item.id === element.id)\n\n // 已经处在顶层,无法继续移动\n if (level === elementList.length - 1) return null\n\n // 将该组合元素从元素列表中移除,然后将被移除的元素添加到元素列表底部\n copyOfElementList.splice(level, 1)\n copyOfElementList.push(element)\n }\n\n return copyOfElementList\n }\n\n /**\n * 置底层,操作方式同置顶\n * @param elementList 本页所有元素列表\n * @param element 当前操作的元素\n */\n const moveBottomElement = (elementList: PPTElement[], element: PPTElement) => {\n const copyOfElementList: PPTElement[] = JSON.parse(JSON.stringify(elementList))\n\n if (element.groupId) {\n const combineElementList = copyOfElementList.filter(_element => _element.groupId === element.groupId)\n const { minLevel } = getCombineElementLevelRange(elementList, combineElementList)\n if (minLevel === 0) return\n\n const movedElementList = copyOfElementList.splice(minLevel, combineElementList.length)\n copyOfElementList.unshift(...movedElementList)\n }\n\n else {\n const level = elementList.findIndex(item => item.id === element.id)\n if (level === 0) return\n\n copyOfElementList.splice(level, 1)\n copyOfElementList.unshift(element)\n }\n\n return copyOfElementList\n }\n\n /**\n * 调整元素层级\n * @param element 需要调整层级的元素\n * @param command 调整命令:上移、下移、置顶、置底\n */\n const orderElement = (element: PPTElement, command: ElementOrderCommands) => {\n let newElementList\n \n if (command === ElementOrderCommands.UP) newElementList = moveUpElement(currentSlide.value.elements, element)\n else if (command === ElementOrderCommands.DOWN) newElementList = moveDownElement(currentSlide.value.elements, element)\n else if (command === ElementOrderCommands.TOP) newElementList = moveTopElement(currentSlide.value.elements, element)\n else if (command === ElementOrderCommands.BOTTOM) newElementList = moveBottomElement(currentSlide.value.elements, element)\n\n if (!newElementList) return\n\n slidesStore.updateSlide({ elements: newElementList })\n addHistorySnapshot()\n }\n\n return {\n orderElement,\n }\n}","// 进入全屏\nexport const enterFullscreen = () => {\n const docElm = document.documentElement\n if (docElm.requestFullscreen) docElm.requestFullscreen() \n else if (docElm.mozRequestFullScreen) docElm.mozRequestFullScreen() \n else if (docElm.webkitRequestFullScreen) docElm.webkitRequestFullScreen()\n else if (docElm.msRequestFullscreen) docElm.msRequestFullscreen()\n}\n\n// 退出全屏\nexport const exitFullscreen = () => {\n if (document.exitFullscreen) document.exitFullscreen()\n else if (document.mozCancelFullScreen) document.mozCancelFullScreen()\n else if (document.webkitExitFullscreen) document.webkitExitFullscreen()\n else if (document.msExitFullscreen) document.msExitFullscreen()\n}\n\n// 判断是否全屏\nexport const isFullscreen = () => {\n const fullscreenElement = \n document.fullscreenElement ||\n document.mozFullScreenElement ||\n document.webkitFullscreenElement ||\n document.msFullscreenElement ||\n document.webkitCurrentFullScreenElement\n return !!fullscreenElement\n}","import { useScreenStore, useSlidesStore } from '@/store'\nimport { enterFullscreen, exitFullscreen, isFullscreen } from '@/utils/fullscreen'\n\nexport default () => {\n const screenStore = useScreenStore()\n const slidesStore = useSlidesStore()\n\n // 进入放映状态(从当前页开始)\n const enterScreening = () => {\n enterFullscreen()\n screenStore.setScreening(true)\n }\n\n // 进入放映状态(从第一页开始)\n const enterScreeningFromStart = () => {\n slidesStore.updateSlideIndex(0)\n enterScreening()\n }\n\n // 退出放映状态\n const exitScreening = () => {\n screenStore.setScreening(false)\n if (isFullscreen()) exitFullscreen()\n }\n\n return {\n enterScreening,\n enterScreeningFromStart,\n exitScreening,\n }\n}","import { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\n\nexport default () => {\n const mainStore = useMainStore()\n const { canvasPercentage, canvasScale, canvasDragged } = storeToRefs(mainStore)\n\n const canvasScalePercentage = computed(() => Math.round(canvasScale.value * 100) + '%')\n\n /**\n * 缩放画布百分比\n * @param command 缩放命令:放大、缩小\n */\n const scaleCanvas = (command: '+' | '-') => {\n let percentage = canvasPercentage.value\n const step = 5\n const max = 200\n const min = 30\n if (command === '+' && percentage <= max) percentage += step\n if (command === '-' && percentage >= min) percentage -= step\n\n mainStore.setCanvasPercentage(percentage)\n }\n\n /**\n * 设置画布缩放比例\n * 但不是直接设置该值,而是通过设置画布可视区域百分比来动态计算\n * @param value 目标画布缩放比例\n */\n const setCanvasScalePercentage = (value: number) => {\n const percentage = Math.round(value / canvasScale.value * canvasPercentage.value) / 100\n mainStore.setCanvasPercentage(percentage)\n }\n\n /**\n * 重置画布尺寸和位置\n */\n const resetCanvas = () => {\n mainStore.setCanvasPercentage(90)\n if (canvasDragged) mainStore.setCanvasDragged(false)\n }\n\n return {\n canvasScalePercentage,\n setCanvasScalePercentage,\n scaleCanvas,\n resetCanvas,\n }\n}","import { onMounted, onUnmounted } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore, useKeyboardStore } from '@/store'\nimport { ElementOrderCommands } from '@/types/edit'\nimport { KEYS } from '@/configs/hotkey'\n\nimport useSlideHandler from './useSlideHandler'\nimport useLockElement from './useLockElement'\nimport useDeleteElement from './useDeleteElement'\nimport useCombineElement from './useCombineElement'\nimport useCopyAndPasteElement from './useCopyAndPasteElement'\nimport useSelectAllElement from './useSelectAllElement'\nimport useMoveElement from './useMoveElement'\nimport useOrderElement from './useOrderElement'\nimport useHistorySnapshot from './useHistorySnapshot'\nimport useScreening from './useScreening'\nimport useScaleCanvas from './useScaleCanvas'\n\nexport default () => {\n const mainStore = useMainStore()\n const keyboardStore = useKeyboardStore()\n const {\n activeElementIdList,\n disableHotkeys,\n handleElement,\n handleElementId,\n editorAreaFocus,\n thumbnailsFocus,\n showSearchPanel,\n } = storeToRefs(mainStore)\n const { currentSlide } = storeToRefs(useSlidesStore())\n const { ctrlKeyState, shiftKeyState, spaceKeyState } = storeToRefs(keyboardStore)\n\n const {\n updateSlideIndex,\n copySlide,\n createSlide,\n deleteSlide,\n cutSlide,\n copyAndPasteSlide,\n selectAllSlide,\n } = useSlideHandler()\n\n const { combineElements, uncombineElements } = useCombineElement()\n const { deleteElement } = useDeleteElement()\n const { lockElement } = useLockElement()\n const { copyElement, cutElement, quickCopyElement } = useCopyAndPasteElement()\n const { selectAllElement } = useSelectAllElement()\n const { moveElement } = useMoveElement()\n const { orderElement } = useOrderElement()\n const { redo, undo } = useHistorySnapshot()\n const { enterScreening, enterScreeningFromStart } = useScreening()\n const { scaleCanvas, resetCanvas } = useScaleCanvas()\n\n const copy = () => {\n if (activeElementIdList.value.length) copyElement()\n else if (thumbnailsFocus.value) copySlide()\n }\n\n const cut = () => {\n if (activeElementIdList.value.length) cutElement()\n else if (thumbnailsFocus.value) cutSlide()\n }\n\n const quickCopy = () => {\n if (activeElementIdList.value.length) quickCopyElement()\n else if (thumbnailsFocus.value) copyAndPasteSlide()\n }\n\n const selectAll = () => {\n if (editorAreaFocus.value) selectAllElement()\n if (thumbnailsFocus.value) selectAllSlide()\n }\n\n const lock = () => {\n if (!editorAreaFocus.value) return\n lockElement()\n }\n const combine = () => {\n if (!editorAreaFocus.value) return\n combineElements()\n }\n\n const uncombine = () => {\n if (!editorAreaFocus.value) return\n uncombineElements()\n }\n\n const remove = () => {\n if (activeElementIdList.value.length) deleteElement()\n else if (thumbnailsFocus.value) deleteSlide()\n }\n\n const move = (key: string) => {\n if (activeElementIdList.value.length) moveElement(key)\n else if (key === KEYS.UP || key === KEYS.DOWN) updateSlideIndex(key)\n }\n\n const moveSlide = (key: string) => {\n if (key === KEYS.PAGEUP) updateSlideIndex(KEYS.UP)\n else if (key === KEYS.PAGEDOWN) updateSlideIndex(KEYS.DOWN)\n }\n\n const order = (command: ElementOrderCommands) => {\n if (!handleElement.value) return\n orderElement(handleElement.value, command)\n }\n\n const create = () => {\n if (!thumbnailsFocus.value) return\n createSlide()\n }\n\n const tabActiveElement = () => {\n if (!currentSlide.value.elements.length) return\n if (!handleElementId.value) {\n const firstElement = currentSlide.value.elements[0]\n mainStore.setActiveElementIdList([firstElement.id])\n return\n }\n const currentIndex = currentSlide.value.elements.findIndex(el => el.id === handleElementId.value)\n const nextIndex = currentIndex >= currentSlide.value.elements.length - 1 ? 0 : currentIndex + 1\n const nextElementId = currentSlide.value.elements[nextIndex].id\n\n mainStore.setActiveElementIdList([nextElementId])\n }\n\n const keydownListener = (e: KeyboardEvent) => {\n const { ctrlKey, shiftKey, altKey, metaKey } = e\n const ctrlOrMetaKeyActive = ctrlKey || metaKey\n \n const key = e.key.toUpperCase()\n\n if (ctrlOrMetaKeyActive && !ctrlKeyState.value) keyboardStore.setCtrlKeyState(true)\n if (shiftKey && !shiftKeyState.value) keyboardStore.setShiftKeyState(true)\n if (!disableHotkeys.value && key === KEYS.SPACE) keyboardStore.setSpaceKeyState(true)\n\n \n if (ctrlOrMetaKeyActive && key === KEYS.P) {\n e.preventDefault()\n mainStore.setDialogForExport('pdf')\n return\n }\n if (shiftKey && key === KEYS.F5) {\n e.preventDefault()\n enterScreening()\n keyboardStore.setShiftKeyState(false)\n return\n }\n if (key === KEYS.F5) {\n e.preventDefault()\n enterScreeningFromStart()\n return\n }\n if (ctrlKey && key === KEYS.F) {\n e.preventDefault()\n mainStore.setSearchPanelState(!showSearchPanel.value)\n return\n }\n \n if (!editorAreaFocus.value && !thumbnailsFocus.value) return \n\n if (ctrlOrMetaKeyActive && key === KEYS.C) {\n if (disableHotkeys.value) return\n e.preventDefault()\n copy()\n }\n if (ctrlOrMetaKeyActive && key === KEYS.X) {\n if (disableHotkeys.value) return\n e.preventDefault()\n cut()\n }\n if (ctrlOrMetaKeyActive && key === KEYS.D) {\n if (disableHotkeys.value) return\n e.preventDefault()\n quickCopy()\n }\n if (ctrlOrMetaKeyActive && key === KEYS.Z) {\n if (disableHotkeys.value) return\n e.preventDefault()\n undo()\n }\n if (ctrlOrMetaKeyActive && key === KEYS.Y) {\n if (disableHotkeys.value) return\n e.preventDefault()\n redo()\n }\n if (ctrlOrMetaKeyActive && key === KEYS.A) {\n if (disableHotkeys.value) return\n e.preventDefault()\n selectAll()\n }\n if (ctrlOrMetaKeyActive && key === KEYS.L) {\n if (disableHotkeys.value) return\n e.preventDefault()\n lock()\n }\n if (!shiftKey && ctrlOrMetaKeyActive && key === KEYS.G) {\n if (disableHotkeys.value) return\n e.preventDefault()\n combine()\n }\n if (shiftKey && ctrlOrMetaKeyActive && key === KEYS.G) {\n if (disableHotkeys.value) return\n e.preventDefault()\n uncombine()\n }\n if (altKey && key === KEYS.F) {\n if (disableHotkeys.value) return\n e.preventDefault()\n order(ElementOrderCommands.TOP)\n }\n if (altKey && key === KEYS.B) {\n if (disableHotkeys.value) return\n e.preventDefault()\n order(ElementOrderCommands.BOTTOM)\n }\n if (key === KEYS.DELETE || key === KEYS.BACKSPACE) {\n if (disableHotkeys.value) return\n e.preventDefault()\n remove()\n }\n if (key === KEYS.UP) {\n if (disableHotkeys.value) return\n e.preventDefault()\n move(KEYS.UP)\n }\n if (key === KEYS.DOWN) {\n if (disableHotkeys.value) return\n e.preventDefault()\n move(KEYS.DOWN)\n }\n if (key === KEYS.LEFT) {\n if (disableHotkeys.value) return\n e.preventDefault()\n move(KEYS.LEFT)\n }\n if (key === KEYS.RIGHT) {\n if (disableHotkeys.value) return\n e.preventDefault()\n move(KEYS.RIGHT)\n }\n if (key === KEYS.PAGEUP) {\n if (disableHotkeys.value) return\n e.preventDefault()\n moveSlide(KEYS.PAGEUP)\n }\n if (key === KEYS.PAGEDOWN) {\n if (disableHotkeys.value) return\n e.preventDefault()\n moveSlide(KEYS.PAGEDOWN)\n }\n if (key === KEYS.ENTER) {\n if (disableHotkeys.value) return\n e.preventDefault()\n create()\n }\n if (key === KEYS.MINUS) {\n if (disableHotkeys.value) return\n e.preventDefault()\n scaleCanvas('-')\n }\n if (key === KEYS.EQUAL) {\n if (disableHotkeys.value) return\n e.preventDefault()\n scaleCanvas('+')\n }\n if (key === KEYS.DIGIT_0) {\n if (disableHotkeys.value) return\n e.preventDefault()\n resetCanvas()\n }\n if (key === KEYS.TAB) {\n if (disableHotkeys.value) return\n e.preventDefault()\n tabActiveElement()\n }\n }\n \n const keyupListener = () => {\n if (ctrlKeyState.value) keyboardStore.setCtrlKeyState(false)\n if (shiftKeyState.value) keyboardStore.setShiftKeyState(false)\n if (spaceKeyState.value) keyboardStore.setSpaceKeyState(false)\n }\n\n onMounted(() => {\n document.addEventListener('keydown', keydownListener)\n document.addEventListener('keyup', keyupListener)\n window.addEventListener('blur', keyupListener)\n })\n onUnmounted(() => {\n document.removeEventListener('keydown', keydownListener)\n document.removeEventListener('keyup', keyupListener)\n window.removeEventListener('blur', keyupListener)\n })\n}","import { onMounted, onUnmounted } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport { getImageDataURL } from '@/utils/image'\nimport usePasteTextClipboardData from './usePasteTextClipboardData'\nimport useCreateElement from './useCreateElement'\n\nexport default () => {\n const { editorAreaFocus, thumbnailsFocus, disableHotkeys } = storeToRefs(useMainStore())\n\n const { pasteTextClipboardData } = usePasteTextClipboardData()\n const { createImageElement } = useCreateElement()\n\n // 粘贴图片到幻灯片元素\n const pasteImageFile = (imageFile: File) => {\n getImageDataURL(imageFile).then(dataURL => createImageElement(dataURL))\n }\n\n /**\n * 粘贴事件监听\n * @param e ClipboardEvent\n */\n const pasteListener = (e: ClipboardEvent) => {\n if (!editorAreaFocus.value && !thumbnailsFocus.value) return\n if (disableHotkeys.value) return\n\n if (!e.clipboardData) return\n\n const clipboardDataItems = e.clipboardData.items\n const clipboardDataFirstItem = clipboardDataItems[0]\n\n if (!clipboardDataFirstItem) return\n\n // 如果剪贴板内有图片,优先尝试读取图片\n for (const item of clipboardDataItems) {\n if (item.kind === 'file' && item.type.indexOf('image') !== -1) {\n const imageFile = item.getAsFile()\n if (imageFile) pasteImageFile(imageFile)\n return\n }\n }\n \n // 如果剪贴板内没有图片,但有文字内容,尝试解析文字内容\n if (clipboardDataFirstItem.kind === 'string' && clipboardDataFirstItem.type === 'text/plain') {\n clipboardDataFirstItem.getAsString(text => pasteTextClipboardData(text))\n }\n }\n\n onMounted(() => {\n document.addEventListener('paste', pasteListener)\n })\n onUnmounted(() => {\n document.removeEventListener('paste', pasteListener)\n })\n}","import { ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { parse, type Shape, type Element, type ChartItem } from 'pptxtojson'\nimport { nanoid } from 'nanoid'\nimport { useSlidesStore } from '@/store'\nimport { decrypt } from '@/utils/crypto'\nimport { type ShapePoolItem, SHAPE_LIST, SHAPE_PATH_FORMULAS } from '@/configs/shapes'\nimport { VIEWPORT_SIZE } from '@/configs/canvas'\nimport useAddSlidesOrElements from '@/hooks/useAddSlidesOrElements'\nimport message from '@/utils/message'\nimport type {\n Slide,\n TableCellStyle,\n TableCell,\n ChartType,\n ChartOptions,\n SlideBackground,\n PPTShapeElement,\n PPTLineElement,\n ShapeTextAlign,\n PPTTextElement,\n} from '@/types/slides'\n\nexport default () => {\n const slidesStore = useSlidesStore()\n const { theme } = storeToRefs(useSlidesStore())\n\n const { addSlidesFromData, isEmptySlide } = useAddSlidesOrElements()\n\n const exporting = ref(false)\n\n // 导入pptist文件\n const importSpecificFile = (files: FileList, cover = false) => {\n const file = files[0]\n\n const reader = new FileReader()\n reader.addEventListener('load', () => {\n try {\n const slides = JSON.parse(decrypt(reader.result as string))\n if (cover) slidesStore.setSlides(slides)\n else if (isEmptySlide.value) slidesStore.setSlides(slides)\n else addSlidesFromData(slides)\n }\n catch {\n message.error('无法正确读取 / 解析该文件')\n }\n })\n reader.readAsText(file)\n }\n\n const parseLineElement = (el: Shape): PPTLineElement => {\n let start: [number, number] = [0, 0]\n let end: [number, number] = [0, 0]\n\n if (!el.isFlipV && !el.isFlipH) { // 右下\n start = [0, 0]\n end = [el.width, el.height]\n }\n else if (el.isFlipV && el.isFlipH) { // 左上\n start = [el.width, el.height]\n end = [0, 0]\n }\n else if (el.isFlipV && !el.isFlipH) { // 右上\n start = [0, el.height]\n end = [el.width, 0]\n }\n else { // 左下\n start = [el.width, 0]\n end = [0, el.height]\n }\n return {\n type: 'line',\n id: nanoid(10),\n width: el.borderWidth || 1,\n left: el.left,\n top: el.top,\n start,\n end,\n style: el.borderType === 'solid' ? 'solid' : 'dashed',\n color: el.borderColor,\n points: ['', el.shapType === 'straightConnector1' ? 'arrow' : '']\n }\n }\n\n // 导入PPTX文件\n const importPPTXFile = (files: FileList) => {\n const file = files[0]\n if (!file) return\n\n exporting.value = true\n\n const shapeList: ShapePoolItem[] = []\n for (const item of SHAPE_LIST) {\n shapeList.push(...item.children)\n }\n \n const reader = new FileReader()\n reader.onload = async e => {\n const json = await parse(e.target!.result as ArrayBuffer, {\n slideFactor: 75 / 914400,\n fontsizeFactor: 100 / 98,\n })\n\n const width = json.size.width\n const scale = VIEWPORT_SIZE / width\n\n const slides: Slide[] = []\n for (const item of json.slides) {\n const { type, value } = item.fill\n let background: SlideBackground\n if (type === 'image') {\n background = {\n type: 'image',\n image: value.picBase64,\n imageSize: 'cover',\n }\n }\n else if (type === 'gradient') {\n background = {\n type: 'gradient',\n gradientType: 'linear',\n gradientColor: [value.colors[0].color, value.colors[value.colors.length - 1].color],\n gradientRotate: value.rot,\n }\n }\n else {\n background = {\n type: 'solid',\n color: value,\n }\n }\n\n const slide: Slide = {\n id: nanoid(10),\n elements: [],\n background,\n }\n\n const parseElements = (elements: Element[]) => {\n for (const el of elements) {\n el.width = el.width * scale\n el.height = el.height * scale\n el.left = el.left * scale\n el.top = el.top * scale\n \n if (el.type === 'text') {\n const textEl: PPTTextElement = {\n type: 'text',\n id: nanoid(10),\n width: el.width,\n height: el.height,\n left: el.left,\n top: el.top,\n rotate: el.rotate,\n defaultFontName: theme.value.fontName,\n defaultColor: theme.value.fontColor,\n content: el.content,\n lineHeight: 1,\n outline: {\n color: el.borderColor,\n width: el.borderWidth,\n style: el.borderType === 'solid' ? 'solid' : 'dashed',\n },\n fill: el.fillColor,\n vertical: el.isVertical,\n }\n if (el.shadow) textEl.shadow = el.shadow\n slide.elements.push(textEl)\n }\n else if (el.type === 'image') {\n slide.elements.push({\n type: 'image',\n id: nanoid(10),\n src: el.src,\n width: el.width,\n height: el.height,\n left: el.left,\n top: el.top,\n fixedRatio: true,\n rotate: el.rotate,\n })\n }\n else if (el.type === 'audio') {\n slide.elements.push({\n type: 'audio',\n id: nanoid(10),\n src: el.blob,\n width: el.width,\n height: el.height,\n left: el.left,\n top: el.top,\n rotate: 0,\n fixedRatio: false,\n color: theme.value.themeColor,\n loop: false,\n autoplay: false,\n })\n }\n else if (el.type === 'video') {\n slide.elements.push({\n type: 'video',\n id: nanoid(10),\n src: (el.blob || el.src)!,\n width: el.width,\n height: el.height,\n left: el.left,\n top: el.top,\n rotate: 0,\n autoplay: false,\n })\n }\n else if (el.type === 'shape') {\n if (el.shapType === 'line' || /Connector/.test(el.shapType)) {\n const lineElement = parseLineElement(el)\n slide.elements.push(lineElement)\n }\n else {\n const shape = shapeList.find(item => item.pptxShapeType === el.shapType)\n\n const vAlignMap: { [key: string]: ShapeTextAlign } = {\n 'mid': 'middle',\n 'down': 'bottom',\n 'up': 'top',\n }\n \n const element: PPTShapeElement = {\n type: 'shape',\n id: nanoid(10),\n width: el.width,\n height: el.height,\n left: el.left,\n top: el.top,\n viewBox: [200, 200],\n path: 'M 0 0 L 200 0 L 200 200 L 0 200 Z',\n fill: el.fillColor || 'none',\n fixedRatio: false,\n rotate: el.rotate,\n outline: {\n color: el.borderColor,\n width: el.borderWidth,\n style: el.borderType === 'solid' ? 'solid' : 'dashed',\n },\n text: {\n content: el.content,\n defaultFontName: theme.value.fontName,\n defaultColor: theme.value.fontColor,\n align: vAlignMap[el.vAlign] || 'middle',\n },\n flipH: el.isFlipH,\n flipV: el.isFlipV,\n }\n if (el.shadow) element.shadow = el.shadow\n \n if (shape) {\n element.path = shape.path\n element.viewBox = shape.viewBox\n \n if (shape.pathFormula) {\n element.pathFormula = shape.pathFormula\n element.viewBox = [el.width, el.height]\n \n const pathFormula = SHAPE_PATH_FORMULAS[shape.pathFormula]\n if ('editable' in pathFormula) {\n element.path = pathFormula.formula(el.width, el.height, pathFormula.defaultValue)\n element.keypoint = pathFormula.defaultValue\n }\n else element.path = pathFormula.formula(el.width, el.height)\n }\n }\n if (el.shapType === 'custom') {\n element.special = true\n element.path = el.path!\n element.viewBox = [el.width, el.height]\n }\n \n slide.elements.push(element)\n }\n }\n else if (el.type === 'table') {\n const row = el.data.length\n const col = el.data[0].length\n \n const style: TableCellStyle = {\n fontname: theme.value.fontName,\n color: theme.value.fontColor,\n }\n const data: TableCell[][] = []\n for (let i = 0; i < row; i++) {\n const rowCells: TableCell[] = []\n for (let j = 0; j < col; j++) {\n const cellData = el.data[i][j]\n rowCells.push({\n id: nanoid(10),\n colspan: cellData.colSpan || 1,\n rowspan: cellData.rowSpan || 1,\n text: cellData.text,\n style,\n })\n }\n data.push(rowCells)\n }\n \n const colWidths: number[] = new Array(col).fill(1 / col)\n \n slide.elements.push({\n type: 'table',\n id: nanoid(10),\n width: el.width,\n height: el.height,\n left: el.left,\n top: el.top,\n colWidths,\n rotate: 0,\n data,\n outline: {\n width: 2,\n style: 'solid',\n color: '#eeece1',\n },\n theme: {\n color: el.themeColor,\n rowHeader: true,\n rowFooter: false,\n colHeader: false,\n colFooter: false,\n },\n cellMinHeight: 36,\n })\n }\n else if (el.type === 'chart') {\n let labels: string[]\n let legends: string[]\n let series: number[][]\n \n if (el.chartType === 'scatterChart' || el.chartType === 'bubbleChart') {\n const data = el.data\n labels = data[0].map(item => item + '')\n legends = ['系列1']\n series = [data[1]]\n }\n else {\n const data = el.data as ChartItem[]\n labels = Object.values(data[0].xlabels)\n legends = data.map(item => item.key)\n series = data.map(item => item.values.map(v => v.y))\n }\n \n const options: ChartOptions = {}\n \n let chartType: ChartType = 'bar'\n\n switch (el.chartType) {\n case 'barChart':\n case 'bar3DChart':\n chartType = 'bar'\n if (el.barDir === 'bar') options.horizontalBars = true\n if (el.grouping === 'stacked' || el.grouping === 'percentStacked') options.stackBars = true\n break\n case 'lineChart':\n case 'line3DChart':\n case 'areaChart':\n case 'area3DChart':\n case 'scatterChart':\n case 'bubbleChart':\n chartType = 'line'\n if (el.chartType === 'areaChart' || el.chartType === 'area3DChart') options.showArea = true\n if (el.chartType === 'scatterChart' || el.chartType === 'bubbleChart') options.showLine = false\n break\n case 'pieChart':\n case 'pie3DChart':\n case 'doughnutChart':\n chartType = 'pie'\n if (el.chartType === 'doughnutChart') options.donut = true\n break\n default:\n }\n \n slide.elements.push({\n type: 'chart',\n id: nanoid(10),\n chartType: chartType,\n width: el.width,\n height: el.height,\n left: el.left,\n top: el.top,\n rotate: 0,\n themeColor: [theme.value.themeColor],\n gridColor: theme.value.fontColor,\n data: {\n labels,\n legends,\n series,\n },\n options,\n })\n }\n else if (el.type === 'group' || el.type === 'diagram') {\n const elements = el.elements.map(_el => ({\n ..._el,\n left: _el.left + el.left,\n top: _el.top + el.top,\n }))\n parseElements(elements)\n }\n }\n }\n parseElements(item.elements)\n slides.push(slide)\n }\n if (isEmptySlide.value) slidesStore.setSlides(slides)\n else addSlidesFromData(slides)\n exporting.value = false\n }\n reader.readAsArrayBuffer(file)\n }\n\n return {\n importSpecificFile,\n importPPTXFile,\n exporting,\n }\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-a0322054\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"hotkey-doc\" }\nconst _hoisted_2 = { class: \"title\" }\nconst _hoisted_3 = { class: \"label\" }\nconst _hoisted_4 = { class: \"value\" }\n\nimport { HOTKEY_DOC } from '@/configs/hotkey' \n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'HotkeyDoc',\n setup(__props) {\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(HOTKEY_DOC), (item) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: item.type\n }, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(item.type), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.children, (hotkey) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"hotkey-item\",\n key: hotkey.label\n }, [\n _createElementVNode(\"div\", _hoisted_3, _toDisplayString(hotkey.label), 1),\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(hotkey.value), 1)\n ]))\n }), 128))\n ], 64))\n }), 128))\n ]))\n}\n}\n\n})","import script from \"./HotkeyDoc.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./HotkeyDoc.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./HotkeyDoc.vue?vue&type=style&index=0&id=a0322054&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-a0322054\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-64bedb34\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"accept\"]\n\nimport { ref } from 'vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'FileInput',\n props: {\n accept: { default: 'image/*' }\n },\n emits: [\"change\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit\n\nconst inputRef = ref()\n\nconst handleClick = () => {\n if (!inputRef.value) return\n inputRef.value.value = ''\n inputRef.value.click()\n}\nconst handleChange = (e: Event) => {\n const files = (e.target as HTMLInputElement).files\n if (files) emit('change', files)\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"file-input\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (handleClick()))\n }, [\n _renderSlot(_ctx.$slots, \"default\"),\n _createElementVNode(\"input\", {\n class: \"input\",\n type: \"file\",\n name: \"upload\",\n ref_key: \"inputRef\",\n ref: inputRef,\n accept: _ctx.accept,\n onChange: _cache[0] || (_cache[0] = $event => handleChange($event))\n }, null, 40, _hoisted_1)\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./FileInput.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./FileInput.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./FileInput.vue?vue&type=style&index=0&id=64bedb34&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-64bedb34\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-a5c6b41c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"fullscreen-spin\"\n}\nconst _hoisted_2 = { class: \"spin\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"spinner\" }, null, -1))\nconst _hoisted_4 = { class: \"text\" }\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'FullscreenSpin',\n props: {\n loading: { type: Boolean, default: false },\n tip: { default: '' }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, _toDisplayString(_ctx.tip), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./FullscreenSpin.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./FullscreenSpin.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./FullscreenSpin.vue?vue&type=style&index=0&id=a5c6b41c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-a5c6b41c\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, vShow as _vShow, normalizeClass as _normalizeClass, withDirectives as _withDirectives, Transition as _Transition, withCtx as _withCtx, Teleport as _Teleport, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-749dadac\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"header\" }\n\nimport { computed, ref, type CSSProperties } from 'vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Drawer',\n props: {\n visible: { type: Boolean },\n width: { default: 320 },\n contentStyle: {},\n placement: { default: 'right' }\n },\n emits: [\"update:visible\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props\n\nconst emit = __emit\n\nconst contentVisible = ref(false)\n\nconst contentStyle = computed(() => {\n return {\n width: props.width + 'px',\n ...(props.contentStyle || {})\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconClose = _resolveComponent(\"IconClose\")!\n\n return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createVNode(_Transition, {\n name: `drawer-slide-${_ctx.placement}`,\n onAfterLeave: _cache[1] || (_cache[1] = ($event: any) => (contentVisible.value = false)),\n onBeforeEnter: _cache[2] || (_cache[2] = ($event: any) => (contentVisible.value = true))\n }, {\n default: _withCtx(() => [\n _withDirectives(_createElementVNode(\"div\", {\n class: _normalizeClass(['drawer', _ctx.placement]),\n style: _normalizeStyle({ width: props.width + 'px' })\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"title\"),\n _createElementVNode(\"span\", {\n class: \"close-btn\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (emit('update:visible', false)))\n }, [\n _createVNode(_component_IconClose)\n ])\n ]),\n (contentVisible.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"content\",\n style: _normalizeStyle(contentStyle.value)\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 4))\n : _createCommentVNode(\"\", true)\n ], 6), [\n [_vShow, _ctx.visible]\n ])\n ]),\n _: 3\n }, 8, [\"name\"])\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./Drawer.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Drawer.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Drawer.vue?vue&type=style&index=0&id=749dadac&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-749dadac\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, createElementVNode as _createElementVNode, withKeys as _withKeys, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-a97ba0dc\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"prefix\" }\nconst _hoisted_2 = [\"disabled\", \"value\", \"placeholder\"]\nconst _hoisted_3 = { class: \"suffix\" }\n\nimport { ref } from 'vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Input',\n props: {\n value: {},\n disabled: { type: Boolean, default: false },\n placeholder: { default: '' }\n },\n emits: [\"update:value\", \"input\", \"change\", \"blur\", \"focus\", \"enter\"],\n setup(__props: any, { expose: __expose, emit: __emit }) {\n\n\n\nconst emit = __emit\n\nconst focused = ref(false)\n\nconst handleInput = (e: Event) => {\n emit('update:value', (e.target as HTMLInputElement).value)\n}\nconst handleBlur = (e: Event) => {\n focused.value = false\n emit('blur', e)\n}\nconst handleFocus = (e: Event) => {\n focused.value = true\n emit('focus', e)\n}\n\nconst inputRef = ref()\nconst focus = () => {\n if (inputRef.value) inputRef.value.focus()\n}\n\n__expose({\n focus,\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"input\", {\n 'disabled': _ctx.disabled,\n 'focused': focused.value,\n }])\n }, [\n _createElementVNode(\"span\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"prefix\")\n ]),\n _createElementVNode(\"input\", {\n type: \"text\",\n ref_key: \"inputRef\",\n ref: inputRef,\n disabled: _ctx.disabled,\n value: _ctx.value,\n placeholder: _ctx.placeholder,\n onInput: _cache[0] || (_cache[0] = $event => handleInput($event)),\n onFocus: _cache[1] || (_cache[1] = $event => handleFocus($event)),\n onBlur: _cache[2] || (_cache[2] = $event => handleBlur($event)),\n onChange: _cache[3] || (_cache[3] = $event => emit('change', $event)),\n onKeydown: _cache[4] || (_cache[4] = _withKeys($event => emit('enter', $event), [\"enter\"]))\n }, null, 40, _hoisted_2),\n _createElementVNode(\"span\", _hoisted_3, [\n _renderSlot(_ctx.$slots, \"suffix\")\n ])\n ], 2))\n}\n}\n\n})","\n\n\n\n","import script from \"./Input.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Input.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Input.vue?vue&type=style&index=0&id=a97ba0dc&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-a97ba0dc\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { type CSSProperties, onMounted, ref, watch, computed } from 'vue'\nimport tippy, { type Instance, type Placement } from 'tippy.js'\n\nimport 'tippy.js/animations/scale.css'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Popover',\n props: {\n value: { type: Boolean, default: false },\n trigger: { default: 'click' },\n placement: { default: 'bottom' },\n appendTo: {},\n contentStyle: {},\n center: { type: Boolean, default: false }\n },\n emits: [\"update:value\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props\n\nconst emit = __emit\n\nconst instance = ref()\nconst triggerRef = ref()\nconst contentRef = ref()\nconst contentVisible = ref(false)\n\nconst contentStyle = computed(() => {\n return props.contentStyle || {}\n})\n\nwatch(() => props.value, () => {\n if (!instance.value) return\n if (props.value) instance.value.show()\n else instance.value.hide()\n})\n\nonMounted(() => {\n instance.value = tippy(triggerRef.value!, {\n content: contentRef.value!,\n allowHTML: true,\n trigger: props.trigger,\n placement: props.placement,\n interactive: true,\n appendTo: props.appendTo || document.body,\n maxWidth: 'none',\n offset: [0, 8],\n duration: 200,\n animation: 'scale',\n theme: 'popover',\n onShow() {\n contentVisible.value = true\n },\n onShown() {\n if (!props.value) emit('update:value', true)\n },\n onHidden() {\n if (props.value) emit('update:value', false)\n contentVisible.value = false\n },\n })\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"popover\", { 'center': _ctx.center }]),\n ref_key: \"triggerRef\",\n ref: triggerRef\n }, [\n _createElementVNode(\"div\", {\n class: \"popover-content\",\n style: _normalizeStyle(contentStyle.value),\n ref_key: \"contentRef\",\n ref: contentRef\n }, [\n (contentVisible.value)\n ? _renderSlot(_ctx.$slots, \"content\", { key: 0 })\n : _createCommentVNode(\"\", true)\n ], 4),\n _renderSlot(_ctx.$slots, \"default\")\n ], 2))\n}\n}\n\n})","\n\n\n\n\n\n","import script from \"./Popover.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Popover.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Popover.vue?vue&type=style&index=0&id=70fabe9a&lang=scss&scoped=true\"\nimport \"./Popover.vue?vue&type=style&index=1&id=70fabe9a&lang=scss\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-70fabe9a\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PopoverMenuItem',\n props: {\n center: { type: Boolean, default: false }\n },\n emits: [\"click\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"popover-menu-item\", { 'center': _ctx.center }]),\n onClick: _cache[0] || (_cache[0] = ($event: any) => (emit('click')))\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 2))\n}\n}\n\n})","\n\n\n\n","import script from \"./PopoverMenuItem.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PopoverMenuItem.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./PopoverMenuItem.vue?vue&type=style&index=0&id=2f137c4f&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2f137c4f\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, resolveComponent as _resolveComponent, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, resolveDirective as _resolveDirective, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0b9f8c7b\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"editor-header\" }\nconst _hoisted_2 = { class: \"left\" }\nconst _hoisted_3 = { class: \"menu-item\" }\nconst _hoisted_4 = { class: \"title\" }\nconst _hoisted_5 = [\"title\"]\nconst _hoisted_6 = { class: \"right\" }\nconst _hoisted_7 = { class: \"group-menu-item\" }\nconst _hoisted_8 = { class: \"arrow-btn\" }\nconst _hoisted_9 = {\n class: \"github-link\",\n href: \"https://github.com/pipipi-pikachu/PPTist\",\n target: \"_blank\"\n}\nconst _hoisted_10 = { class: \"menu-item\" }\n\nimport { nextTick, ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport useScreening from '@/hooks/useScreening'\nimport useImport from '@/hooks/useImport'\nimport useSlideHandler from '@/hooks/useSlideHandler'\nimport type { DialogForExportTypes } from '@/types/export'\n\nimport HotkeyDoc from './HotkeyDoc.vue'\nimport FileInput from '@/components/FileInput.vue'\nimport FullscreenSpin from '@/components/FullscreenSpin.vue'\nimport Drawer from '@/components/Drawer.vue'\nimport Input from '@/components/Input.vue'\nimport Popover from '@/components/Popover.vue'\nimport PopoverMenuItem from '@/components/PopoverMenuItem.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n setup(__props) {\n\nconst mainStore = useMainStore()\nconst slidesStore = useSlidesStore()\nconst { title } = storeToRefs(slidesStore)\nconst { enterScreening, enterScreeningFromStart } = useScreening()\nconst { importSpecificFile, importPPTXFile, exporting } = useImport()\nconst { resetSlides } = useSlideHandler()\n\nconst mainMenuVisible = ref(false)\nconst hotkeyDrawerVisible = ref(false)\nconst editingTitle = ref(false)\nconst titleInputRef = ref>()\nconst titleValue = ref('')\n\nconst startEditTitle = () => {\n titleValue.value = title.value\n editingTitle.value = true\n nextTick(() => titleInputRef.value?.focus())\n}\n\nconst handleUpdateTitle = () => {\n slidesStore.setTitle(titleValue.value)\n editingTitle.value = false\n}\n\nconst goLink = (url: string) => {\n window.open(url)\n mainMenuVisible.value = false\n}\n\nconst setDialogForExport = (type: DialogForExportTypes) => {\n mainStore.setDialogForExport(type)\n mainMenuVisible.value = false\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconHamburgerButton = _resolveComponent(\"IconHamburgerButton\")!\n const _component_IconPpt = _resolveComponent(\"IconPpt\")!\n const _component_IconDown = _resolveComponent(\"IconDown\")!\n const _component_IconDownload = _resolveComponent(\"IconDownload\")!\n const _component_IconGithub = _resolveComponent(\"IconGithub\")!\n const _directive_tooltip = _resolveDirective(\"tooltip\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(Popover, {\n trigger: \"click\",\n placement: \"bottom-start\",\n value: mainMenuVisible.value,\n \"onUpdate:value\": _cache[7] || (_cache[7] = ($event: any) => ((mainMenuVisible).value = $event))\n }, {\n content: _withCtx(() => [\n _createVNode(FileInput, {\n accept: \".pptist\",\n onChange: _cache[0] || (_cache[0] = files => {\n _unref(importSpecificFile)(files)\n mainMenuVisible.value = false\n })\n }, {\n default: _withCtx(() => [\n _createVNode(PopoverMenuItem, null, {\n default: _withCtx(() => [\n _createTextVNode(\"导入 pptist 文件\")\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(FileInput, {\n accept: \"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n onChange: _cache[1] || (_cache[1] = files => {\n _unref(importPPTXFile)(files)\n mainMenuVisible.value = false\n })\n }, {\n default: _withCtx(() => [\n _createVNode(PopoverMenuItem, null, {\n default: _withCtx(() => [\n _createTextVNode(\"导入 pptx 文件(测试版)\")\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(PopoverMenuItem, {\n onClick: _cache[2] || (_cache[2] = ($event: any) => (setDialogForExport('pptx')))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"导出文件\")\n ]),\n _: 1\n }),\n _createVNode(PopoverMenuItem, {\n onClick: _cache[3] || (_cache[3] = ($event: any) => {_unref(resetSlides)(); mainMenuVisible.value = false})\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"重置幻灯片\")\n ]),\n _: 1\n }),\n _createVNode(PopoverMenuItem, {\n onClick: _cache[4] || (_cache[4] = ($event: any) => (goLink('https://github.com/pipipi-pikachu/PPTist/issues')))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"意见反馈\")\n ]),\n _: 1\n }),\n _createVNode(PopoverMenuItem, {\n onClick: _cache[5] || (_cache[5] = ($event: any) => (goLink('https://github.com/pipipi-pikachu/PPTist/blob/master/doc/Q&A.md')))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"常见问题\")\n ]),\n _: 1\n }),\n _createVNode(PopoverMenuItem, {\n onClick: _cache[6] || (_cache[6] = ($event: any) => {mainMenuVisible.value = false; hotkeyDrawerVisible.value = true})\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"快捷键\")\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_component_IconHamburgerButton, { class: \"icon\" })\n ])\n ]),\n _: 1\n }, 8, [\"value\"]),\n _createElementVNode(\"div\", _hoisted_4, [\n (editingTitle.value)\n ? (_openBlock(), _createBlock(Input, {\n key: 0,\n class: \"title-input\",\n ref_key: \"titleInputRef\",\n ref: titleInputRef,\n value: titleValue.value,\n \"onUpdate:value\": _cache[8] || (_cache[8] = ($event: any) => ((titleValue).value = $event)),\n onBlur: _cache[9] || (_cache[9] = ($event: any) => (handleUpdateTitle()))\n }, null, 8, [\"value\"]))\n : (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"title-text\",\n onClick: _cache[10] || (_cache[10] = ($event: any) => (startEditTitle())),\n title: _unref(title)\n }, _toDisplayString(_unref(title)), 9, _hoisted_5))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"menu-item\",\n onClick: _cache[11] || (_cache[11] = ($event: any) => (_unref(enterScreening)()))\n }, [\n _createVNode(_component_IconPpt, { class: \"icon\" })\n ])), [\n [_directive_tooltip, '幻灯片放映']\n ]),\n _createVNode(Popover, {\n trigger: \"click\",\n center: \"\"\n }, {\n content: _withCtx(() => [\n _createVNode(PopoverMenuItem, {\n onClick: _cache[12] || (_cache[12] = ($event: any) => (_unref(enterScreeningFromStart)()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"从头开始\")\n ]),\n _: 1\n }),\n _createVNode(PopoverMenuItem, {\n onClick: _cache[13] || (_cache[13] = ($event: any) => (_unref(enterScreening)()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"从当前页开始\")\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(_component_IconDown, { class: \"arrow\" })\n ])\n ]),\n _: 1\n })\n ]),\n _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"menu-item\",\n onClick: _cache[14] || (_cache[14] = ($event: any) => (setDialogForExport('pptx')))\n }, [\n _createVNode(_component_IconDownload, { class: \"icon\" })\n ])), [\n [_directive_tooltip, '导出']\n ]),\n _createElementVNode(\"a\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode(_component_IconGithub, { class: \"icon\" })\n ])\n ])\n ]),\n _createVNode(Drawer, {\n width: 320,\n visible: hotkeyDrawerVisible.value,\n \"onUpdate:visible\": _cache[15] || (_cache[15] = ($event: any) => ((hotkeyDrawerVisible).value = $event)),\n placement: \"right\"\n }, {\n default: _withCtx(() => [\n _createVNode(HotkeyDoc)\n ]),\n _: 1\n }, 8, [\"visible\"]),\n _createVNode(FullscreenSpin, {\n loading: _unref(exporting),\n tip: \"正在导入...\"\n }, null, 8, [\"loading\"])\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=0b9f8c7b&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0b9f8c7b\"]])\n\nexport default __exports__","import type { InjectionKey, Ref } from 'vue'\n\nexport type SlideScale = Ref\nexport type SlideId = Ref\nexport type RadioGroupValue = {\n value: Ref\n updateValue: (value: string) => void\n}\n\nexport const injectKeySlideScale: InjectionKey = Symbol()\nexport const injectKeySlideId: InjectionKey = Symbol()\nexport const injectKeyRadioGroupValue: InjectionKey = Symbol()","// 清除文字选区\nexport const removeAllRanges = () => {\n const selection = window.getSelection()\n selection && selection.removeAllRanges()\n}","import { ref, computed, onMounted, onUnmounted, watch, type Ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport { VIEWPORT_SIZE } from '@/configs/canvas'\n\nexport default (canvasRef: Ref) => {\n const viewportLeft = ref(0)\n const viewportTop = ref(0)\n\n const mainStore = useMainStore()\n const { canvasPercentage, canvasDragged } = storeToRefs(mainStore)\n const { viewportRatio } = storeToRefs(useSlidesStore())\n\n // 初始化画布可视区域的位置\n const initViewportPosition = () => {\n if (!canvasRef.value) return\n const canvasWidth = canvasRef.value.clientWidth\n const canvasHeight = canvasRef.value.clientHeight\n\n if (canvasHeight / canvasWidth > viewportRatio.value) {\n const viewportActualWidth = canvasWidth * (canvasPercentage.value / 100)\n mainStore.setCanvasScale(viewportActualWidth / VIEWPORT_SIZE)\n viewportLeft.value = (canvasWidth - viewportActualWidth) / 2\n viewportTop.value = (canvasHeight - viewportActualWidth * viewportRatio.value) / 2\n }\n else {\n const viewportActualHeight = canvasHeight * (canvasPercentage.value / 100)\n mainStore.setCanvasScale(viewportActualHeight / (VIEWPORT_SIZE * viewportRatio.value))\n viewportLeft.value = (canvasWidth - viewportActualHeight / viewportRatio.value) / 2\n viewportTop.value = (canvasHeight - viewportActualHeight) / 2\n }\n }\n\n // 更新画布可视区域的位置\n const setViewportPosition = (newValue: number, oldValue: number) => {\n if (!canvasRef.value) return\n const canvasWidth = canvasRef.value.clientWidth\n const canvasHeight = canvasRef.value.clientHeight\n\n const newViewportActualWidth = canvasWidth * (newValue / 100)\n const oldViewportActualWidth = canvasWidth * (oldValue / 100)\n const newViewportActualHeight = canvasHeight * (newValue / 100)\n const oldViewportActualHeight = canvasHeight * (oldValue / 100)\n\n if (canvasHeight / canvasWidth > viewportRatio.value) {\n mainStore.setCanvasScale(newViewportActualWidth / VIEWPORT_SIZE)\n }\n else {\n mainStore.setCanvasScale(newViewportActualHeight / (VIEWPORT_SIZE * viewportRatio.value))\n }\n viewportLeft.value = viewportLeft.value - (newViewportActualWidth - oldViewportActualWidth) / 2\n viewportTop.value = viewportTop.value - (newViewportActualHeight - oldViewportActualHeight) / 2\n }\n\n // 可视区域缩放或比例变化时,重置/更新可视区域的位置\n watch(canvasPercentage, setViewportPosition)\n watch(viewportRatio, initViewportPosition)\n\n // 画布拖拽状态改变(复原)时,重置可视区域的位置\n watch(canvasDragged, () => {\n if (!canvasDragged.value) initViewportPosition()\n })\n\n // 画布可视区域位置和大小的样式\n const viewportStyles = computed(() => ({\n width: VIEWPORT_SIZE,\n height: VIEWPORT_SIZE * viewportRatio.value,\n left: viewportLeft.value,\n top: viewportTop.value,\n }))\n\n // 监听画布尺寸发生变化时,重置可视区域的位置\n const resizeObserver = new ResizeObserver(initViewportPosition)\n\n onMounted(() => {\n if (canvasRef.value) resizeObserver.observe(canvasRef.value)\n })\n onUnmounted(() => {\n if (canvasRef.value) resizeObserver.unobserve(canvasRef.value)\n })\n\n // 拖拽画布\n const dragViewport = (e: MouseEvent) => {\n let isMouseDown = true\n\n const startPageX = e.pageX\n const startPageY = e.pageY\n\n const originLeft = viewportLeft.value\n const originTop = viewportTop.value\n\n document.onmousemove = e => {\n if (!isMouseDown) return\n\n const currentPageX = e.pageX\n const currentPageY = e.pageY\n\n viewportLeft.value = originLeft + (currentPageX - startPageX)\n viewportTop.value = originTop + (currentPageY - startPageY)\n }\n\n document.onmouseup = () => {\n isMouseDown = false\n document.onmousemove = null\n document.onmouseup = null\n\n mainStore.setCanvasDragged(true)\n }\n }\n\n return {\n viewportStyles,\n dragViewport,\n }\n}","import { type Ref, ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport type { PPTElement } from '@/types/slides'\nimport { getElementRange } from '@/utils/element'\n\nexport default (elementList: Ref, viewportRef: Ref) => {\n const mainStore = useMainStore()\n const { canvasScale, hiddenElementIdList } = storeToRefs(mainStore)\n\n const mouseSelectionVisible = ref(false)\n const mouseSelectionQuadrant = ref(1)\n const mouseSelection = ref({\n top: 0,\n left: 0,\n width: 0,\n height: 0,\n })\n\n // 更新鼠标框选范围\n const updateMouseSelection = (e: MouseEvent) => {\n if (!viewportRef.value) return\n\n let isMouseDown = true\n const viewportRect = viewportRef.value.getBoundingClientRect()\n\n const minSelectionRange = 5\n \n const startPageX = e.pageX\n const startPageY = e.pageY\n\n const left = (startPageX - viewportRect.x) / canvasScale.value\n const top = (startPageY - viewportRect.y) / canvasScale.value\n\n // 确定框选的起始位置和其他默认值初始化\n mouseSelection.value = {\n top: top,\n left: left,\n width: 0,\n height: 0,\n }\n mouseSelectionVisible.value = false\n mouseSelectionQuadrant.value = 4\n\n document.onmousemove = e => {\n if (!isMouseDown) return\n\n const currentPageX = e.pageX\n const currentPageY = e.pageY\n\n const offsetWidth = (currentPageX - startPageX) / canvasScale.value\n const offsetHeight = (currentPageY - startPageY) / canvasScale.value\n\n const width = Math.abs(offsetWidth)\n const height = Math.abs(offsetHeight)\n\n if ( width < minSelectionRange || height < minSelectionRange ) return\n \n // 计算鼠标框选(移动)的方向\n // 按四个象限的位置区分,如右下角为第四象限\n let quadrant = 0\n if ( offsetWidth > 0 && offsetHeight > 0 ) quadrant = 4\n else if ( offsetWidth < 0 && offsetHeight < 0 ) quadrant = 2\n else if ( offsetWidth > 0 && offsetHeight < 0 ) quadrant = 1\n else if ( offsetWidth < 0 && offsetHeight > 0 ) quadrant = 3\n\n // 更新框选范围\n mouseSelection.value = {\n ...mouseSelection.value,\n width: width,\n height: height,\n }\n mouseSelectionVisible.value = true\n mouseSelectionQuadrant.value = quadrant\n }\n\n document.onmouseup = () => {\n document.onmousemove = null\n document.onmouseup = null\n isMouseDown = false\n\n // 计算画布中的元素是否处在鼠标选择范围中,处在范围中的元素设置为被选中状态\n let inRangeElementList: PPTElement[] = []\n for (let i = 0; i < elementList.value.length; i++) {\n const element = elementList.value[i]\n const mouseSelectionLeft = mouseSelection.value.left\n const mouseSelectionTop = mouseSelection.value.top\n const mouseSelectionWidth = mouseSelection.value.width\n const mouseSelectionHeight = mouseSelection.value.height\n\n const { minX, maxX, minY, maxY } = getElementRange(element)\n\n // 计算元素是否处在框选范围内时,四个框选方向的计算方式有差异\n let isInclude = false\n if (mouseSelectionQuadrant.value === 4) {\n isInclude = minX > mouseSelectionLeft && \n maxX < mouseSelectionLeft + mouseSelectionWidth && \n minY > mouseSelectionTop && \n maxY < mouseSelectionTop + mouseSelectionHeight\n }\n else if (mouseSelectionQuadrant.value === 2) {\n isInclude = minX > (mouseSelectionLeft - mouseSelectionWidth) && \n maxX < (mouseSelectionLeft - mouseSelectionWidth) + mouseSelectionWidth && \n minY > (mouseSelectionTop - mouseSelectionHeight) && \n maxY < (mouseSelectionTop - mouseSelectionHeight) + mouseSelectionHeight\n }\n else if (mouseSelectionQuadrant.value === 1) {\n isInclude = minX > mouseSelectionLeft && \n maxX < mouseSelectionLeft + mouseSelectionWidth && \n minY > (mouseSelectionTop - mouseSelectionHeight) && \n maxY < (mouseSelectionTop - mouseSelectionHeight) + mouseSelectionHeight\n }\n else if (mouseSelectionQuadrant.value === 3) {\n isInclude = minX > (mouseSelectionLeft - mouseSelectionWidth) && \n maxX < (mouseSelectionLeft - mouseSelectionWidth) + mouseSelectionWidth && \n minY > mouseSelectionTop && \n maxY < mouseSelectionTop + mouseSelectionHeight\n }\n\n // 被锁定或被隐藏的元素即使在范围内,也不需要设置为选中状态\n if (isInclude && !element.lock && !hiddenElementIdList.value.includes(element.id)) inRangeElementList.push(element)\n }\n\n // 如果范围内有组合元素的成员,需要该组全部成员都处在范围内,才会被设置为选中状态\n inRangeElementList = inRangeElementList.filter(inRangeElement => {\n if (inRangeElement.groupId) {\n const inRangeElementIdList = inRangeElementList.map(inRangeElement => inRangeElement.id)\n const groupElementList = elementList.value.filter(element => element.groupId === inRangeElement.groupId)\n return groupElementList.every(groupElement => inRangeElementIdList.includes(groupElement.id))\n }\n return true\n })\n const inRangeElementIdList = inRangeElementList.map(inRangeElement => inRangeElement.id)\n mainStore.setActiveElementIdList(inRangeElementIdList)\n\n mouseSelectionVisible.value = false\n }\n }\n\n return {\n mouseSelection,\n mouseSelectionVisible,\n mouseSelectionQuadrant,\n updateMouseSelection,\n }\n}","import { onMounted, onUnmounted, type Ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport { getImageDataURL } from '@/utils/image'\nimport { parseText2Paragraphs } from '@/utils/textParser'\nimport useCreateElement from '@/hooks/useCreateElement'\n\nexport default (elementRef: Ref) => {\n const { disableHotkeys } = storeToRefs(useMainStore())\n\n const { createImageElement, createTextElement } = useCreateElement()\n\n // 拖拽元素到画布中\n const handleDrop = (e: DragEvent) => {\n if (!e.dataTransfer || e.dataTransfer.items.length === 0) return\n const dataTransferItem = e.dataTransfer.items[0]\n\n // 检查事件对象中是否存在图片,存在则插入图片,否则继续检查是否存在文字,存在则插入文字\n if (dataTransferItem.kind === 'file' && dataTransferItem.type.indexOf('image') !== -1) {\n const imageFile = dataTransferItem.getAsFile()\n if (imageFile) {\n getImageDataURL(imageFile).then(dataURL => createImageElement(dataURL))\n }\n }\n else if (dataTransferItem.kind === 'string' && dataTransferItem.type === 'text/plain') {\n dataTransferItem.getAsString(text => {\n if (disableHotkeys.value) return\n const string = parseText2Paragraphs(text)\n createTextElement({\n left: 0,\n top: 0,\n width: 600,\n height: 50,\n }, { content: string })\n })\n }\n }\n\n onMounted(() => {\n elementRef.value && elementRef.value.addEventListener('drop', handleDrop)\n\n document.ondragleave = e => e.preventDefault()\n document.ondrop = e => e.preventDefault()\n document.ondragenter = e => e.preventDefault()\n document.ondragover = e => e.preventDefault()\n })\n onUnmounted(() => {\n elementRef.value && elementRef.value.removeEventListener('drop', handleDrop)\n\n document.ondragleave = null\n document.ondrop = null\n document.ondragenter = null\n document.ondragover = null\n })\n}","import type { Ref } from 'vue'\nimport { useSlidesStore } from '@/store'\nimport type { PPTElement, PPTLineElement, PPTVideoElement, PPTAudioElement, PPTChartElement } from '@/types/slides'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\n/**\n * 计算给定坐标到原点连线的弧度\n * @param x 坐标x\n * @param y 坐标y\n */\nconst getAngleFromCoordinate = (x: number, y: number) => {\n const radian = Math.atan2(x, y)\n const angle = 180 / Math.PI * radian\n return angle\n}\n\nexport default (\n elementList: Ref,\n viewportRef: Ref,\n canvasScale: Ref,\n) => {\n const slidesStore = useSlidesStore()\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n // 旋转元素\n const rotateElement = (e: MouseEvent | TouchEvent, element: Exclude) => {\n const isTouchEvent = !(e instanceof MouseEvent)\n if (isTouchEvent && (!e.changedTouches || !e.changedTouches[0])) return\n \n let isMouseDown = true\n let angle = 0\n const elOriginRotate = element.rotate || 0\n\n const elLeft = element.left\n const elTop = element.top\n const elWidth = element.width\n const elHeight = element.height\n\n // 元素中心点(旋转中心点)\n const centerX = elLeft + elWidth / 2\n const centerY = elTop + elHeight / 2\n\n if (!viewportRef.value) return\n const viewportRect = viewportRef.value.getBoundingClientRect()\n\n const handleMousemove = (e: MouseEvent | TouchEvent) => {\n if (!isMouseDown) return\n\n const currentPageX = e instanceof MouseEvent ? e.pageX : e.changedTouches[0].pageX\n const currentPageY = e instanceof MouseEvent ? e.pageY : e.changedTouches[0].pageY\n \n // 计算当前鼠标位置相对元素中心点连线的角度(弧度)\n const mouseX = (currentPageX - viewportRect.left) / canvasScale.value\n const mouseY = (currentPageY - viewportRect.top) / canvasScale.value\n const x = mouseX - centerX\n const y = centerY - mouseY\n\n angle = getAngleFromCoordinate(x, y)\n\n // 靠近45倍数的角度时有吸附效果\n const sorptionRange = 5\n if ( Math.abs(angle) <= sorptionRange ) angle = 0\n else if ( angle > 0 && Math.abs(angle - 45) <= sorptionRange ) angle -= (angle - 45)\n else if ( angle < 0 && Math.abs(angle + 45) <= sorptionRange ) angle -= (angle + 45)\n else if ( angle > 0 && Math.abs(angle - 90) <= sorptionRange ) angle -= (angle - 90)\n else if ( angle < 0 && Math.abs(angle + 90) <= sorptionRange ) angle -= (angle + 90)\n else if ( angle > 0 && Math.abs(angle - 135) <= sorptionRange ) angle -= (angle - 135)\n else if ( angle < 0 && Math.abs(angle + 135) <= sorptionRange ) angle -= (angle + 135)\n else if ( angle > 0 && Math.abs(angle - 180) <= sorptionRange ) angle -= (angle - 180)\n else if ( angle < 0 && Math.abs(angle + 180) <= sorptionRange ) angle -= (angle + 180)\n\n elementList.value = elementList.value.map(el => element.id === el.id ? { ...el, rotate: angle } : el)\n }\n\n const handleMouseup = () => {\n isMouseDown = false\n document.onmousemove = null\n document.onmouseup = null\n\n if (elOriginRotate === angle) return\n\n slidesStore.updateSlide({ elements: elementList.value })\n addHistorySnapshot()\n }\n\n if (isTouchEvent) {\n document.ontouchmove = handleMousemove\n document.ontouchend = handleMouseup\n }\n else {\n document.onmousemove = handleMousemove\n document.onmouseup = handleMouseup\n }\n }\n\n return {\n rotateElement,\n }\n}","export const ELEMENT_TYPE_ZH: { [key: string]: string } = {\n text: '文本',\n image: '图片',\n shape: '形状',\n line: '线条',\n chart: '图表',\n table: '表格',\n video: '视频',\n audio: '音频',\n latex: '公式',\n}\n\nexport const MIN_SIZE: { [key: string]: number } = {\n text: 20,\n image: 20,\n shape: 15,\n chart: 200,\n table: 20,\n video: 250,\n audio: 20,\n latex: 20,\n}","import type { Ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore, useKeyboardStore } from '@/store'\nimport type { PPTElement, PPTImageElement, PPTLineElement, PPTShapeElement } from '@/types/slides'\nimport { OperateResizeHandlers, type AlignmentLineProps, type MultiSelectRange } from '@/types/edit'\nimport { VIEWPORT_SIZE } from '@/configs/canvas'\nimport { MIN_SIZE } from '@/configs/element'\nimport { SHAPE_PATH_FORMULAS } from '@/configs/shapes'\nimport { type AlignLine, uniqAlignLines } from '@/utils/element'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\ninterface RotateElementData {\n left: number\n top: number\n width: number\n height: number\n}\n\n/**\n * 计算旋转后的元素八个缩放点的位置\n * @param element 元素原始位置大小信息\n * @param angle 旋转角度\n */\nconst getRotateElementPoints = (element: RotateElementData, angle: number) => {\n const { left, top, width, height } = element\n\n const radius = Math.sqrt( Math.pow(width, 2) + Math.pow(height, 2) ) / 2\n const auxiliaryAngle = Math.atan(height / width) * 180 / Math.PI\n\n const tlbraRadian = (180 - angle - auxiliaryAngle) * Math.PI / 180\n const trblaRadian = (auxiliaryAngle - angle) * Math.PI / 180\n const taRadian = (90 - angle) * Math.PI / 180\n const raRadian = angle * Math.PI / 180\n\n const halfWidth = width / 2\n const halfHeight = height / 2\n\n const middleLeft = left + halfWidth\n const middleTop = top + halfHeight\n\n const leftTopPoint = {\n left: middleLeft + radius * Math.cos(tlbraRadian),\n top: middleTop - radius * Math.sin(tlbraRadian),\n }\n const topPoint = {\n left: middleLeft + halfHeight * Math.cos(taRadian),\n top: middleTop - halfHeight * Math.sin(taRadian),\n }\n const rightTopPoint = {\n left: middleLeft + radius * Math.cos(trblaRadian),\n top: middleTop - radius * Math.sin(trblaRadian),\n }\n const rightPoint = {\n left: middleLeft + halfWidth * Math.cos(raRadian),\n top: middleTop + halfWidth * Math.sin(raRadian),\n }\n const rightBottomPoint = {\n left: middleLeft - radius * Math.cos(tlbraRadian),\n top: middleTop + radius * Math.sin(tlbraRadian),\n }\n const bottomPoint = {\n left: middleLeft - halfHeight * Math.sin(raRadian),\n top: middleTop + halfHeight * Math.cos(raRadian),\n }\n const leftBottomPoint = {\n left: middleLeft - radius * Math.cos(trblaRadian),\n top: middleTop + radius * Math.sin(trblaRadian),\n }\n const leftPoint = {\n left: middleLeft - halfWidth * Math.cos(raRadian),\n top: middleTop - halfWidth * Math.sin(raRadian),\n }\n\n return { leftTopPoint, topPoint, rightTopPoint, rightPoint, rightBottomPoint, bottomPoint, leftBottomPoint, leftPoint }\n}\n\n/**\n * 获取元素某缩放点相对的另一个点的位置,如:【上】对应【下】、【左上】对应【右下】\n * @param direction 当前操作的缩放点\n * @param points 旋转后的元素八个缩放点的位置\n */\nconst getOppositePoint = (direction: OperateResizeHandlers, points: ReturnType): { left: number; top: number } => {\n const oppositeMap = {\n [OperateResizeHandlers.RIGHT_BOTTOM]: points.leftTopPoint,\n [OperateResizeHandlers.LEFT_BOTTOM]: points.rightTopPoint,\n [OperateResizeHandlers.LEFT_TOP]: points.rightBottomPoint,\n [OperateResizeHandlers.RIGHT_TOP]: points.leftBottomPoint,\n [OperateResizeHandlers.TOP]: points.bottomPoint,\n [OperateResizeHandlers.BOTTOM]: points.topPoint,\n [OperateResizeHandlers.LEFT]: points.rightPoint,\n [OperateResizeHandlers.RIGHT]: points.leftPoint,\n }\n return oppositeMap[direction]\n}\n\nexport default (\n elementList: Ref,\n alignmentLines: Ref,\n canvasScale: Ref,\n) => {\n const mainStore = useMainStore()\n const slidesStore = useSlidesStore()\n const { activeElementIdList, activeGroupElementId } = storeToRefs(mainStore)\n const { viewportRatio } = storeToRefs(slidesStore)\n const { ctrlOrShiftKeyActive } = storeToRefs(useKeyboardStore())\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n // 缩放元素\n const scaleElement = (e: MouseEvent | TouchEvent, element: Exclude, command: OperateResizeHandlers) => {\n const isTouchEvent = !(e instanceof MouseEvent)\n if (isTouchEvent && (!e.changedTouches || !e.changedTouches[0])) return\n\n let isMouseDown = true\n mainStore.setScalingState(true)\n\n const elOriginLeft = element.left\n const elOriginTop = element.top\n const elOriginWidth = element.width\n const elOriginHeight = element.height\n\n const originTableCellMinHeight = element.type === 'table' ? element.cellMinHeight : 0\n \n const elRotate = ('rotate' in element && element.rotate) ? element.rotate : 0\n const rotateRadian = Math.PI * elRotate / 180\n\n const fixedRatio = ctrlOrShiftKeyActive.value || ('fixedRatio' in element && element.fixedRatio)\n const aspectRatio = elOriginWidth / elOriginHeight\n\n const startPageX = isTouchEvent ? e.changedTouches[0].pageX : e.pageX\n const startPageY = isTouchEvent ? e.changedTouches[0].pageY : e.pageY\n\n // 元素最小缩放限制\n const minSize = MIN_SIZE[element.type] || 20\n const getSizeWithinRange = (size: number) => size < minSize ? minSize : size\n const getHeightWithinRange = (height: number) => {\n const minHeight = minSize / aspectRatio\n return height < minHeight ? minHeight : height\n }\n\n let points: ReturnType\n let baseLeft = 0\n let baseTop = 0\n let horizontalLines: AlignLine[] = []\n let verticalLines: AlignLine[] = []\n\n // 旋转后的元素进行缩放时,引入基点的概念,以当前操作的缩放点相对的点为基点\n // 例如拖动右下角缩放时,左上角为基点,需要保持左上角不变然后修改其他的点的位置来达到所放的效果\n if ('rotate' in element && element.rotate) {\n const { left, top, width, height } = element\n points = getRotateElementPoints({ left, top, width, height }, elRotate)\n const oppositePoint = getOppositePoint(command, points)\n\n baseLeft = oppositePoint.left\n baseTop = oppositePoint.top\n }\n\n // 未旋转的元素具有缩放时的对齐吸附功能,在此处收集对齐对齐吸附线\n // 包括页面内除目标元素外的其他元素在画布中的各个可吸附对齐位置:上下左右四边\n // 其中线条和被旋转过的元素不参与吸附对齐\n else {\n const edgeWidth = VIEWPORT_SIZE\n const edgeHeight = VIEWPORT_SIZE * viewportRatio.value\n const isActiveGroupElement = element.id === activeGroupElementId.value\n \n for (const el of elementList.value) {\n if ('rotate' in el && el.rotate) continue\n if (el.type === 'line') continue\n if (isActiveGroupElement && el.id === element.id) continue\n if (!isActiveGroupElement && activeElementIdList.value.includes(el.id)) continue\n\n const left = el.left\n const top = el.top\n const width = el.width\n const height = el.height\n const right = left + width\n const bottom = top + height\n\n const topLine: AlignLine = { value: top, range: [left, right] }\n const bottomLine: AlignLine = { value: bottom, range: [left, right] }\n const leftLine: AlignLine = { value: left, range: [top, bottom] }\n const rightLine: AlignLine = { value: right, range: [top, bottom] }\n\n horizontalLines.push(topLine, bottomLine)\n verticalLines.push(leftLine, rightLine)\n }\n\n // 画布可视区域的四个边界、水平中心、垂直中心\n const edgeTopLine: AlignLine = { value: 0, range: [0, edgeWidth] }\n const edgeBottomLine: AlignLine = { value: edgeHeight, range: [0, edgeWidth] }\n const edgeHorizontalCenterLine: AlignLine = { value: edgeHeight / 2, range: [0, edgeWidth] }\n const edgeLeftLine: AlignLine = { value: 0, range: [0, edgeHeight] }\n const edgeRightLine: AlignLine = { value: edgeWidth, range: [0, edgeHeight] }\n const edgeVerticalCenterLine: AlignLine = { value: edgeWidth / 2, range: [0, edgeHeight] }\n\n horizontalLines.push(edgeTopLine, edgeBottomLine, edgeHorizontalCenterLine)\n verticalLines.push(edgeLeftLine, edgeRightLine, edgeVerticalCenterLine)\n \n horizontalLines = uniqAlignLines(horizontalLines)\n verticalLines = uniqAlignLines(verticalLines)\n }\n \n // 对齐吸附方法\n // 将收集到的对齐吸附线与计算的目标元素当前的位置大小相关数据做对比,差值小于设定的值时执行自动缩放校正\n // 水平和垂直两个方向需要分开计算\n const alignedAdsorption = (currentX: number | null, currentY: number | null) => {\n const sorptionRange = 5\n\n const _alignmentLines: AlignmentLineProps[] = []\n let isVerticalAdsorbed = false\n let isHorizontalAdsorbed = false\n const correctionVal = { offsetX: 0, offsetY: 0 }\n \n if (currentY || currentY === 0) {\n for (let i = 0; i < horizontalLines.length; i++) {\n const { value, range } = horizontalLines[i]\n const min = Math.min(...range, currentX || 0)\n const max = Math.max(...range, currentX || 0)\n \n if (Math.abs(currentY - value) < sorptionRange && !isHorizontalAdsorbed) {\n correctionVal.offsetY = currentY - value\n isHorizontalAdsorbed = true\n _alignmentLines.push({ type: 'horizontal', axis: {x: min - 50, y: value}, length: max - min + 100 })\n }\n }\n }\n if (currentX || currentX === 0) {\n for (let i = 0; i < verticalLines.length; i++) {\n const { value, range } = verticalLines[i]\n const min = Math.min(...range, (currentY || 0))\n const max = Math.max(...range, (currentY || 0))\n\n if (Math.abs(currentX - value) < sorptionRange && !isVerticalAdsorbed) {\n correctionVal.offsetX = currentX - value\n isVerticalAdsorbed = true\n _alignmentLines.push({ type: 'vertical', axis: {x: value, y: min - 50}, length: max - min + 100 })\n }\n }\n }\n alignmentLines.value = _alignmentLines\n return correctionVal\n }\n\n const handleMousemove = (e: MouseEvent | TouchEvent) => {\n if (!isMouseDown) return\n\n const currentPageX = e instanceof MouseEvent ? e.pageX : e.changedTouches[0].pageX\n const currentPageY = e instanceof MouseEvent ? e.pageY : e.changedTouches[0].pageY\n\n const x = currentPageX - startPageX\n const y = currentPageY - startPageY\n\n let width = elOriginWidth\n let height = elOriginHeight\n let left = elOriginLeft\n let top = elOriginTop\n \n // 元素被旋转的情况下,需要根据元素旋转的角度,重新计算需要缩放的距离(鼠标按下后移动的距离)\n if (elRotate) {\n const revisedX = (Math.cos(rotateRadian) * x + Math.sin(rotateRadian) * y) / canvasScale.value\n let revisedY = (Math.cos(rotateRadian) * y - Math.sin(rotateRadian) * x) / canvasScale.value\n\n // 锁定宽高比例(仅四个角可能触发,四条边不会触发)\n // 以水平方向上缩放的距离为基础,计算垂直方向上的缩放距离,保持二者具有相同的缩放比例\n if (fixedRatio) {\n if (command === OperateResizeHandlers.RIGHT_BOTTOM || command === OperateResizeHandlers.LEFT_TOP) revisedY = revisedX / aspectRatio\n if (command === OperateResizeHandlers.LEFT_BOTTOM || command === OperateResizeHandlers.RIGHT_TOP) revisedY = -revisedX / aspectRatio\n }\n\n // 根据不同的操作点分别计算元素缩放后的大小和位置\n // 需要注意:\n // 此处计算的位置需要在后面重新进行校正,因为旋转后再缩放事实上会改变元素基点的位置(虽然视觉上基点保持不动,但这是【旋转】+【移动】共同作用的结果)\n // 但此处计算的大小不需要重新校正,因为前面已经重新计算需要缩放的距离,相当于大小已经经过了校正\n if (command === OperateResizeHandlers.RIGHT_BOTTOM) {\n width = getSizeWithinRange(elOriginWidth + revisedX)\n height = getHeightWithinRange(elOriginHeight + revisedY)\n }\n else if (command === OperateResizeHandlers.LEFT_BOTTOM) {\n width = getSizeWithinRange(elOriginWidth - revisedX)\n height = getHeightWithinRange(elOriginHeight + revisedY)\n left = elOriginLeft - (width - elOriginWidth)\n }\n else if (command === OperateResizeHandlers.LEFT_TOP) {\n width = getSizeWithinRange(elOriginWidth - revisedX)\n height = getHeightWithinRange(elOriginHeight - revisedY)\n left = elOriginLeft - (width - elOriginWidth)\n top = elOriginTop - (height - elOriginHeight)\n }\n else if (command === OperateResizeHandlers.RIGHT_TOP) {\n width = getSizeWithinRange(elOriginWidth + revisedX)\n height = getHeightWithinRange(elOriginHeight - revisedY)\n top = elOriginTop - (height - elOriginHeight)\n }\n else if (command === OperateResizeHandlers.TOP) {\n height = getSizeWithinRange(elOriginHeight - revisedY)\n top = elOriginTop - (height - elOriginHeight)\n }\n else if (command === OperateResizeHandlers.BOTTOM) {\n height = getSizeWithinRange(elOriginHeight + revisedY)\n }\n else if (command === OperateResizeHandlers.LEFT) {\n width = getSizeWithinRange(elOriginWidth - revisedX)\n left = elOriginLeft - (width - elOriginWidth)\n }\n else if (command === OperateResizeHandlers.RIGHT) {\n width = getSizeWithinRange(elOriginWidth + revisedX)\n }\n\n // 获取当前元素的基点坐标,与初始状态时的基点坐标进行对比,并计算差值进行元素位置的校正\n const currentPoints = getRotateElementPoints({ width, height, left, top }, elRotate)\n const currentOppositePoint = getOppositePoint(command, currentPoints)\n const currentBaseLeft = currentOppositePoint.left\n const currentBaseTop = currentOppositePoint.top\n\n const offsetX = currentBaseLeft - baseLeft\n const offsetY = currentBaseTop - baseTop\n\n left = left - offsetX\n top = top - offsetY\n }\n\n // 元素未被旋转的情况下,正常计算新的位置大小即可,无需复杂的校正等工作\n // 额外需要处理对齐吸附相关的操作\n // 锁定宽高比例相关的操作同上,不再赘述\n else {\n let moveX = x / canvasScale.value\n let moveY = y / canvasScale.value\n\n if (fixedRatio) {\n if (command === OperateResizeHandlers.RIGHT_BOTTOM || command === OperateResizeHandlers.LEFT_TOP) moveY = moveX / aspectRatio\n if (command === OperateResizeHandlers.LEFT_BOTTOM || command === OperateResizeHandlers.RIGHT_TOP) moveY = -moveX / aspectRatio\n }\n\n if (command === OperateResizeHandlers.RIGHT_BOTTOM) {\n const { offsetX, offsetY } = alignedAdsorption(elOriginLeft + elOriginWidth + moveX, elOriginTop + elOriginHeight + moveY)\n moveX = moveX - offsetX\n moveY = moveY - offsetY\n if (fixedRatio) {\n if (offsetY) moveX = moveY * aspectRatio\n else moveY = moveX / aspectRatio\n }\n width = getSizeWithinRange(elOriginWidth + moveX)\n height = getHeightWithinRange(elOriginHeight + moveY)\n }\n else if (command === OperateResizeHandlers.LEFT_BOTTOM) {\n const { offsetX, offsetY } = alignedAdsorption(elOriginLeft + moveX, elOriginTop + elOriginHeight + moveY)\n moveX = moveX - offsetX\n moveY = moveY - offsetY\n if (fixedRatio) {\n if (offsetY) moveX = -moveY * aspectRatio\n else moveY = -moveX / aspectRatio\n }\n width = getSizeWithinRange(elOriginWidth - moveX)\n height = getHeightWithinRange(elOriginHeight + moveY)\n left = elOriginLeft - (width - elOriginWidth)\n }\n else if (command === OperateResizeHandlers.LEFT_TOP) {\n const { offsetX, offsetY } = alignedAdsorption(elOriginLeft + moveX, elOriginTop + moveY)\n moveX = moveX - offsetX\n moveY = moveY - offsetY\n if (fixedRatio) {\n if (offsetY) moveX = moveY * aspectRatio\n else moveY = moveX / aspectRatio\n }\n width = getSizeWithinRange(elOriginWidth - moveX)\n height = getHeightWithinRange(elOriginHeight - moveY)\n left = elOriginLeft - (width - elOriginWidth)\n top = elOriginTop - (height - elOriginHeight)\n }\n else if (command === OperateResizeHandlers.RIGHT_TOP) {\n const { offsetX, offsetY } = alignedAdsorption(elOriginLeft + elOriginWidth + moveX, elOriginTop + moveY)\n moveX = moveX - offsetX\n moveY = moveY - offsetY\n if (fixedRatio) {\n if (offsetY) moveX = -moveY * aspectRatio\n else moveY = -moveX / aspectRatio\n }\n width = getSizeWithinRange(elOriginWidth + moveX)\n height = getHeightWithinRange(elOriginHeight - moveY)\n top = elOriginTop - (height - elOriginHeight)\n }\n else if (command === OperateResizeHandlers.LEFT) {\n const { offsetX } = alignedAdsorption(elOriginLeft + moveX, null)\n moveX = moveX - offsetX\n width = getSizeWithinRange(elOriginWidth - moveX)\n left = elOriginLeft - (width - elOriginWidth)\n }\n else if (command === OperateResizeHandlers.RIGHT) {\n const { offsetX } = alignedAdsorption(elOriginLeft + elOriginWidth + moveX, null)\n moveX = moveX - offsetX\n width = getSizeWithinRange(elOriginWidth + moveX)\n }\n else if (command === OperateResizeHandlers.TOP) {\n const { offsetY } = alignedAdsorption(null, elOriginTop + moveY)\n moveY = moveY - offsetY\n height = getSizeWithinRange(elOriginHeight - moveY)\n top = elOriginTop - (height - elOriginHeight)\n }\n else if (command === OperateResizeHandlers.BOTTOM) {\n const { offsetY } = alignedAdsorption(null, elOriginTop + elOriginHeight + moveY)\n moveY = moveY - offsetY\n height = getSizeWithinRange(elOriginHeight + moveY)\n }\n }\n \n elementList.value = elementList.value.map(el => {\n if (element.id !== el.id) return el\n if (el.type === 'shape' && 'pathFormula' in el && el.pathFormula) {\n const pathFormula = SHAPE_PATH_FORMULAS[el.pathFormula]\n\n let path = ''\n if ('editable' in pathFormula) path = pathFormula.formula(width, height, el.keypoint!)\n else path = pathFormula.formula(width, height)\n\n return {\n ...el, left, top, width, height,\n viewBox: [width, height],\n path,\n }\n }\n if (el.type === 'table') {\n let cellMinHeight = originTableCellMinHeight + (height - elOriginHeight) / el.data.length\n cellMinHeight = cellMinHeight < 36 ? 36 : cellMinHeight\n\n if (cellMinHeight === originTableCellMinHeight) return { ...el, left, width }\n return {\n ...el, left, top, width, height,\n cellMinHeight: cellMinHeight < 36 ? 36 : cellMinHeight,\n }\n }\n return { ...el, left, top, width, height }\n })\n }\n\n const handleMouseup = (e: MouseEvent | TouchEvent) => {\n isMouseDown = false\n \n document.ontouchmove = null\n document.ontouchend = null\n document.onmousemove = null\n document.onmouseup = null\n\n alignmentLines.value = []\n\n const currentPageX = e instanceof MouseEvent ? e.pageX : e.changedTouches[0].pageX\n const currentPageY = e instanceof MouseEvent ? e.pageY : e.changedTouches[0].pageY\n \n if (startPageX === currentPageX && startPageY === currentPageY) return\n \n slidesStore.updateSlide({ elements: elementList.value })\n mainStore.setScalingState(false)\n \n addHistorySnapshot()\n }\n\n if (isTouchEvent) {\n document.ontouchmove = handleMousemove\n document.ontouchend = handleMouseup\n }\n else {\n document.onmousemove = handleMousemove\n document.onmouseup = handleMouseup\n }\n }\n\n // 多选元素缩放\n const scaleMultiElement = (e: MouseEvent, range: MultiSelectRange, command: OperateResizeHandlers) => {\n let isMouseDown = true\n \n const { minX, maxX, minY, maxY } = range\n const operateWidth = maxX - minX\n const operateHeight = maxY - minY\n const aspectRatio = operateWidth / operateHeight\n\n const startPageX = e.pageX\n const startPageY = e.pageY\n\n const originElementList: PPTElement[] = JSON.parse(JSON.stringify(elementList.value))\n\n document.onmousemove = e => {\n if (!isMouseDown) return\n \n const currentPageX = e.pageX\n const currentPageY = e.pageY\n\n const x = (currentPageX - startPageX) / canvasScale.value\n let y = (currentPageY - startPageY) / canvasScale.value\n\n // 锁定宽高比例,逻辑同上\n if (ctrlOrShiftKeyActive.value) {\n if (command === OperateResizeHandlers.RIGHT_BOTTOM || command === OperateResizeHandlers.LEFT_TOP) y = x / aspectRatio\n if (command === OperateResizeHandlers.LEFT_BOTTOM || command === OperateResizeHandlers.RIGHT_TOP) y = -x / aspectRatio\n }\n\n // 所有选中元素的整体范围\n let currentMinX = minX\n let currentMaxX = maxX\n let currentMinY = minY\n let currentMaxY = maxY\n\n if (command === OperateResizeHandlers.RIGHT_BOTTOM) {\n currentMaxX = maxX + x\n currentMaxY = maxY + y\n }\n else if (command === OperateResizeHandlers.LEFT_BOTTOM) {\n currentMinX = minX + x\n currentMaxY = maxY + y\n }\n else if (command === OperateResizeHandlers.LEFT_TOP) {\n currentMinX = minX + x\n currentMinY = minY + y\n }\n else if (command === OperateResizeHandlers.RIGHT_TOP) {\n currentMaxX = maxX + x\n currentMinY = minY + y\n }\n else if (command === OperateResizeHandlers.TOP) {\n currentMinY = minY + y\n }\n else if (command === OperateResizeHandlers.BOTTOM) {\n currentMaxY = maxY + y\n }\n else if (command === OperateResizeHandlers.LEFT) {\n currentMinX = minX + x\n }\n else if (command === OperateResizeHandlers.RIGHT) {\n currentMaxX = maxX + x\n }\n\n // 所有选中元素的整体宽高\n const currentOppositeWidth = currentMaxX - currentMinX\n const currentOppositeHeight = currentMaxY - currentMinY\n\n // 当前正在操作元素宽高占所有选中元素的整体宽高的比例\n let widthScale = currentOppositeWidth / operateWidth\n let heightScale = currentOppositeHeight / operateHeight\n\n if (widthScale <= 0) widthScale = 0\n if (heightScale <= 0) heightScale = 0\n \n // 根据前面计算的比例,计算并修改所有选中元素的位置大小\n elementList.value = elementList.value.map(el => {\n if ((el.type === 'image' || el.type === 'shape') && activeElementIdList.value.includes(el.id)) {\n const originElement = originElementList.find(originEl => originEl.id === el.id) as PPTImageElement | PPTShapeElement\n return {\n ...el,\n width: originElement.width * widthScale,\n height: originElement.height * heightScale,\n left: currentMinX + (originElement.left - minX) * widthScale,\n top: currentMinY + (originElement.top - minY) * heightScale,\n }\n }\n return el\n })\n }\n\n document.onmouseup = e => {\n isMouseDown = false\n document.onmousemove = null\n document.onmouseup = null\n\n if (startPageX === e.pageX && startPageY === e.pageY) return\n\n slidesStore.updateSlide({ elements: elementList.value })\n addHistorySnapshot()\n }\n }\n\n return {\n scaleElement,\n scaleMultiElement,\n }\n}","export const enum ClipPathTypes {\n RECT = 'rect',\n ELLIPSE = 'ellipse',\n POLYGON = 'polygon',\n}\n\nexport const enum ClipPaths {\n RECT = 'rect',\n ROUNDRECT = 'roundRect',\n ELLIPSE = 'ellipse',\n TRIANGLE = 'triangle',\n PENTAGON = 'pentagon',\n RHOMBUS = 'rhombus',\n STAR = 'star',\n}\n\ninterface ClipPath {\n [key: string]: {\n name: string\n type: ClipPathTypes\n style: string\n radius?: string\n createPath?: (width: number, height: number) => string\n }\n}\n\nexport const CLIPPATHS: ClipPath = {\n rect: {\n name: '矩形',\n type: ClipPathTypes.RECT,\n radius: '0',\n style: '',\n },\n rect2: {\n name: '矩形2',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)',\n createPath: (width: number, height: number) => {\n return `M 0 0 L ${width * 0.8} 0 L ${width} ${height * 0.2} L ${width} ${height} L 0 ${height} Z`\n },\n },\n rect3: {\n name: '矩形3',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)',\n createPath: (width: number, height: number) => {\n return `M 0 0 L ${width * 0.8} 0 L ${width} ${height * 0.2} L ${width} ${height} L ${width * 0.2} ${height} L 0 ${height * 0.8} Z`\n },\n },\n roundRect: {\n name: '圆角矩形',\n type: ClipPathTypes.RECT,\n radius: '10px',\n style: 'inset(0 0 0 0 round 10px 10px 10px 10px)',\n },\n ellipse: {\n name: '圆形',\n type: ClipPathTypes.ELLIPSE,\n style: 'ellipse(50% 50% at 50% 50%)',\n },\n triangle: {\n name: '三角形',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(50% 0%, 0% 100%, 100% 100%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.5} 0 L 0 ${height} L ${width} ${height} Z`\n },\n },\n triangle2: {\n name: '三角形2',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(50% 100%, 0% 0%, 100% 0%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.5} ${height} L 0 0 L ${width} 0 Z`\n },\n },\n triangle3: {\n name: '三角形3',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(0% 0%, 0% 100%, 100% 100%)',\n createPath: (width: number, height: number) => {\n return `M 0 0 L 0 ${height} L ${width} ${height} Z`\n },\n },\n rhombus: {\n name: '菱形',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.5} 0 L ${width} ${height * 0.5} L ${width * 0.5} ${height} L 0 ${height * 0.5} Z`\n },\n },\n pentagon: {\n name: '五边形',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.5} 0 L ${width} ${0.38 * height} L ${0.82 * width} ${height} L ${0.18 * width} ${height} L 0 ${0.38 * height} Z`\n },\n },\n hexagon: {\n name: '六边形',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.2} 0 L ${width * 0.8} 0 L ${width} ${height * 0.5} L ${width * 0.8} ${height} L ${width * 0.2} ${height} L 0 ${height * 0.5} Z`\n },\n },\n heptagon: {\n name: '七边形',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.5} 0 L ${width * 0.9} ${height * 0.2} L ${width} ${height * 0.6} L ${width * 0.75} ${height} L ${width * 0.25} ${height} L 0 ${height * 0.6} L ${width * 0.1} ${height * 0.2} Z`\n },\n },\n octagon: {\n name: '八边形',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.3} 0 L ${width * 0.7} 0 L ${width} ${height * 0.3} L ${width} ${height * 0.7} L ${width * 0.7} ${height} L ${width * 0.3} ${height} L 0 ${height * 0.7} L 0 ${height * 0.3} Z`\n },\n },\n chevron: {\n name: 'V形',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.75} 0 L ${width} ${height * 0.5} L ${width * 0.75} ${height} L 0 ${height} L ${width * 0.25} ${height * 0.5} L 0 0 Z`\n },\n },\n point: {\n name: '点',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)',\n createPath: (width: number, height: number) => {\n return `M 0 0 L ${width * 0.75} 0 L ${width} ${height * 0.5} L ${width * 0.75} ${height} L 0 ${height} Z`\n },\n },\n arrow: {\n name: '箭头',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)',\n createPath: (width: number, height: number) => {\n return `M 0 ${height * 0.2} L ${width * 0.6} ${height * 0.2} L ${width * 0.6} 0 L ${width} ${height * 0.5} L ${width * 0.6} ${height} L ${width * 0.6} ${height * 0.8} L 0 ${height * 0.8} Z`\n },\n },\n parallelogram: {\n name: '平行四边形',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.3} 0 L ${width} 0 L ${width * 0.7} ${height} L 0 ${height} Z`\n },\n },\n parallelogram2: {\n name: '平行四边形2',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.3} ${height} L ${width} ${height} L ${width * 0.7} 0 L 0 0 Z`\n },\n },\n trapezoid: {\n name: '梯形',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)',\n createPath: (width: number, height: number) => {\n return `M ${width * 0.25} 0 L ${width * 0.75} 0 L ${width} ${height} L 0 ${height} Z`\n },\n },\n trapezoid2: {\n name: '梯形2',\n type: ClipPathTypes.POLYGON,\n style: 'polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)',\n createPath: (width: number, height: number) => {\n return `M 0 0 L ${width} 0 L ${width * 0.75} ${height} L ${width * 0.25} ${height} Z`\n },\n },\n}","import type { Ref } from 'vue'\nimport { uniq } from 'lodash'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useKeyboardStore } from '@/store'\nimport type { PPTElement } from '@/types/slides'\n\nexport default (\n elementList: Ref,\n moveElement: (e: MouseEvent | TouchEvent, element: PPTElement) => void,\n) => {\n const mainStore = useMainStore()\n const { activeElementIdList, activeGroupElementId, handleElementId, editorAreaFocus } = storeToRefs(mainStore)\n const { ctrlOrShiftKeyActive } = storeToRefs(useKeyboardStore())\n\n // 选中元素\n // startMove 表示是否需要再选中操作后进入到开始移动的状态\n const selectElement = (e: MouseEvent | TouchEvent, element: PPTElement, startMove = true) => {\n if (!editorAreaFocus.value) mainStore.setEditorareaFocus(true)\n\n // 如果目标元素当前未被选中,则将他设为选中状态\n // 此时如果按下Ctrl键或Shift键,则进入多选状态,将当前已选中的元素和目标元素一起设置为选中状态,否则仅将目标元素设置为选中状态\n // 如果目标元素是分组成员,需要将该组合的其他元素一起设置为选中状态\n if (!activeElementIdList.value.includes(element.id)) {\n let newActiveIdList: string[] = []\n\n if (ctrlOrShiftKeyActive.value) {\n newActiveIdList = [...activeElementIdList.value, element.id]\n }\n else newActiveIdList = [element.id]\n \n if (element.groupId) {\n const groupMembersId: string[] = []\n elementList.value.forEach((el: PPTElement) => {\n if (el.groupId === element.groupId) groupMembersId.push(el.id)\n })\n newActiveIdList = [...newActiveIdList, ...groupMembersId]\n }\n\n mainStore.setActiveElementIdList(uniq(newActiveIdList))\n mainStore.setHandleElementId(element.id)\n }\n\n // 如果目标元素已被选中,且按下了Ctrl键或Shift键,则取消其被选中状态\n // 除非目标元素是最后的一个被选中元素,或者目标元素所在的组合是最后一组选中组合\n // 如果目标元素是分组成员,需要将该组合的其他元素一起取消选中状态\n else if (ctrlOrShiftKeyActive.value) {\n let newActiveIdList: string[] = []\n\n if (element.groupId) {\n const groupMembersId: string[] = []\n elementList.value.forEach((el: PPTElement) => {\n if (el.groupId === element.groupId) groupMembersId.push(el.id)\n })\n newActiveIdList = activeElementIdList.value.filter(id => !groupMembersId.includes(id))\n }\n else {\n newActiveIdList = activeElementIdList.value.filter(id => id !== element.id)\n }\n\n if (newActiveIdList.length > 0) {\n mainStore.setActiveElementIdList(newActiveIdList)\n }\n }\n\n // 如果目标元素已被选中,同时目标元素不是当前操作元素,则将其设置为当前操作元素\n else if (handleElementId.value !== element.id) {\n mainStore.setHandleElementId(element.id)\n }\n\n // 如果目标元素已被选中,同时也是当前操作元素,那么当目标元素在该状态下再次被点击时,将被设置为多选元素中的激活成员\n else if (activeGroupElementId.value !== element.id) {\n const startPageX = e instanceof MouseEvent ? e.pageX : e.changedTouches[0].pageX\n const startPageY = e instanceof MouseEvent ? e.pageY : e.changedTouches[0].pageY\n\n ;(e.target as HTMLElement).onmouseup = (e: MouseEvent) => {\n const currentPageX = e.pageX\n const currentPageY = e.pageY\n\n if (startPageX === currentPageX && startPageY === currentPageY) {\n mainStore.setActiveGroupElementId(element.id)\n ;(e.target as HTMLElement).onmouseup = null\n }\n }\n }\n\n if (startMove) moveElement(e, element)\n }\n\n return {\n selectElement,\n }\n}\n","import type { Ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore, useKeyboardStore } from '@/store'\nimport type { PPTElement } from '@/types/slides'\nimport type { AlignmentLineProps } from '@/types/edit'\nimport { VIEWPORT_SIZE } from '@/configs/canvas'\nimport { getRectRotatedRange, uniqAlignLines, type AlignLine } from '@/utils/element'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\nexport default (\n elementList: Ref,\n alignmentLines: Ref,\n canvasScale: Ref,\n) => {\n const slidesStore = useSlidesStore()\n const { activeElementIdList, activeGroupElementId } = storeToRefs(useMainStore())\n const { shiftKeyState } = storeToRefs(useKeyboardStore())\n const { viewportRatio } = storeToRefs(slidesStore)\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n const dragElement = (e: MouseEvent | TouchEvent, element: PPTElement) => {\n const isTouchEvent = !(e instanceof MouseEvent)\n if (isTouchEvent && (!e.changedTouches || !e.changedTouches[0])) return\n\n if (!activeElementIdList.value.includes(element.id)) return\n let isMouseDown = true\n\n const edgeWidth = VIEWPORT_SIZE\n const edgeHeight = VIEWPORT_SIZE * viewportRatio.value\n \n const sorptionRange = 5\n\n const originElementList: PPTElement[] = JSON.parse(JSON.stringify(elementList.value))\n const originActiveElementList = originElementList.filter(el => activeElementIdList.value.includes(el.id))\n \n const elOriginLeft = element.left\n const elOriginTop = element.top\n const elOriginWidth = element.width\n const elOriginHeight = ('height' in element && element.height) ? element.height : 0\n const elOriginRotate = ('rotate' in element && element.rotate) ? element.rotate : 0\n \n const startPageX = isTouchEvent ? e.changedTouches[0].pageX : e.pageX\n const startPageY = isTouchEvent ? e.changedTouches[0].pageY : e.pageY\n\n let isMisoperation: boolean | null = null\n\n const isActiveGroupElement = element.id === activeGroupElementId.value\n\n // 收集对齐对齐吸附线\n // 包括页面内除目标元素外的其他元素在画布中的各个可吸附对齐位置:上下左右四边,水平中心、垂直中心\n // 其中线条和被旋转过的元素需要重新计算他们在画布中的中心点位置的范围\n let horizontalLines: AlignLine[] = []\n let verticalLines: AlignLine[] = []\n\n for (const el of elementList.value) {\n if (el.type === 'line') continue\n if (isActiveGroupElement && el.id === element.id) continue\n if (!isActiveGroupElement && activeElementIdList.value.includes(el.id)) continue\n\n let left, top, width, height\n if ('rotate' in el && el.rotate) {\n const { xRange, yRange } = getRectRotatedRange({\n left: el.left,\n top: el.top,\n width: el.width,\n height: el.height,\n rotate: el.rotate,\n })\n left = xRange[0]\n top = yRange[0]\n width = xRange[1] - xRange[0]\n height = yRange[1] - yRange[0]\n }\n else {\n left = el.left\n top = el.top\n width = el.width\n height = el.height\n }\n \n const right = left + width\n const bottom = top + height\n const centerX = top + height / 2\n const centerY = left + width / 2\n\n const topLine: AlignLine = { value: top, range: [left, right] }\n const bottomLine: AlignLine = { value: bottom, range: [left, right] }\n const horizontalCenterLine: AlignLine = { value: centerX, range: [left, right] }\n const leftLine: AlignLine = { value: left, range: [top, bottom] }\n const rightLine: AlignLine = { value: right, range: [top, bottom] }\n const verticalCenterLine: AlignLine = { value: centerY, range: [top, bottom] }\n\n horizontalLines.push(topLine, bottomLine, horizontalCenterLine)\n verticalLines.push(leftLine, rightLine, verticalCenterLine)\n }\n\n // 画布可视区域的四个边界、水平中心、垂直中心\n const edgeTopLine: AlignLine = { value: 0, range: [0, edgeWidth] }\n const edgeBottomLine: AlignLine = { value: edgeHeight, range: [0, edgeWidth] }\n const edgeHorizontalCenterLine: AlignLine = { value: edgeHeight / 2, range: [0, edgeWidth] }\n const edgeLeftLine: AlignLine = { value: 0, range: [0, edgeHeight] }\n const edgeRightLine: AlignLine = { value: edgeWidth, range: [0, edgeHeight] }\n const edgeVerticalCenterLine: AlignLine = { value: edgeWidth / 2, range: [0, edgeHeight] }\n\n horizontalLines.push(edgeTopLine, edgeBottomLine, edgeHorizontalCenterLine)\n verticalLines.push(edgeLeftLine, edgeRightLine, edgeVerticalCenterLine)\n \n // 对齐吸附线去重\n horizontalLines = uniqAlignLines(horizontalLines)\n verticalLines = uniqAlignLines(verticalLines)\n\n const handleMousemove = (e: MouseEvent | TouchEvent) => {\n const currentPageX = e instanceof MouseEvent ? e.pageX : e.changedTouches[0].pageX\n const currentPageY = e instanceof MouseEvent ? e.pageY : e.changedTouches[0].pageY\n\n // 如果鼠标滑动距离过小,则将操作判定为误操作:\n // 如果误操作标记为null,表示是第一次触发移动,需要计算当前是否是误操作\n // 如果误操作标记为true,表示当前还处在误操作范围内,但仍然需要继续计算检查后续操作是否还处于误操作\n // 如果误操作标记为false,表示已经脱离了误操作范围,不需要再次计算\n if (isMisoperation !== false) {\n isMisoperation = Math.abs(startPageX - currentPageX) < sorptionRange && \n Math.abs(startPageY - currentPageY) < sorptionRange\n }\n if (!isMouseDown || isMisoperation) return\n \n let moveX = (currentPageX - startPageX) / canvasScale.value\n let moveY = (currentPageY - startPageY) / canvasScale.value\n\n if (shiftKeyState.value) {\n if (Math.abs(moveX) > Math.abs(moveY)) moveY = 0\n if (Math.abs(moveX) < Math.abs(moveY)) moveX = 0\n }\n\n // 基础目标位置\n let targetLeft = elOriginLeft + moveX\n let targetTop = elOriginTop + moveY\n\n // 计算目标元素在画布中的位置范围,用于吸附对齐\n // 需要区分单选和多选两种情况,其中多选状态下需要计算多选元素的整体范围;单选状态下需要继续区分线条、普通元素、旋转后的普通元素三种情况\n let targetMinX: number, targetMaxX: number, targetMinY: number, targetMaxY: number\n\n if (activeElementIdList.value.length === 1 || isActiveGroupElement) {\n if (elOriginRotate) {\n const { xRange, yRange } = getRectRotatedRange({\n left: targetLeft,\n top: targetTop,\n width: elOriginWidth,\n height: elOriginHeight,\n rotate: elOriginRotate,\n })\n targetMinX = xRange[0]\n targetMaxX = xRange[1]\n targetMinY = yRange[0]\n targetMaxY = yRange[1]\n }\n else if (element.type === 'line') {\n targetMinX = targetLeft\n targetMaxX = targetLeft + Math.max(element.start[0], element.end[0])\n targetMinY = targetTop\n targetMaxY = targetTop + Math.max(element.start[1], element.end[1])\n }\n else {\n targetMinX = targetLeft\n targetMaxX = targetLeft + elOriginWidth\n targetMinY = targetTop\n targetMaxY = targetTop + elOriginHeight\n }\n }\n else {\n const leftValues = []\n const topValues = []\n const rightValues = []\n const bottomValues = []\n \n for (let i = 0; i < originActiveElementList.length; i++) {\n const element = originActiveElementList[i]\n const left = element.left + moveX\n const top = element.top + moveY\n const width = element.width\n const height = ('height' in element && element.height) ? element.height : 0\n const rotate = ('rotate' in element && element.rotate) ? element.rotate : 0\n\n if ('rotate' in element && element.rotate) {\n const { xRange, yRange } = getRectRotatedRange({ left, top, width, height, rotate })\n leftValues.push(xRange[0])\n topValues.push(yRange[0])\n rightValues.push(xRange[1])\n bottomValues.push(yRange[1])\n }\n else if (element.type === 'line') {\n leftValues.push(left)\n topValues.push(top)\n rightValues.push(left + Math.max(element.start[0], element.end[0]))\n bottomValues.push(top + Math.max(element.start[1], element.end[1]))\n }\n else {\n leftValues.push(left)\n topValues.push(top)\n rightValues.push(left + width)\n bottomValues.push(top + height)\n }\n }\n\n targetMinX = Math.min(...leftValues)\n targetMaxX = Math.max(...rightValues)\n targetMinY = Math.min(...topValues)\n targetMaxY = Math.max(...bottomValues)\n }\n \n const targetCenterX = targetMinX + (targetMaxX - targetMinX) / 2\n const targetCenterY = targetMinY + (targetMaxY - targetMinY) / 2\n\n // 将收集到的对齐吸附线与计算的目标元素位置范围做对比,二者的差小于设定的值时执行自动对齐校正\n // 水平和垂直两个方向需要分开计算\n const _alignmentLines: AlignmentLineProps[] = []\n let isVerticalAdsorbed = false\n let isHorizontalAdsorbed = false\n for (let i = 0; i < horizontalLines.length; i++) {\n const { value, range } = horizontalLines[i]\n const min = Math.min(...range, targetMinX, targetMaxX)\n const max = Math.max(...range, targetMinX, targetMaxX)\n \n if (Math.abs(targetMinY - value) < sorptionRange && !isHorizontalAdsorbed) {\n targetTop = targetTop - (targetMinY - value)\n isHorizontalAdsorbed = true\n _alignmentLines.push({type: 'horizontal', axis: {x: min - 50, y: value}, length: max - min + 100})\n }\n if (Math.abs(targetMaxY - value) < sorptionRange && !isHorizontalAdsorbed) {\n targetTop = targetTop - (targetMaxY - value)\n isHorizontalAdsorbed = true\n _alignmentLines.push({type: 'horizontal', axis: {x: min - 50, y: value}, length: max - min + 100})\n }\n if (Math.abs(targetCenterY - value) < sorptionRange && !isHorizontalAdsorbed) {\n targetTop = targetTop - (targetCenterY - value)\n isHorizontalAdsorbed = true\n _alignmentLines.push({type: 'horizontal', axis: {x: min - 50, y: value}, length: max - min + 100})\n }\n }\n for (let i = 0; i < verticalLines.length; i++) {\n const { value, range } = verticalLines[i]\n const min = Math.min(...range, targetMinY, targetMaxY)\n const max = Math.max(...range, targetMinY, targetMaxY)\n\n if (Math.abs(targetMinX - value) < sorptionRange && !isVerticalAdsorbed) {\n targetLeft = targetLeft - (targetMinX - value)\n isVerticalAdsorbed = true\n _alignmentLines.push({type: 'vertical', axis: {x: value, y: min - 50}, length: max - min + 100})\n }\n if (Math.abs(targetMaxX - value) < sorptionRange && !isVerticalAdsorbed) {\n targetLeft = targetLeft - (targetMaxX - value)\n isVerticalAdsorbed = true\n _alignmentLines.push({type: 'vertical', axis: {x: value, y: min - 50}, length: max - min + 100})\n }\n if (Math.abs(targetCenterX - value) < sorptionRange && !isVerticalAdsorbed) {\n targetLeft = targetLeft - (targetCenterX - value)\n isVerticalAdsorbed = true\n _alignmentLines.push({type: 'vertical', axis: {x: value, y: min - 50}, length: max - min + 100})\n }\n }\n alignmentLines.value = _alignmentLines\n \n // 单选状态下,或者当前选中的多个元素中存在正在操作的元素时,仅修改正在操作的元素的位置\n if (activeElementIdList.value.length === 1 || isActiveGroupElement) {\n elementList.value = elementList.value.map(el => {\n return el.id === element.id ? { ...el, left: targetLeft, top: targetTop } : el\n })\n }\n\n // 多选状态下,除了修改正在操作的元素的位置,其他被选中的元素也需要修改位置信息\n // 其他被选中的元素的位置信息通过正在操作的元素的移动偏移量来进行计算\n else {\n const handleElement = elementList.value.find(el => el.id === element.id)\n if (!handleElement) return\n\n elementList.value = elementList.value.map(el => {\n if (activeElementIdList.value.includes(el.id)) {\n if (el.id === element.id) {\n return {\n ...el,\n left: targetLeft,\n top: targetTop,\n }\n }\n return {\n ...el,\n left: el.left + (targetLeft - handleElement.left),\n top: el.top + (targetTop - handleElement.top),\n }\n }\n return el\n })\n }\n }\n\n const handleMouseup = (e: MouseEvent | TouchEvent) => {\n isMouseDown = false\n \n document.ontouchmove = null\n document.ontouchend = null\n document.onmousemove = null\n document.onmouseup = null\n\n alignmentLines.value = []\n\n const currentPageX = e instanceof MouseEvent ? e.pageX : e.changedTouches[0].pageX\n const currentPageY = e instanceof MouseEvent ? e.pageY : e.changedTouches[0].pageY\n\n if (startPageX === currentPageX && startPageY === currentPageY) return\n\n slidesStore.updateSlide({ elements: elementList.value })\n addHistorySnapshot()\n }\n\n if (isTouchEvent) {\n document.ontouchmove = handleMousemove\n document.ontouchend = handleMouseup\n }\n else {\n document.onmousemove = handleMousemove\n document.onmouseup = handleMouseup\n }\n }\n\n return {\n dragElement,\n }\n}","import type { Ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useKeyboardStore, useMainStore, useSlidesStore } from '@/store'\nimport type { PPTElement, PPTLineElement } from '@/types/slides'\nimport { OperateLineHandlers } from '@/types/edit'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\ninterface AdsorptionPoint {\n x: number\n y: number\n}\n\nexport default (elementList: Ref) => {\n const slidesStore = useSlidesStore()\n const { canvasScale } = storeToRefs(useMainStore())\n const { ctrlOrShiftKeyActive } = storeToRefs(useKeyboardStore())\n const { addHistorySnapshot } = useHistorySnapshot()\n\n // 拖拽线条端点\n const dragLineElement = (e: MouseEvent, element: PPTLineElement, command: OperateLineHandlers) => {\n let isMouseDown = true\n\n const sorptionRange = 8\n\n const startPageX = e.pageX\n const startPageY = e.pageY\n\n const adsorptionPoints: AdsorptionPoint[] = []\n\n // 获取所有线条以外的未旋转的元素的8个缩放点作为吸附位置\n for (let i = 0; i < elementList.value.length; i++) {\n const _element = elementList.value[i]\n if (_element.type === 'line' || _element.rotate) continue\n\n const left = _element.left\n const top = _element.top\n const width = _element.width\n const height = _element.height\n \n const right = left + width\n const bottom = top + height\n const centerX = top + height / 2\n const centerY = left + width / 2\n\n const topPoint = { x: centerY, y: top }\n const bottomPoint = { x: centerY, y: bottom }\n const leftPoint = { x: left, y: centerX }\n const rightPoint = { x: right, y: centerX }\n\n const leftTopPoint = { x: left, y: top }\n const rightTopPoint = { x: right, y: top }\n const leftBottomPoint = { x: left, y: bottom }\n const rightBottomPoint = { x: right, y: bottom }\n\n adsorptionPoints.push(\n topPoint,\n bottomPoint,\n leftPoint,\n rightPoint,\n leftTopPoint,\n rightTopPoint,\n leftBottomPoint,\n rightBottomPoint,\n )\n }\n\n document.onmousemove = e => {\n if (!isMouseDown) return\n\n const currentPageX = e.pageX\n const currentPageY = e.pageY\n\n const moveX = (currentPageX - startPageX) / canvasScale.value\n const moveY = (currentPageY - startPageY) / canvasScale.value\n \n // 线条起点和终点在编辑区域中的位置\n let startX = element.left + element.start[0]\n let startY = element.top + element.start[1]\n let endX = element.left + element.end[0]\n let endY = element.top + element.end[1]\n\n const mid = element.broken || element.curve || [0, 0]\n let midX = element.left + mid[0]\n let midY = element.top + mid[1]\n\n const [c1, c2] = element.cubic || [[0, 0], [0, 0]]\n let c1X = element.left + c1[0]\n let c1Y = element.top + c1[1]\n let c2X = element.left + c2[0]\n let c2Y = element.top + c2[1]\n\n // 拖拽起点或终点的位置\n // 水平和垂直方向上有吸附\n if (command === OperateLineHandlers.START) {\n startX = startX + moveX\n startY = startY + moveY\n\n if (Math.abs(startX - endX) < sorptionRange) startX = endX\n if (Math.abs(startY - endY) < sorptionRange) startY = endY\n\n for (const adsorptionPoint of adsorptionPoints) {\n const { x, y } = adsorptionPoint\n if (Math.abs(x - startX) < sorptionRange && Math.abs(y - startY) < sorptionRange) {\n startX = x\n startY = y\n break\n }\n }\n }\n else if (command === OperateLineHandlers.END) {\n endX = endX + moveX\n endY = endY + moveY\n\n if (Math.abs(startX - endX) < sorptionRange) endX = startX\n if (Math.abs(startY - endY) < sorptionRange) endY = startY\n\n for (const adsorptionPoint of adsorptionPoints) {\n const { x, y } = adsorptionPoint\n if (Math.abs(x - endX) < sorptionRange && Math.abs(y - endY) < sorptionRange) {\n endX = x\n endY = y\n break\n }\n }\n }\n else if (command === OperateLineHandlers.C) {\n midX = midX + moveX\n midY = midY + moveY\n\n if (Math.abs(midX - startX) < sorptionRange) midX = startX\n if (Math.abs(midY - startY) < sorptionRange) midY = startY\n if (Math.abs(midX - endX) < sorptionRange) midX = endX\n if (Math.abs(midY - endY) < sorptionRange) midY = endY\n if (Math.abs(midX - (startX + endX) / 2) < sorptionRange && Math.abs(midY - (startY + endY) / 2) < sorptionRange) {\n midX = (startX + endX) / 2\n midY = (startY + endY) / 2\n }\n }\n else if (command === OperateLineHandlers.C1) {\n c1X = c1X + moveX\n c1Y = c1Y + moveY\n\n if (Math.abs(c1X - startX) < sorptionRange) c1X = startX\n if (Math.abs(c1Y - startY) < sorptionRange) c1Y = startY\n if (Math.abs(c1X - endX) < sorptionRange) c1X = endX\n if (Math.abs(c1Y - endY) < sorptionRange) c1Y = endY\n }\n else if (command === OperateLineHandlers.C2) {\n c2X = c2X + moveX\n c2Y = c2Y + moveY\n\n if (Math.abs(c2X - startX) < sorptionRange) c2X = startX\n if (Math.abs(c2Y - startY) < sorptionRange) c2Y = startY\n if (Math.abs(c2X - endX) < sorptionRange) c2X = endX\n if (Math.abs(c2Y - endY) < sorptionRange) c2Y = endY\n }\n\n // 计算更新起点和终点基于自身元素位置的坐标\n const minX = Math.min(startX, endX)\n const minY = Math.min(startY, endY)\n const maxX = Math.max(startX, endX)\n const maxY = Math.max(startY, endY)\n\n const start: [number, number] = [0, 0]\n const end: [number, number] = [maxX - minX, maxY - minY]\n if (startX > endX) {\n start[0] = maxX - minX\n end[0] = 0\n }\n if (startY > endY) {\n start[1] = maxY - minY\n end[1] = 0\n }\n\n elementList.value = elementList.value.map(el => {\n if (el.id === element.id) {\n const newEl: PPTLineElement = {\n ...(el as PPTLineElement),\n left: minX,\n top: minY,\n start: start,\n end: end,\n }\n if (command === OperateLineHandlers.START || command === OperateLineHandlers.END) {\n if (ctrlOrShiftKeyActive.value) {\n if (element.broken) newEl.broken = [midX - minX, midY - minY]\n if (element.curve) newEl.curve = [midX - minX, midY - minY]\n if (element.cubic) newEl.cubic = [[c1X - minX, c1Y - minY], [c2X - minX, c2Y - minY]]\n }\n else {\n if (element.broken) newEl.broken = [(start[0] + end[0]) / 2, (start[1] + end[1]) / 2]\n if (element.curve) newEl.curve = [(start[0] + end[0]) / 2, (start[1] + end[1]) / 2]\n if (element.cubic) newEl.cubic = [[(start[0] + end[0]) / 2, (start[1] + end[1]) / 2], [(start[0] + end[0]) / 2, (start[1] + end[1]) / 2]]\n }\n }\n else if (command === OperateLineHandlers.C) {\n if (element.broken) newEl.broken = [midX - minX, midY - minY]\n if (element.curve) newEl.curve = [midX - minX, midY - minY]\n }\n else {\n if (element.cubic) newEl.cubic = [[c1X - minX, c1Y - minY], [c2X - minX, c2Y - minY]]\n }\n return newEl\n }\n return el\n })\n }\n\n document.onmouseup = e => {\n isMouseDown = false\n document.onmousemove = null\n document.onmouseup = null\n\n const currentPageX = e.pageX\n const currentPageY = e.pageY\n\n if (startPageX === currentPageX && startPageY === currentPageY) return\n\n slidesStore.updateSlide({ elements: elementList.value })\n addHistorySnapshot()\n }\n }\n\n return {\n dragLineElement,\n }\n}","import type { Ref } from 'vue'\nimport { useSlidesStore } from '@/store'\nimport type { PPTElement, PPTShapeElement } from '@/types/slides'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\nimport { SHAPE_PATH_FORMULAS } from '@/configs/shapes'\n\ninterface ShapePathData {\n baseSize: number,\n originPos: number,\n min: number,\n max: number,\n relative: string,\n}\n\nexport default (\n elementList: Ref,\n canvasScale: Ref,\n) => {\n const slidesStore = useSlidesStore()\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n const moveShapeKeypoint = (e: MouseEvent | TouchEvent, element: PPTShapeElement) => {\n const isTouchEvent = !(e instanceof MouseEvent)\n if (isTouchEvent && (!e.changedTouches || !e.changedTouches[0])) return\n\n let isMouseDown = true\n \n const startPageX = isTouchEvent ? e.changedTouches[0].pageX : e.pageX\n const startPageY = isTouchEvent ? e.changedTouches[0].pageY : e.pageY\n\n const pathFormula = SHAPE_PATH_FORMULAS[element.pathFormula!]\n let shapePathData: ShapePathData | null = null\n if ('editable' in pathFormula) {\n const baseSize = pathFormula.getBaseSize(element.width, element.height)\n const originPos = baseSize * element.keypoint!\n const [min, max] = pathFormula.range\n const relative = pathFormula.relative\n\n shapePathData = { baseSize, originPos, min, max, relative }\n }\n\n const handleMousemove = (e: MouseEvent | TouchEvent) => {\n if (!isMouseDown) return\n\n const currentPageX = e instanceof MouseEvent ? e.pageX : e.changedTouches[0].pageX\n const currentPageY = e instanceof MouseEvent ? e.pageY : e.changedTouches[0].pageY\n const moveX = (currentPageX - startPageX) / canvasScale.value\n const moveY = (currentPageY - startPageY) / canvasScale.value\n\n elementList.value = elementList.value.map(el => {\n if (el.id === element.id && shapePathData) {\n const { baseSize, originPos, min, max, relative } = shapePathData\n const shapeElement = el as PPTShapeElement\n\n let keypoint = 0\n\n if (relative === 'left') keypoint = (originPos + moveX) / baseSize\n if (relative === 'right') keypoint = (originPos - moveX) / baseSize\n if (relative === 'center') keypoint = (originPos - moveX * 2) / baseSize\n if (relative === 'top') keypoint = (originPos + moveY) / baseSize\n if (relative === 'bottom') keypoint = (originPos - moveY) / baseSize\n\n if (keypoint < min) keypoint = min\n if (keypoint > max) keypoint = max\n\n return {\n ...el,\n keypoint,\n path: pathFormula.formula(shapeElement.width, shapeElement.height, keypoint),\n }\n }\n return el\n })\n }\n\n const handleMouseup = (e: MouseEvent | TouchEvent) => {\n isMouseDown = false\n \n document.ontouchmove = null\n document.ontouchend = null\n document.onmousemove = null\n document.onmouseup = null\n\n const currentPageX = e instanceof MouseEvent ? e.pageX : e.changedTouches[0].pageX\n const currentPageY = e instanceof MouseEvent ? e.pageY : e.changedTouches[0].pageY\n\n if (startPageX === currentPageX && startPageY === currentPageY) return\n\n slidesStore.updateSlide({ elements: elementList.value })\n addHistorySnapshot()\n }\n\n if (isTouchEvent) {\n document.ontouchmove = handleMousemove\n document.ontouchend = handleMouseup\n }\n else {\n document.onmousemove = handleMousemove\n document.onmouseup = handleMouseup\n }\n }\n\n return {\n moveShapeKeypoint,\n }\n}","import type { Ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport type { CreateElementSelectionData } from '@/types/edit'\nimport useCreateElement from '@/hooks/useCreateElement'\n\nexport default (viewportRef: Ref) => {\n const mainStore = useMainStore()\n const { canvasScale, creatingElement } = storeToRefs(mainStore)\n\n // 通过鼠标框选时的起点和终点,计算选区的位置大小\n const formatCreateSelection = (selectionData: CreateElementSelectionData) => {\n const { start, end } = selectionData\n\n if (!viewportRef.value) return\n const viewportRect = viewportRef.value.getBoundingClientRect()\n\n const [startX, startY] = start\n const [endX, endY] = end\n const minX = Math.min(startX, endX)\n const maxX = Math.max(startX, endX)\n const minY = Math.min(startY, endY)\n const maxY = Math.max(startY, endY)\n\n const left = (minX - viewportRect.x) / canvasScale.value\n const top = (minY - viewportRect.y) / canvasScale.value\n const width = (maxX - minX) / canvasScale.value\n const height = (maxY - minY) / canvasScale.value\n\n return { left, top, width, height }\n }\n\n // 通过鼠标框选时的起点和终点,计算线条在画布中的位置和起点终点\n const formatCreateSelectionForLine = (selectionData: CreateElementSelectionData) => {\n const { start, end } = selectionData\n\n if (!viewportRef.value) return\n const viewportRect = viewportRef.value.getBoundingClientRect()\n\n const [startX, startY] = start\n const [endX, endY] = end\n const minX = Math.min(startX, endX)\n const maxX = Math.max(startX, endX)\n const minY = Math.min(startY, endY)\n const maxY = Math.max(startY, endY)\n\n const left = (minX - viewportRect.x) / canvasScale.value\n const top = (minY - viewportRect.y) / canvasScale.value\n const width = (maxX - minX) / canvasScale.value\n const height = (maxY - minY) / canvasScale.value\n\n const _start: [number, number] = [\n startX === minX ? 0 : width,\n startY === minY ? 0 : height,\n ]\n const _end: [number, number] = [\n endX === minX ? 0 : width,\n endY === minY ? 0 : height,\n ]\n\n return {\n left,\n top,\n start: _start,\n end: _end,\n }\n }\n\n const { createTextElement, createShapeElement, createLineElement } = useCreateElement()\n\n // 根据鼠标选区的位置大小插入元素\n const insertElementFromCreateSelection = (selectionData: CreateElementSelectionData) => {\n if (!creatingElement.value) return\n\n const type = creatingElement.value.type\n if (type === 'text') {\n const position = formatCreateSelection(selectionData)\n position && createTextElement(position, { vertical: creatingElement.value.vertical })\n }\n else if (type === 'shape') {\n const position = formatCreateSelection(selectionData)\n position && createShapeElement(position, creatingElement.value.data)\n }\n else if (type === 'line') {\n const position = formatCreateSelectionForLine(selectionData)\n position && createLineElement(position, creatingElement.value.data)\n }\n mainStore.setCreatingElement(null)\n }\n\n return {\n formatCreateSelection,\n insertElementFromCreateSelection,\n }\n}","import { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTElement } from '@/types/slides'\nimport { ElementAlignCommands } from '@/types/edit'\nimport { getElementListRange } from '@/utils/element'\nimport { VIEWPORT_SIZE } from '@/configs/canvas'\nimport useHistorySnapshot from './useHistorySnapshot'\n\nexport default () => {\n const slidesStore = useSlidesStore()\n const { activeElementIdList, activeElementList } = storeToRefs(useMainStore())\n const { currentSlide, viewportRatio } = storeToRefs(slidesStore)\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n /**\n * 将所有选中的元素对齐到画布\n * @param command 对齐方向\n */\n const alignElementToCanvas = (command: ElementAlignCommands) => {\n const viewportWidth = VIEWPORT_SIZE\n const viewportHeight = VIEWPORT_SIZE * viewportRatio.value\n const { minX, maxX, minY, maxY } = getElementListRange(activeElementList.value)\n \n const newElementList: PPTElement[] = JSON.parse(JSON.stringify(currentSlide.value.elements))\n for (const element of newElementList) {\n if (!activeElementIdList.value.includes(element.id)) continue\n \n // 水平垂直居中\n if (command === ElementAlignCommands.CENTER) {\n const offsetY = minY + (maxY - minY) / 2 - viewportHeight / 2\n const offsetX = minX + (maxX - minX) / 2 - viewportWidth / 2\n element.top = element.top - offsetY \n element.left = element.left - offsetX \n }\n\n // 顶部对齐\n if (command === ElementAlignCommands.TOP) {\n const offsetY = minY - 0\n element.top = element.top - offsetY \n }\n\n // 垂直居中\n else if (command === ElementAlignCommands.VERTICAL) {\n const offsetY = minY + (maxY - minY) / 2 - viewportHeight / 2\n element.top = element.top - offsetY \n }\n\n // 底部对齐\n else if (command === ElementAlignCommands.BOTTOM) {\n const offsetY = maxY - viewportHeight\n element.top = element.top - offsetY \n }\n \n // 左侧对齐\n else if (command === ElementAlignCommands.LEFT) {\n const offsetX = minX - 0\n element.left = element.left - offsetX \n }\n\n // 水平居中\n else if (command === ElementAlignCommands.HORIZONTAL) {\n const offsetX = minX + (maxX - minX) / 2 - viewportWidth / 2\n element.left = element.left - offsetX \n }\n\n // 右侧对齐\n else if (command === ElementAlignCommands.RIGHT) {\n const offsetX = maxX - viewportWidth\n element.left = element.left - offsetX \n }\n }\n\n slidesStore.updateSlide({ elements: newElementList })\n addHistorySnapshot()\n }\n\n return {\n alignElementToCanvas,\n }\n}","import { computed, type Ref } from 'vue'\nimport type { PPTElementShadow } from '@/types/slides'\n\n// 计算元素的阴影样式\nexport default (shadow: Ref) => {\n const shadowStyle = computed(() => {\n if (shadow.value) {\n const { h, v, blur, color } = shadow.value\n return `${h}px ${v}px ${blur}px ${color}`\n }\n return ''\n })\n\n return {\n shadowStyle,\n }\n}","import { computed, type Ref } from 'vue'\n\n// 计算元素的翻转样式\nexport default (flipH: Ref, flipV: Ref) => {\n const flipStyle = computed(() => {\n let style = ''\n \n if (flipH.value && flipV.value) style = 'rotateX(180deg) rotateY(180deg)'\n else if (flipV.value) style = 'rotateX(180deg)'\n else if (flipH.value) style = 'rotateY(180deg)'\n\n return style\n })\n\n return {\n flipStyle,\n }\n}","import { computed, type Ref } from 'vue'\nimport { CLIPPATHS, ClipPathTypes } from '@/configs/imageClip'\nimport type { ImageElementClip } from '@/types/slides'\n\nexport default (clip: Ref) => {\n const clipShape = computed(() => {\n if (!clip.value) return CLIPPATHS.rect\n const shape = clip.value.shape || ClipPathTypes.RECT\n\n return CLIPPATHS[shape]\n })\n\n const imgPosition = computed(() => {\n if (!clip.value) {\n return {\n top: '0',\n left: '0',\n width: '100%',\n height: '100%',\n }\n }\n\n const [start, end] = clip.value.range\n\n const widthScale = (end[0] - start[0]) / 100\n const heightScale = (end[1] - start[1]) / 100\n const left = start[0] / widthScale\n const top = start[1] / heightScale\n\n return {\n left: -left + '%',\n top: -top + '%',\n width: 100 / widthScale + '%',\n height: 100 / heightScale + '%',\n }\n })\n\n return {\n clipShape,\n imgPosition,\n }\n}","import { computed, type Ref } from 'vue'\nimport type { ImageElementFilters, ImageElementFilterKeys } from '@/types/slides'\n\nexport default (filters: Ref) => {\n const filter = computed(() => {\n if (!filters.value) return ''\n let filter = ''\n const keys = Object.keys(filters.value) as ImageElementFilterKeys[]\n for (const key of keys) {\n filter += `${key}(${filters.value[key]}) `\n }\n return filter\n })\n\n return {\n filter,\n }\n}","import { computed, type Ref } from 'vue'\nimport type { PPTElementOutline } from '@/types/slides'\n\n// 计算边框相关属性值,主要是对默认值的处理\nexport default (outline: Ref) => {\n const outlineWidth = computed(() => outline.value?.width ?? 0)\n const outlineStyle = computed(() => outline.value?.style || 'solid')\n const outlineColor = computed(() => outline.value?.color || '#d14424')\n\n const strokeDashArray = computed(() => {\n if (outlineStyle.value !== 'dashed') return '0 0'\n const size = outlineWidth.value\n return size <= 6 ? `${size * 4.5} ${size * 2}` : `${size * 4} ${size * 1.5}`\n })\n\n return {\n outlineWidth,\n outlineStyle,\n outlineColor,\n strokeDashArray,\n }\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-35e36256\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\"]\nconst _hoisted_2 = [\"rx\", \"ry\", \"width\", \"height\", \"stroke\", \"stroke-width\", \"stroke-dasharray\"]\n\nimport { toRef } from 'vue'\nimport type { PPTElementOutline } from '@/types/slides'\nimport useElementOutline from '@/views/components/element/hooks/useElementOutline'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ImageRectOutline',\n props: {\n width: {},\n height: {},\n outline: {},\n radius: { default: '0' }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst {\n outlineWidth,\n outlineColor,\n strokeDashArray,\n} = useElementOutline(toRef(props, 'outline'))\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.outline)\n ? (_openBlock(), _createElementBlock(\"svg\", {\n key: 0,\n class: \"image-rect-outline\",\n overflow: \"visible\",\n width: _ctx.width,\n height: _ctx.height\n }, [\n _createElementVNode(\"rect\", {\n \"vector-effect\": \"non-scaling-stroke\",\n \"stroke-linecap\": \"butt\",\n \"stroke-miterlimit\": \"8\",\n fill: \"transparent\",\n rx: _ctx.radius,\n ry: _ctx.radius,\n width: _ctx.width,\n height: _ctx.height,\n stroke: _unref(outlineColor),\n \"stroke-width\": _unref(outlineWidth),\n \"stroke-dasharray\": _unref(strokeDashArray)\n }, null, 8, _hoisted_2)\n ], 8, _hoisted_1))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","\n\n\n\n","import script from \"./ImageRectOutline.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ImageRectOutline.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ImageRectOutline.vue?vue&type=style&index=0&id=35e36256&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-35e36256\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-11836cf8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\"]\nconst _hoisted_2 = [\"cx\", \"cy\", \"rx\", \"ry\", \"stroke\", \"stroke-width\", \"stroke-dasharray\"]\n\nimport { toRef } from 'vue'\nimport type { PPTElementOutline } from '@/types/slides'\nimport useElementOutline from '@/views/components/element/hooks/useElementOutline'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ImageEllipseOutline',\n props: {\n width: {},\n height: {},\n outline: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst {\n outlineWidth,\n outlineColor,\n strokeDashArray,\n} = useElementOutline(toRef(props, 'outline'))\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.outline)\n ? (_openBlock(), _createElementBlock(\"svg\", {\n key: 0,\n class: \"image-ellipse-outline\",\n overflow: \"visible\",\n width: _ctx.width,\n height: _ctx.height\n }, [\n _createElementVNode(\"ellipse\", {\n \"vector-effect\": \"non-scaling-stroke\",\n \"stroke-linecap\": \"butt\",\n \"stroke-miterlimit\": \"8\",\n fill: \"transparent\",\n cx: _ctx.width / 2,\n cy: _ctx.height / 2,\n rx: _ctx.width / 2,\n ry: _ctx.height / 2,\n stroke: _unref(outlineColor),\n \"stroke-width\": _unref(outlineWidth),\n \"stroke-dasharray\": _unref(strokeDashArray)\n }, null, 8, _hoisted_2)\n ], 8, _hoisted_1))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","\n\n\n\n","import script from \"./ImageEllipseOutline.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ImageEllipseOutline.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ImageEllipseOutline.vue?vue&type=style&index=0&id=11836cf8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-11836cf8\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-6e021ee2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\"]\nconst _hoisted_2 = [\"d\", \"stroke\", \"stroke-width\", \"stroke-dasharray\"]\n\nimport { toRef } from 'vue'\nimport type { PPTElementOutline } from '@/types/slides'\nimport useElementOutline from '@/views/components/element/hooks/useElementOutline'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ImagePolygonOutline',\n props: {\n width: {},\n height: {},\n createPath: { type: Function },\n outline: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst {\n outlineWidth,\n outlineColor,\n strokeDashArray,\n} = useElementOutline(toRef(props, 'outline'))\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.outline)\n ? (_openBlock(), _createElementBlock(\"svg\", {\n key: 0,\n class: \"image-polygon-outline\",\n overflow: \"visible\",\n width: _ctx.width,\n height: _ctx.height\n }, [\n _createElementVNode(\"path\", {\n \"vector-effect\": \"non-scaling-stroke\",\n \"stroke-linecap\": \"butt\",\n \"stroke-miterlimit\": \"8\",\n fill: \"transparent\",\n d: _ctx.createPath(_ctx.width, _ctx.height),\n stroke: _unref(outlineColor),\n \"stroke-width\": _unref(outlineWidth),\n \"stroke-dasharray\": _unref(strokeDashArray)\n }, null, 8, _hoisted_2)\n ], 8, _hoisted_1))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","\n\n\n\n","import script from \"./ImagePolygonOutline.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ImagePolygonOutline.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ImagePolygonOutline.vue?vue&type=style&index=0&id=6e021ee2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6e021ee2\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"image-outline\" }\n\nimport { computed } from 'vue'\nimport type { PPTImageElement } from '@/types/slides'\nimport useClipImage from '../useClipImage'\n\nimport ImageRectOutline from './ImageRectOutline.vue'\nimport ImageEllipseOutline from './ImageEllipseOutline.vue'\nimport ImagePolygonOutline from './ImagePolygonOutline.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst clip = computed(() => props.elementInfo.clip)\nconst { clipShape } = useClipImage(clip)\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_unref(clipShape).type === 'rect')\n ? (_openBlock(), _createBlock(ImageRectOutline, {\n key: 0,\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n radius: _unref(clipShape).radius,\n outline: _ctx.elementInfo.outline\n }, null, 8, [\"width\", \"height\", \"radius\", \"outline\"]))\n : (_unref(clipShape).type === 'ellipse')\n ? (_openBlock(), _createBlock(ImageEllipseOutline, {\n key: 1,\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n outline: _ctx.elementInfo.outline\n }, null, 8, [\"width\", \"height\", \"outline\"]))\n : (_unref(clipShape).type === 'polygon')\n ? (_openBlock(), _createBlock(ImagePolygonOutline, {\n key: 2,\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n outline: _ctx.elementInfo.outline,\n createPath: _unref(clipShape).createPath!\n }, null, 8, [\"width\", \"height\", \"outline\", \"createPath\"]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, withModifiers as _withModifiers, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5984406b\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"src\"]\nconst _hoisted_2 = [\"src\"]\nconst _hoisted_3 = [\"onMousedown\"]\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"svg\", {\n width: \"16\",\n height: \"16\",\n fill: \"#fff\",\n stroke: \"#333\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n \"stroke-width\": \"0.3\",\n \"shape-rendering\": \"crispEdges\",\n d: \"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z\"\n })\n], -1))\nconst _hoisted_5 = [\n _hoisted_4\n]\nconst _hoisted_6 = [\"onMousedown\"]\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"svg\", {\n width: \"16\",\n height: \"16\",\n fill: \"#fff\",\n stroke: \"#333\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n \"stroke-width\": \"0.3\",\n \"shape-rendering\": \"crispEdges\",\n d: \"M 16 0 L 0 0 L 0 4 L 16 4 Z\"\n })\n], -1))\nconst _hoisted_8 = [\n _hoisted_7\n]\n\nimport { computed, onMounted, onUnmounted, ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useKeyboardStore } from '@/store'\nimport { KEYS } from '@/configs/hotkey'\nimport { type ImageClipedEmitData, OperateResizeHandlers } from '@/types/edit'\nimport type { ImageClipDataRange, ImageElementClip } from '@/types/slides'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ImageClipHandler',\n props: {\n src: {},\n clipPath: {},\n width: {},\n height: {},\n top: {},\n left: {},\n rotate: {},\n clipData: {}\n },\n emits: [\"clip\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props\n\nconst emit = __emit\n\nconst { canvasScale } = storeToRefs(useMainStore())\nconst { ctrlOrShiftKeyActive } = storeToRefs(useKeyboardStore())\n\nconst clipWrapperPositionStyle = ref({\n top: '0',\n left: '0',\n})\nconst isSettingClipRange = ref(false)\nconst currentRange = ref(null)\n\n// 获取裁剪区域信息(裁剪区域占原图的宽高比例,处在原图中的位置)\nconst getClipDataTransformInfo = () => {\n const [start, end] = props.clipData ? props.clipData.range : [[0, 0], [100, 100]]\n\n const widthScale = (end[0] - start[0]) / 100\n const heightScale = (end[1] - start[1]) / 100\n const left = start[0] / widthScale\n const top = start[1] / heightScale\n\n return { widthScale, heightScale, left, top }\n}\n\n// 底层图片位置大小(遮罩区域图片)\nconst imgPosition = computed(() => {\n const { widthScale, heightScale, left, top } = getClipDataTransformInfo()\n return {\n left: -left,\n top: -top,\n width: 100 / widthScale,\n height: 100 / heightScale,\n }\n})\n\n// 底层图片位置大小样式(遮罩区域图片)\nconst bottomImgPositionStyle = computed(() => {\n return {\n top: imgPosition.value.top + '%',\n left: imgPosition.value.left + '%',\n width: imgPosition.value.width + '%',\n height: imgPosition.value.height + '%',\n }\n})\n\n// 顶层图片容器位置大小(裁剪高亮区域)\nconst topImgWrapperPosition = ref({\n top: 0,\n left: 0,\n width: 0,\n height: 0,\n})\n\n// 顶层图片容器位置大小样式(裁剪高亮区域)\nconst topImgWrapperPositionStyle = computed(() => {\n const { top, left, width, height } = topImgWrapperPosition.value\n return {\n top: top + '%',\n left: left + '%',\n width: width + '%',\n height: height + '%',\n }\n})\n\n// 顶层图片位置大小样式(裁剪区域图片)\nconst topImgPositionStyle = computed(() => {\n const bottomWidth = imgPosition.value.width\n const bottomHeight = imgPosition.value.height\n \n const { top, left, width, height } = topImgWrapperPosition.value\n \n return {\n left: -left * (100 / width) + '%',\n top: -top * (100 / height) + '%',\n width: bottomWidth / width * 100 + '%',\n height: bottomHeight / height * 100 + '%',\n }\n})\n\n// 初始化裁剪位置信息\nconst initClipPosition = () => {\n const { left, top } = getClipDataTransformInfo()\n topImgWrapperPosition.value = {\n left: left,\n top: top,\n width: 100,\n height: 100,\n }\n \n clipWrapperPositionStyle.value = {\n top: -top + '%',\n left: -left + '%',\n }\n}\n\n// 执行裁剪:计算裁剪后的图片位置大小和裁剪信息,并将数据同步出去\nconst handleClip = () => {\n if (isSettingClipRange.value) return\n\n if (!currentRange.value) {\n emit('clip', null)\n return\n }\n\n const { left, top } = getClipDataTransformInfo()\n\n const position = {\n left: (topImgWrapperPosition.value.left - left) / 100 * props.width,\n top: (topImgWrapperPosition.value.top - top) / 100 * props.height,\n width: (topImgWrapperPosition.value.width - 100) / 100 * props.width,\n height: (topImgWrapperPosition.value.height - 100) / 100 * props.height,\n }\n\n const clipedEmitData: ImageClipedEmitData = {\n range: currentRange.value,\n position,\n }\n emit('clip', clipedEmitData)\n}\n\n// 快捷键监听:回车确认裁剪\nconst keyboardListener = (e: KeyboardEvent) => {\n const key = e.key.toUpperCase()\n if (key === KEYS.ENTER) handleClip()\n}\n\nonMounted(() => {\n initClipPosition()\n document.addEventListener('keydown', keyboardListener)\n})\nonUnmounted(() => {\n document.removeEventListener('keydown', keyboardListener)\n})\n\n// 计算并更新裁剪区域范围数据\nconst updateRange = () => {\n const retPosition = {\n left: parseInt(topImgPositionStyle.value.left),\n top: parseInt(topImgPositionStyle.value.top),\n width: parseInt(topImgPositionStyle.value.width),\n height: parseInt(topImgPositionStyle.value.height),\n }\n\n const widthScale = 100 / retPosition.width\n const heightScale = 100 / retPosition.height\n\n const start: [number, number] = [\n -retPosition.left * widthScale,\n -retPosition.top * heightScale,\n ]\n const end: [number, number] = [\n widthScale * 100 + start[0],\n heightScale * 100 + start[1],\n ]\n\n currentRange.value = [start, end]\n}\n\n// 移动裁剪区域\nconst moveClipRange = (e: MouseEvent) => {\n isSettingClipRange.value = true\n let isMouseDown = true\n\n const startPageX = e.pageX\n const startPageY = e.pageY\n const bottomPosition = imgPosition.value\n const originPositopn = { ...topImgWrapperPosition.value }\n\n document.onmousemove = e => {\n if (!isMouseDown) return\n\n const currentPageX = e.pageX\n const currentPageY = e.pageY\n\n let moveX = (currentPageX - startPageX) / canvasScale.value / props.width * 100\n let moveY = (currentPageY - startPageY) / canvasScale.value / props.height * 100\n\n if (props.rotate > 45 && props.rotate < 135) {\n moveX = (currentPageY - startPageY) / canvasScale.value / props.width * 100\n moveY = -(currentPageX - startPageX) / canvasScale.value / props.height * 100\n }\n if ((props.rotate >= 135 && props.rotate <= 180) || (props.rotate >= -180 && props.rotate <= -135)) {\n moveX = -moveX\n moveY = -moveY\n }\n if (props.rotate > -135 && props.rotate < -45) {\n moveX = -(currentPageY - startPageY) / canvasScale.value / props.width * 100\n moveY = (currentPageX - startPageX) / canvasScale.value / props.height * 100\n }\n\n let targetLeft = originPositopn.left + moveX\n let targetTop = originPositopn.top + moveY\n\n if (targetLeft < 0) targetLeft = 0\n else if (targetLeft + originPositopn.width > bottomPosition.width) {\n targetLeft = bottomPosition.width - originPositopn.width\n }\n if (targetTop < 0) targetTop = 0\n else if (targetTop + originPositopn.height > bottomPosition.height) {\n targetTop = bottomPosition.height - originPositopn.height\n }\n \n topImgWrapperPosition.value = {\n ...topImgWrapperPosition.value,\n left: targetLeft,\n top: targetTop,\n }\n }\n\n document.onmouseup = () => {\n isMouseDown = false\n document.onmousemove = null\n document.onmouseup = null\n\n updateRange()\n\n setTimeout(() => {\n isSettingClipRange.value = false\n }, 0)\n }\n}\n\n// 缩放裁剪区域\nconst scaleClipRange = (e: MouseEvent, type: OperateResizeHandlers) => {\n isSettingClipRange.value = true\n let isMouseDown = true\n\n const minWidth = 50 / props.width * 100\n const minHeight = 50 / props.height * 100\n \n const startPageX = e.pageX\n const startPageY = e.pageY\n const bottomPosition = imgPosition.value\n const originPositopn = { ...topImgWrapperPosition.value }\n\n const aspectRatio = topImgWrapperPosition.value.width / topImgWrapperPosition.value.height\n\n document.onmousemove = e => {\n if (!isMouseDown) return\n\n const currentPageX = e.pageX\n const currentPageY = e.pageY\n\n let moveX = (currentPageX - startPageX) / canvasScale.value / props.width * 100\n let moveY = (currentPageY - startPageY) / canvasScale.value / props.height * 100\n\n if (props.rotate > 45 && props.rotate < 135) {\n moveX = (currentPageY - startPageY) / canvasScale.value / props.width * 100\n moveY = -(currentPageX - startPageX) / canvasScale.value / props.height * 100\n }\n if ((props.rotate >= 135 && props.rotate <= 180) || (props.rotate >= -180 && props.rotate <= -135)) {\n moveX = -moveX\n moveY = -moveY\n }\n if (props.rotate > -135 && props.rotate < -45) {\n moveX = -(currentPageY - startPageY) / canvasScale.value / props.width * 100\n moveY = (currentPageX - startPageX) / canvasScale.value / props.height * 100\n }\n\n if (ctrlOrShiftKeyActive.value) {\n if (type === OperateResizeHandlers.RIGHT_BOTTOM || type === OperateResizeHandlers.LEFT_TOP) moveY = moveX / aspectRatio\n if (type === OperateResizeHandlers.LEFT_BOTTOM || type === OperateResizeHandlers.RIGHT_TOP) moveY = -moveX / aspectRatio\n }\n\n let targetLeft, targetTop, targetWidth, targetHeight\n\n if (type === OperateResizeHandlers.LEFT_TOP) {\n if (originPositopn.left + moveX < 0) {\n moveX = -originPositopn.left\n }\n if (originPositopn.top + moveY < 0) {\n moveY = -originPositopn.top\n }\n if (originPositopn.width - moveX < minWidth) {\n moveX = originPositopn.width - minWidth\n }\n if (originPositopn.height - moveY < minHeight) {\n moveY = originPositopn.height - minHeight\n }\n targetWidth = originPositopn.width - moveX\n targetHeight = originPositopn.height - moveY\n targetLeft = originPositopn.left + moveX\n targetTop = originPositopn.top + moveY\n }\n else if (type === OperateResizeHandlers.RIGHT_TOP) {\n if (originPositopn.left + originPositopn.width + moveX > bottomPosition.width) {\n moveX = bottomPosition.width - (originPositopn.left + originPositopn.width)\n }\n if (originPositopn.top + moveY < 0) {\n moveY = -originPositopn.top\n }\n if (originPositopn.width + moveX < minWidth) {\n moveX = minWidth - originPositopn.width\n }\n if (originPositopn.height - moveY < minHeight) {\n moveY = originPositopn.height - minHeight\n }\n targetWidth = originPositopn.width + moveX\n targetHeight = originPositopn.height - moveY\n targetLeft = originPositopn.left\n targetTop = originPositopn.top + moveY\n }\n else if (type === OperateResizeHandlers.LEFT_BOTTOM) {\n if (originPositopn.left + moveX < 0) {\n moveX = -originPositopn.left\n }\n if (originPositopn.top + originPositopn.height + moveY > bottomPosition.height) {\n moveY = bottomPosition.height - (originPositopn.top + originPositopn.height)\n }\n if (originPositopn.width - moveX < minWidth) {\n moveX = originPositopn.width - minWidth\n }\n if (originPositopn.height + moveY < minHeight) {\n moveY = minHeight - originPositopn.height\n }\n targetWidth = originPositopn.width - moveX\n targetHeight = originPositopn.height + moveY\n targetLeft = originPositopn.left + moveX\n targetTop = originPositopn.top\n }\n else if (type === OperateResizeHandlers.RIGHT_BOTTOM) {\n if (originPositopn.left + originPositopn.width + moveX > bottomPosition.width) {\n moveX = bottomPosition.width - (originPositopn.left + originPositopn.width)\n }\n if (originPositopn.top + originPositopn.height + moveY > bottomPosition.height) {\n moveY = bottomPosition.height - (originPositopn.top + originPositopn.height)\n }\n if (originPositopn.width + moveX < minWidth) {\n moveX = minWidth - originPositopn.width\n }\n if (originPositopn.height + moveY < minHeight) {\n moveY = minHeight - originPositopn.height\n }\n targetWidth = originPositopn.width + moveX\n targetHeight = originPositopn.height + moveY\n targetLeft = originPositopn.left\n targetTop = originPositopn.top\n }\n else if (type === OperateResizeHandlers.TOP) {\n if (originPositopn.top + moveY < 0) {\n moveY = -originPositopn.top\n }\n if (originPositopn.height - moveY < minHeight) {\n moveY = originPositopn.height - minHeight\n }\n targetWidth = originPositopn.width\n targetHeight = originPositopn.height - moveY\n targetLeft = originPositopn.left\n targetTop = originPositopn.top + moveY\n }\n else if (type === OperateResizeHandlers.BOTTOM) {\n if (originPositopn.top + originPositopn.height + moveY > bottomPosition.height) {\n moveY = bottomPosition.height - (originPositopn.top + originPositopn.height)\n }\n if (originPositopn.height + moveY < minHeight) {\n moveY = minHeight - originPositopn.height\n }\n targetWidth = originPositopn.width\n targetHeight = originPositopn.height + moveY\n targetLeft = originPositopn.left\n targetTop = originPositopn.top\n }\n else if (type === OperateResizeHandlers.LEFT) {\n if (originPositopn.left + moveX < 0) {\n moveX = -originPositopn.left\n }\n if (originPositopn.width - moveX < minWidth) {\n moveX = originPositopn.width - minWidth\n }\n targetWidth = originPositopn.width - moveX\n targetHeight = originPositopn.height\n targetLeft = originPositopn.left + moveX\n targetTop = originPositopn.top\n }\n else {\n if (originPositopn.left + originPositopn.width + moveX > bottomPosition.width) {\n moveX = bottomPosition.width - (originPositopn.left + originPositopn.width)\n }\n if (originPositopn.width + moveX < minWidth) {\n moveX = minWidth - originPositopn.width\n }\n targetHeight = originPositopn.height\n targetWidth = originPositopn.width + moveX\n targetLeft = originPositopn.left\n targetTop = originPositopn.top\n }\n\n topImgWrapperPosition.value = {\n left: targetLeft,\n top: targetTop,\n width: targetWidth,\n height: targetHeight,\n }\n }\n\n document.onmouseup = () => {\n isMouseDown = false\n document.onmousemove = null\n document.onmouseup = null\n\n updateRange()\n\n setTimeout(() => isSettingClipRange.value = false, 0)\n }\n}\n\nconst rotateClassName = computed(() => {\n const prefix = 'rotate-'\n const rotate = props.rotate\n if (rotate > -22.5 && rotate <= 22.5) return prefix + 0\n else if (rotate > 22.5 && rotate <= 67.5) return prefix + 45\n else if (rotate > 67.5 && rotate <= 112.5) return prefix + 90\n else if (rotate > 112.5 && rotate <= 157.5) return prefix + 135\n else if (rotate > 157.5 || rotate <= -157.5) return prefix + 0\n else if (rotate > -157.5 && rotate <= -112.5) return prefix + 45\n else if (rotate > -112.5 && rotate <= -67.5) return prefix + 90\n else if (rotate > -67.5 && rotate <= -22.5) return prefix + 135\n return prefix + 0\n})\n\nconst cornerPoint = [\n OperateResizeHandlers.LEFT_TOP,\n OperateResizeHandlers.RIGHT_TOP,\n OperateResizeHandlers.LEFT_BOTTOM,\n OperateResizeHandlers.RIGHT_BOTTOM,\n]\nconst edgePoints = [\n OperateResizeHandlers.TOP,\n OperateResizeHandlers.BOTTOM,\n OperateResizeHandlers.LEFT,\n OperateResizeHandlers.RIGHT,\n]\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_click_outside = _resolveDirective(\"click-outside\")!\n\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"image-clip-handler\",\n style: _normalizeStyle(clipWrapperPositionStyle.value)\n }, [\n _createElementVNode(\"img\", {\n class: \"bottom-img\",\n src: _ctx.src,\n draggable: false,\n alt: \"\",\n style: _normalizeStyle(bottomImgPositionStyle.value)\n }, null, 12, _hoisted_1),\n _createElementVNode(\"div\", {\n class: \"top-image-content\",\n style: _normalizeStyle({\n ...topImgWrapperPositionStyle.value,\n clipPath: _ctx.clipPath,\n })\n }, [\n _createElementVNode(\"img\", {\n class: \"top-img\",\n src: _ctx.src,\n draggable: false,\n alt: \"\",\n style: _normalizeStyle(topImgPositionStyle.value)\n }, null, 12, _hoisted_2)\n ], 4),\n _createElementVNode(\"div\", {\n class: \"operate\",\n style: _normalizeStyle(topImgWrapperPositionStyle.value),\n onMousedown: _cache[0] || (_cache[0] = _withModifiers($event => moveClipRange($event), [\"stop\"]))\n }, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(cornerPoint, (point) => {\n return _createElementVNode(\"div\", {\n class: _normalizeClass(['clip-point', point, rotateClassName.value]),\n key: point,\n onMousedown: _withModifiers($event => scaleClipRange($event, point), [\"stop\"])\n }, _hoisted_5, 42, _hoisted_3)\n }), 64)),\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(edgePoints, (point) => {\n return _createElementVNode(\"div\", {\n class: _normalizeClass(['clip-point', point, rotateClassName.value]),\n key: point,\n onMousedown: _withModifiers($event => scaleClipRange($event, point), [\"stop\"])\n }, _hoisted_8, 42, _hoisted_6)\n }), 64))\n ], 36)\n ], 4)), [\n [_directive_click_outside, handleClip]\n ])\n}\n}\n\n})","\n\n\n\n","import script from \"./ImageClipHandler.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ImageClipHandler.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ImageClipHandler.vue?vue&type=style&index=0&id=5984406b&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5984406b\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createVNode as _createVNode, withModifiers as _withModifiers, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, resolveDirective as _resolveDirective, withDirectives as _withDirectives, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1156b3e1\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"src\"]\n\nimport { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { ImageElementClip, PPTImageElement } from '@/types/slides'\nimport type { ImageClipedEmitData } from '@/types/edit'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\nimport useElementShadow from '@/views/components/element/hooks/useElementShadow'\nimport useElementFlip from '@/views/components/element/hooks/useElementFlip'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\nimport useClipImage from './useClipImage'\nimport useFilter from './useFilter'\n\nimport ImageOutline from './ImageOutline/index.vue'\nimport ImageClipHandler from './ImageClipHandler.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {},\n selectElement: { type: Function },\n contextmenus: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst mainStore = useMainStore()\nconst slidesStore = useSlidesStore()\nconst { clipingImageElementId } = storeToRefs(mainStore)\n\nconst isCliping = computed(() => clipingImageElementId.value === props.elementInfo.id)\n\nconst { addHistorySnapshot } = useHistorySnapshot()\n\nconst shadow = computed(() => props.elementInfo.shadow)\nconst { shadowStyle } = useElementShadow(shadow)\n\nconst flipH = computed(() => props.elementInfo.flipH)\nconst flipV = computed(() => props.elementInfo.flipV)\nconst { flipStyle } = useElementFlip(flipH, flipV)\n\nconst clip = computed(() => props.elementInfo.clip)\nconst { clipShape, imgPosition } = useClipImage(clip)\n\nconst filters = computed(() => props.elementInfo.filters)\nconst { filter } = useFilter(filters)\n\nconst handleSelectElement = (e: MouseEvent | TouchEvent) => {\n if (props.elementInfo.lock) return\n e.stopPropagation()\n props.selectElement(e, props.elementInfo)\n}\n\nconst handleClip = (data: ImageClipedEmitData | null) => {\n mainStore.setClipingImageElementId('')\n \n if (!data) return\n\n const { range, position } = data\n const originClip: ImageElementClip = props.elementInfo.clip || { shape: 'rect', range: [[0, 0], [100, 100]] }\n\n const left = props.elementInfo.left + position.left\n const top = props.elementInfo.top + position.top\n const width = props.elementInfo.width + position.width\n const height = props.elementInfo.height + position.height\n\n let centerOffsetX = 0\n let centerOffsetY = 0\n\n if (props.elementInfo.rotate) {\n const centerX = (left + width / 2) - (props.elementInfo.left + props.elementInfo.width / 2)\n const centerY = -((top + height / 2) - (props.elementInfo.top + props.elementInfo.height / 2))\n\n const radian = -props.elementInfo.rotate * Math.PI / 180\n\n const rotatedCenterX = centerX * Math.cos(radian) - centerY * Math.sin(radian)\n const rotatedCenterY = centerX * Math.sin(radian) + centerY * Math.cos(radian)\n\n centerOffsetX = rotatedCenterX - centerX\n centerOffsetY = -(rotatedCenterY - centerY)\n }\n\n const _props = {\n clip: { ...originClip, range },\n left: left + centerOffsetX,\n top: top + centerOffsetY,\n width,\n height,\n }\n slidesStore.updateElement({ id: props.elementInfo.id, props: _props })\n \n addHistorySnapshot()\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"editable-element-image\", { 'lock': _ctx.elementInfo.lock }]),\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n (isCliping.value)\n ? (_openBlock(), _createBlock(ImageClipHandler, {\n key: 0,\n src: _ctx.elementInfo.src,\n clipData: _ctx.elementInfo.clip,\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n top: _ctx.elementInfo.top,\n left: _ctx.elementInfo.left,\n rotate: _ctx.elementInfo.rotate,\n clipPath: _unref(clipShape).style,\n onClip: _cache[0] || (_cache[0] = range => handleClip(range))\n }, null, 8, [\"src\", \"clipData\", \"width\", \"height\", \"top\", \"left\", \"rotate\", \"clipPath\"]))\n : _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"element-content\",\n style: _normalizeStyle({\n filter: _unref(shadowStyle) ? `drop-shadow(${_unref(shadowStyle)})` : '',\n transform: _unref(flipStyle),\n }),\n onMousedown: _cache[2] || (_cache[2] = $event => handleSelectElement($event)),\n onTouchstart: _cache[3] || (_cache[3] = $event => handleSelectElement($event))\n }, [\n _createVNode(ImageOutline, { elementInfo: _ctx.elementInfo }, null, 8, [\"elementInfo\"]),\n _createElementVNode(\"div\", {\n class: \"image-content\",\n style: _normalizeStyle({ clipPath: _unref(clipShape).style })\n }, [\n _createElementVNode(\"img\", {\n src: _ctx.elementInfo.src,\n draggable: false,\n style: _normalizeStyle({\n top: _unref(imgPosition).top,\n left: _unref(imgPosition).left,\n width: _unref(imgPosition).width,\n height: _unref(imgPosition).height,\n filter: _unref(filter),\n }),\n onDragstart: _cache[1] || (_cache[1] = _withModifiers(() => {}, [\"prevent\"])),\n alt: \"\"\n }, null, 44, _hoisted_1),\n (_ctx.elementInfo.colorMask)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"color-mask\",\n style: _normalizeStyle({\n backgroundColor: _ctx.elementInfo.colorMask,\n })\n }, null, 4))\n : _createCommentVNode(\"\", true)\n ], 4)\n ], 36)), [\n [_directive_contextmenu, _ctx.contextmenus]\n ])\n ], 4)\n ], 6))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=1156b3e1&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1156b3e1\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-efb76626\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\"]\nconst _hoisted_2 = [\"d\", \"stroke\", \"stroke-width\", \"stroke-dasharray\"]\n\nimport { toRef } from 'vue'\nimport type { PPTElementOutline } from '@/types/slides'\n\nimport useElementOutline from '@/views/components/element/hooks/useElementOutline'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ElementOutline',\n props: {\n width: {},\n height: {},\n outline: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst {\n outlineWidth,\n outlineColor,\n strokeDashArray,\n} = useElementOutline(toRef(props, 'outline'))\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.outline)\n ? (_openBlock(), _createElementBlock(\"svg\", {\n key: 0,\n class: \"element-outline\",\n overflow: \"visible\",\n width: _ctx.width,\n height: _ctx.height\n }, [\n _createElementVNode(\"path\", {\n \"vector-effect\": \"non-scaling-stroke\",\n \"stroke-linecap\": \"butt\",\n \"stroke-miterlimit\": \"8\",\n fill: \"transparent\",\n d: `M0,0 L${_ctx.width},0 L${_ctx.width},${_ctx.height} L0,${_ctx.height} Z`,\n stroke: _unref(outlineColor),\n \"stroke-width\": _unref(outlineWidth),\n \"stroke-dasharray\": _unref(strokeDashArray)\n }, null, 8, _hoisted_2)\n ], 8, _hoisted_1))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","\n\n\n\n","import script from \"./ElementOutline.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ElementOutline.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ElementOutline.vue?vue&type=style&index=0&id=efb76626&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-efb76626\"]])\n\nexport default __exports__","import { splitListItem, liftListItem, sinkListItem } from 'prosemirror-schema-list'\nimport type { Schema } from 'prosemirror-model'\nimport { undo, redo } from 'prosemirror-history'\nimport { undoInputRule } from 'prosemirror-inputrules'\nimport type { Command } from 'prosemirror-state'\nimport {\n toggleMark,\n selectParentNode,\n joinUp,\n joinDown,\n chainCommands,\n newlineInCode,\n createParagraphNear,\n liftEmptyBlock,\n splitBlockKeepMarks,\n} from 'prosemirror-commands'\n\ninterface Keys {\n [key: string]: Command\n}\n\nexport const buildKeymap = (schema: Schema) => {\n const keys: Keys = {}\n const bind = (key: string, cmd: Command) => keys[key] = cmd\n\n bind('Alt-ArrowUp', joinUp)\n bind('Alt-ArrowDown', joinDown)\n bind('Mod-z', undo)\n bind('Mod-y', redo)\n bind('Backspace', undoInputRule)\n bind('Escape', selectParentNode)\n bind('Mod-b', toggleMark(schema.marks.strong))\n bind('Mod-i', toggleMark(schema.marks.em))\n bind('Mod-u', toggleMark(schema.marks.underline))\n bind('Mod-d', toggleMark(schema.marks.strikethrough))\n bind('Mod-e', toggleMark(schema.marks.code))\n bind('Mod-;', toggleMark(schema.marks.superscript))\n bind(`Mod-'`, toggleMark(schema.marks.subscript))\n bind('Enter', chainCommands(\n splitListItem(schema.nodes.list_item),\n newlineInCode,\n createParagraphNear,\n liftEmptyBlock,\n splitBlockKeepMarks,\n ))\n bind('Mod-[', liftListItem(schema.nodes.list_item))\n bind('Mod-]', sinkListItem(schema.nodes.list_item))\n bind('Tab', sinkListItem(schema.nodes.list_item))\n\n return keys\n}","import type { NodeType, Schema } from 'prosemirror-model'\nimport {\n inputRules,\n wrappingInputRule,\n smartQuotes,\n emDash,\n ellipsis,\n InputRule,\n} from 'prosemirror-inputrules'\n\nconst blockQuoteRule = (nodeType: NodeType) => wrappingInputRule(/^\\s*>\\s$/, nodeType)\n\nconst orderedListRule = (nodeType: NodeType) => (\n wrappingInputRule(\n /^(\\d+)\\.\\s$/, \n nodeType, \n match => ({order: +match[1]}),\n (match, node) => node.childCount + node.attrs.order === +match[1],\n )\n)\n\nconst bulletListRule = (nodeType: NodeType) => wrappingInputRule(/^\\s*([-+*])\\s$/, nodeType)\n\nconst codeRule = () => {\n const inputRegex = /(?:^|\\s)((?:`)((?:[^`]+))(?:`))$/\n \n return new InputRule(inputRegex, (state, match, start, end) => {\n const { schema } = state\n\n const tr = state.tr.insertText(`${match[2]} `, start, end)\n const mark = schema.marks.code.create()\n\n return tr.addMark(start, start + match[2].length, mark)\n })\n}\n\nconst linkRule = () => {\n const urlRegEx = /(?:https?:\\/\\/)?[\\w-]+(?:\\.[\\w-]+)+\\.?(?:\\d+)?(?:\\/\\S*)?$/\n \n return new InputRule(urlRegEx, (state, match, start, end) => {\n const { schema } = state\n\n const tr = state.tr.insertText(match[0], start, end)\n const mark = schema.marks.link.create({ href: match[0], title: match[0] })\n\n return tr.addMark(start, start + match[0].length, mark)\n })\n}\n\nexport const buildInputRules = (schema: Schema) => {\n const rules = [\n ...smartQuotes,\n ellipsis,\n emDash,\n ]\n rules.push(blockQuoteRule(schema.nodes.blockquote))\n rules.push(orderedListRule(schema.nodes.ordered_list))\n rules.push(bulletListRule(schema.nodes.bullet_list))\n rules.push(codeRule())\n rules.push(linkRule())\n\n return inputRules({ rules })\n}","import { Plugin } from 'prosemirror-state'\nimport { Decoration, DecorationSet } from 'prosemirror-view'\nimport type { Node } from 'prosemirror-model'\n\nconst isEmptyParagraph = (node: Node) => {\n return node.type.name === 'paragraph' && node.nodeSize === 2\n}\n\nexport const placeholderPlugin = (placeholder: string) => {\n return new Plugin({\n props: {\n decorations(state) {\n const { $from } = state.selection\n if (isEmptyParagraph($from.parent)) {\n const decoration = Decoration.node($from.before(), $from.after(), {\n 'data-placeholder': placeholder,\n })\n return DecorationSet.create(state.doc, [decoration])\n }\n },\n },\n })\n}","import { keymap } from 'prosemirror-keymap'\nimport type { Schema } from 'prosemirror-model'\nimport { history } from 'prosemirror-history'\nimport { baseKeymap } from 'prosemirror-commands'\nimport { dropCursor } from 'prosemirror-dropcursor'\nimport { gapCursor } from 'prosemirror-gapcursor'\n\nimport { buildKeymap } from './keymap'\nimport { buildInputRules } from './inputrules'\nimport { placeholderPlugin } from './placeholder'\n\nexport interface PluginOptions {\n placeholder?: string\n}\n\nexport const buildPlugins = (schema: Schema, options?: PluginOptions) => {\n const placeholder = options?.placeholder\n\n const plugins = [\n buildInputRules(schema),\n keymap(buildKeymap(schema)),\n keymap(baseKeymap),\n dropCursor(),\n gapCursor(),\n history(),\n ]\n\n if (placeholder) plugins.push(placeholderPlugin(placeholder))\n\n return plugins\n}","import { nodes } from 'prosemirror-schema-basic'\nimport type { Node, NodeSpec } from 'prosemirror-model'\nimport { listItem as _listItem } from 'prosemirror-schema-list'\n\ninterface Attr {\n [key: string]: number | string\n}\n\nconst orderedList: NodeSpec = {\n attrs: {\n order: {\n default: 1,\n },\n listStyleType: {\n default: '',\n },\n fontsize: {\n default: '',\n },\n color: {\n default: '',\n },\n },\n content: 'list_item+',\n group: 'block',\n parseDOM: [\n { \n tag: 'ol', \n getAttrs: dom => {\n const order = ((dom as HTMLElement).hasAttribute('start') ? (dom as HTMLElement).getAttribute('start') : 1) || 1\n const attr: Attr = { order: +order }\n\n const { listStyleType, fontSize, color } = (dom as HTMLElement).style\n if (listStyleType) attr['listStyleType'] = listStyleType\n if (fontSize) attr['fontsize'] = fontSize\n if (color) attr['color'] = color\n\n return attr\n }\n }\n ],\n toDOM: (node: Node) => {\n const { order, listStyleType, fontsize, color } = node.attrs\n let style = ''\n if (listStyleType) style += `list-style-type: ${listStyleType};`\n if (fontsize) style += `font-size: ${fontsize};`\n if (color) style += `color: ${color};`\n\n const attr: Attr = { style }\n if (order !== 1) attr['start'] = order\n\n\n return ['ol', attr, 0]\n },\n}\n\nconst bulletList: NodeSpec = {\n attrs: {\n listStyleType: {\n default: '',\n },\n fontsize: {\n default: '',\n },\n color: {\n default: '',\n },\n },\n content: 'list_item+',\n group: 'block',\n parseDOM: [\n {\n tag: 'ul',\n getAttrs: dom => {\n const attr: Attr = {}\n\n const { listStyleType, fontSize, color } = (dom as HTMLElement).style\n if (listStyleType) attr['listStyleType'] = listStyleType\n if (fontSize) attr['fontsize'] = fontSize\n if (color) attr['color'] = color\n\n return attr\n }\n }\n ],\n toDOM: (node: Node) => {\n const { listStyleType, fontsize, color } = node.attrs\n let style = ''\n if (listStyleType) style += `list-style-type: ${listStyleType};`\n if (fontsize) style += `font-size: ${fontsize};`\n if (color) style += `color: ${color};`\n\n return ['ul', { style }, 0]\n },\n}\n\nconst listItem: NodeSpec = {\n ..._listItem,\n content: 'paragraph block*',\n group: 'block',\n}\n\nconst paragraph: NodeSpec = {\n attrs: {\n align: {\n default: '',\n },\n indent: {\n default: 0,\n },\n textIndent: {\n default: 0,\n },\n },\n content: 'inline*',\n group: 'block',\n parseDOM: [\n {\n tag: 'p',\n getAttrs: dom => {\n const { textAlign, textIndent } = (dom as HTMLElement).style\n\n let align = (dom as HTMLElement).getAttribute('align') || textAlign || ''\n align = /(left|right|center|justify)/.test(align) ? align : ''\n\n let textIndentLevel = 0\n if (textIndent) {\n if (/em/.test(textIndent)) {\n textIndentLevel = parseInt(textIndent)\n }\n else if (/px/.test(textIndent)) {\n textIndentLevel = Math.floor(parseInt(textIndent) / 20)\n if (!textIndentLevel) textIndentLevel = 1\n }\n }\n\n const indent = +((dom as HTMLElement).getAttribute('data-indent') || 0)\n \n return { align, indent, textIndent: textIndentLevel }\n }\n },\n {\n tag: 'img',\n ignore: true,\n },\n {\n tag: 'pre',\n skip: true,\n },\n ],\n toDOM: (node: Node) => {\n const { align, indent, textIndent } = node.attrs\n let style = ''\n if (align && align !== 'left') style += `text-align: ${align};`\n if (textIndent) style += `text-indent: ${textIndent * 20}px;`\n\n const attr: Attr = { style }\n if (indent) attr['data-indent'] = indent\n\n return ['p', attr, 0]\n },\n}\n\nconst {\n doc,\n blockquote,\n text,\n} = nodes\n\nexport default {\n doc,\n paragraph,\n blockquote,\n text,\n 'ordered_list': orderedList,\n 'bullet_list': bulletList,\n 'list_item': listItem,\n}\n","import { marks } from 'prosemirror-schema-basic'\nimport type { MarkSpec } from 'prosemirror-model'\n\nconst subscript: MarkSpec = {\n excludes: 'subscript',\n parseDOM: [\n { tag: 'sub' },\n {\n style: 'vertical-align',\n getAttrs: value => value === 'sub' && null\n },\n ],\n toDOM: () => ['sub', 0],\n}\n\nconst superscript: MarkSpec = {\n excludes: 'superscript',\n parseDOM: [\n { tag: 'sup' },\n {\n style: 'vertical-align',\n getAttrs: value => value === 'super' && null\n },\n ],\n toDOM: () => ['sup', 0],\n}\n\nconst strikethrough: MarkSpec = {\n parseDOM: [\n { tag: 'strike' },\n {\n style: 'text-decoration',\n getAttrs: value => value === 'line-through' && null\n },\n {\n style: 'text-decoration-line',\n getAttrs: value => value === 'line-through' && null\n },\n ],\n toDOM: () => ['span', { style: 'text-decoration-line: line-through;' }, 0],\n}\n\nconst underline: MarkSpec = {\n parseDOM: [\n { tag: 'u' },\n {\n style: 'text-decoration',\n getAttrs: value => value === 'underline' && null\n },\n {\n style: 'text-decoration-line',\n getAttrs: value => value === 'underline' && null\n },\n ],\n toDOM: () => ['span', { style: 'text-decoration: underline;' }, 0],\n}\n\nconst forecolor: MarkSpec = {\n attrs: {\n color: {},\n },\n inline: true,\n group: 'inline',\n parseDOM: [\n {\n style: 'color',\n getAttrs: color => color ? { color } : {}\n },\n ],\n toDOM: mark => {\n const { color } = mark.attrs\n let style = ''\n if (color) style += `color: ${color};`\n return ['span', { style }, 0]\n },\n}\n\nconst backcolor: MarkSpec = {\n attrs: {\n backcolor: {},\n },\n inline: true,\n group: 'inline',\n parseDOM: [\n {\n style: 'background-color',\n getAttrs: backcolor => backcolor ? { backcolor } : {}\n },\n ],\n toDOM: mark => {\n const { backcolor } = mark.attrs\n let style = ''\n if (backcolor) style += `background-color: ${backcolor};`\n return ['span', { style }, 0]\n },\n}\n\nconst fontsize: MarkSpec = {\n attrs: {\n fontsize: {},\n },\n inline: true,\n group: 'inline',\n parseDOM: [\n {\n style: 'font-size',\n getAttrs: fontsize => fontsize ? { fontsize } : {}\n },\n ],\n toDOM: mark => {\n const { fontsize } = mark.attrs\n let style = ''\n if (fontsize) style += `font-size: ${fontsize};`\n return ['span', { style }, 0]\n },\n}\n\nconst fontname: MarkSpec = {\n attrs: {\n fontname: {},\n },\n inline: true,\n group: 'inline',\n parseDOM: [\n {\n style: 'font-family',\n getAttrs: fontname => {\n return { fontname: fontname && typeof fontname === 'string' ? fontname.replace(/[\\\"\\']/g, '') : '' }\n }\n },\n ],\n toDOM: mark => {\n const { fontname } = mark.attrs\n let style = ''\n if (fontname) style += `font-family: ${fontname};`\n return ['span', { style }, 0]\n },\n}\n\nconst link: MarkSpec = {\n attrs: {\n href: {},\n title: { default: null },\n target: { default: '_blank' },\n },\n inclusive: false,\n parseDOM: [\n {\n tag: 'a[href]',\n getAttrs: dom => {\n const href = (dom as HTMLElement).getAttribute('href')\n const title = (dom as HTMLElement).getAttribute('title')\n return { href, title }\n }\n },\n ],\n toDOM: node => ['a', node.attrs, 0],\n}\n\nconst mark: MarkSpec = {\n attrs: {\n index: { default: null },\n },\n parseDOM: [\n {\n tag: 'mark',\n getAttrs: dom => {\n const index = (dom as HTMLElement).dataset.index\n return { index }\n }\n },\n ],\n toDOM: node => ['mark', { 'data-index': node.attrs.index }, 0],\n}\n\nconst { em, strong, code } = marks\n\nexport default {\n em,\n strong,\n fontsize,\n fontname,\n code,\n forecolor,\n backcolor,\n subscript,\n superscript,\n strikethrough,\n underline,\n link,\n mark,\n}","import nodes from './nodes'\nimport marks from './marks'\n\nexport const schemaNodes = nodes\nexport const schemaMarks = marks\n","import { EditorState } from 'prosemirror-state'\nimport { type DirectEditorProps, EditorView } from 'prosemirror-view'\nimport { Schema, DOMParser } from 'prosemirror-model'\nimport { buildPlugins, type PluginOptions } from './plugins/index'\nimport { schemaNodes, schemaMarks } from './schema/index'\n\nconst schema = new Schema({\n nodes: schemaNodes,\n marks: schemaMarks,\n})\n\nexport const createDocument = (content: string) => {\n const htmlString = `
    ${content}
    `\n const parser = new window.DOMParser()\n const element = parser.parseFromString(htmlString, 'text/html').body.firstElementChild\n return DOMParser.fromSchema(schema).parse(element as Element)\n}\n\nexport const initProsemirrorEditor = (\n dom: Element,\n content: string,\n props: Omit,\n pluginOptions?: PluginOptions,\n) => {\n return new EditorView(dom, {\n state: EditorState.create({\n doc: createDocument(content),\n plugins: buildPlugins(schema, pluginOptions),\n }),\n ...props,\n })\n}","import mitt, { type Emitter } from 'mitt'\n\nexport const enum EmitterEvents {\n RICH_TEXT_COMMAND = 'RICH_TEXT_COMMAND',\n SYNC_RICH_TEXT_ATTRS_TO_STORE = 'SYNC_RICH_TEXT_ATTRS_TO_STORE',\n OPEN_CHART_DATA_EDITOR = 'OPEN_CHART_DATA_EDITOR',\n OPEN_LATEX_EDITOR = 'OPEN_LATEX_EDITOR',\n}\n\nexport interface RichTextAction {\n command: string\n value?: string\n}\n\nexport interface RichTextCommand {\n target?: string\n action: RichTextAction | RichTextAction[]\n}\n\ntype Events = {\n [EmitterEvents.RICH_TEXT_COMMAND]: RichTextCommand\n [EmitterEvents.SYNC_RICH_TEXT_ATTRS_TO_STORE]: void\n [EmitterEvents.OPEN_CHART_DATA_EDITOR]: void\n [EmitterEvents.OPEN_LATEX_EDITOR]: void\n} \n\nconst emitter: Emitter = mitt()\n\nexport default emitter","import type { Schema, Node, NodeType } from 'prosemirror-model'\nimport type { Transaction } from 'prosemirror-state'\nimport type { EditorView } from 'prosemirror-view'\n\nexport const setTextAlign = (tr: Transaction, schema: Schema, alignment: string) => {\n const { selection, doc } = tr\n if (!selection || !doc) return tr\n\n const { from, to } = selection\n const { nodes } = schema\n\n const blockquote = nodes.blockquote\n const listItem = nodes.list_item\n const paragraph = nodes.paragraph\n\n interface Task {\n node: Node\n pos: number\n nodeType: NodeType\n }\n\n const tasks: Task[] = []\n alignment = alignment || ''\n\n const allowedNodeTypes = new Set([blockquote, listItem, paragraph])\n\n doc.nodesBetween(from, to, (node, pos) => {\n const nodeType = node.type\n const align = node.attrs.align || ''\n if (align !== alignment && allowedNodeTypes.has(nodeType)) {\n tasks.push({\n node,\n pos,\n nodeType,\n })\n }\n return true\n })\n\n if (!tasks.length) return tr\n\n tasks.forEach(task => {\n const { node, pos, nodeType } = task\n let { attrs } = node\n if (alignment) attrs = { ...attrs, align: alignment }\n else attrs = { ...attrs, align: null }\n tr = tr.setNodeMarkup(pos, nodeType, attrs, node.marks)\n })\n\n return tr\n}\n\nexport const alignmentCommand = (view: EditorView, alignment: string) => {\n const { state } = view\n const { schema, selection } = state\n const tr = setTextAlign(\n state.tr.setSelection(selection),\n schema,\n alignment,\n )\n view.dispatch(tr)\n}","import type { Schema } from 'prosemirror-model'\nimport { type Transaction, TextSelection, AllSelection } from 'prosemirror-state'\nimport type { EditorView } from 'prosemirror-view'\nimport { isList } from '../utils'\n\ntype IndentKey = 'indent' | 'textIndent'\n\nfunction setNodeIndentMarkup(tr: Transaction, pos: number, delta: number, indentKey: IndentKey): Transaction {\n if (!tr.doc) return tr\n\n const node = tr.doc.nodeAt(pos)\n if (!node) return tr\n\n const minIndent = 0\n const maxIndent = 8\n\n let indent = (node.attrs[indentKey] || 0) + delta\n if (indent < minIndent) indent = minIndent\n if (indent > maxIndent) indent = maxIndent\n\n if (indent === node.attrs[indentKey]) return tr\n\n const nodeAttrs = {\n ...node.attrs,\n [indentKey]: indent,\n }\n\n return tr.setNodeMarkup(pos, node.type, nodeAttrs, node.marks)\n}\n\nconst setIndent = (tr: Transaction, schema: Schema, delta: number, indentKey: IndentKey): Transaction => {\n const { selection, doc } = tr\n if (!selection || !doc) return tr\n\n if (!(selection instanceof TextSelection || selection instanceof AllSelection)) return tr\n\n const { from, to } = selection\n\n doc.nodesBetween(from, to, (node, pos) => {\n const nodeType = node.type\n\n if (nodeType.name === 'paragraph' || nodeType.name === 'blockquote') {\n tr = setNodeIndentMarkup(tr, pos, delta, indentKey)\n return false\n } \n else if (isList(node, schema)) return false\n return true\n })\n\n return tr\n}\n\nexport const indentCommand = (view: EditorView, delta: number) => {\n const { state } = view\n const { schema, selection } = state\n\n const tr = setIndent(\n state.tr.setSelection(selection),\n schema,\n delta,\n 'indent',\n )\n if (tr.docChanged) {\n view.dispatch(tr)\n return true\n }\n\n return false\n}\n\nexport const textIndentCommand = (view: EditorView, delta: number) => {\n const { state } = view\n const { schema, selection } = state\n\n const tr = setIndent(\n state.tr.setSelection(selection),\n schema,\n delta,\n 'textIndent',\n )\n if (tr.docChanged) {\n view.dispatch(tr)\n return true\n }\n\n return false\n}","import { wrapInList, liftListItem } from 'prosemirror-schema-list'\nimport type { Node, NodeType } from 'prosemirror-model'\nimport type { Transaction, EditorState } from 'prosemirror-state'\nimport { findParentNode, isList } from '../utils'\n\ninterface Attr {\n [key: string]: number | string\n}\n\ninterface TextStyleAttr {\n color?: string\n fontsize?: string\n}\n\nexport const toggleList = (listType: NodeType, itemType: NodeType, listStyleType: string, textStyleAttr: TextStyleAttr = {}) => {\n return (state: EditorState, dispatch: (tr: Transaction) => void) => {\n const { schema, selection } = state\n const { $from, $to } = selection\n const range = $from.blockRange($to)\n\n if (!range) return false\n\n const parentList = findParentNode((node: Node) => isList(node, schema))(selection)\n\n if (range.depth >= 1 && parentList && range.depth - parentList.depth <= 1) {\n if (parentList.node.type === listType && !listStyleType) {\n return liftListItem(itemType)(state, dispatch)\n }\n\n if (isList(parentList.node, schema) && listType.validContent(parentList.node.content)) {\n const { tr } = state\n\n const nodeAttrs: Attr = {\n ...parentList.node.attrs,\n ...textStyleAttr,\n }\n if (listStyleType) nodeAttrs.listStyleType = listStyleType\n\n tr.setNodeMarkup(parentList.pos, listType, nodeAttrs)\n\n if (dispatch) dispatch(tr)\n\n return false\n }\n }\n\n const nodeAttrs: Attr = {\n ...textStyleAttr,\n }\n if (listStyleType) nodeAttrs.listStyleType = listStyleType\n\n return wrapInList(listType, nodeAttrs)(state, dispatch)\n }\n}","import type { EditorView } from 'prosemirror-view'\nimport { isList } from '../utils'\n\ninterface Style {\n [key: string]: string\n}\n\nexport const setListStyle = (view: EditorView, style: Style | Style[]) => {\n const { state } = view\n const { schema, selection } = state\n const tr = state.tr.setSelection(selection)\n \n const { doc } = tr\n if (!doc) return tr\n\n const { from, to } = selection\n doc.nodesBetween(from, to, (node, pos) => {\n if (isList(node, schema)) {\n if (from - 3 <= pos && to + 3 >= pos + node.nodeSize) {\n const styles = Array.isArray(style) ? style : [style]\n\n for (const style of styles) {\n tr.setNodeAttribute(pos, style.key, style.value)\n }\n }\n }\n return false\n })\n\n view.dispatch(tr)\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { computed, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { debounce } from 'lodash'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport type { EditorView } from 'prosemirror-view'\nimport { toggleMark, wrapIn, lift } from 'prosemirror-commands'\nimport { initProsemirrorEditor, createDocument } from '@/utils/prosemirror'\nimport { isActiveOfParentNodeType, findNodesWithSameMark, getTextAttrs, autoSelectAll, addMark, markActive, getFontsize } from '@/utils/prosemirror/utils'\nimport emitter, { EmitterEvents, type RichTextAction, type RichTextCommand } from '@/utils/emitter'\nimport { alignmentCommand } from '@/utils/prosemirror/commands/setTextAlign'\nimport { indentCommand, textIndentCommand } from '@/utils/prosemirror/commands/setTextIndent'\nimport { toggleList } from '@/utils/prosemirror/commands/toggleList'\nimport { setListStyle } from '@/utils/prosemirror/commands/setListStyle'\nimport type { TextFormatPainterKeys } from '@/types/edit'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ProsemirrorEditor',\n props: {\n elementId: {},\n defaultColor: {},\n defaultFontName: {},\n value: {},\n editable: { type: Boolean, default: false },\n autoFocus: { type: Boolean, default: false }\n },\n emits: [\"update\", \"focus\", \"blur\", \"mousedown\"],\n setup(__props: any, { expose: __expose, emit: __emit }) {\n\nconst props = __props\n\nconst emit = __emit\n\nconst mainStore = useMainStore()\nconst { handleElementId, textFormatPainter, richTextAttrs } = storeToRefs(mainStore)\n\nconst editorViewRef = ref()\nlet editorView: EditorView\n\n// 富文本的各种交互事件监听:\n// 聚焦时取消全局快捷键事件\n// 输入文字时同步数据到vuex\n// 点击鼠标和键盘时同步富文本状态到工具栏\nconst handleInput = debounce(function() {\n emit('update', editorView.dom.innerHTML)\n}, 300, { trailing: true })\n\nconst handleFocus = () => {\n mainStore.setDisableHotkeysState(true)\n emit('focus')\n}\n\nconst handleBlur = () => {\n mainStore.setDisableHotkeysState(false)\n emit('blur')\n}\n\nconst handleClick = debounce(function() {\n const attrs = getTextAttrs(editorView, {\n color: props.defaultColor,\n fontname: props.defaultFontName,\n })\n mainStore.setRichtextAttrs(attrs)\n}, 30, { trailing: true })\n\nconst handleKeydown = () => {\n handleInput()\n handleClick()\n}\n\n// 将富文本内容同步到DOM\nconst textContent = computed(() => props.value)\nwatch(textContent, () => {\n if (!editorView) return\n if (editorView.hasFocus()) return\n\n const { doc, tr } = editorView.state\n editorView.dispatch(tr.replaceRangeWith(0, doc.content.size, createDocument(textContent.value)))\n})\n\n// 打开/关闭编辑器的编辑模式\nwatch(() => props.editable, () => {\n editorView.setProps({ editable: () => props.editable })\n})\n\n// 暴露 focus 方法\nconst focus = () => editorView.focus()\n__expose({ focus })\n\n// 执行富文本命令(可以是一个或多个)\n// 部分命令在执行前先判断当前选区是否为空,如果选区为空先进行全选操作\nconst execCommand = ({ target, action }: RichTextCommand) => {\n if (!target && handleElementId.value !== props.elementId) return\n if (target && target !== props.elementId) return\n\n const actions = ('command' in action) ? [action] : action\n\n for (const item of actions) {\n if (item.command === 'fontname' && item.value) {\n const mark = editorView.state.schema.marks.fontname.create({ fontname: item.value })\n autoSelectAll(editorView)\n addMark(editorView, mark)\n }\n else if (item.command === 'fontsize' && item.value) {\n const mark = editorView.state.schema.marks.fontsize.create({ fontsize: item.value })\n autoSelectAll(editorView)\n addMark(editorView, mark)\n setListStyle(editorView, { key: 'fontsize', value: item.value })\n }\n else if (item.command === 'fontsize-add') {\n const step = item.value ? +item.value : 2\n autoSelectAll(editorView)\n const fontsize = getFontsize(editorView) + step + 'px'\n const mark = editorView.state.schema.marks.fontsize.create({ fontsize })\n addMark(editorView, mark)\n setListStyle(editorView, { key: 'fontsize', value: fontsize })\n }\n else if (item.command === 'fontsize-reduce') {\n const step = item.value ? +item.value : 2\n autoSelectAll(editorView)\n let fontsize = getFontsize(editorView) - step\n if (fontsize < 12) fontsize = 12\n const mark = editorView.state.schema.marks.fontsize.create({ fontsize: fontsize + 'px' })\n addMark(editorView, mark)\n setListStyle(editorView, { key: 'fontsize', value: fontsize + 'px' })\n }\n else if (item.command === 'color' && item.value) {\n const mark = editorView.state.schema.marks.forecolor.create({ color: item.value })\n autoSelectAll(editorView)\n addMark(editorView, mark)\n setListStyle(editorView, { key: 'color', value: item.value })\n }\n else if (item.command === 'backcolor' && item.value) {\n const mark = editorView.state.schema.marks.backcolor.create({ backcolor: item.value })\n autoSelectAll(editorView)\n addMark(editorView, mark)\n }\n else if (item.command === 'bold') {\n autoSelectAll(editorView)\n toggleMark(editorView.state.schema.marks.strong)(editorView.state, editorView.dispatch)\n }\n else if (item.command === 'em') {\n autoSelectAll(editorView)\n toggleMark(editorView.state.schema.marks.em)(editorView.state, editorView.dispatch)\n }\n else if (item.command === 'underline') {\n autoSelectAll(editorView)\n toggleMark(editorView.state.schema.marks.underline)(editorView.state, editorView.dispatch)\n }\n else if (item.command === 'strikethrough') {\n autoSelectAll(editorView)\n toggleMark(editorView.state.schema.marks.strikethrough)(editorView.state, editorView.dispatch)\n }\n else if (item.command === 'subscript') {\n toggleMark(editorView.state.schema.marks.subscript)(editorView.state, editorView.dispatch)\n }\n else if (item.command === 'superscript') {\n toggleMark(editorView.state.schema.marks.superscript)(editorView.state, editorView.dispatch)\n }\n else if (item.command === 'blockquote') {\n const isBlockquote = isActiveOfParentNodeType('blockquote', editorView.state)\n if (isBlockquote) lift(editorView.state, editorView.dispatch)\n else wrapIn(editorView.state.schema.nodes.blockquote)(editorView.state, editorView.dispatch)\n }\n else if (item.command === 'code') {\n toggleMark(editorView.state.schema.marks.code)(editorView.state, editorView.dispatch)\n }\n else if (item.command === 'align' && item.value) {\n alignmentCommand(editorView, item.value)\n }\n else if (item.command === 'indent' && item.value) {\n indentCommand(editorView, +item.value)\n }\n else if (item.command === 'textIndent' && item.value) {\n textIndentCommand(editorView, +item.value)\n }\n else if (item.command === 'bulletList') {\n const listStyleType = item.value || ''\n const { bullet_list: bulletList, list_item: listItem } = editorView.state.schema.nodes\n const textStyle = {\n color: richTextAttrs.value.color,\n fontsize: richTextAttrs.value.fontsize\n }\n toggleList(bulletList, listItem, listStyleType, textStyle)(editorView.state, editorView.dispatch)\n }\n else if (item.command === 'orderedList') {\n const listStyleType = item.value || ''\n const { ordered_list: orderedList, list_item: listItem } = editorView.state.schema.nodes\n const textStyle = {\n color: richTextAttrs.value.color,\n fontsize: richTextAttrs.value.fontsize\n }\n toggleList(orderedList, listItem, listStyleType, textStyle)(editorView.state, editorView.dispatch)\n }\n else if (item.command === 'clear') {\n autoSelectAll(editorView)\n const { $from, $to } = editorView.state.selection\n editorView.dispatch(editorView.state.tr.removeMark($from.pos, $to.pos))\n setListStyle(editorView, [\n { key: 'fontsize', value: '' },\n { key: 'color', value: '' },\n ])\n }\n else if (item.command === 'link') {\n const markType = editorView.state.schema.marks.link\n const { from, to } = editorView.state.selection\n const result = findNodesWithSameMark(editorView.state.doc, from, to, markType)\n if (result) {\n if (item.value) {\n const mark = editorView.state.schema.marks.link.create({ href: item.value, title: item.value })\n addMark(editorView, mark, { from: result.from.pos, to: result.to.pos + 1 })\n }\n else editorView.dispatch(editorView.state.tr.removeMark(result.from.pos, result.to.pos + 1, markType))\n }\n else if (markActive(editorView.state, markType)) {\n if (item.value) {\n const mark = editorView.state.schema.marks.link.create({ href: item.value, title: item.value })\n addMark(editorView, mark)\n }\n else toggleMark(markType)(editorView.state, editorView.dispatch)\n }\n else if (item.value) {\n autoSelectAll(editorView)\n toggleMark(markType, { href: item.value, title: item.value })(editorView.state, editorView.dispatch)\n }\n }\n else if (item.command === 'insert' && item.value) {\n editorView.dispatch(editorView.state.tr.insertText(item.value))\n }\n }\n\n editorView.focus()\n handleInput()\n handleClick()\n}\n\n// 鼠标抬起时,执行格式刷命令\nconst handleMouseup = () => {\n if (!textFormatPainter.value) return\n const { keep, ...newProps } = textFormatPainter.value\n\n const actions: RichTextAction[] = [{ command: 'clear' }]\n for (const key of Object.keys(newProps) as TextFormatPainterKeys[]) {\n const command = key\n const value = textFormatPainter.value[key]\n if (value === true) actions.push({ command })\n else if (value) actions.push({ command, value })\n }\n execCommand({ action: actions })\n if (!keep) mainStore.setTextFormatPainter(null)\n}\n\n// Prosemirror编辑器的初始化和卸载\nonMounted(() => {\n editorView = initProsemirrorEditor((editorViewRef.value as Element), textContent.value, {\n handleDOMEvents: {\n focus: handleFocus,\n blur: handleBlur,\n keydown: handleKeydown,\n click: handleClick,\n mouseup: handleMouseup,\n },\n editable: () => props.editable,\n })\n if (props.autoFocus) editorView.focus()\n})\nonUnmounted(() => {\n editorView && editorView.destroy()\n})\n\nconst syncAttrsToStore = () => {\n if (handleElementId.value !== props.elementId) return\n handleClick()\n}\n\nemitter.on(EmitterEvents.RICH_TEXT_COMMAND, execCommand)\nemitter.on(EmitterEvents.SYNC_RICH_TEXT_ATTRS_TO_STORE, syncAttrsToStore)\nonUnmounted(() => {\n emitter.off(EmitterEvents.RICH_TEXT_COMMAND, execCommand)\n emitter.off(EmitterEvents.SYNC_RICH_TEXT_ATTRS_TO_STORE, syncAttrsToStore)\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"prosemirror-editor\", { 'format-painter': _unref(textFormatPainter) }]),\n ref_key: \"editorViewRef\",\n ref: editorViewRef,\n onMousedown: _cache[0] || (_cache[0] = $event => emit('mousedown', $event))\n }, null, 34))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./ProsemirrorEditor.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ProsemirrorEditor.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ProsemirrorEditor.vue?vue&type=style&index=0&id=653f533c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-653f533c\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2a1e49ba\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"drag-handler top\" }, null, -1))\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"drag-handler bottom\" }, null, -1))\n\nimport { computed, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { debounce } from 'lodash'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTTextElement } from '@/types/slides'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\nimport useElementShadow from '@/views/components/element/hooks/useElementShadow'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\nimport ElementOutline from '@/views/components/element/ElementOutline.vue'\nimport ProsemirrorEditor from '@/views/components/element/ProsemirrorEditor.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {},\n selectElement: { type: Function },\n contextmenus: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst mainStore = useMainStore()\nconst slidesStore = useSlidesStore()\nconst { handleElementId, isScaling } = storeToRefs(mainStore)\n\nconst { addHistorySnapshot } = useHistorySnapshot()\n\nconst elementRef = ref()\n\nconst shadow = computed(() => props.elementInfo.shadow)\nconst { shadowStyle } = useElementShadow(shadow)\n\nconst handleSelectElement = (e: MouseEvent | TouchEvent, canMove = true) => {\n if (props.elementInfo.lock) return\n e.stopPropagation()\n\n props.selectElement(e, props.elementInfo, canMove)\n}\n\n// 监听文本元素的尺寸变化,当高度变化时,更新高度到vuex\n// 如果高度变化时正处在缩放操作中,则等待缩放操作结束后再更新\nconst realHeightCache = ref(-1)\nconst realWidthCache = ref(-1)\n\nwatch(isScaling, () => {\n if (handleElementId.value !== props.elementInfo.id) return\n\n if (!isScaling.value) {\n if (!props.elementInfo.vertical && realHeightCache.value !== -1) {\n slidesStore.updateElement({\n id: props.elementInfo.id,\n props: { height: realHeightCache.value },\n })\n realHeightCache.value = -1\n }\n if (props.elementInfo.vertical && realWidthCache.value !== -1) {\n slidesStore.updateElement({\n id: props.elementInfo.id,\n props: { width: realWidthCache.value },\n })\n realWidthCache.value = -1\n }\n }\n})\n\nconst updateTextElementHeight = (entries: ResizeObserverEntry[]) => {\n const contentRect = entries[0].contentRect\n if (!elementRef.value) return\n\n const realHeight = contentRect.height + 20\n const realWidth = contentRect.width + 20\n\n if (!props.elementInfo.vertical && props.elementInfo.height !== realHeight) {\n if (!isScaling.value) {\n slidesStore.updateElement({\n id: props.elementInfo.id,\n props: { height: realHeight },\n })\n }\n else realHeightCache.value = realHeight\n }\n if (props.elementInfo.vertical && props.elementInfo.width !== realWidth) {\n if (!isScaling.value) {\n slidesStore.updateElement({\n id: props.elementInfo.id,\n props: { width: realWidth },\n })\n }\n else realWidthCache.value = realWidth\n }\n}\nconst resizeObserver = new ResizeObserver(updateTextElementHeight)\n\nonMounted(() => {\n if (elementRef.value) resizeObserver.observe(elementRef.value)\n})\nonUnmounted(() => {\n if (elementRef.value) resizeObserver.unobserve(elementRef.value)\n})\n\nconst updateContent = (content: string) => {\n slidesStore.updateElement({\n id: props.elementInfo.id,\n props: { content },\n })\n \n addHistorySnapshot()\n}\n\nconst checkEmptyText = debounce(function() {\n const pureText = props.elementInfo.content.replaceAll(/<[^>]+>/g, '')\n if (!pureText) slidesStore.deleteElement(props.elementInfo.id)\n}, 300, { trailing: true })\n\nconst isHandleElement = computed(() => handleElementId.value === props.elementInfo.id)\nwatch(isHandleElement, () => {\n if (!isHandleElement.value) checkEmptyText()\n})\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"editable-element-text\", { 'lock': _ctx.elementInfo.lock }]),\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"element-content\",\n ref_key: \"elementRef\",\n ref: elementRef,\n style: _normalizeStyle({\n width: _ctx.elementInfo.vertical ? 'auto' : _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.vertical ? _ctx.elementInfo.height + 'px' : 'auto',\n backgroundColor: _ctx.elementInfo.fill,\n opacity: _ctx.elementInfo.opacity,\n textShadow: _unref(shadowStyle),\n lineHeight: _ctx.elementInfo.lineHeight,\n letterSpacing: (_ctx.elementInfo.wordSpace || 0) + 'px',\n color: _ctx.elementInfo.defaultColor,\n fontFamily: _ctx.elementInfo.defaultFontName,\n writingMode: _ctx.elementInfo.vertical ? 'vertical-rl' : 'horizontal-tb',\n }),\n onMousedown: _cache[2] || (_cache[2] = $event => handleSelectElement($event)),\n onTouchstart: _cache[3] || (_cache[3] = $event => handleSelectElement($event))\n }, [\n _createVNode(ElementOutline, {\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n outline: _ctx.elementInfo.outline\n }, null, 8, [\"width\", \"height\", \"outline\"]),\n _createVNode(ProsemirrorEditor, {\n class: \"text\",\n elementId: _ctx.elementInfo.id,\n defaultColor: _ctx.elementInfo.defaultColor,\n defaultFontName: _ctx.elementInfo.defaultFontName,\n editable: !_ctx.elementInfo.lock,\n value: _ctx.elementInfo.content,\n style: _normalizeStyle({\n '--paragraphSpace': `${_ctx.elementInfo.paragraphSpace === undefined ? 5 : _ctx.elementInfo.paragraphSpace}px`,\n }),\n onUpdate: _cache[0] || (_cache[0] = value => updateContent(value)),\n onMousedown: _cache[1] || (_cache[1] = $event => handleSelectElement($event, false))\n }, null, 8, [\"elementId\", \"defaultColor\", \"defaultFontName\", \"editable\", \"value\", \"style\"]),\n _hoisted_1,\n _hoisted_2\n ], 36)), [\n [_directive_contextmenu, _ctx.contextmenus]\n ])\n ], 4)\n ], 6))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=2a1e49ba&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2a1e49ba\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = [\"id\", \"gradientTransform\"]\nconst _hoisted_2 = [\"stop-color\"]\nconst _hoisted_3 = [\"stop-color\"]\nconst _hoisted_4 = [\"id\"]\nconst _hoisted_5 = [\"stop-color\"]\nconst _hoisted_6 = [\"stop-color\"]\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'GradientDefs',\n props: {\n id: {},\n type: {},\n color1: {},\n color2: {},\n rotate: { default: 0 }\n },\n setup(__props: any) {\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.type === 'linear')\n ? (_openBlock(), _createElementBlock(\"linearGradient\", {\n key: 0,\n id: _ctx.id,\n x1: \"0%\",\n y1: \"0%\",\n x2: \"100%\",\n y2: \"0%\",\n gradientTransform: `rotate(${_ctx.rotate},0.5,0.5)`\n }, [\n _createElementVNode(\"stop\", {\n offset: \"0%\",\n \"stop-color\": _ctx.color1\n }, null, 8, _hoisted_2),\n _createElementVNode(\"stop\", {\n offset: \"100%\",\n \"stop-color\": _ctx.color2\n }, null, 8, _hoisted_3)\n ], 8, _hoisted_1))\n : (_openBlock(), _createElementBlock(\"radialGradient\", {\n key: 1,\n id: _ctx.id\n }, [\n _createElementVNode(\"stop\", {\n offset: \"0%\",\n \"stop-color\": _ctx.color1\n }, null, 8, _hoisted_5),\n _createElementVNode(\"stop\", {\n offset: \"100%\",\n \"stop-color\": _ctx.color2\n }, null, 8, _hoisted_6)\n ], 8, _hoisted_4))\n}\n}\n\n})","import script from \"./GradientDefs.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./GradientDefs.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, createBlock as _createBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5d988de2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\"]\nconst _hoisted_2 = { key: 0 }\nconst _hoisted_3 = [\"transform\"]\nconst _hoisted_4 = [\"d\", \"fill\", \"stroke\", \"stroke-width\", \"stroke-dasharray\"]\n\nimport { computed, nextTick, ref, watch } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTShapeElement, ShapeText } from '@/types/slides'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\nimport useElementOutline from '@/views/components/element/hooks/useElementOutline'\nimport useElementShadow from '@/views/components/element/hooks/useElementShadow'\nimport useElementFlip from '@/views/components/element/hooks/useElementFlip'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\nimport GradientDefs from './GradientDefs.vue'\nimport ProsemirrorEditor from '@/views/components/element/ProsemirrorEditor.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {},\n selectElement: { type: Function },\n contextmenus: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst mainStore = useMainStore()\nconst slidesStore = useSlidesStore()\nconst { handleElementId, shapeFormatPainter } = storeToRefs(mainStore)\n\nconst { addHistorySnapshot } = useHistorySnapshot()\n\nconst handleSelectElement = (e: MouseEvent | TouchEvent, canMove = true) => {\n if (props.elementInfo.lock) return\n e.stopPropagation()\n\n props.selectElement(e, props.elementInfo, canMove)\n}\n\nconst execFormatPainter = () => {\n if (!shapeFormatPainter.value) return\n const { keep, ...newProps } = shapeFormatPainter.value\n\n slidesStore.updateElement({\n id: props.elementInfo.id, \n props: newProps,\n })\n \n addHistorySnapshot()\n if (!keep) mainStore.setShapeFormatPainter(null)\n}\n\nconst outline = computed(() => props.elementInfo.outline)\nconst { outlineWidth, outlineColor, strokeDashArray } = useElementOutline(outline)\n\nconst shadow = computed(() => props.elementInfo.shadow)\nconst { shadowStyle } = useElementShadow(shadow)\n\nconst flipH = computed(() => props.elementInfo.flipH)\nconst flipV = computed(() => props.elementInfo.flipV)\nconst { flipStyle } = useElementFlip(flipH, flipV)\n\nconst editable = ref(false)\n\nwatch(handleElementId, () => {\n if (handleElementId.value !== props.elementInfo.id) {\n if (editable.value) editable.value = false\n }\n})\n\nconst text = computed(() => {\n const defaultText: ShapeText = {\n content: '',\n defaultFontName: '微软雅黑',\n defaultColor: '#000',\n align: 'middle',\n }\n if (!props.elementInfo.text) return defaultText\n\n return props.elementInfo.text\n})\n\nconst updateText = (content: string) => {\n const _text = { ...text.value, content }\n slidesStore.updateElement({\n id: props.elementInfo.id, \n props: { text: _text },\n })\n \n addHistorySnapshot()\n}\n\nconst checkEmptyText = () => {\n if (!props.elementInfo.text) return\n\n const pureText = props.elementInfo.text.content.replaceAll(/<[^>]+>/g, '')\n if (!pureText) {\n slidesStore.removeElementProps({ id: props.elementInfo.id, propName: 'text' })\n addHistorySnapshot()\n }\n}\n\nconst prosemirrorEditorRef = ref>()\nconst startEdit = () => {\n editable.value = true\n nextTick(() => prosemirrorEditorRef.value && prosemirrorEditorRef.value.focus())\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"editable-element-shape\", {\n 'lock': _ctx.elementInfo.lock,\n 'format-painter': _unref(shapeFormatPainter),\n }]),\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"element-content\",\n style: _normalizeStyle({\n opacity: _ctx.elementInfo.opacity,\n filter: _unref(shadowStyle) ? `drop-shadow(${_unref(shadowStyle)})` : '',\n transform: _unref(flipStyle),\n color: text.value.defaultColor,\n fontFamily: text.value.defaultFontName,\n }),\n onMousedown: _cache[3] || (_cache[3] = $event => handleSelectElement($event)),\n onMouseup: _cache[4] || (_cache[4] = ($event: any) => (execFormatPainter())),\n onTouchstart: _cache[5] || (_cache[5] = $event => handleSelectElement($event)),\n onDblclick: _cache[6] || (_cache[6] = ($event: any) => (startEdit()))\n }, [\n (_openBlock(), _createElementBlock(\"svg\", {\n overflow: \"visible\",\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height\n }, [\n (_ctx.elementInfo.gradient)\n ? (_openBlock(), _createElementBlock(\"defs\", _hoisted_2, [\n _createVNode(GradientDefs, {\n id: `editabel-gradient-${_ctx.elementInfo.id}`,\n type: _ctx.elementInfo.gradient.type,\n color1: _ctx.elementInfo.gradient.color[0],\n color2: _ctx.elementInfo.gradient.color[1],\n rotate: _ctx.elementInfo.gradient.rotate\n }, null, 8, [\"id\", \"type\", \"color1\", \"color2\", \"rotate\"])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"g\", {\n transform: `scale(${_ctx.elementInfo.width / _ctx.elementInfo.viewBox[0]}, ${_ctx.elementInfo.height / _ctx.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`\n }, [\n _createElementVNode(\"path\", {\n class: \"shape-path\",\n \"vector-effect\": \"non-scaling-stroke\",\n \"stroke-linecap\": \"butt\",\n \"stroke-miterlimit\": \"8\",\n d: _ctx.elementInfo.path,\n fill: _ctx.elementInfo.gradient ? `url(#editabel-gradient-${_ctx.elementInfo.id})` : _ctx.elementInfo.fill,\n stroke: _unref(outlineColor),\n \"stroke-width\": _unref(outlineWidth),\n \"stroke-dasharray\": _unref(strokeDashArray)\n }, null, 8, _hoisted_4)\n ], 8, _hoisted_3)\n ], 8, _hoisted_1)),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"shape-text\", [text.value.align, { 'editable': editable.value || text.value.content }]])\n }, [\n (editable.value || text.value.content)\n ? (_openBlock(), _createBlock(ProsemirrorEditor, {\n key: 0,\n ref_key: \"prosemirrorEditorRef\",\n ref: prosemirrorEditorRef,\n elementId: _ctx.elementInfo.id,\n defaultColor: text.value.defaultColor,\n defaultFontName: text.value.defaultFontName,\n editable: !_ctx.elementInfo.lock,\n value: text.value.content,\n onUpdate: _cache[0] || (_cache[0] = value => updateText(value)),\n onBlur: _cache[1] || (_cache[1] = ($event: any) => (checkEmptyText())),\n onMousedown: _cache[2] || (_cache[2] = $event => handleSelectElement($event, false))\n }, null, 8, [\"elementId\", \"defaultColor\", \"defaultFontName\", \"editable\", \"value\"]))\n : _createCommentVNode(\"\", true)\n ], 2)\n ], 36)), [\n [_directive_contextmenu, _ctx.contextmenus]\n ])\n ], 4)\n ], 6))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=5d988de2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5d988de2\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"id\", \"markerWidth\", \"markerHeight\", \"refX\", \"refY\"]\nconst _hoisted_2 = [\"d\", \"fill\", \"transform\"]\n\nimport { computed } from 'vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'LinePointMarker',\n props: {\n id: {},\n position: {},\n type: {},\n baseSize: {},\n color: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst pathMap = {\n dot: 'm0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z',\n arrow: 'M0,0 L10,5 0,10 Z',\n}\nconst rotateMap: { [key: string]: number } = {\n 'arrow-start': 180,\n 'arrow-end': 0,\n}\n\nconst path = computed(() => pathMap[props.type])\nconst rotate = computed(() => rotateMap[`${props.type}-${props.position}`] || 0)\nconst size = computed(() => props.baseSize < 2 ? 2 : props.baseSize)\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"marker\", {\n id: `${_ctx.id}-${_ctx.type}-${_ctx.position}`,\n markerUnits: \"userSpaceOnUse\",\n orient: \"auto\",\n markerWidth: size.value * 3,\n markerHeight: size.value * 3,\n refX: size.value * 1.5,\n refY: size.value * 1.5\n }, [\n _createElementVNode(\"path\", {\n d: path.value,\n fill: _ctx.color,\n transform: `scale(${size.value * 0.3}, ${size.value * 0.3}) rotate(${rotate.value}, 5, 5)`\n }, null, 8, _hoisted_2)\n ], 8, _hoisted_1))\n}\n}\n\n})","\n\n","import script from \"./LinePointMarker.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./LinePointMarker.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-16512454\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\"]\nconst _hoisted_2 = [\"d\", \"stroke\", \"stroke-width\", \"stroke-dasharray\", \"marker-start\", \"marker-end\"]\nconst _hoisted_3 = [\"d\"]\n\nimport { computed } from 'vue'\nimport type { PPTLineElement } from '@/types/slides'\nimport { getLineElementPath } from '@/utils/element'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\nimport useElementShadow from '@/views/components/element/hooks/useElementShadow'\n\nimport LinePointMarker from './LinePointMarker.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {},\n selectElement: { type: Function },\n contextmenus: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst handleSelectElement = (e: MouseEvent | TouchEvent) => {\n if (props.elementInfo.lock) return\n e.stopPropagation()\n\n props.selectElement(e, props.elementInfo)\n}\n\nconst shadow = computed(() => props.elementInfo.shadow)\nconst { shadowStyle } = useElementShadow(shadow)\n\nconst svgWidth = computed(() => {\n const width = Math.abs(props.elementInfo.start[0] - props.elementInfo.end[0])\n return width < 24 ? 24 : width\n})\nconst svgHeight = computed(() => {\n const height = Math.abs(props.elementInfo.start[1] - props.elementInfo.end[1])\n return height < 24 ? 24 : height\n})\n\nconst lineDashArray = computed(() => {\n if (props.elementInfo.style !== 'dashed') return '0 0'\n const size = props.elementInfo.width\n return size <= 8 ? `${size * 5} ${size * 2.5}` : `${size * 5} ${size * 1.5}`\n})\n\nconst path = computed(() => {\n return getLineElementPath(props.elementInfo)\n})\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"editable-element-shape\", { 'lock': _ctx.elementInfo.lock }]),\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"element-content\",\n style: _normalizeStyle({ filter: _unref(shadowStyle) ? `drop-shadow(${_unref(shadowStyle)})` : '' }),\n onMousedown: _cache[0] || (_cache[0] = $event => handleSelectElement($event)),\n onTouchstart: _cache[1] || (_cache[1] = $event => handleSelectElement($event))\n }, [\n (_openBlock(), _createElementBlock(\"svg\", {\n overflow: \"visible\",\n width: svgWidth.value,\n height: svgHeight.value\n }, [\n _createElementVNode(\"defs\", null, [\n (_ctx.elementInfo.points[0])\n ? (_openBlock(), _createBlock(LinePointMarker, {\n key: 0,\n id: _ctx.elementInfo.id,\n position: \"start\",\n type: _ctx.elementInfo.points[0],\n color: _ctx.elementInfo.color,\n baseSize: _ctx.elementInfo.width\n }, null, 8, [\"id\", \"type\", \"color\", \"baseSize\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.elementInfo.points[1])\n ? (_openBlock(), _createBlock(LinePointMarker, {\n key: 1,\n id: _ctx.elementInfo.id,\n position: \"end\",\n type: _ctx.elementInfo.points[1],\n color: _ctx.elementInfo.color,\n baseSize: _ctx.elementInfo.width\n }, null, 8, [\"id\", \"type\", \"color\", \"baseSize\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"path\", {\n class: \"line-point\",\n d: path.value,\n stroke: _ctx.elementInfo.color,\n \"stroke-width\": _ctx.elementInfo.width,\n \"stroke-dasharray\": lineDashArray.value,\n fill: \"none\",\n \"marker-start\": _ctx.elementInfo.points[0] ? `url(#${_ctx.elementInfo.id}-${_ctx.elementInfo.points[0]}-start)` : '',\n \"marker-end\": _ctx.elementInfo.points[1] ? `url(#${_ctx.elementInfo.id}-${_ctx.elementInfo.points[1]}-end)` : ''\n }, null, 8, _hoisted_2),\n _withDirectives(_createElementVNode(\"path\", {\n class: \"line-path\",\n d: path.value,\n stroke: \"transparent\",\n \"stroke-width\": \"20\",\n fill: \"none\"\n }, null, 8, _hoisted_3), [\n [_directive_contextmenu, _ctx.contextmenus]\n ])\n ], 8, _hoisted_1))\n ], 36)\n ], 6))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=16512454&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-16512454\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode } from \"vue\"\n\nimport { computed, inject, onMounted, ref, watch } from 'vue'\nimport tinycolor from 'tinycolor2'\nimport { BarChart, LineChart, PieChart } from 'chartist'\nimport type { ChartData, ChartOptions, ChartType } from '@/types/slides'\nimport { injectKeySlideScale } from '@/types/injectKey'\n\nimport 'chartist/dist/index.css'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Chart',\n props: {\n width: {},\n height: {},\n type: {},\n data: {},\n themeColor: {},\n legends: {},\n options: {},\n gridColor: {},\n legend: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst chartRef = ref()\nconst slideScale = inject(injectKeySlideScale) || ref(1)\n\nlet chart: LineChart | BarChart | PieChart | undefined\n\nconst chartHeight = computed(() => {\n if (props.legend) return props.height - 20\n return props.height\n})\n\nconst getPieChartData = () => ({ ...props.data, series: props.data.series[0] })\n\nconst getOptions = () => {\n const propsOptopns = props.options || {}\n return {\n ...propsOptopns,\n width: props.width * slideScale.value,\n height: chartHeight.value * slideScale.value,\n }\n}\n\nconst renderChart = () => {\n if (!chartRef.value) return\n\n const options = getOptions()\n if (props.type === 'bar') chart = new BarChart(chartRef.value, props.data, options)\n if (props.type === 'line') chart = new LineChart(chartRef.value, props.data, options)\n if (props.type === 'pie') chart = new PieChart(chartRef.value, getPieChartData(), options)\n}\n\nconst updateChart = () => {\n if (!chart) {\n renderChart()\n return\n }\n const options = getOptions()\n const data = props.type === 'pie' ? getPieChartData() : props.data\n chart.update(data, options)\n}\n\nwatch([\n () => props.width,\n () => props.height,\n () => props.data,\n () => props.options,\n slideScale,\n], updateChart)\n\nonMounted(renderChart)\n\nconst themeColors = computed(() => {\n let colors: string[] = []\n if (props.themeColor.length >= 10) colors = props.themeColor\n else if (props.themeColor.length === 1) colors = tinycolor(props.themeColor[0]).analogous(10).map(color => color.toRgbString())\n else {\n const len = props.themeColor.length\n const supplement = tinycolor(props.themeColor[len - 1]).analogous(10 + 1 - len).map(color => color.toRgbString())\n colors = [...props.themeColor.slice(0, len - 1), ...supplement]\n }\n return colors\n})\n\n// 更新主题配色:\n// 如果当前所设置的主题色数小于10,剩余部分获取最后一个主题色的相近颜色作为配色\nconst updateTheme = () => {\n if (!chartRef.value) return\n\n for (let i = 0; i < 10; i++) {\n chartRef.value.style.setProperty(`--theme-color-${i + 1}`, themeColors.value[i])\n }\n}\n\nwatch(themeColors, updateTheme)\nonMounted(updateTheme)\n\n// 更新网格颜色,包括坐标的文字部分\nconst updateGridColor = () => {\n if (!chartRef.value) return\n if (props.gridColor) chartRef.value.style.setProperty(`--grid-color`, props.gridColor)\n}\n\nwatch(() => props.gridColor, updateGridColor)\nonMounted(updateGridColor)\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"chart\",\n style: _normalizeStyle({ flexDirection: _ctx.legend === 'top' ? 'column-reverse' : 'column' })\n }, [\n _createElementVNode(\"div\", {\n class: \"chart-content\",\n ref_key: \"chartRef\",\n ref: chartRef,\n style: _normalizeStyle({\n width: _ctx.width + 'px',\n height: chartHeight.value + 'px',\n transform: `scale(${1 / _unref(slideScale)})`,\n })\n }, null, 4),\n (_ctx.legend)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"legends\",\n style: _normalizeStyle({ transform: `scale(${1 / _unref(slideScale)})` })\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.legends, (legend, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"legend\",\n key: index,\n style: _normalizeStyle({ color: _ctx.gridColor })\n }, [\n _createElementVNode(\"div\", {\n class: \"block\",\n style: _normalizeStyle({ backgroundColor: themeColors.value[index] })\n }, null, 4),\n _createTextVNode(\" \" + _toDisplayString(legend), 1)\n ], 4))\n }), 128))\n ], 4))\n : _createCommentVNode(\"\", true)\n ], 4))\n}\n}\n\n})","\n\n\n\n\n\n","import script from \"./Chart.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Chart.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Chart.vue?vue&type=style&index=0&id=ae2a96a6&lang=scss&scoped=true\"\nimport \"./Chart.vue?vue&type=style&index=1&id=ae2a96a6&lang=scss\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-ae2a96a6\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from \"vue\"\n\nimport type { PPTChartElement } from '@/types/slides'\r\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\r\nimport emitter, { EmitterEvents } from '@/utils/emitter'\r\n\r\nimport ElementOutline from '@/views/components/element/ElementOutline.vue'\r\nimport Chart from './Chart.vue'\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {},\n selectElement: { type: Function },\n contextmenus: { type: Function }\n },\n setup(__props: any) {\n\r\nconst props = __props\r\n\r\nconst handleSelectElement = (e: MouseEvent | TouchEvent) => {\r\n if (props.elementInfo.lock) return\r\n e.stopPropagation()\r\n\r\n props.selectElement(e, props.elementInfo)\r\n}\r\n\r\nconst openDataEditor = () => {\r\n emitter.emit(EmitterEvents.OPEN_CHART_DATA_EDITOR)\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"editable-element-chart\", { 'lock': _ctx.elementInfo.lock }]),\n style: _normalizeStyle({\r\n top: _ctx.elementInfo.top + 'px',\r\n left: _ctx.elementInfo.left + 'px',\r\n width: _ctx.elementInfo.width + 'px',\r\n height: _ctx.elementInfo.height + 'px',\r\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"element-content\",\n style: _normalizeStyle({\r\n backgroundColor: _ctx.elementInfo.fill,\r\n }),\n onMousedown: _cache[0] || (_cache[0] = $event => handleSelectElement($event)),\n onTouchstart: _cache[1] || (_cache[1] = $event => handleSelectElement($event)),\n onDblclick: _cache[2] || (_cache[2] = ($event: any) => (openDataEditor()))\n }, [\n _createVNode(ElementOutline, {\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n outline: _ctx.elementInfo.outline\n }, null, 8, [\"width\", \"height\", \"outline\"]),\n _createVNode(Chart, {\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n type: _ctx.elementInfo.chartType,\n data: _ctx.elementInfo.data,\n options: _ctx.elementInfo.options,\n themeColor: _ctx.elementInfo.themeColor,\n gridColor: _ctx.elementInfo.gridColor,\n legends: _ctx.elementInfo.data.legends,\n legend: _ctx.elementInfo.legend || ''\n }, null, 8, [\"width\", \"height\", \"type\", \"data\", \"options\", \"themeColor\", \"gridColor\", \"legends\", \"legend\"])\n ], 36)), [\n [_directive_contextmenu, _ctx.contextmenus]\n ])\n ], 4)\n ], 6))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=6fc3de39&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6fc3de39\"]])\n\nexport default __exports__","import type { CSSProperties } from 'vue'\nimport type { TableCellStyle } from '@/types/slides'\n\n/**\n * 计算单元格文本样式\n * @param style 单元格文本样式原数据\n */\nexport const getTextStyle = (style?: TableCellStyle): CSSProperties => {\n if (!style) return {}\n const {\n bold,\n em,\n underline,\n strikethrough,\n color,\n backcolor,\n fontsize,\n fontname,\n align,\n } = style\n\n let textDecoration = `${underline ? 'underline' : ''} ${strikethrough ? 'line-through' : ''}`\n if (textDecoration === ' ') textDecoration = 'none'\n \n return {\n fontWeight: bold ? 'bold' : 'normal',\n fontStyle: em ? 'italic' : 'normal',\n textDecoration,\n color: color || '#000',\n backgroundColor: backcolor || '',\n fontSize: fontsize || '14px',\n fontFamily: fontname || '微软雅黑',\n textAlign: align || 'left',\n }\n}\n\nexport const formatText = (text: string) => {\n return text.replace(/\\n/g, '
    ').replace(/ /g, ' ')\n}","import { computed, type Ref } from 'vue'\nimport type { TableCell } from '@/types/slides'\n\n// 计算无效的单元格位置(被合并的单元格位置)集合\n\nexport default (cells: Ref) => {\n const hideCells = computed(() => {\n const hideCells = []\n \n for (let i = 0; i < cells.value.length; i++) {\n const rowCells = cells.value[i]\n\n for (let j = 0; j < rowCells.length; j++) {\n const cell = rowCells[j]\n \n if (cell.colspan > 1 || cell.rowspan > 1) {\n for (let row = i; row < i + cell.rowspan; row++) {\n for (let col = row === i ? j + 1 : j; col < j + cell.colspan; col++) {\n hideCells.push(`${row}_${col}`)\n }\n }\n }\n }\n }\n return hideCells\n })\n\n return {\n hideCells,\n }\n}","import { ref, watch, type Ref } from 'vue'\nimport type { TableTheme } from '@/types/slides'\nimport { getTableSubThemeColor } from '@/utils/element'\n\n// 通过表格的主题色计算辅助颜色\n\nexport default (theme: Ref) => {\n const subThemeColor = ref(['', ''])\n watch(() => theme.value, () => {\n if (theme.value) {\n subThemeColor.value = getTableSubThemeColor(theme.value.color)\n }\n }, { immediate: true })\n\n return {\n subThemeColor,\n }\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-7a7222ac\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"innerHTML\"]\n\nimport { onBeforeUnmount, ref, watch } from 'vue'\nimport { pasteCustomClipboardString, pasteExcelClipboardString } from '@/utils/clipboard'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CustomTextarea',\n props: {\n value: { default: '' }\n },\n emits: [\"updateValue\", \"insertExcelData\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props\n\nconst emit = __emit\n\nconst textareaRef = ref()\nconst text = ref('')\nconst isFocus = ref(false)\n\n// 自定义v-modal,同步数据\n// 当文本框聚焦时,不执行数据同步\nwatch(() => props.value, () => {\n if (isFocus.value) return\n text.value = props.value\n if (textareaRef.value) textareaRef.value.innerHTML = props.value\n}, { immediate: true })\n\nconst handleInput = () => {\n if (!textareaRef.value) return\n const text = textareaRef.value.innerHTML\n emit('updateValue', text)\n}\n\n// 聚焦时更新焦点标记,并监听粘贴事件\nconst handleFocus = () => {\n isFocus.value = true\n\n if (!textareaRef.value) return\n textareaRef.value.onpaste = (e: ClipboardEvent) => {\n e.preventDefault()\n if (!e.clipboardData) return\n\n const clipboardDataFirstItem = e.clipboardData.items[0]\n\n if (clipboardDataFirstItem && clipboardDataFirstItem.kind === 'string' && clipboardDataFirstItem.type === 'text/plain') {\n clipboardDataFirstItem.getAsString(text => {\n const clipboardData = pasteCustomClipboardString(text)\n if (typeof clipboardData === 'object') return\n \n const excelData = pasteExcelClipboardString(text)\n if (excelData) {\n emit('insertExcelData', excelData)\n if (textareaRef.value) textareaRef.value.innerHTML = excelData[0][0]\n return\n }\n\n document.execCommand('insertText', false, text)\n })\n }\n }\n}\n\n// 失焦时更新焦点标记,清除粘贴事件监听\nconst handleBlur = () => {\n isFocus.value = false\n if (textareaRef.value) textareaRef.value.onpaste = null\n}\n\n// 清除粘贴事件监听\nonBeforeUnmount(() => {\n if (textareaRef.value) textareaRef.value.onpaste = null\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"custom-textarea\",\n ref_key: \"textareaRef\",\n ref: textareaRef,\n contenteditable: true,\n onFocus: _cache[0] || (_cache[0] = ($event: any) => (handleFocus())),\n onBlur: _cache[1] || (_cache[1] = ($event: any) => (handleBlur())),\n onInput: _cache[2] || (_cache[2] = ($event: any) => (handleInput())),\n innerHTML: text.value\n }, null, 40, _hoisted_1))\n}\n}\n\n})","\n\n\n\n","import script from \"./CustomTextarea.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./CustomTextarea.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./CustomTextarea.vue?vue&type=style&index=0&id=7a7222ac&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-7a7222ac\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createCommentVNode as _createCommentVNode, unref as _unref, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, createBlock as _createBlock, vShow as _vShow, resolveDirective as _resolveDirective, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0236a619\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"handler\"\n}\nconst _hoisted_2 = [\"onMousedown\"]\nconst _hoisted_3 = [\"width\"]\nconst _hoisted_4 = [\"rowspan\", \"colspan\", \"data-cell-index\", \"onMousedown\", \"onMouseenter\"]\nconst _hoisted_5 = [\"innerHTML\"]\n\nimport { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { debounce, isEqual } from 'lodash'\nimport { storeToRefs } from 'pinia'\nimport { nanoid } from 'nanoid'\nimport { useMainStore } from '@/store'\nimport type { PPTElementOutline, TableCell, TableTheme } from '@/types/slides'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\nimport { KEYS } from '@/configs/hotkey'\nimport { getTextStyle, formatText } from './utils'\nimport useHideCells from './useHideCells'\nimport useSubThemeColor from './useSubThemeColor'\n\nimport CustomTextarea from './CustomTextarea.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'EditableTable',\n props: {\n data: {},\n width: {},\n cellMinHeight: {},\n colWidths: {},\n outline: {},\n theme: {},\n editable: { type: Boolean, default: true }\n },\n emits: [\"change\", \"changeColWidths\", \"changeSelectedCells\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props\n\nconst emit = __emit\n\nconst { canvasScale } = storeToRefs(useMainStore())\n \nconst isStartSelect = ref(false)\nconst startCell = ref([])\nconst endCell = ref([])\n\nconst tableCells = computed({\n get() {\n return props.data\n },\n set(newData) {\n emit('change', newData)\n },\n})\n\n// 主题辅助色\nconst theme = computed(() => props.theme)\nconst { subThemeColor } = useSubThemeColor(theme)\n\n// 计算表格每一列的列宽和总宽度\nconst colSizeList = ref([])\nconst totalWidth = computed(() => colSizeList.value.reduce((a, b) => a + b))\nwatch([\n () => props.colWidths,\n () => props.width,\n], () => {\n colSizeList.value = props.colWidths.map(item => item * props.width)\n}, { immediate: true })\n\n// 清除全部单元格的选中状态\n// 表格处于不可编辑状态时也需要清除\nconst removeSelectedCells = () => {\n startCell.value = []\n endCell.value = []\n}\n\nwatch(() => props.editable, () => {\n if (!props.editable) removeSelectedCells()\n})\n\n// 用于拖拽列宽的操作节点位置\nconst dragLinePosition = computed(() => {\n const dragLinePosition: number[] = []\n for (let i = 1; i < colSizeList.value.length + 1; i++) {\n const pos = colSizeList.value.slice(0, i).reduce((a, b) => (a + b))\n dragLinePosition.push(pos)\n }\n return dragLinePosition\n})\n\n// 无效的单元格位置(被合并的单元格位置)集合\nconst cells = computed(() => props.data)\nconst { hideCells } = useHideCells(cells)\n\n// 当前选中的单元格集合\nconst selectedCells = computed(() => {\n if (!startCell.value.length) return []\n const [startX, startY] = startCell.value\n\n if (!endCell.value.length) return [`${startX}_${startY}`]\n const [endX, endY] = endCell.value\n\n if (startX === endX && startY === endY) return [`${startX}_${startY}`]\n\n const selectedCells = []\n\n const minX = Math.min(startX, endX)\n const minY = Math.min(startY, endY)\n const maxX = Math.max(startX, endX)\n const maxY = Math.max(startY, endY)\n\n for (let i = 0; i < tableCells.value.length; i++) {\n const rowCells = tableCells.value[i]\n for (let j = 0; j < rowCells.length; j++) {\n if (i >= minX && i <= maxX && j >= minY && j <= maxY) selectedCells.push(`${i}_${j}`)\n }\n }\n return selectedCells\n})\n\nwatch(selectedCells, (value, oldValue) => {\n if (isEqual(value, oldValue)) return\n emit('changeSelectedCells', selectedCells.value)\n})\n\n// 当前激活的单元格:当且仅当只有一个选中单元格时,该单元格为激活的单元格\nconst activedCell = computed(() => {\n if (selectedCells.value.length > 1) return null\n return selectedCells.value[0]\n})\n\n// 设置选中单元格状态(鼠标点击或拖选)\nconst handleMouseup = () => isStartSelect.value = false\n\nconst handleCellMousedown = (e: MouseEvent, rowIndex: number, colIndex: number) => {\n if (e.button === 0) {\n endCell.value = []\n isStartSelect.value = true\n startCell.value = [rowIndex, colIndex]\n }\n}\n\nconst handleCellMouseenter = (rowIndex: number, colIndex: number) => {\n if (!isStartSelect.value) return\n endCell.value = [rowIndex, colIndex]\n}\n\nonMounted(() => {\n document.addEventListener('mouseup', handleMouseup)\n})\nonUnmounted(() => {\n document.removeEventListener('mouseup', handleMouseup)\n})\n\n// 判断某位置是否为无效单元格(被合并掉的位置)\nconst isHideCell = (rowIndex: number, colIndex: number) => hideCells.value.includes(`${rowIndex}_${colIndex}`)\n\n// 选中指定的列\nconst selectCol = (index: number) => {\n const maxRow = tableCells.value.length - 1\n startCell.value = [0, index]\n endCell.value = [maxRow, index]\n}\n\n// 选中指定的行\nconst selectRow = (index: number) => {\n const maxCol = tableCells.value[index].length - 1\n startCell.value = [index, 0]\n endCell.value = [index, maxCol]\n}\n\n// 选中全部单元格\nconst selectAll = () => {\n const maxRow = tableCells.value.length - 1\n const maxCol = tableCells.value[maxRow].length - 1\n startCell.value = [0, 0]\n endCell.value = [maxRow, maxCol]\n}\n\n// 删除一行\nconst deleteRow = (rowIndex: number) => {\n const _tableCells: TableCell[][] = JSON.parse(JSON.stringify(tableCells.value))\n\n const targetCells = tableCells.value[rowIndex]\n const hideCellsPos = []\n for (let i = 0; i < targetCells.length; i++) {\n if (isHideCell(rowIndex, i)) hideCellsPos.push(i)\n }\n \n for (const pos of hideCellsPos) {\n for (let i = rowIndex; i >= 0; i--) {\n if (!isHideCell(i, pos)) {\n _tableCells[i][pos].rowspan = _tableCells[i][pos].rowspan - 1\n break\n }\n }\n }\n\n _tableCells.splice(rowIndex, 1)\n tableCells.value = _tableCells\n}\n\n// 删除一列\nconst deleteCol = (colIndex: number) => {\n const _tableCells: TableCell[][] = JSON.parse(JSON.stringify(tableCells.value))\n\n const hideCellsPos = []\n for (let i = 0; i < tableCells.value.length; i++) {\n if (isHideCell(i, colIndex)) hideCellsPos.push(i)\n }\n\n for (const pos of hideCellsPos) {\n for (let i = colIndex; i >= 0; i--) {\n if (!isHideCell(pos, i)) {\n _tableCells[pos][i].colspan = _tableCells[pos][i].colspan - 1\n break\n }\n }\n }\n\n tableCells.value = _tableCells.map(item => {\n item.splice(colIndex, 1)\n return item\n })\n colSizeList.value.splice(colIndex, 1)\n emit('changeColWidths', colSizeList.value)\n}\n\n// 插入一行\nconst insertRow = (rowIndex: number) => {\n const _tableCells: TableCell[][] = JSON.parse(JSON.stringify(tableCells.value))\n\n const rowCells: TableCell[] = []\n for (let i = 0; i < _tableCells[0].length; i++) {\n rowCells.push({\n colspan: 1,\n rowspan: 1,\n text: '',\n id: nanoid(10),\n })\n }\n\n _tableCells.splice(rowIndex, 0, rowCells)\n tableCells.value = _tableCells\n}\n\n// 插入一列\nconst insertCol = (colIndex: number) => {\n tableCells.value = tableCells.value.map(item => {\n const cell = {\n colspan: 1,\n rowspan: 1,\n text: '',\n id: nanoid(10),\n }\n item.splice(colIndex, 0, cell)\n return item\n })\n colSizeList.value.splice(colIndex, 0, 100)\n emit('changeColWidths', colSizeList.value)\n}\n\n// 填充指定的行/列数\nconst fillTable = (rowCount: number, colCount: number) => {\n let _tableCells: TableCell[][] = JSON.parse(JSON.stringify(tableCells.value))\n const defaultCell = { colspan: 1, rowspan: 1, text: '' }\n \n if (rowCount) {\n const newRows = []\n for (let i = 0; i < rowCount; i++) {\n const rowCells: TableCell[] = []\n for (let j = 0; j < _tableCells[0].length; j++) {\n rowCells.push({\n ...defaultCell,\n id: nanoid(10),\n })\n }\n newRows.push(rowCells)\n }\n _tableCells = [..._tableCells, ...newRows]\n }\n if (colCount) {\n _tableCells = _tableCells.map(item => {\n const cells: TableCell[] = []\n for (let i = 0; i < colCount; i++) {\n const cell = {\n ...defaultCell,\n id: nanoid(10),\n }\n cells.push(cell)\n }\n return [...item, ...cells]\n })\n colSizeList.value = [...colSizeList.value, ...new Array(colCount).fill(100)]\n emit('changeColWidths', colSizeList.value)\n }\n\n tableCells.value = _tableCells\n}\n\n// 合并单元格\nconst mergeCells = () => {\n const [startX, startY] = startCell.value\n const [endX, endY] = endCell.value\n\n const minX = Math.min(startX, endX)\n const minY = Math.min(startY, endY)\n const maxX = Math.max(startX, endX)\n const maxY = Math.max(startY, endY)\n\n const _tableCells: TableCell[][] = JSON.parse(JSON.stringify(tableCells.value))\n \n _tableCells[minX][minY].rowspan = maxX - minX + 1\n _tableCells[minX][minY].colspan = maxY - minY + 1\n\n tableCells.value = _tableCells\n removeSelectedCells()\n}\n\n// 拆分单元格\nconst splitCells = (rowIndex: number, colIndex: number) => {\n const _tableCells: TableCell[][] = JSON.parse(JSON.stringify(tableCells.value))\n _tableCells[rowIndex][colIndex].rowspan = 1\n _tableCells[rowIndex][colIndex].colspan = 1\n\n tableCells.value = _tableCells\n removeSelectedCells()\n}\n\n// 鼠标拖拽调整列宽\nconst handleMousedownColHandler = (e: MouseEvent, colIndex: number) => {\n removeSelectedCells()\n let isMouseDown = true\n\n const originWidth = colSizeList.value[colIndex]\n const startPageX = e.pageX\n\n const minWidth = 50\n\n document.onmousemove = e => {\n if (!isMouseDown) return\n \n const moveX = (e.pageX - startPageX) / canvasScale.value\n const width = originWidth + moveX < minWidth ? minWidth : Math.round(originWidth + moveX)\n\n colSizeList.value[colIndex] = width\n }\n document.onmouseup = () => {\n isMouseDown = false\n document.onmousemove = null\n document.onmouseup = null\n\n emit('changeColWidths', colSizeList.value)\n }\n}\n\n// 清空选中单元格内的文字\nconst clearSelectedCellText = () => {\n const _tableCells: TableCell[][] = JSON.parse(JSON.stringify(tableCells.value))\n\n for (let i = 0; i < _tableCells.length; i++) {\n for (let j = 0; j < _tableCells[i].length; j++) {\n if (selectedCells.value.includes(`${i}_${j}`)) {\n _tableCells[i][j].text = ''\n }\n }\n }\n tableCells.value = _tableCells\n}\n\n// 将焦点移动到下一个单元格\n// 当前行右边有单元格时,焦点右移\n// 当前行右边无单元格(已处在行末),且存在下一行时,焦点移动至下一行行首\n// 当前行右边无单元格(已处在行末),且不存在下一行(已处在最后一行)时,新建一行并将焦点移动至下一行行首\nconst tabActiveCell = () => {\n const getNextCell = (i: number, j: number): [number, number] | null => {\n if (!tableCells.value[i]) return null\n if (!tableCells.value[i][j]) return getNextCell(i + 1, 0)\n if (isHideCell(i, j)) return getNextCell(i, j + 1)\n return [i, j]\n }\n\n endCell.value = []\n\n const nextRow = startCell.value[0]\n const nextCol = startCell.value[1] + 1\n\n const nextCell = getNextCell(nextRow, nextCol)\n if (!nextCell) {\n insertRow(nextRow + 1)\n startCell.value = [nextRow + 1, 0]\n }\n else startCell.value = nextCell\n\n // 移动焦点后自动聚焦文本\n nextTick(() => {\n const textRef = document.querySelector('.cell-text.active') as HTMLInputElement\n if (textRef) textRef.focus()\n })\n}\n\n// 表格快捷键监听\nconst keydownListener = (e: KeyboardEvent) => {\n if (!props.editable || !selectedCells.value.length) return\n\n const key = e.key.toUpperCase()\n if (selectedCells.value.length < 2) {\n if (key === KEYS.TAB) {\n e.preventDefault()\n tabActiveCell()\n }\n if (e.ctrlKey && key === KEYS.UP) {\n e.preventDefault()\n const rowIndex = +selectedCells.value[0].split('_')[0]\n insertRow(rowIndex)\n }\n if (e.ctrlKey && key === KEYS.DOWN) {\n e.preventDefault()\n const rowIndex = +selectedCells.value[0].split('_')[0]\n insertRow(rowIndex + 1)\n }\n if (e.ctrlKey && key === KEYS.LEFT) {\n e.preventDefault()\n const colIndex = +selectedCells.value[0].split('_')[1]\n insertCol(colIndex)\n }\n if (e.ctrlKey && key === KEYS.RIGHT) {\n e.preventDefault()\n const colIndex = +selectedCells.value[0].split('_')[1]\n insertCol(colIndex + 1)\n }\n }\n else if (key === KEYS.DELETE) {\n clearSelectedCellText()\n }\n}\n\nonMounted(() => {\n document.addEventListener('keydown', keydownListener)\n})\nonUnmounted(() => {\n document.removeEventListener('keydown', keydownListener)\n})\n\n// 单元格文字输入时更新表格数据\nconst handleInput = debounce(function(value, rowIndex, colIndex) {\n tableCells.value[rowIndex][colIndex].text = value\n emit('change', tableCells.value)\n}, 300, { trailing: true })\n\n// 插入来自Excel的数据,表格的行/列数不够时自动补足\nconst insertExcelData = (data: string[][], rowIndex: number, colIndex: number) => {\n const maxRow = data.length\n const maxCol = data[0].length\n\n let fillRowCount = 0\n let fillColCount = 0\n if (rowIndex + maxRow > tableCells.value.length) fillRowCount = rowIndex + maxRow - tableCells.value.length\n if (colIndex + maxCol > tableCells.value[0].length) fillColCount = colIndex + maxCol - tableCells.value[0].length\n if (fillRowCount || fillColCount) fillTable(fillRowCount, fillColCount)\n\n nextTick(() => {\n for (let i = 0; i < maxRow; i++) {\n for (let j = 0; j < maxCol; j++) {\n if (tableCells.value[rowIndex + i][colIndex + j]) {\n tableCells.value[rowIndex + i][colIndex + j].text = data[i][j]\n }\n }\n }\n emit('change', tableCells.value)\n })\n}\n\n// 获取有效的单元格(排除掉被合并的单元格)\nconst getEffectiveTableCells = () => {\n const effectiveTableCells = []\n\n for (let i = 0; i < tableCells.value.length; i++) {\n const rowCells = tableCells.value[i]\n const _rowCells = []\n for (let j = 0; j < rowCells.length; j++) {\n if (!isHideCell(i, j)) _rowCells.push(rowCells[j])\n }\n if (_rowCells.length) effectiveTableCells.push(_rowCells)\n }\n\n return effectiveTableCells\n}\n\n// 检查是否可以删除行和列:有效的行/列数大于1\nconst checkCanDeleteRowOrCol = () => {\n const effectiveTableCells = getEffectiveTableCells()\n const canDeleteRow = effectiveTableCells.length > 1\n const canDeleteCol = effectiveTableCells[0].length > 1\n\n return { canDeleteRow, canDeleteCol }\n}\n\n// 检查是否可以合并或拆分\n// 必须多选才可以合并\n// 必须单选且所选单元格为合并单元格才可以拆分\nconst checkCanMergeOrSplit = (rowIndex: number, colIndex: number) => {\n const isMultiSelected = selectedCells.value.length > 1\n const targetCell = tableCells.value[rowIndex][colIndex]\n\n const canMerge = isMultiSelected\n const canSplit = !isMultiSelected && (targetCell.rowspan > 1 || targetCell.colspan > 1)\n\n return { canMerge, canSplit }\n}\n\nconst contextmenus = (el: HTMLElement): ContextmenuItem[] => {\n const cellIndex = el.dataset.cellIndex as string\n const rowIndex = +cellIndex.split('_')[0]\n const colIndex = +cellIndex.split('_')[1]\n\n if (!selectedCells.value.includes(`${rowIndex}_${colIndex}`)) {\n startCell.value = [rowIndex, colIndex]\n endCell.value = []\n }\n\n const { canMerge, canSplit } = checkCanMergeOrSplit(rowIndex, colIndex)\n const { canDeleteRow, canDeleteCol } = checkCanDeleteRowOrCol()\n\n return [\n {\n text: '插入列',\n children: [\n { text: '到左侧', handler: () => insertCol(colIndex) },\n { text: '到右侧', handler: () => insertCol(colIndex + 1) },\n ],\n },\n {\n text: '插入行',\n children: [\n { text: '到上方', handler: () => insertRow(rowIndex) },\n { text: '到下方', handler: () => insertRow(rowIndex + 1) },\n ],\n },\n {\n text: '删除列',\n disable: !canDeleteCol,\n handler: () => deleteCol(colIndex),\n },\n {\n text: '删除行',\n disable: !canDeleteRow,\n handler: () => deleteRow(rowIndex),\n },\n { divider: true },\n {\n text: '合并单元格',\n disable: !canMerge,\n handler: mergeCells,\n },\n {\n text: '取消合并单元格',\n disable: !canSplit,\n handler: () => splitCells(rowIndex, colIndex),\n },\n { divider: true },\n {\n text: '选中当前列',\n handler: () => selectCol(colIndex),\n },\n {\n text: '选中当前行',\n handler: () => selectRow(rowIndex),\n },\n {\n text: '选中全部单元格',\n handler: selectAll,\n },\n ]\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"editable-table\",\n style: _normalizeStyle({ width: totalWidth.value + 'px' })\n }, [\n (_ctx.editable)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(dragLinePosition.value, (pos, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"drag-line\",\n key: index,\n style: _normalizeStyle({ left: pos + 'px' }),\n onMousedown: $event => handleMousedownColHandler($event, index)\n }, null, 44, _hoisted_2))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"table\", {\n class: _normalizeClass({\n 'theme': theme.value,\n 'row-header': theme.value?.rowHeader,\n 'row-footer': theme.value?.rowFooter,\n 'col-header': theme.value?.colHeader,\n 'col-footer': theme.value?.colFooter,\n }),\n style: _normalizeStyle(`--themeColor: ${theme.value?.color}; --subThemeColor1: ${_unref(subThemeColor)[0]}; --subThemeColor2: ${_unref(subThemeColor)[1]}`)\n }, [\n _createElementVNode(\"colgroup\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(colSizeList.value, (width, index) => {\n return (_openBlock(), _createElementBlock(\"col\", {\n span: \"1\",\n key: index,\n width: width\n }, null, 8, _hoisted_3))\n }), 128))\n ]),\n _createElementVNode(\"tbody\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(tableCells.value, (rowCells, rowIndex) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: rowIndex,\n style: _normalizeStyle({ height: _ctx.cellMinHeight + 'px' })\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(rowCells, (cell, colIndex) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"td\", {\n class: _normalizeClass([\"cell\", {\n 'selected': selectedCells.value.includes(`${rowIndex}_${colIndex}`) && selectedCells.value.length > 1,\n 'active': activedCell.value === `${rowIndex}_${colIndex}`,\n }]),\n style: _normalizeStyle({\n borderStyle: _ctx.outline.style,\n borderColor: _ctx.outline.color,\n borderWidth: _ctx.outline.width + 'px',\n ..._unref(getTextStyle)(cell.style),\n }),\n key: cell.id,\n rowspan: cell.rowspan,\n colspan: cell.colspan,\n \"data-cell-index\": `${rowIndex}_${colIndex}`,\n onMousedown: $event => handleCellMousedown($event, rowIndex, colIndex),\n onMouseenter: ($event: any) => (handleCellMouseenter(rowIndex, colIndex))\n }, [\n (activedCell.value === `${rowIndex}_${colIndex}`)\n ? (_openBlock(), _createBlock(CustomTextarea, {\n key: 0,\n class: _normalizeClass([\"cell-text\", { 'active': activedCell.value === `${rowIndex}_${colIndex}` }]),\n style: _normalizeStyle({ minHeight: (_ctx.cellMinHeight - 4) + 'px' }),\n value: cell.text,\n onUpdateValue: value => _unref(handleInput)(value, rowIndex, colIndex),\n onInsertExcelData: value => insertExcelData(value, rowIndex, colIndex)\n }, null, 8, [\"class\", \"style\", \"value\", \"onUpdateValue\", \"onInsertExcelData\"]))\n : (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"cell-text\",\n style: _normalizeStyle({ minHeight: (_ctx.cellMinHeight - 4) + 'px' }),\n innerHTML: _unref(formatText)(cell.text)\n }, null, 12, _hoisted_5))\n ], 46, _hoisted_4)), [\n [_vShow, !_unref(hideCells).includes(`${rowIndex}_${colIndex}`)],\n [_directive_contextmenu, (el) => contextmenus(el)]\n ])\n }), 128))\n ], 4))\n }), 128))\n ])\n ], 6)\n ], 4))\n}\n}\n\n})","\n\n\n\n","import script from \"./EditableTable.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./EditableTable.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./EditableTable.vue?vue&type=style&index=0&id=0236a619&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0236a619\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { withModifiers as _withModifiers, createVNode as _createVNode, unref as _unref, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-742a731e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"element-content\" }\n\nimport { nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTTableElement, TableCell } from '@/types/slides'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\nimport EditableTable from './EditableTable.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {},\n selectElement: { type: Function },\n contextmenus: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst mainStore = useMainStore()\nconst slidesStore = useSlidesStore()\nconst { canvasScale, handleElementId, isScaling } = storeToRefs(mainStore)\n\nconst elementRef = ref()\n\nconst { addHistorySnapshot } = useHistorySnapshot()\n\nconst handleSelectElement = (e: MouseEvent | TouchEvent) => {\n if (props.elementInfo.lock) return\n e.stopPropagation()\n\n props.selectElement(e, props.elementInfo)\n}\n\n// 更新表格的可编辑状态,表格处于编辑状态时需要禁用全局快捷键\nconst editable = ref(false)\n\nwatch(handleElementId, () => {\n if (handleElementId.value !== props.elementInfo.id) editable.value = false\n})\n\nwatch(editable, () => {\n mainStore.setDisableHotkeysState(editable.value)\n})\n\nconst startEdit = () => {\n if (!props.elementInfo.lock) editable.value = true\n}\n\n// 监听表格元素的尺寸变化,当高度变化时,更新高度到vuex\n// 如果高度变化时正处在缩放操作中,则等待缩放操作结束后再更新\nconst realHeightCache = ref(-1)\n\nwatch(isScaling, () => {\n if (handleElementId.value !== props.elementInfo.id) return\n\n if (isScaling.value) editable.value = false\n\n if (!isScaling.value && realHeightCache.value !== -1) {\n slidesStore.updateElement({\n id: props.elementInfo.id,\n props: { height: realHeightCache.value },\n })\n realHeightCache.value = -1\n }\n})\n\nconst updateTableElementHeight = (entries: ResizeObserverEntry[]) => {\n const contentRect = entries[0].contentRect\n if (!elementRef.value) return\n\n const realHeight = contentRect.height\n\n if (props.elementInfo.height !== realHeight) {\n if (!isScaling.value) {\n slidesStore.updateElement({\n id: props.elementInfo.id,\n props: { height: realHeight },\n })\n }\n else realHeightCache.value = realHeight\n }\n}\n\nconst resizeObserver = new ResizeObserver(updateTableElementHeight)\n\nonMounted(() => {\n if (elementRef.value) resizeObserver.observe(elementRef.value)\n})\nonUnmounted(() => {\n if (elementRef.value) resizeObserver.unobserve(elementRef.value)\n})\n\n// 更新表格内容数据\nconst updateTableCells = (data: TableCell[][]) => {\n slidesStore.updateElement({\n id: props.elementInfo.id, \n props: { data },\n })\n addHistorySnapshot()\n}\n\n// 更新表格的列宽数据\nconst updateColWidths = (widths: number[]) => {\n const width = widths.reduce((a, b) => a + b)\n const colWidths = widths.map(item => item / width)\n\n slidesStore.updateElement({\n id: props.elementInfo.id, \n props: { width, colWidths },\n })\n addHistorySnapshot()\n}\n\n// 更新表格当前选中的单元格\nconst updateSelectedCells = (cells: string[]) => {\n nextTick(() => mainStore.setSelectedTableCells(cells))\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"editable-element-table\", { 'lock': _ctx.elementInfo.lock }]),\n ref_key: \"elementRef\",\n ref: elementRef,\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _withDirectives((_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(EditableTable, {\n onMousedown: _cache[0] || (_cache[0] = _withModifiers(() => {}, [\"stop\"])),\n data: _ctx.elementInfo.data,\n width: _ctx.elementInfo.width,\n cellMinHeight: _ctx.elementInfo.cellMinHeight,\n colWidths: _ctx.elementInfo.colWidths,\n outline: _ctx.elementInfo.outline,\n theme: _ctx.elementInfo.theme,\n editable: editable.value,\n onChange: _cache[1] || (_cache[1] = data => updateTableCells(data)),\n onChangeColWidths: _cache[2] || (_cache[2] = widths => updateColWidths(widths)),\n onChangeSelectedCells: _cache[3] || (_cache[3] = cells => updateSelectedCells(cells))\n }, null, 8, [\"data\", \"width\", \"cellMinHeight\", \"colWidths\", \"outline\", \"theme\", \"editable\"]),\n (!editable.value || _ctx.elementInfo.lock)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"table-mask\", { 'lock': _ctx.elementInfo.lock }]),\n onDblclick: _cache[4] || (_cache[4] = ($event: any) => (startEdit())),\n onMousedown: _cache[5] || (_cache[5] = $event => handleSelectElement($event)),\n onTouchstart: _cache[6] || (_cache[6] = $event => handleSelectElement($event))\n }, [\n (_unref(handleElementId) === _ctx.elementInfo.id)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"mask-tip\",\n style: _normalizeStyle({ transform: `scale(${ 1 / _unref(canvasScale) })` })\n }, \"双击编辑\", 4))\n : _createCommentVNode(\"\", true)\n ], 34))\n : _createCommentVNode(\"\", true)\n ])), [\n [_directive_contextmenu, _ctx.contextmenus]\n ])\n ], 4)\n ], 6))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=742a731e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-742a731e\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveDirective as _resolveDirective, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-35c33b80\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\", \"stroke\", \"stroke-width\"]\nconst _hoisted_2 = [\"transform\"]\nconst _hoisted_3 = [\"d\"]\n\nimport type { PPTLatexElement } from '@/types/slides'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\nimport emitter, { EmitterEvents } from '@/utils/emitter'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {},\n selectElement: { type: Function },\n contextmenus: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst handleSelectElement = (e: MouseEvent | TouchEvent) => {\n if (props.elementInfo.lock) return\n e.stopPropagation()\n\n props.selectElement(e, props.elementInfo)\n}\n\nconst openLatexEditor = () => {\n emitter.emit(EmitterEvents.OPEN_LATEX_EDITOR)\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"editable-element-latex\", { 'lock': _ctx.elementInfo.lock }]),\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"element-content\",\n onMousedown: _cache[0] || (_cache[0] = $event => handleSelectElement($event)),\n onTouchstart: _cache[1] || (_cache[1] = $event => handleSelectElement($event)),\n onDblclick: _cache[2] || (_cache[2] = ($event: any) => (openLatexEditor()))\n }, [\n (_openBlock(), _createElementBlock(\"svg\", {\n overflow: \"visible\",\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n stroke: _ctx.elementInfo.color,\n \"stroke-width\": _ctx.elementInfo.strokeWidth,\n fill: \"none\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n }, [\n _createElementVNode(\"g\", {\n transform: `scale(${_ctx.elementInfo.width / _ctx.elementInfo.viewBox[0]}, ${_ctx.elementInfo.height / _ctx.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`\n }, [\n _createElementVNode(\"path\", {\n d: _ctx.elementInfo.path\n }, null, 8, _hoisted_3)\n ], 8, _hoisted_2)\n ], 8, _hoisted_1))\n ], 32)), [\n [_directive_contextmenu, _ctx.contextmenus]\n ])\n ], 4)\n ], 6))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=35c33b80&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-35c33b80\"]])\n\nexport default __exports__","import { onMounted, type Ref } from 'vue'\n\nexport default (\n src: string,\n videoRef: Ref,\n) => {\n onMounted(() => {\n if (!videoRef.value) return\n\n let type = 'normal'\n if (/m3u8(#|\\?|$)/i.exec(src)) type = 'hls'\n else if (/.flv(#|\\?|$)/i.exec(src)) type = 'flv'\n\n if (videoRef.value && type === 'hls' && (videoRef.value.canPlayType('application/x-mpegURL') || videoRef.value.canPlayType('application/vnd.apple.mpegURL'))) {\n type = 'normal'\n }\n\n if (type === 'hls') {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const Hls = (window as any).Hls\n \n if (Hls && Hls.isSupported()) {\n const hls = new Hls()\n hls.loadSource(src)\n hls.attachMedia(videoRef.value)\n }\n }\n else if (type === 'flv') {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const flvjs = (window as any).flvjs\n if (flvjs && flvjs.isSupported()) {\n const flvPlayer = flvjs.createPlayer({\n type: 'flv',\n url: src,\n })\n flvPlayer.attachMediaElement(videoRef.value)\n flvPlayer.load()\n }\n }\n })\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createBlock as _createBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-e55352ca\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"load-error\"\n}\nconst _hoisted_2 = [\"src\", \"autoplay\", \"poster\"]\nconst _hoisted_3 = { class: \"bezel\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"controller-mask\" }, null, -1))\nconst _hoisted_5 = { class: \"controller\" }\nconst _hoisted_6 = { class: \"icons icons-left\" }\nconst _hoisted_7 = { class: \"icon-content\" }\nconst _hoisted_8 = { class: \"volume\" }\nconst _hoisted_9 = { class: \"icon-content\" }\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"thumb\" }, null, -1))\nconst _hoisted_11 = [\n _hoisted_10\n]\nconst _hoisted_12 = { class: \"time\" }\nconst _hoisted_13 = { class: \"ptime\" }\nconst _hoisted_14 = { class: \"dtime\" }\nconst _hoisted_15 = { class: \"icons icons-right\" }\nconst _hoisted_16 = { class: \"speed\" }\nconst _hoisted_17 = { class: \"icon speed-icon\" }\nconst _hoisted_18 = [\"onClick\"]\nconst _hoisted_19 = { class: \"icon-content\" }\nconst _hoisted_20 = { class: \"bar\" }\nconst _hoisted_21 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"thumb\" }, null, -1))\nconst _hoisted_22 = [\n _hoisted_21\n]\n\nimport { computed, ref } from 'vue'\nimport useMSE from './useMSE'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n width: {},\n height: {},\n src: {},\n poster: { default: '' },\n autoplay: { type: Boolean, default: false },\n scale: { default: 1 }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst secondToTime = (second = 0) => {\n if (second === 0 || isNaN(second)) return '00:00'\n\n const add0 = (num: number) => (num < 10 ? '0' + num : '' + num)\n const hour = Math.floor(second / 3600)\n const min = Math.floor((second - hour * 3600) / 60)\n const sec = Math.floor(second - hour * 3600 - min * 60)\n return (hour > 0 ? [hour, min, sec] : [min, sec]).map(add0).join(':')\n}\n\nconst getBoundingClientRectViewLeft = (element: HTMLElement) => {\n return element.getBoundingClientRect().left\n}\n\nconst videoRef = ref()\nconst playBarWrap = ref()\nconst volumeBarRef = ref()\n\nconst volume = ref(0.5)\nconst paused = ref(true)\nconst currentTime = ref(0)\nconst duration = ref(0)\nconst loaded = ref(0)\nconst loop = ref(false)\nconst bezelTransition = ref(false)\nconst playbackRate = ref(1)\n\nconst playBarTimeVisible = ref(false)\nconst playBarTime = ref('00:00')\nconst playBarTimeLeft = ref('0')\n\nconst ptime = computed(() => secondToTime(currentTime.value))\nconst dtime = computed(() => secondToTime(duration.value))\nconst playedBarWidth = computed(() => currentTime.value / duration.value * 100 + '%')\nconst loadedBarWidth = computed(() => loaded.value / duration.value * 100 + '%')\nconst volumeBarWidth = computed(() => volume.value * 100 + '%')\n\nconst speedMenuVisible = ref(false)\nconst speedOptions = [\n { label: '2x', value: 2 },\n { label: '1.5x', value: 1.5 },\n { label: '1.25x', value: 1.25 },\n { label: '1x', value: 1 },\n { label: '0.75x', value: 0.75 },\n { label: '0.5x', value: 0.5 },\n]\n\nconst seek = (time: number) => {\n if (!videoRef.value) return\n\n time = Math.max(time, 0)\n time = Math.min(time, duration.value)\n\n videoRef.value.currentTime = time\n currentTime.value = time\n}\n\nconst play = () => {\n if (!videoRef.value) return\n\n paused.value = false\n videoRef.value.play()\n bezelTransition.value = true\n}\n\nconst pause = () => {\n if (!videoRef.value) return\n\n paused.value = true\n videoRef.value.pause()\n bezelTransition.value = true\n}\n\nconst toggle = () => {\n if (paused.value) play() \n else pause()\n}\n\nconst setVolume = (percentage: number) => {\n if (!videoRef.value) return\n\n percentage = Math.max(percentage, 0)\n percentage = Math.min(percentage, 1)\n\n videoRef.value.volume = percentage\n volume.value = percentage\n if (videoRef.value.muted && percentage !== 0) videoRef.value.muted = false\n}\n\nconst speed = (rate: number) => {\n if (videoRef.value) videoRef.value.playbackRate = rate\n playbackRate.value = rate\n}\n\nconst handleDurationchange = () => {\n duration.value = videoRef.value?.duration || 0\n}\n\nconst handleTimeupdate = () => {\n currentTime.value = videoRef.value?.currentTime || 0\n}\n\nconst handleEnded = () => {\n if (!loop.value) pause()\n else {\n seek(0)\n play()\n }\n}\n\nconst handleProgress = () => {\n loaded.value = videoRef.value?.buffered.length ? videoRef.value.buffered.end(videoRef.value.buffered.length - 1) : 0\n}\n\nconst loadError = ref(false)\nconst handleError = () => loadError.value = true\n\nconst thumbMove = (e: MouseEvent | TouchEvent) => {\n if (!videoRef.value || !playBarWrap.value) return\n const clientX = 'clientX' in e ? e.clientX : e.changedTouches[0].clientX\n let percentage = (clientX - getBoundingClientRectViewLeft(playBarWrap.value)) / playBarWrap.value.clientWidth\n percentage = Math.max(percentage, 0)\n percentage = Math.min(percentage, 1)\n const time = percentage * duration.value\n\n videoRef.value.currentTime = time\n currentTime.value = time\n}\n\nconst thumbUp = (e: MouseEvent | TouchEvent) => {\n if (!videoRef.value || !playBarWrap.value) return\n\n const clientX = 'clientX' in e ? e.clientX : e.changedTouches[0].clientX\n let percentage = (clientX - getBoundingClientRectViewLeft(playBarWrap.value)) / playBarWrap.value.clientWidth\n percentage = Math.max(percentage, 0)\n percentage = Math.min(percentage, 1)\n const time = percentage * duration.value\n\n videoRef.value.currentTime = time\n currentTime.value = time\n\n document.removeEventListener('mousemove', thumbMove)\n document.removeEventListener('touchmove', thumbMove)\n document.removeEventListener('mouseup', thumbUp)\n document.removeEventListener('touchend', thumbUp)\n}\n\nconst handleMousedownPlayBar = () => {\n document.addEventListener('mousemove', thumbMove)\n document.addEventListener('touchmove', thumbMove)\n document.addEventListener('mouseup', thumbUp)\n document.addEventListener('touchend', thumbUp)\n}\n\nconst volumeMove = (e: MouseEvent | TouchEvent) => {\n if (!volumeBarRef.value) return\n const clientX = 'clientX' in e ? e.clientX : e.changedTouches[0].clientX\n const percentage = (clientX - getBoundingClientRectViewLeft(volumeBarRef.value)) / 45\n setVolume(percentage)\n}\n\nconst volumeUp = () => {\n document.removeEventListener('mousemove', volumeMove)\n document.removeEventListener('touchmove', volumeMove)\n document.removeEventListener('mouseup', volumeUp)\n document.removeEventListener('touchend', volumeUp)\n}\n\nconst handleMousedownVolumeBar = () => {\n document.addEventListener('mousemove', volumeMove)\n document.addEventListener('touchmove', volumeMove)\n document.addEventListener('mouseup', volumeUp)\n document.addEventListener('touchend', volumeUp)\n}\n\nconst handleClickVolumeBar = (e: MouseEvent) => {\n if (!volumeBarRef.value) return\n const percentage = (e.clientX - getBoundingClientRectViewLeft(volumeBarRef.value)) / 45\n setVolume(percentage)\n}\n\nconst handleMousemovePlayBar = (e: MouseEvent) => {\n if (duration.value && playBarWrap.value) {\n const px = playBarWrap.value.getBoundingClientRect().left\n const tx = e.clientX - px\n if (tx < 0 || tx > playBarWrap.value.offsetWidth) return\n\n const time = duration.value * (tx / playBarWrap.value.offsetWidth)\n playBarTimeLeft.value = `${tx - (time >= 3600 ? 25 : 20)}px`\n playBarTime.value = secondToTime(time)\n playBarTimeVisible.value = true\n }\n}\n\nconst toggleVolume = () => {\n if (!videoRef.value) return\n\n if (videoRef.value.muted) {\n videoRef.value.muted = false\n setVolume(0.5)\n }\n else {\n videoRef.value.muted = true\n setVolume(0)\n }\n}\n\nconst toggleLoop = () => {\n loop.value = !loop.value\n}\n\nconst autoHideControllerTimer = ref(-1)\nconst hideController = ref(false)\nconst autoHideController = () => {\n hideController.value = false\n clearTimeout(autoHideControllerTimer.value)\n autoHideControllerTimer.value = setTimeout(() => {\n if (videoRef.value?.played.length) hideController.value = true\n }, 3000)\n}\n\nuseMSE(props.src, videoRef)\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconPause = _resolveComponent(\"IconPause\")!\n const _component_IconPlayOne = _resolveComponent(\"IconPlayOne\")!\n const _component_IconVolumeMute = _resolveComponent(\"IconVolumeMute\")!\n const _component_IconVolumeNotice = _resolveComponent(\"IconVolumeNotice\")!\n const _component_IconVolumeSmall = _resolveComponent(\"IconVolumeSmall\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"video-player\", { 'hide-controller': hideController.value }]),\n style: _normalizeStyle({\n width: _ctx.width * _ctx.scale + 'px',\n height: _ctx.height * _ctx.scale + 'px',\n transform: `scale(${1 / _ctx.scale})`,\n }),\n onMousemove: _cache[22] || (_cache[22] = ($event: any) => (autoHideController())),\n onClick: _cache[23] || (_cache[23] = ($event: any) => (autoHideController()))\n }, [\n _createElementVNode(\"div\", {\n class: \"video-wrap\",\n onClick: _cache[8] || (_cache[8] = ($event: any) => (toggle()))\n }, [\n (loadError.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, \"视频加载失败\"))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"video\", {\n class: \"video\",\n ref_key: \"videoRef\",\n ref: videoRef,\n src: _ctx.src,\n autoplay: _ctx.autoplay,\n poster: _ctx.poster,\n \"webkit-playsinline\": \"\",\n playsinline: \"\",\n onDurationchange: _cache[0] || (_cache[0] = ($event: any) => (handleDurationchange())),\n onTimeupdate: _cache[1] || (_cache[1] = ($event: any) => (handleTimeupdate())),\n onEnded: _cache[2] || (_cache[2] = ($event: any) => (handleEnded())),\n onProgress: _cache[3] || (_cache[3] = ($event: any) => (handleProgress())),\n onPlay: _cache[4] || (_cache[4] = ($event: any) => {autoHideController(); paused.value = false}),\n onPause: _cache[5] || (_cache[5] = ($event: any) => (autoHideController())),\n onError: _cache[6] || (_cache[6] = ($event: any) => (handleError()))\n }, null, 40, _hoisted_2),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"span\", {\n class: _normalizeClass([\"bezel-icon\", { 'bezel-transition': bezelTransition.value }]),\n onAnimationend: _cache[7] || (_cache[7] = ($event: any) => (bezelTransition.value = false))\n }, [\n (paused.value)\n ? (_openBlock(), _createBlock(_component_IconPause, { key: 0 }))\n : (_openBlock(), _createBlock(_component_IconPlayOne, { key: 1 }))\n ], 34)\n ])\n ]),\n _hoisted_4,\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", {\n class: \"icon play-icon\",\n onClick: _cache[9] || (_cache[9] = ($event: any) => (toggle()))\n }, [\n _createElementVNode(\"span\", _hoisted_7, [\n (paused.value)\n ? (_openBlock(), _createBlock(_component_IconPlayOne, { key: 0 }))\n : (_openBlock(), _createBlock(_component_IconPause, { key: 1 }))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", {\n class: \"icon volume-icon\",\n onClick: _cache[10] || (_cache[10] = ($event: any) => (toggleVolume()))\n }, [\n _createElementVNode(\"span\", _hoisted_9, [\n (volume.value === 0)\n ? (_openBlock(), _createBlock(_component_IconVolumeMute, { key: 0 }))\n : (volume.value === 1)\n ? (_openBlock(), _createBlock(_component_IconVolumeNotice, { key: 1 }))\n : (_openBlock(), _createBlock(_component_IconVolumeSmall, { key: 2 }))\n ])\n ]),\n _createElementVNode(\"div\", {\n class: \"volume-bar-wrap\",\n onMousedown: _cache[11] || (_cache[11] = ($event: any) => (handleMousedownVolumeBar())),\n onTouchstart: _cache[12] || (_cache[12] = ($event: any) => (handleMousedownVolumeBar())),\n onClick: _cache[13] || (_cache[13] = $event => handleClickVolumeBar($event))\n }, [\n _createElementVNode(\"div\", {\n class: \"volume-bar\",\n ref_key: \"volumeBarRef\",\n ref: volumeBarRef\n }, [\n _createElementVNode(\"div\", {\n class: \"volume-bar-inner\",\n style: _normalizeStyle({ width: volumeBarWidth.value })\n }, _hoisted_11, 4)\n ], 512)\n ], 32)\n ]),\n _createElementVNode(\"span\", _hoisted_12, [\n _createElementVNode(\"span\", _hoisted_13, _toDisplayString(ptime.value), 1),\n _createTextVNode(\" / \"),\n _createElementVNode(\"span\", _hoisted_14, _toDisplayString(dtime.value), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"span\", {\n class: \"icon-content\",\n onClick: _cache[14] || (_cache[14] = ($event: any) => (speedMenuVisible.value = !speedMenuVisible.value))\n }, _toDisplayString(playbackRate.value === 1 ? '倍速' : (playbackRate.value + 'x')), 1),\n (speedMenuVisible.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"speed-menu\",\n onMouseleave: _cache[15] || (_cache[15] = ($event: any) => (speedMenuVisible.value = false))\n }, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(speedOptions, (item) => {\n return _createElementVNode(\"div\", {\n class: _normalizeClass([\"speed-menu-item\", { 'active': item.value === playbackRate.value }]),\n key: item.label,\n onClick: ($event: any) => (speed(item.value))\n }, _toDisplayString(item.label), 11, _hoisted_18)\n }), 64))\n ], 32))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", {\n class: \"loop\",\n onClick: _cache[16] || (_cache[16] = ($event: any) => (toggleLoop()))\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"icon loop-icon\", { 'active': loop.value }])\n }, [\n _createElementVNode(\"span\", _hoisted_19, \"循环\" + _toDisplayString(loop.value ? '开' : '关'), 1)\n ], 2)\n ])\n ]),\n _createElementVNode(\"div\", {\n class: \"bar-wrap\",\n ref_key: \"playBarWrap\",\n ref: playBarWrap,\n onMousedown: _cache[17] || (_cache[17] = ($event: any) => (handleMousedownPlayBar())),\n onTouchstart: _cache[18] || (_cache[18] = ($event: any) => (handleMousedownPlayBar())),\n onMousemove: _cache[19] || (_cache[19] = $event => handleMousemovePlayBar($event)),\n onMouseenter: _cache[20] || (_cache[20] = ($event: any) => (playBarTimeVisible.value = true)),\n onMouseleave: _cache[21] || (_cache[21] = ($event: any) => (playBarTimeVisible.value = false))\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"bar-time\", { 'hidden': !playBarTimeVisible.value }]),\n style: _normalizeStyle({ left: playBarTimeLeft.value })\n }, _toDisplayString(playBarTime.value), 7),\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"div\", {\n class: \"loaded\",\n style: _normalizeStyle({ width: loadedBarWidth.value })\n }, null, 4),\n _createElementVNode(\"div\", {\n class: \"played\",\n style: _normalizeStyle({ width: playedBarWidth.value })\n }, _hoisted_22, 4)\n ])\n ], 544)\n ])\n ], 38))\n}\n}\n\n})","\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=e55352ca&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-e55352ca\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle } from \"vue\"\n\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport type { PPTVideoElement } from '@/types/slides'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\n\nimport VideoPlayer from './VideoPlayer/index.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {},\n selectElement: { type: Function },\n contextmenus: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst { canvasScale } = storeToRefs(useMainStore())\n\nconst handleSelectElement = (e: MouseEvent | TouchEvent, canMove = true) => {\n if (props.elementInfo.lock) return\n e.stopPropagation()\n\n props.selectElement(e, props.elementInfo, canMove)\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"editable-element-video\", { 'lock': _ctx.elementInfo.lock }]),\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"element-content\",\n onMousedown: _cache[2] || (_cache[2] = $event => handleSelectElement($event, false)),\n onTouchstart: _cache[3] || (_cache[3] = $event => handleSelectElement($event, false))\n }, [\n _createVNode(VideoPlayer, {\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n src: _ctx.elementInfo.src,\n poster: _ctx.elementInfo.poster,\n scale: _unref(canvasScale)\n }, null, 8, [\"width\", \"height\", \"src\", \"poster\", \"scale\"]),\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(['t', 'b', 'l', 'r'], (item) => {\n return _createElementVNode(\"div\", {\n class: _normalizeClass(['handler-border', item]),\n key: item,\n onMousedown: _cache[0] || (_cache[0] = $event => handleSelectElement($event)),\n onTouchstart: _cache[1] || (_cache[1] = $event => handleSelectElement($event))\n }, null, 34)\n }), 64))\n ], 32)), [\n [_directive_contextmenu, _ctx.contextmenus]\n ])\n ], 4)\n ], 6))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=5dc89f2a&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5dc89f2a\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-44037f56\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"src\", \"autoplay\"]\nconst _hoisted_2 = { class: \"controller\" }\nconst _hoisted_3 = { class: \"icons\" }\nconst _hoisted_4 = { class: \"icon-content\" }\nconst _hoisted_5 = { class: \"volume\" }\nconst _hoisted_6 = { class: \"icon-content\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"thumb\" }, null, -1))\nconst _hoisted_8 = [\n _hoisted_7\n]\nconst _hoisted_9 = { class: \"time\" }\nconst _hoisted_10 = { class: \"ptime\" }\nconst _hoisted_11 = { class: \"dtime\" }\nconst _hoisted_12 = { class: \"bar\" }\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"thumb\" }, null, -1))\nconst _hoisted_14 = [\n _hoisted_13\n]\n\nimport { computed, ref } from 'vue'\nimport message from '@/utils/message'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AudioPlayer',\n props: {\n src: {},\n loop: { type: Boolean },\n autoplay: { type: Boolean, default: false },\n scale: { default: 1 }\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props\n\nconst secondToTime = (second = 0) => {\n if (second === 0 || isNaN(second)) return '00:00'\n\n const add0 = (num: number) => (num < 10 ? '0' + num : '' + num)\n const hour = Math.floor(second / 3600)\n const min = Math.floor((second - hour * 3600) / 60)\n const sec = Math.floor(second - hour * 3600 - min * 60)\n return (hour > 0 ? [hour, min, sec] : [min, sec]).map(add0).join(':')\n}\n\nconst getBoundingClientRectViewLeft = (element: HTMLElement) => {\n return element.getBoundingClientRect().left\n}\n\nconst audioRef = ref()\nconst playBarWrap = ref()\nconst volumeBarRef = ref()\n\nconst volume = ref(0.5)\nconst paused = ref(true)\nconst currentTime = ref(0)\nconst duration = ref(0)\nconst loaded = ref(0)\n\nconst playBarTimeVisible = ref(false)\nconst playBarTime = ref('00:00')\nconst playBarTimeLeft = ref('0')\n\nconst ptime = computed(() => secondToTime(currentTime.value))\nconst dtime = computed(() => secondToTime(duration.value))\nconst playedBarWidth = computed(() => currentTime.value / duration.value * 100 + '%')\nconst loadedBarWidth = computed(() => loaded.value / duration.value * 100 + '%')\nconst volumeBarWidth = computed(() => volume.value * 100 + '%')\n\nconst seek = (time: number) => {\n if (!audioRef.value) return\n\n time = Math.max(time, 0)\n time = Math.min(time, duration.value)\n\n audioRef.value.currentTime = time\n currentTime.value = time\n}\n\nconst play = () => {\n if (!audioRef.value) return\n\n paused.value = false\n audioRef.value.play()\n}\n\nconst pause = () => {\n if (!audioRef.value) return\n\n paused.value = true\n audioRef.value.pause()\n}\n\nconst toggle = () => {\n if (paused.value) play() \n else pause()\n}\n\nconst setVolume = (percentage: number) => {\n if (!audioRef.value) return\n\n percentage = Math.max(percentage, 0)\n percentage = Math.min(percentage, 1)\n\n audioRef.value.volume = percentage\n volume.value = percentage\n if (audioRef.value.muted && percentage !== 0) audioRef.value.muted = false\n}\n\nconst handleDurationchange = () => {\n duration.value = audioRef.value?.duration || 0\n}\n\nconst handleTimeupdate = () => {\n currentTime.value = audioRef.value?.currentTime || 0\n}\n\nconst handlePlayed = () => {\n paused.value = false\n}\n\nconst handleEnded = () => {\n if (!props.loop) pause()\n else {\n seek(0)\n play()\n }\n}\n\nconst handleProgress = () => {\n loaded.value = audioRef.value?.buffered.length ? audioRef.value.buffered.end(audioRef.value.buffered.length - 1) : 0\n}\n\nconst handleError = () => message.error('视频加载失败')\n\nconst thumbMove = (e: MouseEvent | TouchEvent) => {\n if (!audioRef.value || !playBarWrap.value) return\n const clientX = 'clientX' in e ? e.clientX : e.changedTouches[0].clientX\n let percentage = (clientX - getBoundingClientRectViewLeft(playBarWrap.value)) / playBarWrap.value.clientWidth\n percentage = Math.max(percentage, 0)\n percentage = Math.min(percentage, 1)\n const time = percentage * duration.value\n\n audioRef.value.currentTime = time\n currentTime.value = time\n}\n\nconst thumbUp = (e: MouseEvent | TouchEvent) => {\n if (!audioRef.value || !playBarWrap.value) return\n\n const clientX = 'clientX' in e ? e.clientX : e.changedTouches[0].clientX\n let percentage = (clientX - getBoundingClientRectViewLeft(playBarWrap.value)) / playBarWrap.value.clientWidth\n percentage = Math.max(percentage, 0)\n percentage = Math.min(percentage, 1)\n const time = percentage * duration.value\n\n audioRef.value.currentTime = time\n currentTime.value = time\n\n document.removeEventListener('mousemove', thumbMove)\n document.removeEventListener('touchmove', thumbMove)\n document.removeEventListener('mouseup', thumbUp)\n document.removeEventListener('touchend', thumbUp)\n}\n\nconst handleMousedownPlayBar = () => {\n document.addEventListener('mousemove', thumbMove)\n document.addEventListener('touchmove', thumbMove)\n document.addEventListener('mouseup', thumbUp)\n document.addEventListener('touchend', thumbUp)\n}\n\nconst volumeMove = (e: MouseEvent | TouchEvent) => {\n if (!volumeBarRef.value) return\n const clientX = 'clientX' in e ? e.clientX : e.changedTouches[0].clientX\n const percentage = (clientX - getBoundingClientRectViewLeft(volumeBarRef.value)) / 45\n setVolume(percentage)\n}\n\nconst volumeUp = () => {\n document.removeEventListener('mousemove', volumeMove)\n document.removeEventListener('touchmove', volumeMove)\n document.removeEventListener('mouseup', volumeUp)\n document.removeEventListener('touchend', volumeUp)\n}\n\nconst handleMousedownVolumeBar = () => {\n document.addEventListener('mousemove', volumeMove)\n document.addEventListener('touchmove', volumeMove)\n document.addEventListener('mouseup', volumeUp)\n document.addEventListener('touchend', volumeUp)\n}\n\nconst handleClickVolumeBar = (e: MouseEvent) => {\n if (!volumeBarRef.value) return\n const percentage = (e.clientX - getBoundingClientRectViewLeft(volumeBarRef.value)) / 45\n setVolume(percentage)\n}\n\nconst handleMousemovePlayBar = (e: MouseEvent) => {\n if (duration.value && playBarWrap.value) {\n const px = playBarWrap.value.getBoundingClientRect().left\n const tx = e.clientX - px\n if (tx < 0 || tx > playBarWrap.value.offsetWidth) return\n\n const time = duration.value * (tx / playBarWrap.value.offsetWidth)\n playBarTimeLeft.value = `${tx - (time >= 3600 ? 25 : 20)}px`\n playBarTime.value = secondToTime(time)\n playBarTimeVisible.value = true\n }\n}\n\nconst toggleVolume = () => {\n if (!audioRef.value) return\n\n if (audioRef.value.muted) {\n audioRef.value.muted = false\n setVolume(0.5)\n }\n else {\n audioRef.value.muted = true\n setVolume(0)\n }\n}\n\n__expose({\n toggle,\n})\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconPlayOne = _resolveComponent(\"IconPlayOne\")!\n const _component_IconPause = _resolveComponent(\"IconPause\")!\n const _component_IconVolumeMute = _resolveComponent(\"IconVolumeMute\")!\n const _component_IconVolumeNotice = _resolveComponent(\"IconVolumeNotice\")!\n const _component_IconVolumeSmall = _resolveComponent(\"IconVolumeSmall\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"audio-player\",\n style: _normalizeStyle({ transform: `scale(${1 / _ctx.scale})` })\n }, [\n _createElementVNode(\"audio\", {\n class: \"audio\",\n ref_key: \"audioRef\",\n ref: audioRef,\n src: _ctx.src,\n autoplay: _ctx.autoplay,\n onDurationchange: _cache[0] || (_cache[0] = ($event: any) => (handleDurationchange())),\n onTimeupdate: _cache[1] || (_cache[1] = ($event: any) => (handleTimeupdate())),\n onPlay: _cache[2] || (_cache[2] = ($event: any) => (handlePlayed())),\n onEnded: _cache[3] || (_cache[3] = ($event: any) => (handleEnded())),\n onProgress: _cache[4] || (_cache[4] = ($event: any) => (handleProgress())),\n onError: _cache[5] || (_cache[5] = ($event: any) => (handleError()))\n }, null, 40, _hoisted_1),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", {\n class: \"icon play-icon\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (toggle()))\n }, [\n _createElementVNode(\"span\", _hoisted_4, [\n (paused.value)\n ? (_openBlock(), _createBlock(_component_IconPlayOne, { key: 0 }))\n : (_openBlock(), _createBlock(_component_IconPause, { key: 1 }))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", {\n class: \"icon volume-icon\",\n onClick: _cache[7] || (_cache[7] = ($event: any) => (toggleVolume()))\n }, [\n _createElementVNode(\"span\", _hoisted_6, [\n (volume.value === 0)\n ? (_openBlock(), _createBlock(_component_IconVolumeMute, { key: 0 }))\n : (volume.value === 1)\n ? (_openBlock(), _createBlock(_component_IconVolumeNotice, { key: 1 }))\n : (_openBlock(), _createBlock(_component_IconVolumeSmall, { key: 2 }))\n ])\n ]),\n _createElementVNode(\"div\", {\n class: \"volume-bar-wrap\",\n onMousedown: _cache[8] || (_cache[8] = ($event: any) => (handleMousedownVolumeBar())),\n onTouchstart: _cache[9] || (_cache[9] = ($event: any) => (handleMousedownVolumeBar())),\n onClick: _cache[10] || (_cache[10] = $event => handleClickVolumeBar($event))\n }, [\n _createElementVNode(\"div\", {\n class: \"volume-bar\",\n ref_key: \"volumeBarRef\",\n ref: volumeBarRef\n }, [\n _createElementVNode(\"div\", {\n class: \"volume-bar-inner\",\n style: _normalizeStyle({ width: volumeBarWidth.value })\n }, _hoisted_8, 4)\n ], 512)\n ], 32)\n ])\n ]),\n _createElementVNode(\"span\", _hoisted_9, [\n _createElementVNode(\"span\", _hoisted_10, _toDisplayString(ptime.value), 1),\n _createTextVNode(\" / \"),\n _createElementVNode(\"span\", _hoisted_11, _toDisplayString(dtime.value), 1)\n ]),\n _createElementVNode(\"div\", {\n class: \"bar-wrap\",\n ref_key: \"playBarWrap\",\n ref: playBarWrap,\n onMousedown: _cache[11] || (_cache[11] = ($event: any) => (handleMousedownPlayBar())),\n onTouchstart: _cache[12] || (_cache[12] = ($event: any) => (handleMousedownPlayBar())),\n onMousemove: _cache[13] || (_cache[13] = $event => handleMousemovePlayBar($event)),\n onMouseenter: _cache[14] || (_cache[14] = ($event: any) => (playBarTimeVisible.value = true)),\n onMouseleave: _cache[15] || (_cache[15] = ($event: any) => (playBarTimeVisible.value = false))\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"bar-time\", { 'hidden': !playBarTimeVisible.value }]),\n style: _normalizeStyle({ left: playBarTimeLeft.value })\n }, _toDisplayString(playBarTime.value), 7),\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"div\", {\n class: \"loaded\",\n style: _normalizeStyle({ width: loadedBarWidth.value })\n }, null, 4),\n _createElementVNode(\"div\", {\n class: \"played\",\n style: _normalizeStyle({ width: playedBarWidth.value })\n }, _hoisted_14, 4)\n ])\n ], 544)\n ])\n ], 4))\n}\n}\n\n})","\n\n\n\n","import script from \"./AudioPlayer.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AudioPlayer.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AudioPlayer.vue?vue&type=style&index=0&id=44037f56&scoped=true&lang=scss\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-44037f56\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, normalizeStyle as _normalizeStyle, createVNode as _createVNode, unref as _unref, withModifiers as _withModifiers, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveDirective as _resolveDirective, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from \"vue\"\n\nimport { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTAudioElement } from '@/types/slides'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\nimport { VIEWPORT_SIZE } from '@/configs/canvas'\n\nimport AudioPlayer from './AudioPlayer.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {},\n selectElement: { type: Function },\n contextmenus: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst { canvasScale, handleElementId } = storeToRefs(useMainStore())\nconst { viewportRatio } = storeToRefs(useSlidesStore())\n\nconst audioIconSize = computed(() => {\n return Math.min(props.elementInfo.width, props.elementInfo.height) + 'px'\n})\nconst audioPlayerPosition = computed(() => {\n const canvasWidth = VIEWPORT_SIZE\n const canvasHeight = VIEWPORT_SIZE * viewportRatio.value\n\n const audioWidth = 280 / canvasScale.value\n const audioHeight = 50 / canvasScale.value\n\n const elWidth = props.elementInfo.width\n const elHeight = props.elementInfo.height\n const elLeft = props.elementInfo.left\n const elTop = props.elementInfo.top\n\n let left = 0\n let top = elHeight\n \n if (elLeft + audioWidth >= canvasWidth) left = elWidth - audioWidth\n if (elTop + elHeight + audioHeight >= canvasHeight) top = -audioHeight\n\n return {\n left: left + 'px',\n top: top + 'px',\n }\n})\n\nconst handleSelectElement = (e: MouseEvent | TouchEvent) => {\n if (props.elementInfo.lock) return\n e.stopPropagation()\n\n props.selectElement(e, props.elementInfo)\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconVolumeNotice = _resolveComponent(\"IconVolumeNotice\")!\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"editable-element-audio\", { 'lock': _ctx.elementInfo.lock }]),\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"element-content\",\n onMousedown: _cache[1] || (_cache[1] = $event => handleSelectElement($event)),\n onTouchstart: _cache[2] || (_cache[2] = $event => handleSelectElement($event))\n }, [\n _createVNode(_component_IconVolumeNotice, {\n class: \"audio-icon\",\n style: _normalizeStyle({\n fontSize: audioIconSize.value,\n color: _ctx.elementInfo.color,\n })\n }, null, 8, [\"style\"]),\n (_unref(handleElementId) === _ctx.elementInfo.id)\n ? (_openBlock(), _createBlock(AudioPlayer, {\n key: 0,\n class: \"audio-player\",\n style: _normalizeStyle({ ...audioPlayerPosition.value }),\n src: _ctx.elementInfo.src,\n loop: _ctx.elementInfo.loop,\n scale: _unref(canvasScale),\n onMousedown: _cache[0] || (_cache[0] = _withModifiers(() => {}, [\"stop\"]))\n }, null, 8, [\"style\", \"src\", \"loop\", \"scale\"]))\n : _createCommentVNode(\"\", true)\n ], 32)), [\n [_directive_contextmenu, _ctx.contextmenus]\n ])\n ], 4)\n ], 6))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=53bdc956&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-53bdc956\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"id\"]\n\nimport { computed } from 'vue'\nimport { ElementTypes, type PPTElement } from '@/types/slides'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\n\nimport useLockElement from '@/hooks/useLockElement'\nimport useDeleteElement from '@/hooks/useDeleteElement'\nimport useCombineElement from '@/hooks/useCombineElement'\nimport useOrderElement from '@/hooks/useOrderElement'\nimport useAlignElementToCanvas from '@/hooks/useAlignElementToCanvas'\nimport useCopyAndPasteElement from '@/hooks/useCopyAndPasteElement'\nimport useSelectAllElement from '@/hooks/useSelectAllElement'\n\nimport { ElementOrderCommands, ElementAlignCommands } from '@/types/edit'\n\nimport ImageElement from '@/views/components/element/ImageElement/index.vue'\nimport TextElement from '@/views/components/element/TextElement/index.vue'\nimport ShapeElement from '@/views/components/element/ShapeElement/index.vue'\nimport LineElement from '@/views/components/element/LineElement/index.vue'\nimport ChartElement from '@/views/components/element/ChartElement/index.vue'\nimport TableElement from '@/views/components/element/TableElement/index.vue'\nimport LatexElement from '@/views/components/element/LatexElement/index.vue'\nimport VideoElement from '@/views/components/element/VideoElement/index.vue'\nimport AudioElement from '@/views/components/element/AudioElement/index.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'EditableElement',\n props: {\n elementInfo: {},\n elementIndex: {},\n isMultiSelect: { type: Boolean },\n selectElement: { type: Function },\n openLinkDialog: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst currentElementComponent = computed(() => {\n const elementTypeMap = {\n [ElementTypes.IMAGE]: ImageElement,\n [ElementTypes.TEXT]: TextElement,\n [ElementTypes.SHAPE]: ShapeElement,\n [ElementTypes.LINE]: LineElement,\n [ElementTypes.CHART]: ChartElement,\n [ElementTypes.TABLE]: TableElement,\n [ElementTypes.LATEX]: LatexElement,\n [ElementTypes.VIDEO]: VideoElement,\n [ElementTypes.AUDIO]: AudioElement,\n }\n return elementTypeMap[props.elementInfo.type] || null\n})\n\nconst { orderElement } = useOrderElement()\nconst { alignElementToCanvas } = useAlignElementToCanvas()\nconst { combineElements, uncombineElements } = useCombineElement()\nconst { deleteElement } = useDeleteElement()\nconst { lockElement, unlockElement } = useLockElement()\nconst { copyElement, pasteElement, cutElement } = useCopyAndPasteElement()\nconst { selectAllElement } = useSelectAllElement()\n\nconst contextmenus = (): ContextmenuItem[] => {\n if (props.elementInfo.lock) {\n return [{\n text: '解锁', \n handler: () => unlockElement(props.elementInfo),\n }]\n }\n\n return [\n {\n text: '剪切',\n subText: 'Ctrl + X',\n handler: cutElement,\n },\n {\n text: '复制',\n subText: 'Ctrl + C',\n handler: copyElement,\n },\n {\n text: '粘贴',\n subText: 'Ctrl + V',\n handler: pasteElement,\n },\n { divider: true },\n {\n text: '水平居中',\n handler: () => alignElementToCanvas(ElementAlignCommands.HORIZONTAL),\n children: [\n { text: '水平垂直居中', handler: () => alignElementToCanvas(ElementAlignCommands.CENTER), },\n { text: '水平居中', handler: () => alignElementToCanvas(ElementAlignCommands.HORIZONTAL) },\n { text: '左对齐', handler: () => alignElementToCanvas(ElementAlignCommands.LEFT) },\n { text: '右对齐', handler: () => alignElementToCanvas(ElementAlignCommands.RIGHT) },\n ],\n },\n {\n text: '垂直居中',\n handler: () => alignElementToCanvas(ElementAlignCommands.VERTICAL),\n children: [\n { text: '水平垂直居中', handler: () => alignElementToCanvas(ElementAlignCommands.CENTER) },\n { text: '垂直居中', handler: () => alignElementToCanvas(ElementAlignCommands.VERTICAL) },\n { text: '顶部对齐', handler: () => alignElementToCanvas(ElementAlignCommands.TOP) },\n { text: '底部对齐', handler: () => alignElementToCanvas(ElementAlignCommands.BOTTOM) },\n ],\n },\n { divider: true },\n {\n text: '置于顶层',\n disable: props.isMultiSelect && !props.elementInfo.groupId,\n handler: () => orderElement(props.elementInfo, ElementOrderCommands.TOP),\n children: [\n { text: '置于顶层', handler: () => orderElement(props.elementInfo, ElementOrderCommands.TOP) },\n { text: '上移一层', handler: () => orderElement(props.elementInfo, ElementOrderCommands.UP) },\n ],\n },\n {\n text: '置于底层',\n disable: props.isMultiSelect && !props.elementInfo.groupId,\n handler: () => orderElement(props.elementInfo, ElementOrderCommands.BOTTOM),\n children: [\n { text: '置于底层', handler: () => orderElement(props.elementInfo, ElementOrderCommands.BOTTOM) },\n { text: '下移一层', handler: () => orderElement(props.elementInfo, ElementOrderCommands.DOWN) },\n ],\n },\n { divider: true },\n {\n text: '设置链接',\n handler: props.openLinkDialog,\n },\n {\n text: props.elementInfo.groupId ? '取消组合' : '组合',\n subText: 'Ctrl + G',\n handler: props.elementInfo.groupId ? uncombineElements : combineElements,\n hide: !props.isMultiSelect,\n },\n {\n text: '全选',\n subText: 'Ctrl + A',\n handler: selectAllElement,\n },\n {\n text: '锁定',\n subText: 'Ctrl + L',\n handler: lockElement,\n },\n {\n text: '删除',\n subText: 'Delete',\n handler: deleteElement,\n },\n ]\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"editable-element\",\n ref: \"elementRef\",\n id: `editable-element-${_ctx.elementInfo.id}`,\n style: _normalizeStyle({\n zIndex: _ctx.elementIndex,\n })\n }, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(currentElementComponent.value), {\n elementInfo: _ctx.elementInfo,\n selectElement: _ctx.selectElement,\n contextmenus: contextmenus\n }, null, 8, [\"elementInfo\", \"selectElement\"]))\n ], 12, _hoisted_1))\n}\n}\n\n})","\n\n","import script from \"./EditableElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./EditableElement.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'MouseSelection',\n props: {\n top: {},\n left: {},\n width: {},\n height: {},\n quadrant: {}\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass(`mouse-selection quadrant-${_ctx.quadrant}`),\n style: _normalizeStyle({\n top: _ctx.top + 'px',\n left: _ctx.left + 'px',\n width: _ctx.width + 'px',\n height: _ctx.height + 'px',\n })\n }, null, 6))\n}\n}\n\n})","import script from \"./MouseSelection.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./MouseSelection.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./MouseSelection.vue?vue&type=style&index=0&id=2c5e1d42&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2c5e1d42\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-05484a24\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"grid-lines\" }\nconst _hoisted_2 = [\"d\", \"stroke\"]\n\nimport { computed } from 'vue'\nimport tinycolor from 'tinycolor2'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport { VIEWPORT_SIZE } from '@/configs/canvas'\nimport type { SlideBackground } from '@/types/slides'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'GridLines',\n setup(__props) {\n\nconst { canvasScale, gridLineSize } = storeToRefs(useMainStore())\nconst { currentSlide, viewportRatio } = storeToRefs(useSlidesStore())\n\nconst background = computed(() => currentSlide.value?.background)\n\n// 计算网格线的颜色,避免与背景的颜色太接近\nconst gridColor = computed(() => {\n const bgColor = background.value?.color || '#fff'\n const colorList = ['#000', '#fff']\n return tinycolor.mostReadable(bgColor, colorList, { includeFallbackColors: true }).setAlpha(.5).toRgbString()\n})\n\n// 网格路径\nconst path = computed(() => {\n const maxX = VIEWPORT_SIZE\n const maxY = VIEWPORT_SIZE * viewportRatio.value\n\n let p = ''\n for (let i = 0; i <= Math.floor(maxY / gridLineSize.value); i++) {\n p += `M0 ${i * gridLineSize.value} L${maxX} ${i * gridLineSize.value} `\n }\n for (let i = 0; i <= Math.floor(maxX / gridLineSize.value); i++) {\n p += `M${i * gridLineSize.value} 0 L${i * gridLineSize.value} ${maxY} `\n }\n return p\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, [\n _createElementVNode(\"path\", {\n style: _normalizeStyle({\n transform: `scale(${_unref(canvasScale)})`,\n }),\n d: path.value,\n fill: \"none\",\n stroke: gridColor.value,\n \"stroke-width\": \"0.3\",\n \"stroke-dasharray\": \"5\"\n }, null, 12, _hoisted_2)\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./GridLines.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./GridLines.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./GridLines.vue?vue&type=style&index=0&id=05484a24&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-05484a24\"]])\n\nexport default __exports__","import { type Ref, computed } from 'vue'\nimport type { SlideBackground } from '@/types/slides'\n\n// 将页面背景数据转换为css样式\nexport default (background: Ref) => {\n const backgroundStyle = computed(() => {\n if (!background.value) return { backgroundColor: '#fff' }\n\n const {\n type,\n color,\n image,\n imageSize,\n gradientColor,\n gradientRotate,\n gradientType,\n } = background.value\n\n // 纯色背景\n if (type === 'solid') return { backgroundColor: color }\n\n // 背景图模式\n // 包括:背景图、背景大小,是否重复\n else if (type === 'image') {\n if (!image) return { backgroundColor: '#fff' }\n if (imageSize === 'repeat') {\n return {\n backgroundImage: `url(${image}`,\n backgroundRepeat: 'repeat',\n backgroundSize: 'contain',\n }\n }\n return {\n backgroundImage: `url(${image}`,\n backgroundRepeat: 'no-repeat',\n backgroundSize: imageSize || 'cover',\n }\n }\n\n // 渐变色背景\n else if (type === 'gradient') {\n const rotate = gradientRotate || 0\n const color1 = gradientColor ? gradientColor[0] : '#fff'\n const color2 = gradientColor ? gradientColor[1] : '#fff'\n \n if (gradientType === 'radial') return { backgroundImage: `radial-gradient(${color1}, ${color2}` }\n return { backgroundImage: `linear-gradient(${rotate}deg, ${color1}, ${color2}` }\n }\n\n return { backgroundColor: '#fff' }\n })\n\n return {\n backgroundStyle,\n }\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { SlideBackground } from '@/types/slides'\nimport GridLines from './GridLines.vue'\nimport useSlideBackgroundStyle from '@/hooks/useSlideBackgroundStyle'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ViewportBackground',\n setup(__props) {\n\nconst { gridLineSize } = storeToRefs(useMainStore())\nconst { currentSlide } = storeToRefs(useSlidesStore())\nconst background = computed(() => currentSlide.value?.background)\n\nconst { backgroundStyle } = useSlideBackgroundStyle(background)\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"viewport-background\",\n style: _normalizeStyle(_unref(backgroundStyle))\n }, [\n (_unref(gridLineSize))\n ? (_openBlock(), _createBlock(GridLines, { key: 0 }))\n : _createCommentVNode(\"\", true)\n ], 4))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./ViewportBackground.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ViewportBackground.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ViewportBackground.vue?vue&type=style&index=0&id=b6b18502&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-b6b18502\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { computed } from 'vue'\nimport type { AlignmentLineAxis } from '@/types/edit'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'AlignmentLine',\n props: {\n type: {},\n axis: {},\n length: {},\n canvasScale: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\n// 吸附对齐线的位置\nconst left = computed(() => props.axis.x * props.canvasScale + 'px')\nconst top = computed(() => props.axis.y * props.canvasScale + 'px')\n\n// 吸附对齐线的长度\nconst sizeStyle = computed(() => {\n if (props.type === 'vertical') return { height: props.length * props.canvasScale + 'px' }\n return { width: props.length * props.canvasScale + 'px' }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"alignment-line\",\n style: _normalizeStyle({ left: left.value, top: top.value })\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass(['line', _ctx.type]),\n style: _normalizeStyle(sizeStyle.value)\n }, null, 6)\n ], 4))\n}\n}\n\n})","\n\n\n\n","import script from \"./AlignmentLine.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./AlignmentLine.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./AlignmentLine.vue?vue&type=style&index=0&id=ed6fc00a&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-ed6fc00a\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-2963c74c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"ruler\" }\n\nimport { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\n\ninterface ViewportStyles {\n top: number\n left: number\n width: number\n height: number\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Ruler',\n props: {\n viewportStyles: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst { canvasScale } = storeToRefs(useMainStore())\n\nconst markerSize = computed(() => {\n return props.viewportStyles.width * canvasScale.value / 10\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: \"h\",\n style: _normalizeStyle({\n width: _ctx.viewportStyles.width * _unref(canvasScale) + 'px',\n left: _ctx.viewportStyles.left + 'px',\n })\n }, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(20, (marker) => {\n return _createElementVNode(\"div\", {\n class: _normalizeClass([\"ruler-marker-100\", { 'hide': markerSize.value < 36, 'omit': markerSize.value < 72 }]),\n key: `marker-100-${marker}`\n }, [\n _createElementVNode(\"span\", null, _toDisplayString(marker), 1)\n ], 2)\n }), 64))\n ], 4),\n _createElementVNode(\"div\", {\n class: \"v\",\n style: _normalizeStyle({\n height: _ctx.viewportStyles.height * _unref(canvasScale) + 'px',\n top: _ctx.viewportStyles.top + 'px',\n })\n }, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(20, (marker) => {\n return _createElementVNode(\"div\", {\n class: _normalizeClass([\"ruler-marker-100\", { 'hide': markerSize.value < 36, 'omit': markerSize.value < 72 }]),\n key: marker,\n style: _normalizeStyle({ height: markerSize.value + 'px' })\n }, [\n _createElementVNode(\"span\", null, _toDisplayString(marker), 1)\n ], 6)\n }), 64))\n ], 4)\n ]))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./Ruler.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Ruler.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Ruler.vue?vue&type=style&index=0&id=2963c74c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2963c74c\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, withModifiers as _withModifiers, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-85b0bbaa\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\"]\nconst _hoisted_2 = [\"d\"]\n\nimport { computed, onMounted, ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useKeyboardStore } from '@/store'\nimport type { CreateElementSelectionData } from '@/types/edit'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ElementCreateSelection',\n emits: [\"created\"],\n setup(__props, { emit: __emit }) {\n\nconst emit = __emit\n\nconst mainStore = useMainStore()\nconst { creatingElement } = storeToRefs(mainStore)\nconst { ctrlOrShiftKeyActive } = storeToRefs(useKeyboardStore())\n\nconst start = ref<[number, number]>()\nconst end = ref<[number, number]>()\n\nconst selectionRef = ref()\nconst offset = ref({\n x: 0,\n y: 0,\n})\nonMounted(() => {\n if (!selectionRef.value) return\n const { x, y } = selectionRef.value.getBoundingClientRect()\n offset.value = { x, y }\n})\n\n// 鼠标拖动创建元素生成位置大小\n// 获取范围的起始位置和终点位置\nconst createSelection = (e: MouseEvent) => {\n let isMouseDown = true\n\n const startPageX = e.pageX\n const startPageY = e.pageY\n start.value = [startPageX, startPageY]\n\n document.onmousemove = e => {\n if (!creatingElement.value || !isMouseDown) return\n\n let currentPageX = e.pageX\n let currentPageY = e.pageY\n\n // 按住Ctrl键或者Shift键时:\n // 对于非线条元素需要锁定宽高比例,对于线条元素需要锁定水平或垂直方向\n if (ctrlOrShiftKeyActive.value) {\n const moveX = currentPageX - startPageX\n const moveY = currentPageY - startPageY\n\n // 水平和垂直方向的拖动距离,后面以拖动距离较大的方向为基础计算另一方向的数据\n const absX = Math.abs(moveX)\n const absY = Math.abs(moveY)\n\n if (creatingElement.value.type === 'shape') {\n\n // 判断是否为反向拖动:从左上到右下为正向操作,此外所有情况都是反向操作\n const isOpposite = (moveY > 0 && moveX < 0) || (moveY < 0 && moveX > 0)\n\n if (absX > absY) {\n currentPageY = isOpposite ? startPageY - moveX : startPageY + moveX\n }\n else {\n currentPageX = isOpposite ? startPageX - moveY : startPageX + moveY\n }\n }\n\n else if (creatingElement.value.type === 'line') {\n if (absX > absY) currentPageY = startPageY\n else currentPageX = startPageX\n }\n }\n\n end.value = [currentPageX, currentPageY]\n }\n\n document.onmouseup = e => {\n document.onmousemove = null\n document.onmouseup = null\n\n if (e.button === 2) {\n setTimeout(() => mainStore.setCreatingElement(null), 0)\n return\n }\n\n isMouseDown = false\n\n const endPageX = e.pageX\n const endPageY = e.pageY\n\n const minSize = 30\n\n if (\n creatingElement.value?.type === 'line' &&\n (Math.abs(endPageX - startPageX) >= minSize || Math.abs(endPageY - startPageY) >= minSize)\n ) {\n emit('created', {\n start: start.value!,\n end: end.value!,\n })\n }\n else if (\n creatingElement.value?.type !== 'line' &&\n (Math.abs(endPageX - startPageX) >= minSize && Math.abs(endPageY - startPageY) >= minSize)\n ) {\n emit('created', {\n start: start.value!,\n end: end.value!,\n })\n }\n else {\n const defaultSize = 200\n const minX = Math.min(endPageX, startPageX)\n const minY = Math.min(endPageY, startPageY)\n const maxX = Math.max(endPageX, startPageX)\n const maxY = Math.max(endPageY, startPageY)\n const offsetX = maxX - minX >= minSize ? maxX - minX : defaultSize\n const offsetY = maxY - minY >= minSize ? maxY - minY : defaultSize\n emit('created', {\n start: [minX, minY],\n end: [minX + offsetX, minY + offsetY],\n })\n }\n }\n}\n\n// 绘制线条的路径相关数据(仅当绘制元素类型为线条时使用)\nconst lineData = computed(() => {\n if (!start.value || !end.value) return null\n if (!creatingElement.value || creatingElement.value.type !== 'line') return null\n\n const [_startX, _startY] = start.value\n const [_endX, _endY] = end.value\n const minX = Math.min(_startX, _endX)\n const maxX = Math.max(_startX, _endX)\n const minY = Math.min(_startY, _endY)\n const maxY = Math.max(_startY, _endY)\n\n const svgWidth = maxX - minX >= 24 ? maxX - minX : 24\n const svgHeight = maxY - minY >= 24 ? maxY - minY : 24\n\n const startX = _startX === minX ? 0 : maxX - minX\n const startY = _startY === minY ? 0 : maxY - minY\n const endX = _endX === minX ? 0 : maxX - minX\n const endY = _endY === minY ? 0 : maxY - minY\n\n const path = `M${startX}, ${startY} L${endX}, ${endY}`\n\n return {\n svgWidth,\n svgHeight,\n startX,\n startY,\n endX,\n endY,\n path,\n }\n})\n\n// 根据生成范围的起始位置和终点位置,计算元素创建时的位置和大小\nconst position = computed(() => {\n if (!start.value || !end.value) return {}\n\n const [startX, startY] = start.value\n const [endX, endY] = end.value\n const minX = Math.min(startX, endX)\n const maxX = Math.max(startX, endX)\n const minY = Math.min(startY, endY)\n const maxY = Math.max(startY, endY)\n\n const width = maxX - minX\n const height = maxY - minY\n\n return {\n left: minX - offset.value.x + 'px',\n top: minY - offset.value.y + 'px',\n width: width + 'px',\n height: height + 'px',\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"element-create-selection\",\n ref_key: \"selectionRef\",\n ref: selectionRef,\n onMousedown: _cache[0] || (_cache[0] = _withModifiers($event => createSelection($event), [\"stop\"])),\n onContextmenu: _cache[1] || (_cache[1] = _withModifiers(() => {}, [\"stop\",\"prevent\"]))\n }, [\n (start.value && end.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass(['selection', _unref(creatingElement)?.type]),\n style: _normalizeStyle(position.value)\n }, [\n (_unref(creatingElement)?.type === 'line' && lineData.value)\n ? (_openBlock(), _createElementBlock(\"svg\", {\n key: 0,\n overflow: \"visible\",\n width: lineData.value.svgWidth,\n height: lineData.value.svgHeight\n }, [\n _createElementVNode(\"path\", {\n d: lineData.value.path,\n stroke: \"#d14424\",\n fill: \"none\",\n \"stroke-width\": \"2\"\n }, null, 8, _hoisted_2)\n ], 8, _hoisted_1))\n : _createCommentVNode(\"\", true)\n ], 6))\n : _createCommentVNode(\"\", true)\n ], 544))\n}\n}\n\n})","\n\n\n\n","import script from \"./ElementCreateSelection.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ElementCreateSelection.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ElementCreateSelection.vue?vue&type=style&index=0&id=85b0bbaa&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-85b0bbaa\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, withModifiers as _withModifiers, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-6dc9876e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { overflow: \"visible\" }\nconst _hoisted_2 = [\"d\", \"fill\"]\n\nimport { computed, onMounted, onUnmounted, ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useKeyboardStore, useMainStore, useSlidesStore } from '@/store'\nimport type { CreateCustomShapeData } from '@/types/edit'\nimport { KEYS } from '@/configs/hotkey'\nimport message from '@/utils/message'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ShapeCreateCanvas',\n emits: [\"created\"],\n setup(__props, { emit: __emit }) {\n\nconst emit = __emit\nconst mainStore = useMainStore()\nconst { ctrlOrShiftKeyActive } = storeToRefs(useKeyboardStore())\nconst { theme } = storeToRefs(useSlidesStore())\n\nconst shapeCanvasRef = ref()\nconst isMouseDown = ref(false)\nconst offset = ref({\n x: 0,\n y: 0,\n})\nonMounted(() => {\n if (!shapeCanvasRef.value) return\n const { x, y } = shapeCanvasRef.value.getBoundingClientRect()\n offset.value = { x, y }\n})\n\nconst mousePosition = ref<[number, number] | null>(null)\nconst points = ref<[number, number][]>([])\nconst closed = ref(false)\n\nconst getPoint = (e: MouseEvent, custom = false) => {\n let pageX = e.pageX - offset.value.x\n let pageY = e.pageY - offset.value.y\n\n if (custom) return { pageX, pageY }\n\n if (ctrlOrShiftKeyActive.value && points.value.length) {\n const [lastPointX, lastPointY] = points.value[points.value.length - 1]\n if (Math.abs(lastPointX - pageX) - Math.abs(lastPointY - pageY) > 0) {\n pageY = lastPointY\n }\n else pageX = lastPointX\n }\n return { pageX, pageY }\n}\n\nconst updateMousePosition = (e: MouseEvent) => {\n if (isMouseDown.value) {\n const { pageX, pageY } = getPoint(e, true)\n points.value.push([pageX, pageY])\n mousePosition.value = null\n return\n }\n\n const { pageX, pageY } = getPoint(e)\n mousePosition.value = [pageX, pageY]\n\n if (points.value.length >= 2) {\n const [firstPointX, firstPointY] = points.value[0]\n if (Math.abs(firstPointX - pageX) < 5 && Math.abs(firstPointY - pageY) < 5) {\n closed.value = true\n }\n else closed.value = false\n }\n else closed.value = false\n}\n\nconst path = computed(() => {\n let d = ''\n for (let i = 0; i < points.value.length; i++) {\n const point = points.value[i]\n if (i === 0) d += `M ${point[0]} ${point[1]} `\n else d += `L ${point[0]} ${point[1]} `\n }\n if (points.value.length && mousePosition.value) {\n d += `L ${mousePosition.value[0]} ${mousePosition.value[1]}`\n }\n return d\n})\n\nconst getCreateData = (close = true) => {\n const xList = points.value.map(item => item[0])\n const yList = points.value.map(item => item[1])\n const minX = Math.min(...xList)\n const minY = Math.min(...yList)\n const maxX = Math.max(...xList)\n const maxY = Math.max(...yList)\n\n const formatedPoints = points.value.map(point => {\n return [point[0] - minX, point[1] - minY]\n })\n\n let path = ''\n for (let i = 0; i < formatedPoints.length; i++) {\n const point = formatedPoints[i]\n if (i === 0) path += `M ${point[0]} ${point[1]} `\n else path += `L ${point[0]} ${point[1]} `\n }\n if (close) path += 'Z'\n\n const start: [number, number] = [minX + offset.value.x, minY + offset.value.y]\n const end: [number, number] = [maxX + offset.value.x, maxY + offset.value.y]\n const viewBox: [number, number] = [maxX - minX, maxY - minY]\n\n return {\n start,\n end,\n path,\n viewBox,\n }\n}\n\nconst addPoint = (e: MouseEvent) => {\n const { pageX, pageY } = getPoint(e)\n isMouseDown.value = true\n\n if (closed.value) emit('created', getCreateData())\n else points.value.push([pageX, pageY])\n\n document.onmouseup = () => {\n isMouseDown.value = false\n }\n}\n\nconst close = () => {\n mainStore.setCreatingCustomShapeState(false)\n}\n\nconst create = () => {\n emit('created', {\n ...getCreateData(false),\n fill: 'rgba(0, 0, 0, 0)',\n outline: {\n width: 2,\n color: theme.value.themeColor,\n style: 'solid',\n },\n })\n close()\n}\n\nconst keydownListener = (e: KeyboardEvent) => {\n const key = e.key.toUpperCase()\n if (key === KEYS.ESC) close()\n if (key === KEYS.ENTER) create()\n}\nonMounted(() => {\n message.success('点击绘制任意形状,首尾闭合完成绘制,按 ESC 键或鼠标右键取消,按 ENTER 键提前完成', {\n duration: 5000,\n })\n document.addEventListener('keydown', keydownListener)\n})\nonUnmounted(() => document.removeEventListener('keydown', keydownListener))\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"shape-create-canvas\",\n ref_key: \"shapeCanvasRef\",\n ref: shapeCanvasRef,\n onMousedown: _cache[0] || (_cache[0] = _withModifiers($event => addPoint($event), [\"stop\"])),\n onMousemove: _cache[1] || (_cache[1] = $event => updateMousePosition($event)),\n onContextmenu: _cache[2] || (_cache[2] = _withModifiers(($event: any) => (close()), [\"stop\",\"prevent\"]))\n }, [\n (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, [\n _createElementVNode(\"path\", {\n d: path.value,\n stroke: \"#d14424\",\n fill: closed.value ? 'rgba(226, 83, 77, 0.15)' : 'none',\n \"stroke-width\": \"2\"\n }, null, 8, _hoisted_2)\n ]))\n ], 544))\n}\n}\n\n})","\n\n\n\n","import script from \"./ShapeCreateCanvas.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ShapeCreateCanvas.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ShapeCreateCanvas.vue?vue&type=style&index=0&id=6dc9876e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6dc9876e\"]])\n\nexport default __exports__","import { computed, type Ref } from 'vue'\nimport { OperateResizeHandlers, OperateBorderLines } from '@/types/edit'\n\nexport default (width: Ref, height: Ref) => {\n // 元素缩放点\n const resizeHandlers = computed(() => {\n return [\n { direction: OperateResizeHandlers.LEFT_TOP, style: {} },\n { direction: OperateResizeHandlers.TOP, style: {left: width.value / 2 + 'px'} },\n { direction: OperateResizeHandlers.RIGHT_TOP, style: {left: width.value + 'px'} },\n { direction: OperateResizeHandlers.LEFT, style: {top: height.value / 2 + 'px'} },\n { direction: OperateResizeHandlers.RIGHT, style: {left: width.value + 'px', top: height.value / 2 + 'px'} },\n { direction: OperateResizeHandlers.LEFT_BOTTOM, style: {top: height.value + 'px'} },\n { direction: OperateResizeHandlers.BOTTOM, style: {left: width.value / 2 + 'px', top: height.value + 'px'} },\n { direction: OperateResizeHandlers.RIGHT_BOTTOM, style: {left: width.value + 'px', top: height.value + 'px'} },\n ]\n })\n\n // 文本元素缩放点\n const textElementResizeHandlers = computed(() => {\n return [\n { direction: OperateResizeHandlers.LEFT, style: {top: height.value / 2 + 'px'} },\n { direction: OperateResizeHandlers.RIGHT, style: {left: width.value + 'px', top: height.value / 2 + 'px'} },\n ]\n })\n const verticalTextElementResizeHandlers = computed(() => {\n return [\n { direction: OperateResizeHandlers.TOP, style: {left: width.value / 2 + 'px'} },\n { direction: OperateResizeHandlers.BOTTOM, style: {left: width.value / 2 + 'px', top: height.value + 'px'} },\n ]\n })\n\n // 元素选中边框线\n const borderLines = computed(() => {\n return [\n { type: OperateBorderLines.T, style: {width: width.value + 'px'} },\n { type: OperateBorderLines.B, style: {top: height.value + 'px', width: width.value + 'px'} },\n { type: OperateBorderLines.L, style: {height: height.value + 'px'} },\n { type: OperateBorderLines.R, style: {left: width.value + 'px', height: height.value + 'px'} },\n ]\n })\n\n return {\n resizeHandlers,\n textElementResizeHandlers,\n verticalTextElementResizeHandlers,\n borderLines,\n }\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { computed } from 'vue'\nimport type { OperateResizeHandlers } from '@/types/edit'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ResizeHandler',\n props: {\n type: {},\n rotate: { default: 0 }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst rotateClassName = computed(() => {\n const prefix = 'rotate-'\n const rotate = props.rotate\n if (rotate > -22.5 && rotate <= 22.5) return prefix + 0\n else if (rotate > 22.5 && rotate <= 67.5) return prefix + 45\n else if (rotate > 67.5 && rotate <= 112.5) return prefix + 90\n else if (rotate > 112.5 && rotate <= 157.5) return prefix + 135\n else if (rotate > 157.5 || rotate <= -157.5) return prefix + 0\n else if (rotate > -157.5 && rotate <= -112.5) return prefix + 45\n else if (rotate > -112.5 && rotate <= -67.5) return prefix + 90\n else if (rotate > -67.5 && rotate <= -22.5) return prefix + 135\n return prefix + 0\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass(['resize-handler', rotateClassName.value, _ctx.type])\n }, null, 2))\n}\n}\n\n})","\n\n\n\n","import script from \"./ResizeHandler.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ResizeHandler.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ResizeHandler.vue?vue&type=style&index=0&id=1e66197f&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1e66197f\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport type { OperateBorderLines } from '@/types/edit'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BorderLine',\n props: {\n type: {},\n isWide: { type: Boolean, default: false }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass(['border-line', _ctx.type, { 'wide': _ctx.isWide }])\n }, null, 2))\n}\n}\n\n})","import script from \"./BorderLine.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BorderLine.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BorderLine.vue?vue&type=style&index=0&id=8346cf6c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-8346cf6c\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createBlock as _createBlock, withModifiers as _withModifiers, createCommentVNode as _createCommentVNode } from \"vue\"\n\nimport { computed, ref, watchEffect } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport type { PPTElement } from '@/types/slides'\nimport { getElementListRange } from '@/utils/element'\nimport type { OperateResizeHandlers, MultiSelectRange } from '@/types/edit'\nimport useCommonOperate from '../hooks/useCommonOperate'\n\nimport ResizeHandler from './ResizeHandler.vue'\nimport BorderLine from './BorderLine.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'MultiSelectOperate',\n props: {\n elementList: {},\n scaleMultiElement: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst { activeElementIdList, canvasScale } = storeToRefs(useMainStore())\n\nconst localActiveElementList = computed(() => props.elementList.filter(el => activeElementIdList.value.includes(el.id)))\n\nconst range = ref({\n minX: 0,\n maxX: 0,\n minY: 0,\n maxY: 0,\n})\n\n// 根据多选元素整体在画布中的范围,计算边框线和缩放点的位置信息\nconst width = computed(() => (range.value.maxX - range.value.minX) * canvasScale.value)\nconst height = computed(() => (range.value.maxY - range.value.minY) * canvasScale.value)\nconst { resizeHandlers, borderLines } = useCommonOperate(width, height)\n\n// 计算多选元素整体在画布中的范围\nconst setRange = () => {\n const { minX, maxX, minY, maxY } = getElementListRange(localActiveElementList.value)\n range.value = { minX, maxX, minY, maxY }\n}\nwatchEffect(setRange)\n\n// 禁用多选状态下缩放:仅未旋转的图片和形状可以在多选状态下缩放\nconst disableResize = computed(() => {\n return localActiveElementList.value.some(item => {\n if (\n (item.type === 'image' || item.type === 'shape') && \n !item.rotate\n ) return false\n return true\n })\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"multi-select-operate\",\n style: _normalizeStyle({\n left: range.value.minX * _unref(canvasScale) + 'px',\n top: range.value.minY * _unref(canvasScale) + 'px',\n })\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(borderLines), (line) => {\n return (_openBlock(), _createBlock(BorderLine, {\n key: line.type,\n type: line.type,\n style: _normalizeStyle(line.style)\n }, null, 8, [\"type\", \"style\"]))\n }), 128)),\n (!disableResize.value)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(_unref(resizeHandlers), (point) => {\n return (_openBlock(), _createBlock(ResizeHandler, {\n key: point.direction,\n type: point.direction,\n style: _normalizeStyle(point.style),\n onMousedown: _withModifiers(($event: any) => (_ctx.scaleMultiElement($event, range.value, point.direction)), [\"stop\"])\n }, null, 8, [\"type\", \"style\", \"onMousedown\"]))\n }), 128))\n : _createCommentVNode(\"\", true)\n ], 4))\n}\n}\n\n})","\n\n\n\n","import script from \"./MultiSelectOperate.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./MultiSelectOperate.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./MultiSelectOperate.vue?vue&type=style&index=0&id=97dc9b9a&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-97dc9b9a\"]])\n\nexport default __exports__","\n\n\n\n","import { render } from \"./RotateHandler.vue?vue&type=template&id=b99d8dae&scoped=true\"\nconst script = {}\n\nimport \"./RotateHandler.vue?vue&type=style&index=0&id=b99d8dae&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b99d8dae\"]])\n\nexport default __exports__","\r\n\r\n\r\n\r\n\r\n\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createBlock as _createBlock, withModifiers as _withModifiers, createVNode as _createVNode, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass } from \"vue\"\n\nimport { computed } from 'vue'\r\nimport { storeToRefs } from 'pinia'\r\nimport { useMainStore } from '@/store'\r\nimport type { PPTImageElement } from '@/types/slides'\r\nimport type { OperateResizeHandlers } from '@/types/edit'\r\nimport useCommonOperate from '../hooks/useCommonOperate'\r\n\r\nimport RotateHandler from './RotateHandler.vue'\r\nimport ResizeHandler from './ResizeHandler.vue'\r\nimport BorderLine from './BorderLine.vue'\r\n\r\n\r\nconst __default__ = {\r\n inheritAttrs: false,\r\n}\r\n\nexport default /*#__PURE__*/_defineComponent({\n ...__default__,\n __name: 'ImageElementOperate',\n props: {\n elementInfo: {},\n handlerVisible: { type: Boolean },\n rotateElement: { type: Function },\n scaleElement: { type: Function }\n },\n setup(__props: any) {\n\r\nconst props = __props\r\n\r\nconst { canvasScale, clipingImageElementId } = storeToRefs(useMainStore())\r\n\r\nconst isCliping = computed(() => clipingImageElementId.value === props.elementInfo.id)\r\n\r\nconst scaleWidth = computed(() => props.elementInfo.width * canvasScale.value)\r\nconst scaleHeight = computed(() => props.elementInfo.height * canvasScale.value)\r\nconst { resizeHandlers, borderLines } = useCommonOperate(scaleWidth, scaleHeight)\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"image-element-operate\", { 'cliping': isCliping.value }])\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(borderLines), (line) => {\n return (_openBlock(), _createBlock(BorderLine, {\n class: \"operate-border-line\",\n key: line.type,\n type: line.type,\n style: _normalizeStyle(line.style)\n }, null, 8, [\"type\", \"style\"]))\n }), 128)),\n (_ctx.handlerVisible)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(resizeHandlers), (point) => {\n return (_openBlock(), _createBlock(ResizeHandler, {\n class: \"operate-resize-handler\",\n key: point.direction,\n type: point.direction,\n rotate: _ctx.elementInfo.rotate,\n style: _normalizeStyle(point.style),\n onMousedown: _withModifiers($event => _ctx.scaleElement($event, _ctx.elementInfo, point.direction), [\"stop\"])\n }, null, 8, [\"type\", \"rotate\", \"style\", \"onMousedown\"]))\n }), 128)),\n _createVNode(RotateHandler, {\n class: \"operate-rotate-handler\",\n style: _normalizeStyle({ left: scaleWidth.value / 2 + 'px' }),\n onMousedown: _cache[0] || (_cache[0] = _withModifiers($event => _ctx.rotateElement($event, _ctx.elementInfo), [\"stop\"]))\n }, null, 8, [\"style\"])\n ], 64))\n : _createCommentVNode(\"\", true)\n ], 2))\n}\n}\n\n})","import script from \"./ImageElementOperate.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ImageElementOperate.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ImageElementOperate.vue?vue&type=style&index=0&id=7bcad5a9&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-7bcad5a9\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createBlock as _createBlock, withModifiers as _withModifiers, createVNode as _createVNode, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"text-element-operate\" }\n\nimport { computed } from 'vue'\r\nimport { storeToRefs } from 'pinia'\r\nimport { useMainStore } from '@/store'\r\nimport type { PPTTextElement } from '@/types/slides'\r\nimport type { OperateResizeHandlers } from '@/types/edit'\r\nimport useCommonOperate from '../hooks/useCommonOperate'\r\n\r\nimport RotateHandler from './RotateHandler.vue'\r\nimport ResizeHandler from './ResizeHandler.vue'\r\nimport BorderLine from './BorderLine.vue'\r\n\r\n\r\nconst __default__ = {\r\n inheritAttrs: false,\r\n}\r\n\nexport default /*#__PURE__*/_defineComponent({\n ...__default__,\n __name: 'TextElementOperate',\n props: {\n elementInfo: {},\n handlerVisible: { type: Boolean },\n rotateElement: { type: Function },\n scaleElement: { type: Function }\n },\n setup(__props: any) {\n\r\nconst props = __props\r\n\r\nconst { canvasScale } = storeToRefs(useMainStore())\r\n\r\nconst scaleWidth = computed(() => props.elementInfo.width * canvasScale.value)\r\nconst scaleHeight = computed(() => props.elementInfo.height * canvasScale.value)\r\n\r\nconst { textElementResizeHandlers, verticalTextElementResizeHandlers, borderLines } = useCommonOperate(scaleWidth, scaleHeight)\r\nconst resizeHandlers = computed(() => props.elementInfo.vertical ? verticalTextElementResizeHandlers.value : textElementResizeHandlers.value)\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(borderLines), (line) => {\n return (_openBlock(), _createBlock(BorderLine, {\n class: \"operate-border-line\",\n key: line.type,\n type: line.type,\n style: _normalizeStyle(line.style)\n }, null, 8, [\"type\", \"style\"]))\n }), 128)),\n (_ctx.handlerVisible)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(resizeHandlers.value, (point) => {\n return (_openBlock(), _createBlock(ResizeHandler, {\n class: \"operate-resize-handler\",\n key: point.direction,\n type: point.direction,\n rotate: _ctx.elementInfo.rotate,\n style: _normalizeStyle(point.style),\n onMousedown: _withModifiers($event => _ctx.scaleElement($event, _ctx.elementInfo, point.direction), [\"stop\"])\n }, null, 8, [\"type\", \"rotate\", \"style\", \"onMousedown\"]))\n }), 128)),\n _createVNode(RotateHandler, {\n class: \"operate-rotate-handler\",\n style: _normalizeStyle({ left: scaleWidth.value / 2 + 'px' }),\n onMousedown: _cache[0] || (_cache[0] = _withModifiers($event => _ctx.rotateElement($event, _ctx.elementInfo), [\"stop\"]))\n }, null, 8, [\"style\"])\n ], 64))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n","import script from \"./TextElementOperate.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./TextElementOperate.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createBlock as _createBlock, withModifiers as _withModifiers, createVNode as _createVNode, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-52dcdbf8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"shape-element-operate\" }\n\nimport { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport type { PPTShapeElement } from '@/types/slides'\nimport type { OperateResizeHandlers } from '@/types/edit'\nimport { SHAPE_PATH_FORMULAS } from '@/configs/shapes'\nimport useCommonOperate from '../hooks/useCommonOperate'\n\nimport RotateHandler from './RotateHandler.vue'\nimport ResizeHandler from './ResizeHandler.vue'\nimport BorderLine from './BorderLine.vue'\n\n\nconst __default__ = {\n inheritAttrs: false,\n}\n\nexport default /*#__PURE__*/_defineComponent({\n ...__default__,\n __name: 'ShapeElementOperate',\n props: {\n elementInfo: {},\n handlerVisible: { type: Boolean },\n rotateElement: { type: Function },\n scaleElement: { type: Function },\n moveShapeKeypoint: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst { canvasScale } = storeToRefs(useMainStore())\n\nconst scaleWidth = computed(() => props.elementInfo.width * canvasScale.value)\nconst scaleHeight = computed(() => props.elementInfo.height * canvasScale.value)\nconst { resizeHandlers, borderLines } = useCommonOperate(scaleWidth, scaleHeight)\n\nconst keypointStyle = computed(() => {\n if (!props.elementInfo.pathFormula || props.elementInfo.keypoint === undefined) return {}\n\n const pathFormula = SHAPE_PATH_FORMULAS[props.elementInfo.pathFormula]\n if ('editable' in pathFormula) {\n const keypointPos = pathFormula.getBaseSize(props.elementInfo.width, props.elementInfo.height) * props.elementInfo.keypoint\n if (pathFormula.relative === 'left') return { left: keypointPos * canvasScale.value + 'px' }\n if (pathFormula.relative === 'right') return { left: (props.elementInfo.width - keypointPos) * canvasScale.value + 'px' }\n if (pathFormula.relative === 'center') return { left: (props.elementInfo.width - keypointPos) / 2 * canvasScale.value + 'px' }\n if (pathFormula.relative === 'top') return { top: keypointPos * canvasScale.value + 'px' }\n if (pathFormula.relative === 'bottom') return { top: (props.elementInfo.height - keypointPos) * canvasScale.value + 'px' }\n }\n return {}\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(borderLines), (line) => {\n return (_openBlock(), _createBlock(BorderLine, {\n class: \"operate-border-line\",\n key: line.type,\n type: line.type,\n style: _normalizeStyle(line.style)\n }, null, 8, [\"type\", \"style\"]))\n }), 128)),\n (_ctx.handlerVisible)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(resizeHandlers), (point) => {\n return (_openBlock(), _createBlock(ResizeHandler, {\n class: \"operate-resize-handler\",\n key: point.direction,\n type: point.direction,\n rotate: _ctx.elementInfo.rotate,\n style: _normalizeStyle(point.style),\n onMousedown: _withModifiers($event => _ctx.scaleElement($event, _ctx.elementInfo, point.direction), [\"stop\"])\n }, null, 8, [\"type\", \"rotate\", \"style\", \"onMousedown\"]))\n }), 128)),\n _createVNode(RotateHandler, {\n class: \"operate-rotate-handler\",\n style: _normalizeStyle({ left: scaleWidth.value / 2 + 'px' }),\n onMousedown: _cache[0] || (_cache[0] = _withModifiers($event => _ctx.rotateElement($event, _ctx.elementInfo), [\"stop\"]))\n }, null, 8, [\"style\"]),\n (_ctx.elementInfo.keypoint !== undefined)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"operate-keypoint-handler\",\n style: _normalizeStyle(keypointStyle.value),\n onMousedown: _cache[1] || (_cache[1] = _withModifiers($event => _ctx.moveShapeKeypoint($event, _ctx.elementInfo), [\"stop\"]))\n }, null, 36))\n : _createCommentVNode(\"\", true)\n ], 64))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\n\n\n\n\n\n","import script from \"./ShapeElementOperate.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ShapeElementOperate.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ShapeElementOperate.vue?vue&type=style&index=0&id=52dcdbf8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-52dcdbf8\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, withModifiers as _withModifiers, normalizeStyle as _normalizeStyle, createBlock as _createBlock, unref as _unref, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-3aa5cc44\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"line-element-operate\" }\nconst _hoisted_2 = [\"width\", \"height\", \"stroke\"]\nconst _hoisted_3 = { key: 0 }\nconst _hoisted_4 = [\"x1\", \"y1\", \"x2\", \"y2\"]\nconst _hoisted_5 = [\"x1\", \"y1\", \"x2\", \"y2\"]\nconst _hoisted_6 = [\"x1\", \"y1\", \"x2\", \"y2\"]\nconst _hoisted_7 = [\"x1\", \"y1\", \"x2\", \"y2\"]\n\nimport { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport type { PPTLineElement } from '@/types/slides'\nimport { OperateLineHandlers } from '@/types/edit'\n\nimport ResizeHandler from './ResizeHandler.vue'\n\n\nconst __default__ = {\n inheritAttrs: false,\n}\n\nexport default /*#__PURE__*/_defineComponent({\n ...__default__,\n __name: 'LineElementOperate',\n props: {\n elementInfo: {},\n handlerVisible: { type: Boolean },\n dragLineElement: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst { canvasScale } = storeToRefs(useMainStore())\n\nconst svgWidth = computed(() => Math.max(props.elementInfo.start[0], props.elementInfo.end[0]))\nconst svgHeight = computed(() => Math.max(props.elementInfo.start[1], props.elementInfo.end[1]))\n\nconst resizeHandlers = computed(() => {\n const handlers = [\n {\n handler: OperateLineHandlers.START,\n style: {\n left: props.elementInfo.start[0] * canvasScale.value + 'px',\n top: props.elementInfo.start[1] * canvasScale.value + 'px',\n }\n },\n {\n handler: OperateLineHandlers.END,\n style: {\n left: props.elementInfo.end[0] * canvasScale.value + 'px',\n top: props.elementInfo.end[1] * canvasScale.value + 'px',\n }\n },\n ]\n\n if (props.elementInfo.curve || props.elementInfo.broken) {\n const ctrlHandler = (props.elementInfo.curve || props.elementInfo.broken) as [number, number]\n\n handlers.push({\n handler: OperateLineHandlers.C,\n style: {\n left: ctrlHandler[0] * canvasScale.value + 'px',\n top: ctrlHandler[1] * canvasScale.value + 'px',\n }\n })\n }\n else if (props.elementInfo.cubic) {\n const [ctrlHandler1, ctrlHandler2] = props.elementInfo.cubic\n handlers.push({\n handler: OperateLineHandlers.C1,\n style: {\n left: ctrlHandler1[0] * canvasScale.value + 'px',\n top: ctrlHandler1[1] * canvasScale.value + 'px',\n }\n })\n handlers.push({\n handler: OperateLineHandlers.C2,\n style: {\n left: ctrlHandler2[0] * canvasScale.value + 'px',\n top: ctrlHandler2[1] * canvasScale.value + 'px',\n }\n })\n }\n\n return handlers\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.handlerVisible)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(resizeHandlers.value, (point) => {\n return (_openBlock(), _createBlock(ResizeHandler, {\n class: \"operate-resize-handler\",\n key: point.handler,\n style: _normalizeStyle(point.style),\n onMousedown: _withModifiers($event => _ctx.dragLineElement($event, _ctx.elementInfo, point.handler), [\"stop\"])\n }, null, 8, [\"style\", \"onMousedown\"]))\n }), 128)),\n (_openBlock(), _createElementBlock(\"svg\", {\n width: svgWidth.value || 1,\n height: svgHeight.value || 1,\n stroke: _ctx.elementInfo.color,\n overflow: \"visible\",\n style: _normalizeStyle({ transform: `scale(${_unref(canvasScale)})` })\n }, [\n (_ctx.elementInfo.curve)\n ? (_openBlock(), _createElementBlock(\"g\", _hoisted_3, [\n _createElementVNode(\"line\", {\n class: \"anchor-line\",\n x1: _ctx.elementInfo.start[0],\n y1: _ctx.elementInfo.start[1],\n x2: _ctx.elementInfo.curve[0],\n y2: _ctx.elementInfo.curve[1]\n }, null, 8, _hoisted_4),\n _createElementVNode(\"line\", {\n class: \"anchor-line\",\n x1: _ctx.elementInfo.end[0],\n y1: _ctx.elementInfo.end[1],\n x2: _ctx.elementInfo.curve[0],\n y2: _ctx.elementInfo.curve[1]\n }, null, 8, _hoisted_5)\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.elementInfo.cubic)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 1 }, _renderList(_ctx.elementInfo.cubic, (item, index) => {\n return (_openBlock(), _createElementBlock(\"g\", { key: index }, [\n (index === 0)\n ? (_openBlock(), _createElementBlock(\"line\", {\n key: 0,\n class: \"anchor-line\",\n x1: _ctx.elementInfo.start[0],\n y1: _ctx.elementInfo.start[1],\n x2: item[0],\n y2: item[1]\n }, null, 8, _hoisted_6))\n : _createCommentVNode(\"\", true),\n (index === 1)\n ? (_openBlock(), _createElementBlock(\"line\", {\n key: 1,\n class: \"anchor-line\",\n x1: _ctx.elementInfo.end[0],\n y1: _ctx.elementInfo.end[1],\n x2: item[0],\n y2: item[1]\n }, null, 8, _hoisted_7))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n : _createCommentVNode(\"\", true)\n ], 12, _hoisted_2))\n ], 64))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\n\n\n\n\n\n","import script from \"./LineElementOperate.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./LineElementOperate.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./LineElementOperate.vue?vue&type=style&index=0&id=3aa5cc44&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3aa5cc44\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createBlock as _createBlock, withModifiers as _withModifiers, createVNode as _createVNode, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"table-element-operate\" }\n\nimport { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport type { PPTTableElement } from '@/types/slides'\nimport type { OperateResizeHandlers } from '@/types/edit'\nimport useCommonOperate from '../hooks/useCommonOperate'\n\nimport RotateHandler from './RotateHandler.vue'\nimport ResizeHandler from './ResizeHandler.vue'\nimport BorderLine from './BorderLine.vue'\n\n\nconst __default__ = {\n inheritAttrs: false,\n}\n\nexport default /*#__PURE__*/_defineComponent({\n ...__default__,\n __name: 'TableElementOperate',\n props: {\n elementInfo: {},\n handlerVisible: { type: Boolean },\n rotateElement: { type: Function },\n scaleElement: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst { canvasScale } = storeToRefs(useMainStore())\n\nconst outlineWidth = computed(() => props.elementInfo.outline.width || 1)\n\nconst scaleWidth = computed(() => (props.elementInfo.width + outlineWidth.value) * canvasScale.value)\nconst scaleHeight = computed(() => props.elementInfo.height * canvasScale.value)\n\nconst { resizeHandlers, borderLines } = useCommonOperate(scaleWidth, scaleHeight)\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(borderLines), (line) => {\n return (_openBlock(), _createBlock(BorderLine, {\n class: \"operate-border-line\",\n key: line.type,\n type: line.type,\n style: _normalizeStyle(line.style)\n }, null, 8, [\"type\", \"style\"]))\n }), 128)),\n (_ctx.handlerVisible)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(resizeHandlers), (point) => {\n return (_openBlock(), _createBlock(ResizeHandler, {\n class: \"operate-resize-handler\",\n key: point.direction,\n type: point.direction,\n rotate: _ctx.elementInfo.rotate,\n style: _normalizeStyle(point.style),\n onMousedown: _withModifiers($event => _ctx.scaleElement($event, _ctx.elementInfo, point.direction), [\"stop\"])\n }, null, 8, [\"type\", \"rotate\", \"style\", \"onMousedown\"]))\n }), 128)),\n _createVNode(RotateHandler, {\n class: \"operate-rotate-handler\",\n style: _normalizeStyle({ left: scaleWidth.value / 2 + 'px' }),\n onMousedown: _cache[0] || (_cache[0] = _withModifiers($event => _ctx.rotateElement($event, _ctx.elementInfo), [\"stop\"]))\n }, null, 8, [\"style\"])\n ], 64))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./TableElementOperate.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./TableElementOperate.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createBlock as _createBlock, withModifiers as _withModifiers, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"common-element-operate\" }\n\nimport { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore } from '@/store'\nimport type { PPTVideoElement, PPTLatexElement, PPTAudioElement, PPTChartElement } from '@/types/slides'\nimport type { OperateResizeHandlers } from '@/types/edit'\nimport useCommonOperate from '../hooks/useCommonOperate'\n\nimport RotateHandler from './RotateHandler.vue'\nimport ResizeHandler from './ResizeHandler.vue'\nimport BorderLine from './BorderLine.vue'\n\ntype PPTElement = PPTVideoElement | PPTLatexElement | PPTAudioElement | PPTChartElement\n\n\nconst __default__ = {\n inheritAttrs: false,\n}\n\nexport default /*#__PURE__*/_defineComponent({\n ...__default__,\n __name: 'CommonElementOperate',\n props: {\n elementInfo: {},\n handlerVisible: { type: Boolean },\n rotateElement: { type: Function },\n scaleElement: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst { canvasScale } = storeToRefs(useMainStore())\n\nconst scaleWidth = computed(() => props.elementInfo.width * canvasScale.value)\nconst scaleHeight = computed(() => props.elementInfo.height * canvasScale.value)\nconst { resizeHandlers, borderLines } = useCommonOperate(scaleWidth, scaleHeight)\n\nconst cannotRotate = computed(() => ['chart', 'video', 'audio'].includes(props.elementInfo.type))\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(borderLines), (line) => {\n return (_openBlock(), _createBlock(BorderLine, {\n class: \"operate-border-line\",\n key: line.type,\n type: line.type,\n style: _normalizeStyle(line.style)\n }, null, 8, [\"type\", \"style\"]))\n }), 128)),\n (_ctx.handlerVisible)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(resizeHandlers), (point) => {\n return (_openBlock(), _createBlock(ResizeHandler, {\n class: \"operate-resize-handler\",\n key: point.direction,\n type: point.direction,\n rotate: _ctx.elementInfo.rotate,\n style: _normalizeStyle(point.style),\n onMousedown: _withModifiers($event => _ctx.scaleElement($event, _ctx.elementInfo, point.direction), [\"stop\"])\n }, null, 8, [\"type\", \"rotate\", \"style\", \"onMousedown\"]))\n }), 128)),\n (!cannotRotate.value)\n ? (_openBlock(), _createBlock(RotateHandler, {\n key: 0,\n class: \"operate-rotate-handler\",\n style: _normalizeStyle({ left: scaleWidth.value / 2 + 'px' }),\n onMousedown: _cache[0] || (_cache[0] = _withModifiers($event => _ctx.rotateElement($event, _ctx.elementInfo), [\"stop\"]))\n }, null, 8, [\"style\"]))\n : _createCommentVNode(\"\", true)\n ], 64))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./CommonElementOperate.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./CommonElementOperate.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { useSlidesStore } from '@/store'\nimport type { PPTElement, PPTElementLink } from '@/types/slides'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\nimport message from '@/utils/message'\n\nexport default () => {\n const slidesStore = useSlidesStore()\n\n const { addHistorySnapshot } = useHistorySnapshot()\n\n const setLink = (handleElement: PPTElement, link: PPTElementLink) => {\n const linkRegExp = /^(https?):\\/\\/[\\w\\-]+(\\.[\\w\\-]+)+([\\w\\-.,@?^=%&:\\/~+#]*[\\w\\-@?^=%&\\/~+#])?$/\n if (link.type === 'web' && !linkRegExp.test(link.target)) {\n message.error('不是正确的网页链接地址')\n return false\n }\n if (link.type === 'slide' && !link.target) {\n message.error('请先选择链接目标')\n return false\n }\n const props = { link }\n slidesStore.updateElement({ id: handleElement.id, props })\n addHistorySnapshot()\n\n return true\n }\n\n const removeLink = (handleElement: PPTElement) => {\n slidesStore.removeElementProps({ id: handleElement.id, propName: 'link' })\n addHistorySnapshot()\n }\n\n return {\n setLink,\n removeLink,\n }\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Divider',\n props: {\n type: { default: 'horizontal' },\n margin: { default: 0 }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass(['divider', _ctx.type]),\n style: _normalizeStyle({\n margin: _ctx.type === 'horizontal' ? `${_ctx.margin || 24}px 0` : `0 ${_ctx.margin || 8}px`\n })\n }, null, 6))\n}\n}\n\n})","import script from \"./Divider.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Divider.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Divider.vue?vue&type=style&index=0&id=6b66cde8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-6b66cde8\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, createVNode as _createVNode, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-316c4664\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"href\"]\nconst _hoisted_2 = { class: \"btns\" }\n\nimport { computed } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTElement, PPTElementLink } from '@/types/slides'\nimport useLink from '@/hooks/useLink'\nimport Divider from '@/components/Divider.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'LinkHandler',\n props: {\n elementInfo: {},\n link: {},\n openLinkDialog: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst mainStore = useMainStore()\nconst slidesStore = useSlidesStore()\nconst { canvasScale } = storeToRefs(mainStore)\nconst { slides } = storeToRefs(slidesStore)\nconst { removeLink } = useLink()\nconst height = computed(() => props.elementInfo.type === 'line' ? 0 : props.elementInfo.height)\n\nconst turnTarget = (slideId: string) => {\n const targetIndex = slides.value.findIndex(item => item.id === slideId)\n if (targetIndex !== -1) {\n mainStore.setActiveElementIdList([])\n slidesStore.updateSlideIndex(targetIndex)\n }\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"link-handler\",\n style: _normalizeStyle({ top: height.value * _unref(canvasScale) + 10 + 'px' })\n }, [\n (_ctx.link.type === 'web')\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 0,\n class: \"link\",\n href: _ctx.link.target,\n target: \"_blank\"\n }, _toDisplayString(_ctx.link.target), 9, _hoisted_1))\n : (_openBlock(), _createElementBlock(\"a\", {\n key: 1,\n class: \"link\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (turnTarget(_ctx.link.target)))\n }, \"幻灯片页面 \" + _toDisplayString(_ctx.link.target), 1)),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: \"btn\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.openLinkDialog()))\n }, \"更换\"),\n _createVNode(Divider, { type: \"vertical\" }),\n _createElementVNode(\"div\", {\n class: \"btn\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_unref(removeLink)(_ctx.elementInfo)))\n }, \"移除\")\n ])\n ], 4))\n}\n}\n\n})","\n\n\n\n","import script from \"./LinkHandler.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./LinkHandler.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./LinkHandler.vue?vue&type=style&index=0&id=316c4664&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-316c4664\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, withModifiers as _withModifiers, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5ec1ff35\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 1,\n class: \"animation-index\"\n}\n\nimport { computed } from 'vue'\r\nimport { storeToRefs } from 'pinia'\r\nimport { useMainStore, useSlidesStore } from '@/store'\r\nimport {\r\n ElementTypes,\r\n type PPTElement,\r\n type PPTLineElement,\r\n type PPTVideoElement,\r\n type PPTAudioElement,\r\n type PPTShapeElement,\r\n type PPTChartElement,\r\n} from '@/types/slides'\r\nimport type { OperateLineHandlers, OperateResizeHandlers } from '@/types/edit'\r\n\r\nimport ImageElementOperate from './ImageElementOperate.vue'\r\nimport TextElementOperate from './TextElementOperate.vue'\r\nimport ShapeElementOperate from './ShapeElementOperate.vue'\r\nimport LineElementOperate from './LineElementOperate.vue'\r\nimport TableElementOperate from './TableElementOperate.vue'\r\nimport CommonElementOperate from './CommonElementOperate.vue'\r\nimport LinkHandler from './LinkHandler.vue'\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n elementInfo: {},\n isSelected: { type: Boolean },\n isActive: { type: Boolean },\n isActiveGroupElement: { type: Boolean },\n isMultiSelect: { type: Boolean },\n rotateElement: { type: Function },\n scaleElement: { type: Function },\n dragLineElement: { type: Function },\n moveShapeKeypoint: { type: Function },\n openLinkDialog: { type: Function }\n },\n setup(__props: any) {\n\r\nconst props = __props\r\n\r\nconst { canvasScale, toolbarState } = storeToRefs(useMainStore())\r\nconst { formatedAnimations } = storeToRefs(useSlidesStore())\r\n\r\nconst currentOperateComponent = computed(() => {\r\n const elementTypeMap = {\r\n [ElementTypes.IMAGE]: ImageElementOperate,\r\n [ElementTypes.TEXT]: TextElementOperate,\r\n [ElementTypes.SHAPE]: ShapeElementOperate,\r\n [ElementTypes.LINE]: LineElementOperate,\r\n [ElementTypes.TABLE]: TableElementOperate,\r\n [ElementTypes.CHART]: CommonElementOperate,\r\n [ElementTypes.LATEX]: CommonElementOperate,\r\n [ElementTypes.VIDEO]: CommonElementOperate,\r\n [ElementTypes.AUDIO]: CommonElementOperate,\r\n }\r\n return elementTypeMap[props.elementInfo.type] || null\r\n})\r\n\r\nconst elementIndexListInAnimation = computed(() => {\r\n const indexList = []\r\n for (let i = 0; i < formatedAnimations.value.length; i++) {\r\n const elIds = formatedAnimations.value[i].animations.map(item => item.elId)\r\n if (elIds.includes(props.elementInfo.id)) indexList.push(i)\r\n }\r\n return indexList\r\n})\r\n\r\nconst rotate = computed(() => 'rotate' in props.elementInfo ? props.elementInfo.rotate : 0)\r\nconst height = computed(() => 'height' in props.elementInfo ? props.elementInfo.height : 0)\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"operate\", { 'multi-select': _ctx.isMultiSelect && !_ctx.isActive }]),\n style: _normalizeStyle({\r\n top: _ctx.elementInfo.top * _unref(canvasScale) + 'px',\r\n left: _ctx.elementInfo.left * _unref(canvasScale) + 'px',\r\n transform: `rotate(${rotate.value}deg)`,\r\n transformOrigin: `${_ctx.elementInfo.width * _unref(canvasScale) / 2}px ${height.value * _unref(canvasScale) / 2}px`,\r\n })\n }, [\n (_ctx.isSelected)\n ? (_openBlock(), _createBlock(_resolveDynamicComponent(currentOperateComponent.value), {\n key: 0,\n elementInfo: _ctx.elementInfo,\n handlerVisible: !_ctx.elementInfo.lock && (_ctx.isActiveGroupElement || !_ctx.isMultiSelect),\n rotateElement: _ctx.rotateElement,\n scaleElement: _ctx.scaleElement,\n dragLineElement: _ctx.dragLineElement,\n moveShapeKeypoint: _ctx.moveShapeKeypoint\n }, null, 8, [\"elementInfo\", \"handlerVisible\", \"rotateElement\", \"scaleElement\", \"dragLineElement\", \"moveShapeKeypoint\"]))\n : _createCommentVNode(\"\", true),\n (_unref(toolbarState) === 'elAnimation' && elementIndexListInAnimation.value.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(elementIndexListInAnimation.value, (index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"index-item\",\n key: index\n }, _toDisplayString(index + 1), 1))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isActive && _ctx.elementInfo.link)\n ? (_openBlock(), _createBlock(LinkHandler, {\n key: 2,\n elementInfo: _ctx.elementInfo,\n link: _ctx.elementInfo.link,\n openLinkDialog: _ctx.openLinkDialog,\n onMousedown: _cache[0] || (_cache[0] = _withModifiers(() => {}, [\"stop\"]))\n }, null, 8, [\"elementInfo\", \"link\", \"openLinkDialog\"]))\n : _createCommentVNode(\"\", true)\n ], 6))\n}\n}\n\n})","\r\n\r\n\r\n\r\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=5ec1ff35&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5ec1ff35\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-24fef706\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"src\"]\n\nimport { computed } from 'vue'\nimport type { PPTImageElement } from '@/types/slides'\nimport useElementShadow from '@/views/components/element/hooks/useElementShadow'\nimport useElementFlip from '@/views/components/element/hooks/useElementFlip'\nimport useClipImage from './useClipImage'\nimport useFilter from './useFilter'\n\nimport ImageOutline from './ImageOutline/index.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseImageElement',\n props: {\n elementInfo: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst shadow = computed(() => props.elementInfo.shadow)\nconst { shadowStyle } = useElementShadow(shadow)\n\nconst flipH = computed(() => props.elementInfo.flipH)\nconst flipV = computed(() => props.elementInfo.flipV)\nconst { flipStyle } = useElementFlip(flipH, flipV)\n\nconst clip = computed(() => props.elementInfo.clip)\nconst { clipShape, imgPosition } = useClipImage(clip)\n\nconst filters = computed(() => props.elementInfo.filters)\nconst { filter } = useFilter(filters)\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"base-element-image\",\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _createElementVNode(\"div\", {\n class: \"element-content\",\n style: _normalizeStyle({\n filter: _unref(shadowStyle) ? `drop-shadow(${_unref(shadowStyle)})` : '',\n transform: _unref(flipStyle),\n })\n }, [\n _createVNode(ImageOutline, { elementInfo: _ctx.elementInfo }, null, 8, [\"elementInfo\"]),\n _createElementVNode(\"div\", {\n class: \"image-content\",\n style: _normalizeStyle({ clipPath: _unref(clipShape).style })\n }, [\n _createElementVNode(\"img\", {\n src: _ctx.elementInfo.src,\n draggable: false,\n style: _normalizeStyle({\n top: _unref(imgPosition).top,\n left: _unref(imgPosition).left,\n width: _unref(imgPosition).width,\n height: _unref(imgPosition).height,\n filter: _unref(filter),\n }),\n alt: \"\"\n }, null, 12, _hoisted_1),\n (_ctx.elementInfo.colorMask)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"color-mask\",\n style: _normalizeStyle({\n backgroundColor: _ctx.elementInfo.colorMask,\n })\n }, null, 4))\n : _createCommentVNode(\"\", true)\n ], 4)\n ], 4)\n ], 4)\n ], 4))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./BaseImageElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BaseImageElement.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BaseImageElement.vue?vue&type=style&index=0&id=24fef706&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-24fef706\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-52a206f2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"innerHTML\"]\n\nimport { computed } from 'vue'\nimport type { PPTTextElement } from '@/types/slides'\nimport ElementOutline from '@/views/components/element/ElementOutline.vue'\n\nimport useElementShadow from '@/views/components/element/hooks/useElementShadow'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseTextElement',\n props: {\n elementInfo: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst shadow = computed(() => props.elementInfo.shadow)\nconst { shadowStyle } = useElementShadow(shadow)\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"base-element-text\",\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _createElementVNode(\"div\", {\n class: \"element-content\",\n style: _normalizeStyle({\n width: _ctx.elementInfo.vertical ? 'auto' : _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.vertical ? _ctx.elementInfo.height + 'px' : 'auto',\n backgroundColor: _ctx.elementInfo.fill,\n opacity: _ctx.elementInfo.opacity,\n textShadow: _unref(shadowStyle),\n lineHeight: _ctx.elementInfo.lineHeight,\n letterSpacing: (_ctx.elementInfo.wordSpace || 0) + 'px',\n color: _ctx.elementInfo.defaultColor,\n fontFamily: _ctx.elementInfo.defaultFontName,\n writingMode: _ctx.elementInfo.vertical ? 'vertical-rl' : 'horizontal-tb',\n })\n }, [\n _createVNode(ElementOutline, {\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n outline: _ctx.elementInfo.outline\n }, null, 8, [\"width\", \"height\", \"outline\"]),\n _createElementVNode(\"div\", {\n class: \"text ProseMirror-static\",\n style: _normalizeStyle({\n '--paragraphSpace': `${_ctx.elementInfo.paragraphSpace === undefined ? 5 : _ctx.elementInfo.paragraphSpace}px`,\n }),\n innerHTML: _ctx.elementInfo.content\n }, null, 12, _hoisted_1)\n ], 4)\n ], 4)\n ], 4))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./BaseTextElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BaseTextElement.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BaseTextElement.vue?vue&type=style&index=0&id=52a206f2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-52a206f2\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-b13f8fa8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\"]\nconst _hoisted_2 = { key: 0 }\nconst _hoisted_3 = [\"transform\"]\nconst _hoisted_4 = [\"d\", \"fill\", \"stroke\", \"stroke-width\", \"stroke-dasharray\"]\nconst _hoisted_5 = [\"innerHTML\"]\n\nimport { computed } from 'vue'\nimport type { PPTShapeElement, ShapeText } from '@/types/slides'\nimport useElementOutline from '@/views/components/element/hooks/useElementOutline'\nimport useElementShadow from '@/views/components/element/hooks/useElementShadow'\nimport useElementFlip from '@/views/components/element/hooks/useElementFlip'\n\nimport GradientDefs from './GradientDefs.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseShapeElement',\n props: {\n elementInfo: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst outline = computed(() => props.elementInfo.outline)\nconst { outlineWidth, outlineColor, strokeDashArray } = useElementOutline(outline)\n\nconst shadow = computed(() => props.elementInfo.shadow)\nconst { shadowStyle } = useElementShadow(shadow)\n\nconst flipH = computed(() => props.elementInfo.flipH)\nconst flipV = computed(() => props.elementInfo.flipV)\nconst { flipStyle } = useElementFlip(flipH, flipV)\n\nconst text = computed(() => {\n const defaultText: ShapeText = {\n content: '',\n defaultFontName: '微软雅黑',\n defaultColor: '#000',\n align: 'middle',\n }\n if (!props.elementInfo.text) return defaultText\n\n return props.elementInfo.text\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"base-element-shape\",\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _createElementVNode(\"div\", {\n class: \"element-content\",\n style: _normalizeStyle({\n opacity: _ctx.elementInfo.opacity,\n filter: _unref(shadowStyle) ? `drop-shadow(${_unref(shadowStyle)})` : '',\n transform: _unref(flipStyle),\n color: text.value.defaultColor,\n fontFamily: text.value.defaultFontName,\n })\n }, [\n (_openBlock(), _createElementBlock(\"svg\", {\n overflow: \"visible\",\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height\n }, [\n (_ctx.elementInfo.gradient)\n ? (_openBlock(), _createElementBlock(\"defs\", _hoisted_2, [\n _createVNode(GradientDefs, {\n id: `base-gradient-${_ctx.elementInfo.id}`,\n type: _ctx.elementInfo.gradient.type,\n color1: _ctx.elementInfo.gradient.color[0],\n color2: _ctx.elementInfo.gradient.color[1],\n rotate: _ctx.elementInfo.gradient.rotate\n }, null, 8, [\"id\", \"type\", \"color1\", \"color2\", \"rotate\"])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"g\", {\n transform: `scale(${_ctx.elementInfo.width / _ctx.elementInfo.viewBox[0]}, ${_ctx.elementInfo.height / _ctx.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`\n }, [\n _createElementVNode(\"path\", {\n \"vector-effect\": \"non-scaling-stroke\",\n \"stroke-linecap\": \"butt\",\n \"stroke-miterlimit\": \"8\",\n d: _ctx.elementInfo.path,\n fill: _ctx.elementInfo.gradient ? `url(#base-gradient-${_ctx.elementInfo.id})` : _ctx.elementInfo.fill,\n stroke: _unref(outlineColor),\n \"stroke-width\": _unref(outlineWidth),\n \"stroke-dasharray\": _unref(strokeDashArray)\n }, null, 8, _hoisted_4)\n ], 8, _hoisted_3)\n ], 8, _hoisted_1)),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"shape-text\", text.value.align])\n }, [\n _createElementVNode(\"div\", {\n class: \"ProseMirror-static\",\n innerHTML: text.value.content\n }, null, 8, _hoisted_5)\n ], 2)\n ], 4)\n ], 4)\n ], 4))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./BaseShapeElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BaseShapeElement.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BaseShapeElement.vue?vue&type=style&index=0&id=b13f8fa8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-b13f8fa8\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-443e2f82\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\"]\nconst _hoisted_2 = [\"d\", \"stroke\", \"stroke-width\", \"stroke-dasharray\", \"marker-start\", \"marker-end\"]\n\nimport { computed } from 'vue'\nimport type { PPTLineElement } from '@/types/slides'\nimport { getLineElementPath } from '@/utils/element'\nimport useElementShadow from '@/views/components/element/hooks/useElementShadow'\n\nimport LinePointMarker from './LinePointMarker.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseLineElement',\n props: {\n elementInfo: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst shadow = computed(() => props.elementInfo.shadow)\nconst { shadowStyle } = useElementShadow(shadow)\n\nconst svgWidth = computed(() => {\n const width = Math.abs(props.elementInfo.start[0] - props.elementInfo.end[0])\n return width < 24 ? 24 : width\n})\nconst svgHeight = computed(() => {\n const height = Math.abs(props.elementInfo.start[1] - props.elementInfo.end[1])\n return height < 24 ? 24 : height\n})\n\nconst lineDashArray = computed(() => {\n if (props.elementInfo.style !== 'dashed') return '0 0'\n const size = props.elementInfo.width\n return size <= 8 ? `${size * 5} ${size * 2.5}` : `${size * 5} ${size * 1.5}`\n})\n\nconst path = computed(() => {\n return getLineElementPath(props.elementInfo)\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"base-element-line\",\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"element-content\",\n style: _normalizeStyle({ filter: _unref(shadowStyle) ? `drop-shadow(${_unref(shadowStyle)})` : '' })\n }, [\n (_openBlock(), _createElementBlock(\"svg\", {\n overflow: \"visible\",\n width: svgWidth.value,\n height: svgHeight.value\n }, [\n _createElementVNode(\"defs\", null, [\n (_ctx.elementInfo.points[0])\n ? (_openBlock(), _createBlock(LinePointMarker, {\n key: 0,\n id: _ctx.elementInfo.id,\n position: \"start\",\n type: _ctx.elementInfo.points[0],\n color: _ctx.elementInfo.color,\n baseSize: _ctx.elementInfo.width\n }, null, 8, [\"id\", \"type\", \"color\", \"baseSize\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.elementInfo.points[1])\n ? (_openBlock(), _createBlock(LinePointMarker, {\n key: 1,\n id: _ctx.elementInfo.id,\n position: \"end\",\n type: _ctx.elementInfo.points[1],\n color: _ctx.elementInfo.color,\n baseSize: _ctx.elementInfo.width\n }, null, 8, [\"id\", \"type\", \"color\", \"baseSize\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"path\", {\n d: path.value,\n stroke: _ctx.elementInfo.color,\n \"stroke-width\": _ctx.elementInfo.width,\n \"stroke-dasharray\": lineDashArray.value,\n fill: \"none\",\n \"marker-start\": _ctx.elementInfo.points[0] ? `url(#${_ctx.elementInfo.id}-${_ctx.elementInfo.points[0]}-start)` : '',\n \"marker-end\": _ctx.elementInfo.points[1] ? `url(#${_ctx.elementInfo.id}-${_ctx.elementInfo.points[1]}-end)` : ''\n }, null, 8, _hoisted_2)\n ], 8, _hoisted_1))\n ], 4)\n ], 4))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./BaseLineElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BaseLineElement.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BaseLineElement.vue?vue&type=style&index=0&id=443e2f82&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-443e2f82\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { computed, inject, ref } from 'vue'\r\nimport type { PPTChartElement } from '@/types/slides'\r\nimport { injectKeySlideScale } from '@/types/injectKey'\r\n\r\nimport ElementOutline from '@/views/components/element/ElementOutline.vue'\r\nimport Chart from './Chart.vue'\r\n\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseChartElement',\n props: {\n elementInfo: {}\n },\n setup(__props: any) {\n\r\n\r\n\r\nconst slideScale = inject(injectKeySlideScale) || ref(1)\r\n\r\nconst needScaleSize = computed(() => slideScale.value < 1)\r\nconst zoom = computed(() => needScaleSize.value ? 1 / slideScale.value : 1)\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"base-element-chart\",\n style: _normalizeStyle({\r\n top: _ctx.elementInfo.top + 'px',\r\n left: _ctx.elementInfo.left + 'px',\r\n width: _ctx.elementInfo.width + 'px',\r\n height: _ctx.elementInfo.height + 'px',\r\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _createElementVNode(\"div\", {\n class: \"element-content\",\n style: _normalizeStyle({\r\n backgroundColor: _ctx.elementInfo.fill,\r\n })\n }, [\n _createVNode(ElementOutline, {\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n outline: _ctx.elementInfo.outline\n }, null, 8, [\"width\", \"height\", \"outline\"]),\n _createVNode(Chart, {\n width: _ctx.elementInfo.width * zoom.value,\n height: _ctx.elementInfo.height * zoom.value,\n type: _ctx.elementInfo.chartType,\n data: _ctx.elementInfo.data,\n options: _ctx.elementInfo.options,\n themeColor: _ctx.elementInfo.themeColor,\n gridColor: _ctx.elementInfo.gridColor,\n legends: _ctx.elementInfo.data.legends,\n legend: _ctx.elementInfo.legend || '',\n style: _normalizeStyle({ zoom: 1 / zoom.value })\n }, null, 8, [\"width\", \"height\", \"type\", \"data\", \"options\", \"themeColor\", \"gridColor\", \"legends\", \"legend\", \"style\"])\n ], 4)\n ], 4)\n ], 4))\n}\n}\n\n})","\r\n\r\n\r\n\r\n","import script from \"./BaseChartElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BaseChartElement.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BaseChartElement.vue?vue&type=style&index=0&id=7c03d68d&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-7c03d68d\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, vShow as _vShow, withDirectives as _withDirectives, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5d949d4d\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\"]\nconst _hoisted_2 = [\"rowspan\", \"colspan\"]\nconst _hoisted_3 = [\"innerHTML\"]\n\nimport { computed, ref, watch } from 'vue'\nimport type { PPTElementOutline, TableCell, TableTheme } from '@/types/slides'\nimport { getTextStyle, formatText } from './utils'\nimport useHideCells from './useHideCells'\nimport useSubThemeColor from './useSubThemeColor'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'StaticTable',\n props: {\n data: {},\n width: {},\n cellMinHeight: {},\n colWidths: {},\n outline: {},\n theme: {},\n editable: { type: Boolean, default: true }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst colSizeList = ref([])\nconst totalWidth = computed(() => colSizeList.value.reduce((a, b) => a + b))\n\nwatch([\n () => props.colWidths,\n () => props.width,\n], () => {\n colSizeList.value = props.colWidths.map(item => item * props.width)\n}, { immediate: true })\n\nconst cells = computed(() => props.data)\nconst { hideCells } = useHideCells(cells)\n\nconst theme = computed(() => props.theme)\nconst { subThemeColor } = useSubThemeColor(theme)\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"static-table\",\n style: _normalizeStyle({ width: totalWidth.value + 'px' })\n }, [\n _createElementVNode(\"table\", {\n class: _normalizeClass({\n 'theme': theme.value,\n 'row-header': theme.value?.rowHeader,\n 'row-footer': theme.value?.rowFooter,\n 'col-header': theme.value?.colHeader,\n 'col-footer': theme.value?.colFooter,\n }),\n style: _normalizeStyle(`--themeColor: ${theme.value?.color}; --subThemeColor1: ${_unref(subThemeColor)[0]}; --subThemeColor2: ${_unref(subThemeColor)[1]}`)\n }, [\n _createElementVNode(\"colgroup\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(colSizeList.value, (width, index) => {\n return (_openBlock(), _createElementBlock(\"col\", {\n span: \"1\",\n key: index,\n width: width\n }, null, 8, _hoisted_1))\n }), 128))\n ]),\n _createElementVNode(\"tbody\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.data, (rowCells, rowIndex) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: rowIndex,\n style: _normalizeStyle({ height: _ctx.cellMinHeight + 'px' })\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(rowCells, (cell, colIndex) => {\n return _withDirectives((_openBlock(), _createElementBlock(\"td\", {\n class: \"cell\",\n style: _normalizeStyle({\n borderStyle: _ctx.outline.style,\n borderColor: _ctx.outline.color,\n borderWidth: _ctx.outline.width + 'px',\n ..._unref(getTextStyle)(cell.style),\n }),\n key: cell.id,\n rowspan: cell.rowspan,\n colspan: cell.colspan\n }, [\n _createElementVNode(\"div\", {\n class: \"cell-text\",\n style: _normalizeStyle({ minHeight: (_ctx.cellMinHeight - 4) + 'px' }),\n innerHTML: _unref(formatText)(cell.text)\n }, null, 12, _hoisted_3)\n ], 12, _hoisted_2)), [\n [_vShow, !_unref(hideCells).includes(`${rowIndex}_${colIndex}`)]\n ])\n }), 128))\n ], 4))\n }), 128))\n ])\n ], 6)\n ], 4))\n}\n}\n\n})","\n\n\n\n","import script from \"./StaticTable.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./StaticTable.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./StaticTable.vue?vue&type=style&index=0&id=5d949d4d&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5d949d4d\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-3eff7eba\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"element-content\" }\n\nimport type { PPTTableElement } from '@/types/slides'\n\nimport StaticTable from './StaticTable.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseTableElement',\n props: {\n elementInfo: {}\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"base-element-table\",\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(StaticTable, {\n data: _ctx.elementInfo.data,\n width: _ctx.elementInfo.width,\n cellMinHeight: _ctx.elementInfo.cellMinHeight,\n colWidths: _ctx.elementInfo.colWidths,\n outline: _ctx.elementInfo.outline,\n theme: _ctx.elementInfo.theme\n }, null, 8, [\"data\", \"width\", \"cellMinHeight\", \"colWidths\", \"outline\", \"theme\"])\n ])\n ], 4)\n ], 4))\n}\n}\n\n})","import script from \"./BaseTableElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BaseTableElement.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BaseTableElement.vue?vue&type=style&index=0&id=3eff7eba&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3eff7eba\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1587280d\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"element-content\" }\nconst _hoisted_2 = [\"width\", \"height\", \"stroke\", \"stroke-width\"]\nconst _hoisted_3 = [\"transform\"]\nconst _hoisted_4 = [\"d\"]\n\nimport type { PPTLatexElement } from '@/types/slides'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseLatexElement',\n props: {\n elementInfo: {}\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"base-element-latex\",\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n (_openBlock(), _createElementBlock(\"svg\", {\n overflow: \"visible\",\n width: _ctx.elementInfo.width,\n height: _ctx.elementInfo.height,\n stroke: _ctx.elementInfo.color,\n \"stroke-width\": _ctx.elementInfo.strokeWidth,\n fill: \"none\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n }, [\n _createElementVNode(\"g\", {\n transform: `scale(${_ctx.elementInfo.width / _ctx.elementInfo.viewBox[0]}, ${_ctx.elementInfo.height / _ctx.elementInfo.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`\n }, [\n _createElementVNode(\"path\", {\n d: _ctx.elementInfo.path\n }, null, 8, _hoisted_4)\n ], 8, _hoisted_3)\n ], 8, _hoisted_2))\n ])\n ], 4)\n ], 4))\n}\n}\n\n})","import script from \"./BaseLatexElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BaseLatexElement.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BaseLatexElement.vue?vue&type=style&index=0&id=1587280d&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-1587280d\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport type { PPTVideoElement } from '@/types/slides'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseVideoElement',\n props: {\n elementInfo: {}\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconPlayOne = _resolveComponent(\"IconPlayOne\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"base-element-video\",\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _createElementVNode(\"div\", {\n class: \"element-content\",\n style: _normalizeStyle({ backgroundImage: _ctx.elementInfo.poster ? `url(${_ctx.elementInfo.poster})` : '' })\n }, [\n _createVNode(_component_IconPlayOne, { class: \"icon\" })\n ], 4)\n ], 4)\n ], 4))\n}\n}\n\n})","import script from \"./BaseVideoElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BaseVideoElement.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BaseVideoElement.vue?vue&type=style&index=0&id=09436dde&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-09436dde\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, normalizeStyle as _normalizeStyle, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5da834d7\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"element-content\" }\n\nimport { computed } from 'vue'\nimport type { PPTAudioElement } from '@/types/slides'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BaseAudioElement',\n props: {\n elementInfo: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst audioIconSize = computed(() => {\n return Math.min(props.elementInfo.width, props.elementInfo.height) + 'px'\n})\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconVolumeNotice = _resolveComponent(\"IconVolumeNotice\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"base-element-audio\",\n style: _normalizeStyle({\n top: _ctx.elementInfo.top + 'px',\n left: _ctx.elementInfo.left + 'px',\n width: _ctx.elementInfo.width + 'px',\n height: _ctx.elementInfo.height + 'px',\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"rotate-wrapper\",\n style: _normalizeStyle({ transform: `rotate(${_ctx.elementInfo.rotate}deg)` })\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_IconVolumeNotice, {\n class: \"audio-icon\",\n style: _normalizeStyle({\n fontSize: audioIconSize.value,\n color: _ctx.elementInfo.color,\n })\n }, null, 8, [\"style\"])\n ])\n ], 4)\n ], 4))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./BaseAudioElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./BaseAudioElement.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./BaseAudioElement.vue?vue&type=style&index=0&id=5da834d7&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5da834d7\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { computed } from 'vue'\nimport { ElementTypes, type PPTElement } from '@/types/slides'\n\nimport BaseImageElement from '@/views/components/element/ImageElement/BaseImageElement.vue'\nimport BaseTextElement from '@/views/components/element/TextElement/BaseTextElement.vue'\nimport BaseShapeElement from '@/views/components/element/ShapeElement/BaseShapeElement.vue'\nimport BaseLineElement from '@/views/components/element/LineElement/BaseLineElement.vue'\nimport BaseChartElement from '@/views/components/element/ChartElement/BaseChartElement.vue'\nimport BaseTableElement from '@/views/components/element/TableElement/BaseTableElement.vue'\nimport BaseLatexElement from '@/views/components/element/LatexElement/BaseLatexElement.vue'\nimport BaseVideoElement from '@/views/components/element/VideoElement/BaseVideoElement.vue'\nimport BaseAudioElement from '@/views/components/element/AudioElement/BaseAudioElement.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ThumbnailElement',\n props: {\n elementInfo: {},\n elementIndex: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst currentElementComponent = computed(() => {\n const elementTypeMap = {\n [ElementTypes.IMAGE]: BaseImageElement,\n [ElementTypes.TEXT]: BaseTextElement,\n [ElementTypes.SHAPE]: BaseShapeElement,\n [ElementTypes.LINE]: BaseLineElement,\n [ElementTypes.CHART]: BaseChartElement,\n [ElementTypes.TABLE]: BaseTableElement,\n [ElementTypes.LATEX]: BaseLatexElement,\n [ElementTypes.VIDEO]: BaseVideoElement,\n [ElementTypes.AUDIO]: BaseAudioElement,\n }\n return elementTypeMap[props.elementInfo.type] || null\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"base-element\", `base-element-${_ctx.elementInfo.id}`]),\n style: _normalizeStyle({\n zIndex: _ctx.elementIndex,\n })\n }, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(currentElementComponent.value), {\n elementInfo: _ctx.elementInfo,\n target: \"thumbnail\"\n }, null, 8, [\"elementInfo\"]))\n ], 6))\n}\n}\n\n})","\n\n","import script from \"./ThumbnailElement.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ThumbnailElement.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-43dcaa52\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 1,\n class: \"placeholder\"\n}\n\nimport { computed, provide } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useSlidesStore } from '@/store'\nimport type { Slide } from '@/types/slides'\nimport { injectKeySlideScale } from '@/types/injectKey'\nimport { VIEWPORT_SIZE } from '@/configs/canvas'\nimport useSlideBackgroundStyle from '@/hooks/useSlideBackgroundStyle'\n\nimport ThumbnailElement from './ThumbnailElement.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n slide: {},\n size: {},\n visible: { type: Boolean, default: true }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst { viewportRatio } = storeToRefs(useSlidesStore())\n\nconst background = computed(() => props.slide.background)\nconst { backgroundStyle } = useSlideBackgroundStyle(background)\n\nconst scale = computed(() => props.size / VIEWPORT_SIZE)\nprovide(injectKeySlideScale, scale)\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"thumbnail-slide\",\n style: _normalizeStyle({\n width: _ctx.size + 'px',\n height: _ctx.size * _unref(viewportRatio) + 'px',\n })\n }, [\n (_ctx.visible)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"elements\",\n style: _normalizeStyle({\n width: _unref(VIEWPORT_SIZE) + 'px',\n height: _unref(VIEWPORT_SIZE) * _unref(viewportRatio) + 'px',\n transform: `scale(${scale.value})`,\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"background\",\n style: _normalizeStyle(_unref(backgroundStyle))\n }, null, 4),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.slide.elements, (element, index) => {\n return (_openBlock(), _createBlock(ThumbnailElement, {\n key: element.id,\n elementInfo: element,\n elementIndex: index + 1\n }, null, 8, [\"elementInfo\", \"elementIndex\"]))\n }), 128))\n ], 4))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_1, \"加载中 ...\"))\n ], 4))\n}\n}\n\n})","\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=43dcaa52&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-43dcaa52\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5e3d7626\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"onClick\"]\n\nimport { type CSSProperties } from 'vue'\n\ninterface TabItem {\n key: string\n label: string\n color?: string\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Tabs',\n props: {\n value: {},\n tabs: {},\n card: { type: Boolean, default: false },\n tabsStyle: {},\n tabStyle: {},\n spaceAround: { type: Boolean, default: false },\n spaceBetween: { type: Boolean, default: false }\n },\n emits: [\"update:value\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"tabs\", {\n 'card': _ctx.card,\n 'space-around': _ctx.spaceAround,\n 'space-between': _ctx.spaceBetween,\n }]),\n style: _normalizeStyle(_ctx.tabsStyle || {})\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.tabs, (tab) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"tab\", { 'active': tab.key === _ctx.value }]),\n key: tab.key,\n style: _normalizeStyle({\n ...(_ctx.tabStyle || {}),\n '--color': tab.color,\n }),\n onClick: ($event: any) => (emit('update:value', tab.key))\n }, _toDisplayString(tab.label), 15, _hoisted_1))\n }), 128))\n ], 6))\n}\n}\n\n})","\n\n\n\n","import script from \"./Tabs.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Tabs.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Tabs.vue?vue&type=style&index=0&id=5e3d7626&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5e3d7626\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Button',\n props: {\n checked: { type: Boolean, default: false },\n disabled: { type: Boolean, default: false },\n type: { default: 'default' },\n size: { default: 'normal' },\n first: { type: Boolean, default: false },\n last: { type: Boolean, default: false }\n },\n emits: [\"click\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props\n\nconst emit = __emit\n\nconst handleClick = () => {\n if (props.disabled) return\n emit('click')\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"button\", {\n class: _normalizeClass([\"button\", {\n 'disabled': _ctx.disabled,\n 'checked': !_ctx.disabled && _ctx.checked,\n 'default': !_ctx.disabled && _ctx.type === 'default',\n 'primary': !_ctx.disabled && _ctx.type === 'primary',\n 'checkbox': !_ctx.disabled && _ctx.type === 'checkbox',\n 'radio': !_ctx.disabled && _ctx.type === 'radio',\n 'small': _ctx.size === 'small',\n 'first': _ctx.first,\n 'last': _ctx.last,\n }]),\n onClick: _cache[0] || (_cache[0] = ($event: any) => (handleClick()))\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 2))\n}\n}\n\n})","\n\n\n\n","import script from \"./Button.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Button.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Button.vue?vue&type=style&index=0&id=52c90330&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-52c90330\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5bf3b141\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"select-wrap\"\n}\nconst _hoisted_2 = { class: \"selector\" }\nconst _hoisted_3 = { class: \"icon\" }\nconst _hoisted_4 = [\"onClick\"]\nconst _hoisted_5 = { class: \"selector\" }\nconst _hoisted_6 = { class: \"icon\" }\n\nimport { computed, onMounted, onUnmounted, ref } from 'vue'\nimport Popover from './Popover.vue'\n\ninterface SelectOption {\n label: string\n value: string | number\n disabled?: boolean\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Select',\n props: {\n value: {},\n options: {},\n disabled: { type: Boolean, default: false }\n },\n emits: [\"update:value\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props\n\nconst showLabel = computed(() => {\n return props.options.find(item => item.value === props.value)?.label || props.value\n})\n\nconst emit = __emit\n\nconst popoverVisible = ref(false)\nconst selectRef = ref()\nconst width = ref(0)\n\nconst updateWidth = () => {\n if (!selectRef.value) return\n width.value = selectRef.value.clientWidth\n}\nconst resizeObserver = new ResizeObserver(updateWidth)\nonMounted(() => {\n if (!selectRef.value) return\n resizeObserver.observe(selectRef.value)\n})\nonUnmounted(() => {\n if (!selectRef.value) return\n resizeObserver.unobserve(selectRef.value)\n})\n\nconst handleSelect = (option: SelectOption) => {\n if (option.disabled) return\n\n emit('update:value', option.value)\n popoverVisible.value = false\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconDown = _resolveComponent(\"IconDown\")!\n\n return (_ctx.disabled)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: \"select disabled\",\n ref_key: \"selectRef\",\n ref: selectRef\n }, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(_ctx.value), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n _renderSlot(_ctx.$slots, \"icon\", {}, () => [\n _createVNode(_component_IconDown, { size: 14 })\n ])\n ])\n ], 512)\n ]))\n : (_openBlock(), _createBlock(Popover, {\n key: 1,\n class: \"select-wrap\",\n trigger: \"click\",\n value: popoverVisible.value,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((popoverVisible).value = $event)),\n placement: \"bottom\",\n contentStyle: {\n padding: 0,\n boxShadow: '0 6px 16px 0 rgba(0, 0, 0, 0.08)',\n }\n }, {\n content: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"options\",\n style: _normalizeStyle({ width: width.value + 2 + 'px' })\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, (option) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"option\", {\n 'disabled': option.disabled,\n 'selected': option.value === _ctx.value,\n }]),\n key: option.value,\n onClick: ($event: any) => (handleSelect(option))\n }, _toDisplayString(option.label), 11, _hoisted_4))\n }), 128))\n ], 4)\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", {\n class: \"select\",\n ref_key: \"selectRef\",\n ref: selectRef\n }, [\n _createElementVNode(\"div\", _hoisted_5, _toDisplayString(showLabel.value), 1),\n _createElementVNode(\"div\", _hoisted_6, [\n _renderSlot(_ctx.$slots, \"icon\", {}, () => [\n _createVNode(_component_IconDown, { size: 14 })\n ])\n ])\n ], 512)\n ]),\n _: 3\n }, 8, [\"value\", \"contentStyle\"]))\n}\n}\n\n})","\n\n\n\n","import script from \"./Select.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Select.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Select.vue?vue&type=style&index=0&id=5bf3b141&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5bf3b141\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, createTextVNode as _createTextVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-cc39ee16\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"link-dialog\" }\nconst _hoisted_2 = {\n key: 2,\n class: \"preview\"\n}\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, \"预览:\", -1))\nconst _hoisted_4 = { class: \"btns\" }\n\nimport { computed, onMounted, ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTElementLink } from '@/types/slides'\nimport useLink from '@/hooks/useLink'\n\nimport ThumbnailSlide from '@/views/components/ThumbnailSlide/index.vue'\nimport Tabs from '@/components/Tabs.vue'\nimport Input from '@/components/Input.vue'\nimport Button from '@/components/Button.vue'\nimport Select from '@/components/Select.vue'\n\ntype TypeKey = 'web' | 'slide'\ninterface TabItem {\n key: TypeKey\n label: string\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'LinkDialog',\n emits: [\"close\"],\n setup(__props, { emit: __emit }) {\n\nconst emit = __emit\n\nconst { handleElement } = storeToRefs(useMainStore())\nconst { slides, currentSlide } = storeToRefs(useSlidesStore())\n\nconst type = ref('web')\nconst address = ref('')\nconst slideId = ref('')\n\nconst slideOptions = computed(() => {\n return slides.value.map((item, index) => ({\n label: `幻灯片 ${index + 1}`,\n value: item.id,\n disabled: currentSlide.value.id === item.id,\n }))\n})\n\nslideId.value = slides.value.find(item => item.id !== currentSlide.value.id)?.id || ''\n\nconst selectedSlide = computed(() => {\n if (!slideId.value) return null\n\n return slides.value.find(item => item.id === slideId.value) || null\n})\n\nconst tabs: TabItem[] = [\n { key: 'web', label: '网页链接' },\n { key: 'slide', label: '幻灯片页面' },\n]\n\nconst { setLink } = useLink()\n\nonMounted(() => {\n if (handleElement.value?.link) {\n if (handleElement.value.link.type === 'web') address.value = handleElement.value.link.target\n else if (handleElement.value.link.type === 'slide') slideId.value = handleElement.value.link.target\n\n type.value = handleElement.value.link.type\n }\n})\n\nconst save = () => {\n const link: PPTElementLink = {\n type: type.value,\n target: type.value === 'web' ? address.value : slideId.value,\n }\n if (handleElement.value) {\n const success = setLink(handleElement.value, link)\n if (success) emit('close')\n else address.value = ''\n }\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(Tabs, {\n tabs: tabs,\n value: type.value,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((type).value = $event)),\n tabsStyle: { marginBottom: '20px' }\n }, null, 8, [\"value\"]),\n (type.value === 'web')\n ? (_openBlock(), _createBlock(Input, {\n key: 0,\n class: \"input\",\n value: address.value,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((address).value = $event)),\n placeholder: \"请输入网页链接地址\"\n }, null, 8, [\"value\"]))\n : _createCommentVNode(\"\", true),\n (type.value === 'slide')\n ? (_openBlock(), _createBlock(Select, {\n key: 1,\n class: \"input\",\n value: slideId.value,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((slideId).value = $event)),\n options: slideOptions.value\n }, null, 8, [\"value\", \"options\"]))\n : _createCommentVNode(\"\", true),\n (type.value === 'slide' && selectedSlide.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _hoisted_3,\n _createVNode(ThumbnailSlide, {\n class: \"thumbnail\",\n slide: selectedSlide.value,\n size: 500\n }, null, 8, [\"slide\"])\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(Button, {\n onClick: _cache[3] || (_cache[3] = ($event: any) => (emit('close'))),\n style: {\"margin-right\":\"10px\"}\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"取消\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n type: \"primary\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (save()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"确认\")\n ]),\n _: 1\n })\n ])\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./LinkDialog.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./LinkDialog.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./LinkDialog.vue?vue&type=style&index=0&id=cc39ee16&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-cc39ee16\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, vShow as _vShow, normalizeStyle as _normalizeStyle, withDirectives as _withDirectives, Transition as _Transition, withCtx as _withCtx, withKeys as _withKeys, Teleport as _Teleport, createBlock as _createBlock } from \"vue\"\n\nimport { computed, nextTick, ref, watch, type CSSProperties } from 'vue'\nimport { icons } from '@/plugins/icon'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Modal',\n props: {\n visible: { type: Boolean },\n width: { default: 480 },\n closeButton: { type: Boolean, default: false },\n closeOnClickMask: { type: Boolean, default: true },\n closeOnEsc: { type: Boolean, default: true },\n contentStyle: {}\n },\n emits: [\"update:visible\", \"closed\"],\n setup(__props: any, { emit: __emit }) {\n\nconst { IconClose } = icons\n\nconst props = __props\n\nconst modalRef = ref()\n\nconst emit = __emit\n\nconst contentVisible = ref(false)\n\nconst contentStyle = computed(() => {\n return {\n width: props.width + 'px',\n ...(props.contentStyle || {})\n }\n})\n\nwatch(() => props.visible, () => {\n if (props.visible) {\n nextTick(() => modalRef.value!.focus())\n }\n})\n\nconst close = () => {\n emit('update:visible', false)\n emit('closed')\n}\n\nconst onEsc = () => {\n if (props.visible && props.closeOnEsc) close()\n}\n\nconst onClickMask = () => {\n if (props.closeOnClickMask) close()\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createVNode(_Transition, { name: \"modal-fade\" }, {\n default: _withCtx(() => [\n _withDirectives(_createElementVNode(\"div\", {\n class: \"modal\",\n ref_key: \"modalRef\",\n ref: modalRef,\n tabindex: \"-1\",\n onKeyup: _cache[4] || (_cache[4] = _withKeys(($event: any) => (onEsc()), [\"esc\"]))\n }, [\n _createElementVNode(\"div\", {\n class: \"mask\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (onClickMask()))\n }),\n _createVNode(_Transition, {\n name: \"modal-zoom\",\n onAfterLeave: _cache[2] || (_cache[2] = ($event: any) => (contentVisible.value = false)),\n onBeforeEnter: _cache[3] || (_cache[3] = ($event: any) => (contentVisible.value = true))\n }, {\n default: _withCtx(() => [\n _withDirectives(_createElementVNode(\"div\", {\n class: \"modal-content\",\n style: _normalizeStyle(contentStyle.value)\n }, [\n (_ctx.closeButton)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: \"close-btn\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (close()))\n }, [\n _createVNode(_unref(IconClose))\n ]))\n : _createCommentVNode(\"\", true),\n (contentVisible.value)\n ? _renderSlot(_ctx.$slots, \"default\", { key: 1 })\n : _createCommentVNode(\"\", true)\n ], 4), [\n [_vShow, _ctx.visible]\n ])\n ]),\n _: 3\n })\n ], 544), [\n [_vShow, _ctx.visible]\n ])\n ]),\n _: 3\n })\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./Modal.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Modal.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=fea8edcc&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-fea8edcc\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, vShow as _vShow, withDirectives as _withDirectives, createVNode as _createVNode, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, withCtx as _withCtx, resolveDirective as _resolveDirective, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5294a048\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"operates\" }\nconst _hoisted_2 = {\n key: 2,\n class: \"drag-mask\"\n}\n\nimport { nextTick, onMounted, onUnmounted, provide, ref, watch, watchEffect } from 'vue'\nimport { throttle } from 'lodash'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore, useKeyboardStore } from '@/store'\nimport type { ContextmenuItem } from '@/components/Contextmenu/types'\nimport type { PPTElement, PPTShapeElement } from '@/types/slides'\nimport type { AlignmentLineProps, CreateCustomShapeData } from '@/types/edit'\nimport { injectKeySlideScale } from '@/types/injectKey'\nimport { removeAllRanges } from '@/utils/selection'\nimport { KEYS } from '@/configs/hotkey'\n\nimport useViewportSize from './hooks/useViewportSize'\nimport useMouseSelection from './hooks/useMouseSelection'\nimport useDropImageOrText from './hooks/useDropImageOrText'\nimport useRotateElement from './hooks/useRotateElement'\nimport useScaleElement from './hooks/useScaleElement'\nimport useSelectElement from './hooks/useSelectElement'\nimport useDragElement from './hooks/useDragElement'\nimport useDragLineElement from './hooks/useDragLineElement'\nimport useMoveShapeKeypoint from './hooks/useMoveShapeKeypoint'\nimport useInsertFromCreateSelection from './hooks/useInsertFromCreateSelection'\n\nimport useDeleteElement from '@/hooks/useDeleteElement'\nimport useCopyAndPasteElement from '@/hooks/useCopyAndPasteElement'\nimport useSelectAllElement from '@/hooks/useSelectAllElement'\nimport useScaleCanvas from '@/hooks/useScaleCanvas'\nimport useScreening from '@/hooks/useScreening'\nimport useSlideHandler from '@/hooks/useSlideHandler'\nimport useCreateElement from '@/hooks/useCreateElement'\n\nimport EditableElement from './EditableElement.vue'\nimport MouseSelection from './MouseSelection.vue'\nimport ViewportBackground from './ViewportBackground.vue'\nimport AlignmentLine from './AlignmentLine.vue'\nimport Ruler from './Ruler.vue'\nimport ElementCreateSelection from './ElementCreateSelection.vue'\nimport ShapeCreateCanvas from './ShapeCreateCanvas.vue'\nimport MultiSelectOperate from './Operate/MultiSelectOperate.vue'\nimport Operate from './Operate/index.vue'\nimport LinkDialog from './LinkDialog.vue'\nimport Modal from '@/components/Modal.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n setup(__props) {\n\nconst mainStore = useMainStore()\nconst {\n activeElementIdList,\n activeGroupElementId,\n handleElementId,\n hiddenElementIdList,\n editorAreaFocus,\n gridLineSize,\n showRuler,\n creatingElement,\n creatingCustomShape,\n canvasScale,\n textFormatPainter,\n} = storeToRefs(mainStore)\nconst { currentSlide } = storeToRefs(useSlidesStore())\nconst { ctrlKeyState, spaceKeyState } = storeToRefs(useKeyboardStore())\n\nconst viewportRef = ref()\nconst alignmentLines = ref([])\n\nconst linkDialogVisible = ref(false)\nconst openLinkDialog = () => linkDialogVisible.value = true\n\nwatch(handleElementId, () => {\n mainStore.setActiveGroupElementId('')\n})\n\nconst elementList = ref([])\nconst setLocalElementList = () => {\n elementList.value = currentSlide.value ? JSON.parse(JSON.stringify(currentSlide.value.elements)) : []\n}\nwatchEffect(setLocalElementList)\n\nconst canvasRef = ref()\nconst { dragViewport, viewportStyles } = useViewportSize(canvasRef)\n\nuseDropImageOrText(canvasRef)\n\nconst { mouseSelection, mouseSelectionVisible, mouseSelectionQuadrant, updateMouseSelection } = useMouseSelection(elementList, viewportRef)\n\nconst { dragElement } = useDragElement(elementList, alignmentLines, canvasScale)\nconst { dragLineElement } = useDragLineElement(elementList)\nconst { selectElement } = useSelectElement(elementList, dragElement)\nconst { scaleElement, scaleMultiElement } = useScaleElement(elementList, alignmentLines, canvasScale)\nconst { rotateElement } = useRotateElement(elementList, viewportRef, canvasScale)\nconst { moveShapeKeypoint } = useMoveShapeKeypoint(elementList, canvasScale)\n\nconst { selectAllElement } = useSelectAllElement()\nconst { deleteAllElements } = useDeleteElement()\nconst { pasteElement } = useCopyAndPasteElement()\nconst { enterScreeningFromStart } = useScreening()\nconst { updateSlideIndex } = useSlideHandler()\nconst { createTextElement, createShapeElement } = useCreateElement()\n\n// 组件渲染时,如果存在元素焦点,需要清除\n// 这种情况存在于:有焦点元素的情况下进入了放映模式,再退出时,需要清除原先的焦点(因为可能已经切换了页面)\nonMounted(() => {\n if (activeElementIdList.value.length) {\n nextTick(() => mainStore.setActiveElementIdList([]))\n }\n})\n\n// 点击画布的空白区域:清空焦点元素、设置画布焦点、清除文字选区、清空格式刷状态\nconst handleClickBlankArea = (e: MouseEvent) => {\n if (activeElementIdList.value.length) mainStore.setActiveElementIdList([])\n\n if (!spaceKeyState.value) updateMouseSelection(e)\n else dragViewport(e)\n\n if (!editorAreaFocus.value) mainStore.setEditorareaFocus(true)\n if (textFormatPainter.value) mainStore.setTextFormatPainter(null)\n removeAllRanges()\n}\n\n// 双击空白处插入文本\nconst handleDblClick = (e: MouseEvent) => {\n if (activeElementIdList.value.length || creatingElement.value || creatingCustomShape.value) return\n if (!viewportRef.value) return\n\n const viewportRect = viewportRef.value.getBoundingClientRect()\n const left = (e.pageX - viewportRect.x) / canvasScale.value\n const top = (e.pageY - viewportRect.y) / canvasScale.value\n\n createTextElement({\n left,\n top,\n width: 200 / canvasScale.value, // 除以 canvasScale 是为了与点击选区创建的形式保持相同的宽度\n height: 0,\n })\n}\n\n// 画布注销时清空格式刷状态\nonUnmounted(() => {\n if (textFormatPainter.value) mainStore.setTextFormatPainter(null)\n})\n\n// 移除画布编辑区域焦点\nconst removeEditorAreaFocus = () => {\n if (editorAreaFocus.value) mainStore.setEditorareaFocus(false)\n}\n\n// 滚动鼠标\nconst { scaleCanvas } = useScaleCanvas()\nconst throttleScaleCanvas = throttle(scaleCanvas, 100, { leading: true, trailing: false })\nconst throttleUpdateSlideIndex = throttle(updateSlideIndex, 300, { leading: true, trailing: false })\n\nconst handleMousewheelCanvas = (e: WheelEvent) => {\n e.preventDefault()\n\n // 按住Ctrl键时:缩放画布\n if (ctrlKeyState.value) {\n if (e.deltaY > 0) throttleScaleCanvas('-')\n else if (e.deltaY < 0) throttleScaleCanvas('+')\n }\n // 上下翻页\n else {\n if (e.deltaY > 0) throttleUpdateSlideIndex(KEYS.DOWN)\n else if (e.deltaY < 0) throttleUpdateSlideIndex(KEYS.UP)\n }\n}\n\n// 开关标尺\nconst toggleRuler = () => {\n mainStore.setRulerState(!showRuler.value)\n}\n\n// 在鼠标绘制的范围插入元素\nconst { insertElementFromCreateSelection, formatCreateSelection } = useInsertFromCreateSelection(viewportRef)\n\n// 插入自定义任意多边形\nconst insertCustomShape = (data: CreateCustomShapeData) => {\n const {\n start,\n end,\n path,\n viewBox,\n } = data\n const position = formatCreateSelection({ start, end })\n if (position) {\n const supplement: Partial = {}\n if (data.fill) supplement.fill = data.fill\n if (data.outline) supplement.outline = data.outline\n createShapeElement(position, { path, viewBox }, supplement)\n }\n\n mainStore.setCreatingCustomShapeState(false)\n}\n\nconst contextmenus = (): ContextmenuItem[] => {\n return [\n {\n text: '粘贴',\n subText: 'Ctrl + V',\n handler: pasteElement,\n },\n {\n text: '全选',\n subText: 'Ctrl + A',\n handler: selectAllElement,\n },\n {\n text: '标尺',\n subText: showRuler.value ? '√' : '',\n handler: toggleRuler,\n },\n {\n text: '网格线',\n handler: () => mainStore.setGridLineSize(gridLineSize.value ? 0 : 50),\n children: [\n {\n text: '无',\n subText: gridLineSize.value === 0 ? '√' : '',\n handler: () => mainStore.setGridLineSize(0),\n },\n {\n text: '小',\n subText: gridLineSize.value === 25 ? '√' : '',\n handler: () => mainStore.setGridLineSize(25),\n },\n {\n text: '中',\n subText: gridLineSize.value === 50 ? '√' : '',\n handler: () => mainStore.setGridLineSize(50),\n },\n {\n text: '大',\n subText: gridLineSize.value === 100 ? '√' : '',\n handler: () => mainStore.setGridLineSize(100),\n },\n ],\n },\n {\n text: '重置当前页',\n handler: deleteAllElements,\n },\n { divider: true },\n {\n text: '幻灯片放映',\n subText: 'F5',\n handler: enterScreeningFromStart,\n },\n ]\n}\n\nprovide(injectKeySlideScale, canvasScale)\n\nreturn (_ctx: any,_cache: any) => {\n const _directive_contextmenu = _resolveDirective(\"contextmenu\")!\n const _directive_click_outside = _resolveDirective(\"click-outside\")!\n\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", {\n class: \"canvas\",\n ref_key: \"canvasRef\",\n ref: canvasRef,\n onWheel: _cache[4] || (_cache[4] = $event => handleMousewheelCanvas($event)),\n onMousedown: _cache[5] || (_cache[5] = $event => handleClickBlankArea($event)),\n onDblclick: _cache[6] || (_cache[6] = $event => handleDblClick($event))\n }, [\n (_unref(creatingElement))\n ? (_openBlock(), _createBlock(ElementCreateSelection, {\n key: 0,\n onCreated: _cache[0] || (_cache[0] = data => _unref(insertElementFromCreateSelection)(data))\n }))\n : _createCommentVNode(\"\", true),\n (_unref(creatingCustomShape))\n ? (_openBlock(), _createBlock(ShapeCreateCanvas, {\n key: 1,\n onCreated: _cache[1] || (_cache[1] = data => insertCustomShape(data))\n }))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", {\n class: \"viewport-wrapper\",\n style: _normalizeStyle({\n width: _unref(viewportStyles).width * _unref(canvasScale) + 'px',\n height: _unref(viewportStyles).height * _unref(canvasScale) + 'px',\n left: _unref(viewportStyles).left + 'px',\n top: _unref(viewportStyles).top + 'px',\n })\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(alignmentLines.value, (line, index) => {\n return (_openBlock(), _createBlock(AlignmentLine, {\n key: index,\n type: line.type,\n axis: line.axis,\n length: line.length,\n canvasScale: _unref(canvasScale)\n }, null, 8, [\"type\", \"axis\", \"length\", \"canvasScale\"]))\n }), 128)),\n (_unref(activeElementIdList).length > 1)\n ? (_openBlock(), _createBlock(MultiSelectOperate, {\n key: 0,\n elementList: elementList.value,\n scaleMultiElement: _unref(scaleMultiElement)\n }, null, 8, [\"elementList\", \"scaleMultiElement\"]))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(elementList.value, (element) => {\n return _withDirectives((_openBlock(), _createBlock(Operate, {\n key: element.id,\n elementInfo: element,\n isSelected: _unref(activeElementIdList).includes(element.id),\n isActive: _unref(handleElementId) === element.id,\n isActiveGroupElement: _unref(activeGroupElementId) === element.id,\n isMultiSelect: _unref(activeElementIdList).length > 1,\n rotateElement: _unref(rotateElement),\n scaleElement: _unref(scaleElement),\n openLinkDialog: openLinkDialog,\n dragLineElement: _unref(dragLineElement),\n moveShapeKeypoint: _unref(moveShapeKeypoint)\n }, null, 8, [\"elementInfo\", \"isSelected\", \"isActive\", \"isActiveGroupElement\", \"isMultiSelect\", \"rotateElement\", \"scaleElement\", \"dragLineElement\", \"moveShapeKeypoint\"])), [\n [_vShow, !_unref(hiddenElementIdList).includes(element.id)]\n ])\n }), 128)),\n _createVNode(ViewportBackground)\n ]),\n _createElementVNode(\"div\", {\n class: \"viewport\",\n ref_key: \"viewportRef\",\n ref: viewportRef,\n style: _normalizeStyle({ transform: `scale(${_unref(canvasScale)})` })\n }, [\n (_unref(mouseSelectionVisible))\n ? (_openBlock(), _createBlock(MouseSelection, {\n key: 0,\n top: _unref(mouseSelection).top,\n left: _unref(mouseSelection).left,\n width: _unref(mouseSelection).width,\n height: _unref(mouseSelection).height,\n quadrant: _unref(mouseSelectionQuadrant)\n }, null, 8, [\"top\", \"left\", \"width\", \"height\", \"quadrant\"]))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(elementList.value, (element, index) => {\n return _withDirectives((_openBlock(), _createBlock(EditableElement, {\n key: element.id,\n elementInfo: element,\n elementIndex: index + 1,\n isMultiSelect: _unref(activeElementIdList).length > 1,\n selectElement: _unref(selectElement),\n openLinkDialog: openLinkDialog\n }, null, 8, [\"elementInfo\", \"elementIndex\", \"isMultiSelect\", \"selectElement\"])), [\n [_vShow, !_unref(hiddenElementIdList).includes(element.id)]\n ])\n }), 128))\n ], 4)\n ], 4),\n (_unref(spaceKeyState))\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2))\n : _createCommentVNode(\"\", true),\n (_unref(showRuler))\n ? (_openBlock(), _createBlock(Ruler, {\n key: 3,\n viewportStyles: _unref(viewportStyles)\n }, null, 8, [\"viewportStyles\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(Modal, {\n visible: linkDialogVisible.value,\n \"onUpdate:visible\": _cache[3] || (_cache[3] = ($event: any) => ((linkDialogVisible).value = $event)),\n width: 540\n }, {\n default: _withCtx(() => [\n _createVNode(LinkDialog, {\n onClose: _cache[2] || (_cache[2] = ($event: any) => (linkDialogVisible.value = false))\n })\n ]),\n _: 1\n }, 8, [\"visible\"])\n ], 32)), [\n [_directive_contextmenu, contextmenus],\n [_directive_click_outside, removeEditorAreaFocus]\n ])\n}\n}\n\n})","\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=5294a048&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5294a048\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-8603ad34\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"shape-item-thumbnail\" }\nconst _hoisted_2 = { class: \"shape-content\" }\nconst _hoisted_3 = {\n overflow: \"visible\",\n width: \"18\",\n height: \"18\"\n}\nconst _hoisted_4 = [\"transform\"]\nconst _hoisted_5 = [\"fill\", \"stroke\", \"d\"]\n\nimport type { ShapePoolItem } from '@/configs/shapes'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ShapeItemThumbnail',\n props: {\n shape: {}\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_openBlock(), _createElementBlock(\"svg\", _hoisted_3, [\n _createElementVNode(\"g\", {\n transform: `scale(${18 / _ctx.shape.viewBox[0]}, ${18 / _ctx.shape.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`\n }, [\n _createElementVNode(\"path\", {\n class: _normalizeClass([\"shape-path\", { 'outlined': _ctx.shape.outlined }]),\n \"vector-effect\": \"non-scaling-stroke\",\n \"stroke-linecap\": \"butt\",\n \"stroke-miterlimit\": \"8\",\n fill: _ctx.shape.outlined ? '#999' : 'transparent',\n stroke: _ctx.shape.outlined ? 'transparent' : '#999',\n \"stroke-width\": \"2\",\n d: _ctx.shape.path\n }, null, 10, _hoisted_5)\n ], 8, _hoisted_4)\n ]))\n ])\n ]))\n}\n}\n\n})","import script from \"./ShapeItemThumbnail.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ShapeItemThumbnail.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ShapeItemThumbnail.vue?vue&type=style&index=0&id=8603ad34&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-8603ad34\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-8b994b42\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"shape-pool\" }\nconst _hoisted_2 = { class: \"category-name\" }\nconst _hoisted_3 = { class: \"shape-list\" }\n\nimport { SHAPE_LIST, type ShapePoolItem } from '@/configs/shapes'\nimport ShapeItemThumbnail from './ShapeItemThumbnail.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ShapePool',\n emits: [\"select\"],\n setup(__props, { emit: __emit }) {\n\nconst emit = __emit\n\nconst selectShape = (shape: ShapePoolItem) => {\n emit('select', shape)\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(SHAPE_LIST), (item) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"category\",\n key: item.type\n }, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(item.type), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.children, (shape, index) => {\n return (_openBlock(), _createBlock(ShapeItemThumbnail, {\n class: \"shape-item\",\n key: index,\n shape: shape,\n onClick: ($event: any) => (selectShape(shape))\n }, null, 8, [\"shape\", \"onClick\"]))\n }), 128))\n ])\n ]))\n }), 128))\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./ShapePool.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ShapePool.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ShapePool.vue?vue&type=style&index=0&id=8b994b42&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-8b994b42\"]])\n\nexport default __exports__","import type { LinePoint } from '@/types/slides'\n\n\nexport interface LinePoolItem {\n path: string\n style: 'solid' | 'dashed'\n points: [LinePoint, LinePoint]\n isBroken?: boolean\n isCurve?: boolean\n isCubic?: boolean\n}\n\ninterface PresetLine {\n type: string\n children: LinePoolItem[]\n}\n\nexport const LINE_LIST: PresetLine[] = [\n {\n type: '直线',\n children: [\n { path: 'M 0 0 L 20 20', style: 'solid', points: ['', ''] },\n { path: 'M 0 0 L 20 20', style: 'dashed', points: ['', ''] },\n { path: 'M 0 0 L 20 20', style: 'solid', points: ['', 'arrow'] },\n { path: 'M 0 0 L 20 20', style: 'dashed', points: ['', 'arrow'] },\n { path: 'M 0 0 L 20 20', style: 'solid', points: ['', 'dot'] },\n ],\n },\n {\n type: '折线、曲线',\n children: [\n { path: 'M 0 0 L 0 20 L 20 20', style: 'solid', points: ['', 'arrow'], isBroken: true },\n { path: 'M 0 0 Q 0 20 20 20', style: 'solid', points: ['', 'arrow'], isCurve: true },\n { path: 'M 0 0 C 20 0 0 20 20 20', style: 'solid', points: ['', 'arrow'], isCubic: true },\n ],\n },\n]","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createBlock as _createBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-554824b6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"line-pool\" }\nconst _hoisted_2 = { class: \"category-name\" }\nconst _hoisted_3 = { class: \"line-list\" }\nconst _hoisted_4 = [\"onClick\"]\nconst _hoisted_5 = {\n overflow: \"visible\",\n width: \"20\",\n height: \"20\"\n}\nconst _hoisted_6 = [\"d\", \"stroke-dasharray\", \"marker-start\", \"marker-end\"]\n\nimport { LINE_LIST, type LinePoolItem } from '@/configs/lines'\n\nimport LinePointMarker from '@/views/components/element/LineElement/LinePointMarker.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'LinePool',\n emits: [\"select\"],\n setup(__props, { emit: __emit }) {\n\nconst emit = __emit\n\nconst selectLine = (line: LinePoolItem) => {\n emit('select', line)\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(LINE_LIST), (item, i) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"category\",\n key: item.type\n }, [\n _createElementVNode(\"div\", _hoisted_2, _toDisplayString(item.type), 1),\n _createElementVNode(\"div\", _hoisted_3, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(item.children, (line, j) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"line-item\",\n key: j\n }, [\n _createElementVNode(\"div\", {\n class: \"line-content\",\n onClick: ($event: any) => (selectLine(line))\n }, [\n (_openBlock(), _createElementBlock(\"svg\", _hoisted_5, [\n _createElementVNode(\"defs\", null, [\n (line.points[0])\n ? (_openBlock(), _createBlock(LinePointMarker, {\n key: 0,\n class: \"line-marker\",\n id: `preset-line-${i}-${j}`,\n position: \"start\",\n type: line.points[0],\n color: \"currentColor\",\n baseSize: 2\n }, null, 8, [\"id\", \"type\"]))\n : _createCommentVNode(\"\", true),\n (line.points[1])\n ? (_openBlock(), _createBlock(LinePointMarker, {\n key: 1,\n class: \"line-marker\",\n id: `preset-line-${i}-${j}`,\n position: \"end\",\n type: line.points[1],\n color: \"currentColor\",\n baseSize: 2\n }, null, 8, [\"id\", \"type\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"path\", {\n class: \"line-path\",\n d: line.path,\n stroke: \"currentColor\",\n fill: \"none\",\n \"stroke-width\": \"2\",\n \"stroke-dasharray\": line.style === 'solid' ? '0, 0' : '4, 1',\n \"marker-start\": line.points[0] ? `url(#${`preset-line-${i}-${j}`}-${line.points[0]}-start)` : '',\n \"marker-end\": line.points[1] ? `url(#${`preset-line-${i}-${j}`}-${line.points[1]}-end)` : ''\n }, null, 8, _hoisted_6)\n ]))\n ], 8, _hoisted_4)\n ]))\n }), 128))\n ])\n ]))\n }), 128))\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./LinePool.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./LinePool.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./LinePool.vue?vue&type=style&index=0&id=554824b6&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-554824b6\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-398f5699\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"chart-pool\" }\nconst _hoisted_2 = [\"onClick\"]\n\nimport type { PresetChartType } from '@/types/slides'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ChartPool',\n emits: [\"select\"],\n setup(__props, { emit: __emit }) {\n\nconst emit = __emit\n\nconst chartList: PresetChartType[] = ['bar', 'horizontalBar', 'line', 'area', 'scatter', 'pie', 'ring']\n\nconst selectChart = (chart: PresetChartType) => {\n emit('select', chart)\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconChartLine = _resolveComponent(\"IconChartLine\")!\n const _component_IconChartHistogram = _resolveComponent(\"IconChartHistogram\")!\n const _component_IconChartPie = _resolveComponent(\"IconChartPie\")!\n const _component_IconChartHistogramOne = _resolveComponent(\"IconChartHistogramOne\")!\n const _component_IconChartLineArea = _resolveComponent(\"IconChartLineArea\")!\n const _component_IconChartRing = _resolveComponent(\"IconChartRing\")!\n const _component_IconChartScatter = _resolveComponent(\"IconChartScatter\")!\n\n return (_openBlock(), _createElementBlock(\"ul\", _hoisted_1, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(chartList, (chart, index) => {\n return _createElementVNode(\"li\", {\n class: \"chart-item\",\n key: index\n }, [\n _createElementVNode(\"div\", {\n class: \"chart-content\",\n onClick: ($event: any) => (selectChart(chart))\n }, [\n (chart === 'line')\n ? (_openBlock(), _createBlock(_component_IconChartLine, {\n key: 0,\n size: \"24\"\n }))\n : (chart === 'bar')\n ? (_openBlock(), _createBlock(_component_IconChartHistogram, {\n key: 1,\n size: \"24\"\n }))\n : (chart === 'pie')\n ? (_openBlock(), _createBlock(_component_IconChartPie, {\n key: 2,\n size: \"24\"\n }))\n : (chart === 'horizontalBar')\n ? (_openBlock(), _createBlock(_component_IconChartHistogramOne, {\n key: 3,\n size: \"24\"\n }))\n : (chart === 'area')\n ? (_openBlock(), _createBlock(_component_IconChartLineArea, {\n key: 4,\n size: \"24\"\n }))\n : (chart === 'ring')\n ? (_openBlock(), _createBlock(_component_IconChartRing, {\n key: 5,\n size: \"24\"\n }))\n : (chart === 'scatter')\n ? (_openBlock(), _createBlock(_component_IconChartScatter, {\n key: 6,\n size: \"24\"\n }))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_2)\n ])\n }), 64))\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./ChartPool.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ChartPool.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ChartPool.vue?vue&type=style&index=0&id=398f5699&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-398f5699\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, createElementVNode as _createElementVNode, vModelText as _vModelText, withKeys as _withKeys, withDirectives as _withDirectives, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-268948c2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"prefix\" }\nconst _hoisted_2 = { class: \"input-wrap\" }\nconst _hoisted_3 = [\"disabled\", \"placeholder\"]\nconst _hoisted_4 = { class: \"handlers\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"svg\", {\n fill: \"currentColor\",\n width: \"1em\",\n height: \"1em\",\n viewBox: \"64 64 896 896\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", { d: \"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z\" })\n], -1))\nconst _hoisted_6 = [\n _hoisted_5\n]\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"svg\", {\n fill: \"currentColor\",\n width: \"1em\",\n height: \"1em\",\n viewBox: \"64 64 896 896\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", { d: \"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z\" })\n], -1))\nconst _hoisted_8 = [\n _hoisted_7\n]\nconst _hoisted_9 = { class: \"suffix\" }\n\nimport { ref, watch } from 'vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'NumberInput',\n props: {\n value: {},\n disabled: { type: Boolean, default: false },\n placeholder: { default: '' },\n min: { default: 0 },\n max: { default: Infinity },\n step: { default: 1 }\n },\n emits: [\"update:value\", \"input\", \"change\", \"blur\", \"focus\", \"enter\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props\n\nconst emit = __emit\n\nconst number = ref(0)\nconst focused = ref(false)\n\nwatch(() => props.value, () => {\n if (props.value !== number.value) {\n number.value = props.value\n }\n}, {\n immediate: true,\n})\n\nwatch(number, () => {\n let value = +number.value\n if (isNaN(value)) value = props.min\n else if (value > props.max) value = props.max\n else if (value < props.min) value = props.min\n\n number.value = value\n emit('update:value', number.value)\n})\n\nconst handleBlur = (e: Event) => {\n focused.value = false\n emit('blur', e)\n}\nconst handleFocus = (e: Event) => {\n focused.value = true\n emit('focus', e)\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"number-input\", {\n 'disabled': _ctx.disabled,\n 'focused': focused.value,\n }])\n }, [\n _createElementVNode(\"span\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"prefix\")\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _withDirectives(_createElementVNode(\"input\", {\n type: \"text\",\n disabled: _ctx.disabled,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((number).value = $event)),\n placeholder: _ctx.placeholder,\n onInput: _cache[1] || (_cache[1] = $event => emit('input', $event)),\n onFocus: _cache[2] || (_cache[2] = $event => handleFocus($event)),\n onBlur: _cache[3] || (_cache[3] = $event => handleBlur($event)),\n onChange: _cache[4] || (_cache[4] = $event => emit('change', $event)),\n onKeydown: _cache[5] || (_cache[5] = _withKeys($event => emit('enter', $event), [\"enter\"]))\n }, null, 40, _hoisted_3), [\n [_vModelText, number.value]\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"span\", {\n class: \"handler\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (number.value += _ctx.step))\n }, _hoisted_6),\n _createElementVNode(\"span\", {\n class: \"handler\",\n onClick: _cache[7] || (_cache[7] = ($event: any) => (number.value -= _ctx.step))\n }, _hoisted_8)\n ])\n ]),\n _createElementVNode(\"span\", _hoisted_9, [\n _renderSlot(_ctx.$slots, \"suffix\")\n ])\n ], 2))\n}\n}\n\n})","\n\n\n\n","import script from \"./NumberInput.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./NumberInput.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./NumberInput.vue?vue&type=style&index=0&id=268948c2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-268948c2\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-372c6730\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"table-generator\" }\nconst _hoisted_2 = { class: \"title\" }\nconst _hoisted_3 = { class: \"lef\" }\nconst _hoisted_4 = [\"onMouseenter\"]\nconst _hoisted_5 = {\n key: 1,\n class: \"custom\"\n}\nconst _hoisted_6 = { class: \"row\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"label\",\n style: {\"width\":\"25%\"}\n}, \"行数:\", -1))\nconst _hoisted_8 = { class: \"row\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"label\",\n style: {\"width\":\"25%\"}\n}, \"列数:\", -1))\nconst _hoisted_10 = { class: \"btns\" }\n\nimport { ref } from 'vue'\nimport message from '@/utils/message'\nimport Button from '@/components/Button.vue'\nimport NumberInput from '@/components/NumberInput.vue'\n\ninterface InsertData {\n row: number\n col: number\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TableGenerator',\n emits: [\"insert\", \"close\"],\n setup(__props, { emit: __emit }) {\n\nconst emit = __emit\n\nconst endCell = ref([])\nconst customRow = ref(3)\nconst customCol = ref(3)\nconst isCustom = ref(false)\n\nconst handleClickTable = () => {\n if (!endCell.value.length) return\n const [row, col] = endCell.value\n emit('insert', { row, col })\n}\n\nconst insertCustomTable = () => {\n if (customRow.value < 1 || customRow.value > 20) return message.warning('行数/列数必须在0~20之间!')\n if (customCol.value < 1 || customCol.value > 20) return message.warning('行数/列数必须在0~20之间!')\n emit('insert', { row: customRow.value, col: customCol.value })\n isCustom.value = false\n}\n\nconst close = () => {\n emit('close')\n isCustom.value = false\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, \"表格 \" + _toDisplayString(endCell.value.length ? `${endCell.value[0]} x ${endCell.value[1]}` : ''), 1),\n _createElementVNode(\"div\", {\n class: \"right\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (isCustom.value = !isCustom.value))\n }, _toDisplayString(isCustom.value ? '返回' : '自定义'), 1)\n ]),\n (!isCustom.value)\n ? (_openBlock(), _createElementBlock(\"table\", {\n key: 0,\n onMouseleave: _cache[1] || (_cache[1] = ($event: any) => (endCell.value = [])),\n onClick: _cache[2] || (_cache[2] = ($event: any) => (handleClickTable()))\n }, [\n _createElementVNode(\"tbody\", null, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (row) => {\n return _createElementVNode(\"tr\", { key: row }, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (col) => {\n return _createElementVNode(\"td\", {\n onMouseenter: ($event: any) => (endCell.value = [row, col]),\n key: col\n }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"cell\", { 'active': endCell.value.length && row <= endCell.value[0] && col <= endCell.value[1] }])\n }, null, 2)\n ], 40, _hoisted_4)\n }), 64))\n ])\n }), 64))\n ])\n ], 32))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createVNode(NumberInput, {\n min: 1,\n max: 20,\n value: customRow.value,\n \"onUpdate:value\": _cache[3] || (_cache[3] = ($event: any) => ((customRow).value = $event)),\n style: {\"width\":\"75%\"}\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createVNode(NumberInput, {\n min: 1,\n max: 20,\n value: customCol.value,\n \"onUpdate:value\": _cache[4] || (_cache[4] = ($event: any) => ((customCol).value = $event)),\n style: {\"width\":\"75%\"}\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode(Button, {\n class: \"btn\",\n onClick: _cache[5] || (_cache[5] = ($event: any) => (close()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"取消\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n class: \"btn\",\n type: \"primary\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (insertCustomTable()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"确认\")\n ]),\n _: 1\n })\n ])\n ]))\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./TableGenerator.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./TableGenerator.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./TableGenerator.vue?vue&type=style&index=0&id=372c6730&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-372c6730\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-35a1214c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"media-input\" }\nconst _hoisted_2 = { class: \"btns\" }\nconst _hoisted_3 = { class: \"btns\" }\n\nimport { ref } from 'vue'\nimport message from '@/utils/message'\nimport Tabs from '@/components/Tabs.vue'\nimport Input from '@/components/Input.vue'\nimport Button from '@/components/Button.vue'\n\ntype TypeKey = 'video' | 'audio'\ninterface TabItem {\n key: TypeKey\n label: string\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'MediaInput',\n emits: [\"insertVideo\", \"insertAudio\", \"close\"],\n setup(__props, { emit: __emit }) {\n\nconst emit = __emit\n\nconst type = ref('video')\n\nconst videoSrc = ref('https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm')\nconst audioSrc = ref('https://freesound.org/data/previews/614/614107_11861866-lq.mp3')\n\nconst tabs: TabItem[] = [\n { key: 'video', label: '视频' },\n { key: 'audio', label: '音频' },\n]\n\nconst insertVideo = () => {\n if (!videoSrc.value) return message.error('请先输入正确的视频地址')\n emit('insertVideo', videoSrc.value)\n}\n\nconst insertAudio = () => {\n if (!audioSrc.value) return message.error('请先输入正确的音频地址')\n emit('insertAudio', audioSrc.value)\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(Tabs, {\n tabs: tabs,\n value: type.value,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((type).value = $event)),\n tabsStyle: { marginBottom: '15px' }\n }, null, 8, [\"value\"]),\n (type.value === 'video')\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createVNode(Input, {\n value: videoSrc.value,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((videoSrc).value = $event)),\n placeholder: \"请输入视频地址,e.g. https://xxx.mp4\"\n }, null, 8, [\"value\"]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(Button, {\n onClick: _cache[2] || (_cache[2] = ($event: any) => (emit('close'))),\n style: {\"margin-right\":\"10px\"}\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"取消\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n type: \"primary\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (insertVideo()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"确认\")\n ]),\n _: 1\n })\n ])\n ], 64))\n : _createCommentVNode(\"\", true),\n (type.value === 'audio')\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n _createVNode(Input, {\n value: audioSrc.value,\n \"onUpdate:value\": _cache[4] || (_cache[4] = ($event: any) => ((audioSrc).value = $event)),\n placeholder: \"请输入音频地址,e.g. https://xxx.mp3\"\n }, null, 8, [\"value\"]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(Button, {\n onClick: _cache[5] || (_cache[5] = ($event: any) => (emit('close'))),\n style: {\"margin-right\":\"10px\"}\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"取消\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n type: \"primary\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (insertAudio()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"确认\")\n ]),\n _: 1\n })\n ])\n ], 64))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./MediaInput.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./MediaInput.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./MediaInput.vue?vue&type=style&index=0&id=35a1214c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-35a1214c\"]])\n\nexport default __exports__","import { hfmath, CONFIG as hfmathConfig } from 'hfmath'\n\nhfmathConfig.SUB_SUP_SCALE = 0.5\n\nexport { hfmath }","export const FORMULA_LIST = [\n {\n label: '高斯公式',\n latex: `\\\\int\\\\int\\\\int _ { \\\\Omega } \\\\left( \\\\frac { \\\\partial {P} } { \\\\partial {x} } + \\\\frac { \\\\partial {Q} } { \\\\partial {y} } + \\\\frac { \\\\partial {R} }{ \\\\partial {z} } \\\\right) \\\\mathrm { d } V = \\\\oint _ { \\\\partial \\\\Omega } ( P \\\\cos \\\\alpha + Q \\\\cos \\\\beta + R \\\\cos \\\\gamma ) \\\\mathrm{ d} S`\n },\n {\n label: '傅里叶级数',\n latex: `f(x) = \\\\frac {a_0} 2 + \\\\sum_{n = 1}^\\\\infty {({a_n}\\\\cos {nx} + {b_n}\\\\sin {nx})}`,\n },\n {\n label: '泰勒展开式',\n latex: `e ^ { x } = 1 + \\\\frac { x } { 1 ! } + \\\\frac { x ^ { 2 } } { 2 ! } + \\\\frac { x ^ { 3 } } { 3 ! } + ... , \\\\quad - \\\\infty < x < \\\\infty`,\n },\n {\n label: '定积分',\n latex: `\\\\lim_ { n \\\\rightarrow + \\\\infty } \\\\sum _ { i = 1 } ^ { n } f \\\\left[ a + \\\\frac { i } { n } ( b - a ) \\\\right] \\\\frac { b - a } { n } = \\\\int _ { a } ^ { b } f ( x ) dx`,\n },\n {\n label: '三角恒等式1',\n latex: `\\\\sin \\\\alpha \\\\pm \\\\sin \\\\beta = 2 \\\\sin \\\\frac { 1 } { 2 } ( \\\\alpha \\\\pm \\\\beta ) \\\\cos \\\\frac { 1 } { 2 } ( \\\\alpha \\\\mp \\\\beta )`,\n },\n {\n label: '三角恒等式2',\n latex: `\\\\cos \\\\alpha + \\\\cos \\\\beta = 2 \\\\cos \\\\frac { 1 } { 2 } ( \\\\alpha + \\\\beta ) \\\\cos \\\\frac { 1 } { 2 } ( \\\\alpha - \\\\beta )`,\n },\n {\n label: '和的展开式',\n latex: `( 1 + x ) ^ { n } = 1 + \\\\frac { n x } { 1 ! } + \\\\frac { n ( n - 1 ) x ^ { 2 } } { 2 ! } + ...`,\n },\n {\n label: '欧拉公式',\n latex: ` e^{ix} = \\\\cos {x} + i\\\\sin {x}`,\n },\n {\n label: '贝努利方程',\n latex: `\\\\frac {dy} {dx} + P(x)y = Q(x) y^n ({n} \\\\not= {0,1})`,\n },\n {\n label: '全微分方程',\n latex: `du(x,y) = P(x,y)dx + Q(x,y)dy = 0`,\n },\n {\n label: '非齐次方程',\n latex: `y = (\\\\int Q(x) e^{\\\\int {P(x)dx}}dx + C)e^{-\\\\int {P(x)dx}}`,\n },\n {\n label: '柯西中值定理',\n latex: `\\\\frac{{f(b) - f(a)}}{{F(b) - F(a)}} = \\\\frac{{f'(\\\\xi )}}{{F'(\\\\xi )}}`,\n },\n {\n label: '拉格朗日中值定理',\n latex: `f(b) - f(a) = f'(\\\\xi )(b - a)`,\n },\n {\n label: '导数公式',\n latex: `(\\\\arcsin x)' = \\\\frac{1}{{\\\\sqrt {1 - x^2} }}`,\n },\n {\n label: '三角函数积分',\n latex: `\\\\int {tgxdx = - \\\\ln \\\\left| {\\\\cos x} \\\\right| + C}`,\n },\n {\n label: '二次曲面',\n latex: `\\\\frac{{{x^2}}}{{{a^2}}} + \\\\frac{{{y^2}}}{{{b^2}}} - \\\\frac{{{z^2}}}{{{c^2}}} = 1`,\n },\n {\n label: '二阶微分',\n latex: `\\\\frac {{d^2}y} {dx^2} + P(x) \\\\frac {dy} {dx} + Q(x)y = f(x)`,\n },\n {\n label: '方向导数',\n latex: `\\\\frac{{\\\\partial f}}{{\\\\partial l}} = \\\\frac{{\\\\partial f}}{{\\\\partial x}}\\\\cos \\\\phi + \\\\frac{{\\\\partial f}}{{\\\\partial y}}\\\\sin \\\\phi`,\n },\n]\n\nexport const SYMBOL_LIST = [\n {\n type: 'operators',\n label: '数学',\n children: [\n { latex: '\\\\cdot' },\n { latex: '\\\\pm' },\n { latex: '\\\\mp' },\n { latex: '+' },\n { latex: '-' },\n { latex: '\\\\times' },\n { latex: '\\\\div' },\n { latex: '<' },\n { latex: '>' },\n { latex: '=' },\n { latex: '\\\\neq\\\\ne' },\n { latex: '\\\\leqq' },\n { latex: '\\\\geqq' },\n { latex: '\\\\leq' },\n { latex: '\\\\geq' },\n { latex: '\\\\propto' },\n { latex: '\\\\sim' },\n { latex: '\\\\equiv' },\n { latex: '\\\\dagger' },\n { latex: '\\\\ddagger' },\n { latex: '\\\\ell' },\n { latex: '\\\\#' },\n { latex: '\\\\$' },\n { latex: '\\\\&' },\n { latex: '\\\\%' },\n { latex: '\\\\langle\\\\rangle' },\n { latex: '()' },\n { latex: '[]' },\n { latex: '\\\\{\\\\}' },\n { latex: '||' },\n { latex: '\\\\|' },\n { latex: '\\\\exists' },\n { latex: '\\\\in' },\n { latex: '\\\\subset' },\n { latex: '\\\\supset' },\n { latex: '\\\\cup' },\n { latex: '\\\\cap' },\n { latex: '\\\\infty' },\n { latex: '\\\\partial' },\n { latex: '\\\\nabla' },\n { latex: '\\\\aleph' },\n { latex: '\\\\wp' },\n { latex: '\\\\therefore' },\n { latex: '\\\\mid' },\n { latex: '\\\\sum' },\n { latex: '\\\\prod' },\n { latex: '\\\\bigoplus' },\n { latex: '\\\\bigodot' },\n { latex: '\\\\int' },\n { latex: '\\\\oint' },\n { latex: '\\\\oplus' },\n { latex: '\\\\odot' },\n { latex: '\\\\perp' },\n { latex: '\\\\angle' },\n { latex: '\\\\triangle' },\n { latex: '\\\\Box' },\n { latex: '\\\\rightarrow' },\n { latex: '\\\\to' },\n { latex: '\\\\leftarrow' },\n { latex: '\\\\gets' },\n { latex: '\\\\circ' },\n { latex: '\\\\bigcirc' },\n { latex: '\\\\bullet' },\n { latex: '\\\\star' },\n { latex: '\\\\diamond' },\n { latex: '\\\\ast' },\n { latex: ',' },\n { latex: '.' },\n { latex: ';' },\n { latex: '!' },\n ],\n },\n {\n type: 'group',\n label: '组合',\n children: [\n { latex: '\\\\frac{a}{b}' },\n { latex: '\\\\frac{dx}{dx}' },\n { latex: '\\\\frac{\\\\partial a}{\\\\partial b}' },\n { latex: '\\\\sqrt{x}' },\n { latex: '\\\\sqrt[n]{x}' },\n { latex: 'x^{n}' },\n { latex: 'x_{n}' },\n { latex: 'x_a^b' },\n { latex: '\\\\int_{a}^{b}' },\n { latex: '\\\\oint_a^b' },\n { latex: '\\\\lim_{a \\\\rightarrow b}' },\n { latex: '\\\\prod_a^b' },\n { latex: '\\\\sum_a^b' },\n { latex: '\\\\left(\\\\begin{array}a \\\\\\\\ b\\\\end{array}\\\\right)' },\n { latex: '\\\\begin{bmatrix}a & b \\\\\\\\ c & d \\\\end{bmatrix}' },\n { latex: '\\\\begin{cases}a & x = 0 \\\\\\\\ b & x > 0\\\\end{cases}' },\n { latex: '\\\\hat{a}' },\n { latex: '\\\\breve{a}' },\n { latex: '\\\\acute{a}' },\n { latex: '\\\\grave{a}' },\n { latex: '\\\\tilde{a}' },\n { latex: '\\\\bar{a}' },\n { latex: '\\\\vec{a}' },\n { latex: '\\\\underline{a}' },\n { latex: '\\\\overline{a}' },\n { latex: '\\\\widehat{ab}' },\n { latex: '\\\\overleftarrow{ab}' },\n { latex: '\\\\overrightarrow{ab}' },\n ],\n },\n {\n type: 'verbatim',\n label: '函数',\n children: [\n { latex: '\\\\log' },\n { latex: '\\\\ln' },\n { latex: '\\\\exp' },\n { latex: '\\\\mod' },\n { latex: '\\\\lim' },\n { latex: '\\\\sin' },\n { latex: '\\\\cos' },\n { latex: '\\\\tan' },\n { latex: '\\\\csc' },\n { latex: '\\\\sec' },\n { latex: '\\\\cot' },\n { latex: '\\\\sinh' },\n { latex: '\\\\cosh' },\n { latex: '\\\\tanh' },\n { latex: '\\\\csch' },\n { latex: '\\\\sech' },\n { latex: '\\\\coth' },\n { latex: '\\\\arcsin' },\n { latex: '\\\\arccos' },\n { latex: '\\\\arctan' },\n { latex: '\\\\arccsc' },\n { latex: '\\\\arcsec' },\n { latex: '\\\\arccot' },\n ],\n },\n {\n type: 'greek',\n label: '希腊字母',\n children: [\n { latex: '\\\\alpha' },\n { latex: '\\\\beta' },\n { latex: '\\\\gamma' },\n { latex: '\\\\delta' },\n { latex: '\\\\varepsilon' },\n { latex: '\\\\zeta' },\n { latex: '\\\\eta' },\n { latex: '\\\\vartheta' },\n { latex: '\\\\iota' },\n { latex: '\\\\kappa' },\n { latex: '\\\\lambda' },\n { latex: '\\\\mu' },\n { latex: '\\\\nu' },\n { latex: '\\\\xi' },\n { latex: '\\\\omicron' },\n { latex: '\\\\pi' },\n { latex: '\\\\rho' },\n { latex: '\\\\sigma' },\n { latex: '\\\\tau' },\n { latex: '\\\\upsilon' },\n { latex: '\\\\varphi' },\n { latex: '\\\\chi' },\n { latex: '\\\\psi' },\n { latex: '\\\\omega' },\n { latex: '\\\\epsilon' },\n { latex: '\\\\theta' },\n { latex: '\\\\phi' },\n { latex: '\\\\varsigma' },\n { latex: '\\\\Alpha' },\n { latex: '\\\\Beta' },\n { latex: '\\\\Gamma' },\n { latex: '\\\\Delta' },\n { latex: '\\\\Epsilon' },\n { latex: '\\\\Zeta' },\n { latex: '\\\\Eta' },\n { latex: '\\\\Theta' },\n { latex: '\\\\Iota' },\n { latex: '\\\\Kappa' },\n { latex: '\\\\Lambda' },\n { latex: '\\\\Mu' },\n { latex: '\\\\Nu' },\n { latex: '\\\\Xi' },\n { latex: '\\\\Omicron' },\n { latex: '\\\\Pi' },\n { latex: '\\\\Rho' },\n { latex: '\\\\Sigma' },\n { latex: '\\\\Tau' },\n { latex: '\\\\Upsilon' },\n { latex: '\\\\Phi' },\n { latex: '\\\\Chi' },\n { latex: '\\\\Psi' },\n { latex: '\\\\Omega' },\n ],\n },\n]","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-567417d3\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"width\", \"height\"]\nconst _hoisted_2 = [\"transform\"]\nconst _hoisted_3 = [\"d\"]\n\nimport { computed, ref, watch } from 'vue'\nimport { hfmath } from './hfmath'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'FormulaContent',\n props: {\n latex: {},\n width: {},\n height: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst box = ref({ x: 0, y: 0, w: 0, h: 0 })\nconst pathd = ref('')\n\nwatch(() => props.latex, () => {\n const eq = new hfmath(props.latex)\n pathd.value = eq.pathd({})\n box.value = eq.box({})\n}, { immediate: true })\n\nconst scale = computed(() => {\n const boxW = box.value.w + 32\n const boxH = box.value.h + 32\n\n if (boxW > props.width || boxH > props.height) {\n if (boxW / boxH > props.width / props.height) return props.width / boxW\n return props.height / boxH\n }\n return 1\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"svg\", {\n class: \"formula-content\",\n overflow: \"visible\",\n width: box.value.w + 32,\n height: box.value.h + 32,\n stroke: \"#000\",\n \"stroke-width\": \"1\",\n fill: \"none\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n }, [\n _createElementVNode(\"g\", {\n transform: `scale(${scale.value}, ${scale.value}) translate(0,0) matrix(1,0,0,1,0,0)`,\n \"transform-origin\": \"0 50%\"\n }, [\n _createElementVNode(\"path\", { d: pathd.value }, null, 8, _hoisted_3)\n ], 8, _hoisted_2)\n ], 8, _hoisted_1))\n}\n}\n\n})","\n\n\n\n","import script from \"./FormulaContent.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./FormulaContent.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./FormulaContent.vue?vue&type=style&index=0&id=567417d3&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-567417d3\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"innerHTML\"]\n\nimport { computed } from 'vue'\nimport { hfmath } from './hfmath'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'SymbolContent',\n props: {\n latex: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst svg = computed(() => {\n const eq = new hfmath(props.latex)\n return eq.svg({\n SCALE_X: 10,\n SCALE_Y: 10,\n })\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"symbol-content\",\n innerHTML: svg.value\n }, null, 8, _hoisted_1))\n}\n}\n\n})","\n\n\n","import script from \"./SymbolContent.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./SymbolContent.vue?vue&type=script&lang=ts&setup=true\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-65d72404\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"disabled\", \"value\", \"rows\", \"placeholder\"]\n\nimport { ref } from 'vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'TextArea',\n props: {\n value: {},\n rows: { default: 4 },\n disabled: { type: Boolean, default: false },\n resizable: { type: Boolean, default: false },\n placeholder: { default: '' }\n },\n emits: [\"update:value\"],\n setup(__props: any, { expose: __expose, emit: __emit }) {\n\n\n\nconst emit = __emit\n\nconst handleInput = (e: Event) => {\n emit('update:value', (e.target as HTMLInputElement).value)\n}\n\nconst textareaRef = ref()\nconst focus = () => {\n if (textareaRef.value) textareaRef.value.focus()\n}\n\n__expose({\n focus,\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"textarea\", {\n class: _normalizeClass([\"textarea\", {\n 'disabled': _ctx.disabled,\n 'resizable': _ctx.resizable,\n }]),\n ref_key: \"textareaRef\",\n ref: textareaRef,\n disabled: _ctx.disabled,\n value: _ctx.value,\n rows: _ctx.rows,\n placeholder: _ctx.placeholder,\n onInput: _cache[0] || (_cache[0] = $event => handleInput($event))\n }, null, 42, _hoisted_1))\n}\n}\n\n})","\n\n\n\n","import script from \"./TextArea.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./TextArea.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./TextArea.vue?vue&type=style&index=0&id=65d72404&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-65d72404\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-49a14edf\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"latex-editor\" }\nconst _hoisted_2 = { class: \"container\" }\nconst _hoisted_3 = { class: \"left\" }\nconst _hoisted_4 = { class: \"input-area\" }\nconst _hoisted_5 = { class: \"preview\" }\nconst _hoisted_6 = {\n key: 0,\n class: \"placeholder\"\n}\nconst _hoisted_7 = {\n key: 1,\n class: \"preview-content\"\n}\nconst _hoisted_8 = { class: \"right\" }\nconst _hoisted_9 = { class: \"content\" }\nconst _hoisted_10 = {\n key: 0,\n class: \"symbol\"\n}\nconst _hoisted_11 = { class: \"symbol-pool\" }\nconst _hoisted_12 = [\"onClick\"]\nconst _hoisted_13 = {\n key: 1,\n class: \"formula\"\n}\nconst _hoisted_14 = { class: \"formula-title\" }\nconst _hoisted_15 = [\"onClick\"]\nconst _hoisted_16 = { class: \"footer\" }\n\nimport { computed, onMounted, ref } from 'vue'\nimport { hfmath } from './hfmath'\nimport { FORMULA_LIST, SYMBOL_LIST } from '@/configs/latex'\nimport message from '@/utils/message'\n\nimport FormulaContent from './FormulaContent.vue'\nimport SymbolContent from './SymbolContent.vue'\nimport Button from '../Button.vue'\nimport TextArea from '../TextArea.vue'\nimport Tabs from '../Tabs.vue'\n\ninterface TabItem {\n key: 'symbol' | 'formula'\n label: string\n}\n\ninterface LatexResult {\n latex: string\n path: string\n w: number\n h: number\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n value: { default: '' }\n },\n emits: [\"update\", \"close\"],\n setup(__props: any, { emit: __emit }) {\n\nconst tabs: TabItem[] = [\n { label: '常用符号', key: 'symbol' },\n { label: '预置公式', key: 'formula' },\n]\n\nconst props = __props\n\nconst emit = __emit\n\nconst formulaList = FORMULA_LIST\n\nconst symbolTabs = SYMBOL_LIST.map(item => ({\n label: item.label,\n key: item.type,\n}))\n\nconst latex = ref('')\nconst toolbarState = ref<'symbol' | 'formula'>('symbol')\nconst textAreaRef = ref>()\n\nconst selectedSymbolKey = ref(SYMBOL_LIST[0].type)\nconst symbolPool = computed(() => {\n const selectedSymbol = SYMBOL_LIST.find(item => item.type === selectedSymbolKey.value)\n return selectedSymbol?.children || []\n})\n\nonMounted(() => {\n if (props.value) latex.value = props.value\n})\n\nconst update = () => {\n if (!latex.value) return message.error('公式不能为空')\n\n const eq = new hfmath(latex.value)\n const pathd = eq.pathd({})\n const box = eq.box({})\n \n emit('update', {\n latex: latex.value,\n path: pathd,\n w: box.w + 32,\n h: box.h + 32,\n })\n}\n\nconst insertSymbol = (latex: string) => {\n if (!textAreaRef.value) return\n textAreaRef.value.focus()\n document.execCommand('insertText', false, latex)\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(TextArea, {\n value: latex.value,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((latex).value = $event)),\n placeholder: \"输入 LaTeX 公式\",\n ref_key: \"textAreaRef\",\n ref: textAreaRef\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n (!latex.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, \"公式预览\"))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createVNode(FormulaContent, {\n width: 518,\n height: 138,\n latex: latex.value\n }, null, 8, [\"latex\"])\n ]))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(Tabs, {\n tabs: tabs,\n value: toolbarState.value,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((toolbarState).value = $event)),\n card: \"\"\n }, null, 8, [\"value\"]),\n _createElementVNode(\"div\", _hoisted_9, [\n (toolbarState.value === 'symbol')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n _createVNode(Tabs, {\n tabs: _unref(symbolTabs),\n value: selectedSymbolKey.value,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((selectedSymbolKey).value = $event)),\n spaceBetween: \"\",\n tabsStyle: { margin: '10px 10px 0' }\n }, null, 8, [\"tabs\", \"value\"]),\n _createElementVNode(\"div\", _hoisted_11, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(symbolPool.value, (item) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"symbol-item\",\n key: item.latex,\n onClick: ($event: any) => (insertSymbol(item.latex))\n }, [\n _createVNode(SymbolContent, {\n latex: item.latex\n }, null, 8, [\"latex\"])\n ], 8, _hoisted_12))\n }), 128))\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(formulaList), (item) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"formula-item\",\n key: item.label\n }, [\n _createElementVNode(\"div\", _hoisted_14, _toDisplayString(item.label), 1),\n _createElementVNode(\"div\", {\n class: \"formula-item-content\",\n onClick: ($event: any) => (latex.value = item.latex)\n }, [\n _createVNode(FormulaContent, {\n width: 236,\n height: 60,\n latex: item.latex\n }, null, 8, [\"latex\"])\n ], 8, _hoisted_15)\n ]))\n }), 128))\n ]))\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _createVNode(Button, {\n class: \"btn\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (emit('close')))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"取消\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n class: \"btn\",\n type: \"primary\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (update()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"确定\")\n ]),\n _: 1\n })\n ])\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./SlideToolbar.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./SlideToolbar.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./SlideToolbar.vue?vue&type=style&index=0&id=24150aba&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-24150aba\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, unref as _unref, resolveComponent as _resolveComponent, withCtx as _withCtx, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-f3d1ac70\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"element-toolbar\" }\nconst _hoisted_2 = { class: \"content\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"style\"\n}\nconst _hoisted_4 = { class: \"row-block\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"label\" }, \"文字颜色:\", -1))\nconst _hoisted_6 = { class: \"colors\" }\nconst _hoisted_7 = [\"onClick\"]\nconst _hoisted_8 = { class: \"row-block\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"label\" }, \"填充色:\", -1))\nconst _hoisted_10 = { class: \"colors\" }\nconst _hoisted_11 = [\"onClick\"]\nconst _hoisted_12 = {\n key: 1,\n class: \"common\"\n}\n\nimport { ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTElement, TableCell } from '@/types/slides'\nimport { ElementAlignCommands, ElementOrderCommands } from '@/types/edit'\nimport emitter, { EmitterEvents } from '@/utils/emitter'\nimport useOrderElement from '@/hooks/useOrderElement'\nimport useAlignElementToCanvas from '@/hooks/useAlignElementToCanvas'\nimport useDeleteElement from '@/hooks/useDeleteElement'\nimport useAddSlidesOrElements from '@/hooks/useAddSlidesOrElements'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\nimport CheckboxButton from '@/components/CheckboxButton.vue'\nimport Tabs from '@/components/Tabs.vue'\nimport Divider from '@/components/Divider.vue'\nimport Button from '@/components/Button.vue'\nimport ButtonGroup from '@/components/ButtonGroup.vue'\nimport RadioButton from '@/components/RadioButton.vue'\nimport RadioGroup from '@/components/RadioGroup.vue'\n\ninterface TabItem {\n key: 'style' | 'common'\n label: string\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ElementToolbar',\n setup(__props) {\n\nconst colors = ['#000000', '#ffffff', '#eeece1', '#1e497b', '#4e81bb', '#e2534d', '#9aba60', '#8165a0', '#47acc5', '#f9974c', '#c21401', '#ff1e02', '#ffc12a', '#ffff3a', '#90cf5b', '#00af57']\n\nconst mainStore = useMainStore()\nconst slidesStore = useSlidesStore()\nconst { handleElement, handleElementId, richTextAttrs } = storeToRefs(mainStore)\n\nconst { addHistorySnapshot } = useHistorySnapshot()\n\nconst updateElement = (id: string, props: Partial) => {\n slidesStore.updateElement({ id, props })\n addHistorySnapshot()\n}\n\nconst tabs: TabItem[] = [\n { key: 'style', label: '样式' },\n { key: 'common', label: '布局' },\n]\nconst activeTab = ref('common')\n\nconst { orderElement } = useOrderElement()\nconst { alignElementToCanvas } = useAlignElementToCanvas()\nconst { addElementsFromData } = useAddSlidesOrElements()\nconst { deleteElement } = useDeleteElement()\n\nconst copyElement = () => {\n const element: PPTElement = JSON.parse(JSON.stringify(handleElement.value))\n addElementsFromData([element])\n}\n\nconst emitRichTextCommand = (command: string, value?: string) => {\n emitter.emit(EmitterEvents.RICH_TEXT_COMMAND, { action: { command, value } })\n}\n\nconst updateFontColor = (color: string) => {\n if (!handleElement.value) return\n if (handleElement.value.type === 'text' || (handleElement.value.type === 'shape' && handleElement.value.text?.content)) {\n emitter.emit(EmitterEvents.RICH_TEXT_COMMAND, { action: { command: 'color', value: color } })\n }\n if (handleElement.value.type === 'table') {\n const data: TableCell[][] = JSON.parse(JSON.stringify(handleElement.value.data))\n for (let i = 0; i < data.length; i++) {\n for (let j = 0; j < data[i].length; j++) {\n const style = data[i][j].style || {}\n data[i][j].style = { ...style, color }\n }\n }\n updateElement(handleElementId.value, { data })\n }\n if (handleElement.value.type === 'latex') {\n updateElement(handleElementId.value, { color })\n }\n}\n\nconst updateFill = (color: string) => {\n if (!handleElement.value) return\n if (\n handleElement.value.type === 'text' ||\n handleElement.value.type === 'shape' ||\n handleElement.value.type === 'chart'\n ) updateElement(handleElementId.value, { fill: color })\n\n if (handleElement.value.type === 'table') {\n const data: TableCell[][] = JSON.parse(JSON.stringify(handleElement.value.data))\n for (let i = 0; i < data.length; i++) {\n for (let j = 0; j < data[i].length; j++) {\n const style = data[i][j].style || {}\n data[i][j].style = { ...style, backcolor: color }\n }\n }\n updateElement(handleElementId.value, { data })\n }\n\n if (handleElement.value.type === 'audio') updateElement(handleElementId.value, { color })\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconTextBold = _resolveComponent(\"IconTextBold\")!\n const _component_IconTextItalic = _resolveComponent(\"IconTextItalic\")!\n const _component_IconTextUnderline = _resolveComponent(\"IconTextUnderline\")!\n const _component_IconStrikethrough = _resolveComponent(\"IconStrikethrough\")!\n const _component_IconFontSize = _resolveComponent(\"IconFontSize\")!\n const _component_IconAlignTextLeft = _resolveComponent(\"IconAlignTextLeft\")!\n const _component_IconAlignTextCenter = _resolveComponent(\"IconAlignTextCenter\")!\n const _component_IconAlignTextRight = _resolveComponent(\"IconAlignTextRight\")!\n const _component_IconCopy = _resolveComponent(\"IconCopy\")!\n const _component_IconDelete = _resolveComponent(\"IconDelete\")!\n const _component_IconSendToBack = _resolveComponent(\"IconSendToBack\")!\n const _component_IconBringToFrontOne = _resolveComponent(\"IconBringToFrontOne\")!\n const _component_IconBringToFront = _resolveComponent(\"IconBringToFront\")!\n const _component_IconSentToBack = _resolveComponent(\"IconSentToBack\")!\n const _component_IconAlignLeft = _resolveComponent(\"IconAlignLeft\")!\n const _component_IconAlignVertically = _resolveComponent(\"IconAlignVertically\")!\n const _component_IconAlignRight = _resolveComponent(\"IconAlignRight\")!\n const _component_IconAlignTop = _resolveComponent(\"IconAlignTop\")!\n const _component_IconAlignHorizontally = _resolveComponent(\"IconAlignHorizontally\")!\n const _component_IconAlignBottom = _resolveComponent(\"IconAlignBottom\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(Tabs, {\n tabs: tabs,\n value: activeTab.value,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((activeTab).value = $event)),\n tabsStyle: { marginBottom: '8px' },\n tabStyle: {\n width: '30%',\n margin: '0 10%',\n }\n }, null, 8, [\"value\"]),\n _createElementVNode(\"div\", _hoisted_2, [\n (activeTab.value === 'style')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createVNode(ButtonGroup, { class: \"row\" }, {\n default: _withCtx(() => [\n _createVNode(CheckboxButton, {\n style: {\"flex\":\"1\"},\n checked: _unref(richTextAttrs).bold,\n onClick: _cache[1] || (_cache[1] = ($event: any) => (emitRichTextCommand('bold')))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconTextBold)\n ]),\n _: 1\n }, 8, [\"checked\"]),\n _createVNode(CheckboxButton, {\n style: {\"flex\":\"1\"},\n checked: _unref(richTextAttrs).em,\n onClick: _cache[2] || (_cache[2] = ($event: any) => (emitRichTextCommand('em')))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconTextItalic)\n ]),\n _: 1\n }, 8, [\"checked\"]),\n _createVNode(CheckboxButton, {\n style: {\"flex\":\"1\"},\n checked: _unref(richTextAttrs).underline,\n onClick: _cache[3] || (_cache[3] = ($event: any) => (emitRichTextCommand('underline')))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconTextUnderline)\n ]),\n _: 1\n }, 8, [\"checked\"]),\n _createVNode(CheckboxButton, {\n style: {\"flex\":\"1\"},\n checked: _unref(richTextAttrs).strikethrough,\n onClick: _cache[4] || (_cache[4] = ($event: any) => (emitRichTextCommand('strikethrough')))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconStrikethrough)\n ]),\n _: 1\n }, 8, [\"checked\"])\n ]),\n _: 1\n }),\n _createVNode(ButtonGroup, { class: \"row\" }, {\n default: _withCtx(() => [\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[5] || (_cache[5] = ($event: any) => (emitRichTextCommand('fontsize-add')))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconFontSize),\n _createTextVNode(\"+\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[6] || (_cache[6] = ($event: any) => (emitRichTextCommand('fontsize-reduce')))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconFontSize),\n _createTextVNode(\"-\")\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(Divider, { style: {\"margin\":\"20px 0\"} }),\n _createVNode(RadioGroup, {\n class: \"row\",\n \"button-style\": \"solid\",\n value: _unref(richTextAttrs).align,\n \"onUpdate:value\": _cache[7] || (_cache[7] = value => emitRichTextCommand('align', value))\n }, {\n default: _withCtx(() => [\n _createVNode(RadioButton, {\n value: \"left\",\n style: {\"flex\":\"1\"}\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconAlignTextLeft)\n ]),\n _: 1\n }),\n _createVNode(RadioButton, {\n value: \"center\",\n style: {\"flex\":\"1\"}\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconAlignTextCenter)\n ]),\n _: 1\n }),\n _createVNode(RadioButton, {\n value: \"right\",\n style: {\"flex\":\"1\"}\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconAlignTextRight)\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"value\"]),\n _createVNode(Divider, { style: {\"margin\":\"20px 0\"} }),\n _createElementVNode(\"div\", _hoisted_4, [\n _hoisted_5,\n _createElementVNode(\"div\", _hoisted_6, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(colors, (color) => {\n return _createElementVNode(\"div\", {\n class: \"color\",\n key: color,\n onClick: ($event: any) => (updateFontColor(color))\n }, [\n _createElementVNode(\"div\", {\n class: \"color-block\",\n style: _normalizeStyle({ backgroundColor: color })\n }, null, 4)\n ], 8, _hoisted_7)\n }), 64))\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createElementVNode(\"div\", _hoisted_10, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(colors, (color) => {\n return _createElementVNode(\"div\", {\n class: \"color\",\n key: color,\n onClick: ($event: any) => (updateFill(color))\n }, [\n _createElementVNode(\"div\", {\n class: \"color-block\",\n style: _normalizeStyle({ backgroundColor: color })\n }, null, 4)\n ], 8, _hoisted_11)\n }), 64))\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (activeTab.value === 'common')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [\n _createVNode(ButtonGroup, { class: \"row\" }, {\n default: _withCtx(() => [\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[8] || (_cache[8] = ($event: any) => (copyElement()))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconCopy, { class: \"icon\" }),\n _createTextVNode(\" 复制\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[9] || (_cache[9] = ($event: any) => (_unref(deleteElement)()))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconDelete, { class: \"icon\" }),\n _createTextVNode(\" 删除\")\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(Divider, { style: {\"margin\":\"20px 0\"} }),\n _createVNode(ButtonGroup, { class: \"row\" }, {\n default: _withCtx(() => [\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[10] || (_cache[10] = ($event: any) => (_unref(orderElement)(_unref(handleElement)!, _unref(ElementOrderCommands).TOP)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconSendToBack, { class: \"icon\" }),\n _createTextVNode(\" 置顶\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[11] || (_cache[11] = ($event: any) => (_unref(orderElement)(_unref(handleElement)!, _unref(ElementOrderCommands).BOTTOM)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconBringToFrontOne, { class: \"icon\" }),\n _createTextVNode(\" 置底\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[12] || (_cache[12] = ($event: any) => (_unref(orderElement)(_unref(handleElement)!, _unref(ElementOrderCommands).UP)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconBringToFront, { class: \"icon\" }),\n _createTextVNode(\" 上移\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[13] || (_cache[13] = ($event: any) => (_unref(orderElement)(_unref(handleElement)!, _unref(ElementOrderCommands).DOWN)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconSentToBack, { class: \"icon\" }),\n _createTextVNode(\" 下移\")\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(Divider, { style: {\"margin\":\"20px 0\"} }),\n _createVNode(ButtonGroup, { class: \"row\" }, {\n default: _withCtx(() => [\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[14] || (_cache[14] = ($event: any) => (_unref(alignElementToCanvas)(_unref(ElementAlignCommands).LEFT)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconAlignLeft, { class: \"icon\" }),\n _createTextVNode(\" 左对齐\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[15] || (_cache[15] = ($event: any) => (_unref(alignElementToCanvas)(_unref(ElementAlignCommands).HORIZONTAL)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconAlignVertically, { class: \"icon\" }),\n _createTextVNode(\" 水平居中\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[16] || (_cache[16] = ($event: any) => (_unref(alignElementToCanvas)(_unref(ElementAlignCommands).RIGHT)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconAlignRight, { class: \"icon\" }),\n _createTextVNode(\" 右对齐\")\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(ButtonGroup, { class: \"row\" }, {\n default: _withCtx(() => [\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[17] || (_cache[17] = ($event: any) => (_unref(alignElementToCanvas)(_unref(ElementAlignCommands).TOP)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconAlignTop, { class: \"icon\" }),\n _createTextVNode(\" 上对齐\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[18] || (_cache[18] = ($event: any) => (_unref(alignElementToCanvas)(_unref(ElementAlignCommands).VERTICAL)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconAlignHorizontally, { class: \"icon\" }),\n _createTextVNode(\" 垂直居中\")\n ]),\n _: 1\n }),\n _createVNode(Button, {\n style: {\"flex\":\"1\"},\n onClick: _cache[19] || (_cache[19] = ($event: any) => (_unref(alignElementToCanvas)(_unref(ElementAlignCommands).BOTTOM)))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_IconAlignBottom, { class: \"icon\" }),\n _createTextVNode(\" 下对齐\")\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./ElementToolbar.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ElementToolbar.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./ElementToolbar.vue?vue&type=style&index=0&id=f3d1ac70&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-f3d1ac70\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withModifiers as _withModifiers, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-5c34ab81\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"mobile-editor-header\" }\nconst _hoisted_2 = { class: \"history\" }\n\nimport { storeToRefs } from 'pinia'\nimport { useSnapshotStore } from '@/store'\nimport type { Mode } from '@/types/mobile'\nimport useHistorySnapshot from '@/hooks/useHistorySnapshot'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Header',\n props: {\n changeMode: { type: Function }\n },\n setup(__props: any) {\n\n\n\nconst { canUndo, canRedo } = storeToRefs(useSnapshotStore())\nconst { redo, undo } = useHistorySnapshot()\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconBack = _resolveComponent(\"IconBack\")!\n const _component_IconNext = _resolveComponent(\"IconNext\")!\n const _component_IconLogout = _resolveComponent(\"IconLogout\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"history-item\", { 'disable': !_unref(canUndo) }]),\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (_unref(undo)()), [\"stop\"]))\n }, [\n _createVNode(_component_IconBack),\n _createTextVNode(\" 撤销\")\n ], 2),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"history-item\", { 'disable': !_unref(canRedo) }]),\n onClick: _cache[1] || (_cache[1] = _withModifiers(($event: any) => (_unref(redo)()), [\"stop\"]))\n }, [\n _createVNode(_component_IconNext),\n _createTextVNode(\" 重做\")\n ], 2)\n ]),\n _createElementVNode(\"div\", {\n class: \"back\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.changeMode('preview')))\n }, [\n _createVNode(_component_IconLogout),\n _createTextVNode(\" 退出编辑\")\n ])\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./Header.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Header.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Header.vue?vue&type=style&index=0&id=5c34ab81&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-5c34ab81\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-3756d058\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"mobile-editor\" }\n\nimport { computed, onMounted, ref, watchEffect } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useMainStore, useSlidesStore } from '@/store'\nimport type { PPTElement } from '@/types/slides'\nimport type { AlignmentLineProps } from '@/types/edit'\nimport type { Mode } from '@/types/mobile'\nimport { VIEWPORT_SIZE } from '@/configs/canvas'\nimport useSlideBackgroundStyle from '@/hooks/useSlideBackgroundStyle'\nimport useDragElement from '@/views/Editor/Canvas/hooks/useDragElement'\nimport useScaleElement from '@/views/Editor/Canvas/hooks/useScaleElement'\nimport useRotateElement from '@/views/Editor/Canvas/hooks/useRotateElement'\n\nimport AlignmentLine from '@/views/Editor/Canvas/AlignmentLine.vue'\nimport MobileEditableElement from './MobileEditableElement.vue'\nimport MobileOperate from './MobileOperate.vue'\nimport SlideToolbar from './SlideToolbar.vue'\nimport ElementToolbar from './ElementToolbar.vue'\nimport Header from './Header.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n changeMode: { type: Function }\n },\n setup(__props: any) {\n\n\n\nconst slidesStore = useSlidesStore()\nconst mainStore = useMainStore()\nconst { slideIndex, currentSlide, viewportRatio } = storeToRefs(slidesStore)\nconst { activeElementIdList, handleElement } = storeToRefs(mainStore)\n\nconst contentRef = ref()\nconst viewportRef = ref()\n\nconst alignmentLines = ref([])\n\nconst background = computed(() => currentSlide.value.background)\nconst { backgroundStyle } = useSlideBackgroundStyle(background)\n\nconst canvasScale = computed(() => {\n if (!contentRef.value) return 1\n const contentWidth = contentRef.value.clientWidth\n const contentheight = contentRef.value.clientHeight\n\n const contentRatio = contentheight / contentWidth\n if (contentRatio >= viewportRatio.value) return (contentWidth - 20) / VIEWPORT_SIZE\n return (contentheight - 20) / viewportRatio.value / VIEWPORT_SIZE\n})\n\nonMounted(() => {\n if (activeElementIdList.value.length) mainStore.setActiveElementIdList([])\n if (slideIndex.value !== 0) slidesStore.updateSlideIndex(0)\n})\n\nconst viewportStyles = computed(() => ({\n width: VIEWPORT_SIZE * canvasScale.value + 'px',\n height: VIEWPORT_SIZE * viewportRatio.value * canvasScale.value + 'px',\n}))\n\nconst elementList = ref([])\nconst setLocalElementList = () => {\n elementList.value = currentSlide.value ? JSON.parse(JSON.stringify(currentSlide.value.elements)) : []\n}\nwatchEffect(setLocalElementList)\n\nconst { dragElement } = useDragElement(elementList, alignmentLines, canvasScale)\nconst { scaleElement } = useScaleElement(elementList, alignmentLines, canvasScale)\nconst { rotateElement } = useRotateElement(elementList, viewportRef, canvasScale)\n\nconst selectElement = (e: TouchEvent, element: PPTElement, startMove = true) => {\n if (!activeElementIdList.value.includes(element.id)) {\n mainStore.setActiveElementIdList([element.id])\n mainStore.setHandleElementId(element.id)\n }\n if (startMove) dragElement(e, element)\n}\n\nconst handleClickBlankArea = () => {\n mainStore.setActiveElementIdList([])\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(Header, { changeMode: _ctx.changeMode }, null, 8, [\"changeMode\"]),\n _createElementVNode(\"div\", {\n class: \"content\",\n ref_key: \"contentRef\",\n ref: contentRef,\n onTouchstart: _cache[0] || (_cache[0] = ($event: any) => (handleClickBlankArea()))\n }, [\n _createElementVNode(\"div\", {\n class: \"viewport-wrapper\",\n style: _normalizeStyle(viewportStyles.value)\n }, [\n _createElementVNode(\"div\", {\n class: \"background\",\n style: _normalizeStyle(_unref(backgroundStyle))\n }, null, 4),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(alignmentLines.value, (line, index) => {\n return (_openBlock(), _createBlock(AlignmentLine, {\n key: index,\n type: line.type,\n axis: line.axis,\n length: line.length,\n canvasScale: canvasScale.value\n }, null, 8, [\"type\", \"axis\", \"length\", \"canvasScale\"]))\n }), 128)),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(elementList.value, (element) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: element.id\n }, [\n (element.type !== 'line')\n ? (_openBlock(), _createBlock(MobileOperate, {\n key: 0,\n elementInfo: element,\n isSelected: _unref(activeElementIdList).includes(element.id),\n canvasScale: canvasScale.value,\n scaleElement: _unref(scaleElement),\n rotateElement: _unref(rotateElement)\n }, null, 8, [\"elementInfo\", \"isSelected\", \"canvasScale\", \"scaleElement\", \"rotateElement\"]))\n : _createCommentVNode(\"\", true)\n ], 64))\n }), 128)),\n _createElementVNode(\"div\", {\n class: \"viewport\",\n ref_key: \"viewportRef\",\n ref: viewportRef,\n style: _normalizeStyle({ transform: `scale(${canvasScale.value})` })\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(elementList.value, (element, index) => {\n return (_openBlock(), _createBlock(MobileEditableElement, {\n key: element.id,\n elementInfo: element,\n elementIndex: index + 1,\n selectElement: selectElement\n }, null, 8, [\"elementInfo\", \"elementIndex\"]))\n }), 128))\n ], 4)\n ], 4)\n ], 544),\n _createVNode(SlideToolbar),\n (_unref(handleElement))\n ? (_openBlock(), _createBlock(ElementToolbar, { key: 0 }))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=3756d058&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-3756d058\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, normalizeStyle as _normalizeStyle, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-62f26eba\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"header\" }\n\nimport { computed, onMounted, ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useSlidesStore } from '@/store'\nimport type { Mode } from '@/types/mobile'\n\nimport ThumbnailSlide from '@/views/components/ThumbnailSlide/index.vue'\nimport MobileThumbnails from './MobileThumbnails.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'MobilePlayer',\n props: {\n changeMode: { type: Function }\n },\n setup(__props: any) {\n\n\n\nconst slidesStore = useSlidesStore()\nconst { slides, slideIndex, currentSlide, viewportRatio } = storeToRefs(slidesStore)\n\nconst toolVisible = ref(false)\n\nconst playerSize = ref({ width: 0, height: 0 })\n\nonMounted(() => {\n if (slideIndex.value !== 0) slidesStore.updateSlideIndex(0)\n\n playerSize.value = {\n width: document.body.clientHeight,\n height: document.body.clientWidth,\n }\n})\n\nconst slideSize = computed(() => {\n const playerRatio = playerSize.value.height / playerSize.value.width\n\n let slideWidth = 0\n let slideHeight = 0\n\n if (playerRatio >= viewportRatio.value) {\n slideWidth = playerSize.value.width\n slideHeight = slideWidth * viewportRatio.value\n }\n else {\n slideHeight = playerSize.value.height\n slideWidth = slideHeight / viewportRatio.value\n }\n\n return {\n width: slideWidth,\n height: slideHeight,\n }\n})\n\nconst touchInfo = ref<{ x: number; y: number; } | null>(null)\nconst touchStartListener = (e: TouchEvent) => {\n touchInfo.value = {\n x: e.changedTouches[0].pageX,\n y: e.changedTouches[0].pageY,\n }\n}\nconst touchEndListener = (e: TouchEvent) => {\n if (!touchInfo.value) return\n\n const offsetY = Math.abs(touchInfo.value.y - e.changedTouches[0].pageY)\n const offsetX = e.changedTouches[0].pageX - touchInfo.value.x\n\n if ( Math.abs(offsetX) > offsetY && Math.abs(offsetX) > 50 ) {\n touchInfo.value = null\n\n if (offsetX < 0 && slideIndex.value > 0) slidesStore.updateSlideIndex(slideIndex.value - 1)\n if (offsetX > 0 && slideIndex.value < slides.value.length - 1) slidesStore.updateSlideIndex(slideIndex.value + 1)\n }\n}\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconLogout = _resolveComponent(\"IconLogout\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"mobile-player\",\n style: _normalizeStyle({\n width: playerSize.value.width + 'px',\n height: playerSize.value.height + 'px',\n transform: `rotate(90deg) translateY(-${playerSize.value.height}px)`,\n })\n }, [\n _createElementVNode(\"div\", {\n class: \"screen-slide-list\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (toolVisible.value = !toolVisible.value)),\n onTouchstart: _cache[1] || (_cache[1] = $event => touchStartListener($event)),\n onTouchend: _cache[2] || (_cache[2] = $event => touchEndListener($event))\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(slides), (slide, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\n 'slide-item', \n `turning-mode-${slide.turningMode || 'slideY'}`,\n {\n 'current': index === _unref(slideIndex),\n 'before': index < _unref(slideIndex),\n 'after': index > _unref(slideIndex),\n 'hide': (index === _unref(slideIndex) - 1 || index === _unref(slideIndex) + 1) && slide.turningMode !== _unref(currentSlide).turningMode,\n }\n ]),\n key: slide.id\n }, [\n (Math.abs(_unref(slideIndex) - index) < 2)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"slide-content\",\n style: _normalizeStyle({\n width: slideSize.value.width + 'px',\n height: slideSize.value.height + 'px',\n })\n }, [\n _createVNode(ThumbnailSlide, {\n slide: slide,\n size: slideSize.value.width\n }, null, 8, [\"slide\", \"size\"])\n ], 4))\n : _createCommentVNode(\"\", true)\n ], 2))\n }), 128))\n ], 32),\n (toolVisible.value)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: \"back\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.changeMode('preview')))\n }, [\n _createVNode(_component_IconLogout),\n _createTextVNode(\" 退出播放\")\n ])\n ]),\n _createVNode(MobileThumbnails, { class: \"thumbnails\" })\n ], 64))\n : _createCommentVNode(\"\", true)\n ], 4))\n}\n}\n\n})","\n\n\n\n","import script from \"./MobilePlayer.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./MobilePlayer.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./MobilePlayer.vue?vue&type=style&index=0&id=62f26eba&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-62f26eba\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createTextVNode as _createTextVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-53dd42dc\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"thumbnail-list\" }\nconst _hoisted_2 = { class: \"menu\" }\n\nimport { onMounted, ref } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useSlidesStore } from '@/store'\nimport useLoadSlides from '@/hooks/useLoadSlides'\nimport type { Mode } from '@/types/mobile'\n\nimport ThumbnailSlide from '@/views/components/ThumbnailSlide/index.vue'\nimport Divider from '@/components/Divider.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'MobilePreview',\n props: {\n changeMode: { type: Function }\n },\n setup(__props: any) {\n\n\n\nconst { slides } = storeToRefs(useSlidesStore())\nconst { slidesLoadLimit } = useLoadSlides()\n\nconst mobileRef = ref()\nconst screenWidth = ref(0)\n\nonMounted(() => {\n if (!mobileRef.value) return\n screenWidth.value = mobileRef.value.clientWidth\n})\n\nreturn (_ctx: any,_cache: any) => {\n const _component_IconEdit = _resolveComponent(\"IconEdit\")!\n const _component_IconFullScreenPlay = _resolveComponent(\"IconFullScreenPlay\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"mobile-preview\",\n ref_key: \"mobileRef\",\n ref: mobileRef\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(slides), (slide, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"thumbnail-item\",\n key: slide.id\n }, [\n _createVNode(ThumbnailSlide, {\n slide: slide,\n size: screenWidth.value - 20,\n visible: index < _unref(slidesLoadLimit)\n }, null, 8, [\"slide\", \"size\", \"visible\"])\n ]))\n }), 128))\n ]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: \"menu-item\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.changeMode('editor')))\n }, [\n _createVNode(_component_IconEdit, { class: \"icon\" }),\n _createTextVNode(\" 编辑\")\n ]),\n _createVNode(Divider, {\n type: \"vertical\",\n style: {\"height\":\"30px\"}\n }),\n _createElementVNode(\"div\", {\n class: \"menu-item\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.changeMode('player')))\n }, [\n _createVNode(_component_IconFullScreenPlay, { class: \"icon\" }),\n _createTextVNode(\" 播放\")\n ])\n ])\n ], 512))\n}\n}\n\n})","\n\n\n\n\n","import script from \"./MobilePreview.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./MobilePreview.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./MobilePreview.vue?vue&type=style&index=0&id=53dd42dc&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-53dd42dc\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-9826ff08\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"mobile\" }\n\nimport { computed, ref } from 'vue'\nimport type { Mode } from '@/types/mobile'\n\nimport MobileEditor from './MobileEditor/index.vue'\nimport MobilePlayer from './MobilePlayer.vue'\nimport MobilePreview from './MobilePreview.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n setup(__props) {\n\nconst mode = ref('preview')\n \nconst changeMode = (_mode: Mode) => mode.value = _mode\n\nconst currentComponent = computed(() => {\n const componentMap = {\n 'editor': MobileEditor,\n 'player': MobilePlayer,\n 'preview': MobilePreview,\n }\n return componentMap[mode.value] || null\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(currentComponent.value), { changeMode: changeMode }))\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=9826ff08&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-9826ff08\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nimport { onMounted } from 'vue'\nimport { storeToRefs } from 'pinia'\nimport { useScreenStore, useMainStore, useSnapshotStore } from '@/store'\nimport { LOCALSTORAGE_KEY_DISCARDED_DB } from '@/configs/storage'\nimport { deleteDiscardedDB } from '@/utils/database'\nimport { isPC } from './utils/common'\n\nimport Editor from './views/Editor/index.vue'\nimport Screen from './views/Screen/index.vue'\nimport Mobile from './views/Mobile/index.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'App',\n setup(__props) {\n\nconst _isPC = isPC()\n\nconst mainStore = useMainStore()\nconst snapshotStore = useSnapshotStore()\nconst { databaseId } = storeToRefs(mainStore)\nconst { screening } = storeToRefs(useScreenStore())\n\nif (process.env.NODE_ENV === 'production') {\n window.onbeforeunload = () => false\n}\n\nonMounted(async () => {\n await deleteDiscardedDB()\n snapshotStore.initSnapshotDatabase()\n mainStore.setAvailableFonts()\n})\n\n// 应用注销时向 localStorage 中记录下本次 indexedDB 的数据库ID,用于之后清除数据库\nwindow.addEventListener('unload', () => {\n const discardedDB = localStorage.getItem(LOCALSTORAGE_KEY_DISCARDED_DB)\n const discardedDBList: string[] = discardedDB ? JSON.parse(discardedDB) : []\n\n discardedDBList.push(databaseId.value)\n\n const newDiscardedDB = JSON.stringify(discardedDBList)\n localStorage.setItem(LOCALSTORAGE_KEY_DISCARDED_DB, newDiscardedDB)\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_unref(screening))\n ? (_openBlock(), _createBlock(Screen, { key: 0 }))\n : (_unref(_isPC))\n ? (_openBlock(), _createBlock(Editor, { key: 1 }))\n : (_openBlock(), _createBlock(Mobile, { key: 2 }))\n}\n}\n\n})","\n\n\n\n","import script from \"./App.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./App.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./App.vue?vue&type=style&index=0&id=685e8c72&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","/* eslint-disable no-console */\n\nimport { register } from 'register-service-worker'\n\nif (process.env.NODE_ENV === 'production') {\n register(`${process.env.BASE_URL}service-worker.js`, {\n ready() {\n console.log(\n 'App is being served from cache by a service worker.\\n' +\n 'For more details, visit https://goo.gl/AFskqB'\n )\n },\n registered() {\n console.log('Service worker has been registered.')\n },\n cached() {\n console.log('Content has been cached for offline use.')\n },\n updatefound() {\n console.log('New content is downloading.')\n },\n updated() {\n console.log('New content is available; please refresh.')\n },\n offline() {\n console.log('No internet connection found. App is running in offline mode.')\n },\n error(error) {\n console.error('Error during service worker registration:', error)\n }\n })\n}\n","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createBlock as _createBlock, normalizeClass as _normalizeClass, withModifiers as _withModifiers, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-77e74b43\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"menu-content\" }\nconst _hoisted_2 = [\"onClick\"]\nconst _hoisted_3 = { class: \"text\" }\nconst _hoisted_4 = {\n key: 0,\n class: \"sub-text\"\n}\n\nimport type { ContextmenuItem } from './types'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'MenuContent',\n props: {\n menus: {},\n handleClickMenuItem: { type: Function }\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n const _component_menu_content = _resolveComponent(\"menu-content\", true)!\n\n return (_openBlock(), _createElementBlock(\"ul\", _hoisted_1, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.menus, (menu, index) => {\n return (_openBlock(), _createElementBlock(_Fragment, {\n key: menu.text || index\n }, [\n (!menu.hide)\n ? (_openBlock(), _createElementBlock(\"li\", {\n key: 0,\n class: _normalizeClass([\"menu-item\", {'divider': menu.divider, 'disable': menu.disable}]),\n onClick: _withModifiers(($event: any) => (_ctx.handleClickMenuItem(menu)), [\"stop\"])\n }, [\n (!menu.divider)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"menu-item-content\", {\n 'has-children': menu.children,\n 'has-handler': menu.handler,\n }])\n }, [\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(menu.text), 1),\n (menu.subText && !menu.children)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_4, _toDisplayString(menu.subText), 1))\n : _createCommentVNode(\"\", true),\n (menu.children && menu.children.length)\n ? (_openBlock(), _createBlock(_component_menu_content, {\n key: 1,\n class: \"sub-menu\",\n menus: menu.children,\n handleClickMenuItem: _ctx.handleClickMenuItem\n }, null, 8, [\"menus\", \"handleClickMenuItem\"]))\n : _createCommentVNode(\"\", true)\n ], 2))\n : _createCommentVNode(\"\", true)\n ], 10, _hoisted_2))\n : _createCommentVNode(\"\", true)\n ], 64))\n }), 128))\n ]))\n}\n}\n\n})","import script from \"./MenuContent.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./MenuContent.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./MenuContent.vue?vue&type=style&index=0&id=77e74b43&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-77e74b43\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { withModifiers as _withModifiers, createElementVNode as _createElementVNode, createVNode as _createVNode, normalizeStyle as _normalizeStyle, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { computed } from 'vue'\nimport type { ContextmenuItem, Axis } from './types'\n\nimport MenuContent from './MenuContent.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n axis: {},\n el: {},\n menus: {},\n removeContextmenu: { type: Function }\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst style = computed(() => {\n const MENU_WIDTH = 170\n const MENU_HEIGHT = 30\n const DIVIDER_HEIGHT = 11\n const PADDING = 5\n\n const { x, y } = props.axis\n const menuCount = props.menus.filter(menu => !(menu.divider || menu.hide)).length\n const dividerCount = props.menus.filter(menu => menu.divider).length\n\n const menuWidth = MENU_WIDTH\n const menuHeight = menuCount * MENU_HEIGHT + dividerCount * DIVIDER_HEIGHT + PADDING * 2\n\n const screenWidth = document.body.clientWidth\n const screenHeight = document.body.clientHeight\n\n return {\n left: screenWidth <= x + menuWidth ? x - menuWidth : x,\n top: screenHeight <= y + menuHeight ? y - menuHeight : y,\n }\n})\n\nconst handleClickMenuItem = (item: ContextmenuItem) => {\n if (item.disable) return\n if (item.children && !item.handler) return\n if (item.handler) item.handler(props.el)\n props.removeContextmenu()\n}\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", {\n class: \"mask\",\n onContextmenu: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (_ctx.removeContextmenu()), [\"prevent\"])),\n onMousedown: _cache[1] || (_cache[1] = ($event: any) => (_ctx.removeContextmenu()))\n }, null, 32),\n _createElementVNode(\"div\", {\n class: \"contextmenu\",\n style: _normalizeStyle({\n left: style.value.left + 'px',\n top: style.value.top + 'px',\n }),\n onContextmenu: _cache[2] || (_cache[2] = _withModifiers(() => {}, [\"prevent\"]))\n }, [\n _createVNode(MenuContent, {\n menus: _ctx.menus,\n handleClickMenuItem: handleClickMenuItem\n }, null, 8, [\"menus\"])\n ], 36)\n ], 64))\n}\n}\n\n})","\n\n\n\n","import script from \"./index.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./index.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./index.vue?vue&type=style&index=0&id=1abfab1d&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { type Directive, type DirectiveBinding, createVNode, render } from 'vue'\nimport ContextmenuComponent from '@/components/Contextmenu/index.vue'\n\nconst CTX_CONTEXTMENU_HANDLER = 'CTX_CONTEXTMENU_HANDLER'\n\ninterface CustomHTMLElement extends HTMLElement {\n [CTX_CONTEXTMENU_HANDLER]?: (event: MouseEvent) => void\n} \n\nconst contextmenuListener = (el: HTMLElement, event: MouseEvent, binding: DirectiveBinding) => {\n event.stopPropagation()\n event.preventDefault()\n\n const menus = binding.value(el)\n if (!menus) return\n\n let container: HTMLDivElement | null = null\n\n // 移除右键菜单并取消相关的事件监听\n const removeContextmenu = () => {\n if (container) {\n document.body.removeChild(container)\n container = null\n }\n el.classList.remove('contextmenu-active')\n document.body.removeEventListener('scroll', removeContextmenu) \n window.removeEventListener('resize', removeContextmenu)\n }\n\n // 创建自定义菜单\n const options = {\n axis: { x: event.x, y: event.y },\n el,\n menus,\n removeContextmenu,\n }\n container = document.createElement('div')\n const vm = createVNode(ContextmenuComponent, options, null)\n render(vm, container)\n document.body.appendChild(container)\n\n // 为目标节点添加菜单激活状态的className\n el.classList.add('contextmenu-active')\n\n // 页面变化时移除菜单\n document.body.addEventListener('scroll', removeContextmenu)\n window.addEventListener('resize', removeContextmenu)\n}\n\nconst ContextmenuDirective: Directive = {\n mounted(el: CustomHTMLElement, binding) {\n el[CTX_CONTEXTMENU_HANDLER] = (event: MouseEvent) => contextmenuListener(el, event, binding)\n el.addEventListener('contextmenu', el[CTX_CONTEXTMENU_HANDLER])\n },\n\n unmounted(el: CustomHTMLElement) {\n if (el && el[CTX_CONTEXTMENU_HANDLER]) {\n el.removeEventListener('contextmenu', el[CTX_CONTEXTMENU_HANDLER])\n delete el[CTX_CONTEXTMENU_HANDLER]\n }\n },\n}\n\nexport default ContextmenuDirective","import type { Directive, DirectiveBinding } from 'vue'\n\nconst CTX_CLICK_OUTSIDE_HANDLER = 'CTX_CLICK_OUTSIDE_HANDLER'\n\ninterface CustomHTMLElement extends HTMLElement {\n [CTX_CLICK_OUTSIDE_HANDLER]?: (event: MouseEvent) => void\n} \n\nconst clickListener = (el: HTMLElement, event: MouseEvent, binding: DirectiveBinding) => {\n const handler = binding.value\n\n const path = event.composedPath()\n const isClickOutside = path ? path.indexOf(el) < 0 : !el.contains(event.target as HTMLElement)\n\n if (!isClickOutside) return\n handler(event)\n}\n\nconst ClickOutsideDirective: Directive = {\n mounted(el: CustomHTMLElement, binding) {\n el[CTX_CLICK_OUTSIDE_HANDLER] = (event: MouseEvent) => clickListener(el, event, binding)\n setTimeout(() => {\n document.addEventListener('click', el[CTX_CLICK_OUTSIDE_HANDLER]!)\n }, 0)\n },\n \n unmounted(el: CustomHTMLElement) {\n if (el[CTX_CLICK_OUTSIDE_HANDLER]) {\n document.removeEventListener('click', el[CTX_CLICK_OUTSIDE_HANDLER])\n delete el[CTX_CLICK_OUTSIDE_HANDLER]\n }\n },\n}\n\nexport default ClickOutsideDirective","import type { Directive, DirectiveBinding } from 'vue'\nimport tippy, { type Instance, type Placement } from 'tippy.js'\n\nimport './tooltip.scss'\n\nconst TOOLTIP_INSTANCE = 'TOOLTIP_INSTANCE'\n\ninterface CustomHTMLElement extends HTMLElement {\n [TOOLTIP_INSTANCE]?: Instance\n}\n\ntype Delay = number | [number | null, number | null]\n\ninterface BindingValue {\n content: string\n placement?: Placement\n delay?: Delay\n}\n\nconst TooltipDirective: Directive = {\n mounted(el: CustomHTMLElement, binding: DirectiveBinding) {\n let content = ''\n let placement: Placement = 'top'\n let delay: Delay = [300, 0]\n\n if (typeof binding.value === 'string') {\n content = binding.value\n }\n else {\n content = binding.value.content\n if (binding.value.placement !== undefined) placement = binding.value.placement\n if (binding.value.delay !== undefined) delay = binding.value.delay\n }\n\n el[TOOLTIP_INSTANCE] = tippy(el, {\n content,\n theme: 'tooltip',\n duration: 100,\n animation: 'scale',\n allowHTML: true,\n placement,\n delay,\n })\n },\n\n updated(el: CustomHTMLElement, binding: DirectiveBinding) {\n let content = ''\n if (typeof binding.value === 'string') {\n content = binding.value\n }\n else {\n content = binding.value.content\n }\n if (el[TOOLTIP_INSTANCE]) el[TOOLTIP_INSTANCE].setContent(content)\n },\n \n unmounted(el: CustomHTMLElement) {\n if (el[TOOLTIP_INSTANCE]) el[TOOLTIP_INSTANCE].destroy()\n },\n}\n\nexport default TooltipDirective","import type { App } from 'vue'\n\nimport Contextmenu from './contextmenu'\nimport ClickOutside from './clickOutside'\nimport Tooltip from './tooltip'\n\nexport default {\n install(app: App) {\n app.directive('contextmenu', Contextmenu)\n app.directive('click-outside', ClickOutside)\n app.directive('tooltip', Tooltip)\n }\n}\n","import { createApp } from 'vue'\nimport { createPinia } from 'pinia'\nimport App from './App.vue'\nimport './registerServiceWorker'\n\nimport '@icon-park/vue-next/styles/index.css'\nimport 'prosemirror-view/style/prosemirror.css'\nimport 'animate.css'\n\nimport '@/assets/styles/prosemirror.scss'\nimport '@/assets/styles/global.scss'\nimport '@/assets/styles/font.scss'\n\nimport Icon from '@/plugins/icon'\nimport Directive from '@/plugins/directive'\n\nconst app = createApp(App)\n\napp.use(Icon)\napp.use(Directive)\n\napp.use(createPinia())\napp.mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkpptist\"] = self[\"webpackChunkpptist\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(8277); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["ToolbarStates","isList","node","schema","type","nodes","bullet_list","ordered_list","autoSelectAll","view","empty","state","selection","selectAll","dispatch","addMark","editorView","mark","tr","from","to","$from","$to","pos","findNodesWithSameMark","doc","markType","ii","finder","firstMark","fromNode","toNode","nodeAt","marks","find","fromPos","toPos","jj","nodeSize","equalNodeType","nodeType","Array","isArray","indexOf","findParentNodeClosestToPos","$pos","predicate","i","depth","before","start","findParentNode","_ref","findParentNodeOfType","isActiveOfParentNodeType","getLastTextNode","name","lastChild","getMarkAttrs","getAttrValue","attr","attrs","isActiveMark","markActive","isInSet","storedMarks","rangeHasMark","getAttrValueInSelection","keepChecking","value","nodesBetween","_defaultAttrs","color","backcolor","fontsize","fontname","align","getTextAttrs","defaultAttrs","isBold","isEm","isUnderline","isStrikethrough","isSuperscript","isSubscript","isCode","link","isBulletList","isOrderedList","isBlockquote","bold","em","underline","strikethrough","superscript","subscript","code","bulletList","orderedList","blockquote","getFontsize","parseInt","defaultRichTextAttrs","SYS_FONTS","label","WEB_FONTS","isSupportFont","fontName","arial","toLowerCase","size","width","height","str","canvas","document","createElement","ctx","getContext","willReadFrequently","textAlign","fillStyle","textBaseline","getDotArray","_fontFamily","clearRect","font","fillText","imageData","getImageData","data","slice","call","filter","item","join","slides","id","elements","left","top","viewBox","path","fill","fixedRatio","opacity","rotate","flipV","lineHeight","content","defaultFontName","defaultColor","end","points","style","background","wordSpace","theme","themeColor","fontColor","backgroundColor","shadow","h","v","blur","outline","layouts","text","useSlidesStore","defineStore","title","slideIndex","viewportRatio","getters","currentSlide","currentSlideAnimations","animations","els","elIds","map","el","animation","includes","elId","formatedAnimations","trigger","length","last","push","autoNext","subColor","tinycolor","isDark","layoutsString","JSON","stringify","replaceAll","parse","actions","setTitle","this","setTheme","themeProps","setViewportRatio","setSlides","addSlide","slide","addIndex","splice","updateSlide","props","deleteSlide","slideId","slidesId","deleteSlidesIndex","index","findIndex","newIndex","Math","min","maxIndex","updateSlideIndex","addElement","element","currentSlideEls","newEls","deleteElement","elementId","elementIdList","updateElement","elIdList","removeElementProps","propName","propsNames","omit","nanoid","customAlphabet","databaseId","useMainStore","activeElementIdList","handleElementId","activeGroupElementId","hiddenElementIdList","canvasPercentage","canvasScale","canvasDragged","thumbnailsFocus","editorAreaFocus","disableHotkeys","gridLineSize","showRuler","creatingElement","creatingCustomShape","availableFonts","toolbarState","SLIDE_DESIGN","clipingImageElementId","richTextAttrs","selectedTableCells","isScaling","selectedSlidesIndex","dialogForExport","textFormatPainter","shapeFormatPainter","showSelectPanel","showSearchPanel","activeElementList","slidesStore","handleElement","setActiveElementIdList","setHandleElementId","setActiveGroupElementId","setHiddenElementIdList","setCanvasPercentage","percentage","setCanvasScale","scale","setCanvasDragged","isDragged","setThumbnailsFocus","isFocus","setEditorareaFocus","setDisableHotkeysState","disable","setGridLineSize","setRulerState","show","setCreatingElement","setCreatingCustomShapeState","setAvailableFonts","setToolbarState","setClipingImageElementId","setRichtextAttrs","setSelectedTableCells","cells","setScalingState","updateSelectedSlidesIndex","setDialogForExport","setTextFormatPainter","setShapeFormatPainter","setSelectPanelState","setSearchPanelState","LOCALSTORAGE_KEY_DISCARDED_DB","databaseNamePrefix","deleteDiscardedDB","async","now","Date","getTime","localStorageDiscardedDB","localStorage","getItem","localStorageDiscardedDBList","databaseNames","Dexie","getDatabaseNames","discardedDBNames","prefix","time","split","delete","removeItem","PPTistDB","constructor","super","_defineProperty","version","stores","snapshots","writingBoardImgs","table","db","useSnapshotStore","snapshotCursor","snapshotLength","canUndo","canRedo","setSnapshotCursor","cursor","setSnapshotLength","initSnapshotDatabase","newFirstSnapshot","add","addSnapshot","allKeys","orderBy","keys","needDeleteKeys","snapshot","snapshotLengthLimit","update","bulkDelete","unDo","mainStore","toArray","reDo","useKeyboardStore","ctrlKeyState","shiftKeyState","spaceKeyState","ctrlOrShiftKeyActive","setCtrlKeyState","active","setShiftKeyState","setSpaceKeyState","useScreenStore","screening","setScreening","fillDigit","digit","len","padStart","isPC","navigator","userAgent","match","ElementOrderCommands","ElementAlignCommands","OperateBorderLines","OperateResizeHandlers","OperateLineHandlers","KEYS","HOTKEY_DOC","children","CRYPTO_KEY","encrypt","msg","CryptoJS","toString","decrypt","ciphertext","bytes","Utf8","copyText","Promise","resolve","reject","fakeElement","clipboard","Clipboard","action","container","body","on","e","destroy","appendChild","click","removeChild","readClipboard","readText","then","pasteCustomClipboardString","clipboardData","pasteExcelClipboardString","lines","pop","colCount","getRectRotatedRange","radius","sqrt","pow","auxiliaryAngle","atan","PI","tlbraRadian","trblaRadian","middleLeft","middleTop","xAxis","cos","yAxis","sin","xRange","max","yRange","getRectRotatedOffset","originXRange","originYRange","rotatedXRange","rotatedYRange","offsetX","offsetY","getElementRange","minX","maxX","minY","maxY","getElementListRange","elementList","leftValues","topValues","rightValues","bottomValues","forEach","uniqAlignLines","uniqLines","line","_line","uniqLine","rangeMin","range","rangeMax","createSlideIdMap","slideIdMap","createElementIdMap","groupIdMap","elIdMap","groupId","getTableSubThemeColor","rgba","setAlpha","toRgbString","getLineElementPath","broken","mid","curve","cubic","c1","c2","p1","p2","isElementInViewport","parent","elementRect","getBoundingClientRect","parentRect","bottom","icons","IconPlayOne","_PlayOne","IconFullScreenPlay","_FullScreenPlay","IconLock","_Lock","IconUnlock","_Unlock","IconPpt","_Ppt","IconFormat","_Format","IconPicture","_Picture","IconFullScreen","_FullScreen","IconList","_List","IconOrderedList","_OrderedList","IconFlipVertically","_FlipVertically","IconFlipHorizontally","_FlipHorizontally","IconFontSize","_FontSize","IconCode","_Code","IconTextBold","_TextBold","IconTextItalic","_TextItalic","IconTextUnderline","_TextUnderline","IconStrikethrough","_Strikethrough","IconEdit","_Edit","IconQuote","_Quote","IconBackgroundColor","_BackgroundColor","IconGroup","_Group","IconUngroup","_Ungroup","IconBack","_Back","IconNext","_Next","IconFullwidth","_Fullwidth","IconAlignTop","_AlignTop","IconAlignLeft","_AlignLeft","IconAlignRight","_AlignRight","IconAlignBottom","_AlignBottom","IconAlignVertically","_AlignVertically","IconAlignHorizontally","_AlignHorizontally","IconBringToFront","_BringToFront","IconSendToBack","_SendToBack","IconAlignTextLeft","_AlignTextLeft","IconAlignTextRight","_AlignTextRight","IconAlignTextCenter","_AlignTextCenter","IconAlignTextBoth","_AlignTextBoth","IconRowHeight","_RowHeight","IconWrite","_Write","IconInsertTable","_InsertTable","IconAddText","_AddText","IconFill","_Fill","IconTailoring","_Tailoring","IconEffects","_Effects","IconColorFilter","_ColorFilter","IconUp","_Up","IconDown","_Down","IconPlus","_Plus","IconMinus","_Minus","IconConnection","_Connection","IconBringToFrontOne","_BringToFrontOne","IconSentToBack","_SentToBack","IconGithub","_Github","IconChartProportion","_ChartProportion","IconChartHistogram","_ChartHistogram","IconChartHistogramOne","_ChartHistogramOne","IconChartLineArea","_ChartLineArea","IconChartRing","_ChartRing","IconChartScatter","_ChartScatter","IconChartLine","_ChartLine","IconChartPie","_ChartPie","IconText","_Text","IconRotate","_Rotate","IconLeftTwo","_LeftTwo","IconRightTwo","_RightTwo","IconPlatte","_Platte","IconClose","_Close","IconCloseSmall","_CloseSmall","IconUndo","_Undo","IconTransform","_Transform","IconClick","_Click","IconTheme","_Theme","IconArrowCircleLeft","_ArrowCircleLeft","IconGraphicDesign","_GraphicDesign","IconLogout","_Logout","IconErase","_Erase","IconClear","_Clear","IconAlignTextTopOne","_AlignTextTopOne","IconAlignTextBottomOne","_AlignTextBottomOne","IconAlignTextMiddleOne","_AlignTextMiddleOne","IconPause","_Pause","IconVolumeMute","_VolumeMute","IconVolumeNotice","_VolumeNotice","IconVolumeSmall","_VolumeSmall","IconVideoTwo","_VideoTwo","IconFormula","_Formula","IconLinkOne","_LinkOne","IconFullScreenOne","_FullScreenOne","IconOffScreenOne","_OffScreenOne","IconPower","_Power","IconListView","_ListView","IconMagic","_Magic","IconHighLight","_HighLight","IconDownload","_Download","IconIndentLeft","_IndentLeft","IconIndentRight","_IndentRight","IconVerticalSpacingBetweenItems","_VerticalSpacingBetweenItems","IconCopy","_Copy","IconDelete","_Delete","IconSquare","_Square","IconRound","_Round","IconNeedle","_Needle","IconTextRotationNone","_TextRotationNone","IconTextRotationDown","_TextRotationDown","IconFormatBrush","_FormatBrush","IconPreviewOpen","_PreviewOpen","IconPreviewClose","_PreviewClose","IconStopwatchStart","_StopwatchStart","IconSearch","_Search","IconLeft","_Left","IconRight","_Right","IconMoveOne","_MoveOne","IconHamburgerButton","_HamburgerButton","IconAttention","_Attention","IconCheckOne","_CheckOne","IconCloseOne","_CloseOne","IconInfo","_Info","install","app","key","Object","component","_hoisted_1","_hoisted_2","class","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_defineComponent","__name","message","default","duration","closable","Boolean","emits","setup","__props","expose","__expose","emit","__emit","visible","ref","timer","startTimer","setTimeout","close","clearTimer","clearTimeout","onBeforeMount","onMounted","_ctx","_cache","_openBlock","_createBlock","_Transition","appear","mode","onBeforeLeave","$event","onAfterLeave","_withCtx","_createElementBlock","_createElementVNode","onMouseenter","onMouseleave","_unref","_createCommentVNode","_toDisplayString","onClick","_createVNode","_","__exports__","instances","wrap","seed","defaultOptions","options","className","cssText","vm","createVNode","MessageComponent","div","appContext","_context","onClose","onDestroy","childNodes","remove","render","firstElementChild","instance","exposed","success","info","warning","error","closeAll","parseText2Paragraphs","htmlText","replace","paragraphs","string","paragraph","getImageSize","src","img","onload","imgWidth","clientWidth","imgHeight","clientHeight","onerror","getImageDataURL","file","reader","FileReader","addEventListener","result","readAsDataURL","VIEWPORT_SIZE","ShapePathFormulasKeys","ElementTypes","SHAPE_PATH_FORMULAS","ROUND_RECT","editable","defaultValue","relative","getBaseSize","formula","CUT_RECT_DIAGONAL","CUT_RECT_SINGLE","CUT_RECT_SAMESIDE","ROUND_RECT_DIAGONAL","ROUND_RECT_SINGLE","ROUND_RECT_SAMESIDE","CUT_ROUND_RECT","MESSAGE","arrowWidth","arrowheight","ROUND_MESSAGE","L","lineWidth","RING_RECT","PLUS","TRIANGLE","vertex","PARALLELOGRAM_LEFT","point","PARALLELOGRAM_RIGHT","TRAPEZOID","BULLET","INDICATOR","SHAPE_LIST","pptxShapeType","pathFormula","special","outlined","CHART_TYPES","bar","horizontalBar","area","scatter","pie","ring","snapshotStore","addHistorySnapshot","debounce","trailing","redo","throttle","leading","undo","storeToRefs","useHistorySnapshot","callback","createImageElement","createChartElement","newElement","chartType","gridColor","labels","legends","series","horizontalBars","stackBars","showLine","lineSmooth","showArea","donut","createTableElement","row","col","rowCells","j","colspan","rowspan","DEFAULT_CELL_WIDTH","DEFAULT_CELL_HEIGHT","colWidths","rowHeader","rowFooter","colHeader","colFooter","cellMinHeight","createTextElement","position","vertical","editorRef","querySelector","focus","createShapeElement","supplement","keypoint","createLineElement","isBroken","isCurve","isCubic","createLatexElement","w","latex","strokeWidth","createVideoElement","autoplay","createAudioElement","loop","addElementsFromData","firstElement","lastSameElement","offset","oMinX","oMaxX","oMinY","oMaxY","nMinX","nMaxX","nMinY","nMaxY","values","addSlidesFromData","newSlides","target","isEmptySlide","computed","useCreateElement","useAddSlidesOrElements","createTextElementFromClipboard","pasteTextClipboardData","onlySlide","onlyElements","_selectedSlidesIndex","selectedSlides","selectedSlidesId","usePasteTextClipboardData","resetSlides","emptySlide","command","UP","DOWN","copySlide","pasteSlide","catch","err","createSlide","createSlideByTemplate","newSlide","copyAndPasteSlide","targetSlidesId","cutSlide","selectAllSlide","newSelectedSlidesIndex","sortSlides","oldIndex","_slides","_slide","lockElement","newElementList","lock","unlockElement","groupElementIdList","deleteAllElements","canCombine","firstGroupId","inSameGroup","every","combineElements","combineElementList","combineElementMaxLevel","_element","combineElementIdList","insertLevel","uncombineElements","hasElementInGroup","some","handleElementIdList","useDeleteElement","copyElement","cutElement","pasteElement","quickCopyElement","selectAllElement","unlockedElements","newActiveElementIdList","moveElement","step","move","LEFT","RIGHT","getCombineElementLevelRange","minLevel","maxLevel","moveUpElement","copyOfElementList","nextElement","movedElementList","nextCombineElementList","level","movedElement","moveDownElement","prevElement","prevCombineElementList","moveTopElement","moveBottomElement","unshift","orderElement","TOP","BOTTOM","enterFullscreen","docElm","documentElement","requestFullscreen","mozRequestFullScreen","webkitRequestFullScreen","msRequestFullscreen","exitFullscreen","mozCancelFullScreen","webkitExitFullscreen","msExitFullscreen","isFullscreen","fullscreenElement","mozFullScreenElement","webkitFullscreenElement","msFullscreenElement","webkitCurrentFullScreenElement","screenStore","enterScreening","enterScreeningFromStart","exitScreening","canvasScalePercentage","round","scaleCanvas","setCanvasScalePercentage","resetCanvas","keyboardStore","useSlideHandler","useCombineElement","useLockElement","useCopyAndPasteElement","useSelectAllElement","useMoveElement","useOrderElement","useScreening","useScaleCanvas","copy","cut","quickCopy","combine","uncombine","moveSlide","PAGEUP","PAGEDOWN","order","create","tabActiveElement","currentIndex","nextIndex","nextElementId","keydownListener","ctrlKey","shiftKey","altKey","metaKey","ctrlOrMetaKeyActive","toUpperCase","SPACE","P","preventDefault","F5","F","C","X","D","Z","Y","A","G","B","DELETE","BACKSPACE","ENTER","MINUS","EQUAL","DIGIT_0","TAB","keyupListener","window","onUnmounted","removeEventListener","pasteImageFile","imageFile","dataURL","pasteListener","clipboardDataItems","items","clipboardDataFirstItem","kind","getAsFile","getAsString","exporting","importSpecificFile","files","cover","readAsText","parseLineElement","isFlipV","isFlipH","borderWidth","borderType","borderColor","shapType","importPPTXFile","shapeList","json","slideFactor","fontsizeFactor","image","picBase64","imageSize","gradientType","gradientColor","colors","gradientRotate","rot","parseElements","textEl","fillColor","isVertical","blob","test","lineElement","shape","vAlignMap","vAlign","flipH","cellData","colSpan","rowSpan","xlabels","y","barDir","grouping","_el","readAsArrayBuffer","_Fragment","_renderList","hotkey","accept","inputRef","handleClick","handleChange","_renderSlot","$slots","ref_key","onChange","_withScopeId","n","_pushScopeId","_popScopeId","loading","tip","contentStyle","placement","contentVisible","_component_IconClose","_resolveComponent","_Teleport","onBeforeEnter","_withDirectives","_normalizeClass","_normalizeStyle","_vShow","disabled","placeholder","focused","handleInput","handleBlur","handleFocus","onInput","onFocus","onBlur","onKeydown","_withKeys","appendTo","center","triggerRef","contentRef","watch","hide","tippy","allowHTML","interactive","maxWidth","onShow","onShown","onHidden","_hoisted_7","_hoisted_8","_hoisted_9","href","_hoisted_10","useImport","mainMenuVisible","hotkeyDrawerVisible","editingTitle","titleInputRef","titleValue","startEditTitle","nextTick","handleUpdateTitle","goLink","url","open","_component_IconHamburgerButton","_component_IconPpt","_component_IconDown","_component_IconDownload","_component_IconGithub","_directive_tooltip","_resolveDirective","Popover","FileInput","PopoverMenuItem","_createTextVNode","Input","Drawer","HotkeyDoc","FullscreenSpin","injectKeySlideScale","Symbol","injectKeySlideId","injectKeyRadioGroupValue","removeAllRanges","getSelection","canvasRef","viewportLeft","viewportTop","initViewportPosition","canvasWidth","canvasHeight","viewportActualWidth","viewportActualHeight","setViewportPosition","newValue","oldValue","newViewportActualWidth","oldViewportActualWidth","newViewportActualHeight","oldViewportActualHeight","viewportStyles","resizeObserver","ResizeObserver","observe","unobserve","dragViewport","isMouseDown","startPageX","pageX","startPageY","pageY","originLeft","originTop","onmousemove","currentPageX","currentPageY","onmouseup","viewportRef","mouseSelectionVisible","mouseSelectionQuadrant","mouseSelection","updateMouseSelection","viewportRect","minSelectionRange","x","offsetWidth","offsetHeight","abs","quadrant","inRangeElementList","mouseSelectionLeft","mouseSelectionTop","mouseSelectionWidth","mouseSelectionHeight","isInclude","inRangeElement","inRangeElementIdList","groupElementList","groupElement","elementRef","handleDrop","dataTransfer","dataTransferItem","ondragleave","ondrop","ondragenter","ondragover","getAngleFromCoordinate","radian","atan2","angle","rotateElement","isTouchEvent","MouseEvent","changedTouches","elOriginRotate","elLeft","elTop","elWidth","elHeight","centerX","centerY","handleMousemove","mouseX","mouseY","sorptionRange","handleMouseup","ontouchmove","ontouchend","ELEMENT_TYPE_ZH","chart","video","audio","MIN_SIZE","getRotateElementPoints","taRadian","raRadian","halfWidth","halfHeight","leftTopPoint","topPoint","rightTopPoint","rightPoint","rightBottomPoint","bottomPoint","leftBottomPoint","leftPoint","getOppositePoint","direction","oppositeMap","RIGHT_BOTTOM","LEFT_BOTTOM","LEFT_TOP","RIGHT_TOP","ClipPathTypes","ClipPaths","alignmentLines","scaleElement","elOriginLeft","elOriginTop","elOriginWidth","elOriginHeight","originTableCellMinHeight","elRotate","rotateRadian","aspectRatio","minSize","getSizeWithinRange","getHeightWithinRange","minHeight","baseLeft","baseTop","horizontalLines","verticalLines","oppositePoint","edgeWidth","edgeHeight","isActiveGroupElement","right","topLine","bottomLine","leftLine","rightLine","edgeTopLine","edgeBottomLine","edgeHorizontalCenterLine","edgeLeftLine","edgeRightLine","edgeVerticalCenterLine","alignedAdsorption","currentX","currentY","_alignmentLines","isVerticalAdsorbed","isHorizontalAdsorbed","correctionVal","axis","revisedX","revisedY","currentPoints","currentOppositePoint","currentBaseLeft","currentBaseTop","moveX","moveY","scaleMultiElement","operateWidth","operateHeight","originElementList","currentMinX","currentMaxX","currentMinY","currentMaxY","currentOppositeWidth","currentOppositeHeight","widthScale","heightScale","originElement","originEl","selectElement","startMove","newActiveIdList","groupMembersId","uniq","dragElement","originActiveElementList","isMisoperation","horizontalCenterLine","verticalCenterLine","targetMinX","targetMaxX","targetMinY","targetMaxY","targetLeft","targetTop","targetCenterX","targetCenterY","dragLineElement","adsorptionPoints","startX","startY","endX","endY","midX","midY","c1X","c1Y","c2X","c2Y","START","adsorptionPoint","END","C1","C2","newEl","moveShapeKeypoint","shapePathData","baseSize","originPos","shapeElement","formatCreateSelection","selectionData","formatCreateSelectionForLine","_start","_end","insertElementFromCreateSelection","alignElementToCanvas","viewportWidth","viewportHeight","CENTER","VERTICAL","HORIZONTAL","shadowStyle","flipStyle","CLIPPATHS","rect","RECT","rect2","POLYGON","createPath","rect3","roundRect","ellipse","ELLIPSE","triangle","triangle2","triangle3","rhombus","pentagon","hexagon","heptagon","octagon","chevron","arrow","parallelogram","parallelogram2","trapezoid","trapezoid2","clip","clipShape","imgPosition","filters","outlineWidth","outlineStyle","outlineColor","strokeDashArray","useElementOutline","toRef","overflow","rx","ry","stroke","cx","cy","Function","d","elementInfo","useClipImage","ImageRectOutline","ImageEllipseOutline","ImagePolygonOutline","clipPath","clipData","clipWrapperPositionStyle","isSettingClipRange","currentRange","getClipDataTransformInfo","bottomImgPositionStyle","topImgWrapperPosition","topImgWrapperPositionStyle","topImgPositionStyle","bottomWidth","bottomHeight","initClipPosition","handleClip","clipedEmitData","keyboardListener","updateRange","retPosition","moveClipRange","bottomPosition","originPositopn","scaleClipRange","minWidth","targetWidth","targetHeight","rotateClassName","cornerPoint","edgePoints","_directive_click_outside","draggable","alt","onMousedown","_withModifiers","contextmenus","isCliping","useElementShadow","useElementFlip","useFilter","handleSelectElement","stopPropagation","originClip","centerOffsetX","centerOffsetY","rotatedCenterX","rotatedCenterY","_props","_directive_contextmenu","transform","ImageClipHandler","onClip","onTouchstart","ImageOutline","onDragstart","colorMask","buildKeymap","bind","cmd","joinUp","joinDown","undoInputRule","selectParentNode","toggleMark","strong","chainCommands","splitListItem","list_item","newlineInCode","createParagraphNear","liftEmptyBlock","splitBlockKeepMarks","liftListItem","sinkListItem","blockQuoteRule","wrappingInputRule","orderedListRule","childCount","bulletListRule","codeRule","inputRegex","InputRule","insertText","linkRule","urlRegEx","buildInputRules","rules","smartQuotes","ellipsis","emDash","inputRules","isEmptyParagraph","placeholderPlugin","Plugin","decorations","decoration","Decoration","after","DecorationSet","buildPlugins","plugins","keymap","baseKeymap","dropCursor","gapCursor","history","listStyleType","group","parseDOM","tag","getAttrs","dom","hasAttribute","getAttribute","fontSize","toDOM","listItem","_listItem","indent","textIndent","textIndentLevel","floor","ignore","skip","excludes","forecolor","inline","inclusive","dataset","schemaNodes","schemaMarks","Schema","createDocument","htmlString","parser","DOMParser","parseFromString","fromSchema","initProsemirrorEditor","pluginOptions","EditorView","EditorState","EmitterEvents","emitter","mitt","setTextAlign","alignment","tasks","allowedNodeTypes","Set","has","task","setNodeMarkup","alignmentCommand","setSelection","setNodeIndentMarkup","delta","indentKey","minIndent","maxIndent","nodeAttrs","setIndent","TextSelection","AllSelection","indentCommand","docChanged","textIndentCommand","toggleList","listType","itemType","textStyleAttr","blockRange","parentList","validContent","wrapInList","setListStyle","styles","setNodeAttribute","autoFocus","editorViewRef","innerHTML","handleKeydown","textContent","hasFocus","replaceRangeWith","setProps","execCommand","lift","wrapIn","textStyle","removeMark","keep","newProps","handleDOMEvents","keydown","mouseup","syncAttrsToStore","RICH_TEXT_COMMAND","SYNC_RICH_TEXT_ATTRS_TO_STORE","off","canMove","realHeightCache","realWidthCache","updateTextElementHeight","entries","contentRect","realHeight","realWidth","updateContent","checkEmptyText","pureText","isHandleElement","textShadow","letterSpacing","fontFamily","writingMode","ElementOutline","ProsemirrorEditor","undefined","paragraphSpace","onUpdate","color1","color2","x1","y1","x2","y2","gradientTransform","execFormatPainter","defaultText","updateText","_text","prosemirrorEditorRef","startEdit","onMouseup","onDblclick","gradient","GradientDefs","pathMap","dot","rotateMap","markerUnits","orient","markerWidth","markerHeight","refX","refY","svgWidth","svgHeight","lineDashArray","LinePointMarker","legend","chartRef","slideScale","inject","chartHeight","getPieChartData","getOptions","propsOptopns","renderChart","BarChart","LineChart","PieChart","updateChart","themeColors","analogous","updateTheme","setProperty","updateGridColor","flexDirection","openDataEditor","OPEN_CHART_DATA_EDITOR","Chart","getTextStyle","textDecoration","fontWeight","fontStyle","formatText","hideCells","cell","subThemeColor","immediate","textareaRef","onpaste","excelData","onBeforeUnmount","contenteditable","isStartSelect","startCell","endCell","tableCells","get","set","newData","useSubThemeColor","colSizeList","totalWidth","reduce","a","b","removeSelectedCells","dragLinePosition","useHideCells","selectedCells","isEqual","activedCell","handleCellMousedown","rowIndex","colIndex","button","handleCellMouseenter","isHideCell","selectCol","maxRow","selectRow","maxCol","deleteRow","_tableCells","targetCells","hideCellsPos","deleteCol","insertRow","insertCol","fillTable","rowCount","defaultCell","newRows","mergeCells","splitCells","handleMousedownColHandler","originWidth","clearSelectedCellText","tabActiveCell","getNextCell","nextRow","nextCol","nextCell","textRef","insertExcelData","fillRowCount","fillColCount","getEffectiveTableCells","effectiveTableCells","_rowCells","checkCanDeleteRowOrCol","canDeleteRow","canDeleteCol","checkCanMergeOrSplit","isMultiSelected","targetCell","canMerge","canSplit","cellIndex","handler","divider","span","borderStyle","CustomTextarea","onUpdateValue","onInsertExcelData","updateTableElementHeight","updateTableCells","updateColWidths","widths","updateSelectedCells","EditableTable","onChangeColWidths","onChangeSelectedCells","openLatexEditor","OPEN_LATEX_EDITOR","videoRef","exec","canPlayType","Hls","isSupported","hls","loadSource","attachMedia","flvjs","flvPlayer","createPlayer","attachMediaElement","load","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","poster","secondToTime","second","isNaN","add0","num","hour","sec","getBoundingClientRectViewLeft","playBarWrap","volumeBarRef","volume","paused","currentTime","loaded","bezelTransition","playbackRate","playBarTimeVisible","playBarTime","playBarTimeLeft","ptime","dtime","playedBarWidth","loadedBarWidth","volumeBarWidth","speedMenuVisible","speedOptions","seek","play","pause","toggle","setVolume","muted","speed","rate","handleDurationchange","handleTimeupdate","handleEnded","handleProgress","buffered","loadError","handleError","thumbMove","clientX","thumbUp","handleMousedownPlayBar","volumeMove","volumeUp","handleMousedownVolumeBar","handleClickVolumeBar","handleMousemovePlayBar","px","tx","toggleVolume","toggleLoop","autoHideControllerTimer","hideController","autoHideController","played","useMSE","_component_IconPause","_component_IconPlayOne","_component_IconVolumeMute","_component_IconVolumeNotice","_component_IconVolumeSmall","onMousemove","playsinline","onDurationchange","onTimeupdate","onEnded","onProgress","onPlay","onPause","onError","onAnimationend","VideoPlayer","audioRef","handlePlayed","audioIconSize","audioPlayerPosition","audioWidth","audioHeight","AudioPlayer","elementIndex","isMultiSelect","openLinkDialog","currentElementComponent","elementTypeMap","IMAGE","ImageElement","TEXT","TextElement","SHAPE","ShapeElement","LINE","LineElement","CHART","ChartElement","TABLE","TableElement","LATEX","LatexElement","VIDEO","VideoElement","AUDIO","AudioElement","useAlignElementToCanvas","subText","zIndex","_resolveDynamicComponent","bgColor","colorList","mostReadable","includeFallbackColors","p","backgroundStyle","backgroundImage","backgroundRepeat","backgroundSize","useSlideBackgroundStyle","GridLines","sizeStyle","markerSize","marker","selectionRef","createSelection","absX","absY","isOpposite","endPageX","endPageY","defaultSize","lineData","_startX","_startY","_endX","_endY","onContextmenu","shapeCanvasRef","mousePosition","closed","getPoint","custom","lastPointX","lastPointY","updateMousePosition","firstPointX","firstPointY","getCreateData","xList","yList","formatedPoints","addPoint","ESC","resizeHandlers","textElementResizeHandlers","verticalTextElementResizeHandlers","borderLines","T","R","isWide","localActiveElementList","useCommonOperate","setRange","watchEffect","disableResize","BorderLine","ResizeHandler","script","__default__","inheritAttrs","handlerVisible","scaleWidth","scaleHeight","RotateHandler","keypointStyle","keypointPos","handlers","ctrlHandler","ctrlHandler1","ctrlHandler2","cannotRotate","setLink","linkRegExp","removeLink","margin","useLink","turnTarget","targetIndex","Divider","isSelected","isActive","currentOperateComponent","ImageElementOperate","TextElementOperate","ShapeElementOperate","LineElementOperate","TableElementOperate","CommonElementOperate","elementIndexListInAnimation","indexList","transformOrigin","LinkHandler","needScaleSize","zoom","StaticTable","BaseImageElement","BaseTextElement","BaseShapeElement","BaseLineElement","BaseChartElement","BaseTableElement","BaseLatexElement","BaseVideoElement","BaseAudioElement","provide","ThumbnailElement","tabs","card","tabsStyle","tabStyle","spaceAround","spaceBetween","tab","checked","first","showLabel","popoverVisible","selectRef","updateWidth","handleSelect","option","padding","boxShadow","address","slideOptions","selectedSlide","save","Tabs","marginBottom","Select","ThumbnailSlide","Button","closeButton","closeOnClickMask","closeOnEsc","modalRef","onEsc","onClickMask","tabindex","onKeyup","linkDialogVisible","setLocalElementList","useViewportSize","useDropImageOrText","useMouseSelection","useDragElement","useDragLineElement","useSelectElement","useScaleElement","useRotateElement","useMoveShapeKeypoint","handleClickBlankArea","handleDblClick","removeEditorAreaFocus","throttleScaleCanvas","throttleUpdateSlideIndex","handleMousewheelCanvas","deltaY","toggleRuler","useInsertFromCreateSelection","insertCustomShape","onWheel","ElementCreateSelection","onCreated","ShapeCreateCanvas","AlignmentLine","MultiSelectOperate","Operate","ViewportBackground","MouseSelection","EditableElement","Ruler","Modal","LinkDialog","selectShape","ShapeItemThumbnail","LINE_LIST","selectLine","chartList","selectChart","_component_IconChartLine","_component_IconChartHistogram","_component_IconChartPie","_component_IconChartHistogramOne","_component_IconChartLineArea","_component_IconChartRing","_component_IconChartScatter","Infinity","number","_vModelText","customRow","customCol","isCustom","handleClickTable","insertCustomTable","NumberInput","videoSrc","audioSrc","insertVideo","insertAudio","hfmathConfig","SUB_SUP_SCALE","FORMULA_LIST","SYMBOL_LIST","box","pathd","eq","hfmath","boxW","boxH","svg","SCALE_X","SCALE_Y","rows","resizable","formulaList","symbolTabs","textAreaRef","selectedSymbolKey","symbolPool","selectedSymbol","insertSymbol","TextArea","FormulaContent","SymbolContent","canvasScalePresetList","canvasScaleVisible","applyCanvasPresetScale","insertImageElement","shapePoolVisible","linePoolVisible","chartPoolVisible","tableGeneratorVisible","mediaInputVisible","latexEditorVisible","textTypeSelectVisible","drawText","drawShape","drawLine","toggleSelectPanel","toggleSraechPanel","_component_IconBack","_component_IconNext","_component_IconMoveOne","_component_IconSearch","_component_IconFontSize","_component_IconTextRotationNone","_component_IconTextRotationDown","_component_IconPicture","_component_IconGraphicDesign","_component_IconConnection","_component_IconChartProportion","_component_IconInsertTable","_component_IconFormula","_component_IconVideoTwo","_component_IconMinus","_component_IconPlus","_component_IconFullScreen","ShapePool","onSelect","LinePool","ChartPool","TableGenerator","onInsert","MediaInput","onInsertVideo","onInsertAudio","LaTeXEditor","slidesLoadLimit","loadSlide","selectSlideTemplate","useLoadSlides","presetLayoutPopoverVisible","thumbnailsRef","activeThumbnailRef","$el","scrollIntoView","behavior","changeSlideIndex","handleClickSlideThumbnail","minIndex","handleDragEnd","eventData","contextmenusThumbnails","contextmenusThumbnailItem","LayoutPool","Draggable","modelValue","scroll","scrollSensitivity","onEnd","itemKey","toggleTextFormatPainter","sliderRef","getNewValue","diff","fround","targetNumber","accuracy","NP","tooltipValue","tooltipRangeStartValue","tooltipRangeEndValue","getPercentage","progress","_percentage","remainder","updateRangeEnd","updatePercentage","oldValueArr","newValueArr","updatePercentageEnd","handleMousedown","deep","updateOpacity","Slider","_component_IconPlatte","white","grey","checkboardCache","renderCheckboard","fillRect","translate","toDataURL","getCheckboard","checkboard","bgStyle","rgbaStr","r","g","alphaRef","containerWidth","xOffset","pageXOffset","unbindEventListeners","handleMouseDown","Checkboard","hue","oldHue","pullDirection","hsla","toHsl","pointerLeft","s","hueRef","percent","l","hsva","toHsv","pointerTop","emitChangeEvent","param","saturationRef","containerHeight","yOffset","pageYOffset","clamp","saturation","bright","val","_hex","toHex8String","toHexString","isValid","toRgb","RECENT_COLORS","presetColorConfig","startColor","endColor","_startColor","_endColor","rStep","gStep","bStep","gradientColorArr","getPresetColors","presetColors","standardColors","recentColors","rgbaString","currentColor","selectPresetColor","colorString","updateRecentColorsCache","_color","maxLength","recentColorsCache","setItem","changeColor","openEyeDropper","isSupportedEyeDropper","browserEyeDropper","customEyeDropper","eyeDropper","EyeDropper","tColor","sRGBHex","targetRef","maskRef","colorBlockRef","tagName","classList","contains","toCanvas","fontEmbedCSS","pixelRatio","toFixed","handleMouseleave","_component_IconNeedle","Saturation","onColorChange","Hue","Alpha","EditableInput","c","fixed","hasOutline","updateOutline","outlineProps","toggleOutline","_outline","Switch","ColorPicker","ColorButton","hasShadow","updateShadow","shadowProps","_shadow","toggleShadow","passive","_value","updateValue","ButtonGroup","_hoisted_23","_hoisted_24","_hoisted_25","presetStyles","useTextFormatPainter","bulletListPanelVisible","orderedListPanelVisible","indentLeftPanelVisible","indentRightPanelVisible","bulletListStyleTypeOption","orderedListStyleTypeOption","fontSizeOptions","lineHeightOptions","wordSpaceOptions","paragraphSpaceOptions","updateLineHeight","updateParagraphSpace","updateWordSpace","updateFill","emitRichTextCommand","emitBatchRichTextCommand","linkPopoverVisible","openLinkPopover","updateLink","_component_IconAddText","_component_IconText","_component_IconHighLight","_component_IconTextBold","_component_IconTextItalic","_component_IconTextUnderline","_component_IconStrikethrough","_component_IconCode","_component_IconQuote","_component_IconFormat","_component_IconFormatBrush","_component_IconLinkOne","_component_IconAlignTextLeft","_component_IconAlignTextCenter","_component_IconAlignTextRight","_component_IconAlignTextBoth","_component_IconList","_component_IconOrderedList","_component_IconIndentLeft","_component_IconIndentRight","_component_IconRowHeight","_component_IconVerticalSpacingBetweenItems","_component_IconFullwidth","SelectGroup","icon","TextColorButton","CheckboxButton","RadioGroup","RadioButton","ElementShadow","ElementOpacity","updateFlip","flipProps","_component_IconFlipVertically","_component_IconFlipHorizontally","defaultFilters","unit","filterOptions","hasFilters","filterItem","updateFilter","_handleElement","originFilters","toggleFilters","defaultColorMask","hasColorMask","toggleColorMask","updateColorMask","shapeClipPathOptions","ratioClipOptions","ratio","handleImageElement","clipPanelVisible","clipImage","getImageElementDataBeforeClip","imgLeft","imgTop","originClipRange","originHeight","presetImageClip","imageRatio","distance","replaceImage","resetImage","setBackgroundImage","_component_IconTailoring","_component_IconTransform","_component_IconUndo","_component_IconTheme","ElementFlip","typeItem","ElementColorMask","ElementFilter","toggleShapeFormatPainter","handleShapeElement","fillType","useShapeFormatPainter","updateFillType","updateGradient","gradientProps","_gradient","changeShape","updateTextAlign","_component_IconAlignTextTopOne","_component_IconAlignTextMiddleOne","_component_IconAlignTextBottomOne","handleLineElement","updateLine","CELL_WIDTH","CELL_HEIGHT","selectedRange","tempRangeSize","focusCell","rangeLines","resizablePointStyle","initData","_data","moveNextRow","getTableData","labelsItem","labelInputRef","legendsItem","seriesItem","valueInputRef","clear","handlePaste","closeEditor","changeSelectRange","autocomplete","onPaste","presetChartThemes","handleChartElement","chartDataEditorVisible","presetThemesVisible","presetThemeColorHoverIndex","_lineSmooth","_showLine","_showArea","_horizontalBars","_donut","_stackBars","updateData","updateOptions","optionProps","newOptions","addThemeColor","applyPresetTheme","deleteThemeColor","updateLegend","_component_IconEdit","_component_IconCloseSmall","Checkbox","itemIndex","ChartDataEditor","onSave","textAttrs","hasTheme","minRowCount","minColCount","updateTextAttrState","selectedCell","updateTextAttrs","textAttrProp","themeProp","_theme","toggleTheme","setTableRow","newTableCells","setTableCol","newColSizeList","_component_IconFill","handleLatexElement","updateLatex","updateLatexData","handleVideoElement","updateVideo","setVideoPoster","handleAudioElement","updateAudio","updateFontStyle","panelMap","TextStylePanel","ImageStylePanel","ShapeStylePanel","LineStylePanel","ChartStylePanel","TableStylePanel","LatexStylePanel","VideoStylePanel","AudioStylePanel","currentPanelComponent","MultiStylePanel","activeGroupElement","isHorizontalText","isVerticalText","updateLeft","updateTop","updateShapePathData","updateHeight","updateRotate","updateFixedRatio","updateRotate45","_rotate","_component_IconSendToBack","_component_IconBringToFrontOne","_component_IconBringToFront","_component_IconSentToBack","_component_IconAlignLeft","_component_IconAlignVertically","_component_IconAlignRight","_component_IconAlignTop","_component_IconAlignHorizontally","_component_IconAlignBottom","_component_IconLock","_component_IconUnlock","_component_IconRotate","ANIMATION_DEFAULT_DURATION","ANIMATION_DEFAULT_TRIGGER","ANIMATION_CLASS_PREFIX","ENTER_ANIMATIONS","EXIT_ANIMATIONS","ATTENTION_ANIMATIONS","SLIDE_ANIMATIONS","animationEffects","effect","animationTypes","activeTab","animateIn","animationPoolVisible","hoverPreviewAnimation","animationSequence","elType","animationEffect","handleElementAnimation","deleteAnimation","runAnimation","elRef","animationName","handleAnimationEnd","removeProperty","once","runAllAnimation","updateElementAnimationDuration","updateElementAnimationTrigger","updateElementAnimation","handleAnimationId","animationItem","addAnimation","popoverMaskHide","handlePopoverVisibleChange","openAnimationPool","in","out","attention","_component_IconEffects","_component_IconClick","handle","PRESET_THEMES","getSlideAllColors","getAlpha","createSlideThemeColorMap","newColors","oldColors","themeColorMap","otherColors","setSlideTheme","colorMap","applyPresetThemeToSingleSlide","applyPresetThemeToAllSlides","applyThemeToAllSlides","applyAll","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","moreThemeConfigsVisible","useSlideTheme","updateBackgroundType","newBackground","updateBackground","uploadBackgroundImage","applyBackgroundAllSlide","updateViewportRatio","_component_IconRight","currentTurningMode","turningMode","updateTurningMode","applyAllSlide","alignActiveElement","groupElementRangeMap","activeElement","groupElements","horizontalCenter","verticalCenter","displayItemCount","count","groupIdList","uniformHorizontalDisplay","copyOfActiveElementList","singleElemetList","groupList","groupEl","formatedGroupList","groupItem","list","sort","itemA","itemB","sortedElementData","firstItem","lastPos","lastWidth","currentPos","currentWidth","sortedItem","uniformVerticalDisplay","totalHeight","lastHeight","currentHeight","useAlignActiveElement","useUniformDisplayElement","alignElement","_component_IconGroup","_component_IconUngroup","selectSymbol","elementTabs","EL_STYLE","SYMBOL","EL_POSITION","EL_ANIMATION","slideTabs","SLIDE_ANIMATION","multiSelectTabs","MULTI_POSITION","currentTabs","currentTabsValue","ElementStylePanel","ElementPositionPanel","ElementAnimationPanel","SlideDesignPanel","SlideAnimationPanel","MultiPositionPanel","SymbolPanel","menuInstance","menuRef","hideMenuInstance","updateTextContent","anchorNode","focusNode","isCollapsed","getRangeAt","getReferenceClientRect","mousedown","input","hideOnClick","remark","resize","newHeight","Editor","childlessTags","closingTags","closingTagAncestorBreakers","li","dt","dd","tbody","thead","tfoot","td","voidTags","jumpPosition","movePositopn","findTextEnd","isEnd","textEnd","char","charAt","lexText","tokens","lexComment","contentEnd","commentEnd","lexTagName","isTagChar","lexTagAttributes","quote","wordBegin","words","isQuoteEnd","isTagEnd","isWordEnd","isQuoteStart","word","isNotPair","secondWord","startsWith","newWord","thirdWord","endsWith","lexSkipTag","safeTagName","nextTag","tagState","lexTag","textStart","secondChar","tagStartClose","firstChar","tagEndClose","lex","isComment","safeTag","lexer","root","stack","hasTerminalParent","tagParents","parentTagName","rewindStack","newLength","token","tagToken","shouldRewind","isClosingTag","shouldRewindToAutoClose","previousIndex","attributes","tagEndToken","_token","elementNode","hasChildren","innerState","splitHead","sep","idx","unquote","car","formatAttributes","attribute","parts","trim","format","toAST","typeMap","toPoints","pathData","SVGPathData","commands","lastPoint","cubicBezierPoints","arcToBezier","py","rX","rY","xAxisRotation","xRot","largeArcFlag","lArcFlag","sweepFlag","cbPoint","characters","PREFIX","utf8Encode","utftext","charCodeAt","String","fromCharCode","encode","chr1","chr2","chr3","enc1","enc2","enc3","enc4","output","svg2Base64","XMLS","XMLSerializer","serializeToString","INCH_PX_RATIO","PT_PX_RATIO","exportImage","domRef","quality","ignoreWebfont","toImage","toPng","toJpeg","foreignObjectSpans","querySelectorAll","spanRef","removeAttribute","config","dataUrl","saveAs","exportSpecificFile","Blob","exportJSON","formatColor","alpha","formatHTML","html","ast","bulletFlag","slices","obj","baseStyleObj","isBlockTag","lastSlice","breakLine","styleObj","styleAttr","styleArr","styleItem","_key","dataIndentAttr","highlight","strike","italic","fontFace","hyperlink","bullet","paraSpaceBefore","indentLevel","formatPoints","moveTo","getShadowOption","getOutlineOption","transparency","dashType","getLinkOption","exportPPTX","masterOverwrite","ignoreMedia","pptx","pptxgen","layout","defineLayout","bgAlpha","defineSlideMaster","pptxSlide","mix","addNotes","textProps","valign","lineSpacingMultiple","autoFit","charSpacing","vert","addText","linkOption","rounding","originW","originH","sizing","addImage","svgRef","base64SVG","addShape","beginArrowType","endArrowType","chartData","chartColors","plotArea","showLegend","legendPos","legendColor","legendFontSize","ChartType","lineSize","doughnut","holeSize","addChart","hiddenCells","rowData","tableData","subThemeColors","_row","cellOptions","colW","border","pt","addTable","extMatch","extn","ext","videoExts","audioExts","addMedia","writeFile","fileName","imageThumbnailsRef","rangeType","renderSlides","useExport","expImage","createIframe","iframe","writeContent","printNode","docType","styleSheets","styleSheet","cssRules","rule","head","write","print","iframeContentWindow","contentWindow","contentDocument","handleLoadIframe","handleAfterprint","pdfThumbnailsRef","expPDF","pageSize","currentDialogComponent","dialogMap","ExportImage","ExportJSON","ExportPDF","ExportPPTX","ExportSpecificFile","moveable","moveablePanelRef","windowWidth","_elements","lastItem","selectGroupEl","idList","selectEl","hideElement","showAll","currentSlideElIdList","needHiddenElementIdList","hideAll","editingElId","saveElementName","enterEdit","_component_IconUp","_component_IconPreviewClose","_component_IconPreviewOpen","MoveablePanel","searchWord","replaceWord","searchResults","searchIndex","modifiers","search","textList","matchRegex","RegExp","textRegex","rets","highlightCurrentSlide","clearMarks","getTextNodeList","nodeList","textNodes","shift","TEXT_NODE","wholeText","getTextInfoList","startIdx","endIdx","getMatchList","keyword","reg","matchList","matchStart","matchEnd","textIdx","textNode","nodeMatchStartIdx","nodeMatchLength","splitText","innerText","substring","parentNode","replaceChild","highlightTableText","markNodes","createTextNode","lastTarget","setActiveMark","searchNext","searchPrev","targetElement","replaced","targetSlide","lastMarkIndex","markIndex","reset","toggleModifiers","useSearch","searchInpRef","_component_IconLeft","_isRef","onEnter","suffix","closeExportDialog","remarkHeight","useGlobalHotkey","usePasteEvent","EditorHeader","Thumbnails","CanvasTool","Canvas","Remark","Toolbar","SelectPanel","SearchPanel","onClosed","ExportDialog","animationIndex","inAnimation","playedSlidesMinIndex","endAnimationCount","classname","revokeAnimation","execPrev","autoPlayTimer","closeAutoPlay","clearInterval","loopPlay","setLoopPlay","throttleMassage","turnSlideToIndex","execNext","autoPlayInterval","autoPlay","setInterval","setAutoPlayInterval","interval","mousewheelListener","touchInfo","touchStartListener","touchEndListener","turnPrevSlide","turnNextSlide","turnSlideToId","wrapRef","slideWidth","slideHeight","setSlideContentSize","slideWrapRef","winWidth","winHeight","fullscreenState","escExit","handleFullscreenChange","manualExitFullscreen","inCurrentSlide","audioPlayerRef","ScreenVideoElement","ScreenAudioElement","needWaitAnimation","elementIndexInAnimation","firstAnimation","openLink","visibility","ScreenElement","slidesWithTurningMode","turningModeKeys","random","ScreenSlide","turnSlide","_component_IconArrowCircleLeft","model","blackboard","penSize","markSize","rubberSize","writingBoardRef","lastTime","lastLineWidth","mouse","mouseInCanvas","updateCanvasSize","initCanvas","lineCap","lineJoin","updateCtx","globalCompositeOperation","globalAlpha","draw","posX","posY","lastPosX","lastPosY","strokeStyle","beginPath","lineTo","closePath","erase","sinRadius","cosRadius","rectPoint1","rectPoint2","rectPoint3","rectPoint4","arc","restore","getDistance","getLineWidth","t","maxV","minV","handleMove","getMouseOffsetPosition","event","canvasRect","clearCanvas","setImageDataURL","imageDataURL","Image","drawImage","_component_IconWrite","onTouchmove","onTouchend","writingBoardColors","writingBoardColor","writingBoardModel","sizePopoverType","changeModel","closeWritingBoard","where","equals","ret","currentImg","hanldeWritingEnd","_component_IconErase","_component_IconClear","WritingBoard","inTiming","isCountdown","minute","inputEditable","toggleCountdown","changeTime","isNumber","maxlength","changeViewMode","useExecPlay","useSlideSize","useFullscreen","rightToolsVisible","writingBoardToolVisible","timerlVisible","slideThumbnailModelVisible","laserPen","_component_IconLeftTwo","_component_IconRightTwo","_component_IconMagic","_component_IconStopwatchStart","_component_IconListView","_component_IconOffScreenOne","_component_IconFullScreenOne","_component_IconPower","ScreenSlideList","SlideThumbnails","WritingBoardTool","CountdownTimer","slideListWrapRef","remarkFontSize","currentSlideRemark","handleMousewheelThumbnails","scrollBy","setRemarkFontSize","offsetLeft","scrollTo","viewMode","BaseView","PresenterView","_resizeHandlers","delayOnTouchOnly","delay","insertTextElement","insertShapeElement","square","handleInputMark","_component_IconCopy","_component_IconDelete","_component_IconSquare","_component_IconRound","MobileThumbnails","updateFontColor","changeMode","_component_IconLogout","contentWidth","contentheight","contentRatio","Header","MobileOperate","MobileEditableElement","SlideToolbar","ElementToolbar","toolVisible","playerSize","slideSize","playerRatio","mobileRef","screenWidth","_component_IconFullScreenPlay","_mode","currentComponent","componentMap","MobileEditor","MobilePlayer","MobilePreview","_isPC","onbeforeunload","discardedDB","discardedDBList","newDiscardedDB","Screen","Mobile","register","ready","console","log","registered","cached","updatefound","updated","offline","menus","handleClickMenuItem","_component_menu_content","menu","removeContextmenu","MENU_WIDTH","MENU_HEIGHT","DIVIDER_HEIGHT","PADDING","menuCount","dividerCount","menuWidth","menuHeight","screenHeight","MenuContent","CTX_CONTEXTMENU_HANDLER","contextmenuListener","binding","ContextmenuComponent","ContextmenuDirective","mounted","unmounted","CTX_CLICK_OUTSIDE_HANDLER","clickListener","composedPath","isClickOutside","ClickOutsideDirective","TOOLTIP_INSTANCE","TooltipDirective","setContent","directive","Contextmenu","ClickOutside","Tooltip","createApp","App","use","Icon","Directive","createPinia","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","deferred","O","chunkIds","fn","priority","notFulfilled","fulfilled","getter","__esModule","definition","o","defineProperty","enumerable","globalThis","prop","prototype","hasOwnProperty","toStringTag","nmd","paths","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/chunk-vendors.faa37718.js b/js/chunk-vendors.faa37718.js deleted file mode 100644 index e667802d..00000000 --- a/js/chunk-vendors.faa37718.js +++ /dev/null @@ -1,72 +0,0 @@ -(self["webpackChunkpptist"]=self["webpackChunkpptist"]||[]).push([[998],{9602:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("add-text",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M4 8H32",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M28 21H44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M18 42L18 8",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M36 42L36 21",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null)])}))},3467:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-bottom",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"17",y:"6",width:"14",height:"28",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 42H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},1060:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-horizontally",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"7",y:"17",width:"34",height:"14",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 6V42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3590:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-left",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"14.5",y:"17",width:"28",height:"14",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6.5 6V42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6935:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-right",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"6",y:"17",width:"28",height:"14",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 6V42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},1440:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-text-both",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M42 19H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 9H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 29H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 39H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3542:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-text-bottom-one",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34 27H14",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M27 34H14",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3482:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-text-center",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M36 19H12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 9H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 29H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M36 39H12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},8e3:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-text-left",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M42 9H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34 19H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 29H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34 39H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3735:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-text-middle-one",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34 20H14",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M26 27H14",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},646:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-text-right",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M42 9H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 19H14",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 29H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 39H14",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},7537:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-text-top-one",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M26 20H14",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34 13H14",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6453:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-top",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"17",y:"14.5",width:"14",height:"28",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 6.5H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},8389:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("align-vertically",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"17",y:"7",width:"14",height:"34",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 24H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},7712:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("arrow-circle-left",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32.4917 24.5H14.4917",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M23.4917 15.5L14.4917 24.5L23.4917 33.5",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},9512:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("attention",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 37C25.3807 37 26.5 35.8807 26.5 34.5C26.5 33.1193 25.3807 32 24 32C22.6193 32 21.5 33.1193 21.5 34.5C21.5 35.8807 22.6193 37 24 37Z",fill:t.colors[2]},null),(0,r.Wm)("path",{d:"M24 12V28",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5547:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("back",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 40.8361C39.1069 34.8632 34.7617 31.4739 30.9644 30.6682C27.1671 29.8625 23.5517 29.7408 20.1182 30.303V41L4 23.5453L20.1182 7V17.167C26.4667 17.2172 31.8638 19.4948 36.3095 24C40.7553 28.5052 43.3187 34.1172 44 40.8361Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},5620:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("background-color",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37 37C39.2091 37 41 35.2091 41 33C41 31.5272 39.6667 29.5272 37 27C34.3333 29.5272 33 31.5272 33 33C33 35.2091 34.7909 37 37 37Z",fill:t.colors[0]},null),(0,r.Wm)("path",{d:"M20.8535 5.50439L24.389 9.03993",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M23.6818 8.33281L8.12549 23.8892L19.4392 35.2029L34.9955 19.6465L23.6818 8.33281Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 20.0732L28.961 25.6496",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M4 43H44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null)])}))},9141:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("bring-to-front",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M41 18H19C18.4477 18 18 18.4477 18 19V41C18 41.5523 18.4477 42 19 42H41C41.5523 42 42 41.5523 42 41V19C42 18.4477 41.5523 18 41 18Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M9.96906 6H6V10.0336",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M9.99705 30H6V26.012",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M26.0023 6H30V10.0152",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16.0283 6H20.0083",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 16C6 18.6536 6 19.9869 6 20",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M30 16C30 18.6765 30 19.3456 30 18.0074",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M15.9922 30H17.9996",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null)])}))},6302:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("bring-to-front-one",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M14 21V34H27",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M21 14H34V27",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M5 21V5H21V21H5Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M27 43V27H43V43H27Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},9917:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("chart-histogram",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 6V42H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 30V34",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M22 22V34",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M30 6V34",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M38 14V34",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5114:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("chart-histogram-one",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 6V42H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M18 34H14",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M26 26H14",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 18H14",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34 10L14 10",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},4412:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("chart-line",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 6V42H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 34L22 18L32 27L42 6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6048:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("chart-line-area",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 6V42H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 34L22 18L32 27L42 6V34H14Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},7606:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("chart-pie",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M44 24C44 35.0457 35.0457 44 24 44C12.9543 44 4 35.0457 4 24C4 12.9543 12.9543 4 24 4V24H44Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M43.0844 18H30V4.91553C36.2202 6.86917 41.1308 11.7798 43.0844 18Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},7747:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("chart-proportion",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M16.3446 5.51758C13.9 6.53124 11.7001 8.01574 9.85786 9.85797C6.23858 13.4773 4 18.4773 4 24.0001C4 35.0458 12.9543 44.0001 24 44.0001V44.0001C29.5228 44.0001 34.5228 41.7615 38.1421 38.1422C39.9844 36.3 41.4689 34.1001 42.4825 31.6555",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 24H44C44 12.9543 35.0457 4 24 4L24 24Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},2057:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("chart-ring",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M43.7756 20.9938C42.4735 12.3555 35.6463 5.5277 27.0084 4.22461M20.9757 4.22702C11.3651 5.68478 4 13.9822 4 23.9998C4 34.0212 11.3705 42.321 20.9863 43.7743C21.9692 43.9228 22.9756 43.9998 24 43.9998C25.0209 43.9998 26.024 43.9233 27.0038 43.7758C35.6458 42.4741 42.4762 35.6427 43.7764 27.0003",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 16C19.5817 16 16 19.5817 16 24C16 28.4183 19.5817 32 24 32C28.4183 32 32 28.4183 32 24C32 19.5817 28.4183 16 24 16Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},8814:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("chart-scatter",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 6V42H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 24C22.2091 24 24 22.2091 24 20C24 17.7909 22.2091 16 20 16C17.7909 16 16 17.7909 16 20C16 22.2091 17.7909 24 20 24Z",fill:t.colors[0]},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37 16C39.7614 16 42 13.7614 42 11C42 8.23858 39.7614 6 37 6C34.2386 6 32 8.23858 32 11C32 13.7614 34.2386 16 37 16Z",fill:t.colors[0]},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 36C16.6569 36 18 34.6569 18 33C18 31.3431 16.6569 30 15 30C13.3431 30 12 31.3431 12 33C12 34.6569 13.3431 36 15 36Z",fill:t.colors[0]},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 32C34.6569 32 36 30.6569 36 29C36 27.3431 34.6569 26 33 26C31.3431 26 30 27.3431 30 29C30 30.6569 31.3431 32 33 32Z",fill:t.colors[0]},null)])}))},8261:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("check-one",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 24L22 30L34 18",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5314:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("clear",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 5.91406H28V13.9141H43V21.9141H5V13.9141H20V5.91406Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M8 40H40V22H8V40Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 39.8976V33.9141",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 39.8977V33.8977",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32 39.8976V33.9141",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 40H36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},2778:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("click",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 4V12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22 22L42 26L36 30L42 36L36 42L30 36L26 42L22 22Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M38.1421 9.85789L32.4853 15.5147",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M9.85787 38.1421L15.5147 32.4853",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M4 24H12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M9.85795 9.85787L15.5148 15.5147",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5356:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("close",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M8 8L40 40",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M8 40L40 8",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},1061:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("close-one",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M29.6567 18.3432L18.343 29.6569",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M18.3433 18.3432L29.657 29.6569",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},7872:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("close-small",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M14 14L34 34",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 34L34 14",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6519:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("code",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M16 13L4 25.4322L16 37",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32 13L44 25.4322L32 37",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M28 4L21 44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null)])}))},1432:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("color-filter",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 40.9444C26.123 42.8446 28.9266 44 32 44C38.6274 44 44 38.6274 44 32C44 26.4085 40.1757 21.7102 35 20.3781",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M13 20.3781C7.82432 21.7102 4 26.4085 4 32C4 38.6274 9.37258 44 16 44C22.6274 44 28 38.6274 28 32C28 30.4506 27.7063 28.9697 27.1716 27.6101",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 28C30.6274 28 36 22.6274 36 16C36 9.37258 30.6274 4 24 4C17.3726 4 12 9.37258 12 16C12 22.6274 17.3726 28 24 28Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},3060:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("connection",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M39 34L44 39L39 44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 8L20 8C22.2091 8 24 9.79086 24 12V35C24 37.2091 25.7909 39 28 39H44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},7259:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("copy",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},683:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("delete",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M9 10V44H39V10H9Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M20 20V33",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M28 20V33",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M4 10H44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},5460:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("down",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M36 18L24 30L12 18",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},85:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("download",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 24.0083V42H42V24",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M33 23L24 32L15 23",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M23.9917 6V32",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},4666:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("edit",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M7 42H43",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M11 26.7199V34H18.3172L39 13.3081L31.6951 6L11 26.7199Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},5193:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("effects",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24.9507 42.3603L30.4164 30.3695L43.1046 26.6501L33.3383 17.7699L33.7059 4.60732L22.2044 11.1099L9.74329 6.69439L12.4013 19.5934L4.33228 30.027L17.4766 31.4965L24.9507 42.3603Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M36.1777 36.0537L44.1777 44.0179",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3325:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("erase",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M4 42H44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M31 4L7 28L13 34H21L41 14L31 4Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},7091:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("fill",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("rect",{x:"14",y:"14",width:"20",height:"20",fill:t.colors[3],stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34 23L23 34",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M25 14L14 25",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34 14L14 34",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 22V34H26",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M22 14H34V26",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3260:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("flip-horizontally",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 6V42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M4 34L16 12V34H4Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M44 34H32V12L44 34Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},2146:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("flip-vertically",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M42 24L6 24",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 4L36 16H14V4Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 44V32H36L14 44Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},4790:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("font-size",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M8 10.9333L8 6H40V10.9333",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 6V42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 42H32",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5741:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("format",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"8",y:"24",width:"32",height:"18",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M4 13H18V6H30V13H44V24H4V13Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 32L16 42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null)])}))},4023:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("format-brush",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M34 5H6V20H34V5Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34.0251 12H43V28.1014L19 31.2004V43",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},2882:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("formula",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M40 9L37 6H8L26 24L8 42H37L40 39",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6940:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("full-screen",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M33 6H42V15",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 33V42H33",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M15 42H6V33",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 15V6H15",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},139:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("full-screen-one",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 6L16 15.8995",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 41.8995L16 32",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42.0001 41.8995L32.1006 32",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M41.8995 6L32 15.8995",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M33 6H42V15",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 33V42H33",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M15 42H6V33",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 15V6H15",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6821:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("full-screen-play",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M16 40H6C4.89543 40 4 39.1046 4 38V10C4 8.89543 4.89543 8 6 8H42C43.1046 8 44 8.89543 44 10V16",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 24H26C24.8954 24 24 24.8954 24 26V38C24 39.1046 24.8954 40 26 40H42C43.1046 40 44 39.1046 44 38V26C44 24.8954 43.1046 24 42 24Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},5957:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("fullwidth",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M42 6V42M17 19L12 24M12 24L17 29M12 24H36M31 19L36 24M36 24L31 29M6 6L6 42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},7425:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("github",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4ZM0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24Z",fill:t.colors[0]},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.1833 45.4716C18.9898 45.2219 18.9898 42.9973 19.1833 38.798C17.1114 38.8696 15.8024 38.7258 15.2563 38.3667C14.437 37.828 13.6169 36.1667 12.8891 34.9959C12.1614 33.8251 10.5463 33.64 9.89405 33.3783C9.24182 33.1165 9.07809 32.0496 11.6913 32.8565C14.3044 33.6634 14.4319 35.8607 15.2563 36.3745C16.0806 36.8883 18.0515 36.6635 18.9448 36.2519C19.8382 35.8403 19.7724 34.3078 19.9317 33.7007C20.1331 33.134 19.4233 33.0083 19.4077 33.0037C18.5355 33.0037 13.9539 32.0073 12.6955 27.5706C11.437 23.134 13.0581 20.2341 13.9229 18.9875C14.4995 18.1564 14.4485 16.3852 13.7699 13.6737C16.2335 13.3589 18.1347 14.1343 19.4734 16.0001C19.4747 16.0108 21.2285 14.9572 24.0003 14.9572C26.772 14.9572 27.7553 15.8154 28.5142 16.0001C29.2731 16.1848 29.88 12.7341 34.5668 13.6737C33.5883 15.5969 32.7689 18.0001 33.3943 18.9875C34.0198 19.9749 36.4745 23.1147 34.9666 27.5706C33.9614 30.5413 31.9853 32.3523 29.0384 33.0037C28.7005 33.1115 28.5315 33.2855 28.5315 33.5255C28.5315 33.8856 28.9884 33.9249 29.6465 35.6117C30.0853 36.7362 30.117 39.948 29.7416 45.247C28.7906 45.4891 28.0508 45.6516 27.5221 45.7347C26.5847 45.882 25.5669 45.9646 24.5669 45.9965C23.5669 46.0284 23.2196 46.0248 21.837 45.8961C20.9154 45.8103 20.0308 45.6688 19.1833 45.4716Z",fill:t.colors[0]},null)])}))},3317:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("graphic-design",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M19 32C11.268 32 5 25.732 5 18C5 10.268 11.268 4 19 4C26.732 4 33 10.268 33 18",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M44 18H18V44H44V18Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},2790:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("group",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M12 4H4V12H12V4Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M44 36H36V44H44V36Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 36H4V44H12V36Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M44 4H36V12H44V4Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M8 36V12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M40 36V12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 8H36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 40H36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 16H25.6V22.4H32V32H22.4V25.6H16V16Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},2025:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("hamburger-button",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M7.94971 11.9497H39.9497",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M7.94971 23.9497H39.9497",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M7.94971 35.9497H39.9497",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6071:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("high-light",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 44L6 25H12V17H36V25H42V44H6Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M17 17V8L31 4V17",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},597:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("indent-left",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 9H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M19 19H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M19 29H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M11 19L6 24L11 29",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 39H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},9978:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("indent-right",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M42 9H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M29 19H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M29 29H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M37 19L42 24L37 29",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42 39H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6108:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("info",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:t.colors[2]},null),(0,r.Wm)("path",{d:"M24.5 34V20H23.5H22.5",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M21 34H28",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},4891:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("insert-table",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M39.3 6H8.7C7.20883 6 6 7.20883 6 8.7V39.3C6 40.7912 7.20883 42 8.7 42H39.3C40.7912 42 42 40.7912 42 39.3V8.7C42 7.20883 40.7912 6 39.3 6Z",stroke:t.colors[0],"stroke-width":t.strokeWidth},null),(0,r.Wm)("path",{d:"M18 6V42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M30 6V42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M6 18H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M6 30H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null)])}))},2696:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("left",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M31 36L19 24L31 12",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},887:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("left-two",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 5L6 24L24 43L24 31L42 31V17H24V5Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},8461:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("link-one",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M26.2401 16.373L17.1001 7.23303C14.4388 4.57168 10.0653 4.6303 7.33158 7.36397C4.59791 10.0976 4.53929 14.4712 7.20064 17.1325L15.1359 25.0678",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32.9027 23.0031L40.838 30.9384C43.4994 33.5998 43.4407 37.9733 40.7071 40.707C37.9734 43.4407 33.5999 43.4993 30.9385 40.8379L21.7985 31.6979",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M26.1093 26.1416C28.843 23.4079 28.9016 19.0344 26.2403 16.373",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M21.7989 21.7984C19.0652 24.5321 19.0066 28.9056 21.6679 31.5669",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},2849:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("list",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M5 10L8 13L14 7",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M5 24L8 27L14 21",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M5 38L8 41L14 35",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M21 24H43",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M21 38H43",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M21 10H43",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},9925:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("list-view",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"4",y:"6",width:"40",height:"36",rx:"3",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M4 14H44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M20 24H36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M20 32H36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 24H14",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 32H14",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6135:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("lock",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 30V36",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3275:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("logout",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M23.9917 6H6V42H24",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M33 33L42 24L33 15",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 23.9917H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},2489:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("magic",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M20.1005 8.1005L24.3431 12.3431M30 4V10V4ZM39.8995 8.1005L35.6569 12.3431L39.8995 8.1005ZM44 18H38H44ZM39.8995 27.8995L35.6569 23.6569L39.8995 27.8995ZM30 32V26V32ZM20.1005 27.8995L24.3431 23.6569L20.1005 27.8995ZM16 18H22H16Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M29.5856 18.4143L5.54395 42.4559",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},7107:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("minus",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M10.5 24L38.5 24",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},9872:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("move-one",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M8 6L43 25L24 27L13.9948 44L8 6Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},6492:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("needle",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("g",{"clip-path":"url(#"+t.id+"3d50a8e2)"},[(0,r.Wm)("path",{d:"M39 23L25 9",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M43.9995 17L30.9995 4",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34.999 18.999L39.999 13.999",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M28.999 12.999L33.999 7.99902",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M11 37L6 42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M27.9999 12.0001L11.9999 27.9998L10.9999 37L19.9999 35.9998L35.9999 20.0001L27.9999 12.0001Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)]),(0,r.Wm)("defs",null,[(0,r.Wm)("clipPath",{id:t.id+"3d50a8e2"},[(0,r.Wm)("rect",{width:"48",height:"48",fill:t.colors[2]},null)])])])}))},4467:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("next",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 40.8361C8.89307 34.8632 13.2383 31.4739 17.0356 30.6682C20.8329 29.8625 24.4483 29.7408 27.8818 30.303V41L44 23.5453L27.8818 7V17.167C21.5333 17.2172 16.1362 19.4948 11.6905 24C7.24474 28.5052 4.68126 34.1172 4 40.8361Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},3185:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("off-screen-one",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 6L16 15.8995",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 41.8995L16 32",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M42.0001 41.8995L32.1006 32",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M41.8995 6L32 15.8995",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32 7V16H41",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 7V16H7",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 41V32H7",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32 41V32H40.8995",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6755:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("ordered-list",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M9 4V13",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 13H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 27H6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 19.9998C6 19.9998 9 16.9998 11 19.9998C13 22.9999 6 26.9998 6 26.9998",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6.00016 34.5001C6.00016 34.5001 8.00016 31.5 11.0002 33.5C14.0002 35.5 11.0002 38 11.0002 38C11.0002 38 14.0002 40.5 11.0002 42.5C8.00015 44.5 6.00015 41.5 6.00015 41.5",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M11 38H9",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M9 4L6 6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M21 24H43",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M21 38H43",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M21 10H43",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3935:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("pause",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M16 12V36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32 12V36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6116:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("picture",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M18 23C20.7614 23 23 20.7614 23 18C23 15.2386 20.7614 13 18 13C15.2386 13 13 15.2386 13 18C13 20.7614 15.2386 23 18 23Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M27.7901 26.2194C28.6064 25.1269 30.2528 25.1538 31.0329 26.2725L39.8077 38.8561C40.7322 40.182 39.7835 42.0001 38.1671 42.0001H16L27.7901 26.2194Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},8684:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("platte",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 44C29.9601 44 26.3359 35.136 30 31C33.1264 27.4709 44 29.0856 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M28 17C29.6569 17 31 15.6569 31 14C31 12.3431 29.6569 11 28 11C26.3431 11 25 12.3431 25 14C25 15.6569 26.3431 17 28 17Z",fill:t.colors[3],stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 21C17.6569 21 19 19.6569 19 18C19 16.3431 17.6569 15 16 15C14.3431 15 13 16.3431 13 18C13 19.6569 14.3431 21 16 21Z",fill:t.colors[3],stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M17 34C18.6569 34 20 32.6569 20 31C20 29.3431 18.6569 28 17 28C15.3431 28 14 29.3431 14 31C14 32.6569 15.3431 34 17 34Z",fill:t.colors[3],stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},6149:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("play-one",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},2100:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("plus",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24.0605 10L24.0239 38",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M10 24L38 24",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5361:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("power",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M14.5 8C13.8406 8.37652 13.2062 8.79103 12.6 9.24051C11.5625 10.0097 10.6074 10.8814 9.75 11.8402C6.79377 15.1463 5 19.4891 5 24.2455C5 34.6033 13.5066 43 24 43C34.4934 43 43 34.6033 43 24.2455C43 19.4891 41.2062 15.1463 38.25 11.8402C37.3926 10.8814 36.4375 10.0097 35.4 9.24051C34.7938 8.79103 34.1594 8.37652 33.5 8",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 4V24",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},2939:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("ppt",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M4 8H44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 8H40V34H8V8Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M22 16L27 21L22 26",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 42L24 34L32 42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5761:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("preview-close",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M6 16C6.63472 17.2193 7.59646 18.3504 8.82276 19.3554C12.261 22.1733 17.779 24 24 24C30.221 24 35.739 22.1733 39.1772 19.3554C40.4035 18.3504 41.3653 17.2193 42 16",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M28.9775 24L31.048 31.7274",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M37.3535 21.3536L43.0103 27.0104",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M5.00004 27.0103L10.6569 21.3534",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16.9278 31.7276L18.9983 24.0001",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},7559:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("preview-open",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:t.colors[3],stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},3339:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("quote",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.8533 9.11587C11.3227 13.9521 7.13913 19.5811 6.30256 26.0028C5.00021 35.9999 13.9404 40.8932 18.4703 36.4966C23.0002 32.1 20.2848 26.5195 17.0047 24.9941C13.7246 23.4686 11.7187 23.9999 12.0686 21.9614C12.4185 19.923 17.0851 14.2712 21.1849 11.6391C21.4569 11.4078 21.5604 10.959 21.2985 10.6185C21.1262 10.3946 20.7883 9.95545 20.2848 9.30102C19.8445 8.72875 19.4227 8.75017 18.8533 9.11587Z",fill:t.colors[0]},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.6789 9.11587C31.1484 13.9521 26.9648 19.5811 26.1282 26.0028C24.8259 35.9999 33.7661 40.8932 38.296 36.4966C42.8259 32.1 40.1105 26.5195 36.8304 24.9941C33.5503 23.4686 31.5443 23.9999 31.8943 21.9614C32.2442 19.923 36.9108 14.2712 41.0106 11.6391C41.2826 11.4078 41.3861 10.959 41.1241 10.6185C40.9519 10.3946 40.614 9.95545 40.1105 9.30102C39.6702 8.72875 39.2484 8.75017 38.6789 9.11587Z",fill:t.colors[0]},null)])}))},1321:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("right",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M19 12L31 24L19 36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},9577:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("right-two",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 43L42 24L24 5L24 17L6 17V31H24V43Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6866:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("rotate",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M12 24H42V42H12V24Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 8V17H15",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M38.4747 13.2985C35.1956 8.87049 29.933 6 24 6C18.1788 6 13.0029 8.76334 9.71272 13.0498L6 17",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},1094:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("round",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("circle",{cx:"24",cy:"24",r:"20",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth},null)])}))},3681:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("row-height",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M16 35L10 41L4 35",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 13L10 7L4 13",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M10 7V41",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M44 9H22",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M36 19H22",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M44 29H22",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M36 39H22",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3271:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("search",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M21 38C30.3888 38 38 30.3888 38 21C38 11.6112 30.3888 4 21 4C11.6112 4 4 11.6112 4 21C4 30.3888 11.6112 38 21 38Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M26.657 14.3431C25.2093 12.8954 23.2093 12 21.0001 12C18.791 12 16.791 12.8954 15.3433 14.3431",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M33.2216 33.2217L41.7069 41.707",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},4628:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("send-to-back",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M14 21H5V5H21V14",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32 27H43V43H27V32",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 32V14H32V32H14Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},6717:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("sent-to-back",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M30 18H41C41.5523 18 42 18.4477 42 19V41C42 41.5523 41.5523 42 41 42H19C18.4477 42 18 41.5523 18 41V30",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M9.96906 6H6V10.0336",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M9.99705 30H6V26.012",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M26 30H29.9971V26.012",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M26.0023 6H30V9.99785",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16.0283 6H20.0083",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M6 16V20.0148",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M30 16V20.0148",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M15.9922 30H19.9996",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},2677:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("square",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth},null)])}))},9015:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("stopwatch-start",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 44C33.3888 44 41 36.3888 41 27C41 17.6112 33.3888 10 24 10C14.6112 10 7 17.6112 7 27C7 36.3888 14.6112 44 24 44Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M18 4H30",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 19V27",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32 27H24",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 4V8",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5215:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("strikethrough",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M5 24H43",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 24C40 30 34 44 24 44C13.9999 44 12 36 12 36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M35.9999 12C35.9999 12 33 4 23.9999 4C14.9999 4 11.4359 11.5995 15.6096 18",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 36C12 36 15.9999 44 24 44C32 44 36.564 36.4005 32.3903 30",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},4566:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("tailoring",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M12 4V36H44",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M20 12H36V28",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 12H4",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M36 44V36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null)])}))},509:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("text",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M16 19V16H32V19",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M22 34H26",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 18L24 34",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},4296:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("text-bold",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 24C29.5056 24 33.9688 19.5228 33.9688 14C33.9688 8.47715 29.5056 4 24 4H11V24H24Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28.0312 44C33.5368 44 38 39.5228 38 34C38 28.4772 33.5368 24 28.0312 24H11V44H28.0312Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3650:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("text-italic",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M20 6H36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M12 42H28",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M29 5.95215L19 41.9998",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},4141:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("text-rotation-down",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M29 35L21 31.3333M29 13L21 16.6667M21 16.6667L17 18.5L5 24L17 29.5L21 31.3333M21 16.6667V31.3333",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M37 6V42L43 36",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5010:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("text-rotation-none",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M13 29L16.6667 21M35 29L31.3333 21M31.3333 21L29.5 17L24 5L18.5 17L16.6667 21M31.3333 21H16.6667",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 37H42L36 43",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},904:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("text-underline",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M8 44H40",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M37 6.09717C37 12.7638 37 15.3335 37 22.0002C37 29.1799 31.1797 35.0002 24 35.0002C16.8203 35.0002 11 29.1799 11 22.0002C11 15.3335 11 12.7638 11 6.09717",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null)])}))},9370:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("theme",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M18 6C18 9.31371 20.6863 12 24 12C27.3137 12 30 9.31371 30 6H35.4545L42 15.8182L36.2727 20.7273V42H11.7273V20.7273L6 15.8182L12.5455 6H18Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},4422:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("transform",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("circle",{cx:"13.7146",cy:"13.7141",r:"6.85714",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("circle",{cx:"34.2859",cy:"34.2854",r:"6.85714",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24.001 44C12.9553 44 4.00098 35.0457 4.00098 24L10.6676 27.3333",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24.001 4C35.0467 4 44.001 12.9543 44.001 24L37.3343 20.6667",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},4957:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("undo",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.61407 12.9301 6 17 6 17",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 9V17H14",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5650:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("ungroup",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M11.2727 4H4V11.2727H11.2727V4Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M43.9998 36.7271H36.7271V43.9998H43.9998V36.7271Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M11.2727 24H4V31.2727H11.2727V24Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M23.9998 36.7271H16.7271V43.9998H23.9998V36.7271Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M31.2727 4H24V11.2727H31.2727V4Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M43.9998 16.7271H36.7271V23.9998H43.9998V16.7271Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M11.2729 7.63623H24.0002",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 40.3638H36.7273",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M11.2729 27.6366H27.6366V11.2729",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M28.8275 20.3633H36.7269M20.3633 36.7269V27.6282V36.7269Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M7.63672 11.2725V23.9997",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M40.3633 24V36.7273",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},9524:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("unlock",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M24 30V36",stroke:t.colors[2],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},5268:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("up",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M13 30L25 18L37 30",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},1258:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("vertical-spacing-between-items",!1,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M8 6V12H40V6",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M14 24H34",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null),(0,r.Wm)("path",{d:"M8 42V36H40V42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},3862:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("video-two",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M20.5 28V21.9378L25.75 24.9689L31 28L25.75 31.0311L20.5 34.0622V28Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M6 15H42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M33 6L27 15",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M21 6L15 15",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},9912:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("volume-mute",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("rect",{opacity:"0.01",x:"30",y:"18",width:"13",height:"13",fill:t.colors[2]},null),(0,r.Wm)("mask",{id:t.id+"603476ab",maskUnits:"userSpaceOnUse",x:"30",y:"18",width:"13",height:"13",style:{maskType:"alpha"}},[(0,r.Wm)("rect",{x:"30",y:"18",width:"13",height:"13",fill:t.colors[2]},null)]),(0,r.Wm)("g",{mask:"url(#"+t.id+"603476ab)"},[(0,r.Wm)("path",{d:"M40.7348 20.2858L32.2495 28.7711",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32.2496 20.2858L40.7349 28.7711",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)]),(0,r.Wm)("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null)])}))},9371:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("volume-notice",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap},null)])}))},3764:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("volume-small",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},4012:function(t,e,n){"use strict";var r=n(6252),o=n(6939);e.Z=(0,o.a1)("write",!0,(function(t){return(0,r.Wm)("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[(0,r.Wm)("path",{d:"M5.32497 43.4996L13.81 43.4998L44.9227 12.3871L36.4374 3.90186L5.32471 35.0146L5.32497 43.4996Z",fill:t.colors[1],stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linejoin":t.strokeLinejoin},null),(0,r.Wm)("path",{d:"M27.9521 12.3872L36.4374 20.8725",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])}))},6939:function(t,e,n){"use strict";n.d(e,{a1:function(){return l}});var r=n(6252),o={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function i(){return"icon-"+(4294967296*(1+Math.random())|0).toString(16).substring(1)}function a(t,e,n){var r="string"===typeof e.fill?[e.fill]:e.fill||[],o=[],i=e.theme||n.theme;switch(i){case"outline":o.push("string"===typeof r[0]?r[0]:"currentColor"),o.push("none"),o.push("string"===typeof r[0]?r[0]:"currentColor"),o.push("none");break;case"filled":o.push("string"===typeof r[0]?r[0]:"currentColor"),o.push("string"===typeof r[0]?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push("string"===typeof r[0]?r[0]:"currentColor"),o.push("string"===typeof r[1]?r[1]:n.colors.twoTone.twoTone),o.push("string"===typeof r[0]?r[0]:"currentColor"),o.push("string"===typeof r[1]?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push("string"===typeof r[0]?r[0]:"currentColor"),o.push("string"===typeof r[1]?r[1]:n.colors.multiColor.outFillColor),o.push("string"===typeof r[2]?r[2]:n.colors.multiColor.innerStrokeColor),o.push("string"===typeof r[3]?r[3]:n.colors.multiColor.innerFillColor);break}return{size:e.size||n.size,strokeWidth:e.strokeWidth||n.strokeWidth,strokeLinecap:e.strokeLinecap||n.strokeLinecap,strokeLinejoin:e.strokeLinejoin||n.strokeLinejoin,colors:o,id:t}}var s=Symbol("icon-context");function l(t,e,n){var l={name:"icon-"+t,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","spin"],setup:function(l){var c=i(),u=(0,r.f3)(s,o);return function(){var o=l.size,i=l.strokeWidth,s=l.strokeLinecap,f=l.strokeLinejoin,h=l.theme,d=l.fill,p=l.spin,R=a(c,{size:o,strokeWidth:i,strokeLinecap:s,strokeLinejoin:f,theme:h,fill:d},u),m=[u.prefix+"-icon"];return m.push(u.prefix+"-icon-"+t),e&&u.rtl&&m.push(u.prefix+"-icon-rtl"),p&&m.push(u.prefix+"-icon-spin"),(0,r.Wm)("span",{class:m.join(" ")},[n(R)])}}};return l}},2262:function(t,e,n){"use strict";n.d(e,{$y:function(){return Lt},B:function(){return a},BK:function(){return Jt},Bj:function(){return i},EB:function(){return c},Fl:function(){return ee},IU:function(){return xt},Jd:function(){return L},OT:function(){return St},PG:function(){return Nt},SU:function(){return Kt},Tn:function(){return Et},Um:function(){return Ot},Vh:function(){return qt},WL:function(){return Gt},X$:function(){return W},X3:function(){return Tt},XI:function(){return It},Xl:function(){return Wt},YS:function(){return wt},ZM:function(){return Bt},cE:function(){return S},dq:function(){return Ut},iH:function(){return Yt},j:function(){return T},lk:function(){return k},nZ:function(){return l},oR:function(){return Qt},qj:function(){return Mt},qq:function(){return M},sT:function(){return w},yT:function(){return kt}});var r=n(3577);let o;class i{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!t&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=o;try{return o=this,t()}finally{o=e}}else 0}on(){o=this}off(){o=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e{const e=new Set(t);return e.w=0,e.n=0,e},f=t=>(t.w&A)>0,h=t=>(t.n&A)>0,d=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{("length"===n||!(0,r.yk)(n)&&n>=t)&&l.push(e)}))}else switch(void 0!==n&&l.push(s.get(n)),e){case"add":(0,r.kJ)(t)?(0,r.S0)(n)&&l.push(s.get("length")):(l.push(s.get(y)),(0,r._N)(t)&&l.push(s.get(b)));break;case"delete":(0,r.kJ)(t)||(l.push(s.get(y)),(0,r._N)(t)&&l.push(s.get(b)));break;case"set":(0,r._N)(t)&&l.push(s.get(y));break}if(1===l.length)l[0]&&X(l[0]);else{const t=[];for(const e of l)e&&t.push(...e);X(u(t))}}function X(t,e){const n=(0,r.kJ)(t)?t:[...t];for(const r of n)r.computed&&_(r,e);for(const r of n)r.computed||_(r,e)}function _(t,e){(t!==v||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function V(t,e){var n;return null==(n=R.get(t))?void 0:n.get(e)}const F=(0,r.fY)("__proto__,__v_isRef,__isVue"),U=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(r.yk)),Y=I();function I(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=xt(this);for(let e=0,o=this.length;e{t[e]=function(...t){L();const n=xt(this)[e].apply(this,t);return k(),n}})),t}function C(t){const e=xt(this);return T(e,"has",t),e.hasOwnProperty(t)}class Z{constructor(t=!1,e=!1){this._isReadonly=t,this._shallow=e}get(t,e,n){const o=this._isReadonly,i=this._shallow;if("__v_isReactive"===e)return!o;if("__v_isReadonly"===e)return o;if("__v_isShallow"===e)return i;if("__v_raw"===e&&n===(o?i?vt:gt:i?At:mt).get(t))return t;const a=(0,r.kJ)(t);if(!o){if(a&&(0,r.RI)(Y,e))return Reflect.get(Y,e,n);if("hasOwnProperty"===e)return C}const s=Reflect.get(t,e,n);return((0,r.yk)(e)?U.has(e):F(e))?s:(o||T(t,"get",e),i?s:Ut(s)?a&&(0,r.S0)(e)?s:s.value:(0,r.Kn)(s)?o?St(s):Mt(s):s)}}class Q extends Z{constructor(t=!1){super(!1,t)}set(t,e,n,o){let i=t[e];if(Lt(i)&&Ut(i)&&!Ut(n))return!1;if(!this._shallow&&(kt(n)||Lt(n)||(i=xt(i),n=xt(n)),!(0,r.kJ)(t)&&Ut(i)&&!Ut(n)))return i.value=n,!0;const a=(0,r.kJ)(t)&&(0,r.S0)(e)?Number(e)t,J=t=>Reflect.getPrototypeOf(t);function j(t,e,n=!1,o=!1){t=t["__v_raw"];const i=xt(t),a=xt(e);n||((0,r.aU)(e,a)&&T(i,"get",e),T(i,"get",a));const{has:s}=J(i),l=o?B:n?_t:Xt;return s.call(i,e)?l(t.get(e)):s.call(i,a)?l(t.get(a)):void(t!==i&&t.get(e))}function z(t,e=!1){const n=this["__v_raw"],o=xt(n),i=xt(t);return e||((0,r.aU)(t,i)&&T(o,"has",t),T(o,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function q(t,e=!1){return t=t["__v_raw"],!e&&T(xt(t),"iterate",y),Reflect.get(t,"size",t)}function $(t){t=xt(t);const e=xt(this),n=J(e),r=n.has.call(e,t);return r||(e.add(t),W(e,"add",t,t)),this}function tt(t,e){e=xt(e);const n=xt(this),{has:o,get:i}=J(n);let a=o.call(n,t);a||(t=xt(t),a=o.call(n,t));const s=i.call(n,t);return n.set(t,e),a?(0,r.aU)(e,s)&&W(n,"set",t,e,s):W(n,"add",t,e),this}function et(t){const e=xt(this),{has:n,get:r}=J(e);let o=n.call(e,t);o||(t=xt(t),o=n.call(e,t));const i=r?r.call(e,t):void 0,a=e.delete(t);return o&&W(e,"delete",t,void 0,i),a}function nt(){const t=xt(this),e=0!==t.size,n=void 0,r=t.clear();return e&&W(t,"clear",void 0,void 0,n),r}function rt(t,e){return function(n,r){const o=this,i=o["__v_raw"],a=xt(i),s=e?B:t?_t:Xt;return!t&&T(a,"iterate",y),i.forEach(((t,e)=>n.call(r,s(t),s(e),o)))}}function ot(t,e,n){return function(...o){const i=this["__v_raw"],a=xt(i),s=(0,r._N)(a),l="entries"===t||t===Symbol.iterator&&s,c="keys"===t&&s,u=i[t](...o),f=n?B:e?_t:Xt;return!e&&T(a,"iterate",c?b:y),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:l?[f(t[0]),f(t[1])]:f(t),done:e}},[Symbol.iterator](){return this}}}}function it(t){return function(...e){return"delete"!==t&&this}}function at(){const t={get(t){return j(this,t)},get size(){return q(this)},has:z,add:$,set:tt,delete:et,clear:nt,forEach:rt(!1,!1)},e={get(t){return j(this,t,!1,!0)},get size(){return q(this)},has:z,add:$,set:tt,delete:et,clear:nt,forEach:rt(!1,!0)},n={get(t){return j(this,t,!0)},get size(){return q(this,!0)},has(t){return z.call(this,t,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!1)},r={get(t){return j(this,t,!0,!0)},get size(){return q(this,!0)},has(t){return z.call(this,t,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{t[o]=ot(o,!1,!1),n[o]=ot(o,!0,!1),e[o]=ot(o,!1,!0),r[o]=ot(o,!0,!0)})),[t,n,e,r]}const[st,lt,ct,ut]=at();function ft(t,e){const n=e?t?ut:ct:t?lt:st;return(e,o,i)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get((0,r.RI)(n,o)&&o in e?n:e,o,i)}const ht={get:ft(!1,!1)},dt={get:ft(!1,!0)},pt={get:ft(!0,!1)},Rt={get:ft(!0,!0)};const mt=new WeakMap,At=new WeakMap,gt=new WeakMap,vt=new WeakMap;function yt(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bt(t){return t["__v_skip"]||!Object.isExtensible(t)?0:yt((0,r.W7)(t))}function Mt(t){return Lt(t)?t:Pt(t,!1,E,ht,mt)}function Ot(t){return Pt(t,!1,G,dt,At)}function St(t){return Pt(t,!0,H,pt,gt)}function wt(t){return Pt(t,!0,D,Rt,vt)}function Pt(t,e,n,o,i){if(!(0,r.Kn)(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const a=i.get(t);if(a)return a;const s=bt(t);if(0===s)return t;const l=new Proxy(t,2===s?o:n);return i.set(t,l),l}function Nt(t){return Lt(t)?Nt(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function Lt(t){return!(!t||!t["__v_isReadonly"])}function kt(t){return!(!t||!t["__v_isShallow"])}function Tt(t){return Nt(t)||Lt(t)}function xt(t){const e=t&&t["__v_raw"];return e?xt(e):t}function Wt(t){return(0,r.Nj)(t,"__v_skip",!0),t}const Xt=t=>(0,r.Kn)(t)?Mt(t):t,_t=t=>(0,r.Kn)(t)?St(t):t;function Vt(t){P&&v&&(t=xt(t),x(t.dep||(t.dep=u())))}function Ft(t,e){t=xt(t);const n=t.dep;n&&X(n)}function Ut(t){return!(!t||!0!==t.__v_isRef)}function Yt(t){return Ct(t,!1)}function It(t){return Ct(t,!0)}function Ct(t,e){return Ut(t)?t:new Zt(t,e)}class Zt{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:xt(t),this._value=e?t:Xt(t)}get value(){return Vt(this),this._value}set value(t){const e=this.__v_isShallow||kt(t)||Lt(t);t=e?t:xt(t),(0,r.aU)(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Xt(t),Ft(this,t))}}function Qt(t){Ft(t,void 0)}function Kt(t){return Ut(t)?t.value:t}function Et(t){return(0,r.mf)(t)?t():Kt(t)}const Ht={get:(t,e,n)=>Kt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const o=t[e];return Ut(o)&&!Ut(n)?(o.value=n,!0):Reflect.set(t,e,n,r)}};function Gt(t){return Nt(t)?t:new Proxy(t,Ht)}class Dt{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:e,set:n}=t((()=>Vt(this)),(()=>Ft(this)));this._get=e,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function Bt(t){return new Dt(t)}function Jt(t){const e=(0,r.kJ)(t)?new Array(t.length):{};for(const n in t)e[n]=$t(t,n);return e}class jt{constructor(t,e,n){this._object=t,this._key=e,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return V(xt(this._object),this._key)}}class zt{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function qt(t,e,n){return Ut(t)?t:(0,r.mf)(t)?new zt(t):(0,r.Kn)(t)&&arguments.length>1?$t(t,e,n):Yt(t)}function $t(t,e,n){const r=t[e];return Ut(r)?r:new jt(t,e,n)}class te{constructor(t,e,n,r){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this["__v_isReadonly"]=!1,this._dirty=!0,this.effect=new M(t,(()=>{this._dirty||(this._dirty=!0,Ft(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const t=xt(this);return Vt(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ee(t,e,n=!1){let o,i;const a=(0,r.mf)(t);a?(o=t,i=r.dG):(o=t.get,i=t.set);const s=new te(o,i,a||!i,n);return s}},6252:function(t,e,n){"use strict";n.d(e,{$d:function(){return l},$y:function(){return r.$y},Ah:function(){return ne},B:function(){return r.B},BK:function(){return r.BK},Bj:function(){return r.Bj},Bz:function(){return Pe},C3:function(){return fr},C_:function(){return o.C_},Cn:function(){return Q},EB:function(){return r.EB},EM:function(){return cn},Eo:function(){return _n},F4:function(){return gr},FN:function(){return Wr},Fl:function(){return $r},G:function(){return lo},Gn:function(){return Te},HX:function(){return K},HY:function(){return Jn},Ho:function(){return vr},IU:function(){return r.IU},JJ:function(){return sn},Jd:function(){return ee},KU:function(){return s},Ko:function(){return Re},LL:function(){return fe},MW:function(){return we},MX:function(){return oo},Mr:function(){return ro},Nv:function(){return me},OT:function(){return r.OT},Ob:function(){return Zt},P$:function(){return Lt},PG:function(){return r.PG},Q2:function(){return he},Q6:function(){return _t},RC:function(){return Ut},Rh:function(){return ht},Rr:function(){return We},S3:function(){return c},SU:function(){return r.SU},Tn:function(){return r.Tn},U2:function(){return Tt},Uc:function(){return eo},Uk:function(){return yr},Um:function(){return r.Um},Us:function(){return Xn},Vf:function(){return Ye},Vh:function(){return r.Vh},WI:function(){return Ae},WL:function(){return r.WL},WY:function(){return Ne},Wl:function(){return ke},Wm:function(){return mr},Wu:function(){return a},X3:function(){return r.X3},XI:function(){return r.XI},Xl:function(){return r.Xl},Xn:function(){return $t},Y1:function(){return Hr},Y3:function(){return y},Y8:function(){return St},YP:function(){return Rt},YS:function(){return r.YS},Yq:function(){return oe},Yu:function(){return Le},ZK:function(){return i},ZM:function(){return r.ZM},Zq:function(){return no},_:function(){return Rr},_A:function(){return o._A},aZ:function(){return Vt},b9:function(){return xe},bT:function(){return ie},bv:function(){return qt},cE:function(){return r.cE},d1:function(){return ae},dD:function(){return Z},dG:function(){return Pr},dl:function(){return Kt},dq:function(){return r.dq},ec:function(){return _},eq:function(){return co},f3:function(){return ln},h:function(){return to},hR:function(){return o.hR},i8:function(){return ao},iD:function(){return sr},iH:function(){return r.iH},ic:function(){return te},j4:function(){return lr},j5:function(){return o.j5},kC:function(){return o.kC},kq:function(){return Mr},l1:function(){return Xe},lA:function(){return cr},lR:function(){return Dn},m0:function(){return ft},mW:function(){return x},mv:function(){return Ce},mx:function(){return ve},n4:function(){return tt},nJ:function(){return Pt},nK:function(){return Xt},nQ:function(){return io},nZ:function(){return r.nZ},oR:function(){return r.oR},of:function(){return Gr},p1:function(){return Ie},qG:function(){return qn},qZ:function(){return ir},qb:function(){return w},qj:function(){return r.qj},qq:function(){return r.qq},ry:function(){return uo},sT:function(){return r.sT},se:function(){return Et},sv:function(){return zn},tT:function(){return _e},uE:function(){return br},u_:function(){return Ue},up:function(){return ce},vl:function(){return re},vs:function(){return o.vs},w5:function(){return E},wF:function(){return zt},wg:function(){return er},wy:function(){return yt},xv:function(){return jn},yT:function(){return r.yT},yX:function(){return dt},zw:function(){return o.zw}});var r=n(2262),o=n(3577);function i(t,...e){}function a(t,e){}function s(t,e,n,r){let o;try{o=r?t(...r):t()}catch(i){c(i,e,n)}return o}function l(t,e,n,r){if((0,o.mf)(t)){const i=s(t,e,n,r);return i&&(0,o.tI)(i)&&i.catch((t=>{c(t,e,n)})),i}const i=[];for(let o=0;o>>1,o=d[r],i=L(o);ip&&d.splice(e,1)}function w(t){(0,o.kJ)(t)?R.push(...t):m&&m.includes(t,t.allowRecurse?A+1:A)||R.push(t),O()}function P(t,e=(f?p+1:0)){for(0;eL(t)-L(e))),A=0;Anull==t.id?1/0:t.id,k=(t,e)=>{const n=L(t)-L(e);if(0===n){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function T(t){h=!1,f=!0,d.sort(k);o.dG;try{for(p=0;px.emit(t,...e))),W=[];else if("undefined"!==typeof window&&window.HTMLElement&&!(null==(r=null==(n=window.navigator)?void 0:n.userAgent)?void 0:r.includes("jsdom"))){const t=e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[];t.push((t=>{_(t,e)})),setTimeout((()=>{x||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,X=!0,W=[])}),3e3)}else X=!0,W=[]}function V(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||o.kT;let i=n;const a=e.startsWith("update:"),s=a&&e.slice(7);if(s&&s in r){const t=`${"modelValue"===s?"model":s}Modifiers`,{number:e,trim:a}=r[t]||o.kT;a&&(i=n.map((t=>(0,o.HD)(t)?t.trim():t))),e&&(i=n.map(o.h5))}let c;let u=r[c=(0,o.hR)(e)]||r[c=(0,o.hR)((0,o._A)(e))];!u&&a&&(u=r[c=(0,o.hR)((0,o.rs)(e))]),u&&l(u,t,6,i);const f=r[c+"Once"];if(f){if(t.emitted){if(t.emitted[c])return}else t.emitted={};t.emitted[c]=!0,l(f,t,6,i)}}function F(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(void 0!==i)return i;const a=t.emits;let s={},l=!1;if(!(0,o.mf)(t)){const r=t=>{const n=F(t,e,!0);n&&(l=!0,(0,o.l7)(s,n))};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}return a||l?((0,o.kJ)(a)?a.forEach((t=>s[t]=null)):(0,o.l7)(s,a),(0,o.Kn)(t)&&r.set(t,s),s):((0,o.Kn)(t)&&r.set(t,null),null)}function U(t,e){return!(!t||!(0,o.F7)(e))&&(e=e.slice(2).replace(/Once$/,""),(0,o.RI)(t,e[0].toLowerCase()+e.slice(1))||(0,o.RI)(t,(0,o.rs)(e))||(0,o.RI)(t,e))}let Y=null,I=null;function C(t){const e=Y;return Y=t,I=t&&t.type.__scopeId||null,e}function Z(t){I=t}function Q(){I=null}const K=t=>E;function E(t,e=Y,n){if(!e)return t;if(t._n)return t;const r=(...n)=>{r._d&&ir(-1);const o=C(e);let i;try{i=t(...n)}finally{C(o),r._d&&ir(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function H(t){const{type:e,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[s],slots:l,attrs:u,emit:f,render:h,renderCache:d,data:p,setupState:R,ctx:m,inheritAttrs:A}=t;let g,v;const y=C(t);try{if(4&n.shapeFlag){const t=i||r;g=Or(h.call(t,t,d,a,R,p,m)),v=u}else{const t=e;0,g=Or(t.length>1?t(a,{attrs:u,slots:l,emit:f}):t(a,null)),v=e.props?u:D(u)}}catch(M){$n.length=0,c(M,t,1),g=mr(zn)}let b=g;if(v&&!1!==A){const t=Object.keys(v),{shapeFlag:e}=b;t.length&&7&e&&(s&&t.some(o.tR)&&(v=B(v,s)),b=vr(b,v))}return n.dirs&&(b=vr(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,C(y),g}function G(t){let e;for(let n=0;n{let e;for(const n in t)("class"===n||"style"===n||(0,o.F7)(n))&&((e||(e={}))[n]=t[n]);return e},B=(t,e)=>{const n={};for(const r in t)(0,o.tR)(r)&&r.slice(9)in e||(n[r]=t[r]);return n};function J(t,e,n){const{props:r,children:o,component:i}=t,{props:a,children:s,patchFlag:l}=e,c=i.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||j(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?j(r,a,c):!!a;if(8&l){const t=e.dynamicProps;for(let e=0;et.__isSuspense,$={name:"Suspense",__isSuspense:!0,process(t,e,n,r,o,i,a,s,l,c){null==t?nt(e,n,r,o,i,a,s,l,c):rt(t,e,n,r,o,a,s,l,c)},hydrate:it,create:ot,normalize:at},tt=$;function et(t,e){const n=t.props&&t.props[e];(0,o.mf)(n)&&n()}function nt(t,e,n,r,o,i,a,s,l){const{p:c,o:{createElement:u}}=l,f=u("div"),h=t.suspense=ot(t,o,r,e,f,n,i,a,s,l);c(null,h.pendingBranch=t.ssContent,f,null,r,h,i,a),h.deps>0?(et(t,"onPending"),et(t,"onFallback"),c(null,t.ssFallback,e,n,r,null,i,a),ct(h,t.ssFallback)):h.resolve(!1,!0)}function rt(t,e,n,r,o,i,a,s,{p:l,um:c,o:{createElement:u}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const h=e.ssContent,d=e.ssFallback,{activeBranch:p,pendingBranch:R,isInFallback:m,isHydrating:A}=f;if(R)f.pendingBranch=h,ur(h,R)?(l(R,h,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():m&&(l(p,d,n,r,o,null,i,a,s),ct(f,d))):(f.pendingId++,A?(f.isHydrating=!1,f.activeBranch=R):c(R,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),m?(l(null,h,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():(l(p,d,n,r,o,null,i,a,s),ct(f,d))):p&&ur(h,p)?(l(p,h,n,r,o,f,i,a,s),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0&&f.resolve()));else if(p&&ur(h,p))l(p,h,n,r,o,f,i,a,s),ct(f,h);else if(et(e,"onPending"),f.pendingBranch=h,f.pendingId++,l(null,h,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0)f.resolve();else{const{timeout:t,pendingId:e}=f;t>0?setTimeout((()=>{f.pendingId===e&&f.fallback(d)}),t):0===t&&f.fallback(d)}}function ot(t,e,n,r,i,a,s,l,u,f,h=!1){const{p:d,m:p,um:R,n:m,o:{parentNode:A,remove:g}}=f;let v;const y=ut(t);y&&(null==e?void 0:e.pendingBranch)&&(v=e.pendingId,e.deps++);const b=t.props?(0,o.He)(t.props.timeout):void 0;const M={vnode:t,parent:e,parentComponent:n,isSVG:s,container:r,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:"number"===typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:h,isUnmounted:!1,effects:[],resolve(t=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:a,effects:s,parentComponent:l,container:c}=M;let u=!1;if(M.isHydrating)M.isHydrating=!1;else if(!t){u=o&&i.transition&&"out-in"===i.transition.mode,u&&(o.transition.afterLeave=()=>{a===M.pendingId&&(p(i,c,t,0),w(s))});let{anchor:t}=M;o&&(t=m(o),R(o,l,M,!0)),u||p(i,c,t,0)}ct(M,i),M.pendingBranch=null,M.isInFallback=!1;let f=M.parent,h=!1;while(f){if(f.pendingBranch){f.effects.push(...s),h=!0;break}f=f.parent}h||u||w(s),M.effects=[],y&&e&&e.pendingBranch&&v===e.pendingId&&(e.deps--,0!==e.deps||n||e.resolve()),et(r,"onResolve")},fallback(t){if(!M.pendingBranch)return;const{vnode:e,activeBranch:n,parentComponent:r,container:o,isSVG:i}=M;et(e,"onFallback");const a=m(n),s=()=>{M.isInFallback&&(d(null,t,o,a,r,null,i,l,u),ct(M,t))},c=t.transition&&"out-in"===t.transition.mode;c&&(n.transition.afterLeave=s),M.isInFallback=!0,R(n,r,null,!0),c||s()},move(t,e,n){M.activeBranch&&p(M.activeBranch,t,e,n),M.container=t},next(){return M.activeBranch&&m(M.activeBranch)},registerDep(t,e){const n=!!M.pendingBranch;n&&M.deps++;const r=t.vnode.el;t.asyncDep.catch((e=>{c(e,t,0)})).then((o=>{if(t.isUnmounted||M.isUnmounted||M.pendingId!==t.suspenseId)return;t.asyncResolved=!0;const{vnode:i}=t;Er(t,o,!1),r&&(i.el=r);const a=!r&&t.subTree.el;e(t,i,A(r||t.subTree.el),r?null:m(t.subTree),M,s,u),a&&g(a),z(t,i.el),n&&0===--M.deps&&M.resolve()}))},unmount(t,e){M.isUnmounted=!0,M.activeBranch&&R(M.activeBranch,n,t,e),M.pendingBranch&&R(M.pendingBranch,n,t,e)}};return M}function it(t,e,n,r,o,i,a,s,l){const c=e.suspense=ot(e,r,n,t.parentNode,document.createElement("div"),null,o,i,a,s,!0),u=l(t,c.pendingBranch=e.ssContent,n,c,i,a);return 0===c.deps&&c.resolve(!1,!0),u}function at(t){const{shapeFlag:e,children:n}=t,r=32&e;t.ssContent=st(r?n.default:n),t.ssFallback=r?st(n.fallback):mr(zn)}function st(t){let e;if((0,o.mf)(t)){const n=or&&t._c;n&&(t._d=!1,er()),t=t(),n&&(t._d=!0,e=tr,nr())}if((0,o.kJ)(t)){const e=G(t);0,t=e}return t=Or(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter((e=>e!==t))),t}function lt(t,e){e&&e.pendingBranch?(0,o.kJ)(t)?e.effects.push(...t):e.effects.push(t):w(t)}function ct(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t,o=n.el=e.el;r&&r.subTree===n&&(r.vnode.el=o,z(r,o))}function ut(t){var e;return null!=(null==(e=t.props)?void 0:e.suspensible)&&!1!==t.props.suspensible}function ft(t,e){return mt(t,null,e)}function ht(t,e){return mt(t,null,{flush:"post"})}function dt(t,e){return mt(t,null,{flush:"sync"})}const pt={};function Rt(t,e,n){return mt(t,e,n)}function mt(t,e,{immediate:n,deep:i,flush:a,onTrack:c,onTrigger:u}=o.kT){var f;const h=(0,r.nZ)()===(null==(f=xr)?void 0:f.scope)?xr:null;let d,p,R=!1,m=!1;if((0,r.dq)(t)?(d=()=>t.value,R=(0,r.yT)(t)):(0,r.PG)(t)?(d=()=>t,i=!0):(0,o.kJ)(t)?(m=!0,R=t.some((t=>(0,r.PG)(t)||(0,r.yT)(t))),d=()=>t.map((t=>(0,r.dq)(t)?t.value:(0,r.PG)(t)?vt(t):(0,o.mf)(t)?s(t,h,2):void 0))):d=(0,o.mf)(t)?e?()=>s(t,h,2):()=>{if(!h||!h.isUnmounted)return p&&p(),l(t,h,3,[g])}:o.dG,e&&i){const t=d;d=()=>vt(t())}let A,g=t=>{p=O.onStop=()=>{s(t,h,4)}};if(Zr){if(g=o.dG,e?n&&l(e,h,3,[d(),m?[]:void 0,g]):d(),"sync"!==a)return o.dG;{const t=no();A=t.__watcherHandles||(t.__watcherHandles=[])}}let v=m?new Array(t.length).fill(pt):pt;const y=()=>{if(O.active)if(e){const t=O.run();(i||R||(m?t.some(((t,e)=>(0,o.aU)(t,v[e]))):(0,o.aU)(t,v)))&&(p&&p(),l(e,h,3,[t,v===pt?void 0:m&&v[0]===pt?[]:v,g]),v=t)}else O.run()};let b;y.allowRecurse=!!e,"sync"===a?b=y:"post"===a?b=()=>Wn(y,h&&h.suspense):(y.pre=!0,h&&(y.id=h.uid),b=()=>M(y));const O=new r.qq(d,b);e?n?y():v=O.run():"post"===a?Wn(O.run.bind(O),h&&h.suspense):O.run();const S=()=>{O.stop(),h&&h.scope&&(0,o.Od)(h.scope.effects,O)};return A&&A.push(S),S}function At(t,e,n){const r=this.proxy,i=(0,o.HD)(t)?t.includes(".")?gt(r,t):()=>r[t]:t.bind(r,r);let a;(0,o.mf)(e)?a=e:(a=e.handler,n=e);const s=xr;Fr(this);const l=mt(i,a.bind(r),n);return s?Fr(s):Ur(),l}function gt(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t{vt(t,e)}));else if((0,o.PO)(t))for(const n in t)vt(t[n],e);return t}function yt(t,e){const n=Y;if(null===n)return t;const r=jr(n)||n.proxy,i=t.dirs||(t.dirs=[]);for(let a=0;a{t.isMounted=!0})),ee((()=>{t.isUnmounting=!0})),t}const wt=[Function,Array],Pt={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wt,onEnter:wt,onAfterEnter:wt,onEnterCancelled:wt,onBeforeLeave:wt,onLeave:wt,onAfterLeave:wt,onLeaveCancelled:wt,onBeforeAppear:wt,onAppear:wt,onAfterAppear:wt,onAppearCancelled:wt},Nt={name:"BaseTransition",props:Pt,setup(t,{slots:e}){const n=Wr(),o=St();let i;return()=>{const a=e.default&&_t(e.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let t=!1;for(const e of a)if(e.type!==zn){0,s=e,t=!0;break}}const l=(0,r.IU)(t),{mode:c}=l;if(o.isLeaving)return xt(s);const u=Wt(s);if(!u)return xt(s);const f=Tt(u,l,o,n);Xt(u,f);const h=n.subTree,d=h&&Wt(h);let p=!1;const{getTransitionKey:R}=u.type;if(R){const t=R();void 0===i?i=t:t!==i&&(i=t,p=!0)}if(d&&d.type!==zn&&(!ur(u,d)||p)){const t=Tt(d,l,o,n);if(Xt(d,t),"out-in"===c)return o.isLeaving=!0,t.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&n.update()},xt(s);"in-out"===c&&u.type!==zn&&(t.delayLeave=(t,e,n)=>{const r=kt(o,d);r[String(d.key)]=d,t[Mt]=()=>{e(),t[Mt]=void 0,delete f.delayedLeave},f.delayedLeave=n})}return s}}},Lt=Nt;function kt(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Tt(t,e,n,r){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:d,onLeave:p,onAfterLeave:R,onLeaveCancelled:m,onBeforeAppear:A,onAppear:g,onAfterAppear:v,onAppearCancelled:y}=e,b=String(t.key),M=kt(n,t),O=(t,e)=>{t&&l(t,r,9,e)},S=(t,e)=>{const n=e[1];O(t,e),(0,o.kJ)(t)?t.every((t=>t.length<=1))&&n():t.length<=1&&n()},w={mode:a,persisted:s,beforeEnter(e){let r=c;if(!n.isMounted){if(!i)return;r=A||c}e[Mt]&&e[Mt](!0);const o=M[b];o&&ur(t,o)&&o.el[Mt]&&o.el[Mt](),O(r,[e])},enter(t){let e=u,r=f,o=h;if(!n.isMounted){if(!i)return;e=g||u,r=v||f,o=y||h}let a=!1;const s=t[Ot]=e=>{a||(a=!0,O(e?o:r,[t]),w.delayedLeave&&w.delayedLeave(),t[Ot]=void 0)};e?S(e,[t,s]):s()},leave(e,r){const o=String(t.key);if(e[Ot]&&e[Ot](!0),n.isUnmounting)return r();O(d,[e]);let i=!1;const a=e[Mt]=n=>{i||(i=!0,r(),O(n?m:R,[e]),e[Mt]=void 0,M[o]===t&&delete M[o])};M[o]=t,p?S(p,[e,a]):a()},clone(t){return Tt(t,e,n,r)}};return w}function xt(t){if(It(t))return t=vr(t),t.children=null,t}function Wt(t){return It(t)?t.children?t.children[0]:void 0:t}function Xt(t,e){6&t.shapeFlag&&t.component?Xt(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function _t(t,e=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i(0,o.l7)({name:t.name},e,{setup:t}))():t}const Ft=t=>!!t.type.__asyncLoader -/*! #__NO_SIDE_EFFECTS__ */;function Ut(t){(0,o.mf)(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:i,delay:a=200,timeout:s,suspensible:l=!0,onError:u}=t;let f,h=null,d=0;const p=()=>(d++,h=null,R()),R=()=>{let t;return h||(t=h=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),u)return new Promise(((e,n)=>{const r=()=>e(p()),o=()=>n(t);u(t,r,o,d+1)}));throw t})).then((e=>t!==h&&h?h:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),f=e,e))))};return Vt({name:"AsyncComponentWrapper",__asyncLoader:R,get __asyncResolved(){return f},setup(){const t=xr;if(f)return()=>Yt(f,t);const e=e=>{h=null,c(e,t,13,!i)};if(l&&t.suspense||Zr)return R().then((e=>()=>Yt(e,t))).catch((t=>(e(t),()=>i?mr(i,{error:t}):null)));const o=(0,r.iH)(!1),u=(0,r.iH)(),d=(0,r.iH)(!!a);return a&&setTimeout((()=>{d.value=!1}),a),null!=s&&setTimeout((()=>{if(!o.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),R().then((()=>{o.value=!0,t.parent&&It(t.parent.vnode)&&M(t.parent.update)})).catch((t=>{e(t),u.value=t})),()=>o.value&&f?Yt(f,t):u.value&&i?mr(i,{error:u.value}):n&&!d.value?mr(n):void 0}})}function Yt(t,e){const{ref:n,props:r,children:o,ce:i}=e.vnode,a=mr(t,r,o);return a.ref=n,a.ce=i,delete e.vnode.ce,a}const It=t=>t.type.__isKeepAlive,Ct={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Wr(),r=n.ctx;if(!r.renderer)return()=>{const t=e.default&&e.default();return t&&1===t.length?t[0]:t};const i=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:u,um:f,o:{createElement:h}}}=r,d=h("div");function p(t){Dt(t),f(t,n,l,!0)}function R(t){i.forEach(((e,n)=>{const r=zr(e.type);!r||t&&t(r)||m(n)}))}function m(t){const e=i.get(t);s&&ur(e,s)?s&&Dt(s):p(e),i.delete(t),a.delete(t)}r.activate=(t,e,n,r,i)=>{const a=t.component;u(t,e,n,0,l),c(a.vnode,t,e,n,a,l,r,t.slotScopeIds,i),Wn((()=>{a.isDeactivated=!1,a.a&&(0,o.ir)(a.a);const e=t.props&&t.props.onVnodeMounted;e&&Nr(e,a.parent,t)}),l)},r.deactivate=t=>{const e=t.component;u(t,d,null,1,l),Wn((()=>{e.da&&(0,o.ir)(e.da);const n=t.props&&t.props.onVnodeUnmounted;n&&Nr(n,e.parent,t),e.isDeactivated=!0}),l)},Rt((()=>[t.include,t.exclude]),(([t,e])=>{t&&R((e=>Qt(t,e))),e&&R((t=>!Qt(e,t)))}),{flush:"post",deep:!0});let A=null;const g=()=>{null!=A&&i.set(A,Bt(n.subTree))};return qt(g),te(g),ee((()=>{i.forEach((t=>{const{subTree:e,suspense:r}=n,o=Bt(e);if(t.type!==o.type||t.key!==o.key)p(t);else{Dt(o);const t=o.component.da;t&&Wn(t,r)}}))})),()=>{if(A=null,!e.default)return null;const n=e.default(),r=n[0];if(n.length>1)return s=null,n;if(!cr(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let o=Bt(r);const l=o.type,c=zr(Ft(o)?o.type.__asyncResolved||{}:l),{include:u,exclude:f,max:h}=t;if(u&&(!c||!Qt(u,c))||f&&c&&Qt(f,c))return s=o,r;const d=null==o.key?l:o.key,p=i.get(d);return o.el&&(o=vr(o),128&r.shapeFlag&&(r.ssContent=o)),A=d,p?(o.el=p.el,o.component=p.component,o.transition&&Xt(o,o.transition),o.shapeFlag|=512,a.delete(d),a.add(d)):(a.add(d),h&&a.size>parseInt(h,10)&&m(a.values().next().value)),o.shapeFlag|=256,s=o,q(r.type)?r:o}}},Zt=Ct;function Qt(t,e){return(0,o.kJ)(t)?t.some((t=>Qt(t,e))):(0,o.HD)(t)?t.split(",").includes(e):!!(0,o.Kj)(t)&&t.test(e)}function Kt(t,e){Ht(t,"a",e)}function Et(t,e){Ht(t,"da",e)}function Ht(t,e,n=xr){const r=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(Jt(e,r,n),n){let t=n.parent;while(t&&t.parent)It(t.parent.vnode)&&Gt(r,e,n,t),t=t.parent}}function Gt(t,e,n,r){const i=Jt(e,t,r,!0);ne((()=>{(0,o.Od)(r[e],i)}),n)}function Dt(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Bt(t){return 128&t.shapeFlag?t.ssContent:t}function Jt(t,e,n=xr,o=!1){if(n){const i=n[t]||(n[t]=[]),a=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;(0,r.Jd)(),Fr(n);const i=l(e,n,t,o);return Ur(),(0,r.lk)(),i});return o?i.unshift(a):i.push(a),a}}const jt=t=>(e,n=xr)=>(!Zr||"sp"===t)&&Jt(t,((...t)=>e(...t)),n),zt=jt("bm"),qt=jt("m"),$t=jt("bu"),te=jt("u"),ee=jt("bum"),ne=jt("um"),re=jt("sp"),oe=jt("rtg"),ie=jt("rtc");function ae(t,e=xr){Jt("ec",t,e)}const se="components",le="directives";function ce(t,e){return de(se,t,!0,e)||t}const ue=Symbol.for("v-ndc");function fe(t){return(0,o.HD)(t)?de(se,t,!1)||t:t||ue}function he(t){return de(le,t)}function de(t,e,n=!0,r=!1){const i=Y||xr;if(i){const n=i.type;if(t===se){const t=zr(n,!1);if(t&&(t===e||t===(0,o._A)(e)||t===(0,o.kC)((0,o._A)(e))))return n}const a=pe(i[t]||n[t],e)||pe(i.appContext[t],e);return!a&&r?n:a}}function pe(t,e){return t&&(t[e]||t[(0,o._A)(e)]||t[(0,o.kC)((0,o._A)(e))])}function Re(t,e,n,r){let i;const a=n&&n[r];if((0,o.kJ)(t)||(0,o.HD)(t)){i=new Array(t.length);for(let n=0,r=t.length;ne(t,n,void 0,a&&a[n])));else{const n=Object.keys(t);i=new Array(n.length);for(let r=0,o=n.length;r{const e=r.fn(...t);return e&&(e.key=r.key),e}:r.fn)}return t}function Ae(t,e,n={},r,o){if(Y.isCE||Y.parent&&Ft(Y.parent)&&Y.parent.isCE)return"default"!==e&&(n.name=e),mr("slot",n,r&&r());let i=t[e];i&&i._c&&(i._d=!1),er();const a=i&&ge(i(n)),s=lr(Jn,{key:n.key||a&&a.key||`_${e}`},a||(r?r():[]),a&&1===t._?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function ge(t){return t.some((t=>!cr(t)||t.type!==zn&&!(t.type===Jn&&!ge(t.children))))?t:null}function ve(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:(0,o.hR)(r)]=t[r];return n}const ye=t=>t?Yr(t)?jr(t)||t.proxy:ye(t.parent):null,be=(0,o.l7)(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=>ye(t.parent),$root:t=>ye(t.root),$emit:t=>t.emit,$options:t=>Ge(t),$forceUpdate:t=>t.f||(t.f=()=>M(t.update)),$nextTick:t=>t.n||(t.n=y.bind(t.proxy)),$watch:t=>At.bind(t)}),Me=(t,e)=>t!==o.kT&&!t.__isScriptSetup&&(0,o.RI)(t,e),Oe={get({_:t},e){const{ctx:n,setupState:i,data:a,props:s,accessCache:l,type:c,appContext:u}=t;let f;if("$"!==e[0]){const r=l[e];if(void 0!==r)switch(r){case 1:return i[e];case 2:return a[e];case 4:return n[e];case 3:return s[e]}else{if(Me(i,e))return l[e]=1,i[e];if(a!==o.kT&&(0,o.RI)(a,e))return l[e]=2,a[e];if((f=t.propsOptions[0])&&(0,o.RI)(f,e))return l[e]=3,s[e];if(n!==o.kT&&(0,o.RI)(n,e))return l[e]=4,n[e];Ze&&(l[e]=0)}}const h=be[e];let d,p;return h?("$attrs"===e&&(0,r.j)(t,"get",e),h(t)):(d=c.__cssModules)&&(d=d[e])?d:n!==o.kT&&(0,o.RI)(n,e)?(l[e]=4,n[e]):(p=u.config.globalProperties,(0,o.RI)(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:r,setupState:i,ctx:a}=t;return Me(i,e)?(i[e]=n,!0):r!==o.kT&&(0,o.RI)(r,e)?(r[e]=n,!0):!(0,o.RI)(t.props,e)&&(("$"!==e[0]||!(e.slice(1)in t))&&(a[e]=n,!0))},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let l;return!!n[s]||t!==o.kT&&(0,o.RI)(t,s)||Me(e,s)||(l=a[0])&&(0,o.RI)(l,s)||(0,o.RI)(r,s)||(0,o.RI)(be,s)||(0,o.RI)(i.config.globalProperties,s)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:(0,o.RI)(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};const Se=(0,o.l7)({},Oe,{get(t,e){if(e!==Symbol.unscopables)return Oe.get(t,e,t)},has(t,e){const n="_"!==e[0]&&!(0,o.yl)(e);return n}});function we(){return null}function Pe(){return null}function Ne(t){0}function Le(t){0}function ke(){return null}function Te(){0}function xe(t,e){return null}function We(){return Ve().slots}function Xe(){return Ve().attrs}function _e(t,e,n){const o=Wr();if(n&&n.local){const n=(0,r.iH)(t[e]);return Rt((()=>t[e]),(t=>n.value=t)),Rt(n,(n=>{n!==t[e]&&o.emit(`update:${e}`,n)})),n}return{__v_isRef:!0,get value(){return t[e]},set value(t){o.emit(`update:${e}`,t)}}}function Ve(){const t=Wr();return t.setupContext||(t.setupContext=Jr(t))}function Fe(t){return(0,o.kJ)(t)?t.reduce(((t,e)=>(t[e]=null,t)),{}):t}function Ue(t,e){const n=Fe(t);for(const r in e){if(r.startsWith("__skip"))continue;let t=n[r];t?(0,o.kJ)(t)||(0,o.mf)(t)?t=n[r]={type:t,default:e[r]}:t.default=e[r]:null===t&&(t=n[r]={default:e[r]}),t&&e[`__skip_${r}`]&&(t.skipFactory=!0)}return n}function Ye(t,e){return t&&e?(0,o.kJ)(t)&&(0,o.kJ)(e)?t.concat(e):(0,o.l7)({},Fe(t),Fe(e)):t||e}function Ie(t,e){const n={};for(const r in t)e.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function Ce(t){const e=Wr();let n=t();return Ur(),(0,o.tI)(n)&&(n=n.catch((t=>{throw Fr(e),t}))),[n,()=>Fr(e)]}let Ze=!0;function Qe(t){const e=Ge(t),n=t.proxy,i=t.ctx;Ze=!1,e.beforeCreate&&Ee(e.beforeCreate,t,"bc");const{data:a,computed:s,methods:l,watch:c,provide:u,inject:f,created:h,beforeMount:d,mounted:p,beforeUpdate:R,updated:m,activated:A,deactivated:g,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:M,render:O,renderTracked:S,renderTriggered:w,errorCaptured:P,serverPrefetch:N,expose:L,inheritAttrs:k,components:T,directives:x,filters:W}=e,X=null;if(f&&Ke(f,i,X),l)for(const r in l){const t=l[r];(0,o.mf)(t)&&(i[r]=t.bind(n))}if(a){0;const e=a.call(n,n);0,(0,o.Kn)(e)&&(t.data=(0,r.qj)(e))}if(Ze=!0,s)for(const r in s){const t=s[r],e=(0,o.mf)(t)?t.bind(n,n):(0,o.mf)(t.get)?t.get.bind(n,n):o.dG;0;const a=!(0,o.mf)(t)&&(0,o.mf)(t.set)?t.set.bind(n):o.dG,l=$r({get:e,set:a});Object.defineProperty(i,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:t=>l.value=t})}if(c)for(const r in c)He(c[r],i,n,r);if(u){const t=(0,o.mf)(u)?u.call(n):u;Reflect.ownKeys(t).forEach((e=>{sn(e,t[e])}))}function _(t,e){(0,o.kJ)(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(h&&Ee(h,t,"c"),_(zt,d),_(qt,p),_($t,R),_(te,m),_(Kt,A),_(Et,g),_(ae,P),_(ie,S),_(oe,w),_(ee,y),_(ne,M),_(re,N),(0,o.kJ)(L))if(L.length){const e=t.exposed||(t.exposed={});L.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})}))}else t.exposed||(t.exposed={});O&&t.render===o.dG&&(t.render=O),null!=k&&(t.inheritAttrs=k),T&&(t.components=T),x&&(t.directives=x)}function Ke(t,e,n=o.dG){(0,o.kJ)(t)&&(t=ze(t));for(const i in t){const n=t[i];let a;a=(0,o.Kn)(n)?"default"in n?ln(n.from||i,n.default,!0):ln(n.from||i):ln(n),(0,r.dq)(a)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:t=>a.value=t}):e[i]=a}}function Ee(t,e,n){l((0,o.kJ)(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function He(t,e,n,r){const i=r.includes(".")?gt(n,r):()=>n[r];if((0,o.HD)(t)){const n=e[t];(0,o.mf)(n)&&Rt(i,n)}else if((0,o.mf)(t))Rt(i,t.bind(n));else if((0,o.Kn)(t))if((0,o.kJ)(t))t.forEach((t=>He(t,e,n,r)));else{const r=(0,o.mf)(t.handler)?t.handler.bind(n):e[t.handler];(0,o.mf)(r)&&Rt(i,r,t)}else 0}function Ge(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=t.appContext,l=a.get(e);let c;return l?c=l:i.length||n||r?(c={},i.length&&i.forEach((t=>De(c,t,s,!0))),De(c,e,s)):c=e,(0,o.Kn)(e)&&a.set(e,c),c}function De(t,e,n,r=!1){const{mixins:o,extends:i}=e;i&&De(t,i,n,!0),o&&o.forEach((e=>De(t,e,n,!0)));for(const a in e)if(r&&"expose"===a);else{const r=Be[a]||n&&n[a];t[a]=r?r(t[a],e[a]):e[a]}return t}const Be={data:Je,props:tn,emits:tn,methods:$e,computed:$e,beforeCreate:qe,created:qe,beforeMount:qe,mounted:qe,beforeUpdate:qe,updated:qe,beforeDestroy:qe,beforeUnmount:qe,destroyed:qe,unmounted:qe,activated:qe,deactivated:qe,errorCaptured:qe,serverPrefetch:qe,components:$e,directives:$e,watch:en,provide:Je,inject:je};function Je(t,e){return e?t?function(){return(0,o.l7)((0,o.mf)(t)?t.call(this,this):t,(0,o.mf)(e)?e.call(this,this):e)}:e:t}function je(t,e){return $e(ze(t),ze(e))}function ze(t){if((0,o.kJ)(t)){const e={};for(let n=0;n1)return n&&(0,o.mf)(e)?e.call(r&&r.proxy):e}else 0}function cn(){return!!(xr||Y||an)}function un(t,e,n,i=!1){const a={},s={};(0,o.Nj)(s,hr,1),t.propsDefaults=Object.create(null),hn(t,e,a,s);for(const r in t.propsOptions[0])r in a||(a[r]=void 0);n?t.props=i?a:(0,r.Um)(a):t.type.props?t.props=a:t.props=s,t.attrs=s}function fn(t,e,n,i){const{props:a,attrs:s,vnode:{patchFlag:l}}=t,c=(0,r.IU)(a),[u]=t.propsOptions;let f=!1;if(!(i||l>0)||16&l){let r;hn(t,e,a,s)&&(f=!0);for(const i in c)e&&((0,o.RI)(e,i)||(r=(0,o.rs)(i))!==i&&(0,o.RI)(e,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(a[i]=dn(u,c,i,void 0,t,!0)):delete a[i]);if(s!==c)for(const t in s)e&&(0,o.RI)(e,t)||(delete s[t],f=!0)}else if(8&l){const n=t.vnode.dynamicProps;for(let r=0;r{c=!0;const[n,r]=pn(t,e,!0);(0,o.l7)(s,n),r&&l.push(...r)};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}if(!a&&!c)return(0,o.Kn)(t)&&r.set(t,o.Z6),o.Z6;if((0,o.kJ)(a))for(let f=0;f-1,r[1]=n<0||t-1||(0,o.RI)(r,"default"))&&l.push(e)}}}}const u=[s,l];return(0,o.Kn)(t)&&r.set(t,u),u}function Rn(t){return"$"!==t[0]}function mn(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:null===t?"null":""}function An(t,e){return mn(t)===mn(e)}function gn(t,e){return(0,o.kJ)(e)?e.findIndex((e=>An(e,t))):(0,o.mf)(e)&&An(e,t)?0:-1}const vn=t=>"_"===t[0]||"$stable"===t,yn=t=>(0,o.kJ)(t)?t.map(Or):[Or(t)],bn=(t,e,n)=>{if(e._n)return e;const r=E(((...t)=>yn(e(...t))),n);return r._c=!1,r},Mn=(t,e,n)=>{const r=t._ctx;for(const i in t){if(vn(i))continue;const n=t[i];if((0,o.mf)(n))e[i]=bn(i,n,r);else if(null!=n){0;const t=yn(n);e[i]=()=>t}}},On=(t,e)=>{const n=yn(e);t.slots.default=()=>n},Sn=(t,e)=>{if(32&t.vnode.shapeFlag){const n=e._;n?(t.slots=(0,r.IU)(e),(0,o.Nj)(e,"_",n)):Mn(e,t.slots={})}else t.slots={},e&&On(t,e);(0,o.Nj)(t.slots,hr,1)},wn=(t,e,n)=>{const{vnode:r,slots:i}=t;let a=!0,s=o.kT;if(32&r.shapeFlag){const t=e._;t?n&&1===t?a=!1:((0,o.l7)(i,e),n||1!==t||delete i._):(a=!e.$stable,Mn(e,i)),s=e}else e&&(On(t,e),s={default:1});if(a)for(const o in i)vn(o)||null!=s[o]||delete i[o]};function Pn(t,e,n,i,a=!1){if((0,o.kJ)(t))return void t.forEach(((t,r)=>Pn(t,e&&((0,o.kJ)(e)?e[r]:e),n,i,a)));if(Ft(i)&&!a)return;const l=4&i.shapeFlag?jr(i.component)||i.component.proxy:i.el,c=a?null:l,{i:u,r:f}=t;const h=e&&e.r,d=u.refs===o.kT?u.refs={}:u.refs,p=u.setupState;if(null!=h&&h!==f&&((0,o.HD)(h)?(d[h]=null,(0,o.RI)(p,h)&&(p[h]=null)):(0,r.dq)(h)&&(h.value=null)),(0,o.mf)(f))s(f,u,12,[c,d]);else{const e=(0,o.HD)(f),i=(0,r.dq)(f);if(e||i){const r=()=>{if(t.f){const n=e?(0,o.RI)(p,f)?p[f]:d[f]:f.value;a?(0,o.kJ)(n)&&(0,o.Od)(n,l):(0,o.kJ)(n)?n.includes(l)||n.push(l):e?(d[f]=[l],(0,o.RI)(p,f)&&(p[f]=d[f])):(f.value=[l],t.k&&(d[t.k]=f.value))}else e?(d[f]=c,(0,o.RI)(p,f)&&(p[f]=c)):i&&(f.value=c,t.k&&(d[t.k]=c))};c?(r.id=-1,Wn(r,n)):r()}else 0}}let Nn=!1;const Ln=t=>/svg/.test(t.namespaceURI)&&"foreignObject"!==t.tagName,kn=t=>8===t.nodeType;function Tn(t){const{mt:e,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:l,insert:c,createComment:u}}=t,f=(t,e)=>{if(!e.hasChildNodes())return n(null,t,e),N(),void(e._vnode=t);Nn=!1,h(e.firstChild,t,null,null,null),N(),e._vnode=t,Nn&&console.error("Hydration completed but contains mismatches.")},h=(n,r,o,l,u,f=!1)=>{const y=kn(n)&&"["===n.data,b=()=>m(n,r,o,l,u,y),{type:M,ref:O,shapeFlag:S,patchFlag:w}=r;let P=n.nodeType;r.el=n,-2===w&&(f=!1,r.dynamicChildren=null);let N=null;switch(M){case jn:3!==P?""===r.children?(c(r.el=i(""),s(n),n),N=n):N=b():(n.data!==r.children&&(Nn=!0,n.data=r.children),N=a(n));break;case zn:if(8!==P||y)if("template"===n.tagName.toLowerCase()){const t=r.el.content.firstChild;g(t,n,o),r.el=n=t,N=a(n)}else N=b();else N=a(n);break;case qn:if(y&&(n=a(n),P=n.nodeType),1===P||3===P){N=n;const t=!r.children.length;for(let e=0;e{s=s||!!e.dynamicChildren;const{type:c,props:u,patchFlag:f,shapeFlag:h,dirs:d,transition:R}=e,m="input"===c&&d||"option"===c;if(m||-1!==f){if(d&&bt(e,null,n,"created"),u)if(m||!s||48&f)for(const e in u)(m&&e.endsWith("value")||(0,o.F7)(e)&&!(0,o.Gg)(e))&&r(t,e,null,u[e],!1,void 0,n);else u.onClick&&r(t,"onClick",null,u.onClick,!1,void 0,n);let c;(c=u&&u.onVnodeBeforeMount)&&Nr(c,n,e);let A=!1;if(v(t)){A=Un(i,R)&&n&&n.vnode.props&&n.vnode.props.appear;const r=t.content.firstChild;A&&R.beforeEnter(r),g(r,t,n),e.el=t=r}if(d&&bt(e,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||d||A)&<((()=>{c&&Nr(c,n,e),A&&R.enter(t),d&&bt(e,null,n,"mounted")}),i),16&h&&(!u||!u.innerHTML&&!u.textContent)){let r=p(t.firstChild,e,t,n,i,a,s);while(r){Nn=!0;const t=r;r=r.nextSibling,l(t)}}else 8&h&&t.textContent!==e.children&&(Nn=!0,t.textContent=e.children)}return t.nextSibling},p=(t,e,r,o,i,a,s)=>{s=s||!!e.dynamicChildren;const l=e.children,c=l.length;for(let u=0;u{const{slotScopeIds:l}=e;l&&(o=o?o.concat(l):l);const f=s(t),h=p(a(t),e,f,n,r,o,i);return h&&kn(h)&&"]"===h.data?a(e.anchor=h):(Nn=!0,c(e.anchor=u("]"),f,h),h)},m=(t,e,r,o,i,c)=>{if(Nn=!0,e.el=null,c){const e=A(t);while(1){const n=a(t);if(!n||n===e)break;l(n)}}const u=a(t),f=s(t);return l(t),n(null,e,f,u,r,o,Ln(f),i),u},A=(t,e="[",n="]")=>{let r=0;while(t)if(t=a(t),t&&kn(t)&&(t.data===e&&r++,t.data===n)){if(0===r)return a(t);r--}return t},g=(t,e,n)=>{const r=e.parentNode;r&&r.replaceChild(t,e);let o=n;while(o)o.vnode.el===e&&(o.vnode.el=t,o.subTree.el=t),o=o.parent},v=t=>1===t.nodeType&&"template"===t.tagName.toLowerCase();return[f,h]}function xn(){}const Wn=lt;function Xn(t){return Vn(t)}function _n(t){return Vn(t,Tn)}function Vn(t,e){xn();const n=(0,o.E9)();n.__VUE__=!0;const{insert:i,remove:a,patchProp:s,createElement:l,createText:c,createComment:u,setText:f,setElementText:h,parentNode:d,nextSibling:p,setScopeId:R=o.dG,insertStaticContent:m}=t,A=(t,e,n,r=null,o=null,i=null,a=!1,s=null,l=!!e.dynamicChildren)=>{if(t===e)return;t&&!ur(t,e)&&(r=q(t),E(t,o,i,!0),t=null),-2===e.patchFlag&&(l=!1,e.dynamicChildren=null);const{type:c,ref:u,shapeFlag:f}=e;switch(c){case jn:g(t,e,n,r);break;case zn:v(t,e,n,r);break;case qn:null==t&&y(e,n,r,a);break;case Jn:_(t,e,n,r,o,i,a,s,l);break;default:1&f?w(t,e,n,r,o,i,a,s,l):6&f?V(t,e,n,r,o,i,a,s,l):(64&f||128&f)&&c.process(t,e,n,r,o,i,a,s,l,tt)}null!=u&&o&&Pn(u,t&&t.ref,i,e||t,!e)},g=(t,e,n,r)=>{if(null==t)i(e.el=c(e.children),n,r);else{const n=e.el=t.el;e.children!==t.children&&f(n,e.children)}},v=(t,e,n,r)=>{null==t?i(e.el=u(e.children||""),n,r):e.el=t.el},y=(t,e,n,r)=>{[t.el,t.anchor]=m(t.children,e,n,r,t.el,t.anchor)},b=({el:t,anchor:e},n,r)=>{let o;while(t&&t!==e)o=p(t),i(t,n,r),t=o;i(e,n,r)},O=({el:t,anchor:e})=>{let n;while(t&&t!==e)n=p(t),a(t),t=n;a(e)},w=(t,e,n,r,o,i,a,s,l)=>{a=a||"svg"===e.type,null==t?L(e,n,r,o,i,a,s,l):x(t,e,o,i,a,s,l)},L=(t,e,n,r,a,c,u,f)=>{let d,p;const{type:R,props:m,shapeFlag:A,transition:g,dirs:v}=t;if(d=t.el=l(t.type,c,m&&m.is,m),8&A?h(d,t.children):16&A&&T(t.children,d,null,r,a,c&&"foreignObject"!==R,u,f),v&&bt(t,null,r,"created"),k(d,t,t.scopeId,u,r),m){for(const e in m)"value"===e||(0,o.Gg)(e)||s(d,e,null,m[e],c,t.children,r,a,j);"value"in m&&s(d,"value",null,m.value),(p=m.onVnodeBeforeMount)&&Nr(p,r,t)}v&&bt(t,null,r,"beforeMount");const y=Un(a,g);y&&g.beforeEnter(d),i(d,e,n),((p=m&&m.onVnodeMounted)||y||v)&&Wn((()=>{p&&Nr(p,r,t),y&&g.enter(d),v&&bt(t,null,r,"mounted")}),a)},k=(t,e,n,r,o)=>{if(n&&R(t,n),r)for(let i=0;i{for(let c=l;c{const c=e.el=t.el;let{patchFlag:u,dynamicChildren:f,dirs:d}=e;u|=16&t.patchFlag;const p=t.props||o.kT,R=e.props||o.kT;let m;n&&Fn(n,!1),(m=R.onVnodeBeforeUpdate)&&Nr(m,n,e,t),d&&bt(e,t,n,"beforeUpdate"),n&&Fn(n,!0);const A=i&&"foreignObject"!==e.type;if(f?W(t.dynamicChildren,f,c,n,r,A,a):l||C(t,e,c,null,n,r,A,a,!1),u>0){if(16&u)X(c,e,p,R,n,r,i);else if(2&u&&p.class!==R.class&&s(c,"class",null,R.class,i),4&u&&s(c,"style",p.style,R.style,i),8&u){const o=e.dynamicProps;for(let e=0;e{m&&Nr(m,n,e,t),d&&bt(e,t,n,"updated")}),r)},W=(t,e,n,r,o,i,a)=>{for(let s=0;s{if(n!==r){if(n!==o.kT)for(const c in n)(0,o.Gg)(c)||c in r||s(t,c,n[c],null,l,e.children,i,a,j);for(const c in r){if((0,o.Gg)(c))continue;const u=r[c],f=n[c];u!==f&&"value"!==c&&s(t,c,f,u,l,e.children,i,a,j)}"value"in r&&s(t,"value",n.value,r.value)}},_=(t,e,n,r,o,a,s,l,u)=>{const f=e.el=t?t.el:c(""),h=e.anchor=t?t.anchor:c("");let{patchFlag:d,dynamicChildren:p,slotScopeIds:R}=e;R&&(l=l?l.concat(R):R),null==t?(i(f,n,r),i(h,n,r),T(e.children,n,h,o,a,s,l,u)):d>0&&64&d&&p&&t.dynamicChildren?(W(t.dynamicChildren,p,n,o,a,s,l),(null!=e.key||o&&e===o.subTree)&&Yn(t,e,!0)):C(t,e,n,h,o,a,s,l,u)},V=(t,e,n,r,o,i,a,s,l)=>{e.slotScopeIds=s,null==t?512&e.shapeFlag?o.ctx.activate(e,n,r,a,l):F(e,n,r,o,i,a,l):U(t,e,l)},F=(t,e,n,r,o,i,a)=>{const s=t.component=Tr(t,r,o);if(It(t)&&(s.ctx.renderer=tt),Qr(s),s.asyncDep){if(o&&o.registerDep(s,Y),!t.el){const t=s.subTree=mr(zn);v(null,t,e,n)}}else Y(s,t,e,n,o,i,a)},U=(t,e,n)=>{const r=e.component=t.component;if(J(t,e,n)){if(r.asyncDep&&!r.asyncResolved)return void I(r,e,n);r.next=e,S(r.update),r.update()}else e.el=t.el,r.vnode=e},Y=(t,e,n,i,a,s,l)=>{const c=()=>{if(t.isMounted){let e,{next:n,bu:r,u:i,parent:c,vnode:u}=t,f=n;0,Fn(t,!1),n?(n.el=u.el,I(t,n,l)):n=u,r&&(0,o.ir)(r),(e=n.props&&n.props.onVnodeBeforeUpdate)&&Nr(e,c,n,u),Fn(t,!0);const h=H(t);0;const p=t.subTree;t.subTree=h,A(p,h,d(p.el),q(p),t,a,s),n.el=h.el,null===f&&z(t,h.el),i&&Wn(i,a),(e=n.props&&n.props.onVnodeUpdated)&&Wn((()=>Nr(e,c,n,u)),a)}else{let r;const{el:l,props:c}=e,{bm:u,m:f,parent:h}=t,d=Ft(e);if(Fn(t,!1),u&&(0,o.ir)(u),!d&&(r=c&&c.onVnodeBeforeMount)&&Nr(r,h,e),Fn(t,!0),l&&nt){const n=()=>{t.subTree=H(t),nt(l,t.subTree,t,a,null)};d?e.type.__asyncLoader().then((()=>!t.isUnmounted&&n())):n()}else{0;const r=t.subTree=H(t);0,A(null,r,n,i,t,a,s),e.el=r.el}if(f&&Wn(f,a),!d&&(r=c&&c.onVnodeMounted)){const t=e;Wn((()=>Nr(r,h,t)),a)}(256&e.shapeFlag||h&&Ft(h.vnode)&&256&h.vnode.shapeFlag)&&t.a&&Wn(t.a,a),t.isMounted=!0,e=n=i=null}},u=t.effect=new r.qq(c,(()=>M(f)),t.scope),f=t.update=()=>u.run();f.id=t.uid,Fn(t,!0),f()},I=(t,e,n)=>{e.component=t;const o=t.vnode.props;t.vnode=e,t.next=null,fn(t,e.props,o,n),wn(t,e.children,n),(0,r.Jd)(),P(),(0,r.lk)()},C=(t,e,n,r,o,i,a,s,l=!1)=>{const c=t&&t.children,u=t?t.shapeFlag:0,f=e.children,{patchFlag:d,shapeFlag:p}=e;if(d>0){if(128&d)return void Q(c,f,n,r,o,i,a,s,l);if(256&d)return void Z(c,f,n,r,o,i,a,s,l)}8&p?(16&u&&j(c,o,i),f!==c&&h(n,f)):16&u?16&p?Q(c,f,n,r,o,i,a,s,l):j(c,o,i,!0):(8&u&&h(n,""),16&p&&T(f,n,r,o,i,a,s,l))},Z=(t,e,n,r,i,a,s,l,c)=>{t=t||o.Z6,e=e||o.Z6;const u=t.length,f=e.length,h=Math.min(u,f);let d;for(d=0;df?j(t,i,a,!0,!1,h):T(e,n,r,i,a,s,l,c,h)},Q=(t,e,n,r,i,a,s,l,c)=>{let u=0;const f=e.length;let h=t.length-1,d=f-1;while(u<=h&&u<=d){const r=t[u],o=e[u]=c?Sr(e[u]):Or(e[u]);if(!ur(r,o))break;A(r,o,n,null,i,a,s,l,c),u++}while(u<=h&&u<=d){const r=t[h],o=e[d]=c?Sr(e[d]):Or(e[d]);if(!ur(r,o))break;A(r,o,n,null,i,a,s,l,c),h--,d--}if(u>h){if(u<=d){const t=d+1,o=td)while(u<=h)E(t[u],i,a,!0),u++;else{const p=u,R=u,m=new Map;for(u=R;u<=d;u++){const t=e[u]=c?Sr(e[u]):Or(e[u]);null!=t.key&&m.set(t.key,u)}let g,v=0;const y=d-R+1;let b=!1,M=0;const O=new Array(y);for(u=0;u=y){E(r,i,a,!0);continue}let o;if(null!=r.key)o=m.get(r.key);else for(g=R;g<=d;g++)if(0===O[g-R]&&ur(r,e[g])){o=g;break}void 0===o?E(r,i,a,!0):(O[o-R]=u+1,o>=M?M=o:b=!0,A(r,e[o],n,null,i,a,s,l,c),v++)}const S=b?In(O):o.Z6;for(g=S.length-1,u=y-1;u>=0;u--){const t=R+u,o=e[t],h=t+1{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=t;if(6&u)return void K(t.component.subTree,e,n,r);if(128&u)return void t.suspense.move(e,n,r);if(64&u)return void s.move(t,e,n,tt);if(s===Jn){i(a,e,n);for(let t=0;tl.enter(a)),o);else{const{leave:t,delayLeave:r,afterLeave:o}=l,s=()=>i(a,e,n),c=()=>{t(a,(()=>{s(),o&&o()}))};r?r(a,s,c):c()}else i(a,e,n)},E=(t,e,n,r=!1,o=!1)=>{const{type:i,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:f,dirs:h}=t;if(null!=s&&Pn(s,null,n,t,!0),256&u)return void e.ctx.deactivate(t);const d=1&u&&h,p=!Ft(t);let R;if(p&&(R=a&&a.onVnodeBeforeUnmount)&&Nr(R,e,t),6&u)B(t.component,n,r);else{if(128&u)return void t.suspense.unmount(n,r);d&&bt(t,null,e,"beforeUnmount"),64&u?t.type.remove(t,e,n,o,tt,r):c&&(i!==Jn||f>0&&64&f)?j(c,e,n,!1,!0):(i===Jn&&384&f||!o&&16&u)&&j(l,e,n),r&&G(t)}(p&&(R=a&&a.onVnodeUnmounted)||d)&&Wn((()=>{R&&Nr(R,e,t),d&&bt(t,null,e,"unmounted")}),n)},G=t=>{const{type:e,el:n,anchor:r,transition:o}=t;if(e===Jn)return void D(n,r);if(e===qn)return void O(t);const i=()=>{a(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&t.shapeFlag&&o&&!o.persisted){const{leave:e,delayLeave:r}=o,a=()=>e(n,i);r?r(t.el,i,a):a()}else i()},D=(t,e)=>{let n;while(t!==e)n=p(t),a(t),t=n;a(e)},B=(t,e,n)=>{const{bum:r,scope:i,update:a,subTree:s,um:l}=t;r&&(0,o.ir)(r),i.stop(),a&&(a.active=!1,E(s,t,e,n)),l&&Wn(l,e),Wn((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},j=(t,e,n,r=!1,o=!1,i=0)=>{for(let a=i;a6&t.shapeFlag?q(t.component.subTree):128&t.shapeFlag?t.suspense.next():p(t.anchor||t.el),$=(t,e,n)=>{null==t?e._vnode&&E(e._vnode,null,null,!0):A(e._vnode||null,t,e,null,null,null,n),P(),N(),e._vnode=t},tt={p:A,um:E,m:K,r:G,mt:F,mc:T,pc:C,pbc:W,n:q,o:t};let et,nt;return e&&([et,nt]=e(tt)),{render:$,hydrate:et,createApp:on($,et)}}function Fn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Un(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Yn(t,e,n=!1){const r=t.children,i=e.children;if((0,o.kJ)(r)&&(0,o.kJ)(i))for(let o=0;o>1,t[n[s]]0&&(e[r]=n[i-1]),n[i]=r)}}i=n.length,a=n[i-1];while(i-- >0)n[i]=a,a=e[a];return n}const Cn=t=>t.__isTeleport,Zn=t=>t&&(t.disabled||""===t.disabled),Qn=t=>"undefined"!==typeof SVGElement&&t instanceof SVGElement,Kn=(t,e)=>{const n=t&&t.to;if((0,o.HD)(n)){if(e){const t=e(n);return t}return null}return n},En={__isTeleport:!0,process(t,e,n,r,o,i,a,s,l,c){const{mc:u,pc:f,pbc:h,o:{insert:d,querySelector:p,createText:R,createComment:m}}=c,A=Zn(e.props);let{shapeFlag:g,children:v,dynamicChildren:y}=e;if(null==t){const t=e.el=R(""),c=e.anchor=R("");d(t,n,r),d(c,n,r);const f=e.target=Kn(e.props,p),h=e.targetAnchor=R("");f&&(d(h,f),a=a||Qn(f));const m=(t,e)=>{16&g&&u(v,t,e,o,i,a,s,l)};A?m(n,c):f&&m(f,h)}else{e.el=t.el;const r=e.anchor=t.anchor,u=e.target=t.target,d=e.targetAnchor=t.targetAnchor,R=Zn(t.props),m=R?n:u,g=R?r:d;if(a=a||Qn(u),y?(h(t.dynamicChildren,y,m,o,i,a,s),Yn(t,e,!0)):l||f(t,e,m,g,o,i,a,s,!1),A)R?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Hn(e,n,r,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=Kn(e.props,p);t&&Hn(e,t,null,c,0)}else R&&Hn(e,u,d,c,1)}Bn(e)},remove(t,e,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:f,props:h}=t;if(f&&i(u),a&&i(c),16&s){const t=a||!Zn(h);for(let r=0;r0?tr||o.Z6:null,nr(),or>0&&tr&&tr.push(t),t}function sr(t,e,n,r,o,i){return ar(Rr(t,e,n,r,o,i,!0))}function lr(t,e,n,r,o){return ar(mr(t,e,n,r,o,!0))}function cr(t){return!!t&&!0===t.__v_isVNode}function ur(t,e){return t.type===e.type&&t.key===e.key}function fr(t){rr=t}const hr="__vInternal",dr=({key:t})=>null!=t?t:null,pr=({ref:t,ref_key:e,ref_for:n})=>("number"===typeof t&&(t=""+t),null!=t?(0,o.HD)(t)||(0,r.dq)(t)||(0,o.mf)(t)?{i:Y,r:t,k:e,f:!!n}:t:null);function Rr(t,e=null,n=null,r=0,i=null,a=(t===Jn?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&dr(e),ref:e&&pr(e),scopeId:I,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Y};return l?(wr(c,n),128&a&&t.normalize(c)):n&&(c.shapeFlag|=(0,o.HD)(n)?8:16),or>0&&!s&&tr&&(c.patchFlag>0||6&a)&&32!==c.patchFlag&&tr.push(c),c}const mr=Ar;function Ar(t,e=null,n=null,i=0,a=null,s=!1){if(t&&t!==ue||(t=zn),cr(t)){const r=vr(t,e,!0);return n&&wr(r,n),or>0&&!s&&tr&&(6&r.shapeFlag?tr[tr.indexOf(t)]=r:tr.push(r)),r.patchFlag|=-2,r}if(qr(t)&&(t=t.__vccOpts),e){e=gr(e);let{class:t,style:n}=e;t&&!(0,o.HD)(t)&&(e.class=(0,o.C_)(t)),(0,o.Kn)(n)&&((0,r.X3)(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),e.style=(0,o.j5)(n))}const l=(0,o.HD)(t)?1:q(t)?128:Cn(t)?64:(0,o.Kn)(t)?4:(0,o.mf)(t)?2:0;return Rr(t,e,n,i,a,l,s,!0)}function gr(t){return t?(0,r.X3)(t)||hr in t?(0,o.l7)({},t):t:null}function vr(t,e,n=!1){const{props:r,ref:i,patchFlag:a,children:s}=t,l=e?Pr(r||{},e):r,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&dr(l),ref:e&&e.ref?n&&i?(0,o.kJ)(i)?i.concat(pr(e)):[i,pr(e)]:pr(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Jn?-1===a?16:16|a:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&vr(t.ssContent),ssFallback:t.ssFallback&&vr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c}function yr(t=" ",e=0){return mr(jn,null,t,e)}function br(t,e){const n=mr(qn,null,t);return n.staticCount=e,n}function Mr(t="",e=!1){return e?(er(),lr(zn,null,t)):mr(zn,null,t)}function Or(t){return null==t||"boolean"===typeof t?mr(zn):(0,o.kJ)(t)?mr(Jn,null,t.slice()):"object"===typeof t?Sr(t):mr(jn,null,String(t))}function Sr(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:vr(t)}function wr(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if((0,o.kJ)(e))n=16;else if("object"===typeof e){if(65&r){const n=e.default;return void(n&&(n._c&&(n._d=!1),wr(t,n()),n._c&&(n._d=!0)))}{n=32;const r=e._;r||hr in e?3===r&&Y&&(1===Y.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=Y}}else(0,o.mf)(e)?(e={default:e,_ctx:Y},n=32):(e=String(e),64&r?(n=16,e=[yr(e)]):n=8);t.children=e,t.shapeFlag|=n}function Pr(...t){const e={};for(let n=0;nxr||Y;let Xr,_r,Vr="__VUE_INSTANCE_SETTERS__";(_r=(0,o.E9)()[Vr])||(_r=(0,o.E9)()[Vr]=[]),_r.push((t=>xr=t)),Xr=t=>{_r.length>1?_r.forEach((e=>e(t))):_r[0](t)};const Fr=t=>{Xr(t),t.scope.on()},Ur=()=>{xr&&xr.scope.off(),Xr(null)};function Yr(t){return 4&t.vnode.shapeFlag}let Ir,Cr,Zr=!1;function Qr(t,e=!1){Zr=e;const{props:n,children:r}=t.vnode,o=Yr(t);un(t,n,o,e),Sn(t,r);const i=o?Kr(t,e):void 0;return Zr=!1,i}function Kr(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=(0,r.Xl)(new Proxy(t.ctx,Oe));const{setup:i}=n;if(i){const n=t.setupContext=i.length>1?Jr(t):null;Fr(t),(0,r.Jd)();const a=s(i,t,0,[t.props,n]);if((0,r.lk)(),Ur(),(0,o.tI)(a)){if(a.then(Ur,Ur),e)return a.then((n=>{Er(t,n,e)})).catch((e=>{c(e,t,0)}));t.asyncDep=a}else Er(t,a,e)}else Dr(t,e)}function Er(t,e,n){(0,o.mf)(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:(0,o.Kn)(e)&&(t.setupState=(0,r.WL)(e)),Dr(t,n)}function Hr(t){Ir=t,Cr=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Se))}}const Gr=()=>!Ir;function Dr(t,e,n){const i=t.type;if(!t.render){if(!e&&Ir&&!i.render){const e=i.template||Ge(t).template;if(e){0;const{isCustomElement:n,compilerOptions:r}=t.appContext.config,{delimiters:a,compilerOptions:s}=i,l=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:a},r),s);i.render=Ir(e,l)}}t.render=i.render||o.dG,Cr&&Cr(t)}Fr(t),(0,r.Jd)();try{Qe(t)}finally{(0,r.lk)(),Ur()}}function Br(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return(0,r.j)(t,"get","$attrs"),e[n]}}))}function Jr(t){const e=e=>{t.exposed=e||{}};return{get attrs(){return Br(t)},slots:t.slots,emit:t.emit,expose:e}}function jr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(t.exposed)),{get(e,n){return n in e?e[n]:n in be?be[n](t):void 0},has(t,e){return e in t||e in be}}))}function zr(t,e=!0){return(0,o.mf)(t)?t.displayName||t.name:t.name||e&&t.__name}function qr(t){return(0,o.mf)(t)&&"__vccOpts"in t}const $r=(t,e)=>(0,r.Fl)(t,e,Zr);function to(t,e,n){const r=arguments.length;return 2===r?(0,o.Kn)(e)&&!(0,o.kJ)(e)?cr(e)?mr(t,null,[e]):mr(t,e):mr(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&cr(n)&&(n=[n]),mr(t,e,n))}const eo=Symbol.for("v-scx"),no=()=>{{const t=ln(eo);return t}};function ro(){return void 0}function oo(t,e,n,r){const o=n[r];if(o&&io(o,t))return o;const i=e();return i.memo=t.slice(),n[r]=i}function io(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let r=0;r0&&tr&&tr.push(t),!0}const ao="3.3.7",so={createComponentInstance:Tr,setupComponent:Qr,renderComponentRoot:H,setCurrentRenderingInstance:C,isVNode:cr,normalizeVNode:Or},lo=so,co=null,uo=null},9963:function(t,e,n){"use strict";n.d(e,{$d:function(){return r.$d},$y:function(){return r.$y},Ah:function(){return it},B:function(){return r.B},BK:function(){return r.BK},Bj:function(){return r.Bj},Bz:function(){return r.Bz},C3:function(){return r.C3},C_:function(){return r.C_},Cn:function(){return r.Cn},D2:function(){return Qt},EB:function(){return r.EB},EM:function(){return r.EM},Eo:function(){return r.Eo},F4:function(){return r.F4},F8:function(){return W},FN:function(){return r.FN},Fl:function(){return r.Fl},G:function(){return r.G},G2:function(){return kt},Gn:function(){return r.Gn},HX:function(){return r.HX},HY:function(){return r.HY},Ho:function(){return r.Ho},IU:function(){return r.IU},JJ:function(){return r.JJ},Jd:function(){return r.Jd},KU:function(){return r.KU},Ko:function(){return r.Ko},LL:function(){return r.LL},MW:function(){return ot},MX:function(){return r.MX},Mr:function(){return r.Mr},Nd:function(){return te},Nv:function(){return r.Nv},OT:function(){return r.OT},Ob:function(){return r.Ob},P$:function(){return r.P$},PG:function(){return r.PG},Q2:function(){return r.Q2},Q6:function(){return r.Q6},RC:function(){return r.RC},Rh:function(){return r.Rh},Rr:function(){return r.Rr},S3:function(){return r.S3},SK:function(){return r.Ah},SU:function(){return r.SU},Tn:function(){return r.Tn},U2:function(){return r.U2},Uc:function(){return r.Uc},Uk:function(){return r.Uk},Um:function(){return r.Um},Us:function(){return r.Us},Vf:function(){return r.Vf},Vh:function(){return r.Vh},W3:function(){return At},WI:function(){return r.WI},WL:function(){return r.WL},WY:function(){return r.WY},Wl:function(){return r.Wl},Wm:function(){return r.Wm},Wu:function(){return r.Wu},X3:function(){return r.X3},XI:function(){return r.XI},Xl:function(){return r.Xl},Xn:function(){return r.Xn},Y1:function(){return r.Y1},Y3:function(){return r.Y3},Y8:function(){return r.Y8},YP:function(){return r.YP},YS:function(){return r.YS},YZ:function(){return _t},Yq:function(){return r.Yq},Yu:function(){return r.Yu},ZB:function(){return Jt},ZK:function(){return r.ZK},ZM:function(){return r.ZM},Zq:function(){return r.Zq},_:function(){return r._},_A:function(){return r._A},a2:function(){return st},aZ:function(){return r.aZ},b9:function(){return r.b9},bM:function(){return Tt},bT:function(){return r.bT},bv:function(){return r.bv},cE:function(){return r.cE},d1:function(){return r.d1},dD:function(){return r.dD},dG:function(){return r.dG},dl:function(){return r.dl},dq:function(){return r.dq},e8:function(){return Nt},ec:function(){return r.ec},eq:function(){return r.eq},f3:function(){return r.f3},fb:function(){return lt},h:function(){return r.h},hR:function(){return r.hR},i8:function(){return r.i8},iD:function(){return r.iD},iH:function(){return r.iH},iM:function(){return Ct},ic:function(){return r.ic},j4:function(){return r.j4},j5:function(){return r.j5},kC:function(){return r.kC},kq:function(){return r.kq},l1:function(){return r.l1},lA:function(){return r.lA},lR:function(){return r.lR},m0:function(){return r.m0},mW:function(){return r.mW},mv:function(){return r.mv},mx:function(){return r.mx},n4:function(){return r.n4},nJ:function(){return r.nJ},nK:function(){return r.nK},nQ:function(){return r.nQ},nZ:function(){return r.nZ},nr:function(){return Pt},oR:function(){return r.oR},of:function(){return r.of},p1:function(){return r.p1},qG:function(){return r.qG},qZ:function(){return r.qZ},qb:function(){return r.qb},qj:function(){return r.qj},qq:function(){return r.qq},ri:function(){return jt},ry:function(){return r.ry},sT:function(){return r.sT},sY:function(){return Bt},se:function(){return r.se},sj:function(){return ct},sv:function(){return r.sv},tT:function(){return r.tT},uE:function(){return r.uE},uT:function(){return d},u_:function(){return r.u_},up:function(){return r.up},vl:function(){return r.vl},vr:function(){return zt},vs:function(){return r.vs},w5:function(){return r.w5},wF:function(){return r.wF},wg:function(){return r.wg},wy:function(){return r.wy},xv:function(){return r.xv},yT:function(){return r.yT},yX:function(){return r.yX},yb:function(){return r.MW},zw:function(){return r.zw}});var r=n(6252),o=n(3577),i=n(2262);const a="http://www.w3.org/2000/svg",s="undefined"!==typeof document?document:null,l=s&&s.createElement("template"),c={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const o=e?s.createElementNS(a,t):s.createElement(t,n?{is:n}:void 0);return"select"===t&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:t=>s.createTextNode(t),createComment:t=>s.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>s.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,o,i){const a=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling)){while(1)if(e.insertBefore(o.cloneNode(!0),n),o===i||!(o=o.nextSibling))break}else{l.innerHTML=r?`${t}`:t;const o=l.content;if(r){const t=o.firstChild;while(t.firstChild)o.appendChild(t.firstChild);o.removeChild(t)}e.insertBefore(o,n)}return[a?a.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},u="transition",f="animation",h=Symbol("_vtc"),d=(t,{slots:e})=>(0,r.h)(r.P$,g(t),e);d.displayName="Transition";const p={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},R=d.props=(0,o.l7)({},r.nJ,p),m=(t,e=[])=>{(0,o.kJ)(t)?t.forEach((t=>t(...e))):t&&t(...e)},A=t=>!!t&&((0,o.kJ)(t)?t.some((t=>t.length>1)):t.length>1);function g(t){const e={};for(const o in t)o in p||(e[o]=t[o]);if(!1===t.css)return e;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=s,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:R=`${n}-leave-to`}=t,g=v(i),y=g&&g[0],S=g&&g[1],{onBeforeEnter:P,onEnter:N,onEnterCancelled:L,onLeave:T,onLeaveCancelled:x,onBeforeAppear:W=P,onAppear:X=N,onAppearCancelled:_=L}=e,V=(t,e,n)=>{M(t,e?f:l),M(t,e?u:s),n&&n()},F=(t,e)=>{t._isLeaving=!1,M(t,h),M(t,R),M(t,d),e&&e()},U=t=>(e,n)=>{const o=t?X:N,i=()=>V(e,t,n);m(o,[e,i]),O((()=>{M(e,t?c:a),b(e,t?f:l),A(o)||w(e,r,y,i)}))};return(0,o.l7)(e,{onBeforeEnter(t){m(P,[t]),b(t,a),b(t,s)},onBeforeAppear(t){m(W,[t]),b(t,c),b(t,u)},onEnter:U(!1),onAppear:U(!0),onLeave(t,e){t._isLeaving=!0;const n=()=>F(t,e);b(t,h),k(),b(t,d),O((()=>{t._isLeaving&&(M(t,h),b(t,R),A(T)||w(t,r,S,n))})),m(T,[t,n])},onEnterCancelled(t){V(t,!1),m(L,[t])},onAppearCancelled(t){V(t,!0),m(_,[t])},onLeaveCancelled(t){F(t),m(x,[t])}})}function v(t){if(null==t)return null;if((0,o.Kn)(t))return[y(t.enter),y(t.leave)];{const e=y(t);return[e,e]}}function y(t){const e=(0,o.He)(t);return e}function b(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t[h]||(t[h]=new Set)).add(e)}function M(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const n=t[h];n&&(n.delete(e),n.size||(t[h]=void 0))}function O(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let S=0;function w(t,e,n,r){const o=t._endId=++S,i=()=>{o===t._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=P(t,e);if(!a)return r();const c=a+"end";let u=0;const f=()=>{t.removeEventListener(c,h),i()},h=e=>{e.target===t&&++u>=l&&f()};setTimeout((()=>{u(n[t]||"").split(", "),o=r(`${u}Delay`),i=r(`${u}Duration`),a=N(o,i),s=r(`${f}Delay`),l=r(`${f}Duration`),c=N(s,l);let h=null,d=0,p=0;e===u?a>0&&(h=u,d=a,p=i.length):e===f?c>0&&(h=f,d=c,p=l.length):(d=Math.max(a,c),h=d>0?a>c?u:f:null,p=h?h===u?i.length:l.length:0);const R=h===u&&/\b(transform|all)(,|$)/.test(r(`${u}Property`).toString());return{type:h,timeout:d,propCount:p,hasTransform:R}}function N(t,e){while(t.lengthL(e)+L(t[n]))))}function L(t){return"auto"===t?0:1e3*Number(t.slice(0,-1).replace(",","."))}function k(){return document.body.offsetHeight}function T(t,e,n){const r=t[h];r&&(e=(e?[e,...r]:[...r]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const x=Symbol("_vod"),W={beforeMount(t,{value:e},{transition:n}){t[x]="none"===t.style.display?"":t.style.display,n&&e?n.beforeEnter(t):X(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!==!n&&(r?e?(r.beforeEnter(t),X(t,!0),r.enter(t)):r.leave(t,(()=>{X(t,!1)})):X(t,e))},beforeUnmount(t,{value:e}){X(t,e)}};function X(t,e){t.style.display=e?t[x]:"none"}function _(){W.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}function V(t,e,n){const r=t.style,i=(0,o.HD)(n);if(n&&!i){if(e&&!(0,o.HD)(e))for(const t in e)null==n[t]&&U(r,t,"");for(const t in n)U(r,t,n[t])}else{const o=r.display;i?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),x in t&&(r.display=o)}}const F=/\s*!important$/;function U(t,e,n){if((0,o.kJ)(n))n.forEach((n=>U(t,e,n)));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=C(t,e);F.test(n)?t.setProperty((0,o.rs)(r),n.replace(F,""),"important"):t[r]=n}}const Y=["Webkit","Moz","ms"],I={};function C(t,e){const n=I[e];if(n)return n;let r=(0,o._A)(e);if("filter"!==r&&r in t)return I[e]=r;r=(0,o.kC)(r);for(let o=0;oj||(z.then((()=>j=0)),j=Date.now());function $(t,e){const n=t=>{if(t._vts){if(t._vts<=n.attached)return}else t._vts=Date.now();(0,r.$d)(tt(t,n.value),e,5,[t])};return n.value=t,n.attached=q(),n}function tt(t,e){if((0,o.kJ)(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}const et=/^on[a-z]/,nt=(t,e,n,r,i=!1,a,s,l,c)=>{"class"===e?T(t,r,i):"style"===e?V(t,n,r):(0,o.F7)(e)?(0,o.tR)(e)||D(t,e,n,r,s):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):rt(t,e,r,i))?K(t,e,r,a,s,l,c):("true-value"===e?t._trueValue=r:"false-value"===e&&(t._falseValue=r),Q(t,e,r,i))};function rt(t,e,n,r){return r?"innerHTML"===e||"textContent"===e||!!(e in t&&et.test(e)&&(0,o.mf)(n)):"spellcheck"!==e&&"draggable"!==e&&"translate"!==e&&("form"!==e&&(("list"!==e||"INPUT"!==t.tagName)&&(("type"!==e||"TEXTAREA"!==t.tagName)&&((!et.test(e)||!(0,o.HD)(n))&&e in t))))} -/*! #__NO_SIDE_EFFECTS__ */function ot(t,e){const n=(0,r.aZ)(t);class o extends st{constructor(t){super(n,t,e)}}return o.def=n,o} -/*! #__NO_SIDE_EFFECTS__ */const it=t=>ot(t,Jt),at="undefined"!==typeof HTMLElement?HTMLElement:class{};class st extends at{constructor(t,e={},n){super(),this._def=t,this._props=e,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),(0,r.Y3)((()=>{this._connected||(Bt(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const e of t)this._setAttr(e.attributeName)})),this._ob.observe(this,{attributes:!0});const t=(t,e=!1)=>{const{props:n,styles:r}=t;let i;if(n&&!(0,o.kJ)(n))for(const a in n){const t=n[a];(t===Number||t&&t.type===Number)&&(a in this._props&&(this._props[a]=(0,o.He)(this._props[a])),(i||(i=Object.create(null)))[(0,o._A)(a)]=!0)}this._numberProps=i,e&&this._resolveProps(t),this._applyStyles(r),this._update()},e=this._def.__asyncLoader;e?e().then((e=>t(e,!0))):t(this._def)}_resolveProps(t){const{props:e}=t,n=(0,o.kJ)(e)?e:Object.keys(e||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of n.map(o._A))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(t){this._setProp(r,t)}})}_setAttr(t){let e=this.getAttribute(t);const n=(0,o._A)(t);this._numberProps&&this._numberProps[n]&&(e=(0,o.He)(e)),this._setProp(n,e,!1)}_getProp(t){return this._props[t]}_setProp(t,e,n=!0,r=!0){e!==this._props[t]&&(this._props[t]=e,r&&this._instance&&this._update(),n&&(!0===e?this.setAttribute((0,o.rs)(t),""):"string"===typeof e||"number"===typeof e?this.setAttribute((0,o.rs)(t),e+""):e||this.removeAttribute((0,o.rs)(t))))}_update(){Bt(this._createVNode(),this.shadowRoot)}_createVNode(){const t=(0,r.Wm)(this._def,(0,o.l7)({},this._props));return this._instance||(t.ce=t=>{this._instance=t,t.isCE=!0;const e=(t,e)=>{this.dispatchEvent(new CustomEvent(t,{detail:e}))};t.emit=(t,...n)=>{e(t,n),(0,o.rs)(t)!==t&&e((0,o.rs)(t),n)};let n=this;while(n=n&&(n.parentNode||n.host))if(n instanceof st){t.parent=n._instance,t.provides=n._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach((t=>{const e=document.createElement("style");e.textContent=t,this.shadowRoot.appendChild(e)}))}}function lt(t="$style"){{const e=(0,r.FN)();if(!e)return o.kT;const n=e.type.__cssModules;if(!n)return o.kT;const i=n[t];return i||o.kT}}function ct(t){const e=(0,r.FN)();if(!e)return;const n=e.ut=(n=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach((t=>ft(t,n)))},o=()=>{const r=t(e.proxy);ut(e.subTree,r),n(r)};(0,r.Rh)(o),(0,r.bv)((()=>{const t=new MutationObserver(o);t.observe(e.subTree.el.parentNode,{childList:!0}),(0,r.Ah)((()=>t.disconnect()))}))}function ut(t,e){if(128&t.shapeFlag){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{ut(n.activeBranch,e)}))}while(t.component)t=t.component.subTree;if(1&t.shapeFlag&&t.el)ft(t.el,e);else if(t.type===r.HY)t.children.forEach((t=>ut(t,e)));else if(t.type===r.qG){let{el:n,anchor:r}=t;while(n){if(ft(n,e),n===r)break;n=n.nextSibling}}}function ft(t,e){if(1===t.nodeType){const n=t.style;for(const t in e)n.setProperty(`--${t}`,e[t])}}const ht=new WeakMap,dt=new WeakMap,pt=Symbol("_moveCb"),Rt=Symbol("_enterCb"),mt={name:"TransitionGroup",props:(0,o.l7)({},R,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=(0,r.FN)(),o=(0,r.Y8)();let a,s;return(0,r.ic)((()=>{if(!a.length)return;const e=t.moveClass||`${t.name||"v"}-move`;if(!bt(a[0].el,n.vnode.el,e))return;a.forEach(gt),a.forEach(vt);const r=a.filter(yt);k(),r.forEach((t=>{const n=t.el,r=n.style;b(n,e),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[pt]=t=>{t&&t.target!==n||t&&!/transform$/.test(t.propertyName)||(n.removeEventListener("transitionend",o),n[pt]=null,M(n,e))};n.addEventListener("transitionend",o)}))})),()=>{const l=(0,i.IU)(t),c=g(l);let u=l.tag||r.HY;a=s,s=e.default?(0,r.Q6)(e.default()):[];for(let t=0;t{t.split(/\s+/).forEach((t=>t&&r.classList.remove(t)))})),n.split(/\s+/).forEach((t=>t&&r.classList.add(t))),r.style.display="none";const i=1===e.nodeType?e:e.parentNode;i.appendChild(r);const{hasTransform:a}=P(r);return i.removeChild(r),a}const Mt=t=>{const e=t.props["onUpdate:modelValue"]||!1;return(0,o.kJ)(e)?t=>(0,o.ir)(e,t):e};function Ot(t){t.target.composing=!0}function St(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const wt=Symbol("_assign"),Pt={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[wt]=Mt(i);const a=r||i.props&&"number"===i.props.type;E(t,e?"change":"input",(e=>{if(e.target.composing)return;let r=t.value;n&&(r=r.trim()),a&&(r=(0,o.h5)(r)),t[wt](r)})),n&&E(t,"change",(()=>{t.value=t.value.trim()})),e||(E(t,"compositionstart",Ot),E(t,"compositionend",St),E(t,"change",St))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:i}},a){if(t[wt]=Mt(a),t.composing)return;if(document.activeElement===t&&"range"!==t.type){if(n)return;if(r&&t.value.trim()===e)return;if((i||"number"===t.type)&&(0,o.h5)(t.value)===e)return}const s=null==e?"":e;t.value!==s&&(t.value=s)}},Nt={deep:!0,created(t,e,n){t[wt]=Mt(n),E(t,"change",(()=>{const e=t._modelValue,n=Wt(t),r=t.checked,i=t[wt];if((0,o.kJ)(e)){const t=(0,o.hq)(e,n),a=-1!==t;if(r&&!a)i(e.concat(n));else if(!r&&a){const n=[...e];n.splice(t,1),i(n)}}else if((0,o.DM)(e)){const t=new Set(e);r?t.add(n):t.delete(n),i(t)}else i(Xt(t,r))}))},mounted:Lt,beforeUpdate(t,e,n){t[wt]=Mt(n),Lt(t,e,n)}};function Lt(t,{value:e,oldValue:n},r){t._modelValue=e,(0,o.kJ)(e)?t.checked=(0,o.hq)(e,r.props.value)>-1:(0,o.DM)(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=(0,o.WV)(e,Xt(t,!0)))}const kt={created(t,{value:e},n){t.checked=(0,o.WV)(e,n.props.value),t[wt]=Mt(n),E(t,"change",(()=>{t[wt](Wt(t))}))},beforeUpdate(t,{value:e,oldValue:n},r){t[wt]=Mt(r),e!==n&&(t.checked=(0,o.WV)(e,r.props.value))}},Tt={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=(0,o.DM)(e);E(t,"change",(()=>{const e=Array.prototype.filter.call(t.options,(t=>t.selected)).map((t=>n?(0,o.h5)(Wt(t)):Wt(t)));t[wt](t.multiple?i?new Set(e):e:e[0])})),t[wt]=Mt(r)},mounted(t,{value:e}){xt(t,e)},beforeUpdate(t,e,n){t[wt]=Mt(n)},updated(t,{value:e}){xt(t,e)}};function xt(t,e){const n=t.multiple;if(!n||(0,o.kJ)(e)||(0,o.DM)(e)){for(let r=0,i=t.options.length;r-1:i.selected=e.has(a);else if((0,o.WV)(Wt(i),e))return void(t.selectedIndex!==r&&(t.selectedIndex=r))}n||-1===t.selectedIndex||(t.selectedIndex=-1)}}function Wt(t){return"_value"in t?t._value:t.value}function Xt(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const _t={created(t,e,n){Ft(t,e,n,null,"created")},mounted(t,e,n){Ft(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){Ft(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){Ft(t,e,n,r,"updated")}};function Vt(t,e){switch(t){case"SELECT":return Tt;case"TEXTAREA":return Pt;default:switch(e){case"checkbox":return Nt;case"radio":return kt;default:return Pt}}}function Ft(t,e,n,r,o){const i=Vt(t.tagName,n.props&&n.props.type),a=i[o];a&&a(t,e,n,r)}function Ut(){Pt.getSSRProps=({value:t})=>({value:t}),kt.getSSRProps=({value:t},e)=>{if(e.props&&(0,o.WV)(e.props.value,t))return{checked:!0}},Nt.getSSRProps=({value:t},e)=>{if((0,o.kJ)(t)){if(e.props&&(0,o.hq)(t,e.props.value)>-1)return{checked:!0}}else if((0,o.DM)(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},_t.getSSRProps=(t,e)=>{if("string"!==typeof e.type)return;const n=Vt(e.type.toUpperCase(),e.props&&e.props.type);return n.getSSRProps?n.getSSRProps(t,e):void 0}}const Yt=["ctrl","shift","alt","meta"],It={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>Yt.some((n=>t[`${n}Key`]&&!e.includes(n)))},Ct=(t,e)=>(n,...r)=>{for(let t=0;tn=>{if(!("key"in n))return;const r=(0,o.rs)(n.key);return e.some((t=>t===r||Zt[t]===r))?t(n):void 0},Kt=(0,o.l7)({patchProp:nt},c);let Et,Ht=!1;function Gt(){return Et||(Et=(0,r.Us)(Kt))}function Dt(){return Et=Ht?Et:(0,r.Eo)(Kt),Ht=!0,Et}const Bt=(...t)=>{Gt().render(...t)},Jt=(...t)=>{Dt().hydrate(...t)},jt=(...t)=>{const e=Gt().createApp(...t);const{mount:n}=e;return e.mount=t=>{const r=qt(t);if(!r)return;const i=e._component;(0,o.mf)(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},e},zt=(...t)=>{const e=Dt().createApp(...t);const{mount:n}=e;return e.mount=t=>{const e=qt(t);if(e)return n(e,!0,e instanceof SVGElement)},e};function qt(t){if((0,o.HD)(t)){const e=document.querySelector(t);return e}return t}let $t=!1;const te=()=>{$t||($t=!0,Ut(),_())}},3577:function(t,e,n){"use strict";function r(t,e){const n=Object.create(null),r=t.split(",");for(let o=0;o!!n[t.toLowerCase()]:t=>!!n[t]}n.d(e,{C_:function(){return q},DM:function(){return A},E9:function(){return E},F7:function(){return c},Gg:function(){return T},HD:function(){return b},He:function(){return Q},Kj:function(){return v},Kn:function(){return O},NO:function(){return s},Nj:function(){return C},Od:function(){return h},PO:function(){return L},Pq:function(){return et},RI:function(){return p},S0:function(){return k},W7:function(){return N},WV:function(){return ot},Z6:function(){return i},_A:function(){return X},_N:function(){return m},aU:function(){return Y},dG:function(){return a},fY:function(){return r},h5:function(){return Z},hR:function(){return U},hq:function(){return it},ir:function(){return I},j5:function(){return D},kC:function(){return F},kJ:function(){return R},kT:function(){return o},l7:function(){return f},mf:function(){return y},rs:function(){return V},tI:function(){return S},tR:function(){return u},vs:function(){return $},yA:function(){return nt},yk:function(){return M},yl:function(){return G},zw:function(){return at}});const o={},i=[],a=()=>{},s=()=>!1,l=/^on[^a-z]/,c=t=>l.test(t),u=t=>t.startsWith("onUpdate:"),f=Object.assign,h=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(t,e)=>d.call(t,e),R=Array.isArray,m=t=>"[object Map]"===P(t),A=t=>"[object Set]"===P(t),g=t=>"[object Date]"===P(t),v=t=>"[object RegExp]"===P(t),y=t=>"function"===typeof t,b=t=>"string"===typeof t,M=t=>"symbol"===typeof t,O=t=>null!==t&&"object"===typeof t,S=t=>(O(t)||y(t))&&y(t.then)&&y(t.catch),w=Object.prototype.toString,P=t=>w.call(t),N=t=>P(t).slice(8,-1),L=t=>"[object Object]"===P(t),k=t=>b(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,T=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),x=t=>{const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}},W=/-(\w)/g,X=x((t=>t.replace(W,((t,e)=>e?e.toUpperCase():"")))),_=/\B([A-Z])/g,V=x((t=>t.replace(_,"-$1").toLowerCase())),F=x((t=>t.charAt(0).toUpperCase()+t.slice(1))),U=x((t=>{const e=t?`on${F(t)}`:"";return e})),Y=(t,e)=>!Object.is(t,e),I=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Z=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=b(t)?Number(t):NaN;return isNaN(e)?t:e};let K;const E=()=>K||(K="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});const H="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",G=r(H);function D(t){if(R(t)){const e={};for(let n=0;n{if(t){const n=t.split(J);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function q(t){let e="";if(b(t))e=t;else if(R(t))for(let n=0;not(t,e)))}const at=t=>b(t)?t:null==t?"":R(t)||O(t)&&(t.toString===w||!y(t.toString))?JSON.stringify(t,st,2):String(t),st=(t,e)=>e&&e.__v_isRef?st(t,e.value):m(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n])=>(t[`${e} =>`]=n,t)),{})}:A(e)?{[`Set(${e.size})`]:[...e.values()]}:!O(e)||R(e)||L(e)?e:String(e)},2152:function(t){ -/*! - * clipboard.js v2.0.11 - * https://clipboardjs.com/ - * - * Licensed MIT © Zeno Rocha - */ -(function(e,n){t.exports=n()})(0,(function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return W}});var r=n(279),o=n.n(r),i=n(370),a=n.n(i),s=n(817),l=n.n(s);function c(t){try{return document.execCommand(t)}catch(e){return!1}}var u=function(t){var e=l()(t);return c("cut"),e},f=u;function h(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}var d=function(t,e){var n=h(t);e.container.appendChild(n);var r=l()(n);return c("copy"),n.remove(),r},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof t?n=d(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=d(t.value,e):(n=l()(t),c("copy")),n},R=p;function m(t){return m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}var A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,o=t.target,i=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==m(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?R(i,{container:r}):o?"cut"===n?f(o):R(o,{container:r}):void 0},g=A;function v(t){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===v(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=g({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return T("action",t)}},{key:"defaultTarget",value:function(t){var e=T("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return T("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return R(t,e)}},{key:"cut",value:function(t){return f(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(o()),W=x},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(t,n){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(n))return t;t=t.parentNode}}t.exports=r},438:function(t,e,n){var r=n(828);function o(t,e,n,r,o){var i=a.apply(this,arguments);return t.addEventListener(n,i,o),{destroy:function(){t.removeEventListener(n,i,o)}}}function i(t,e,n,r,i){return"function"===typeof t.addEventListener?o.apply(null,arguments):"function"===typeof n?o.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return o(t,e,n,r,i)})))}function a(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}t.exports=i},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var r=n(879),o=n(438);function i(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return a(t,e,n);if(r.nodeList(t))return s(t,e,n);if(r.string(t))return l(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function l(t,e,n){return o(document.body,t,e,n)}t.exports=i},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(t),r.removeAllRanges(),r.addRange(o),e=r.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function o(){r.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,o=n.length;for(r;ru)if(s=l[u++],s!==s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3658:function(t,e,n){"use strict";var r=n(9781),o=n(3157),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4326:function(t,e,n){"use strict";var r=n(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},9920:function(t,e,n){"use strict";var r=n(2597),o=n(3887),i=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=o(e),l=a.f,c=i.f,u=0;un)throw e("Maximum allowed index exceeded");return t}},8113:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,n){"use strict";var r,o,i=n(7854),a=n(8113),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},748:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){"use strict";var r=n(7854),o=n(1236).f,i=n(8880),a=n(8052),s=n(3072),l=n(9920),c=n(4705);t.exports=function(t,e){var n,u,f,h,d,p,R=t.target,m=t.global,A=t.stat;if(u=m?r:A?r[R]||s(R,{}):(r[R]||{}).prototype,u)for(f in e){if(d=e[f],t.dontCallGetSet?(p=o(u,f),h=p&&p.value):h=u[f],n=c(m?f:R+(A?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&i(d,"sham",!0),a(u,f,d,t)}}},7293:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},4374:function(t,e,n){"use strict";var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){"use strict";var r=n(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){"use strict";var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},1702:function(t,e,n){"use strict";var r=n(4374),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},5005:function(t,e,n){"use strict";var r=n(7854),o=n(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},8173:function(t,e,n){"use strict";var r=n(9662),o=n(8554);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},7854:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(t,e,n){"use strict";var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){"use strict";t.exports={}},4664:function(t,e,n){"use strict";var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){"use strict";var r=n(1702),o=n(7293),i=n(4326),a=Object,s=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):a(t)}:a},2788:function(t,e,n){"use strict";var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},9909:function(t,e,n){"use strict";var r,o,i,a=n(4811),s=n(7854),l=n(111),c=n(8880),u=n(2597),f=n(5465),h=n(6200),d=n(3501),p="Object already initialized",R=s.TypeError,m=s.WeakMap,A=function(t){return i(t)?o(t):r(t,{})},g=function(t){return function(e){var n;if(!l(e)||(n=o(e)).type!==t)throw new R("Incompatible receiver, "+t+" required");return n}};if(a||f.state){var v=f.state||(f.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,r=function(t,e){if(v.has(t))throw new R(p);return e.facade=t,v.set(t,e),e},o=function(t){return v.get(t)||{}},i=function(t){return v.has(t)}}else{var y=h("state");d[y]=!0,r=function(t,e){if(u(t,y))throw new R(p);return e.facade=t,c(t,y,e),e},o=function(t){return u(t,y)?t[y]:{}},i=function(t){return u(t,y)}}t.exports={set:r,get:o,has:i,enforce:A,getterFor:g}},3157:function(t,e,n){"use strict";var r=n(4326);t.exports=Array.isArray||function(t){return"Array"===r(t)}},614:function(t,e,n){"use strict";var r=n(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4705:function(t,e,n){"use strict";var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===u||n!==c&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},8554:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},111:function(t,e,n){"use strict";var r=n(614),o=n(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){"use strict";t.exports=!1},2190:function(t,e,n){"use strict";var r=n(5005),o=n(614),i=n(7976),a=n(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},6244:function(t,e,n){"use strict";var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){"use strict";var r=n(1702),o=n(7293),i=n(614),a=n(2597),s=n(9781),l=n(6530).CONFIGURABLE,c=n(2788),u=n(9909),f=u.enforce,h=u.get,d=String,p=Object.defineProperty,R=r("".slice),m=r("".replace),A=r([].join),g=s&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),y=t.exports=function(t,e,n){"Symbol("===R(d(e),0,7)&&(e="["+m(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=f(t);return a(r,"source")||(r.source=A(v,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return i(this)&&h(this).source||c(this)}),"toString")},4758:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},3070:function(t,e,n){"use strict";var r=n(9781),o=n(4664),i=n(3353),a=n(9670),s=n(4948),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=u(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){"use strict";var r=n(9781),o=n(6916),i=n(5296),a=n(9114),s=n(5656),l=n(4948),c=n(2597),u=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=l(e),u)try{return f(t,e)}catch(n){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},8006:function(t,e,n){"use strict";var r=n(6324),o=n(748),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){"use strict";var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){"use strict";var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,s=n(3501),l=r([].push);t.exports=function(t,e){var n,r=i(t),c=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&l(u,n);while(e.length>c)o(r,n=e[c++])&&(~a(u,n)||l(u,n));return u}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2140:function(t,e,n){"use strict";var r=n(6916),o=n(614),i=n(111),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},3887:function(t,e,n){"use strict";var r=n(5005),o=n(1702),i=n(8006),a=n(5181),s=n(9670),l=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?l(e,n(t)):e}},4488:function(t,e,n){"use strict";var r=n(8554),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6200:function(t,e,n){"use strict";var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){"use strict";var r=n(7854),o=n(3072),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},2309:function(t,e,n){"use strict";var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){"use strict";var r=n(7392),o=n(7293),i=n(7854),a=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(t,e,n){"use strict";var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){"use strict";var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t,e,n){"use strict";var r=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7466:function(t,e,n){"use strict";var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){"use strict";var r=n(4488),o=Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,n){"use strict";var r=n(6916),o=n(111),i=n(2190),a=n(8173),s=n(2140),l=n(5112),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=r(l,t,e),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:function(t,e,n){"use strict";var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},6330:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},9711:function(t,e,n){"use strict";var r=n(1702),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},3307:function(t,e,n){"use strict";var r=n(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){"use strict";var r=n(9781),o=n(7293);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,n){"use strict";var r=n(7854),o=n(614),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:function(t,e,n){"use strict";var r=n(7854),o=n(2309),i=n(2597),a=n(9711),s=n(6293),l=n(3307),c=r.Symbol,u=o("wks"),f=l?c["for"]||c:c&&c.withoutSetter||a;t.exports=function(t){return i(u,t)||(u[t]=s&&i(c,t)?c[t]:f("Symbol."+t)),u[t]}},7658:function(t,e,n){"use strict";var r=n(2109),o=n(7908),i=n(6244),a=n(3658),s=n(7207),l=n(7293),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=c||!u();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=o(this),n=i(e),r=arguments.length;s(n+r);for(var l=0;l>>8^255&o^99,i[n]=o,a[o]=n;var R=t[n],m=t[R],A=t[m],g=257*t[o]^16843008*o;s[n]=g<<24|g>>>8,l[n]=g<<16|g>>>16,c[n]=g<<8|g>>>24,u[n]=g;g=16843009*A^65537*m^257*R^16843008*n;f[o]=g<<24|g>>>8,h[o]=g<<16|g>>>16,d[o]=g<<8|g>>>24,p[o]=g,n?(n=R^t[t[t[A^R]]],r^=t[t[r]]):n=r=1}})();var R=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=this._nRounds=n+6,o=4*(r+1),a=this._keySchedule=[],s=0;s6&&s%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=u<<8|u>>>24,u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=R[s/n|0]<<24),a[s]=a[s-n]^u);for(var l=this._invKeySchedule=[],c=0;c>>24]]^h[i[u>>>16&255]]^d[i[u>>>8&255]]^p[i[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,l,c,u,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,f,h,d,p,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,o,i,a,s){for(var l=this._nRounds,c=t[e]^n[0],u=t[e+1]^n[1],f=t[e+2]^n[2],h=t[e+3]^n[3],d=4,p=1;p>>24]^o[u>>>16&255]^i[f>>>8&255]^a[255&h]^n[d++],m=r[u>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&c]^n[d++],A=r[f>>>24]^o[h>>>16&255]^i[c>>>8&255]^a[255&u]^n[d++],g=r[h>>>24]^o[c>>>16&255]^i[u>>>8&255]^a[255&f]^n[d++];c=R,u=m,f=A,h=g}R=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^n[d++],m=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[d++],A=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[d++],g=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^n[d++];t[e]=R,t[e+1]=m,t[e+2]=A,t[e+3]=g},keySize:8});e.AES=r._createHelper(m)}(),t.AES}))},5109:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(888))})(0,(function(t){t.lib.Cipher||function(e){var n=t,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo,u=c.EvpKDF,f=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?O:y}return function(e){return{encrypt:function(n,r,o){return t(r).encrypt(e,n,r,o)},decrypt:function(n,r,o){return t(r).decrypt(e,n,r,o)}}}}()}),h=(r.StreamCipher=f.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),n.mode={}),d=r.BlockCipherMode=o.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),p=h.CBC=function(){var t=d.extend();function n(t,n,r){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a>>2];t.sigBytes-=e}},A=(r.BlockCipher=f.extend({cfg:f.cfg.extend({mode:p,padding:m}),reset:function(){var t;f.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),r.CipherParams=o.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),g=n.format={},v=g.OpenSSL={stringify:function(t){var e,n=t.ciphertext,r=t.salt;return e=r?i.create([1398893684,1701076831]).concat(r).concat(n):n,e.toString(l)},parse:function(t){var e,n=l.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),A.create({ciphertext:n,salt:e})}},y=r.SerializableCipher=o.extend({cfg:o.extend({format:v}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var o=t.createEncryptor(n,r),i=o.finalize(e),a=o.cfg;return A.create({ciphertext:i,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var o=t.createDecryptor(n,r).finalize(e.ciphertext);return o},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),b=n.kdf={},M=b.OpenSSL={execute:function(t,e,n,r){r||(r=i.random(8));var o=u.create({keySize:e+n}).compute(t,r),a=i.create(o.words.slice(e),4*n);return o.sigBytes=4*e,A.create({key:o,iv:a,salt:r})}},O=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:M}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var o=r.kdf.execute(n,t.keySize,t.ivSize);r.iv=o.iv;var i=y.encrypt.call(this,t,e,o.key,r);return i.mixIn(o),i},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var o=r.kdf.execute(n,t.keySize,t.ivSize,e.salt);r.iv=o.iv;var i=y.decrypt.call(this,t,e,o.key,r);return i}})}()}))},8249:function(t,e,n){(function(e,n){t.exports=n()})(0,(function(){var t=t||function(t,e){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(2480)}catch(m){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),a={},s=a.lib={},l=s.Base=function(){return{extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=s.WordArray=l.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var i=0;i>>2]>>>24-i%4*8&255;e[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new c.init(n,e/2)}},h=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new c.init(n,e)}},d=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},p=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,s=4*a,l=i/s;l=e?t.ceil(l):t.max((0|l)-this._minBufferSize,0);var u=l*a,f=t.min(4*u,i);if(u){for(var h=0;h>>2]>>>24-i%4*8&255,s=e[i+1>>>2]>>>24-(i+1)%4*8&255,l=e[i+2>>>2]>>>24-(i+2)%4*8&255,c=a<<16|s<<8|l,u=0;u<4&&i+.75*u>>6*(3-u)&63));var f=r.charAt(64);if(f)while(o.length%4)o.push(f);return o.join("")},parse:function(t){var e=t.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o>>6-a%4*2,c=s|l;o[i>>>2]|=c<<24-i%4*8,i++}return r.create(o,i)}}(),t.enc.Base64}))},3786:function(t,e,n){(function(e,r){t.exports=r(n(8249))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,o=e.enc;o.Base64url={stringify:function(t,e=!0){var n=t.words,r=t.sigBytes,o=e?this._safe_map:this._map;t.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255,l=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,u=s<<16|l<<8|c,f=0;f<4&&a+.75*f>>6*(3-f)&63));var h=o.charAt(64);if(h)while(i.length%4)i.push(h);return i.join("")},parse:function(t,e=!0){var n=t.length,r=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a>>6-a%4*2,c=s|l;o[i>>>2]|=c<<24-i%4*8,i++}return r.create(o,i)}}(),t.enc.Base64url}))},298:function(t,e,n){(function(e,r){t.exports=r(n(8249))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,o=e.enc;o.Utf16=o.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o>>1]|=t.charCodeAt(o)<<16-o%2*16;return r.create(n,2*e)}};function i(t){return t<<8&4278255360|t>>>8&16711935}o.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return r.create(n,2*e)}}}(),t.enc.Utf16}))},888:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(2783),n(9824))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Base,o=n.WordArray,i=e.algo,a=i.MD5,s=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n,r=this.cfg,i=r.hasher.create(),a=o.create(),s=a.words,l=r.keySize,c=r.iterations;while(s.lengthr&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,l=a.words,c=0;c>>2]|=t[r]<<24-r%4*8;o.call(this,n,e)}else o.apply(this,arguments)};i.prototype=r}}(),t.lib.WordArray}))},8214:function(t,e,n){(function(e,r){t.exports=r(n(8249))})(0,(function(t){return function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[];(function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0})();var l=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,o=t[r];t[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=t[e+0],l=t[e+1],d=t[e+2],p=t[e+3],R=t[e+4],m=t[e+5],A=t[e+6],g=t[e+7],v=t[e+8],y=t[e+9],b=t[e+10],M=t[e+11],O=t[e+12],S=t[e+13],w=t[e+14],P=t[e+15],N=i[0],L=i[1],k=i[2],T=i[3];N=c(N,L,k,T,a,7,s[0]),T=c(T,N,L,k,l,12,s[1]),k=c(k,T,N,L,d,17,s[2]),L=c(L,k,T,N,p,22,s[3]),N=c(N,L,k,T,R,7,s[4]),T=c(T,N,L,k,m,12,s[5]),k=c(k,T,N,L,A,17,s[6]),L=c(L,k,T,N,g,22,s[7]),N=c(N,L,k,T,v,7,s[8]),T=c(T,N,L,k,y,12,s[9]),k=c(k,T,N,L,b,17,s[10]),L=c(L,k,T,N,M,22,s[11]),N=c(N,L,k,T,O,7,s[12]),T=c(T,N,L,k,S,12,s[13]),k=c(k,T,N,L,w,17,s[14]),L=c(L,k,T,N,P,22,s[15]),N=u(N,L,k,T,l,5,s[16]),T=u(T,N,L,k,A,9,s[17]),k=u(k,T,N,L,M,14,s[18]),L=u(L,k,T,N,a,20,s[19]),N=u(N,L,k,T,m,5,s[20]),T=u(T,N,L,k,b,9,s[21]),k=u(k,T,N,L,P,14,s[22]),L=u(L,k,T,N,R,20,s[23]),N=u(N,L,k,T,y,5,s[24]),T=u(T,N,L,k,w,9,s[25]),k=u(k,T,N,L,p,14,s[26]),L=u(L,k,T,N,v,20,s[27]),N=u(N,L,k,T,S,5,s[28]),T=u(T,N,L,k,d,9,s[29]),k=u(k,T,N,L,g,14,s[30]),L=u(L,k,T,N,O,20,s[31]),N=f(N,L,k,T,m,4,s[32]),T=f(T,N,L,k,v,11,s[33]),k=f(k,T,N,L,M,16,s[34]),L=f(L,k,T,N,w,23,s[35]),N=f(N,L,k,T,l,4,s[36]),T=f(T,N,L,k,R,11,s[37]),k=f(k,T,N,L,g,16,s[38]),L=f(L,k,T,N,b,23,s[39]),N=f(N,L,k,T,S,4,s[40]),T=f(T,N,L,k,a,11,s[41]),k=f(k,T,N,L,p,16,s[42]),L=f(L,k,T,N,A,23,s[43]),N=f(N,L,k,T,y,4,s[44]),T=f(T,N,L,k,O,11,s[45]),k=f(k,T,N,L,P,16,s[46]),L=f(L,k,T,N,d,23,s[47]),N=h(N,L,k,T,a,6,s[48]),T=h(T,N,L,k,g,10,s[49]),k=h(k,T,N,L,w,15,s[50]),L=h(L,k,T,N,m,21,s[51]),N=h(N,L,k,T,O,6,s[52]),T=h(T,N,L,k,p,10,s[53]),k=h(k,T,N,L,b,15,s[54]),L=h(L,k,T,N,l,21,s[55]),N=h(N,L,k,T,v,6,s[56]),T=h(T,N,L,k,P,10,s[57]),k=h(k,T,N,L,A,15,s[58]),L=h(L,k,T,N,S,21,s[59]),N=h(N,L,k,T,R,6,s[60]),T=h(T,N,L,k,M,10,s[61]),k=h(k,T,N,L,d,15,s[62]),L=h(L,k,T,N,y,21,s[63]),i[0]=i[0]+N|0,i[1]=i[1]+L|0,i[2]=i[2]+k|0,i[3]=i[3]+T|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,r,o,i,a){var s=t+(e&n|~e&r)+o+a;return(s<>>32-i)+e}function u(t,e,n,r,o,i,a){var s=t+(e&r|n&~r)+o+a;return(s<>>32-i)+e}function f(t,e,n,r,o,i,a){var s=t+(e^n^r)+o+a;return(s<>>32-i)+e}function h(t,e,n,r,o,i,a){var s=t+(n^(e|~r))+o+a;return(s<>>32-i)+e}n.MD5=i._createHelper(l),n.HmacMD5=i._createHmacHelper(l)}(Math),t.MD5}))},8568:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(5109))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(t,e,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var a=0;a>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var o=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l>>2]|=o<<24-i%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},2807:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(5109))})(0,(function(t){return t.pad.Iso10126={pad:function(e,n){var r=4*n,o=r-e.sigBytes%r;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},1077:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(5109))})(0,(function(t){return t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},6991:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(5109))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},6475:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(5109))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},t.pad.ZeroPadding}))},2112:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(2783),n(9824))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Base,o=n.WordArray,i=e.algo,a=i.SHA1,s=i.HMAC,l=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n=this.cfg,r=s.create(n.hasher,t),i=o.create(),a=o.create([1]),l=i.words,c=a.words,u=n.keySize,f=n.iterations;while(l.length>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(e){var i=e.words,a=i[0],s=i[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;r[0]^=l,r[1]^=f,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=f,r[6]^=u,r[7]^=h;for(o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0;for(n=0;n<8;n++){var r=t[n]+e[n],o=65535&r,i=r>>>16,l=((o*o>>>17)+o*i>>>15)+i*i,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=r._createHelper(l)}(),t.RabbitLegacy}))},4454:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(8269),n(8214),n(888),n(5109))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.StreamCipher,o=e.algo,i=[],a=[],s=[],l=o.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(e){var i=e.words,a=i[0],s=i[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;o[0]^=l,o[1]^=f,o[2]^=u,o[3]^=h,o[4]^=l,o[5]^=f,o[6]^=u,o[7]^=h;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0;for(n=0;n<8;n++){var r=t[n]+e[n],o=65535&r,i=r>>>16,l=((o*o>>>17)+o*i>>>15)+i*i,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(l)}(),t.Rabbit}))},1857:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(8269),n(8214),n(888),n(5109))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.StreamCipher,o=e.algo,i=o.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var a=o%n,s=e[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var l=r[o];r[o]=r[i],r[i]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,o=0;o<4;o++){e=(e+1)%256,n=(n+t[e])%256;var i=t[e];t[e]=t[n],t[n]=i,r|=t[(t[e]+t[n])%256]<<24-8*o}return this._i=e,this._j=n,r}e.RC4=r._createHelper(i);var s=o.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=r._createHelper(s)}(),t.RC4}))},706:function(t,e,n){(function(e,r){t.exports=r(n(8249))})(0,(function(t){ -/** @preserve - (c) 2012 by Cédric Mesnil. All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -return function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=o.create([0,1518500249,1859775393,2400959708,2840853838]),h=o.create([1352829926,1548603684,1836072691,2053994217,0]),d=a.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,o=t[r];t[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,a,d,y,b,M,O,S,w,P,N,L=this._hash.words,k=f.words,T=h.words,x=s.words,W=l.words,X=c.words,_=u.words;M=i=L[0],O=a=L[1],S=d=L[2],w=y=L[3],P=b=L[4];for(n=0;n<80;n+=1)N=i+t[e+x[n]]|0,N+=n<16?p(a,d,y)+k[0]:n<32?R(a,d,y)+k[1]:n<48?m(a,d,y)+k[2]:n<64?A(a,d,y)+k[3]:g(a,d,y)+k[4],N|=0,N=v(N,X[n]),N=N+b|0,i=b,b=y,y=v(d,10),d=a,a=N,N=M+t[e+W[n]]|0,N+=n<16?g(O,S,w)+T[0]:n<32?A(O,S,w)+T[1]:n<48?m(O,S,w)+T[2]:n<64?R(O,S,w)+T[3]:p(O,S,w)+T[4],N|=0,N=v(N,_[n]),N=N+P|0,M=P,P=w,w=v(S,10),S=O,O=N;N=L[1]+d+w|0,L[1]=L[2]+y+P|0,L[2]=L[3]+b+M|0,L[3]=L[4]+i+O|0,L[4]=L[0]+a+S|0,L[0]=N},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,n){return t^e^n}function R(t,e,n){return t&e|~t&n}function m(t,e,n){return(t|~e)^n}function A(t,e,n){return t&n|e&~n}function g(t,e,n){return t^(e|~n)}function v(t,e){return t<>>32-e}n.RIPEMD160=i._createHelper(d),n.HmacRIPEMD160=i._createHmacHelper(d)}(Math),t.RIPEMD160}))},2783:function(t,e,n){(function(e,r){t.exports=r(n(8249))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,o=n.Hasher,i=e.algo,a=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var f=(r<<5|r>>>27)+l+a[c];f+=c<20?1518500249+(o&i|~o&s):c<40?1859775393+(o^i^s):c<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,l=s,s=i,i=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=o._createHelper(s),e.HmacSHA1=o._createHmacHelper(s)}(),t.SHA1}))},7792:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(2153))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,o=e.algo,i=o.SHA256,a=o.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=i._createHelper(a),e.HmacSHA224=i._createHmacHelper(a)}(),t.SHA224}))},2153:function(t,e,n){(function(e,r){t.exports=r(n(8249))})(0,(function(t){return function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[],l=[];(function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}var r=2,o=0;while(o<64)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),l[o]=n(e.pow(r,1/3)),o++),r++})();var c=[],u=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],f=n[6],h=n[7],d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else{var p=c[d-15],R=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[d-2],A=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[d]=R+c[d-7]+A+c[d-16]}var g=s&u^~s&f,v=r&o^r&i^o&i,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),M=h+b+g+l[d]+c[d],O=y+v;h=f,f=u,u=s,s=a+M|0,a=i,i=o,o=r,r=M+O|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),t.SHA256}))},3327:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(4938))})(0,(function(t){return function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.x64,s=a.Word,l=n.algo,c=[],u=[],f=[];(function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var r=e%5,o=(2*t+3*e)%5;t=r,e=o}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,a=0;a<24;a++){for(var l=0,h=0,d=0;d<7;d++){if(1&i){var p=(1<>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[o];s.high^=a,s.low^=i}for(var l=0;l<24;l++){for(var d=0;d<5;d++){for(var p=0,R=0,m=0;m<5;m++){s=n[d+5*m];p^=s.high,R^=s.low}var A=h[d];A.high=p,A.low=R}for(d=0;d<5;d++){var g=h[(d+4)%5],v=h[(d+1)%5],y=v.high,b=v.low;for(p=g.high^(y<<1|b>>>31),R=g.low^(b<<1|y>>>31),m=0;m<5;m++){s=n[d+5*m];s.high^=p,s.low^=R}}for(var M=1;M<25;M++){s=n[M];var O=s.high,S=s.low,w=c[M];w<32?(p=O<>>32-w,R=S<>>32-w):(p=S<>>64-w,R=O<>>64-w);var P=h[u[M]];P.high=p,P.low=R}var N=h[0],L=n[0];N.high=L.high,N.low=L.low;for(d=0;d<5;d++)for(m=0;m<5;m++){M=d+5*m,s=n[M];var k=h[M],T=h[(d+1)%5+5*m],x=h[(d+2)%5+5*m];s.high=k.high^~T.high&x.high,s.low=k.low^~T.low&x.low}s=n[0];var W=f[l];s.high^=W.high,s.low^=W.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),c.push(d),c.push(h)}return new o.init(c,s)},clone:function(){for(var t=i.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=i._createHelper(d),n.HmacSHA3=i._createHmacHelper(d)}(Math),t.SHA3}))},7460:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(4938),n(34))})(0,(function(t){return function(){var e=t,n=e.x64,r=n.Word,o=n.WordArray,i=e.algo,a=i.SHA512,s=i.SHA384=a.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384}))},34:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(4938))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.Hasher,o=e.x64,i=o.Word,a=o.WordArray,s=e.algo;function l(){return i.create.apply(i,arguments)}var c=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=l()})();var f=s.SHA512=r.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],f=n[6],h=n[7],d=r.high,p=r.low,R=o.high,m=o.low,A=i.high,g=i.low,v=a.high,y=a.low,b=s.high,M=s.low,O=l.high,S=l.low,w=f.high,P=f.low,N=h.high,L=h.low,k=d,T=p,x=R,W=m,X=A,_=g,V=v,F=y,U=b,Y=M,I=O,C=S,Z=w,Q=P,K=N,E=L,H=0;H<80;H++){var G,D,B=u[H];if(H<16)D=B.high=0|t[e+2*H],G=B.low=0|t[e+2*H+1];else{var J=u[H-15],j=J.high,z=J.low,q=(j>>>1|z<<31)^(j>>>8|z<<24)^j>>>7,$=(z>>>1|j<<31)^(z>>>8|j<<24)^(z>>>7|j<<25),tt=u[H-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,ot=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),it=u[H-7],at=it.high,st=it.low,lt=u[H-16],ct=lt.high,ut=lt.low;G=$+st,D=q+at+(G>>>0<$>>>0?1:0),G+=ot,D=D+rt+(G>>>0>>0?1:0),G+=ut,D=D+ct+(G>>>0>>0?1:0),B.high=D,B.low=G}var ft=U&I^~U&Z,ht=Y&C^~Y&Q,dt=k&x^k&X^x&X,pt=T&W^T&_^W&_,Rt=(k>>>28|T<<4)^(k<<30|T>>>2)^(k<<25|T>>>7),mt=(T>>>28|k<<4)^(T<<30|k>>>2)^(T<<25|k>>>7),At=(U>>>14|Y<<18)^(U>>>18|Y<<14)^(U<<23|Y>>>9),gt=(Y>>>14|U<<18)^(Y>>>18|U<<14)^(Y<<23|U>>>9),vt=c[H],yt=vt.high,bt=vt.low,Mt=E+gt,Ot=K+At+(Mt>>>0>>0?1:0),St=(Mt=Mt+ht,Ot=Ot+ft+(Mt>>>0>>0?1:0),Mt=Mt+bt,Ot=Ot+yt+(Mt>>>0>>0?1:0),Mt=Mt+G,Ot=Ot+D+(Mt>>>0>>0?1:0),mt+pt),wt=Rt+dt+(St>>>0>>0?1:0);K=Z,E=Q,Z=I,Q=C,I=U,C=Y,Y=F+Mt|0,U=V+Ot+(Y>>>0>>0?1:0)|0,V=X,F=_,X=x,_=W,x=k,W=T,T=Mt+St|0,k=Ot+wt+(T>>>0>>0?1:0)|0}p=r.low=p+T,r.high=d+k+(p>>>0>>0?1:0),m=o.low=m+W,o.high=R+x+(m>>>0>>0?1:0),g=i.low=g+_,i.high=A+X+(g>>>0<_>>>0?1:0),y=a.low=y+F,a.high=v+V+(y>>>0>>0?1:0),M=s.low=M+Y,s.high=b+U+(M>>>0>>0?1:0),S=l.low=S+C,l.high=O+I+(S>>>0>>0?1:0),P=f.low=P+Q,f.high=w+Z+(P>>>0>>0?1:0),L=h.low=L+E,h.high=N+K+(L>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var o=this._hash.toX32();return o},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=r._createHelper(f),e.HmacSHA512=r._createHmacHelper(f)}(),t.SHA512}))},4253:function(t,e,n){(function(e,r,o){t.exports=r(n(8249),n(8269),n(8214),n(888),n(5109))})(0,(function(t){return function(){var e=t,n=e.lib,r=n.WordArray,o=n.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=i.DES=o.extend({_doReset:function(){for(var t=this._key,e=t.words,n=[],r=0;r<56;r++){var o=a[r]-1;n[r]=e[o>>>5]>>>31-o%32&1}for(var i=this._subKeys=[],c=0;c<16;c++){var u=i[c]=[],f=l[c];for(r=0;r<24;r++)u[r/6|0]|=n[(s[r]-1+f)%28]<<31-r%6,u[4+(r/6|0)]|=n[28+(s[r+24]-1+f)%28]<<31-r%6;u[0]=u[0]<<1|u[0]>>>31;for(r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=i[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^o[l])&u[l])>>>0];this._lBlock=a,this._rBlock=i^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<192.");var n=e.slice(0,2),o=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(r.create(n)),this._des2=f.createEncryptor(r.create(o)),this._des3=f.createEncryptor(r.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(p)}(),t.TripleDES}))},4938:function(t,e,n){(function(e,r){t.exports=r(n(8249))})(0,(function(t){return function(e){var n=t,r=n.lib,o=r.Base,i=r.WordArray,a=n.x64={};a.Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=o.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,n){var s=a.URL||a.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?i(l):o(l.href)?r(t,e,n):i(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,a){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),n);else if(o(t))r(t,n,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){i(s)}))}}:function(t,e,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var i="application/octet-stream"===t.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},u.readAsDataURL(t)}else{var f=a.URL||a.webkitURL,h=f.createObjectURL(t);o?o.location=h:location.href=h,o=null,setTimeout((function(){f.revokeObjectURL(h)}),4e4)}});a.saveAs=l.saveAs=l,t.exports=l}))},6459:function(t,e,n){"use strict";function r(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),e&&(r.href=e),o.href=t,o.href}n.d(e,{rT:function(){return At},hi:function(){return vt},YM:function(){return gt}});const o=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function i(t){const e=[];for(let n=0,r=t.length;nf||t.height>f)&&(t.width>f&&t.height>f?t.width>t.height?(t.height*=f/t.width,t.width=f):(t.width*=f/t.height,t.height=f):t.width>f?(t.height*=f/t.width,t.width=f):(t.width*=f/t.height,t.height=f))}function d(t){return new Promise(((e,n)=>{const r=new Image;r.decode=()=>e(r),r.onload=()=>e(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t}))}async function p(t){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(t))).then(encodeURIComponent).then((t=>`data:image/svg+xml;charset=utf-8,${t}`))}async function R(t,e,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${e}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${e} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),o.appendChild(i),i.appendChild(t),p(o)}const m=(t,e)=>{if(t instanceof e)return!0;const n=Object.getPrototypeOf(t);return null!==n&&(n.constructor.name===e.name||m(n,e))};function A(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function g(t){return i(t).map((e=>{const n=t.getPropertyValue(e),r=t.getPropertyPriority(e);return`${e}: ${n}${r?" !important":""};`})).join(" ")}function v(t,e,n){const r=`.${t}:${e}`,o=n.cssText?A(n):g(n);return document.createTextNode(`${r}{${o}}`)}function y(t,e,n){const r=window.getComputedStyle(t,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;const a=o();try{e.className=`${e.className} ${a}`}catch(l){return}const s=document.createElement("style");s.appendChild(v(a,n,r)),e.appendChild(s)}function b(t,e){y(t,e,":before"),y(t,e,":after")}const M="application/font-woff",O="image/jpeg",S={woff:M,woff2:M,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:O,jpeg:O,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function w(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function P(t){const e=w(t).toLowerCase();return S[e]||""}function N(t){return t.split(/,/)[1]}function L(t){return-1!==t.search(/^(data:)/)}function k(t,e){return`data:${e};base64,${t}`}async function T(t,e,n){const r=await fetch(t,e);if(404===r.status)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise(((t,e)=>{const i=new FileReader;i.onerror=e,i.onloadend=()=>{try{t(n({res:r,result:i.result}))}catch(o){e(o)}},i.readAsDataURL(o)}))}const x={};function W(t,e,n){let r=t.replace(/\?.*/,"");return n&&(r=t),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),e?`[${e}]${r}`:r}async function X(t,e,n){const r=W(t,e,n.includeQueryParams);if(null!=x[r])return x[r];let o;n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());try{const r=await T(t,n.fetchRequestInit,(({res:t,result:n})=>(e||(e=t.headers.get("Content-Type")||""),N(n))));o=k(r,e)}catch(i){o=n.imagePlaceholder||"";let e=`Failed to fetch resource: ${t}`;i&&(e="string"===typeof i?i:i.message),e&&console.warn(e)}return x[r]=o,o}async function _(t){const e=t.toDataURL();return"data:,"===e?t.cloneNode(!1):d(e)}async function V(t,e){if(t.currentSrc){const e=document.createElement("canvas"),n=e.getContext("2d");e.width=t.clientWidth,e.height=t.clientHeight,null===n||void 0===n||n.drawImage(t,0,0,e.width,e.height);const r=e.toDataURL();return d(r)}const n=t.poster,r=P(n),o=await X(n,r,e);return d(o)}async function F(t){var e;try{if(null===(e=null===t||void 0===t?void 0:t.contentDocument)||void 0===e?void 0:e.body)return await H(t.contentDocument.body,{},!0)}catch(n){}return t.cloneNode(!1)}async function U(t,e){return m(t,HTMLCanvasElement)?_(t):m(t,HTMLVideoElement)?V(t,e):m(t,HTMLIFrameElement)?F(t):t.cloneNode(!1)}const Y=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase();async function I(t,e,n){var r,o;let a=[];return a=Y(t)&&t.assignedNodes?i(t.assignedNodes()):m(t,HTMLIFrameElement)&&(null===(r=t.contentDocument)||void 0===r?void 0:r.body)?i(t.contentDocument.body.childNodes):i((null!==(o=t.shadowRoot)&&void 0!==o?o:t).childNodes),0===a.length||m(t,HTMLVideoElement)||await a.reduce(((t,r)=>t.then((()=>H(r,n))).then((t=>{t&&e.appendChild(t)}))),Promise.resolve()),e}function C(t,e){const n=e.style;if(!n)return;const r=window.getComputedStyle(t);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):i(r).forEach((o=>{let i=r.getPropertyValue(o);if("font-size"===o&&i.endsWith("px")){const t=Math.floor(parseFloat(i.substring(0,i.length-2)))-.1;i=`${t}px`}m(t,HTMLIFrameElement)&&"display"===o&&"inline"===i&&(i="block"),"d"===o&&e.getAttribute("d")&&(i=`path(${e.getAttribute("d")})`),n.setProperty(o,i,r.getPropertyPriority(o))}))}function Z(t,e){m(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),m(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function Q(t,e){if(m(t,HTMLSelectElement)){const n=e,r=Array.from(n.children).find((e=>t.value===e.getAttribute("value")));r&&r.setAttribute("selected","")}}function K(t,e){return m(e,Element)&&(C(t,e),b(t,e),Z(t,e),Q(t,e)),e}async function E(t,e){const n=t.querySelectorAll?t.querySelectorAll("use"):[];if(0===n.length)return t;const r={};for(let i=0;iU(t,e))).then((n=>I(t,n,e))).then((e=>K(t,e))).then((t=>E(t,e))):null}const G=/url\((['"]?)([^'"]+?)\1\)/g,D=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,B=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function J(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function j(t){const e=[];return t.replace(G,((t,n,r)=>(e.push(r),t))),e.filter((t=>!L(t)))}async function z(t,e,n,o,i){try{const a=n?r(e,n):e,s=P(e);let l;if(i){const t=await i(a);l=k(t,s)}else l=await X(a,s,o);return t.replace(J(e),`$1${l}$3`)}catch(a){}return t}function q(t,{preferredFontFormat:e}){return e?t.replace(B,(t=>{while(1){const[n,,r]=D.exec(t)||[];if(!r)return"";if(r===e)return`src: ${n};`}})):t}function $(t){return-1!==t.search(G)}async function tt(t,e,n){if(!$(t))return t;const r=q(t,n),o=j(r);return o.reduce(((t,r)=>t.then((t=>z(t,r,e,n)))),Promise.resolve(r))}async function et(t,e,n){var r;const o=null===(r=e.style)||void 0===r?void 0:r.getPropertyValue(t);if(o){const r=await tt(o,null,n);return e.style.setProperty(t,r,e.style.getPropertyPriority(t)),!0}return!1}async function nt(t,e){await et("background",t,e)||await et("background-image",t,e),await et("mask",t,e)||await et("mask-image",t,e)}async function rt(t,e){const n=m(t,HTMLImageElement);if((!n||L(t.src))&&(!m(t,SVGImageElement)||L(t.href.baseVal)))return;const r=n?t.src:t.href.baseVal,o=await X(r,P(r),e);await new Promise(((e,r)=>{t.onload=e,t.onerror=r;const i=t;i.decode&&(i.decode=e),"lazy"===i.loading&&(i.loading="eager"),n?(t.srcset="",t.src=o):t.href.baseVal=o}))}async function ot(t,e){const n=i(t.childNodes),r=n.map((t=>it(t,e)));await Promise.all(r).then((()=>t))}async function it(t,e){m(t,Element)&&(await nt(t,e),await rt(t,e),await ot(t,e))}function at(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const r=e.style;return null!=r&&Object.keys(r).forEach((t=>{n[t]=r[t]})),t}const st={};async function lt(t){let e=st[t];if(null!=e)return e;const n=await fetch(t),r=await n.text();return e={url:t,cssText:r},st[t]=e,e}async function ct(t,e){let n=t.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,o=n.match(/url\([^)]+\)/g)||[],i=o.map((async o=>{let i=o.replace(r,"$1");return i.startsWith("https://")||(i=new URL(i,t.url).href),T(i,e.fetchRequestInit,(({result:t})=>(n=n.replace(o,`url(${t})`),[o,t])))}));return Promise.all(i).then((()=>n))}function ut(t){if(null==t)return[];const e=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=t.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");while(1){const t=o.exec(r);if(null===t)break;e.push(t[0])}r=r.replace(o,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(a,"gi");while(1){let t=i.exec(r);if(null===t){if(t=s.exec(r),null===t)break;i.lastIndex=s.lastIndex}else s.lastIndex=i.lastIndex;e.push(t[0])}return e}async function ft(t,e){const n=[],r=[];return t.forEach((n=>{if("cssRules"in n)try{i(n.cssRules||[]).forEach(((t,o)=>{if(t.type===CSSRule.IMPORT_RULE){let i=o+1;const a=t.href,s=lt(a).then((t=>ct(t,e))).then((t=>ut(t).forEach((t=>{try{n.insertRule(t,t.startsWith("@import")?i+=1:n.cssRules.length)}catch(e){console.error("Error inserting rule from remote css",{rule:t,error:e})}})))).catch((t=>{console.error("Error loading remote css",t.toString())}));r.push(s)}}))}catch(o){const i=t.find((t=>null==t.href))||document.styleSheets[0];null!=n.href&&r.push(lt(n.href).then((t=>ct(t,e))).then((t=>ut(t).forEach((t=>{i.insertRule(t,n.cssRules.length)})))).catch((t=>{console.error("Error loading remote stylesheet",t)}))),console.error("Error inlining remote css file",o)}})),Promise.all(r).then((()=>(t.forEach((t=>{if("cssRules"in t)try{i(t.cssRules||[]).forEach((t=>{n.push(t)}))}catch(e){console.error(`Error while reading CSS rules from ${t.href}`,e)}})),n)))}function ht(t){return t.filter((t=>t.type===CSSRule.FONT_FACE_RULE)).filter((t=>$(t.style.getPropertyValue("src"))))}async function dt(t,e){if(null==t.ownerDocument)throw new Error("Provided element is not within a Document");const n=i(t.ownerDocument.styleSheets),r=await ft(n,e);return ht(r)}async function pt(t,e){const n=await dt(t,e),r=await Promise.all(n.map((t=>{const n=t.parentStyleSheet?t.parentStyleSheet.href:null;return tt(t.cssText,n,e)})));return r.join("\n")}async function Rt(t,e){const n=null!=e.fontEmbedCSS?e.fontEmbedCSS:e.skipFonts?null:await pt(t,e);if(n){const e=document.createElement("style"),r=document.createTextNode(n);e.appendChild(r),t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}async function mt(t,e={}){const{width:n,height:r}=c(t,e),o=await H(t,e,!0);await Rt(o,e),await it(o,e),at(o,e);const i=await R(o,n,r);return i}async function At(t,e={}){const{width:n,height:r}=c(t,e),o=await mt(t,e),i=await d(o),a=document.createElement("canvas"),s=a.getContext("2d"),l=e.pixelRatio||u(),f=e.canvasWidth||n,p=e.canvasHeight||r;return a.width=f*l,a.height=p*l,e.skipAutoScale||h(a),a.style.width=`${f}`,a.style.height=`${p}`,e.backgroundColor&&(s.fillStyle=e.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(i,0,0,a.width,a.height),a}async function gt(t,e={}){const n=await At(t,e);return n.toDataURL()}async function vt(t,e={}){const n=await At(t,e);return n.toDataURL("image/jpeg",e.quality||1)}},5733:function(t,e,n){ -/*! - -JSZip v3.10.1 - A JavaScript class for generating and reading zip files - - -(c) 2009-2016 Stuart Knightley -Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. - -JSZip uses the library pako released under the MIT license : -https://github.com/nodeca/pako/blob/main/LICENSE -*/ -!function(e){t.exports=e()}((function(){return function t(e,n,r){function o(a,s){if(!n[a]){if(!e[a]){var l=void 0;if(!s&&l)return require(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){var n=e[a][1][t];return o(n||t)}),u,u.exports,t,e,n,r)}return n[a].exports}for(var i=void 0,a=0;a>2,s=(3&e)<<4|n>>4,l=1>6:64,c=2>4,n=(15&a)<<4|(s=i.indexOf(t.charAt(c++)))>>2,r=(3&s)<<6|(l=i.indexOf(t.charAt(c++))),h[u++]=e,64!==s&&(h[u++]=n),64!==l&&(h[u++]=r);return h}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var r=t("./external"),o=t("./stream/DataWorker"),i=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(t,e,n,r,o){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=r,this.compressedContent=o}s.prototype={getContentWorker:function(){var t=new o(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new o(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new i).pipe(new a("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var r=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var r=t("./utils"),o=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,e,n,r){var i=o,a=r+n;t^=-1;for(var s=r;s>>8^i[255&(t^e[s])];return-1^t}(0|e,t,t.length,0):function(t,e,n,r){var i=o,a=r+n;t^=-1;for(var s=r;s>>8^i[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:r}},{lie:37}],7:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=t("pako"),i=t("./utils"),a=t("./stream/GenericWorker"),s=r?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",i.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function r(t,e){var n,r="";for(n=0;n>>=8;return r}function o(t,e,n,o,a,u){var f,h,d=t.file,p=t.compression,R=u!==s.utf8encode,m=i.transformTo("string",u(d.name)),A=i.transformTo("string",s.utf8encode(d.name)),g=d.comment,v=i.transformTo("string",u(g)),y=i.transformTo("string",s.utf8encode(g)),b=A.length!==d.name.length,M=y.length!==g.length,O="",S="",w="",P=d.dir,N=d.date,L={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(L.crc32=t.crc32,L.compressedSize=t.compressedSize,L.uncompressedSize=t.uncompressedSize);var k=0;e&&(k|=8),R||!b&&!M||(k|=2048);var T=0,x=0;P&&(T|=16),"UNIX"===a?(x=798,T|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(d.unixPermissions,P)):(x=20,T|=function(t){return 63&(t||0)}(d.dosPermissions)),f=N.getUTCHours(),f<<=6,f|=N.getUTCMinutes(),f<<=5,f|=N.getUTCSeconds()/2,h=N.getUTCFullYear()-1980,h<<=4,h|=N.getUTCMonth()+1,h<<=5,h|=N.getUTCDate(),b&&(S=r(1,1)+r(l(m),4)+A,O+="up"+r(S.length,2)+S),M&&(w=r(1,1)+r(l(v),4)+y,O+="uc"+r(w.length,2)+w);var W="";return W+="\n\0",W+=r(k,2),W+=p.magic,W+=r(f,2),W+=r(h,2),W+=r(L.crc32,4),W+=r(L.compressedSize,4),W+=r(L.uncompressedSize,4),W+=r(m.length,2),W+=r(O.length,2),{fileRecord:c.LOCAL_FILE_HEADER+W+m+O,dirRecord:c.CENTRAL_FILE_HEADER+r(x,2)+W+r(v.length,2)+"\0\0\0\0"+r(T,4)+r(o,4)+m+O+v}}var i=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),c=t("../signature");function u(t,e,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(u,a),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=o(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=o(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return c.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=o},{"../utils":32}],19:[function(t,e,n){"use strict";var r=t("./Uint8ArrayReader");function o(t){r.call(this,t)}t("../utils").inherits(o,r),o.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var r=t("./DataReader");function o(t){r.call(this,t)}t("../utils").inherits(o,r),o.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},o.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},o.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},o.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=o},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var r=t("./ArrayReader");function o(t){r.call(this,t)}t("../utils").inherits(o,r),o.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var r=t("../utils"),o=t("../support"),i=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=r.getTypeOf(t);return r.checkSupport(e),"string"!==e||o.uint8array?"nodebuffer"===e?new s(t):o.uint8array?new l(r.transformTo("uint8array",t)):new i(r.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var r=t("./GenericWorker"),o=t("../utils");function i(t){r.call(this,"ConvertWorker to "+t),this.destType=t}o.inherits(i,r),i.prototype.processChunk=function(t){this.push({data:o.transformTo(this.destType,t.data),meta:t.meta})},e.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var r=t("./GenericWorker"),o=t("../crc32");function i(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(i,r),i.prototype.processChunk=function(t){this.streamInfo.crc32=o(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var r=t("../utils"),o=t("./GenericWorker");function i(t){o.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(i,o),i.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}o.prototype.processChunk.call(this,t)},e.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var r=t("../utils"),o=t("./GenericWorker");function i(t){o.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=r.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}r.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n "+t:t}},e.exports=r},{}],29:[function(t,e,n){"use strict";var r=t("../utils"),o=t("./ConvertWorker"),i=t("./GenericWorker"),a=t("../base64"),s=t("../support"),l=t("../external"),c=null;if(s.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function u(t,e){return new l.Promise((function(n,o){var i=[],s=t._internalType,l=t._outputType,c=t._mimeType;t.on("data",(function(t,n){i.push(t),e&&e(n)})).on("error",(function(t){i=[],o(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",e),n);case"base64":return a.encode(e);default:return r.transformTo(t,e)}}(l,function(t,e){var n,r=0,o=null,i=0;for(n=0;n>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e}(t)},n.utf8decode=function(t){return o.nodebuffer?r.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,o,i,a=t.length,l=new Array(2*a);for(e=n=0;e>10&1023,l[n++]=56320|1023&o)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(t=r.transformTo(o.uint8array?"uint8array":"array",t))},r.inherits(c,a),c.prototype.processChunk=function(t){var e=r.transformTo(o.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var i=e;(e=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),e.set(i,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),l=e;a!==e.length&&(o.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(u,a),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var r=t("./support"),o=t("./base64"),i=t("./nodejsUtils"),a=t("./external");function s(t){return t}function l(t,e){for(var n=0;n>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,r,o=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,o=e.length;n>10&1023,c[r++]=56320|1023&o)}return l(c,r)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){for(var o=65535&t|0,i=t>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,o){var i=r,a=o+n;t^=-1;for(var s=o;s>>8^i[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var r,o=t("../utils/common"),i=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages"),c=0,u=4,f=0,h=-2,d=-1,p=4,R=2,m=8,A=9,g=286,v=30,y=19,b=2*g+1,M=15,O=3,S=258,w=S+O+1,P=42,N=113,L=1,k=2,T=3,x=4;function W(t,e){return t.msg=l[e],e}function X(t){return(t<<1)-(4t.avail_out&&(n=t.avail_out),0!==n&&(o.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function F(t,e){i._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,V(t.strm)}function U(t,e){t.pending_buf[t.pending++]=e}function Y(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function I(t,e){var n,r,o=t.max_chain_length,i=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-w?t.strstart-(t.w_size-w):0,c=t.window,u=t.w_mask,f=t.prev,h=t.strstart+S,d=c[i+a-1],p=c[i+a];t.prev_length>=t.good_match&&(o>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===d&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&il&&0!=--o);return a<=t.lookahead?a:t.lookahead}function C(t){var e,n,r,i,l,c,u,f,h,d,p=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-w)){for(o.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;r=t.head[--e],t.head[e]=p<=r?r-p:0,--n;);for(e=n=p;r=t.prev[--e],t.prev[e]=p<=r?r-p:0,--n;);i+=p}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,f=t.strstart+t.lookahead,h=i,d=void 0,d=c.avail_in,h=O)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<=O&&(t.ins_h=(t.ins_h<=O)if(r=i._tr_tally(t,t.strstart-t.match_start,t.match_length-O),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=O){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=O&&(t.ins_h=(t.ins_h<=O&&t.match_length<=t.prev_length){for(o=t.strstart+t.lookahead-O,r=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-O),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=o&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(C(t),0===t.lookahead&&e===c)return L;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,F(t,!1),0===t.strm.avail_out))return L;if(t.strstart-t.block_start>=t.w_size-w&&(F(t,!1),0===t.strm.avail_out))return L}return t.insert=0,e===u?(F(t,!0),0===t.strm.avail_out?T:x):(t.strstart>t.block_start&&(F(t,!1),t.strm.avail_out),L)})),new K(4,4,8,4,Z),new K(4,5,16,8,Z),new K(4,6,32,32,Z),new K(4,4,16,16,Q),new K(8,16,32,32,Q),new K(8,16,128,128,Q),new K(8,32,128,256,Q),new K(32,128,258,1024,Q),new K(32,258,258,4096,Q)],n.deflateInit=function(t,e){return D(t,e,m,15,8,0)},n.deflateInit2=D,n.deflateReset=G,n.deflateResetKeep=H,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,f):h},n.deflate=function(t,e){var n,o,a,l;if(!t||!t.state||5>8&255),U(o,o.gzhead.time>>16&255),U(o,o.gzhead.time>>24&255),U(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),U(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(U(o,255&o.gzhead.extra.length),U(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=s(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(U(o,0),U(o,0),U(o,0),U(o,0),U(o,0),U(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),U(o,3),o.status=N);else{var d=m+(o.w_bits-8<<4)<<8;d|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(d|=32),d+=31-d%31,o.status=N,Y(o,d),0!==o.strstart&&(Y(o,t.adler>>>16),Y(o,65535&t.adler)),t.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),V(t),a=o.pending,o.pending!==o.pending_buf_size));)U(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),V(t),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindexa&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),V(t),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindexa&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&V(t),o.pending+2<=o.pending_buf_size&&(U(o,255&t.adler),U(o,t.adler>>8&255),t.adler=0,o.status=N)):o.status=N),0!==o.pending){if(V(t),0===t.avail_out)return o.last_flush=-1,f}else if(0===t.avail_in&&X(e)<=X(n)&&e!==u)return W(t,-5);if(666===o.status&&0!==t.avail_in)return W(t,-5);if(0!==t.avail_in||0!==o.lookahead||e!==c&&666!==o.status){var p=2===o.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(C(t),0===t.lookahead)){if(e===c)return L;break}if(t.match_length=0,n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(F(t,!1),0===t.strm.avail_out))return L}return t.insert=0,e===u?(F(t,!0),0===t.strm.avail_out?T:x):t.last_lit&&(F(t,!1),0===t.strm.avail_out)?L:k}(o,e):3===o.strategy?function(t,e){for(var n,r,o,a,s=t.window;;){if(t.lookahead<=S){if(C(t),t.lookahead<=S&&e===c)return L;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=O&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=O?(n=i._tr_tally(t,1,t.match_length-O),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(F(t,!1),0===t.strm.avail_out))return L}return t.insert=0,e===u?(F(t,!0),0===t.strm.avail_out?T:x):t.last_lit&&(F(t,!1),0===t.strm.avail_out)?L:k}(o,e):r[o.level].func(o,e);if(p!==T&&p!==x||(o.status=666),p===L||p===T)return 0===t.avail_out&&(o.last_flush=-1),f;if(p===k&&(1===e?i._tr_align(o):5!==e&&(i._tr_stored_block(o,0,0,!1),3===e&&(_(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),V(t),0===t.avail_out))return o.last_flush=-1,f}return e!==u?f:o.wrap<=0?1:(2===o.wrap?(U(o,255&t.adler),U(o,t.adler>>8&255),U(o,t.adler>>16&255),U(o,t.adler>>24&255),U(o,255&t.total_in),U(o,t.total_in>>8&255),U(o,t.total_in>>16&255),U(o,t.total_in>>24&255)):(Y(o,t.adler>>>16),Y(o,65535&t.adler)),V(t),0=n.w_size&&(0===s&&(_(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new o.Buf8(n.w_size),o.arraySet(d,e,p-n.w_size,n.w_size,0),e=d,p=n.w_size),l=t.avail_in,c=t.next_in,u=t.input,t.avail_in=p,t.next_in=0,t.input=e,C(n);n.lookahead>=O;){for(r=n.strstart,i=n.lookahead-(O-1);n.ins_h=(n.ins_h<>>=y=v>>>24,p-=y,0===(y=v>>>16&255))P[i++]=65535&v;else{if(!(16&y)){if(0==(64&y)){v=R[(65535&v)+(d&(1<>>=y,p-=y),p<15&&(d+=w[r++]<>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(0==(64&y)){v=m[(65535&v)+(d&(1<>>=y,p-=y,(y=i-a)>3,d&=(1<<(p-=b<<3))-1,t.next_in=r,t.next_out=i,t.avail_in=r>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function A(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(d),e.distcode=e.distdyn=new r.Buf32(p),e.sane=1,e.back=-1,u):f}function g(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,A(t)):f}function v(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o<(i=a.wsize-a.wnext)&&(i=o),r.arraySet(a.window,e,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,e,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=i(n.check,C,2,0),b=y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&y)){t.msg="unknown compression method",n.mode=30;break}if(b-=4,V=8+(15&(y>>>=4)),0===n.wbits)n.wbits=V;else if(V>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(C[0]=255&y,C[1]=y>>>8&255,n.check=i(n.check,C,2,0)),b=y=0,n.mode=3;case 3:for(;b<32;){if(0===g)break t;g--,y+=d[m++]<>>8&255,C[2]=y>>>16&255,C[3]=y>>>24&255,n.check=i(n.check,C,4,0)),b=y=0,n.mode=4;case 4:for(;b<16;){if(0===g)break t;g--,y+=d[m++]<>8),512&n.flags&&(C[0]=255&y,C[1]=y>>>8&255,n.check=i(n.check,C,2,0)),b=y=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===g)break t;g--,y+=d[m++]<>>8&255,n.check=i(n.check,C,2,0)),b=y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(g<(P=n.length)&&(P=g),P&&(n.head&&(V=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,m,P,V)),512&n.flags&&(n.check=i(n.check,d,P,m)),g-=P,m+=P,n.length-=P),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===g)break t;for(P=0;V=d[m+P++],n.head&&V&&n.length<65536&&(n.head.name+=String.fromCharCode(V)),V&&P>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===g)break t;g--,y+=d[m++]<>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===g)break t;g--,y+=d[m++]<>>=1)){case 0:n.mode=14;break;case 1:if(S(n),n.mode=20,6!==e)break;y>>>=2,b-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}y>>>=2,b-=2;break;case 14:for(y>>>=7&b,b-=7&b;b<32;){if(0===g)break t;g--,y+=d[m++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&y,b=y=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(P=n.length){if(g>>=5,b-=5,n.ndist=1+(31&y),y>>>=5,b-=5,n.ncode=4+(15&y),y>>>=4,b-=4,286>>=3,b-=3}for(;n.have<19;)n.lens[Z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,U={bits:n.lenbits},F=s(0,n.lens,0,19,n.lencode,0,n.work,U),n.lenbits=U.bits,F){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,x=65535&I,!((k=I>>>24)<=b);){if(0===g)break t;g--,y+=d[m++]<>>=k,b-=k,n.lens[n.have++]=x;else{if(16===x){for(Y=k+2;b>>=k,b-=k,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}V=n.lens[n.have-1],P=3+(3&y),y>>>=2,b-=2}else if(17===x){for(Y=k+3;b>>=k)),y>>>=3,b-=3}else{for(Y=k+7;b>>=k)),y>>>=7,b-=7}if(n.have+P>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;P--;)n.lens[n.have++]=V}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,U={bits:n.lenbits},F=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,U),n.lenbits=U.bits,F){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,U={bits:n.distbits},F=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,U),n.distbits=U.bits,F){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=g&&258<=v){t.next_out=A,t.avail_out=v,t.next_in=m,t.avail_in=g,n.hold=y,n.bits=b,a(t,O),A=t.next_out,p=t.output,v=t.avail_out,m=t.next_in,d=t.input,g=t.avail_in,y=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(I=n.lencode[y&(1<>>16&255,x=65535&I,!((k=I>>>24)<=b);){if(0===g)break t;g--,y+=d[m++]<>W)])>>>16&255,x=65535&I,!(W+(k=I>>>24)<=b);){if(0===g)break t;g--,y+=d[m++]<>>=W,b-=W,n.back+=W}if(y>>>=k,b-=k,n.back+=k,n.length=x,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(Y=n.extra;b>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(I=n.distcode[y&(1<>>16&255,x=65535&I,!((k=I>>>24)<=b);){if(0===g)break t;g--,y+=d[m++]<>W)])>>>16&255,x=65535&I,!(W+(k=I>>>24)<=b);){if(0===g)break t;g--,y+=d[m++]<>>=W,b-=W,n.back+=W}if(y>>>=k,b-=k,n.back+=k,64&T){t.msg="invalid distance code",n.mode=30;break}n.offset=x,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(Y=n.extra;b>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===v)break t;if(P=O-v,n.offset>P){if((P=n.offset-P)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}N=P>n.wnext?(P-=n.wnext,n.wsize-P):n.wnext-P,P>n.length&&(P=n.length),L=n.window}else L=p,N=A-n.offset,P=n.length;for(vg?(y=U[Y+f[S]],X[_+f[S]]):(y=96,0),d=1<>k)+(p-=d)]=v<<24|y<<16|b|0,0!==p;);for(d=1<>=1;if(0!==d?(W&=d-1,W+=d):W=0,S++,0==--V[O]){if(O===P)break;O=e[n+f[S]]}if(N>>7)]}function U(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function Y(t,e,n){t.bi_valid>R-n?(t.bi_buf|=e<>R-t.bi_valid,t.bi_valid+=n-R):(t.bi_buf|=e<>>=1,n<<=1,0<--e;);return n>>>1}function Z(t,e,n){var r,o,i=new Array(p+1),a=0;for(r=1;r<=p;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=e;o++){var s=t[2*o+1];0!==s&&(t[2*o]=C(i[s]++,s))}}function Q(t){var e;for(e=0;e>1;1<=n;n--)H(t,i,n);for(o=l;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],H(t,i,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,i[2*o]=i[2*n]+i[2*r],t.depth[o]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,i[2*n+1]=i[2*r+1]=o,t.heap[1]=o++,H(t,i,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,o,i,a,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,R=e.stat_desc.extra_base,m=e.stat_desc.max_length,A=0;for(i=0;i<=p;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n>=7;r>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return i;for(e=32;e>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==e?z(t,e,n,r):4===t.strategy||s===a?(Y(t,2+(r?1:0),3),G(t,w,P)):(Y(t,4+(r?1:0),3),function(t,e,n,r){var o;for(Y(t,e-257,5),Y(t,n-1,5),Y(t,r-4,4),o=0;o>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(L[n]+c+1)]++,t.dyn_dtree[2*F(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){Y(t,2,3),I(t,A,w),function(t){16===t.bi_valid?(U(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var n,r,o,i,a=1,s={},l=!1,c=t.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(t);u=u&&u.setTimeout?u:t,n="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){h(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(i="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",d,!1):t.attachEvent("onmessage",d),function(e){t.postMessage(i+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){h(t.data)},function(t){o.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(t){var e=c.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(h,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */t=n.nmd(t),function(){var o,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",d=1,p=2,R=4,m=1,A=2,g=1,v=2,y=4,b=8,M=16,O=32,S=64,w=128,P=256,N=512,L=30,k="...",T=800,x=16,W=1,X=2,_=3,V=1/0,F=9007199254740991,U=17976931348623157e292,Y=NaN,I=4294967295,C=I-1,Z=I>>>1,Q=[["ary",w],["bind",g],["bindKey",v],["curry",b],["curryRight",M],["flip",N],["partial",O],["partialRight",S],["rearg",P]],K="[object Arguments]",E="[object Array]",H="[object AsyncFunction]",G="[object Boolean]",D="[object Date]",B="[object DOMException]",J="[object Error]",j="[object Function]",z="[object GeneratorFunction]",q="[object Map]",$="[object Number]",tt="[object Null]",et="[object Object]",nt="[object Promise]",rt="[object Proxy]",ot="[object RegExp]",it="[object Set]",at="[object String]",st="[object Symbol]",lt="[object Undefined]",ct="[object WeakMap]",ut="[object WeakSet]",ft="[object ArrayBuffer]",ht="[object DataView]",dt="[object Float32Array]",pt="[object Float64Array]",Rt="[object Int8Array]",mt="[object Int16Array]",At="[object Int32Array]",gt="[object Uint8Array]",vt="[object Uint8ClampedArray]",yt="[object Uint16Array]",bt="[object Uint32Array]",Mt=/\b__p \+= '';/g,Ot=/\b(__p \+=) '' \+/g,St=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,Pt=/[&<>"']/g,Nt=RegExp(wt.source),Lt=RegExp(Pt.source),kt=/<%-([\s\S]+?)%>/g,Tt=/<%([\s\S]+?)%>/g,xt=/<%=([\s\S]+?)%>/g,Wt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xt=/^\w*$/,_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vt=/[\\^$.*+?()[\]{}|]/g,Ft=RegExp(Vt.source),Ut=/^\s+/,Yt=/\s/,It=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ct=/\{\n\/\* \[wrapped with (.+)\] \*/,Zt=/,? & /,Qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kt=/[()=,{}\[\]\/\s]/,Et=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gt=/\w*$/,Dt=/^[-+]0x[0-9a-f]+$/i,Bt=/^0b[01]+$/i,Jt=/^\[object .+?Constructor\]$/,jt=/^0o[0-7]+$/i,zt=/^(?:0|[1-9]\d*)$/,qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$t=/($^)/,te=/['\n\r\u2028\u2029\\]/g,ee="\\ud800-\\udfff",ne="\\u0300-\\u036f",re="\\ufe20-\\ufe2f",oe="\\u20d0-\\u20ff",ie=ne+re+oe,ae="\\u2700-\\u27bf",se="a-z\\xdf-\\xf6\\xf8-\\xff",le="\\xac\\xb1\\xd7\\xf7",ce="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ue="\\u2000-\\u206f",fe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="A-Z\\xc0-\\xd6\\xd8-\\xde",de="\\ufe0e\\ufe0f",pe=le+ce+ue+fe,Re="['’]",me="["+ee+"]",Ae="["+pe+"]",ge="["+ie+"]",ve="\\d+",ye="["+ae+"]",be="["+se+"]",Me="[^"+ee+pe+ve+ae+se+he+"]",Oe="\\ud83c[\\udffb-\\udfff]",Se="(?:"+ge+"|"+Oe+")",we="[^"+ee+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+he+"]",ke="\\u200d",Te="(?:"+be+"|"+Me+")",xe="(?:"+Le+"|"+Me+")",We="(?:"+Re+"(?:d|ll|m|re|s|t|ve))?",Xe="(?:"+Re+"(?:D|LL|M|RE|S|T|VE))?",_e=Se+"?",Ve="["+de+"]?",Fe="(?:"+ke+"(?:"+[we,Pe,Ne].join("|")+")"+Ve+_e+")*",Ue="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ye="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ie=Ve+_e+Fe,Ce="(?:"+[ye,Pe,Ne].join("|")+")"+Ie,Ze="(?:"+[we+ge+"?",ge,Pe,Ne,me].join("|")+")",Qe=RegExp(Re,"g"),Ke=RegExp(ge,"g"),Ee=RegExp(Oe+"(?="+Oe+")|"+Ze+Ie,"g"),He=RegExp([Le+"?"+be+"+"+We+"(?="+[Ae,Le,"$"].join("|")+")",xe+"+"+Xe+"(?="+[Ae,Le+Te,"$"].join("|")+")",Le+"?"+Te+"+"+We,Le+"+"+Xe,Ye,Ue,ve,Ce].join("|"),"g"),Ge=RegExp("["+ke+ee+ie+de+"]"),De=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Be=["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"],Je=-1,je={};je[dt]=je[pt]=je[Rt]=je[mt]=je[At]=je[gt]=je[vt]=je[yt]=je[bt]=!0,je[K]=je[E]=je[ft]=je[G]=je[ht]=je[D]=je[J]=je[j]=je[q]=je[$]=je[et]=je[ot]=je[it]=je[at]=je[ct]=!1;var ze={};ze[K]=ze[E]=ze[ft]=ze[ht]=ze[G]=ze[D]=ze[dt]=ze[pt]=ze[Rt]=ze[mt]=ze[At]=ze[q]=ze[$]=ze[et]=ze[ot]=ze[it]=ze[at]=ze[st]=ze[gt]=ze[vt]=ze[yt]=ze[bt]=!0,ze[J]=ze[j]=ze[ct]=!1;var qe={"À":"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"},$e={"&":"&","<":"<",">":">",'"':""","'":"'"},tn={"&":"&","<":"<",">":">",""":'"',"'":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,an="object"==typeof self&&self&&self.Object===Object&&self,sn=on||an||Function("return this")(),ln=e&&!e.nodeType&&e,cn=ln&&t&&!t.nodeType&&t,un=cn&&cn.exports===ln,fn=un&&on.process,hn=function(){try{var t=cn&&cn.require&&cn.require("util").types;return t||fn&&fn.binding&&fn.binding("util")}catch(e){}}(),dn=hn&&hn.isArrayBuffer,pn=hn&&hn.isDate,Rn=hn&&hn.isMap,mn=hn&&hn.isRegExp,An=hn&&hn.isSet,gn=hn&&hn.isTypedArray;function vn(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function yn(t,e,n,r){var o=-1,i=null==t?0:t.length;while(++o-1}function Pn(t,e,n){var r=-1,o=null==t?0:t.length;while(++r-1);return n}function $n(t,e){var n=t.length;while(n--&&Un(e,t[n],0)>-1);return n}function tr(t,e){var n=t.length,r=0;while(n--)t[n]===e&&++r;return r}var er=Qn(qe),nr=Qn($e);function rr(t){return"\\"+en[t]}function or(t,e){return null==t?o:t[e]}function ir(t){return Ge.test(t)}function ar(t){return De.test(t)}function sr(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function lr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function cr(t,e){return function(n){return t(e(n))}}function ur(t,e){var n=-1,r=t.length,o=0,i=[];while(++n-1}function Qr(t,e){var n=this.__data__,r=uo(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Kr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e=e?t:e)),t}function go(t,e,n,r,i,a){var s,l=e&d,c=e&p,u=e&R;if(n&&(s=i?n(t,r,i,a):n(t)),s!==o)return s;if(!Su(t))return t;var f=lu(t);if(f){if(s=es(t),!l)return oa(t,s)}else{var h=za(t),m=h==j||h==z;if(du(t))return Bi(t,l);if(h==et||h==K||m&&!i){if(s=c||m?{}:ns(t),!l)return c?sa(t,po(s,t)):aa(t,ho(s,t))}else{if(!ze[h])return i?t:{};s=rs(t,h,l)}}a||(a=new qr);var A=a.get(t);if(A)return A;a.set(t,s),Uu(t)?t.forEach((function(r){s.add(go(r,e,n,r,t,a))})):Pu(t)&&t.forEach((function(r,o){s.set(o,go(r,e,n,o,t,a))}));var g=u?c?Ca:Ia:c?Sf:Of,v=f?o:g(t);return bn(v||t,(function(r,o){v&&(o=r,r=t[o]),co(s,o,go(r,e,n,o,t,a))})),s}function vo(t){var e=Of(t);return function(n){return yo(n,t,e)}}function yo(t,e,n){var r=n.length;if(null==t)return!r;t=ne(t);while(r--){var i=n[r],a=e[i],s=t[i];if(s===o&&!(i in t)||!a(s))return!1}return!0}function bo(t,e,n){if("function"!=typeof t)throw new ie(l);return ws((function(){t.apply(o,n)}),e)}function Mo(t,e,n,r){var o=-1,i=wn,s=!0,l=t.length,c=[],u=e.length;if(!l)return c;n&&(e=Nn(e,Jn(n))),r?(i=Pn,s=!1):e.length>=a&&(i=zn,s=!1,e=new Jr(e));t:while(++oi?0:i+n),r=r===o||r>i?i:Bu(r),r<0&&(r+=i),r=n>r?0:Ju(r);while(n0&&n(s)?e>1?ko(s,e-1,n,r,o):Ln(o,s):r||(o[o.length]=s)}return o}var To=fa(),xo=fa(!0);function Wo(t,e){return t&&To(t,e,Of)}function Xo(t,e){return t&&xo(t,e,Of)}function _o(t,e){return Sn(e,(function(e){return bu(t[e])}))}function Vo(t,e){e=Ei(e,t);var n=0,r=e.length;while(null!=t&&ne}function Io(t,e){return null!=t&&fe.call(t,e)}function Co(t,e){return null!=t&&e in ne(t)}function Zo(t,e,n){return t>=Ze(e,n)&&t=120&&h.length>=120)?new Jr(l&&h):o}h=t[0];var d=-1,p=c[0];t:while(++d-1)s!==t&&we.call(s,l,1),we.call(t,l,1)}return t}function Ai(t,e){var n=t?e.length:0,r=n-1;while(n--){var o=e[n];if(n==r||o!==i){var i=o;as(o)?we.call(t,o,1):Fi(t,o)}}return t}function gi(t,e){return t+_e(Ge()*(e-t+1))}function vi(t,e,r,o){var i=-1,a=Ce(Xe((e-t)/(r||1)),0),s=n(a);while(a--)s[o?a:++i]=t,t+=r;return s}function yi(t,e){var n="";if(!t||e<1||e>F)return n;do{e%2&&(n+=t),e=_e(e/2),e&&(t+=t)}while(e);return n}function bi(t,e){return Ps(ys(t,e,xh),t+"")}function Mi(t){return io(Qf(t))}function Oi(t,e){var n=Qf(t);return ks(n,Ao(e,0,n.length))}function Si(t,e,n,r){if(!Su(t))return t;e=Ei(e,t);var i=-1,a=e.length,s=a-1,l=t;while(null!=l&&++ii?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;var a=n(i);while(++o>>1,a=t[i];null!==a&&!Iu(a)&&(n?a<=e:a=a){var u=e?null:ka(t);if(u)return fr(u);s=!1,o=zn,c=new Jr}else c=e?[]:l;t:while(++r=r?t:Li(t,e,n)}var Di=Te||function(t){return sn.clearTimeout(t)};function Bi(t,e){if(e)return t.slice();var n=t.length,r=be?be(n):new t.constructor(n);return t.copy(r),r}function Ji(t){var e=new t.constructor(t.byteLength);return new ye(e).set(new ye(t)),e}function ji(t,e){var n=e?Ji(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function zi(t){var e=new t.constructor(t.source,Gt.exec(t));return e.lastIndex=t.lastIndex,e}function qi(t){return vr?ne(vr.call(t)):{}}function $i(t,e){var n=e?Ji(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ta(t,e){if(t!==e){var n=t!==o,r=null===t,i=t===t,a=Iu(t),s=e!==o,l=null===e,c=e===e,u=Iu(e);if(!l&&!u&&!a&&t>e||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&t=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return t.index-e.index}function na(t,e,r,o){var i=-1,a=t.length,s=r.length,l=-1,c=e.length,u=Ce(a-s,0),f=n(c+u),h=!o;while(++l1?n[i-1]:o,s=i>2?n[2]:o;a=t.length>3&&"function"==typeof a?(i--,a):o,s&&ss(n[0],n[1],s)&&(a=i<3?o:a,i=1),e=ne(e);while(++r-1?i[a?e[s]:s]:o}}function ga(t){return Ya((function(e){var n=e.length,r=n,i=Pr.prototype.thru;t&&e.reverse();while(r--){var a=e[r];if("function"!=typeof a)throw new ie(l);if(i&&!s&&"wrapper"==Qa(a))var s=new Pr([],!0)}r=s?r:n;while(++r1&&g.reverse(),h&&ul))return!1;var u=a.get(t),f=a.get(e);if(u&&f)return u==e&&f==t;var h=-1,d=!0,p=n&A?new Jr:o;a.set(t,e),a.set(e,t);while(++h1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(It,"{\n/* [wrapped with "+e+"] */\n")}function is(t){return lu(t)||su(t)||!!(Pe&&t&&t[Pe])}function as(t,e){var n=typeof t;return e=null==e?F:e,!!e&&("number"==n||"symbol"!=n&&zt.test(t))&&t>-1&&t%1==0&&t0){if(++e>=T)return arguments[0]}else e=0;return t.apply(o,arguments)}}function ks(t,e){var n=-1,r=t.length,i=r-1;e=e===o?r:e;while(++n1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,Fl(t,n)}));function Hl(t){var e=Mr(t);return e.__chain__=!0,e}function Gl(t,e){return e(t),t}function Dl(t,e){return e(t)}var Bl=Ya((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return mo(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Nr&&as(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Dl,args:[i],thisArg:o}),new Pr(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)}));function Jl(){return Hl(this)}function jl(){return new Pr(this.value(),this.__chain__)}function zl(){this.__values__===o&&(this.__values__=Gu(this.value()));var t=this.__index__>=this.__values__.length,e=t?o:this.__values__[this.__index__++];return{done:t,value:e}}function ql(){return this}function $l(t){var e,n=this;while(n instanceof wr){var r=_s(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e}function tc(){var t=this.__wrapped__;if(t instanceof Nr){var e=t;return this.__actions__.length&&(e=new Nr(this)),e=e.reverse(),e.__actions__.push({func:Dl,args:[pl],thisArg:o}),new Pr(e,this.__chain__)}return this.thru(pl)}function ec(){return Ii(this.__wrapped__,this.__actions__)}var nc=la((function(t,e,n){fe.call(t,n)?++t[n]:Ro(t,n,1)}));function rc(t,e,n){var r=lu(t)?On:wo;return n&&ss(t,e,n)&&(e=o),r(t,Ea(e,3))}function oc(t,e){var n=lu(t)?Sn:Lo;return n(t,Ea(e,3))}var ic=Aa(Gs),ac=Aa(Ds);function sc(t,e){return ko(mc(t,e),1)}function lc(t,e){return ko(mc(t,e),V)}function cc(t,e,n){return n=n===o?1:Bu(n),ko(mc(t,e),n)}function uc(t,e){var n=lu(t)?bn:Oo;return n(t,Ea(e,3))}function fc(t,e){var n=lu(t)?Mn:So;return n(t,Ea(e,3))}var hc=la((function(t,e,n){fe.call(t,n)?t[n].push(e):Ro(t,n,[e])}));function dc(t,e,n,r){t=uu(t)?t:Qf(t),n=n&&!r?Bu(n):0;var o=t.length;return n<0&&(n=Ce(o+n,0)),Yu(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&Un(t,e,n)>-1}var pc=bi((function(t,e,r){var o=-1,i="function"==typeof e,a=uu(t)?n(t.length):[];return Oo(t,(function(t){a[++o]=i?vn(e,t,r):Eo(t,e,r)})),a})),Rc=la((function(t,e,n){Ro(t,n,e)}));function mc(t,e){var n=lu(t)?Nn:ai;return n(t,Ea(e,3))}function Ac(t,e,n,r){return null==t?[]:(lu(e)||(e=null==e?[]:[e]),n=r?o:n,lu(n)||(n=null==n?[]:[n]),hi(t,e,n))}var gc=la((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));function vc(t,e,n){var r=lu(t)?kn:Kn,o=arguments.length<3;return r(t,Ea(e,4),n,o,Oo)}function yc(t,e,n){var r=lu(t)?Tn:Kn,o=arguments.length<3;return r(t,Ea(e,4),n,o,So)}function bc(t,e){var n=lu(t)?Sn:Lo;return n(t,Zc(Ea(e,3)))}function Mc(t){var e=lu(t)?io:Mi;return e(t)}function Oc(t,e,n){e=(n?ss(t,e,n):e===o)?1:Bu(e);var r=lu(t)?ao:Oi;return r(t,e)}function Sc(t){var e=lu(t)?so:Ni;return e(t)}function wc(t){if(null==t)return 0;if(uu(t))return Yu(t)?Rr(t):t.length;var e=za(t);return e==q||e==it?t.size:ri(t).length}function Pc(t,e,n){var r=lu(t)?xn:ki;return n&&ss(t,e,n)&&(e=o),r(t,Ea(e,3))}var Nc=bi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ss(t,e[0],e[1])?e=[]:n>2&&ss(e[0],e[1],e[2])&&(e=[e[0]]),hi(t,ko(e,1),[])})),Lc=xe||function(){return sn.Date.now()};function kc(t,e){if("function"!=typeof e)throw new ie(l);return t=Bu(t),function(){if(--t<1)return e.apply(this,arguments)}}function Tc(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,xa(t,w,o,o,o,o,e)}function xc(t,e){var n;if("function"!=typeof e)throw new ie(l);return t=Bu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Wc=bi((function(t,e,n){var r=g;if(n.length){var o=ur(n,Ka(Wc));r|=O}return xa(t,r,e,n,o)})),Xc=bi((function(t,e,n){var r=g|v;if(n.length){var o=ur(n,Ka(Xc));r|=O}return xa(e,r,t,n,o)}));function _c(t,e,n){e=n?o:e;var r=xa(t,b,o,o,o,o,o,e);return r.placeholder=_c.placeholder,r}function Vc(t,e,n){e=n?o:e;var r=xa(t,M,o,o,o,o,o,e);return r.placeholder=Vc.placeholder,r}function Fc(t,e,n){var r,i,a,s,c,u,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new ie(l);function R(e){var n=r,a=i;return r=i=o,f=e,s=t.apply(a,n),s}function m(t){return f=t,c=ws(v,e),h?R(t):s}function A(t){var n=t-u,r=t-f,o=e-n;return d?Ze(o,a-r):o}function g(t){var n=t-u,r=t-f;return u===o||n>=e||n<0||d&&r>=a}function v(){var t=Lc();if(g(t))return y(t);c=ws(v,A(t))}function y(t){return c=o,p&&r?R(t):(r=i=o,s)}function b(){c!==o&&Di(c),f=0,r=u=i=c=o}function M(){return c===o?s:y(Lc())}function O(){var t=Lc(),n=g(t);if(r=arguments,i=this,u=t,n){if(c===o)return m(u);if(d)return Di(c),c=ws(v,e),R(u)}return c===o&&(c=ws(v,e)),s}return e=ju(e)||0,Su(n)&&(h=!!n.leading,d="maxWait"in n,a=d?Ce(ju(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),O.cancel=b,O.flush=M,O}var Uc=bi((function(t,e){return bo(t,1,e)})),Yc=bi((function(t,e,n){return bo(t,ju(e)||0,n)}));function Ic(t){return xa(t,N)}function Cc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ie(l);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Cc.Cache||Kr),n}function Zc(t){if("function"!=typeof t)throw new ie(l);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Qc(t){return xc(2,t)}Cc.Cache=Kr;var Kc=Hi((function(t,e){e=1==e.length&&lu(e[0])?Nn(e[0],Jn(Ea())):Nn(ko(e,1),Jn(Ea()));var n=e.length;return bi((function(r){var o=-1,i=Ze(r.length,n);while(++o=e})),su=Ho(function(){return arguments}())?Ho:function(t){return wu(t)&&fe.call(t,"callee")&&!Se.call(t,"callee")},lu=n.isArray,cu=dn?Jn(dn):Go;function uu(t){return null!=t&&Ou(t.length)&&!bu(t)}function fu(t){return wu(t)&&uu(t)}function hu(t){return!0===t||!1===t||wu(t)&&Uo(t)==G}var du=Fe||Jh,pu=pn?Jn(pn):Do;function Ru(t){return wu(t)&&1===t.nodeType&&!_u(t)}function mu(t){if(null==t)return!0;if(uu(t)&&(lu(t)||"string"==typeof t||"function"==typeof t.splice||du(t)||Cu(t)||su(t)))return!t.length;var e=za(t);if(e==q||e==it)return!t.size;if(ds(t))return!ri(t).length;for(var n in t)if(fe.call(t,n))return!1;return!0}function Au(t,e){return Bo(t,e)}function gu(t,e,n){n="function"==typeof n?n:o;var r=n?n(t,e):o;return r===o?Bo(t,e,o,n):!!r}function vu(t){if(!wu(t))return!1;var e=Uo(t);return e==J||e==B||"string"==typeof t.message&&"string"==typeof t.name&&!_u(t)}function yu(t){return"number"==typeof t&&Ue(t)}function bu(t){if(!Su(t))return!1;var e=Uo(t);return e==j||e==z||e==H||e==rt}function Mu(t){return"number"==typeof t&&t==Bu(t)}function Ou(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=F}function Su(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function wu(t){return null!=t&&"object"==typeof t}var Pu=Rn?Jn(Rn):jo;function Nu(t,e){return t===e||zo(t,e,Ga(e))}function Lu(t,e,n){return n="function"==typeof n?n:o,zo(t,e,Ga(e),n)}function ku(t){return Xu(t)&&t!=+t}function Tu(t){if(hs(t))throw new Yt(s);return qo(t)}function xu(t){return null===t}function Wu(t){return null==t}function Xu(t){return"number"==typeof t||wu(t)&&Uo(t)==$}function _u(t){if(!wu(t)||Uo(t)!=et)return!1;var e=Me(t);if(null===e)return!0;var n=fe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ue.call(n)==Re}var Vu=mn?Jn(mn):$o;function Fu(t){return Mu(t)&&t>=-F&&t<=F}var Uu=An?Jn(An):ti;function Yu(t){return"string"==typeof t||!lu(t)&&wu(t)&&Uo(t)==at}function Iu(t){return"symbol"==typeof t||wu(t)&&Uo(t)==st}var Cu=gn?Jn(gn):ei;function Zu(t){return t===o}function Qu(t){return wu(t)&&za(t)==ct}function Ku(t){return wu(t)&&Uo(t)==ut}var Eu=Pa(ii),Hu=Pa((function(t,e){return t<=e}));function Gu(t){if(!t)return[];if(uu(t))return Yu(t)?mr(t):oa(t);if(Ne&&t[Ne])return sr(t[Ne]());var e=za(t),n=e==q?lr:e==it?fr:Qf;return n(t)}function Du(t){if(!t)return 0===t?t:0;if(t=ju(t),t===V||t===-V){var e=t<0?-1:1;return e*U}return t===t?t:0}function Bu(t){var e=Du(t),n=e%1;return e===e?n?e-n:e:0}function Ju(t){return t?Ao(Bu(t),0,I):0}function ju(t){if("number"==typeof t)return t;if(Iu(t))return Y;if(Su(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Su(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Bn(t);var n=Bt.test(t);return n||jt.test(t)?rn(t.slice(2),n?2:8):Dt.test(t)?Y:+t}function zu(t){return ia(t,Sf(t))}function qu(t){return t?Ao(Bu(t),-F,F):0===t?t:0}function $u(t){return null==t?"":_i(t)}var tf=ca((function(t,e){if(ds(e)||uu(e))ia(e,Of(e),t);else for(var n in e)fe.call(e,n)&&co(t,n,e[n])})),ef=ca((function(t,e){ia(e,Sf(e),t)})),nf=ca((function(t,e,n,r){ia(e,Sf(e),t,r)})),rf=ca((function(t,e,n,r){ia(e,Of(e),t,r)})),of=Ya(mo);function af(t,e){var n=Sr(t);return null==e?n:ho(n,e)}var sf=bi((function(t,e){t=ne(t);var n=-1,r=e.length,i=r>2?e[2]:o;i&&ss(e[0],e[1],i)&&(r=1);while(++n1),e})),ia(t,Ca(t),n),r&&(n=go(n,d|p|R,_a));var o=e.length;while(o--)Fi(n,e[o]);return n}));function Tf(t,e){return Wf(t,Zc(Ea(e)))}var xf=Ya((function(t,e){return null==t?{}:di(t,e)}));function Wf(t,e){if(null==t)return{};var n=Nn(Ca(t),(function(t){return[t]}));return e=Ea(e),pi(t,n,(function(t,n){return e(t,n[0])}))}function Xf(t,e,n){e=Ei(e,t);var r=-1,i=e.length;i||(i=1,t=o);while(++re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Ge();return Ze(t+i*(e-t+nn("1e-"+((i+"").length-1))),e)}return gi(t,e)}var Df=pa((function(t,e,n){return e=e.toLowerCase(),t+(n?Bf(e):e)}));function Bf(t){return bh($u(t).toLowerCase())}function Jf(t){return t=$u(t),t&&t.replace(qt,er).replace(Ke,"")}function jf(t,e,n){t=$u(t),e=_i(e);var r=t.length;n=n===o?r:Ao(Bu(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function zf(t){return t=$u(t),t&&Lt.test(t)?t.replace(Pt,nr):t}function qf(t){return t=$u(t),t&&Ft.test(t)?t.replace(Vt,"\\$&"):t}var $f=pa((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),th=pa((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),eh=da("toLowerCase");function nh(t,e,n){t=$u(t),e=Bu(e);var r=e?Rr(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Oa(_e(o),n)+t+Oa(Xe(o),n)}function rh(t,e,n){t=$u(t),e=Bu(e);var r=e?Rr(t):0;return e&&r>>0,n?(t=$u(t),t&&("string"==typeof e||null!=e&&!Vu(e))&&(e=_i(e),!e&&ir(t))?Gi(mr(t),0,n):t.split(e,n)):[]}var uh=pa((function(t,e,n){return t+(n?" ":"")+bh(e)}));function fh(t,e,n){return t=$u(t),n=null==n?0:Ao(Bu(n),0,t.length),e=_i(e),t.slice(n,n+e.length)==e}function hh(t,e,n){var r=Mr.templateSettings;n&&ss(t,e,n)&&(e=o),t=$u(t),e=nf({},e,r,Wa);var i,a,s=nf({},e.imports,r.imports,Wa),l=Of(s),u=jn(s,l),f=0,h=e.interpolate||$t,d="__p += '",p=re((e.escape||$t).source+"|"+h.source+"|"+(h===xt?Ht:$t).source+"|"+(e.evaluate||$t).source+"|$","g"),R="//# sourceURL="+(fe.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";t.replace(p,(function(e,n,r,o,s,l){return r||(r=o),d+=t.slice(f,l).replace(te,rr),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=l+e.length,e})),d+="';\n";var m=fe.call(e,"variable")&&e.variable;if(m){if(Kt.test(m))throw new Yt(c)}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(Mt,""):d).replace(Ot,"$1").replace(St,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var A=Oh((function(){return Qt(l,R+"return "+d).apply(o,u)}));if(A.source=d,vu(A))throw A;return A}function dh(t){return $u(t).toLowerCase()}function ph(t){return $u(t).toUpperCase()}function Rh(t,e,n){if(t=$u(t),t&&(n||e===o))return Bn(t);if(!t||!(e=_i(e)))return t;var r=mr(t),i=mr(e),a=qn(r,i),s=$n(r,i)+1;return Gi(r,a,s).join("")}function mh(t,e,n){if(t=$u(t),t&&(n||e===o))return t.slice(0,Ar(t)+1);if(!t||!(e=_i(e)))return t;var r=mr(t),i=$n(r,mr(e))+1;return Gi(r,0,i).join("")}function Ah(t,e,n){if(t=$u(t),t&&(n||e===o))return t.replace(Ut,"");if(!t||!(e=_i(e)))return t;var r=mr(t),i=qn(r,mr(e));return Gi(r,i).join("")}function gh(t,e){var n=L,r=k;if(Su(e)){var i="separator"in e?e.separator:i;n="length"in e?Bu(e.length):n,r="omission"in e?_i(e.omission):r}t=$u(t);var a=t.length;if(ir(t)){var s=mr(t);a=s.length}if(n>=a)return t;var l=n-Rr(r);if(l<1)return r;var c=s?Gi(s,0,l).join(""):t.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),Vu(i)){if(t.slice(l).search(i)){var u,f=c;i.global||(i=re(i.source,$u(Gt.exec(i))+"g")),i.lastIndex=0;while(u=i.exec(f))var h=u.index;c=c.slice(0,h===o?l:h)}}else if(t.indexOf(_i(i),l)!=l){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r}function vh(t){return t=$u(t),t&&Nt.test(t)?t.replace(wt,gr):t}var yh=pa((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),bh=da("toUpperCase");function Mh(t,e,n){return t=$u(t),e=n?o:e,e===o?ar(t)?br(t):_n(t):t.match(e)||[]}var Oh=bi((function(t,e){try{return vn(t,o,e)}catch(n){return vu(n)?n:new Yt(n)}})),Sh=Ya((function(t,e){return bn(e,(function(e){e=xs(e),Ro(t,e,Wc(t[e],t))})),t}));function wh(t){var e=null==t?0:t.length,n=Ea();return t=e?Nn(t,(function(t){if("function"!=typeof t[1])throw new ie(l);return[n(t[0]),t[1]]})):[],bi((function(n){var r=-1;while(++rF)return[];var n=I,r=Ze(t,I);e=Ea(e),t-=I;var o=Gn(r,e);while(++n0||e<0)?new Nr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(e=Bu(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Nr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Nr.prototype.toArray=function(){return this.take(I)},Wo(Nr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Mr[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);i&&(Mr.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,l=e instanceof Nr,c=s[0],u=l||lu(e),f=function(t){var e=i.apply(Mr,Ln([t],s));return r&&h?e[0]:e};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,R=l&&!d;if(!a&&u){e=R?e:new Nr(this);var m=t.apply(e,s);return m.__actions__.push({func:Dl,args:[f],thisArg:o}),new Pr(m,h)}return p&&R?t.apply(this,s):(m=this.thru(f),p?r?m.value()[0]:m.value():m)})})),bn(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ae[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Mr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(lu(o)?o:[],t)}return this[n]((function(n){return e.apply(lu(n)?n:[],t)}))}})),Wo(Nr.prototype,(function(t,e){var n=Mr[e];if(n){var r=n.name+"";fe.call(cn,r)||(cn[r]=[]),cn[r].push({name:e,func:n})}})),cn[va(o,v).name]=[{name:"wrapper",func:o}],Nr.prototype.clone=Lr,Nr.prototype.reverse=kr,Nr.prototype.value=Tr,Mr.prototype.at=Bl,Mr.prototype.chain=Jl,Mr.prototype.commit=jl,Mr.prototype.next=zl,Mr.prototype.plant=$l,Mr.prototype.reverse=tc,Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=ec,Mr.prototype.first=Mr.prototype.head,Ne&&(Mr.prototype[Ne]=ql),Mr},Or=Mr();sn._=Or,r=function(){return Or}.call(e,n,e,t),r===o||(t.exports=r)}.call(this)},9744:function(){},4991:function(){},9091:function(){},8627:function(){},8374:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=15),+parseFloat(Number(t).toPrecision(e))}function o(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function i(t){if(-1===t.toString().indexOf("e"))return Number(t.toString().replace(".",""));var e=o(t);return e>0?r(Number(t)*Math.pow(10,e)):Number(t)}function a(t){d&&(t>Number.MAX_SAFE_INTEGER||t0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=100?t:"string"===typeof t&&t.includes("%")?e&&"X"===e?Math.round(parseFloat(t)/100*n.width):e&&"Y"===e?Math.round(parseFloat(t)/100*n.height):Math.round(parseFloat(t)/100*n.width):0}function rt(t){return t.replace(/[xy]/g,(function(t){var e=16*Math.random()|0,n="x"===t?e:3&e|8;return n.toString(16)}))}function ot(t){return"undefined"===typeof t||null==t?"":t.toString().replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function it(t){return"number"===typeof t&&t>100?t:("string"===typeof t&&(t=Number(t.replace(/in*/gi,""))),Math.round(f*t))}function at(t){var e=Number(t)||0;return isNaN(e)?0:Math.round(e*h)}function st(t){return t=t||0,Math.round(6e4*(t>360?t-360:t))}function lt(t){var e=t.toString(16);return 1===e.length?"0"+e:e}function ct(t,e,n){return(lt(t)+lt(e)+lt(n)).toUpperCase()}function ut(t,e){var n=(t||"").replace("#","");R.test(n)||n===K.background1||n===K.background2||n===K.text1||n===K.text2||n===K.accent1||n===K.accent2||n===K.accent3||n===K.accent4||n===K.accent5||n===K.accent6||(console.warn('"'.concat(n,'" is not a valid scheme color or hex RGB! "').concat(M,"\" used instead. Only provide 6-digit RGB or 'pptx.SchemeColor' values!")),n=M);var r=R.test(n)?"srgbClr":"schemeClr",o='val="'+(R.test(n)?n.toUpperCase():n)+'"';return e?"").concat(e,""):"")}function ft(t,e){var n="",r=i(i({},e),t),o=Math.round(r.size*h),a=r.color,s=Math.round(1e5*r.opacity);return n+=''),n+=ut(a,'')),n+="",n}function ht(t){var e="solid",n="",r="",o="";if(t)switch("string"===typeof t?n=t:(t.type&&(e=t.type),t.color&&(n=t.color),t.alpha&&(r+='')),t.transparency&&(r+=''))),e){case"solid":o+="".concat(ut(n,r),"");break;default:o+="";break}return o}function dt(t){return t._rels.length+t._relsChart.length+t._relsMedia.length+1}function pt(t){if(t&&"object"===typeof t)return"outer"!==t.type&&"inner"!==t.type&&"none"!==t.type&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),t.type="outer"),t.angle&&((isNaN(Number(t.angle))||t.angle<0||t.angle>359)&&(console.warn("Warning: shadow.angle can only be 0-359"),t.angle=270),t.angle=Math.round(Number(t.angle))),t.opacity&&((isNaN(Number(t.opacity))||t.opacity<0||t.opacity>1)&&(console.warn("Warning: shadow.opacity can only be 0-1"),t.opacity=.75),t.opacity=Number(t.opacity)),t.color&&t.color.startsWith("#")&&(console.warn('Warning: shadow.color should not include hash (#) character, , e.g. "FF0000"'),t.color=t.color.replace("#","")),t}function Rt(t,e,n){var r,o,a=2.3+((null===(r=t.options)||void 0===r?void 0:r.autoPageCharWeight)?t.options.autoPageCharWeight:0),s=Math.floor(e/h*f)/(((null===(o=t.options)||void 0===o?void 0:o.fontSize)?t.options.fontSize:O)/a),l=[],c=[],u=[],d=[];t.text&&0===t.text.toString().trim().length?c.push({_type:j.tablecell,text:" "}):"number"===typeof t.text||"string"===typeof t.text?c.push({_type:j.tablecell,text:(t.text||"").toString().trim()}):Array.isArray(t.text)&&(c=t.text),n&&(console.log("[1/4] inputCells"),c.forEach((function(t,e){return console.log("[1/4] [".concat(e+1,"] cell: ").concat(JSON.stringify(t)))})));var p=[];return c.forEach((function(t){var e;"string"===typeof t.text&&(t.text.split("\n").length>1?t.text.split("\n").forEach((function(e){p.push({_type:j.tablecell,text:e,options:i(i({},t.options),{breakLine:!0})})})):p.push({_type:j.tablecell,text:t.text.trim(),options:t.options}),(null===(e=t.options)||void 0===e?void 0:e.breakLine)&&(n&&console.log("inputCells: new line > ".concat(JSON.stringify(p))),u.push(p),p=[])),p.length>0&&(u.push(p),p=[])})),n&&(console.log("[2/4] inputLines1 (".concat(u.length,")")),u.forEach((function(t,e){return console.log("[2/4] [".concat(e+1,"] line: ").concat(JSON.stringify(t)))}))),u.forEach((function(t){t.forEach((function(t){var e=[],n=String(t.text),r=n.split(" ");r.forEach((function(n,o){var a=i({},t.options);(null===a||void 0===a?void 0:a.breakLine)&&(a.breakLine=o+1===r.length),e.push({_type:j.tablecell,text:n+(o+1s&&(l.push(e),e=[],n=""),e.push(t),n+=t.text.toString()})),e.length>0&&l.push(e)})),n&&(console.log("[4/4] parsedLines (".concat(l.length,")")),l.forEach((function(t,e){return console.log("[4/4] [Line ".concat(e+1,"]:\n").concat(JSON.stringify(t)))})),console.log("...............................................\n\n")),l}function mt(t,e,n,r){void 0===t&&(t=[]),void 0===e&&(e={});var o=k,i=1*f,a=1*f,s=0,l=0,c=[],u=nt(e.x,"X",n),h=nt(e.y,"Y",n),d=nt(e.w,"X",n),p=nt(e.h,"Y",n),R=d;function A(){var t=0;0===c.length&&(t=h||it(o[0])),c.length>0&&(t=it(e.autoPageSlideStartY||e.newSlideStartY||o[0])),a=(p||n.height)-t-it(o[2]),c.length>1&&("number"===typeof e.autoPageSlideStartY?a=(p||n.height)-it(e.autoPageSlideStartY+o[2]):"number"===typeof e.newSlideStartY?a=(p||n.height)-it(e.newSlideStartY+o[2]):h&&(a=(p||n.height)-it((h/f=n&&r=h&&(h=t._lineHeight)})),s+h>a){e.verbose&&(console.log("\n|-----------------------------------------------------------------------|"),console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ".concat((s/f).toFixed(2)," + ").concat((p._lineHeight/f).toFixed(2)," > ").concat(a/f)),console.log("|-----------------------------------------------------------------------|\n\n")),l.length>0&&l.map((function(t){return t.text.length})).reduce((function(t,e){return t+e}))>0&&b.rows.push(l),c.push(b);var g=[];b={rows:g},l=[],t.forEach((function(t){return l.push({_type:j.tablecell,text:[],options:t.options})})),A(),s+=o+i,e.verbose&&console.log("| SLIDE [".concat(c.length,"]: emuSlideTabH ...... = ").concat((a/f).toFixed(1)," ")),s=0,(e.addHeaderToEach||e.autoPageRepeatHeader)&&e._arrObjTabHeadRows&&e._arrObjTabHeadRows.forEach((function(t){var e=[],n=0;t.forEach((function(t){e.push(t),t._lineHeight>n&&(n=t._lineHeight)})),b.rows.push(e),s+=n})),R=l[u]}var v=p._lines.shift();Array.isArray(R.text)&&(v?R.text=R.text.concat(v):0===R.text.length&&(R.text=R.text.concat({_type:j.tablecell,text:""}))),u===r.length-1&&(s+=h),u=u0&&b.rows.push(l),e.verbose&&console.log("- SLIDE [".concat(c.length,"]: ROW [").concat(n,"]: ...COMPLETE ...... emuTabCurrH = ").concat((s/f).toFixed(2)," ( emuSlideTabH = ").concat((a/f).toFixed(2)," )"))})),c.push(b),e.verbose&&(console.log("\n|================================================|"),console.log("| FINAL: tableRowSlides.length = ".concat(c.length)),c.forEach((function(t){return console.log(t)})),console.log("|================================================|\n\n")),c}function At(t,e,n,r){void 0===n&&(n={});var o=n||{};o.slideMargin=o.slideMargin||0===o.slideMargin?o.slideMargin:.5;var i=o.w||t.presLayout.width,a=[],s=[],c=[],u=[],h=[],d=[.5,.5,.5,.5],p=0;if(!document.getElementById(e))throw new Error('tableToSlides: Table ID "'+e+'" does not exist!');(null===r||void 0===r?void 0:r._margin)?(Array.isArray(r._margin)?d=r._margin:isNaN(r._margin)||(d=[r._margin,r._margin,r._margin,r._margin]),o.slideMargin=d):(null===o||void 0===o?void 0:o.slideMargin)&&(Array.isArray(o.slideMargin)?d=o.slideMargin:isNaN(o.slideMargin)||(d=[o.slideMargin,o.slideMargin,o.slideMargin,o.slideMargin])),i=(o.w?it(o.w):t.presLayout.width)-it(d[1]+d[3]),o.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- `tableToSlides` ----------------------------------------------------|"),console.log("| tableProps.h .................................... = ".concat(o.h)),console.log("| tableProps.w .................................... = ".concat(o.w)),console.log("| pptx.presLayout.width ........................... = ".concat((t.presLayout.width/f).toFixed(1))),console.log("| pptx.presLayout.height .......................... = ".concat((t.presLayout.height/f).toFixed(1))),console.log("| emuSlideTabW .................................... = ".concat((i/f).toFixed(1))));var R=document.querySelectorAll("#".concat(e," tr:first-child th"));0===R.length&&(R=document.querySelectorAll("#".concat(e," tr:first-child td"))),R.forEach((function(t){if(t.getAttribute("colspan"))for(var e=0;er?o:r)})),o.verbose&&console.log("| arrColW ......................................... = [".concat(u.join(", "),"]"));var m=["thead","tbody","tfoot"];m.forEach((function(t){document.querySelectorAll("#".concat(e," ").concat(t," tr")).forEach((function(e){var n=[];switch(Array.from(e.cells).forEach((function(t){var e=window.getComputedStyle(t).getPropertyValue("color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(","),r=window.getComputedStyle(t).getPropertyValue("background-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");("rgba(0, 0, 0, 0)"===window.getComputedStyle(t).getPropertyValue("background-color")||window.getComputedStyle(t).getPropertyValue("transparent"))&&(r=["255","255","255"]);var o={align:null,bold:!!("bold"===window.getComputedStyle(t).getPropertyValue("font-weight")||Number(window.getComputedStyle(t).getPropertyValue("font-weight"))>=500),border:null,color:ct(Number(e[0]),Number(e[1]),Number(e[2])),fill:{color:ct(Number(r[0]),Number(r[1]),Number(r[2]))},fontFace:(window.getComputedStyle(t).getPropertyValue("font-family")||"").split(",")[0].replace(/"/g,"").replace("inherit","").replace("initial","")||null,fontSize:Number(window.getComputedStyle(t).getPropertyValue("font-size").replace(/[a-z]/gi,"")),margin:null,colspan:Number(t.getAttribute("colspan"))||null,rowspan:Number(t.getAttribute("rowspan"))||null,valign:null};if(["left","center","right","start","end"].includes(window.getComputedStyle(t).getPropertyValue("text-align"))){var i=window.getComputedStyle(t).getPropertyValue("text-align").replace("start","left").replace("end","right");o.align="center"===i?"center":"left"===i?"left":"right"===i?"right":null}if(["top","middle","bottom"].includes(window.getComputedStyle(t).getPropertyValue("vertical-align"))){var a=window.getComputedStyle(t).getPropertyValue("vertical-align");o.valign="top"===a?"top":"middle"===a?"middle":"bottom"===a?"bottom":null}if(window.getComputedStyle(t).getPropertyValue("padding-left")){o.margin=[0,0,0,0];var s=["padding-top","padding-right","padding-bottom","padding-left"];s.forEach((function(e,n){o.margin[n]=Math.round(Number(window.getComputedStyle(t).getPropertyValue(e).replace(/\D/gi,"")))}))}if(window.getComputedStyle(t).getPropertyValue("border-top-width")||window.getComputedStyle(t).getPropertyValue("border-right-width")||window.getComputedStyle(t).getPropertyValue("border-bottom-width")||window.getComputedStyle(t).getPropertyValue("border-left-width")){o.border=[null,null,null,null];var l=["top","right","bottom","left"];l.forEach((function(e,n){var r=Math.round(Number(window.getComputedStyle(t).getPropertyValue("border-"+e+"-width").replace("px",""))),i=[];i=window.getComputedStyle(t).getPropertyValue("border-"+e+"-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");var a=ct(Number(i[0]),Number(i[1]),Number(i[2]));o.border[n]={pt:r,color:a}}))}n.push({_type:j.tablecell,text:t.innerText,options:o})})),t){case"thead":a.push(n);break;case"tbody":s.push(n);break;case"tfoot":c.push(n);break;default:console.log("table parsing: unexpected table part: ".concat(t));break}}))})),o._arrObjTabHeadRows=a||null,o.colW=u,mt(l(l(l([],a,!0),s,!0),c,!0),o,t.presLayout,r).forEach((function(e,n){var r=t.addSlide({masterName:o.masterSlideName||null});0===n&&(o.y=o.y||d[0]),n>0&&(o.y=o.autoPageSlideStartY||o.newSlideStartY||d[0]),o.verbose&&console.log("| opts.autoPageSlideStartY: ".concat(o.autoPageSlideStartY," / arrInchMargins[0]: ").concat(d[0]," => opts.y = ").concat(o.y)),r.addTable(e.rows,{x:o.x||d[3],y:o.y,w:Number(i)/f,colW:u,autoPage:!1}),o.addImage&&(o.addImage.options=o.addImage.options||{},o.addImage.image&&(o.addImage.image.path||o.addImage.image.data)?r.addImage({path:o.addImage.image.path,data:o.addImage.image.data,x:o.addImage.options.x,y:o.addImage.options.y,w:o.addImage.options.w,h:o.addImage.options.h}):console.warn("Warning: tableToSlides.addImage requires either `path` or `data`")),o.addShape&&r.addShape(o.addShape.shapeName,o.addShape.options||{}),o.addTable&&r.addTable(o.addTable.rows,o.addTable.options||{}),o.addText&&r.addText(o.addText.text,o.addText.options||{})}))}var gt=0;function vt(t,e){t.bkgd&&(e.bkgd=t.bkgd),t.objects&&Array.isArray(t.objects)&&t.objects.length>0&&t.objects.forEach((function(t,n){var r=Object.keys(t)[0],o=e;J[r]&&"chart"===r?yt(o,t[r].type,t[r].data,t[r].opts):J[r]&&"image"===r?bt(o,t[r]):J[r]&&"line"===r?St(o,G.LINE,t[r]):J[r]&&"rect"===r?St(o,G.RECTANGLE,t[r]):J[r]&&"text"===r?Pt(o,[{text:t[r].text}],t[r].options,!1):J[r]&&"placeholder"===r&&(t[r].options.placeholder=t[r].options.name,delete t[r].options.name,t[r].options._placeholderType=t[r].options.type,delete t[r].options.type,t[r].options._placeholderIdx=100+n,Pt(o,[{text:t[r].text}],t[r].options,!0))})),t.slideNumber&&"object"===typeof t.slideNumber&&(e._slideNumberProps=t.slideNumber)}function yt(t,e,n,r){var o;function i(t){t&&"none"!==t.style&&(void 0!==t.size&&(isNaN(Number(t.size))||t.size<=0)&&(console.warn("Warning: chart.gridLine.size must be greater than 0."),delete t.size),t.style&&!["solid","dash","dot"].includes(t.style)&&(console.warn("Warning: chart.gridLine.style options: `solid`, `dash`, `dot`."),delete t.style),t.cap&&!["flat","square","round"].includes(t.cap)&&(console.warn("Warning: chart.gridLine.cap options: `flat`, `square`, `round`."),delete t.cap))}var a=++gt,s={_type:null,text:null,options:null,chartRid:null},l=null,c=[];Array.isArray(e)?(e.forEach((function(t){c=c.concat(t.data)})),l=n||r):(c=n,l=r),c.forEach((function(t,e){t._dataIndex=e,void 0===t.labels||Array.isArray(t.labels[0])||(t.labels=[t.labels])}));var u=l&&"object"===typeof l?l:{};return u._type=e,u.x="undefined"===typeof u.x||null==u.x||isNaN(Number(u.x))?1:u.x,u.y="undefined"===typeof u.y||null==u.y||isNaN(Number(u.y))?1:u.y,u.w=u.w||"50%",u.h=u.h||"50%",u.objectName=u.objectName?ot(u.objectName):"Chart ".concat(t._slideObjects.filter((function(t){return t._type===j.chart})).length),["bar","col"].includes(u.barDir||"")||(u.barDir="col"),u._type===D.AREA&&(["stacked","standard","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="standard")),u._type===D.BAR&&(["clustered","stacked","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="clustered")),u._type===D.BAR3D&&(["clustered","stacked","standard","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="standard")),(null===(o=u.barGrouping)||void 0===o?void 0:o.includes("tacked"))&&(u.barGapWidthPct||(u.barGapWidthPct=50)),u.dataLabelPosition&&(u._type!==D.AREA&&u._type!==D.BAR3D&&u._type!==D.DOUGHNUT&&u._type!==D.RADAR||delete u.dataLabelPosition,u._type===D.PIE&&(["bestFit","ctr","inEnd","outEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition),u._type!==D.BUBBLE&&u._type!==D.BUBBLE3D&&u._type!==D.LINE&&u._type!==D.SCATTER||["b","ctr","l","r","t"].includes(u.dataLabelPosition)||delete u.dataLabelPosition,u._type===D.BAR&&(["stacked","percentStacked"].includes(u.barGrouping||"")||["ctr","inBase","inEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition,["clustered"].includes(u.barGrouping||"")||["ctr","inBase","inEnd","outEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition)),u.dataLabelBkgrdColors=!(!u.dataLabelBkgrdColors&&u.dataLabelBkgrdColors)&&u.dataLabelBkgrdColors,["b","l","r","t","tr"].includes(u.legendPos||"")||(u.legendPos="r"),["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"].includes(u.bar3DShape||"")||(u.bar3DShape="box"),["circle","dash","diamond","dot","none","square","triangle"].includes(u.lineDataSymbol||"")||(u.lineDataSymbol="circle"),["gap","span"].includes(u.displayBlanksAs||"")||(u.displayBlanksAs="span"),["standard","marker","filled"].includes(u.radarStyle||"")||(u.radarStyle="standard"),u.lineDataSymbolSize=u.lineDataSymbolSize&&!isNaN(u.lineDataSymbolSize)?u.lineDataSymbolSize:6,u.lineDataSymbolLineSize=u.lineDataSymbolLineSize&&!isNaN(u.lineDataSymbolLineSize)?at(u.lineDataSymbolLineSize):at(.75),u.layout&&["x","y","w","h"].forEach((function(t){var e=u.layout[t];(isNaN(Number(e))||e<0||e>1)&&(console.warn("Warning: chart.layout."+t+" can only be 0-1"),delete u.layout[t])})),u.catGridLine=u.catGridLine||(u._type===D.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),u.valGridLine=u.valGridLine||(u._type===D.SCATTER?{color:"D9D9D9",size:1}:{}),u.serGridLine=u.serGridLine||(u._type===D.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),i(u.catGridLine),i(u.valGridLine),i(u.serGridLine),pt(u.shadow),u.showDataTable=!(!u.showDataTable&&u.showDataTable)&&u.showDataTable,u.showDataTableHorzBorder=!(u.showDataTableHorzBorder||!u.showDataTableHorzBorder)||u.showDataTableHorzBorder,u.showDataTableVertBorder=!(u.showDataTableVertBorder||!u.showDataTableVertBorder)||u.showDataTableVertBorder,u.showDataTableOutline=!(u.showDataTableOutline||!u.showDataTableOutline)||u.showDataTableOutline,u.showDataTableKeys=!(u.showDataTableKeys||!u.showDataTableKeys)||u.showDataTableKeys,u.showLabel=!(!u.showLabel&&u.showLabel)&&u.showLabel,u.showLegend=!(!u.showLegend&&u.showLegend)&&u.showLegend,u.showPercent=!(u.showPercent||!u.showPercent)||u.showPercent,u.showTitle=!(!u.showTitle&&u.showTitle)&&u.showTitle,u.showValue=!(!u.showValue&&u.showValue)&&u.showValue,u.showLeaderLines=!(!u.showLeaderLines&&u.showLeaderLines)&&u.showLeaderLines,u.catAxisLineShow="undefined"===typeof u.catAxisLineShow||u.catAxisLineShow,u.valAxisLineShow="undefined"===typeof u.valAxisLineShow||u.valAxisLineShow,u.serAxisLineShow="undefined"===typeof u.serAxisLineShow||u.serAxisLineShow,u.v3DRotX=!isNaN(u.v3DRotX)&&u.v3DRotX>=-90&&u.v3DRotX<=90?u.v3DRotX:30,u.v3DRotY=!isNaN(u.v3DRotY)&&u.v3DRotY>=0&&u.v3DRotY<=360?u.v3DRotY:30,u.v3DRAngAx=!(u.v3DRAngAx||!u.v3DRAngAx)||u.v3DRAngAx,u.v3DPerspective=!isNaN(u.v3DPerspective)&&u.v3DPerspective>=0&&u.v3DPerspective<=240?u.v3DPerspective:30,u.barGapWidthPct=!isNaN(u.barGapWidthPct)&&u.barGapWidthPct>=0&&u.barGapWidthPct<=1e3?u.barGapWidthPct:150,u.barGapDepthPct=!isNaN(u.barGapDepthPct)&&u.barGapDepthPct>=0&&u.barGapDepthPct<=1e3?u.barGapDepthPct:150,u.chartColors=Array.isArray(u.chartColors)?u.chartColors:u._type===D.PIE||u._type===D.DOUGHNUT?I:Y,u.chartColorsOpacity=u.chartColorsOpacity&&!isNaN(u.chartColorsOpacity)?u.chartColorsOpacity:null,u.border=u.border&&"object"===typeof u.border?u.border:null,!u.border||u.border.pt&&!isNaN(u.border.pt)||(u.border.pt=y.pt),!u.border||u.border.color&&"string"===typeof u.border.color||(u.border.color=y.color),u.plotArea=u.plotArea||{},u.plotArea.border=u.plotArea.border&&"object"===typeof u.plotArea.border?u.plotArea.border:null,!u.plotArea.border||u.plotArea.border.pt&&!isNaN(u.plotArea.border.pt)||(u.plotArea.border.pt=y.pt),!u.plotArea.border||u.plotArea.border.color&&"string"===typeof u.plotArea.border.color||(u.plotArea.border.color=y.color),u.border&&(u.plotArea.border=u.border),u.plotArea.fill=u.plotArea.fill||{color:null,transparency:null},u.fill&&(u.plotArea.fill.color=u.fill),u.chartArea=u.chartArea||{},u.chartArea.border=u.chartArea.border&&"object"===typeof u.chartArea.border?u.chartArea.border:null,u.chartArea.border&&(u.chartArea.border={color:u.chartArea.border.color||y.color,pt:u.chartArea.border.pt||y.pt}),u.chartArea.roundedCorners="boolean"!==typeof u.chartArea.roundedCorners||u.chartArea.roundedCorners,u.dataBorder=u.dataBorder&&"object"===typeof u.dataBorder?u.dataBorder:null,!u.dataBorder||u.dataBorder.pt&&!isNaN(u.dataBorder.pt)||(u.dataBorder.pt=.75),!u.dataBorder||u.dataBorder.color&&"string"===typeof u.dataBorder.color&&6===u.dataBorder.color.length||(u.dataBorder.color="F9F9F9"),u.dataLabelFormatCode||u._type!==D.SCATTER||(u.dataLabelFormatCode="General"),u.dataLabelFormatCode||u._type!==D.PIE&&u._type!==D.DOUGHNUT||(u.dataLabelFormatCode=u.showPercent?"0%":"General"),u.dataLabelFormatCode=u.dataLabelFormatCode&&"string"===typeof u.dataLabelFormatCode?u.dataLabelFormatCode:"#,##0",u.dataLabelFormatScatter||u._type!==D.SCATTER||(u.dataLabelFormatScatter="custom"),u.lineSize="number"===typeof u.lineSize?u.lineSize:2,u.valAxisMajorUnit="number"===typeof u.valAxisMajorUnit?u.valAxisMajorUnit:null,u._type===D.AREA||u._type===D.BAR||u._type===D.BAR3D||u._type===D.LINE?u.catAxisMultiLevelLabels=!!u.catAxisMultiLevelLabels:delete u.catAxisMultiLevelLabels,s._type="chart",s.options=u,s.chartRid=dt(t),t._relsChart.push({rId:dt(t),data:c,opts:u,type:u._type,globalId:a,fileName:"chart".concat(a,".xml"),Target:"/ppt/charts/chart".concat(a,".xml")}),t._slideObjects.push(s),s}function bt(t,e){var n={_type:null,text:null,options:null,image:null,imageRid:null,hyperlink:null},r=e.x||0,o=e.y||0,i=e.w||0,a=e.h||0,s=e.sizing||null,l=e.hyperlink||"",c=e.data||"",u=e.path||"",f=dt(t),h=e.objectName?ot(e.objectName):"Image ".concat(t._slideObjects.filter((function(t){return t._type===j.image})).length);if(!u&&!c)return console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"),null;if(u&&"string"!==typeof u)return console.error("ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ".concat(String(u))),null;if(c&&"string"!==typeof c)return console.error("ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ".concat(String(c))),null;if(c&&"string"===typeof c&&!c.toLowerCase().includes("base64,"))return console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"),null;var d=(u.substring(u.lastIndexOf("/")+1).split("?")[0].split(".").pop().split("#")[0]||"png").toLowerCase();if(c&&/image\/(\w+);/.exec(c)&&/image\/(\w+);/.exec(c).length>0?d=/image\/(\w+);/.exec(c)[1]:(null===c||void 0===c?void 0:c.toLowerCase().includes("image/svg+xml"))&&(d="svg"),n._type=j.image,n.image=u||"preencoded.png",n.options={x:r||0,y:o||0,w:i||1,h:a||1,altText:e.altText||"",rounding:"boolean"===typeof e.rounding&&e.rounding,sizing:s,placeholder:e.placeholder,rotate:e.rotate||0,flipV:e.flipV||!1,flipH:e.flipH||!1,transparency:e.transparency||0,objectName:h,shadow:pt(e.shadow)},"svg"===d)t._relsMedia.push({path:u||c+"png",type:"image/png",extn:"png",data:c||"",rId:f,Target:"../media/image-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".png"),isSvgPng:!0,svgSize:{w:nt(n.options.w,"X",t._presLayout),h:nt(n.options.h,"Y",t._presLayout)}}),n.imageRid=f,t._relsMedia.push({path:u||c,type:"image/svg+xml",extn:d,data:c||"",rId:f+1,Target:"../media/image-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".").concat(d)}),n.imageRid=f+1;else{var p=t._relsMedia.filter((function(t){return t.path&&t.path===u&&t.type==="image/"+d&&!t.isDuplicate}))[0];t._relsMedia.push({path:u||"preencoded."+d,type:"image/"+d,extn:d,data:c||"",rId:f,isDuplicate:!!(null===p||void 0===p?void 0:p.Target),Target:(null===p||void 0===p?void 0:p.Target)?p.Target:"../media/image-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".").concat(d)}),n.imageRid=f}if("object"===typeof l){if(!l.url&&!l.slide)throw new Error("ERROR: `hyperlink` option requires either: `url` or `slide`");f++,t._rels.push({type:j.hyperlink,data:l.slide?"slide":"dummy",rId:f,Target:l.url||l.slide.toString()}),l._rId=f,n.hyperlink=l}t._slideObjects.push(n)}function Mt(t,e){var n=e.x||0,r=e.y||0,o=e.w||2,i=e.h||2,a=e.data||"",s=e.link||"",l=e.path||"",c=e.type||"audio",u="",f=e.cover||et,h=e.objectName?ot(e.objectName):"Media ".concat(t._slideObjects.filter((function(t){return t._type===j.media})).length),d={_type:j.media};if(!l&&!a&&"online"!==c)throw new Error("addMedia() error: either `data` or `path` are required!");if(a&&!a.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')");if(f&&!f.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `cover` value lacks a base64 header! Ex: 'data:image/png;base64,iV[...]')");if("online"===c&&!s)throw new Error("addMedia() error: online videos require `link` value");if(u=e.extn||(a?a.split(";")[0].split("/")[1]:l.split(".").pop())||"mp3",d.mtype=c,d.media=l||"preencoded.mov",d.options={},d.options.x=n,d.options.y=r,d.options.w=o,d.options.h=i,d.options.objectName=h,"online"===c){var p=dt(t);t._relsMedia.push({path:l||"preencoded"+u,data:"dummy",type:"online",extn:u,rId:p,Target:s}),d.mediaRid=p,t._relsMedia.push({path:"preencoded.png",data:f,type:"image/png",extn:"png",rId:dt(t),Target:"../media/image-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".png")})}else{var R=t._relsMedia.filter((function(t){return t.path&&t.path===l&&t.type===c+"/"+u&&!t.isDuplicate}))[0];p=dt(t);t._relsMedia.push({path:l||"preencoded"+u,type:c+"/"+u,extn:u,data:a||"",rId:p,isDuplicate:!!(null===R||void 0===R?void 0:R.Target),Target:(null===R||void 0===R?void 0:R.Target)?R.Target:"../media/media-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".").concat(u)}),d.mediaRid=p,t._relsMedia.push({path:l||"preencoded"+u,type:c+"/"+u,extn:u,data:a||"",rId:dt(t),isDuplicate:!!(null===R||void 0===R?void 0:R.Target),Target:(null===R||void 0===R?void 0:R.Target)?R.Target:"../media/media-".concat(t._slideNum,"-").concat(t._relsMedia.length+0,".").concat(u)}),t._relsMedia.push({path:"preencoded.png",type:"image/png",extn:"png",data:f,rId:dt(t),Target:"../media/image-".concat(t._slideNum,"-").concat(t._relsMedia.length+1,".png")})}t._slideObjects.push(d)}function Ot(t,e){t._slideObjects.push({_type:j.notes,text:[{text:e}]})}function St(t,e,n){var r="object"===typeof n?n:{};r.line=r.line||{type:"none"};var o={_type:j.text,shape:e||G.RECTANGLE,options:r,text:null};if(!e)throw new Error("Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`");var i={type:r.line.type||"solid",color:r.line.color||N,transparency:r.line.transparency||0,width:r.line.width||1,dashType:r.line.dashType||"solid",beginArrowType:r.line.beginArrowType||null,endArrowType:r.line.endArrowType||null};if("object"===typeof r.line&&"none"!==r.line.type&&(r.line=i),r.x=r.x||(0===r.x?0:1),r.y=r.y||(0===r.y?0:1),r.w=r.w||(0===r.w?0:1),r.h=r.h||(0===r.h?0:1),r.objectName=r.objectName?ot(r.objectName):"Shape ".concat(t._slideObjects.filter((function(t){return t._type===j.text})).length),"string"===typeof r.line){var a=i;a.color=String(r.line),r.line=a}"number"===typeof r.lineSize&&(r.line.width=r.lineSize),"string"===typeof r.lineDash&&(r.line.dashType=r.lineDash),"string"===typeof r.lineHead&&(r.line.beginArrowType=r.lineHead),"string"===typeof r.lineTail&&(r.line.endArrowType=r.lineTail),kt(t,o),t._slideObjects.push(o)}function wt(t,e,n,r,o,i,a){var s=[t],l=n&&"object"===typeof n?n:{};if(l.objectName=l.objectName?ot(l.objectName):"Table ".concat(t._slideObjects.filter((function(t){return t._type===j.table})).length),null===e||0===e.length||!Array.isArray(e))throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");if(!e[0]||!Array.isArray(e[0]))throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");var c=[];e.forEach((function(t){var e=[];Array.isArray(t)?t.forEach((function(t){var n={_type:j.tablecell,text:"",options:"object"===typeof t&&t.options?t.options:{}};"string"===typeof t||"number"===typeof t?n.text=t.toString():t.text&&("string"===typeof t.text||"number"===typeof t.text?n.text=t.text.toString():t.text&&(n.text=t.text),t.options&&"object"===typeof t.options&&(n.options=t.options)),n.options.border=n.options.border||l.border||[{type:"none"},{type:"none"},{type:"none"},{type:"none"}];var r=n.options.border;Array.isArray(r)||"object"!==typeof r||(n.options.border=[r,r,r,r]),n.options.border[0]||(n.options.border[0]={type:"none"}),n.options.border[1]||(n.options.border[1]={type:"none"}),n.options.border[2]||(n.options.border[2]={type:"none"}),n.options.border[3]||(n.options.border[3]={type:"none"});var o=[0,1,2,3];o.forEach((function(t){n.options.border[t]={type:n.options.border[t].type||g.type,color:n.options.border[t].color||g.color,pt:"number"===typeof n.options.border[t].pt?n.options.border[t].pt:g.pt}})),e.push(n)})):(console.log("addTable: tableRows has a bad row. A row should be an array of cells. You provided:"),console.log(t)),c.push(e)})),l.x=nt(l.x||(0===l.x?0:f/2),"X",o),l.y=nt(l.y||(0===l.y?0:f/2),"Y",o),l.h&&(l.h=nt(l.h,"Y",o)),l.fontSize=l.fontSize||O,l.margin=0===l.margin||l.margin?l.margin:v,"number"===typeof l.margin&&(l.margin=[Number(l.margin),Number(l.margin),Number(l.margin),Number(l.margin)]),l.color||(l.color=l.color||M),"string"===typeof l.border?(console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"),l.border=null):Array.isArray(l.border)&&[0,1,2,3].forEach((function(t){l.border[t]=l.border[t]?{type:l.border[t].type||g.type,color:l.border[t].color||g.color,pt:l.border[t].pt||g.pt}:{type:"none"}})),l.autoPage="boolean"===typeof l.autoPage&&l.autoPage,l.autoPageRepeatHeader="boolean"===typeof l.autoPageRepeatHeader&&l.autoPageRepeatHeader,l.autoPageHeaderRows="undefined"===typeof l.autoPageHeaderRows||isNaN(Number(l.autoPageHeaderRows))?1:Number(l.autoPageHeaderRows),l.autoPageLineWeight="undefined"===typeof l.autoPageLineWeight||isNaN(Number(l.autoPageLineWeight))?0:Number(l.autoPageLineWeight),l.autoPageLineWeight&&(l.autoPageLineWeight>1?l.autoPageLineWeight=1:l.autoPageLineWeight<-1&&(l.autoPageLineWeight=-1));var u=k;if(r&&"undefined"!==typeof r._margin&&(Array.isArray(r._margin)?u=r._margin:isNaN(Number(r._margin))||(u=[Number(r._margin),Number(r._margin),Number(r._margin),Number(r._margin)])),l.colW){var h=c[0].reduce((function(t,e){var n;return(null===(n=null===e||void 0===e?void 0:e.options)||void 0===n?void 0:n.colspan)&&"number"===typeof e.options.colspan?t+=e.options.colspan:t+=1,t}),0);"string"===typeof l.colW||"number"===typeof l.colW||l.colW&&Array.isArray(l.colW)&&1===l.colW.length&&h>1?(l.w=Math.floor(Number(l.colW)*h),l.colW=null):l.colW&&Array.isArray(l.colW)&&l.colW.length!==h&&(console.warn("addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths."),l.colW=null)}else l.w?l.w=nt(l.w,"X",o):l.w=Math.floor(o._sizeW/f-u[1]-u[3]);l.x&&l.x<20&&(l.x=it(l.x)),l.y&&l.y<20&&(l.y=it(l.y)),l.w&&l.w<20&&(l.w=it(l.w)),l.h&&l.h<20&&(l.h=it(l.h)),c.forEach((function(t){t.forEach((function(e,n){"number"===typeof e||"string"===typeof e?t[n]={_type:j.tablecell,text:String(t[n]),options:l}:"object"===typeof e&&("number"===typeof e.text?t[n].text=t[n].text.toString():"undefined"!==typeof e.text&&null!==e.text||(t[n].text=""),t[n].options=e.options||{},t[n]._type=j.tablecell)}))}));var d=[];return l&&!l.autoPage?(kt(t,c),t._slideObjects.push({_type:j.table,arrTabRows:c,options:Object.assign({},l)})):(l.autoPageRepeatHeader&&(l._arrObjTabHeadRows=c.filter((function(t,e){return e0&&(l.y=it(l.autoPageSlideStartY||l.newSlideStartY||u[0]));var o=a(t._slideNum+n);l.autoPage=!1,kt(o,e.rows),o.addTable(e.rows,Object.assign({},l)),n>0&&d.push(o)}))),d}function Pt(t,e,n,r){var o={_type:r?j.placeholder:j.text,shape:(null===n||void 0===n?void 0:n.shape)||G.RECTANGLE,text:e&&0!==e.length?e:[{text:"",options:null}],options:n||{}};function a(e){if(e.placeholder||(e.color=e.color||o.options.color||t.color||M),(e.placeholder||r)&&(e.bullet=e.bullet||!1),e.placeholder&&t._slideLayout&&t._slideLayout._slideObjects){var n=t._slideLayout._slideObjects.filter((function(t){return"placeholder"===t._type&&t.options&&t.options.placeholder&&t.options.placeholder===e.placeholder}))[0];(null===n||void 0===n?void 0:n.options)&&(e=i(i({},e),n.options))}if(e.objectName=e.objectName?ot(e.objectName):"Text ".concat(t._slideObjects.filter((function(t){return t._type===j.text})).length),e.shape===G.LINE){var a={type:e.line.type||"solid",color:e.line.color||N,transparency:e.line.transparency||0,width:e.line.width||1,dashType:e.line.dashType||"solid",beginArrowType:e.line.beginArrowType||null,endArrowType:e.line.endArrowType||null};if("object"===typeof e.line&&(e.line=a),"string"===typeof e.line){var s=a;"string"===typeof e.line&&(s.color=e.line),e.line=s}"number"===typeof e.lineSize&&(e.line.width=e.lineSize),"string"===typeof e.lineDash&&(e.line.dashType=e.lineDash),"string"===typeof e.lineHead&&(e.line.beginArrowType=e.lineHead),"string"===typeof e.lineTail&&(e.line.endArrowType=e.lineTail)}return e.line=e.line||{},e.lineSpacing=e.lineSpacing&&!isNaN(e.lineSpacing)?e.lineSpacing:null,e.lineSpacingMultiple=e.lineSpacingMultiple&&!isNaN(e.lineSpacingMultiple)?e.lineSpacingMultiple:null,e._bodyProp=e._bodyProp||{},e._bodyProp.autoFit=e.autoFit||!1,e._bodyProp.anchor=e.placeholder?null:u.ctr,e._bodyProp.vert=e.vert||null,e._bodyProp.wrap="boolean"!==typeof e.wrap||e.wrap,(e.inset&&!isNaN(Number(e.inset))||0===e.inset)&&(e._bodyProp.lIns=it(e.inset),e._bodyProp.rIns=it(e.inset),e._bodyProp.tIns=it(e.inset),e._bodyProp.bIns=it(e.inset)),"boolean"===typeof e.underline&&!0===e.underline&&(e.underline={style:"sng"}),0===(e.align||"").toLowerCase().indexOf("c")?e._bodyProp.align=c.center:0===(e.align||"").toLowerCase().indexOf("l")?e._bodyProp.align=c.left:0===(e.align||"").toLowerCase().indexOf("r")?e._bodyProp.align=c.right:0===(e.align||"").toLowerCase().indexOf("j")&&(e._bodyProp.align=c.justify),0===(e.valign||"").toLowerCase().indexOf("b")?e._bodyProp.anchor=u.b:0===(e.valign||"").toLowerCase().indexOf("m")?e._bodyProp.anchor=u.ctr:0===(e.valign||"").toLowerCase().indexOf("t")&&(e._bodyProp.anchor=u.t),pt(e.shadow),e}o.options=a(o.options),o.text.forEach((function(t){return t.options=a(t.options||{})})),kt(t,o.text||""),t._slideObjects.push(o)}function Nt(t){(t._slideLayout._slideObjects||[]).forEach((function(e){e._type===j.placeholder&&0===t._slideObjects.filter((function(t){return t.options&&t.options.placeholder===e.options.placeholder})).length&&Pt(t,[{text:""}],e.options,!1)}))}function Lt(t,e){var n;if(e.bkgd&&(e.background||(e.background={}),"string"===typeof e.bkgd?e.background.color=e.bkgd:(e.bkgd.data&&(e.background.data=e.bkgd.data),e.bkgd.path&&(e.background.path=e.bkgd.path),e.bkgd.src&&(e.background.path=e.bkgd.src))),(null===(n=e.background)||void 0===n?void 0:n.fill)&&(e.background.color=e.background.fill),t&&(t.path||t.data)){t.path=t.path||"preencoded.png";var r=(t.path.split(".").pop()||"png").split("?")[0];"jpg"===r&&(r="jpeg"),e._relsMedia=e._relsMedia||[];var o=e._relsMedia.length+1;e._relsMedia.push({path:t.path,type:j.image,extn:r,data:t.data||null,rId:o,Target:"../media/".concat((e._name||"").replace(/\s+/gi,"-"),"-image-").concat(e._relsMedia.length+1,".").concat(r)}),e._bkgdImgRid=o}}function kt(t,e){var n=[];"string"!==typeof e&&"number"!==typeof e&&(Array.isArray(e)?n=e:"object"===typeof e&&(n=[e]),n.forEach((function(e){if(Array.isArray(e))kt(t,e);else if(Array.isArray(e.text))kt(t,e.text);else if(e&&"object"===typeof e&&e.options&&e.options.hyperlink&&!e.options.hyperlink._rId)if("object"!==typeof e.options.hyperlink)console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` ");else if(e.options.hyperlink.url||e.options.hyperlink.slide){var n=dt(t);t._rels.push({type:j.hyperlink,data:e.options.hyperlink.slide?"slide":"dummy",rId:n,Target:ot(e.options.hyperlink.url)||e.options.hyperlink.slide.toString()}),e.options.hyperlink._rId=n}else console.log("ERROR: 'hyperlink requires either: `url` or `slide`'")})))}var Tt=function(){function t(t){var e;this.addSlide=t.addSlide,this.getSlide=t.getSlide,this._name="Slide ".concat(t.slideNumber),this._presLayout=t.presLayout,this._rId=t.slideRId,this._rels=[],this._relsChart=[],this._relsMedia=[],this._setSlideNum=t.setSlideNum,this._slideId=t.slideId,this._slideLayout=t.slideLayout||null,this._slideNum=t.slideNumber,this._slideObjects=[],this._slideNumberProps=(null===(e=this._slideLayout)||void 0===e?void 0:e._slideNumberProps)?this._slideLayout._slideNumberProps:null}return Object.defineProperty(t.prototype,"bkgd",{get:function(){return this._bkgd},set:function(t){this._bkgd=t,this._background&&this._background.color||(this._background||(this._background={}),"string"===typeof t&&(this._background.color=t))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"background",{get:function(){return this._background},set:function(t){this._background=t,t&&Lt(t,this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hidden",{get:function(){return this._hidden},set:function(t){this._hidden=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slideNumber",{get:function(){return this._slideNumberProps},set:function(t){this._slideNumberProps=t,this._setSlideNum(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newAutoPagedSlides",{get:function(){return this._newAutoPagedSlides},enumerable:!1,configurable:!0}),t.prototype.addChart=function(t,e,n){var r=n||{};return r._type=t,yt(this,t,e,n),this},t.prototype.addImage=function(t){return bt(this,t),this},t.prototype.addMedia=function(t){return Mt(this,t),this},t.prototype.addNotes=function(t){return Ot(this,t),this},t.prototype.addShape=function(t,e){return St(this,t,e),this},t.prototype.addTable=function(t,e){return this._newAutoPagedSlides=wt(this,t,e,this._slideLayout,this._presLayout,this.addSlide,this.getSlide),this},t.prototype.addText=function(t,e){var n="string"===typeof t||"number"===typeof t?[{text:t,options:e}]:t;return Pt(this,n,e,!1),this},t}();function xt(t,e){return a(this,void 0,void 0,(function(){var n;return s(this,(function(r){switch(r.label){case 0:return n=t.data,[4,new Promise((function(r,i){var a,s,l=new(o()),c=2*(n.length-1)+1,u=(null===(s=null===(a=n[0])||void 0===a?void 0:a.labels)||void 0===s?void 0:s.length)>1;l.folder("_rels"),l.folder("docProps"),l.folder("xl/_rels"),l.folder("xl/tables"),l.folder("xl/theme"),l.folder("xl/worksheets"),l.folder("xl/worksheets/_rels"),l.file("[Content_Types].xml",' \n'),l.file("_rels/.rels",'\n'),l.file("docProps/app.xml",'Microsoft Macintosh Excel0falseWorksheets1Sheet1falsefalsefalse16.0300\n'),l.file("docProps/core.xml",'PptxGenJSPptxGenJS'+(new Date).toISOString()+''+(new Date).toISOString()+""),l.file("xl/_rels/workbook.xml.rels",''),l.file("xl/styles.xml",'\n'),l.file("xl/theme/theme1.xml",''),l.file("xl/workbook.xml",'\n'),l.file("xl/worksheets/_rels/sheet1.xml.rels",'\n');var f='';if(t.opts._type===D.BUBBLE||t.opts._type===D.BUBBLE3D)f+='');else if(t.opts._type===D.SCATTER)f+='');else if(u){var h=n.length;n[0].labels.forEach((function(t){return h+=t.filter((function(t){return t&&""!==t})).length})),f+=''),f+=""}else{var d=n.length+n[0].labels.length*n[0].labels[0].length+n[0].labels.length,p=n.length+n[0].labels.length*n[0].labels[0].length+1;f+=''),f+=''}t.opts._type===D.BUBBLE||t.opts._type===D.BUBBLE3D?n.forEach((function(t,e){0===e?f+="X-Axis":(f+="".concat(ot(t.name||"Y-Axis".concat(e)),""),f+="".concat(ot("Size".concat(e)),""))})):n.forEach((function(t){f+="".concat(ot((t.name||" ").replace("X-Axis","X-Values")),"")})),t.opts._type!==D.BUBBLE&&t.opts._type!==D.BUBBLE3D&&t.opts._type!==D.SCATTER&&n[0].labels.slice().reverse().forEach((function(t){t.filter((function(t){return t&&""!==t})).forEach((function(t){f+="".concat(ot(t),"")}))})),f+="\n",l.file("xl/sharedStrings.xml",f);var R='';if(t.opts._type===D.BUBBLE||t.opts._type===D.BUBBLE3D){R+=''),R+='');var m=1;n.forEach((function(t,e){0===e?R+=''):(R+=''),m++,R+=''))}))}else t.opts._type===D.SCATTER?(R+='
    '),R+=''),n.forEach((function(t,e){R+='')}))):(R+='
    '),R+=''),n[0].labels.forEach((function(t,e){R+='')})),n.forEach((function(t,e){R+='')})));R+="",R+='',R+="
    ",l.file("xl/tables/table1.xml",R);var A='';if(A+='',t.opts._type===D.BUBBLE||t.opts._type===D.BUBBLE3D?A+=''):t.opts._type===D.SCATTER?A+=''):A+=''),A+='',A+='',t.opts._type===D.BUBBLE||t.opts._type===D.BUBBLE3D){A+="",A+=''),A+='0';for(var g=1;g').concat(g,"
    ");A+="",n[0].values.forEach((function(t,e){A+=''),A+='').concat(t,"");for(var r=2,o=1;o').concat(n[o].values[e]||"",""),r++,A+='').concat(n[o].sizes[e]||"",""),r++;A+=""}))}else if(t.opts._type===D.SCATTER){A+="",A+='');for(g=0;g').concat(g,"");A+="",n[0].values.forEach((function(t,e){A+=''),A+='').concat(t,"");for(var r=1;r').concat(n[r].values[e]||0===n[r].values[e]?n[r].values[e]:"","");A+=""}))}else if(A+="",u){A+='');for(g=0;g0');for(g=n[0].labels.length-1;g').concat(g,"");A+="";var v=n.length,y=n[0].labels[0].length,b=n[0].labels.length,M=function(t){A+='');var e=v,r=n[0].labels.slice().reverse();r.forEach((function(n,o){var i=n[t];if(i){var a=0===o?1:r[o-1].filter((function(t){return t&&""!==t})).length;e+=a,A+='').concat(e,"")}}));for(var o=0;o').concat(n[o].values[t]||0,"");A+=""};for(g=0;g'),n[0].labels.forEach((function(t,e){A+='0')}));for(var g=0;g').concat(g+1,"");A+="",n[0].labels[0].forEach((function(t,e){A+='');for(var r=n[0].labels.length-1;r>=0;r--)A+=''),A+="".concat(n.length+e+1,""),A+="";for(var o=0;o').concat(n[o].values[e]||"","");A+=""}))}A+="",A+='',A+="\n",l.file("xl/worksheets/sheet1.xml",A),l.generateAsync({type:"base64"}).then((function(n){e.file("ppt/embeddings/Microsoft_Excel_Worksheet".concat(t.globalId,".xlsx"),n,{base64:!0}),e.file("ppt/charts/_rels/"+t.fileName+".rels",''+'')+""),e.file("ppt/charts/".concat(t.fileName),Wt(t)),r("")})).catch((function(t){i(t)}))}))];case 1:return[2,r.sent()]}}))}))}function Wt(t){var e,n,r,o,a='',s=!1;if(a+='',a+='',a+=''),a+="",t.opts.showTitle?(a+=Ut({title:t.opts.title||"Chart Title",color:t.opts.titleColor,fontFace:t.opts.titleFontFace,fontSize:t.opts.titleFontSize||S,titleAlign:t.opts.titleAlign,titleBold:t.opts.titleBold,titlePos:t.opts.titlePos,titleRotate:t.opts.titleRotate},t.opts.x,t.opts.y),a+=''):a+='',t.opts._type===D.BAR3D&&(a+='')),a+="",t.opts.layout?(a+="",a+=" ",a+=' ',a+=' ',a+=' ',a+=' ',a+=' ',a+=' ',a+=' ',a+=" ",a+=""):a+="",Array.isArray(t.opts._type)?t.opts._type.forEach((function(e){var n=i(i({},t.opts),e.options),r=n.secondaryValAxis?X:W,o=n.secondaryCatAxis?V:_;s=s||n.secondaryValAxis,a+=Xt(e.type,e.data,n,r,o)})):a+=Xt(t.opts._type,t.data,t.opts,W,_),t.opts._type!==D.PIE&&t.opts._type!==D.DOUGHNUT){if(t.opts.valAxes&&t.opts.valAxes.length>1&&!s)throw new Error("Secondary axis must be used by one of the multiple charts");if(t.opts.catAxes){if(!t.opts.valAxes||t.opts.valAxes.length!==t.opts.catAxes.length)throw new Error("There must be the same number of value and category axes.");a+=_t(i(i({},t.opts),t.opts.catAxes[0]),_,W)}else a+=_t(t.opts,_,W);t.opts.valAxes?(a+=Vt(i(i({},t.opts),t.opts.valAxes[0]),W),t.opts.valAxes[1]&&(a+=Vt(i(i({},t.opts),t.opts.valAxes[1]),X))):(a+=Vt(t.opts,W),t.opts._type===D.BAR3D&&(a+=Ft(t.opts,F,W))),(null===(e=t.opts)||void 0===e?void 0:e.catAxes)&&(null===(n=t.opts)||void 0===n?void 0:n.catAxes[1])&&(a+=_t(i(i({},t.opts),t.opts.catAxes[1]),V,X))}return t.opts.showDataTable&&(a+="",a+=' '),a+=' '),a+=' '),a+=' '),a+=" ",a+=" ",a+=' ',a+=" ",a+=" ",a+=" ",a+=' ',a+=" ",a+=" ",a+=' ',a+=' '),a+=' ',a+=' ',a+=' ',a+=' ',a+=" ",a+=" ",a+=' ',a+=" ",a+=" ",a+=""),a+=" ",a+=(null===(r=t.opts.plotArea.fill)||void 0===r?void 0:r.color)?ht(t.opts.plotArea.fill):"",a+=t.opts.plotArea.border?'').concat(ht(t.opts.plotArea.border.color),""):"",a+=" ",a+=" ",a+="",t.opts.showLegend&&(a+="",a+='',a+='',(t.opts.legendFontFace||t.opts.legendFontSize||t.opts.legendColor)&&(a+="",a+=" ",a+=" ",a+=" ",a+=" ",a+=t.opts.legendFontSize?''):"",t.opts.legendColor&&(a+=ht(t.opts.legendColor)),t.opts.legendFontFace&&(a+=''),t.opts.legendFontFace&&(a+=''),a+=" ",a+=" ",a+=' ',a+=" ",a+=""),a+=""),a+=' ',a+=' ',t.opts._type===D.SCATTER&&(a+=''),a+="",a+="",a+=(null===(o=t.opts.chartArea.fill)||void 0===o?void 0:o.color)?ht(t.opts.chartArea.fill):"",a+=t.opts.chartArea.border?'').concat(ht(t.opts.chartArea.border.color),""):"",a+=" ",a+="",a+='',a+="",a}function Xt(t,e,n,r,o,i){var a=-1,s=1,l=null,c="";switch(t){case D.AREA:case D.BAR:case D.BAR3D:case D.LINE:case D.RADAR:c+=""),t===D.AREA&&"stacked"===n.barGrouping&&(c+=''),t!==D.BAR&&t!==D.BAR3D||(c+='',c+=''),t===D.RADAR&&(c+=''),c+='',e.forEach((function(r){var o;a++,c+="",c+=' '),c+=" ",c+=" ",c+=" Sheet1!$"+Yt(r._dataIndex+r.labels.length+1)+"$1",c+=' '+ot(r.name)+"",c+=" ",c+=" ";var i=n.chartColors?n.chartColors[a%n.chartColors.length]:null;c+=" ","transparent"===i?c+="":n.chartColorsOpacity?c+=""+ut(i,''))+"":c+=""+ut(i)+"",t===D.LINE||t===D.RADAR?0===n.lineSize?c+="":(c+='').concat(ut(i),""),c+=''):n.dataBorder&&(c+='').concat(ut(n.dataBorder.color),'')),c+=It(n.shadow,L),c+=" ",c+=' ',t!==D.RADAR&&(c+="",c+=''),n.dataLabelBkgrdColors&&(c+="".concat(ut(i),"")),c+="",c+=''),c+="".concat(ut(n.dataLabelColor||M),""),c+=''),c+="",n.dataLabelPosition&&(c+='')),c+='',c+=''),c+=''),c+=''),c+=""),t!==D.LINE&&t!==D.RADAR||(c+="",c+=' ',n.lineDataSymbolSize&&(c+='')),c+=" ",c+=" ".concat(ut(n.chartColors[r._dataIndex+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):r._dataIndex]),""),c+=' ').concat(ut(n.lineDataSymbolLineColor||i),''),c+=" ",c+=" ",c+=""),t!==D.BAR&&t!==D.BAR3D||1!==e.length||!(n.chartColors&&n.chartColors!==Y&&n.chartColors.length>1||(null===(o=n.invertedColors)||void 0===o?void 0:o.length))||r.values.forEach((function(e,r){var o=e<0?n.invertedColors||n.chartColors||Y:n.chartColors||[];c+=" ",c+=' '),c+=' ',c+=' ',c+=" ",0===n.lineSize?c+="":t===D.BAR?(c+="",c+=' ',c+=""):(c+="",c+=" ",c+=' ',c+=" ",c+=""),c+=It(n.shadow,L),c+=" ",c+=" "})),c+="",n.catLabelFormatCode?(c+=" ",c+=" Sheet1!$A$2:$A$".concat(r.labels[0].length+1,""),c+=" ",c+=" "+(n.catLabelFormatCode||"General")+"",c+=' '),r.labels[0].forEach((function(t,e){return c+='').concat(ot(t),"")})),c+=" ",c+=" "):(c+=" ",c+=" Sheet1!$A$2:$".concat(Yt(r.labels.length),"$").concat(r.labels[0].length+1,""),c+=" ",c+=' '),r.labels.forEach((function(t){c+="",t.forEach((function(t,e){return c+='').concat(ot(t),"")})),c+=""})),c+=" ",c+=" "),c+="",c+="",c+=" ",c+="Sheet1!$".concat(Yt(r._dataIndex+r.labels.length+1),"$2:$").concat(Yt(r._dataIndex+r.labels.length+1),"$").concat(r.labels[0].length+1,""),c+=" ",c+=" "+(n.valLabelFormatCode||n.dataTableFormatCode||"General")+"",c+=' '),r.values.forEach((function(t,e){return c+='').concat(t||0===t?t:"","")})),c+=" ",c+=" ",c+="",t===D.LINE&&(c+=''),c+=""})),c+=" ",c+=' '),c+=" ",c+=" ",c+=" ",c+=" ",c+=' '),c+=" "+ut(n.dataLabelColor||M)+"",c+=' ',c+=" ",c+=" ",c+=" ",n.dataLabelPosition&&(c+=' '),c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=' '),c+=" ",t===D.BAR?(c+=' '),c+=' ')):t===D.BAR3D?(c+=' '),c+=' '),c+=' '):t===D.LINE&&(c+=' '),c+=''),c+="");break;case D.SCATTER:c+="",c+='',c+='',a=-1,e.filter((function(t,e){return e>0})).forEach((function(t,r){a++,c+="",c+=' '),c+=' '),c+=" ",c+=" ",c+=" Sheet1!$".concat(Yt(r+2),"$1"),c+=' '+ot(t.name)+"",c+=" ",c+=" ",c+=" ";var o=n.chartColors[a%n.chartColors.length];if("transparent"===o?c+="":n.chartColorsOpacity?c+=""+ut(o,'')+"":c+=""+ut(o)+"",0===n.lineSize?c+="":(c+='').concat(ut(o),""),c+='')),c+=It(n.shadow,L),c+=" ",c+="",c+=' ',n.lineDataSymbolSize&&(c+='')),c+="",c+="".concat(ut(n.chartColors[r+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):r]),""),c+='').concat(ut(n.lineDataSymbolLineColor||n.chartColors[a%n.chartColors.length]),''),c+="",c+="",c+="",n.showLabel){var i=rt("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");!t.labels[0]||"custom"!==n.dataLabelFormatScatter&&"customXY"!==n.dataLabelFormatScatter||(c+="",t.labels[0].forEach((function(e,r){"custom"!==n.dataLabelFormatScatter&&"customXY"!==n.dataLabelFormatScatter||(c+=" ",c+=' '),c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=' ',c+=" "+ot(e)+"",c+=" ","customXY"!==n.dataLabelFormatScatter||/^ *$/.test(e)||(c+=" ",c+=' ',c+=" (",c+=" ",c+=' ',c+=' ',c+=" ",c+=" ",c+=" ",c+=" ["+ot(t.name)+"",c+=" ",c+=" ",c+=' ',c+=" , ",c+=" ",c+=' ',c+=' ',c+=" ",c+=" ",c+=" ",c+=" ["+ot(t.name)+"]",c+=" ",c+=" ",c+=' ',c+=" )",c+=" ",c+=' '),c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",n.dataLabelPosition&&(c+=' '),c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=" ",c+=' ',c+=' ',c+=' '),c+=" ",c+=" ",c+="")})),c+=""),"XY"===n.dataLabelFormatScatter&&(c+="",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=' ',c+=" ",c+=" ",n.dataLabelPosition&&(c+=' '),c+=' ',c+=' '),c+=' '),c+=' '),c+=' ',c+=' ',c+=" ",c+=' ',c+=' ',c+=" ",c+=" ",c+="")}1===e.length&&n.chartColors!==Y&&t.values.forEach((function(t,e){var r=t<0?n.invertedColors||n.chartColors||Y:n.chartColors||[];c+=" ",c+=' '),c+=' ',c+=' ',c+=" ",0===n.lineSize?c+="":(c+="",c+=' ',c+=""),c+=It(n.shadow,L),c+=" ",c+=" "})),c+="",c+=" ",c+=" Sheet1!$A$2:$A$".concat(e[0].values.length+1,""),c+=" ",c+=" General",c+=' '),e[0].values.forEach((function(t,e){c+='').concat(t||0===t?t:"","")})),c+=" ",c+=" ",c+="",c+="",c+=" ",c+=" Sheet1!$".concat(Yt(r+2),"$2:$").concat(Yt(r+2),"$").concat(e[0].values.length+1,""),c+=" ",c+=" General",c+=' '),e[0].values.forEach((function(e,n){c+='').concat(t.values[n]||0===t.values[n]?t.values[n]:"","")})),c+=" ",c+=" ",c+="",c+='',c+=""})),c+=" ",c+=' '),c+=" ",c+=" ",c+=" ",c+=" ",c+=' '),c+=" "+ut(n.dataLabelColor||M)+"",c+=' ',c+=" ",c+=" ",c+=" ",n.dataLabelPosition&&(c+=' '),c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=" ",c+=''),c+="";break;case D.BUBBLE:case D.BUBBLE3D:c+="",c+='',a=-1,e.filter((function(t,e){return e>0})).forEach((function(r,o){a++,c+="",c+=' '),c+=' '),c+=" ",c+=" ",c+=" Sheet1!$"+Yt(s+1)+"$1",c+=' '+ot(r.name)+"",c+=" ",c+=" ",c+="";var i=n.chartColors[a%n.chartColors.length];"transparent"===i?c+="":n.chartColorsOpacity?c+="".concat(ut(i,''),""):c+=""+ut(i)+"",0===n.lineSize?c+="":n.dataBorder?c+='').concat(ut(n.dataBorder.color),''):(c+='').concat(ut(i),""),c+='')),c+=It(n.shadow,L),c+="",c+="",c+=" ",c+=" Sheet1!$A$2:$A$".concat(e[0].values.length+1,""),c+=" ",c+=" General",c+=' '),e[0].values.forEach((function(t,e){c+='').concat(t||0===t?t:"","")})),c+=" ",c+=" ",c+="",c+="",c+=" ",c+="Sheet1!$".concat(Yt(s+1),"$2:$").concat(Yt(s+1),"$").concat(e[0].values.length+1,""),s++,c+=" ",c+=" General",c+=' '),e[0].values.forEach((function(t,e){c+='').concat(r.values[e]||0===r.values[e]?r.values[e]:"","")})),c+=" ",c+=" ",c+="",c+=" ",c+=" ",c+="Sheet1!$".concat(Yt(s+1),"$2:$").concat(Yt(s+1),"$").concat(r.sizes.length+1,""),s++,c+=" ",c+=" General",c+=' '),r.sizes.forEach((function(t,e){c+='').concat(t||"","")})),c+=" ",c+=" ",c+=" ",c+=' ',c+=""})),c+="",c+=''),c+="",c+=''),c+="".concat(ut(n.dataLabelColor||M),""),c+=''),c+="",n.dataLabelPosition&&(c+='')),c+='',c+=''),c+=''),c+="",c+=' ',c+=' ',c+=" ",c+="",c+="",c+=''),c+="";break;case D.DOUGHNUT:case D.PIE:l=e[0],c+="",c+=' ',c+="",c+=' ',c+=' ',c+=" ",c+=" ",c+=" Sheet1!$B$1",c+=" ",c+=' ',c+=' '+ot(l.name)+"",c+=" ",c+=" ",c+=" ",c+=" ",c+=' ',c+=' ',n.dataNoEffects?c+="":c+=It(n.shadow,L),c+=" ",l.labels[0].forEach((function(t,e){c+="",c+=' '),c+=' ',c+=" ",c+="".concat(ut(n.chartColors[e+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):e]),""),n.dataBorder&&(c+='').concat(ut(n.dataBorder.color),'')),c+=It(n.shadow,L),c+=" ",c+=""})),c+="",l.labels[0].forEach((function(e,r){c+="",c+=' '),c+=' '),c+=" ",c+=" ",c+=" ",c+=' '),c+=" "+ut(n.dataLabelColor||M)+"",c+=' '),c+=" ",c+=" ",c+=" ",t===D.PIE&&n.dataLabelPosition&&(c+='')),c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=" "})),c+=' '),c+=" ",c+=" ",c+=" ",c+=" ",c+=" ",c+=' '),c+=' ',c+=" ",c+=" ",c+=" ",c+=" ",c+=t===D.PIE?'':"",c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=' ',c+=' '),c+="",c+="",c+=" ",c+=" Sheet1!$A$2:$A$".concat(l.labels[0].length+1,""),c+=" ",c+=' '),l.labels[0].forEach((function(t,e){c+='').concat(ot(t),"")})),c+=" ",c+=" ",c+="",c+=" ",c+=" ",c+=" Sheet1!$B$2:$B$".concat(l.labels[0].length+1,""),c+=" ",c+=' '),l.values.forEach((function(t,e){c+='').concat(t||0===t?t:"","")})),c+=" ",c+=" ",c+=" ",c+=" ",c+=' '),t===D.DOUGHNUT&&(c+='')),c+="";break;default:c+="";break}return c}function _t(t,e,n){var r="";return t._type===D.SCATTER||t._type===D.BUBBLE||t._type===D.BUBBLE3D?r+="":r+="",r+=' ',r+=" ",r+='',(t.catAxisMaxVal||0===t.catAxisMaxVal)&&(r+='')),(t.catAxisMinVal||0===t.catAxisMinVal)&&(r+='')),r+="",r+=' ',r+=' ',r+="none"!==t.catGridLine.style?Ct(t.catGridLine):"",t.showCatAxisTitle&&(r+=Ut({color:t.catAxisTitleColor,fontFace:t.catAxisTitleFontFace,fontSize:t.catAxisTitleFontSize,titleRotate:t.catAxisTitleRotate,title:t.catAxisTitle||"Axis Title"})),t._type===D.SCATTER||t._type===D.BUBBLE||t._type===D.BUBBLE3D?r+=' ':r+=' ',t._type===D.SCATTER?(r+=' ',r+=' ',r+=' '):(r+=' ',r+=' ',r+=' '),r+=" ",r+=' '),r+=t.catAxisLineShow?""+ut(t.catAxisLineColor||b.color)+"":"",r+=' ',r+=" ",r+=" ",r+=" ",r+=" ",t.catAxisLabelRotate?r+=''):r+="",r+=" ",r+=" ",r+=" ",r+=' '),r+=" "+ut(t.catAxisLabelColor||M)+"",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ",r+=" ",r+=' ',r+=" '),r+=' ',r+=' ',r+=' '),t.catAxisLabelFrequency&&(r+=' '),(t.catLabelFormatCode||t._type===D.SCATTER||t._type===D.BUBBLE||t._type===D.BUBBLE3D)&&(t.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach((function(e){!t[e]||"string"===typeof t[e]&&["days","months","years"].includes(t[e].toLowerCase())||(console.warn('"'.concat(e,"\" must be one of: 'days','months','years' !")),t[e]=null)})),t.catAxisBaseTimeUnit&&(r+=''),t.catAxisMajorTimeUnit&&(r+=''),t.catAxisMinorTimeUnit&&(r+='')),t.catAxisMajorUnit&&(r+='')),t.catAxisMinorUnit&&(r+=''))),t._type===D.SCATTER||t._type===D.BUBBLE||t._type===D.BUBBLE3D?r+="":r+="",r}function Vt(t,e){var n=e===W?"col"===t.barDir?"l":"b":"col"!==t.barDir?"r":"t";e===X&&(n="r");var r=e===W?_:V,o="";if(o+="",o+=' ',o+=" ",t.valAxisLogScaleBase&&(o+='')),o+='',(t.valAxisMaxVal||0===t.valAxisMaxVal)&&(o+='')),(t.valAxisMinVal||0===t.valAxisMinVal)&&(o+='')),o+=" ",o+=' '),o+=' ',"none"!==t.valGridLine.style&&(o+=Ct(t.valGridLine)),t.showValAxisTitle&&(o+=Ut({color:t.valAxisTitleColor,fontFace:t.valAxisTitleFontFace,fontSize:t.valAxisTitleFontSize,titleRotate:t.valAxisTitleRotate,title:t.valAxisTitle||"Axis Title"})),o+=''),t._type===D.SCATTER?(o+=' ',o+=' ',o+=' '):(o+=' ',o+=' ',o+=' '),o+=" ",o+=' '),o+=t.valAxisLineShow?""+ut(t.valAxisLineColor||b.color)+"":"",o+=' ',o+=" ",o+=" ",o+=" ",o+=" ",o+=" "),o+=" ",o+=" ",o+=" ",o+=' '),o+=" "+ut(t.valAxisLabelColor||M)+"",o+=' ',o+=" ",o+=" ",o+=' ',o+=" ",o+=" ",o+=' ',"number"===typeof t.catAxisCrossesAt)o+=' ');else if("string"===typeof t.catAxisCrossesAt)o+=' ';else{var i="r"===n||"t"===n,a=i?"max":"autoZero";o+=' '}return o+=' ',t.valAxisMajorUnit&&(o+=' ')),t.valAxisDisplayUnit&&(o+='').concat(t.valAxisDisplayUnitLabel?"":"","")),o+="",o}function Ft(t,e,n){var r="";return r+="",r+=' ',r+=' ',r+=' ',r+=' ',r+="none"!==t.serGridLine.style?Ct(t.serGridLine):"",t.showSerAxisTitle&&(r+=Ut({color:t.serAxisTitleColor,fontFace:t.serAxisTitleFontFace,fontSize:t.serAxisTitleFontSize,titleRotate:t.serAxisTitleRotate,title:t.serAxisTitle||"Axis Title"})),r+=' '),r+=' ',r+=' ',r+=' '),r+=" ",r+=' ',r+=t.serAxisLineShow?"".concat(ut(t.serAxisLineColor||b.color),""):"",r+=' ',r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=' '),r+=" ".concat(ut(t.serAxisLabelColor||M),""),r+=' '),r+=" ",r+=" ",r+=' ',r+=" ",r+=" ",r+=' ',r+=' ',t.serAxisLabelFrequency&&(r+=' '),t.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach((function(e){!t[e]||"string"===typeof t[e]&&["days","months","years"].includes(e.toLowerCase())||(console.warn('"'.concat(e,"\" must be one of: 'days','months','years' !")),t[e]=null)})),t.serAxisBaseTimeUnit&&(r+=' ')),t.serAxisMajorTimeUnit&&(r+=' ')),t.serAxisMinorTimeUnit&&(r+=' ')),t.serAxisMajorUnit&&(r+=' ')),t.serAxisMinorUnit&&(r+=' '))),r+="",r}function Ut(t,e,n){var r="left"===t.titleAlign||"right"===t.titleAlign?''):"",o=t.titleRotate?''):"",i=t.fontSize?'sz="'.concat(Math.round(100*t.fontSize),'"'):"",a=t.titleBold?1:0,s="";if(t.titlePos&&"number"===typeof t.titlePos.x&&"number"===typeof t.titlePos.y){var l=t.titlePos.x+e,c=t.titlePos.y+n,u=0===l?0:l*(l/5)/10;u>=1&&(u/=10),u>=.1&&(u/=10);var f=0===c?0:c*(c/5)/10;f>=1&&(f/=10),f>=.1&&(f/=10),s='')}return"\n \n \n ".concat(o,"\n \n \n ").concat(r,"\n \n ').concat(ut(t.color||M),'\n \n \n \n \n \n ').concat(ut(t.color||M),'\n \n \n ').concat(ot(t.title)||"","\n \n \n \n \n ").concat(s,'\n \n ')}function Yt(t){var e="",n=t-1;return e=n<=25?U[n]:"".concat(U[Math.floor(n/U.length-1)]).concat(U[n%U.length]),e}function It(t,e){if(!t)return"";if("object"!==typeof t)return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"";var n="",r=i(i({},e),t),o=r.type||"outer",a=at(r.blur),s=at(r.offset),l=Math.round(6e4*r.angle),c=r.color,u=Math.round(1e5*r.opacity),f=r.rotateWithShape?1:0;return n+="'),n+=''),n+=''),n+=""),n+="",n}function Ct(t){var e="";return e+=" ",e+=' '),e+=' ',e+=' ',e+=" ",e+=" ",e+="",e}function Zt(t){if(t&&"flat"!==t){if("square"===t)return"sq";if("round"===t)return"rnd";var e=t;throw new Error("Invalid chart line cap: ".concat(e))}return"flat"}function Qt(t){var e="undefined"===typeof window?n(3180):null,r="undefined"===typeof window?n(7687):null,o=[],i=t._relsMedia.filter((function(t){return"online"!==t.type&&!t.data&&(!t.path||t.path&&!t.path.includes("preencoded"))})),a=[];return i.forEach((function(t){a.includes(t.path)?t.isDuplicate=!0:(t.isDuplicate=!1,a.push(t.path))})),i.filter((function(t){return!t.isDuplicate})).forEach((function(t){o.push(new Promise((function(n,o){if(e&&0!==t.path.indexOf("http"))try{var a=e.readFileSync(t.path);t.data=Buffer.from(a).toString("base64"),i.filter((function(e){return e.isDuplicate&&e.path===t.path})).forEach((function(e){return e.data=t.data})),n("done")}catch(l){t.data=tt,i.filter((function(e){return e.isDuplicate&&e.path===t.path})).forEach((function(e){return e.data=t.data})),o(new Error('ERROR: Unable to read media: "'.concat(t.path,'"\n').concat(String(l))))}else if(e&&r&&0===t.path.indexOf("http"))r.get(t.path,(function(e){var r="";e.setEncoding("binary"),e.on("data",(function(t){return r+=t})),e.on("end",(function(){t.data=Buffer.from(r,"binary").toString("base64"),i.filter((function(e){return e.isDuplicate&&e.path===t.path})).forEach((function(e){return e.data=t.data})),n("done")})),e.on("error",(function(e){t.data=tt,i.filter((function(e){return e.isDuplicate&&e.path===t.path})).forEach((function(e){return e.data=t.data})),o(new Error("ERROR! Unable to load image (https.get): ".concat(t.path)))}))}));else{var s=new XMLHttpRequest;s.onload=function(){var e=new FileReader;e.onloadend=function(){t.data=e.result,i.filter((function(e){return e.isDuplicate&&e.path===t.path})).forEach((function(e){return e.data=t.data})),t.isSvgPng?Kt(t).then((function(){n("done")})).catch((function(t){o(t)})):n("done")},e.readAsDataURL(s.response)},s.onerror=function(e){t.data=tt,i.filter((function(e){return e.isDuplicate&&e.path===t.path})).forEach((function(e){return e.data=t.data})),o(new Error("ERROR! Unable to load image (xhr.onerror): ".concat(t.path)))},s.open("GET",t.path),s.responseType="blob",s.send()}})))})),t._relsMedia.filter((function(t){return t.isSvgPng&&t.data})).forEach((function(t){e?(t.data=tt,o.push(Promise.resolve().then((function(){return"done"})))):o.push(Kt(t))})),o}function Kt(t){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,new Promise((function(e,n){var r=new Image;r.onload=function(){r.width+r.height===0&&r.onerror("h/w=0");var n=document.createElement("CANVAS"),o=n.getContext("2d");n.width=r.width,n.height=r.height,o.drawImage(r,0,0);try{t.data=n.toDataURL(t.type),e("done")}catch(i){r.onerror(i)}n=null},r.onerror=function(e){t.data=tt,n(new Error("ERROR! Unable to load image (image.onerror): ".concat(t.path)))},r.src="string"===typeof t.data?t.data:tt}))];case 1:return[2,e.sent()]}}))}))}var Et={cover:function(t,e){var n=t.h/t.w,r=e.h/e.w,o=r>n,i=o?e.h/n:e.w,a=o?e.h:e.w*n,s=Math.round(5e4*(1-e.w/i)),l=Math.round(5e4*(1-e.h/a));return'')},contain:function(t,e){var n=t.h/t.w,r=e.h/e.w,o=r>n,i=o?e.w:e.h/n,a=o?e.w*n:e.h,s=Math.round(5e4*(1-e.w/i)),l=Math.round(5e4*(1-e.h/a));return'')},crop:function(t,e){var n=e.x,r=t.w-(e.x+e.w),o=e.y,i=t.h-(e.y+e.h),a=Math.round(n/t.w*1e5),s=Math.round(r/t.w*1e5),l=Math.round(o/t.h*1e5),c=Math.round(i/t.h*1e5);return'')}};function Ht(t){var e,n=t._name?'':"",r=1;return t._bkgdImgRid?n+=''):(null===(e=t.background)||void 0===e?void 0:e.color)?n+="".concat(ht(t.background),""):!t.bkgd&&t._name&&t._name===P&&(n+=''),n+="",n+='',n+='',n+='',t._slideObjects.forEach((function(e,o){var i,a,s,c,u,h,d,p,R,m=0,A=0,g=nt("75%","X",t._presLayout),y=0,b="",M=null,O=null,S=0,w=0,P=null,N=null,L=null===(i=e.options)||void 0===i?void 0:i.sizing,k=null===(a=e.options)||void 0===a?void 0:a.rounding;void 0!==t._slideLayout&&void 0!==t._slideLayout._slideObjects&&e.options&&e.options.placeholder&&(R=t._slideLayout._slideObjects.filter((function(t){return t.options.placeholder===e.options.placeholder}))[0]),e.options=e.options||{},"undefined"!==typeof e.options.x&&(m=nt(e.options.x,"X",t._presLayout)),"undefined"!==typeof e.options.y&&(A=nt(e.options.y,"Y",t._presLayout)),"undefined"!==typeof e.options.w&&(g=nt(e.options.w,"X",t._presLayout)),"undefined"!==typeof e.options.h&&(y=nt(e.options.h,"Y",t._presLayout));var x=g,W=y;switch(R&&((R.options.x||0===R.options.x)&&(m=nt(R.options.x,"X",t._presLayout)),(R.options.y||0===R.options.y)&&(A=nt(R.options.y,"Y",t._presLayout)),(R.options.w||0===R.options.w)&&(g=nt(R.options.w,"X",t._presLayout)),(R.options.h||0===R.options.h)&&(y=nt(R.options.h,"Y",t._presLayout))),e.options.flipH&&(b+=' flipH="1"'),e.options.flipV&&(b+=' flipV="1"'),e.options.rotate&&(b+=' rot="'.concat(st(e.options.rotate),'"')),e._type){case j.table:if(M=e.arrTabRows,O=e.options,S=0,w=0,M[0].forEach((function(t){P=t.options||null,S+=(null===P||void 0===P?void 0:P.colspan)?Number(P.colspan):1})),N=''),N+=' ',N+=''),N+='',Array.isArray(O.colW)){N+="";for(var X=0;X')}N+=""}else{w=O.colW?O.colW:f,e.options.w&&!O.colW&&(w=Math.round(("number"===typeof e.options.w?e.options.w:1)/S)),N+="";for(var V=0;V');N+=""}M.forEach((function(t){for(var e,n,r,o=function(o){var i=t[o],a=null===(e=i.options)||void 0===e?void 0:e.colspan,s=null===(n=i.options)||void 0===n?void 0:n.rowspan;if(a&&a>1){var c=new Array(a-1).fill(void 0).map((function(t){return{_type:j.tablecell,options:{rowspan:s},_hmerge:!0}}));t.splice.apply(t,l([o+1,0],c,!1)),o+=a}else o+=1;r=o},i=0;i1){var l={_type:j.tablecell,options:{colspan:a},_rowContinue:i-1,_vmerge:!0,_hmerge:s};n.splice(e,0,l)}}))})),M.forEach((function(t,n){var r=0;Array.isArray(O.rowH)&&O.rowH[n]?r=it(Number(O.rowH[n])):O.rowH&&!isNaN(Number(O.rowH))?r=it(Number(O.rowH)):(e.options.cy||e.options.h)&&(r=Math.round((e.options.h?it(e.options.h):"number"===typeof e.options.cy?e.options.cy:1)/M.length)),N+=''),t.forEach((function(t){var e,n,r,o,i,a=t,s={rowSpan:(null===(e=a.options)||void 0===e?void 0:e.rowspan)>1?a.options.rowspan:void 0,gridSpan:(null===(n=a.options)||void 0===n?void 0:n.colspan)>1?a.options.colspan:void 0,vMerge:a._vmerge?1:void 0,hMerge:a._hmerge?1:void 0},l=Object.keys(s).map((function(t){return[t,s[t]]})).filter((function(t){t[0];var e=t[1];return!!e})).map((function(t){var e=t[0],n=t[1];return"".concat(String(e),'="').concat(String(n),'"')})).join(" ");if(l&&(l=" "+l),a._hmerge||a._vmerge)N+="");else{var c=a.options||{};a.options=c,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach((function(t){O[t]&&!c[t]&&0!==c[t]&&(c[t]=O[t])}));var u=c.valign?' anchor="'.concat(c.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b"),'"'):"",f=(null===(o=null===(r=a._optImp)||void 0===r?void 0:r.fill)||void 0===o?void 0:o.color)?a._optImp.fill.color:(null===(i=a._optImp)||void 0===i?void 0:i.fill)&&"string"===typeof a._optImp.fill?a._optImp.fill:"";f=f||c.fill?c.fill:"";var h=f?ht(f):"",d=0===c.margin||c.margin?c.margin:v;Array.isArray(d)||"number"!==typeof d||(d=[d,d,d,d]);var p="";p=d[0]>=1?' marL="'.concat(at(d[3]),'" marR="').concat(at(d[1]),'" marT="').concat(at(d[0]),'" marB="').concat(at(d[2]),'"'):' marL="'.concat(it(d[3]),'" marR="').concat(it(d[1]),'" marT="').concat(it(d[0]),'" marB="').concat(it(d[2]),'"'),N+="").concat(zt(a),""),c.border&&Array.isArray(c.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach((function(t){"none"!==c.border[t.idx].type?(N+="'),N+="".concat(ut(c.border[t.idx].color),""),N+=''),N+="")):N+="")})),N+=h,N+=" ",N+=" "}})),N+=""})),N+=" ",N+=" ",N+=" ",N+="",n+=N,r++;break;case j.text:case j.placeholder:if(e.options.line||0!==y||(y=.3*f),e.options._bodyProp||(e.options._bodyProp={}),e.options.margin&&Array.isArray(e.options.margin)?(e.options._bodyProp.lIns=at(e.options.margin[0]||0),e.options._bodyProp.rIns=at(e.options.margin[1]||0),e.options._bodyProp.bIns=at(e.options.margin[2]||0),e.options._bodyProp.tIns=at(e.options.margin[3]||0)):"number"===typeof e.options.margin&&(e.options._bodyProp.lIns=at(e.options.margin),e.options._bodyProp.rIns=at(e.options.margin),e.options._bodyProp.bIns=at(e.options.margin),e.options._bodyProp.tIns=at(e.options.margin)),n+="",n+=''),(null===(s=e.options.hyperlink)||void 0===s?void 0:s.url)&&(n+='')),(null===(c=e.options.hyperlink)||void 0===c?void 0:c.slide)&&(n+='')),n+="",n+="':"/>"),n+="".concat("placeholder"===e._type?qt(e):qt(R),""),n+="",n+=""),n+=''),n+=''),"custGeom"===e.shape)n+="",n+="",n+="",n+="",n+="",n+="",n+='',n+="",n+=''),null===(h=e.options.points)||void 0===h||h.forEach((function(e,r){if("curve"in e)switch(e.curve.type){case"arc":n+='');break;case"cubic":n+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t');break;case"quadratic":n+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t');break}else"close"in e?n+="":e.moveTo||0===r?n+=''):n+='')})),n+="",n+="",n+="";else{if(n+='',e.options.rectRadius)n+='');else if(e.options.angleRange){for(var F=0;F<2;F++){var U=e.options.angleRange[F];n+='')}e.options.arcThicknessRatio&&(n+=''))}n+=""}n+=e.options.fill?ht(e.options.fill):"",e.options.line&&(n+=e.options.line.width?''):"",e.options.line.color&&(n+=ht(e.options.line)),e.options.line.dashType&&(n+='')),e.options.line.beginArrowType&&(n+='')),e.options.line.endArrowType&&(n+='')),n+=""),e.options.shadow&&"none"!==e.options.shadow.type&&(e.options.shadow.type=e.options.shadow.type||"outer",e.options.shadow.blur=at(e.options.shadow.blur||8),e.options.shadow.offset=at(e.options.shadow.offset||4),e.options.shadow.angle=Math.round(6e4*(e.options.shadow.angle||270)),e.options.shadow.opacity=Math.round(1e5*(e.options.shadow.opacity||.75)),e.options.shadow.color=e.options.shadow.color||T.color,n+="",n+=" '),n+=' '),n+=' '),n+=" ",n+=""),n+="",n+=zt(e),n+="";break;case j.image:if(n+="",n+=" ",n+=''),(null===(d=e.hyperlink)||void 0===d?void 0:d.url)&&(n+='')),(null===(p=e.hyperlink)||void 0===p?void 0:p.slide)&&(n+='')),n+=" ",n+=' ',n+=" "+qt(R)+"",n+=" ",n+="",(t._relsMedia||[]).filter((function(t){return t.rId===e.imageRid}))[0]&&"svg"===(t._relsMedia||[]).filter((function(t){return t.rId===e.imageRid}))[0].extn?(n+=''),n+=e.options.transparency?' '):"",n+=" ",n+=' ',n+=' '),n+=" ",n+=" ",n+=""):(n+=''),n+=e.options.transparency?''):"",n+=""),null===L||void 0===L?void 0:L.type){var Y=L.w?nt(L.w,"X",t._presLayout):g,I=L.h?nt(L.h,"Y",t._presLayout):y,C=nt(L.x||0,"X",t._presLayout),Z=nt(L.y||0,"Y",t._presLayout);n+=Et[L.type]({w:x,h:W},{w:Y,h:I,x:C,y:Z}),x=Y,W=I}else n+=" ";n+="",n+="",n+=" ",n+=' '),n+=' '),n+=" ",n+=' '),e.options.shadow&&"none"!==e.options.shadow.type&&(e.options.shadow.type=e.options.shadow.type||"outer",e.options.shadow.blur=at(e.options.shadow.blur||8),e.options.shadow.offset=at(e.options.shadow.offset||4),e.options.shadow.angle=Math.round(6e4*(e.options.shadow.angle||270)),e.options.shadow.opacity=Math.round(1e5*(e.options.shadow.opacity||.75)),e.options.shadow.color=e.options.shadow.color||T.color,n+="",n+="'),n+=''),n+=''),n+=""),n+=""),n+="",n+="";break;case j.media:"online"===e.mtype?(n+="",n+=" ",n+=''),n+=" ",n+=" ",n+=' '),n+=" ",n+=" ",n+=' '),n+=" ",n+=" '),n+=' ',n+=" ",n+=""):(n+="",n+=" ",n+=''),n+=' ',n+=" ",n+=' '),n+=" ",n+=' ',n+=' '),n+=" ",n+=" ",n+=" ",n+=" ",n+=' '),n+=" ",n+=" '),n+=' ',n+=" ",n+="");break;case j.chart:n+="",n+=" ",n+=' '),n+=" ",n+=" ".concat(qt(R),""),n+=" ",n+=' '),n+=' ',n+=' ',n+=' '),n+=" ",n+=" ",n+="";break;default:n+="";break}})),t._slideNumberProps&&(t._slideNumberProps.align||(t._slideNumberProps.align="left"),n+="",n+=" ",n+=' ',n+=' ',n+=" ",n+=" ",n+=""+'')+'')+' ',n+="",n+="'),t._slideNumberProps.color&&(n+=ht(t._slideNumberProps.color)),t._slideNumberProps.fontFace&&(n+='')),n+=""),n+="",n+="",t._slideNumberProps.align.startsWith("l")?n+='':t._slideNumberProps.align.startsWith("c")?n+='':t._slideNumberProps.align.startsWith("r")?n+='':n+='',n+=''),n+="".concat(t._slideNum,''),n+=""),n+="",n+="",n}function Gt(t,e){var n=0,r=''+d+'';return t._rels.forEach((function(t){n=Math.max(n,t.rId),t.type.toLowerCase().includes("hyperlink")?"slide"===t.data?r+=''):r+=''):t.type.toLowerCase().includes("notesSlide")&&(r+=''))})),(t._relsChart||[]).forEach((function(t){n=Math.max(n,t.rId),r+='')})),(t._relsMedia||[]).forEach((function(t){var e=t.rId.toString();n=Math.max(n,t.rId),t.type.toLowerCase().includes("image")?r+='':t.type.toLowerCase().includes("audio")?r.includes(' Target="'+t.Target+'"')?r+='':r+='':t.type.toLowerCase().includes("video")?r.includes(' Target="'+t.Target+'"')?r+='':r+='':t.type.toLowerCase().includes("online")&&(r.includes(' Target="'+t.Target+'"')?r+='':r+='')})),e.forEach((function(t,e){r+='')})),r+="",r}function Dt(t,e){var n,r,o="",i="",a="",s="",l=e?"a:lvl1pPr":"a:pPr",c=at(A),u="<".concat(l).concat(t.options.rtlMode?' rtl="1" ':"");if(t.options.align)switch(t.options.align){case"left":u+=' algn="l"';break;case"right":u+=' algn="r"';break;case"center":u+=' algn="ctr"';break;case"justify":u+=' algn="just"';break;default:u+="";break}if(t.options.lineSpacing?i=''):t.options.lineSpacingMultiple&&(i='')),t.options.indentLevel&&!isNaN(Number(t.options.indentLevel))&&t.options.indentLevel>0&&(u+=' lvl="'.concat(t.options.indentLevel,'"')),t.options.paraSpaceBefore&&!isNaN(Number(t.options.paraSpaceBefore))&&t.options.paraSpaceBefore>0&&(a+='')),t.options.paraSpaceAfter&&!isNaN(Number(t.options.paraSpaceAfter))&&t.options.paraSpaceAfter>0&&(a+='')),"object"===typeof t.options.bullet)if((null===(r=null===(n=null===t||void 0===t?void 0:t.options)||void 0===n?void 0:n.bullet)||void 0===r?void 0:r.indent)&&(c=at(t.options.bullet.indent)),t.options.bullet.type)"number"===t.options.bullet.type.toString().toLowerCase()&&(u+=' marL="'.concat(t.options.indentLevel&&t.options.indentLevel>0?c+c*t.options.indentLevel:c,'" indent="-').concat(c,'"'),o=''));else if(t.options.bullet.characterCode){var f="&#x".concat(t.options.bullet.characterCode,";");/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.characterCode)||(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),f=q.DEFAULT),u+=' marL="'.concat(t.options.indentLevel&&t.options.indentLevel>0?c+c*t.options.indentLevel:c,'" indent="-').concat(c,'"'),o=''}else if(t.options.bullet.code){f="&#x".concat(t.options.bullet.code,";");/^[0-9A-Fa-f]{4}$/.test(t.options.bullet.code)||(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),f=q.DEFAULT),u+=' marL="'.concat(t.options.indentLevel&&t.options.indentLevel>0?c+c*t.options.indentLevel:c,'" indent="-').concat(c,'"'),o=''}else u+=' marL="'.concat(t.options.indentLevel&&t.options.indentLevel>0?c+c*t.options.indentLevel:c,'" indent="-').concat(c,'"'),o='');else t.options.bullet?(u+=' marL="'.concat(t.options.indentLevel&&t.options.indentLevel>0?c+c*t.options.indentLevel:c,'" indent="-').concat(c,'"'),o='')):t.options.bullet||(u+=' indent="0" marL="0"',o="");if(t.options.tabStops&&Array.isArray(t.options.tabStops)){var h=t.options.tabStops.map((function(t){return'')})).join("");s="".concat(h,"")}return u+=">"+i+a+o+s,e&&(u+=Bt(t.options,!0)),u+="",u}function Bt(t,e){var n,r="",o=e?"a:defRPr":"a:rPr";if(r+="<"+o+' lang="'+(t.lang?t.lang:"en-US")+'"'+(t.lang?' altLang="en-US"':""),r+=t.fontSize?' sz="'.concat(Math.round(100*t.fontSize),'"'):"",r+=(null===t||void 0===t?void 0:t.bold)?' b="'.concat(t.bold?"1":"0",'"'):"",r+=(null===t||void 0===t?void 0:t.italic)?' i="'.concat(t.italic?"1":"0",'"'):"",r+=(null===t||void 0===t?void 0:t.strike)?' strike="'.concat("string"===typeof t.strike?t.strike:"sngStrike",'"'):"","object"===typeof t.underline&&(null===(n=t.underline)||void 0===n?void 0:n.style)?r+=' u="'.concat(t.underline.style,'"'):"string"===typeof t.underline?r+=' u="'.concat(String(t.underline),'"'):t.hyperlink&&(r+=' u="sng"'),t.baseline?r+=' baseline="'.concat(Math.round(50*t.baseline),'"'):t.subscript?r+=' baseline="-40000"':t.superscript&&(r+=' baseline="30000"'),r+=t.charSpacing?' spc="'.concat(Math.round(100*t.charSpacing),'" kern="0"'):"",r+=' dirty="0">',(t.color||t.fontFace||t.outline||"object"===typeof t.underline&&t.underline.color)&&(t.outline&&"object"===typeof t.outline&&(r+='').concat(ht(t.outline.color||"FFFFFF"),"")),t.color&&(r+=ht({color:t.color,transparency:t.transparency})),t.highlight&&(r+="".concat(ut(t.highlight),"")),"object"===typeof t.underline&&t.underline.color&&(r+="".concat(ht(t.underline.color),"")),t.glow&&(r+="".concat(ft(t.glow,x),"")),t.fontFace&&(r+=''))),t.hyperlink){if("object"!==typeof t.hyperlink)throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!t.hyperlink.url&&!t.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");t.hyperlink.url?r+='":"/>"):t.hyperlink.slide&&(r+='":"/>")),t.color&&(r+=" ",r+=' ',r+=' ',r+=" ",r+=" ",r+="")}return r+=""),r}function Jt(t){return t.text?"".concat(Bt(t.options,!1),"").concat(ot(t.text),""):""}function jt(t){var e="":"resize"===t.options.fit&&(e+="")),t.options.shrinkText&&(e+=""),e+=t.options._bodyProp.autoFit?"":"",e+=""):(e+=' wrap="square" rtlCol="0">',e+=""),t._type===j.tablecell?"":e}function zt(t){var e=t.options||{},n=[],r=[];if(e&&t._type!==j.tablecell&&("undefined"===typeof t.text||null===t.text))return"";var o=t._type===j.tablecell?"":"";o+=jt(t),0===e.h&&e.line&&e.align?o+='':"placeholder"===t._type?o+="".concat(Dt(t,!0),""):o+="","string"===typeof t.text||"number"===typeof t.text?n.push({text:t.text.toString(),options:e||{}}):t.text&&!Array.isArray(t.text)&&"object"===typeof t.text&&Object.keys(t.text).includes("text")?n.push({text:t.text||"",options:t.options||{}}):Array.isArray(t.text)&&(n=t.text.map((function(t){return{text:t.text,options:t.options}}))),n.forEach((function(t,n){t.text||(t.text=""),t.options=t.options||e||{},0===n&&t.options&&!t.options.bullet&&e.bullet&&(t.options.bullet=e.bullet),"string"!==typeof t.text&&"number"!==typeof t.text||(t.text=t.text.toString().replace(/\r*\n/g,d)),t.text.includes(d)&&null===t.text.match(/\n$/g)?t.text.split(d).forEach((function(e){t.options.breakLine=!0,r.push({text:e,options:t.options})})):r.push(t)}));var i=[],a=[];return r.forEach((function(t,n){a.length>0&&(t.options.align||e.align)?t.options.align!==r[n-1].options.align&&(i.push(a),a=[]):a.length>0&&t.options.bullet&&a.length>0&&(i.push(a),a=[],t.options.breakLine=!1),a.push(t),a.length>0&&t.options.breakLine&&n+1";var a="0&&t.options.softBreakBefore&&(o+=""),t.options.align=t.options.align||e.align,t.options.lineSpacing=t.options.lineSpacing||e.lineSpacing,t.options.lineSpacingMultiple=t.options.lineSpacingMultiple||e.lineSpacingMultiple,t.options.indentLevel=t.options.indentLevel||e.indentLevel,t.options.paraSpaceBefore=t.options.paraSpaceBefore||e.paraSpaceBefore,t.options.paraSpaceAfter=t.options.paraSpaceAfter||e.paraSpaceAfter,a=Dt(t,!1),o+=a.replace("",""),Object.entries(e).filter((function(e){var n=e[0];return e[1],!(t.options.hyperlink&&"color"===n)})).forEach((function(e){var n=e[0],r=e[1];"bullet"===n||t.options[n]||(t.options[n]=r)})),o+=Jt(t),(!t.text&&e.fontSize||t.options.fontSize)&&(i=!0,e.fontSize=e.fontSize||t.options.fontSize)})),t._type===j.tablecell&&(e.fontSize||e.fontFace)?e.fontFace?(o+='',o+=''),o+=''),o+=''),o+=""):o+='':o+=i?'':''),o+=""})),o+=t._type===j.tablecell?"":"",o}function qt(t){var e,n;if(!t)return"";var r=(null===(e=t.options)||void 0===e?void 0:e._placeholderIdx)?t.options._placeholderIdx:"",o=(null===(n=t.options)||void 0===n?void 0:n._placeholderType)?t.options._placeholderType:"",i=o&&z[o]?z[o].toString():"";return"0?' hasCustomPrompt="1"':"","\n\t\t/>")}function $t(t,e,n){var r=''+d;return r+='',r+='',r+='',r+='',r+='',r+='',r+='',r+='',r+='',r+='',t.forEach((function(t){(t._relsMedia||[]).forEach((function(t){"image"===t.type||"online"===t.type||"chart"===t.type||"m4v"===t.extn||r.includes(t.type)||(r+='')}))})),r+='',r+='',r+='',r+='',t.forEach((function(t,e){r+=''),r+=''),t._relsChart.forEach((function(t){r+='')}))})),r+='',r+='',r+='',r+='',e.forEach((function(t,e){r+=''),(t._relsChart||[]).forEach((function(t){r+=' '}))})),t.forEach((function(t,e){r+='')})),n._relsChart.forEach((function(t){r+=' '})),n._relsMedia.forEach((function(t){"image"===t.type||"online"===t.type||"chart"===t.type||"m4v"===t.extn||r.includes(t.type)||(r+=' ')})),r+=' ',r+=' ',r+="",r}function te(){return''.concat(d,'\n\t\t\n\t\t\n\t\t\n\t\t')}function ee(t,e){return''.concat(d,'\n\t0\n\t0\n\tMicrosoft Office PowerPoint\n\tOn-screen Show (16:9)\n\t0\n\t').concat(t.length,"\n\t").concat(t.length,'\n\t0\n\t0\n\tfalse\n\t\n\t\t\n\t\t\tFonts Used\n\t\t\t2\n\t\t\tTheme\n\t\t\t1\n\t\t\tSlide Titles\n\t\t\t').concat(t.length,'\n\t\t\n\t\n\t\n\t\t\n\t\t\tArial\n\t\t\tCalibri\n\t\t\tOffice Theme\n\t\t\t').concat(t.map((function(t,e){return"Slide ".concat(e+1,"")})).join(""),"\n\t\t\n\t\n\t").concat(e,"\n\tfalse\n\tfalse\n\tfalse\n\t16.0000\n\t")}function ne(t,e,n,r){return'\n\t\n\t\t'.concat(ot(t),"\n\t\t").concat(ot(e),"\n\t\t").concat(ot(n),"\n\t\t").concat(ot(n),"\n\t\t").concat(r,'\n\t\t').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),'\n\t\t').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),"\n\t")}function re(t){var e=1,n=''+d;n+='',n+='';for(var r=1;r<=t.length;r++)n+='');return e++,n+='')+'')+'')+'')+'')+"",n}function oe(t){return''.concat(d)+'")+"".concat(Ht(t))+""}function ie(t){var e="";return t._slideObjects.forEach((function(t){t._type===j.notes&&(e+=(null===t||void 0===t?void 0:t.text)&&t.text[0]?t.text[0].text:"")})),e.replace(/\r*\n/g,d)}function ae(){return''.concat(d,'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›')}function se(t){return''.concat(d,'').concat(ot(ie(t)),'').concat(t._slideNum,'')}function le(t){return'\n\t\t\n\t\t'.concat(Ht(t),"\n\t\t")}function ce(t,e){var n=e.map((function(e,n){return'')})),r=''+d;return r+='',r+=Ht(t),r+='',r+=""+n.join("")+"",r+='',r+=' ',r+="",r}function ue(t,e){return Gt(e[t-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])}function fe(t,e,n){return Gt(t[n-1],[{target:"../slideLayouts/slideLayout".concat(Re(t,e,n),".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"},{target:"../notesSlides/notesSlide".concat(n,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"}])}function he(t){return'\n\t\t\n\t\t\t\n\t\t\t\n\t\t')}function de(t,e){var n=e.map((function(t,e){return{target:"../slideLayouts/slideLayout".concat(e+1,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}}));return n.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),Gt(t,n)}function pe(){return''.concat(d,'\n\t\t\n\t\t')}function Re(t,e,n){for(var r=0;r'):'',a=(null===(r=t.theme)||void 0===r?void 0:r.bodyFontFace)?''):'';return''.concat(i,'').concat(a,'')}function Ae(t){var e=''.concat(d)+'');e+='',e+="",t.slides.forEach((function(t){return e+='')})),e+="",e+=''),e+=''),e+=''),e+="";for(var n=1;n<10;n++)e+="')+''+"");return e+="",t.sections&&t.sections.length>0&&(e+='',e+='',t.sections.forEach((function(t){e+=''),t._slides.forEach((function(t){return e+='')})),e+=""})),e+="",e+='',e+=""),e+="",e}function ge(){return''.concat(d,'')}function ve(){return''.concat(d,'')}function ye(){return''.concat(d,'')}var be="3.12.0",Me=function(){function t(){var t=this;this._version=be,this._alignH=E,this._alignV=H,this._chartType=Z,this._outputType=C,this._schemeColor=K,this._shapeType=Q,this._charts=D,this._colors=B,this._shapes=G,this.addNewSlide=function(e){var n=t.sections.length>0&&t.sections[t.sections.length-1]._slides.filter((function(e){return e._slideNum===t.slides[t.slides.length-1]._slideNum})).length>0;return e.sectionTitle=n?t.sections[t.sections.length-1].title:null,t.addSlide(e)},this.getSlide=function(e){return t.slides.filter((function(t){return t._slideNum===e}))[0]},this.setSlideNumber=function(e){t.masterSlide._slideNumberProps=e,t.slideLayouts.filter((function(t){return t._name===P}))[0]._slideNumberProps=e},this.createChartMediaRels=function(t,e,n){t._relsChart.forEach((function(t){return n.push(xt(t,e))})),t._relsMedia.forEach((function(t){if("online"!==t.type&&"hyperlink"!==t.type){var n=t.data&&"string"===typeof t.data?t.data:"";(n.includes(",")||n.includes(";"))&&n.includes(",")?n.includes(";")||(n="image/png;"+n):n="image/png;base64,"+n,e.file(t.Target.replace("..","ppt"),n.split(",").pop(),{base64:!0})}}))},this.writeFileToBrowser=function(e,n){return a(t,void 0,void 0,(function(){var t,r;return s(this,(function(o){switch(o.label){case 0:return t=document.createElement("a"),t.setAttribute("style","display:none;"),t.dataset.interception="off",document.body.appendChild(t),window.URL.createObjectURL?(r=window.URL.createObjectURL(new Blob([n],{type:"application/vnd.openxmlformats-officedocument.presentationml.presentation"})),t.href=r,t.download=e,t.click(),setTimeout((function(){window.URL.revokeObjectURL(r),document.body.removeChild(t)}),100),[4,Promise.resolve(e)]):[3,2];case 1:return[2,o.sent()];case 2:return[2]}}))}))},this.exportPresentation=function(e){return a(t,void 0,void 0,(function(){var t,n,r,i=this;return s(this,(function(l){switch(l.label){case 0:return t=[],n=[],r=new(o()),this.slides.forEach((function(t){n=n.concat(Qt(t))})),this.slideLayouts.forEach((function(t){n=n.concat(Qt(t))})),n=n.concat(Qt(this.masterSlide)),[4,Promise.all(n).then((function(){return a(i,void 0,void 0,(function(){var n=this;return s(this,(function(o){switch(o.label){case 0:return this.slides.forEach((function(t){t._slideLayout&&Nt(t)})),r.folder("_rels"),r.folder("docProps"),r.folder("ppt").folder("_rels"),r.folder("ppt/charts").folder("_rels"),r.folder("ppt/embeddings"),r.folder("ppt/media"),r.folder("ppt/slideLayouts").folder("_rels"),r.folder("ppt/slideMasters").folder("_rels"),r.folder("ppt/slides").folder("_rels"),r.folder("ppt/theme"),r.folder("ppt/notesMasters").folder("_rels"),r.folder("ppt/notesSlides").folder("_rels"),r.file("[Content_Types].xml",$t(this.slides,this.slideLayouts,this.masterSlide)),r.file("_rels/.rels",te()),r.file("docProps/app.xml",ee(this.slides,this.company)),r.file("docProps/core.xml",ne(this.title,this.subject,this.author,this.revision)),r.file("ppt/_rels/presentation.xml.rels",re(this.slides)),r.file("ppt/theme/theme1.xml",me(this)),r.file("ppt/presentation.xml",Ae(this)),r.file("ppt/presProps.xml",ge()),r.file("ppt/tableStyles.xml",ve()),r.file("ppt/viewProps.xml",ye()),this.slideLayouts.forEach((function(t,e){r.file("ppt/slideLayouts/slideLayout".concat(e+1,".xml"),le(t)),r.file("ppt/slideLayouts/_rels/slideLayout".concat(e+1,".xml.rels"),ue(e+1,n.slideLayouts))})),this.slides.forEach((function(t,e){r.file("ppt/slides/slide".concat(e+1,".xml"),oe(t)),r.file("ppt/slides/_rels/slide".concat(e+1,".xml.rels"),fe(n.slides,n.slideLayouts,e+1)),r.file("ppt/notesSlides/notesSlide".concat(e+1,".xml"),se(t)),r.file("ppt/notesSlides/_rels/notesSlide".concat(e+1,".xml.rels"),he(e+1))})),r.file("ppt/slideMasters/slideMaster1.xml",ce(this.masterSlide,this.slideLayouts)),r.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",de(this.masterSlide,this.slideLayouts)),r.file("ppt/notesMasters/notesMaster1.xml",ae()),r.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",pe()),this.slideLayouts.forEach((function(e){n.createChartMediaRels(e,r,t)})),this.slides.forEach((function(e){n.createChartMediaRels(e,r,t)})),this.createChartMediaRels(this.masterSlide,r,t),[4,Promise.all(t).then((function(){return a(n,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return"STREAM"!==e.outputType?[3,2]:[4,r.generateAsync({type:"nodebuffer",compression:e.compression?"DEFLATE":"STORE"})];case 1:return[2,t.sent()];case 2:return e.outputType?[4,r.generateAsync({type:e.outputType})]:[3,4];case 3:return[2,t.sent()];case 4:return[4,r.generateAsync({type:"blob",compression:e.compression?"DEFLATE":"STORE"})];case 5:return[2,t.sent()]}}))}))}))];case 1:return[2,o.sent()]}}))}))}))];case 1:return[2,l.sent()]}}))}))};var e={name:"screen4x3",width:9144e3,height:6858e3},n={name:"screen16x9",width:9144e3,height:5143500},r={name:"screen16x10",width:9144e3,height:5715e3},i={name:"custom",width:12192e3,height:6858e3};this.LAYOUTS={LAYOUT_4x3:e,LAYOUT_16x9:n,LAYOUT_16x10:r,LAYOUT_WIDE:i},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[w].name,_sizeW:this.LAYOUTS[w].width,_sizeH:this.LAYOUTS[w].height,width:this.LAYOUTS[w].width,height:this.LAYOUTS[w].height},this._rtlMode=!1,this._slideLayouts=[{_margin:k,_name:P,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(t){var e=this.LAYOUTS[t];if(!e)throw new Error("UNKNOWN-LAYOUT");this._layout=t,this._presLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"author",{get:function(){return this._author},set:function(t){this._author=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"company",{get:function(){return this._company},set:function(t){this._company=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"revision",{get:function(){return this._revision},set:function(t){this._revision=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subject",{get:function(){return this._subject},set:function(t){this._subject=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this._theme},set:function(t){this._theme=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(t){this._title=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(t){this._rtlMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),t.prototype.stream=function(t){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.exportPresentation({compression:null===t||void 0===t?void 0:t.compression,outputType:"STREAM"})];case 1:return[2,e.sent()]}}))}))},t.prototype.write=function(t){return a(this,void 0,void 0,(function(){var e,n;return s(this,(function(r){switch(r.label){case 0:return e="object"===typeof t&&(null===t||void 0===t?void 0:t.outputType)?t.outputType:t||null,n=!("object"!==typeof t||!(null===t||void 0===t?void 0:t.compression))&&t.compression,[4,this.exportPresentation({compression:n,outputType:e})];case 1:return[2,r.sent()]}}))}))},t.prototype.writeFile=function(t){return a(this,void 0,void 0,(function(){var e,r,o,i,l=this;return s(this,(function(c){switch(c.label){case 0:return e="undefined"===typeof window?n(3180):null,"string"===typeof t&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)"),r="object"===typeof t&&(null===t||void 0===t?void 0:t.fileName)?t.fileName:"string"===typeof t?t:"",o=!("object"!==typeof t||!(null===t||void 0===t?void 0:t.compression))&&t.compression,i=r?r.toString().toLowerCase().endsWith(".pptx")?r:r+".pptx":"Presentation.pptx",[4,this.exportPresentation({compression:o,outputType:e?"nodebuffer":null}).then((function(t){return a(l,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return e?[4,new Promise((function(n,r){e.writeFile(i,t,(function(t){t?r(t):n(i)}))}))]:[3,2];case 1:return[2,n.sent()];case 2:return[4,this.writeFileToBrowser(i,t)];case 3:return[2,n.sent()]}}))}))}))];case 1:return[2,c.sent()]}}))}))},t.prototype.addSection=function(t){t?t.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var e={_type:"user",_slides:[],title:t.title};t.order?this.sections.splice(t.order,0,e):this._sections.push(e)},t.prototype.addSlide=function(t){var e="string"===typeof t?t:(null===t||void 0===t?void 0:t.masterName)?t.masterName:"",n={_name:this.LAYOUTS[w].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(e){var r=this.slideLayouts.filter((function(t){return t._name===e}))[0];r&&(n=r)}var o=new Tt({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:n});if(this._slides.push(o),null===t||void 0===t?void 0:t.sectionTitle){var i=this.sections.filter((function(e){return e.title===t.sectionTitle}))[0];i?i._slides.push(o):console.warn('addSlide: unable to find section with title: "'.concat(t.sectionTitle,'"'))}else if(this.sections&&this.sections.length>0&&!(null===t||void 0===t?void 0:t.sectionTitle)){var a=this._sections[this.sections.length-1];"default"===a._type?a._slides.push(o):this._sections.push({title:"Default-".concat(this.sections.filter((function(t){return"default"===t._type})).length+1),_type:"default",_slides:[o]})}return o},t.prototype.defineLayout=function(t){t?t.name?t.width?t.height?"number"!==typeof t.height?console.warn("defineLayout `height` should be a number (inches)"):"number"!==typeof t.width&&console.warn("defineLayout `width` should be a number (inches)"):console.warn("defineLayout requires `height`"):console.warn("defineLayout requires `width`"):console.warn("defineLayout requires `name`"):console.warn("defineLayout requires `{name, width, height}`"),this.LAYOUTS[t.name]={name:t.name,_sizeW:Math.round(Number(t.width)*f),_sizeH:Math.round(Number(t.height)*f),width:Math.round(Number(t.width)*f),height:Math.round(Number(t.height)*f)}},t.prototype.defineSlideMaster=function(t){if(!t.title)throw new Error("defineSlideMaster() object argument requires a `title` value. (https://gitbrent.github.io/PptxGenJS/docs/masters.html)");var e={_margin:t.margin||k,_name:t.title,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3+this.slideLayouts.length+1,_slideNumberProps:t.slideNumber||null,_slideObjects:[],background:t.background||null,bkgd:t.bkgd||null};vt(t,e),this.slideLayouts.push(e),(t.background||t.bkgd)&&Lt(t.background,e),e._slideNumberProps&&!this.masterSlide._slideNumberProps&&(this.masterSlide._slideNumberProps=e._slideNumberProps)},t.prototype.tableToSlides=function(t,e){void 0===e&&(e={}),At(this,t,e,(null===e||void 0===e?void 0:e.masterSlideName)?this.slideLayouts.filter((function(t){return t._name===e.masterSlideName}))[0]:null)},t}()},5205:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});var r,o=function(){return Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))};function i(t,e){void 0===e&&(e={});var n=e.registrationOptions;void 0===n&&(n={}),delete e.registrationOptions;var i=function(t){var n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];e&&e[t]&&e[t].apply(e,n)};"serviceWorker"in navigator&&r.then((function(){o()?(l(t,i,n),navigator.serviceWorker.ready.then((function(t){i("ready",t)})).catch((function(t){return a(i,t)}))):(s(t,i,n),navigator.serviceWorker.ready.then((function(t){i("ready",t)})).catch((function(t){return a(i,t)})))}))}function a(t,e){navigator.onLine||t("offline"),t("error",e)}function s(t,e,n){navigator.serviceWorker.register(t,n).then((function(t){e("registered",t),t.waiting?e("updated",t):t.onupdatefound=function(){e("updatefound",t);var n=t.installing;n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?e("updated",t):e("cached",t))}}})).catch((function(t){return a(e,t)}))}function l(t,e,n){fetch(t).then((function(r){404===r.status?(e("error",new Error("Service worker not found at "+t)),c()):-1===r.headers.get("content-type").indexOf("javascript")?(e("error",new Error("Expected "+t+" to have javascript content-type, but received "+r.headers.get("content-type"))),c()):s(t,e,n)})).catch((function(t){return a(e,t)}))}function c(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(t){t.unregister()})).catch((function(t){return a(emit,t)}))}"undefined"!==typeof window&&(r="undefined"!==typeof Promise?new Promise((function(t){return window.addEventListener("load",t)})):{then:function(t){return window.addEventListener("load",t)}})},1474:function(t,e,n){"use strict"; -/**! - * Sortable 1.14.0 - * @author RubaXa - * @author owenm - * @license MIT - */ -function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(o[n]=t[n]);return o}function c(t,e){if(null==t)return{};var n,r,o=l(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function u(t){return f(t)||h(t)||d(t)||R()}function f(t){if(Array.isArray(t))return p(t)}function h(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function d(t,e){if(t){if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function L(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function k(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&N(t,e):N(t,e))||r&&t===n)return t;if(t===n)break}while(t=L(t))}return null}var T,x=/\s+/g;function W(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(x," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(x," ")}}function X(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"===typeof n?"":"px")}}function _(t,e){var n="";if("string"===typeof t)n=t;else do{var r=X(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function V(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o=i:o<=i,!a)return r;if(r===F())break;r=E(r,!1)}return!1}function I(t,e,n,r){var o=0,i=0,a=t.children;while(i2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=c(n,st);it.pluginEvent.bind(ne)(t,e,o({dragEl:ut,parentEl:ft,ghostEl:ht,rootEl:dt,nextEl:pt,lastDownEl:Rt,cloneEl:mt,cloneHidden:At,dragStarted:Tt,putSortable:Ot,activeSortable:ne.active,originalEvent:r,oldIndex:gt,oldDraggableIndex:yt,newIndex:vt,newDraggableIndex:bt,hideGhostForTarget:qt,unhideGhostForTarget:$t,cloneNowHidden:function(){At=!0},cloneNowShown:function(){At=!1},dispatchSortableEvent:function(t){ct({sortable:e,name:t,originalEvent:r})}},i))};function ct(t){at(o({putSortable:Ot,cloneEl:mt,targetEl:ut,rootEl:dt,oldIndex:gt,oldDraggableIndex:yt,newIndex:vt,newDraggableIndex:bt},t))}var ut,ft,ht,dt,pt,Rt,mt,At,gt,vt,yt,bt,Mt,Ot,St,wt,Pt,Nt,Lt,kt,Tt,xt,Wt,Xt,_t,Vt=!1,Ft=!1,Ut=[],Yt=!1,It=!1,Ct=[],Zt=!1,Qt=[],Kt="undefined"!==typeof document,Et=M,Ht=v||g?"cssFloat":"float",Gt=Kt&&!O&&!M&&"draggable"in document.createElement("div"),Dt=function(){if(Kt){if(g)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Bt=function(t,e){var n=X(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=I(t,0,e),i=I(t,1,e),a=o&&X(o),s=i&&X(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+U(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+U(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Ht]||i&&"none"===n[Ht]&&l+c>r)?"vertical":"horizontal"},Jt=function(t,e,n){var r=n?t.left:t.top,o=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,l=n?e.width:e.height;return r===a||o===s||r+i/2===a+l/2},jt=function(t,e){var n;return Ut.some((function(r){var o=r[$].options.emptyInsertThreshold;if(o&&!C(r)){var i=U(r),a=t>=i.left-o&&t<=i.right+o,s=e>=i.top-o&&e<=i.bottom+o;return a&&s?n=r:void 0}})),n},zt=function(t){function e(t,n){return function(r,o,i,a){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(r,o,i,a),n)(r,o,i,a);var l=(n?r:o).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},r=t.group;r&&"object"==i(r)||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},qt=function(){!Dt&&ht&&X(ht,"display","none")},$t=function(){!Dt&&ht&&X(ht,"display","")};Kt&&document.addEventListener("click",(function(t){if(Ft)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ft=!1,!1}),!0);var te=function(t){if(ut){t=t.touches?t.touches[0]:t;var e=jt(t.clientX,t.clientY);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[$]._onDragOver(n)}}},ee=function(t){ut&&ut.parentNode[$]._isOutsideThisEl(t.target)};function ne(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=s({},e),t[$]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Bt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==ne.supportPointer&&"PointerEvent"in window&&!b,emptyInsertThreshold:5};for(var r in it.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var o in zt(e),this)"_"===o.charAt(0)&&"function"===typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Gt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?w(t,"pointerdown",this._onTapStart):(w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),Ut.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),s(this,tt())}function re(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function oe(t,e,n,r,o,i,a,s){var l,c,u=t[$],f=u.options.onMove;return!window.CustomEvent||g||v?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=o||e,l.relatedRect=i||U(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),f&&(c=f.call(u,l,a)),c}function ie(t){t.draggable=!1}function ae(){Zt=!1}function se(t,e,n){var r=U(I(n.el,0,n.options,!0)),o=10;return e?t.clientXr.right+o||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+o}function ce(t,e,n,r,o,i,a,s){var l=r?t.clientY:t.clientX,c=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,h=!1;if(!a)if(s&&Xtu+c*i/2:lf-Xt)return-Wt}else if(l>u+c*(1-o)/2&&lf-c*i/2)?l>u+c/2?1:-1:0}function ue(t){return Z(ut)=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ut&&ie(ut),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;P(t,"mouseup",this._disableDelayedDrag),P(t,"touchend",this._disableDelayedDrag),P(t,"touchcancel",this._disableDelayedDrag),P(t,"mousemove",this._delayedDragTouchMoveHandler),P(t,"touchmove",this._delayedDragTouchMoveHandler),P(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):w(document,e?"touchmove":"mousemove",this._onTouchMove):(w(ut,"dragend",this),w(dt,"dragstart",this._onDragStart));try{document.selection?de((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(Vt=!1,dt&&ut){lt("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",ee);var n=this.options;!t&&W(ut,n.dragClass,!1),W(ut,n.ghostClass,!0),ne.active=this,t&&this._appendGhost(),ct({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(wt){this._lastX=wt.clientX,this._lastY=wt.clientY,qt();var t=document.elementFromPoint(wt.clientX,wt.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(wt.clientX,wt.clientY),t===e)break;e=t}if(ut.parentNode[$]._isOutsideThisEl(t),e)do{if(e[$]){var n=void 0;if(n=e[$]._onDragOver({clientX:wt.clientX,clientY:wt.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);$t()}},_onTouchMove:function(t){if(St){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,i=ht&&_(ht,!0),a=ht&&i&&i.a,s=ht&&i&&i.d,l=Et&&_t&&Q(_t),c=(o.clientX-St.clientX+r.x)/(a||1)+(l?l[0]-Ct[0]:0)/(a||1),u=(o.clientY-St.clientY+r.y)/(s||1)+(l?l[1]-Ct[1]:0)/(s||1);if(!ne.active&&!Vt){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0&&(ct({rootEl:ft,name:"add",toEl:ft,fromEl:dt,originalEvent:t}),ct({sortable:this,name:"remove",toEl:ft,originalEvent:t}),ct({rootEl:ft,name:"sort",toEl:ft,fromEl:dt,originalEvent:t}),ct({sortable:this,name:"sort",toEl:ft,originalEvent:t})),Ot&&Ot.save()):vt!==gt&&vt>=0&&(ct({sortable:this,name:"update",toEl:ft,originalEvent:t}),ct({sortable:this,name:"sort",toEl:ft,originalEvent:t})),ne.active&&(null!=vt&&-1!==vt||(vt=gt,bt=yt),ct({sortable:this,name:"end",toEl:ft,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){lt("nulling",this),dt=ut=ft=ht=pt=mt=Rt=At=St=wt=Tt=vt=bt=gt=yt=xt=Wt=Ot=Mt=ne.dragged=ne.ghost=ne.clone=ne.active=null,Qt.forEach((function(t){t.checked=!0})),Qt.length=Pt=Nt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ut&&(this._onDragOver(t),re(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,o=n.length,i=this.options;r1&&(Ye.forEach((function(t){r.addAnimationState({target:t,rect:Ze?U(t):o}),q(t),t.fromRect=o,e.removeAnimationState(t)})),Ze=!1,Ee(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,r=t.insertion,o=t.activeSortable,i=t.parentEl,a=t.putSortable,s=this.options;if(r){if(n&&o._hideClone(),Ce=!1,s.animation&&Ye.length>1&&(Ze||!n&&!o.options.sort&&!a)){var l=U(Ve,!1,!0,!0);Ye.forEach((function(t){t!==Ve&&(z(t,l),i.appendChild(t))})),Ze=!0}if(!n)if(Ze||Ge(),Ye.length>1){var c=Ue;o._showClone(e),o.options.animation&&!Ue&&c&&Ie.forEach((function(t){o.addAnimationState({target:t,rect:Fe}),t.fromRect=Fe,t.thisAnimationDuration=null}))}else o._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,r=t.activeSortable;if(Ye.forEach((function(t){t.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Fe=s({},e);var o=_(Ve,!0);Fe.top-=o.f,Fe.left-=o.e}},dragOverAnimationComplete:function(){Ze&&(Ze=!1,Ge())},drop:function(t){var e=t.originalEvent,n=t.rootEl,r=t.parentEl,o=t.sortable,i=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var c=this.options,u=r.children;if(!Qe)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),W(Ve,c.selectedClass,!~Ye.indexOf(Ve)),~Ye.indexOf(Ve))Ye.splice(Ye.indexOf(Ve),1),Xe=null,at({sortable:o,rootEl:n,name:"deselect",targetEl:Ve,originalEvt:e});else{if(Ye.push(Ve),at({sortable:o,rootEl:n,name:"select",targetEl:Ve,originalEvt:e}),e.shiftKey&&Xe&&o.el.contains(Xe)){var f,h,d=Z(Xe),p=Z(Ve);if(~d&&~p&&d!==p)for(p>d?(h=d,f=p):(h=p,f=d+1);h1){var R=U(Ve),m=Z(Ve,":not(."+this.options.selectedClass+")");if(!Ce&&c.animation&&(Ve.thisAnimationDuration=null),l.captureAnimationState(),!Ce&&(c.animation&&(Ve.fromRect=R,Ye.forEach((function(t){if(t.thisAnimationDuration=null,t!==Ve){var e=Ze?U(t):R;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),Ge(),Ye.forEach((function(t){u[m]?r.insertBefore(t,u[m]):r.appendChild(t),m++})),a===Z(Ve))){var A=!1;Ye.forEach((function(t){t.sortableIndex===Z(t)||(A=!0)})),A&&i("update")}Ye.forEach((function(t){q(t)})),l.animateAll()}_e=l}(n===r||s&&"clone"!==s.lastPutMode)&&Ie.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Qe=!1,Ie.length=0},destroyGlobal:function(){this._deselectMultiDrag(),P(document,"pointerup",this._deselectMultiDrag),P(document,"mouseup",this._deselectMultiDrag),P(document,"touchend",this._deselectMultiDrag),P(document,"keydown",this._checkKeyDown),P(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof Qe||!Qe)&&_e===this.sortable&&(!t||!k(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Ye.length){var e=Ye[0];W(e,this.options.selectedClass,!1),Ye.shift(),at({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[$];e&&e.options.multiDrag&&!~Ye.indexOf(t)&&(_e&&_e!==e&&(_e.multiDrag._deselectMultiDrag(),_e=e),W(t,e.options.selectedClass,!0),Ye.push(t))},deselect:function(t){var e=t.parentNode[$],n=Ye.indexOf(t);e&&e.options.multiDrag&&~n&&(W(t,e.options.selectedClass,!1),Ye.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return Ye.forEach((function(r){var o;e.push({multiDragElement:r,index:r.sortableIndex}),o=Ze&&r!==Ve?-1:Ze?Z(r,":not(."+t.options.selectedClass+")"):Z(r),n.push({multiDragElement:r,index:o})})),{items:u(Ye),clones:[].concat(Ie),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Ee(t,e){Ye.forEach((function(n,r){var o=e.children[n.sortableIndex+(t?Number(r):0)];o?e.insertBefore(n,o):e.appendChild(n)}))}function He(t,e){Ie.forEach((function(n,r){var o=e.children[n.sortableIndex+(t?Number(r):0)];o?e.insertBefore(n,o):e.appendChild(n)}))}function Ge(){Ye.forEach((function(t){t!==Ve&&t.parentNode&&t.parentNode.removeChild(t)}))}ne.mount(new Oe),ne.mount(Te,ke),e["default"]=ne},7943:function(t,e){"use strict";var n=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=2*Math.PI,o=function(t,e,n,r,o,i,a){var s=t.x,l=t.y;s*=e,l*=n;var c=r*s-o*l,u=o*s+r*l;return{x:c+i,y:u+a}},i=function(t,e){var n=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),o=Math.sin(t),i=Math.cos(t+e),a=Math.sin(t+e);return[{x:r-o*n,y:o+r*n},{x:i+a*n,y:a-i*n},{x:i,y:a}]},a=function(t,e,n,r){var o=t*r-e*n<0?-1:1,i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),o*Math.acos(i)},s=function(t,e,n,o,i,s,l,c,u,f,h,d){var p=Math.pow(i,2),R=Math.pow(s,2),m=Math.pow(h,2),A=Math.pow(d,2),g=p*R-p*A-R*m;g<0&&(g=0),g/=p*A+R*m,g=Math.sqrt(g)*(l===c?-1:1);var v=g*i/s*d,y=g*-s/i*h,b=f*v-u*y+(t+n)/2,M=u*v+f*y+(e+o)/2,O=(h-v)/i,S=(d-y)/s,w=(-h-v)/i,P=(-d-y)/s,N=a(1,0,O,S),L=a(O,S,w,P);return 0===c&&L>0&&(L-=r),1===c&&L<0&&(L+=r),[b,M,N,L]},l=function(t){var e=t.px,a=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,d=void 0===h?0:h,p=t.largeArcFlag,R=void 0===p?0:p,m=t.sweepFlag,A=void 0===m?0:m,g=[];if(0===u||0===f)return[];var v=Math.sin(d*r/360),y=Math.cos(d*r/360),b=y*(e-l)/2+v*(a-c)/2,M=-v*(e-l)/2+y*(a-c)/2;if(0===b&&0===M)return[];u=Math.abs(u),f=Math.abs(f);var O=Math.pow(b,2)/Math.pow(u,2)+Math.pow(M,2)/Math.pow(f,2);O>1&&(u*=Math.sqrt(O),f*=Math.sqrt(O));var S=s(e,a,l,c,u,f,R,A,v,y,b,M),w=n(S,4),P=w[0],N=w[1],L=w[2],k=w[3],T=Math.abs(k)/(r/4);Math.abs(1-T)<1e-7&&(T=1);var x=Math.max(Math.ceil(T),1);k/=x;for(var W=0;W0&&c(a.width)/t.offsetWidth||1,l=t.offsetHeight>0&&c(a.height)/t.offsetHeight||1);var u=o(t)?r(t):window,h=u.visualViewport,d=!f()&&n,p=(a.left+(d&&h?h.offsetLeft:0))/s,R=(a.top+(d&&h?h.offsetTop:0))/l,m=a.width/s,A=a.height/l;return{width:m,height:A,top:R,right:p+m,bottom:R+A,left:p,x:p,y:R}}function d(t){var e=r(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function p(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function R(t){return t!==r(t)&&i(t)?p(t):d(t)}function m(t){return t?(t.nodeName||"").toLowerCase():null}function A(t){return((o(t)?t.ownerDocument:t.document)||window.document).documentElement}function g(t){return h(A(t)).left+d(t).scrollLeft}function v(t){return r(t).getComputedStyle(t)}function y(t){var e=v(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(t){var e=t.getBoundingClientRect(),n=c(e.width)/t.offsetWidth||1,r=c(e.height)/t.offsetHeight||1;return 1!==n||1!==r}function M(t,e,n){void 0===n&&(n=!1);var r=i(e),o=i(e)&&b(e),a=A(e),s=h(t,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==m(e)||y(a))&&(l=R(e)),i(e)?(c=h(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):a&&(c.x=g(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function O(t){var e=h(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function S(t){return"html"===m(t)?t:t.assignedSlot||t.parentNode||(a(t)?t.host:null)||A(t)}function w(t){return["html","body","#document"].indexOf(m(t))>=0?t.ownerDocument.body:i(t)&&y(t)?t:w(S(t))}function P(t,e){var n;void 0===e&&(e=[]);var o=w(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),a=r(o),s=i?[a].concat(a.visualViewport||[],y(o)?o:[]):o,l=e.concat(s);return i?l:l.concat(P(S(s)))}function N(t){return["table","td","th"].indexOf(m(t))>=0}function L(t){return i(t)&&"fixed"!==v(t).position?t.offsetParent:null}function k(t){var e=/firefox/i.test(u()),n=/Trident/i.test(u());if(n&&i(t)){var r=v(t);if("fixed"===r.position)return null}var o=S(t);a(o)&&(o=o.host);while(i(o)&&["html","body"].indexOf(m(o))<0){var s=v(o);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||e&&"filter"===s.willChange||e&&s.filter&&"none"!==s.filter)return o;o=o.parentNode}return null}function T(t){var e=r(t),n=L(t);while(n&&N(n)&&"static"===v(n).position)n=L(n);return n&&("html"===m(n)||"body"===m(n)&&"static"===v(n).position)?e:n||k(t)||e}var x="top",W="bottom",X="right",_="left",V="auto",F=[x,W,X,_],U="start",Y="end",I="clippingParents",C="viewport",Z="popper",Q="reference",K=F.reduce((function(t,e){return t.concat([e+"-"+U,e+"-"+Y])}),[]),E=[].concat(F,[V]).reduce((function(t,e){return t.concat([e,e+"-"+U,e+"-"+Y])}),[]),H="beforeRead",G="read",D="afterRead",B="beforeMain",J="main",j="afterMain",z="beforeWrite",q="write",$="afterWrite",tt=[H,G,D,B,J,j,z,q,$];function et(t){var e=new Map,n=new Set,r=[];function o(t){n.add(t.name);var i=[].concat(t.requires||[],t.requiresIfExists||[]);i.forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&o(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),r}function nt(t){var e=et(t);return tt.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}function rt(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}function ot(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var it={placement:"bottom",modifiers:[],strategy:"absolute"};function at(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}function pt(t){var e,n=t.reference,r=t.element,o=t.placement,i=o?ft(o):null,a=o?ht(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case x:e={x:s,y:n.y-r.height};break;case W:e={x:s,y:n.y+n.height};break;case X:e={x:n.x+n.width,y:l};break;case _:e={x:n.x-r.width,y:l};break;default:e={x:n.x,y:n.y}}var c=i?dt(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case U:e[c]=e[c]-(n[u]/2-r[u]/2);break;case Y:e[c]=e[c]+(n[u]/2-r[u]/2);break;default:}}return e}function Rt(t){var e=t.state,n=t.name;e.modifiersData[n]=pt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var mt={name:"popperOffsets",enabled:!0,phase:"read",fn:Rt,data:{}},At={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gt(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:c(n*o)/o||0,y:c(r*o)/o||0}}function vt(t){var e,n=t.popper,o=t.popperRect,i=t.placement,a=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,f=t.roundOffsets,h=t.isFixed,d=s.x,p=void 0===d?0:d,R=s.y,m=void 0===R?0:R,g="function"===typeof f?f({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),M=_,O=x,S=window;if(u){var w=T(n),P="clientHeight",N="clientWidth";if(w===r(n)&&(w=A(n),"static"!==v(w).position&&"absolute"===l&&(P="scrollHeight",N="scrollWidth")),i===x||(i===_||i===X)&&a===Y){O=W;var L=h&&w===S&&S.visualViewport?S.visualViewport.height:w[P];m-=L-o.height,m*=c?1:-1}if(i===_||(i===x||i===W)&&a===Y){M=X;var k=h&&w===S&&S.visualViewport?S.visualViewport.width:w[N];p-=k-o.width,p*=c?1:-1}}var V,F=Object.assign({position:l},u&&At),U=!0===f?gt({x:p,y:m},r(n)):{x:p,y:m};return p=U.x,m=U.y,c?Object.assign({},F,(V={},V[O]=b?"0":"",V[M]=y?"0":"",V.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",V)):Object.assign({},F,(e={},e[O]=b?m+"px":"",e[M]=y?p+"px":"",e.transform="",e))}function yt(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:ft(e.placement),variation:ht(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,vt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,vt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var bt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yt,data:{}};function Mt(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];i(o)&&m(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))}function Ot(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],o=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]),s=a.reduce((function(t,e){return t[e]="",t}),{});i(r)&&m(r)&&(Object.assign(r.style,s),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}}var St={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Ot,requires:["computeStyles"]};function wt(t,e,n){var r=ft(t),o=[_,x].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[_,X].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Pt(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=void 0===o?[0,0]:o,a=E.reduce((function(t,n){return t[n]=wt(n,e.rects,i),t}),{}),s=a[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}var Nt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Pt},Lt={left:"right",right:"left",bottom:"top",top:"bottom"};function kt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Lt[t]}))}var Tt={start:"end",end:"start"};function xt(t){return t.replace(/start|end/g,(function(t){return Tt[t]}))}function Wt(t,e){var n=r(t),o=A(t),i=n.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;var u=f();(u||!u&&"fixed"===e)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l+g(t),y:c}}function Xt(t){var e,n=A(t),r=d(t),o=null==(e=t.ownerDocument)?void 0:e.body,i=s(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+g(t),c=-r.scrollTop;return"rtl"===v(o||n).direction&&(l+=s(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function _t(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&a(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Vt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ft(t,e){var n=h(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Ut(t,e,n){return e===C?Vt(Wt(t,n)):o(e)?Ft(e,n):Vt(Xt(A(t)))}function Yt(t){var e=P(S(t)),n=["absolute","fixed"].indexOf(v(t).position)>=0,r=n&&i(t)?T(t):t;return o(r)?e.filter((function(t){return o(t)&&_t(t,r)&&"body"!==m(t)})):[]}function It(t,e,n,r){var o="clippingParents"===e?Yt(t):[].concat(e),i=[].concat(o,[n]),a=i[0],c=i.reduce((function(e,n){var o=Ut(t,n,r);return e.top=s(o.top,e.top),e.right=l(o.right,e.right),e.bottom=l(o.bottom,e.bottom),e.left=s(o.left,e.left),e}),Ut(t,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Ct(){return{top:0,right:0,bottom:0,left:0}}function Zt(t){return Object.assign({},Ct(),t)}function Qt(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Kt(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,a=n.strategy,s=void 0===a?t.strategy:a,l=n.boundary,c=void 0===l?I:l,u=n.rootBoundary,f=void 0===u?C:u,d=n.elementContext,p=void 0===d?Z:d,R=n.altBoundary,m=void 0!==R&&R,g=n.padding,v=void 0===g?0:g,y=Zt("number"!==typeof v?v:Qt(v,F)),b=p===Z?Q:Z,M=t.rects.popper,O=t.elements[m?b:p],S=It(o(O)?O:O.contextElement||A(t.elements.popper),c,f,s),w=h(t.elements.reference),P=pt({reference:w,element:M,strategy:"absolute",placement:i}),N=Vt(Object.assign({},M,P)),L=p===Z?N:w,k={top:S.top-L.top+y.top,bottom:L.bottom-S.bottom+y.bottom,left:S.left-L.left+y.left,right:L.right-S.right+y.right},T=t.modifiersData.offset;if(p===Z&&T){var _=T[i];Object.keys(k).forEach((function(t){var e=[X,W].indexOf(t)>=0?1:-1,n=[x,W].indexOf(t)>=0?"y":"x";k[t]+=_[n]*e}))}return k}function Et(t,e){void 0===e&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?E:l,u=ht(r),f=u?s?K:K.filter((function(t){return ht(t)===u})):F,h=f.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=f);var d=h.reduce((function(e,n){return e[n]=Kt(t,{placement:n,boundary:o,rootBoundary:i,padding:a})[ft(n)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}function Ht(t){if(ft(t)===V)return[];var e=kt(t);return[xt(t),e,xt(e)]}function Gt(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=void 0===d||d,R=n.allowedAutoPlacements,m=e.options.placement,A=ft(m),g=A===m,v=l||(g||!p?[kt(m)]:Ht(m)),y=[m].concat(v).reduce((function(t,n){return t.concat(ft(n)===V?Et(e,{placement:n,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:R}):n)}),[]),b=e.rects.reference,M=e.rects.popper,O=new Map,S=!0,w=y[0],P=0;P=0,F=T?"width":"height",Y=Kt(e,{placement:N,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),I=T?k?X:_:k?W:x;b[F]>M[F]&&(I=kt(I));var C=kt(I),Z=[];if(i&&Z.push(Y[L]<=0),s&&Z.push(Y[I]<=0,Y[C]<=0),Z.every((function(t){return t}))){w=N,S=!1;break}O.set(N,Z)}if(S)for(var Q=p?3:1,K=function(t){var e=y.find((function(e){var n=O.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return w=e,"break"},E=Q;E>0;E--){var H=K(E);if("break"===H)break}e.placement!==w&&(e.modifiersData[r]._skip=!0,e.placement=w,e.reset=!0)}}var Dt={name:"flip",enabled:!0,phase:"main",fn:Gt,requiresIfExists:["offset"],data:{_skip:!1}};function Bt(t){return"x"===t?"y":"x"}function Jt(t,e,n){return s(t,l(e,n))}function jt(t,e,n){var r=Jt(t,e,n);return r>n?n:r}function zt(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.padding,p=n.tether,R=void 0===p||p,m=n.tetherOffset,A=void 0===m?0:m,g=Kt(e,{boundary:u,rootBoundary:f,padding:d,altBoundary:h}),v=ft(e.placement),y=ht(e.placement),b=!y,M=dt(v),S=Bt(M),w=e.modifiersData.popperOffsets,P=e.rects.reference,N=e.rects.popper,L="function"===typeof A?A(Object.assign({},e.rects,{placement:e.placement})):A,k="number"===typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(w){if(i){var Y,I="y"===M?x:_,C="y"===M?W:X,Z="y"===M?"height":"width",Q=w[M],K=Q+g[I],E=Q-g[C],H=R?-N[Z]/2:0,G=y===U?P[Z]:N[Z],D=y===U?-N[Z]:-P[Z],B=e.elements.arrow,J=R&&B?O(B):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ct(),z=j[I],q=j[C],$=Jt(0,P[Z],J[Z]),tt=b?P[Z]/2-H-$-z-k.mainAxis:G-$-z-k.mainAxis,et=b?-P[Z]/2+H+$+q+k.mainAxis:D+$+q+k.mainAxis,nt=e.elements.arrow&&T(e.elements.arrow),rt=nt?"y"===M?nt.clientTop||0:nt.clientLeft||0:0,ot=null!=(Y=null==V?void 0:V[M])?Y:0,it=Q+tt-ot-rt,at=Q+et-ot,st=Jt(R?l(K,it):K,Q,R?s(E,at):E);w[M]=st,F[M]=st-Q}if(c){var lt,ct="x"===M?x:_,ut="x"===M?W:X,pt=w[S],Rt="y"===S?"height":"width",mt=pt+g[ct],At=pt-g[ut],gt=-1!==[x,_].indexOf(v),vt=null!=(lt=null==V?void 0:V[S])?lt:0,yt=gt?mt:pt-P[Rt]-N[Rt]-vt+k.altAxis,bt=gt?pt+P[Rt]+N[Rt]-vt-k.altAxis:At,Mt=R&>?jt(yt,pt,bt):Jt(R?yt:mt,pt,R?bt:At);w[S]=Mt,F[S]=Mt-pt}e.modifiersData[r]=F}}var qt={name:"preventOverflow",enabled:!0,phase:"main",fn:zt,requiresIfExists:["offset"]},$t=function(t,e){return t="function"===typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t,Zt("number"!==typeof t?t:Qt(t,F))};function te(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ft(n.placement),l=dt(s),c=[_,X].indexOf(s)>=0,u=c?"height":"width";if(i&&a){var f=$t(o.padding,n),h=O(i),d="y"===l?x:_,p="y"===l?W:X,R=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],A=T(i),g=A?"y"===l?A.clientHeight||0:A.clientWidth||0:0,v=R/2-m/2,y=f[d],b=g-h[u]-f[p],M=g/2-h[u]/2+v,S=Jt(y,M,b),w=l;n.modifiersData[r]=(e={},e[w]=S,e.centerOffset=S-M,e)}}function ee(t){var e=t.state,n=t.options,r=n.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!==typeof o||(o=e.elements.popper.querySelector(o),o))&&_t(e.elements.popper,o)&&(e.elements.arrow=o)}var ne={name:"arrow",enabled:!0,phase:"main",fn:te,effect:ee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function re(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function oe(t){return[x,X,W,_].some((function(e){return t[e]>=0}))}function ie(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=Kt(e,{elementContext:"reference"}),s=Kt(e,{altBoundary:!0}),l=re(a,r),c=re(s,o,i),u=oe(l),f=oe(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var ae={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ie},se=[ut,mt,bt,St,Nt,Dt,qt,ne,ae],le=st({defaultModifiers:se}),ce="tippy-box",ue="tippy-content",fe="tippy-backdrop",he="tippy-arrow",de="tippy-svg-arrow",pe={passive:!0,capture:!0},Re=function(){return document.body};function me(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function Ae(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function ge(t,e){return"function"===typeof t?t.apply(void 0,e):t}function ve(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function ye(t){return t.split(/\s+/).filter(Boolean)}function be(t){return[].concat(t)}function Me(t,e){-1===t.indexOf(e)&&t.push(e)}function Oe(t){return t.filter((function(e,n){return t.indexOf(e)===n}))}function Se(t){return t.split("-")[0]}function we(t){return[].slice.call(t)}function Pe(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function Ne(){return document.createElement("div")}function Le(t){return["Element","Fragment"].some((function(e){return Ae(t,e)}))}function ke(t){return Ae(t,"NodeList")}function Te(t){return Ae(t,"MouseEvent")}function xe(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function We(t){return Le(t)?[t]:ke(t)?we(t):Array.isArray(t)?t:we(document.querySelectorAll(t))}function Xe(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function _e(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function Ve(t){var e,n=be(t),r=n[0];return null!=r&&null!=(e=r.ownerDocument)&&e.body?r.ownerDocument:document}function Fe(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,o=t.popperState,i=t.props,a=i.interactiveBorder,s=Se(o.placement),l=o.modifiersData.offset;if(!l)return!0;var c="bottom"===s?l.top.y:0,u="top"===s?l.bottom.y:0,f="right"===s?l.left.x:0,h="left"===s?l.right.x:0,d=e.top-r+c>a,p=r-e.bottom-u>a,R=e.left-n+f>a,m=n-e.right-h>a;return d||p||R||m}))}function Ue(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}function Ye(t,e){var n=e;while(n){var r;if(t.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Ie={isTouch:!1},Ce=0;function Ze(){Ie.isTouch||(Ie.isTouch=!0,window.performance&&document.addEventListener("mousemove",Qe))}function Qe(){var t=performance.now();t-Ce<20&&(Ie.isTouch=!1,document.removeEventListener("mousemove",Qe)),Ce=t}function Ke(){var t=document.activeElement;if(xe(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Ee(){document.addEventListener("touchstart",Ze,pe),window.addEventListener("blur",Ke)}var He="undefined"!==typeof window&&"undefined"!==typeof document,Ge=!!He&&!!window.msCrypto;var De={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Be={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Je=Object.assign({appendTo:Re,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},De,Be),je=Object.keys(Je),ze=function(t){var e=Object.keys(t);e.forEach((function(e){Je[e]=t[e]}))};function qe(t){var e=t.plugins||[],n=e.reduce((function(e,n){var r,o=n.name,i=n.defaultValue;o&&(e[o]=void 0!==t[o]?t[o]:null!=(r=Je[o])?r:i);return e}),{});return Object.assign({},t,n)}function $e(t,e){var n=e?Object.keys(qe(Object.assign({},Je,{plugins:e}))):je,r=n.reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(o){e[n]=r}return e}),{});return r}function tn(t,e){var n=Object.assign({},e,{content:ge(e.content,[t])},e.ignoreAttributes?{}:$e(t,e.plugins));return n.aria=Object.assign({},Je.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}var en=function(){return"innerHTML"};function nn(t,e){t[en()]=e}function rn(t){var e=Ne();return!0===t?e.className=he:(e.className=de,Le(t)?e.appendChild(t):nn(e,t)),e}function on(t,e){Le(e.content)?(nn(t,""),t.appendChild(e.content)):"function"!==typeof e.content&&(e.allowHTML?nn(t,e.content):t.textContent=e.content)}function an(t){var e=t.firstElementChild,n=we(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(ue)})),arrow:n.find((function(t){return t.classList.contains(he)||t.classList.contains(de)})),backdrop:n.find((function(t){return t.classList.contains(fe)}))}}function sn(t){var e=Ne(),n=Ne();n.className=ce,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ne();function o(n,r){var o=an(e),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"===typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"===typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||on(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(rn(r.arrow))):i.appendChild(rn(r.arrow)):s&&i.removeChild(s)}return r.className=ue,r.setAttribute("data-state","hidden"),on(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props),{popper:e,onUpdate:o}}sn.$$tippy=!0;var ln=1,cn=[],un=[];function fn(t,e){var n,r,o,i,a,s,l,c=tn(t,Object.assign({},Je,qe(Pe(e)))),u=!1,f=!1,h=!1,d=!1,p=[],R=ve(j,c.interactiveDebounce),m=ln++,A=null,g=Oe(c.plugins),v={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:m,reference:t,popper:Ne(),popperInstance:A,props:c,state:v,plugins:g,clearDelayTimeouts:lt,setProps:ct,setContent:ut,show:ft,hide:ht,hideWithInteractivity:dt,enable:at,disable:st,unmount:pt,destroy:Rt};if(!c.render)return y;var b=c.render(y),M=b.popper,O=b.onUpdate;M.setAttribute("data-tippy-root",""),M.id="tippy-"+y.id,y.popper=M,t._tippy=y,M._tippy=y;var S=g.map((function(t){return t.fn(y)})),w=t.hasAttribute("aria-expanded");return D(),F(),X(),_("onCreate",[y]),c.showOnCreate&&ot(),M.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),M.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",R)})),y;function P(){var t=y.props.touch;return Array.isArray(t)?t:[t,0]}function N(){return"hold"===P()[0]}function L(){var t;return!(null==(t=y.props.render)||!t.$$tippy)}function k(){return l||t}function T(){var t=k().parentNode;return t?Ve(t):document}function x(){return an(M)}function W(t){return y.state.isMounted&&!y.state.isVisible||Ie.isTouch||i&&"focus"===i.type?0:me(y.props.delay,t?0:1,Je.delay)}function X(t){void 0===t&&(t=!1),M.style.pointerEvents=y.props.interactive&&!t?"":"none",M.style.zIndex=""+y.props.zIndex}function _(t,e,n){var r;(void 0===n&&(n=!0),S.forEach((function(n){n[t]&&n[t].apply(n,e)})),n)&&(r=y.props)[t].apply(r,e)}function V(){var e=y.props.aria;if(e.content){var n="aria-"+e.content,r=M.id,o=be(y.props.triggerTarget||t);o.forEach((function(t){var e=t.getAttribute(n);if(y.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var o=e&&e.replace(r,"").trim();o?t.setAttribute(n,o):t.removeAttribute(n)}}))}}function F(){if(!w&&y.props.aria.expanded){var e=be(y.props.triggerTarget||t);e.forEach((function(t){y.props.interactive?t.setAttribute("aria-expanded",y.state.isVisible&&t===k()?"true":"false"):t.removeAttribute("aria-expanded")}))}}function U(){T().removeEventListener("mousemove",R),cn=cn.filter((function(t){return t!==R}))}function Y(e){if(!Ie.isTouch||!h&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!y.props.interactive||!Ye(M,n)){if(be(y.props.triggerTarget||t).some((function(t){return Ye(t,n)}))){if(Ie.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else _("onClickOutside",[y,e]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),f=!0,setTimeout((function(){f=!1})),y.state.isMounted||Q())}}}function I(){h=!0}function C(){h=!1}function Z(){var t=T();t.addEventListener("mousedown",Y,!0),t.addEventListener("touchend",Y,pe),t.addEventListener("touchstart",C,pe),t.addEventListener("touchmove",I,pe)}function Q(){var t=T();t.removeEventListener("mousedown",Y,!0),t.removeEventListener("touchend",Y,pe),t.removeEventListener("touchstart",C,pe),t.removeEventListener("touchmove",I,pe)}function K(t,e){H(t,(function(){!y.state.isVisible&&M.parentNode&&M.parentNode.contains(M)&&e()}))}function E(t,e){H(t,e)}function H(t,e){var n=x().box;function r(t){t.target===n&&(Ue(n,"remove",r),e())}if(0===t)return e();Ue(n,"remove",a),Ue(n,"add",r),a=r}function G(e,n,r){void 0===r&&(r=!1);var o=be(y.props.triggerTarget||t);o.forEach((function(t){t.addEventListener(e,n,r),p.push({node:t,eventType:e,handler:n,options:r})}))}function D(){N()&&(G("touchstart",J,{passive:!0}),G("touchend",z,{passive:!0})),ye(y.props.trigger).forEach((function(t){if("manual"!==t)switch(G(t,J),t){case"mouseenter":G("mouseleave",z);break;case"focus":G(Ge?"focusout":"blur",q);break;case"focusin":G("focusout",q);break}}))}function B(){p.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,o=t.options;e.removeEventListener(n,r,o)})),p=[]}function J(t){var e,n=!1;if(y.state.isEnabled&&!$(t)&&!f){var r="focus"===(null==(e=i)?void 0:e.type);i=t,l=t.currentTarget,F(),!y.state.isVisible&&Te(t)&&cn.forEach((function(e){return e(t)})),"click"===t.type&&(y.props.trigger.indexOf("mouseenter")<0||u)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:ot(t),"click"===t.type&&(u=!n),n&&!r&&it(t)}}function j(t){var e=t.target,n=k().contains(e)||M.contains(e);if("mousemove"!==t.type||!n){var r=rt().concat(M).map((function(t){var e,n=t._tippy,r=null==(e=n.popperInstance)?void 0:e.state;return r?{popperRect:t.getBoundingClientRect(),popperState:r,props:c}:null})).filter(Boolean);Fe(r,t)&&(U(),it(t))}}function z(t){var e=$(t)||y.props.trigger.indexOf("click")>=0&&u;e||(y.props.interactive?y.hideWithInteractivity(t):it(t))}function q(t){y.props.trigger.indexOf("focusin")<0&&t.target!==k()||y.props.interactive&&t.relatedTarget&&M.contains(t.relatedTarget)||it(t)}function $(t){return!!Ie.isTouch&&N()!==t.type.indexOf("touch")>=0}function tt(){et();var e=y.props,n=e.popperOptions,r=e.placement,o=e.offset,i=e.getReferenceClientRect,a=e.moveTransition,l=L()?an(M).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||k()}:t,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(L()){var n=x(),r=n.box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?r.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?r.setAttribute("data-"+t,""):r.removeAttribute("data-"+t)})),e.attributes.popper={}}}},f=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];L()&&l&&f.push({name:"arrow",options:{element:l,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),y.popperInstance=le(c,M,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:f}))}function et(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function nt(){var t,e=y.props.appendTo,n=k();t=y.props.interactive&&e===Re||"parent"===e?n.parentNode:ge(e,[n]),t.contains(M)||t.appendChild(M),y.state.isMounted=!0,tt()}function rt(){return we(M.querySelectorAll("[data-tippy-root]"))}function ot(t){y.clearDelayTimeouts(),t&&_("onTrigger",[y,t]),Z();var e=W(!0),r=P(),o=r[0],i=r[1];Ie.isTouch&&"hold"===o&&i&&(e=i),e?n=setTimeout((function(){y.show()}),e):y.show()}function it(t){if(y.clearDelayTimeouts(),_("onUntrigger",[y,t]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&u)){var e=W(!1);e?r=setTimeout((function(){y.state.isVisible&&y.hide()}),e):o=requestAnimationFrame((function(){y.hide()}))}}else Q()}function at(){y.state.isEnabled=!0}function st(){y.hide(),y.state.isEnabled=!1}function lt(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)}function ct(e){if(!y.state.isDestroyed){_("onBeforeUpdate",[y,e]),B();var n=y.props,r=tn(t,Object.assign({},n,Pe(e),{ignoreAttributes:!0}));y.props=r,D(),n.interactiveDebounce!==r.interactiveDebounce&&(U(),R=ve(j,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?be(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded"),F(),X(),O&&O(n,r),y.popperInstance&&(tt(),rt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),_("onAfterUpdate",[y,e])}}function ut(t){y.setProps({content:t})}function ft(){var t=y.state.isVisible,e=y.state.isDestroyed,n=!y.state.isEnabled,r=Ie.isTouch&&!y.props.touch,o=me(y.props.duration,0,Je.duration);if(!(t||e||n||r)&&!k().hasAttribute("disabled")&&(_("onShow",[y],!1),!1!==y.props.onShow(y))){if(y.state.isVisible=!0,L()&&(M.style.visibility="visible"),X(),Z(),y.state.isMounted||(M.style.transition="none"),L()){var i=x(),a=i.box,l=i.content;Xe([a,l],0)}s=function(){var t;if(y.state.isVisible&&!d){if(d=!0,M.offsetHeight,M.style.transition=y.props.moveTransition,L()&&y.props.animation){var e=x(),n=e.box,r=e.content;Xe([n,r],o),_e([n,r],"visible")}V(),F(),Me(un,y),null==(t=y.popperInstance)||t.forceUpdate(),_("onMount",[y]),y.props.animation&&L()&&E(o,(function(){y.state.isShown=!0,_("onShown",[y])}))}},nt()}}function ht(){var t=!y.state.isVisible,e=y.state.isDestroyed,n=!y.state.isEnabled,r=me(y.props.duration,1,Je.duration);if(!(t||e||n)&&(_("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,d=!1,u=!1,L()&&(M.style.visibility="hidden"),U(),Q(),X(!0),L()){var o=x(),i=o.box,a=o.content;y.props.animation&&(Xe([i,a],r),_e([i,a],"hidden"))}V(),F(),y.props.animation?L()&&K(r,y.unmount):y.unmount()}}function dt(t){T().addEventListener("mousemove",R),Me(cn,R),R(t)}function pt(){y.state.isVisible&&y.hide(),y.state.isMounted&&(et(),rt().forEach((function(t){t._tippy.unmount()})),M.parentNode&&M.parentNode.removeChild(M),un=un.filter((function(t){return t!==y})),y.state.isMounted=!1,_("onHidden",[y]))}function Rt(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),B(),delete t._tippy,y.state.isDestroyed=!0,_("onDestroy",[y]))}}function hn(t,e){void 0===e&&(e={});var n=Je.plugins.concat(e.plugins||[]);Ee();var r=Object.assign({},e,{plugins:n}),o=We(t),i=o.reduce((function(t,e){var n=e&&fn(e,r);return n&&t.push(n),t}),[]);return Le(t)?i[0]:i}hn.defaultProps=Je,hn.setDefaultProps=ze,hn.currentInput=Ie;Object.assign({},St,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}});hn.setDefaultProps({render:sn});var dn=hn},3744:function(t,e){"use strict";e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n}},9812:function(t,e,n){"use strict";n.r(e),n.d(e,{BaseTransition:function(){return r.P$},BaseTransitionPropsValidators:function(){return r.nJ},Comment:function(){return r.sv},EffectScope:function(){return r.Bj},Fragment:function(){return r.HY},KeepAlive:function(){return r.Ob},ReactiveEffect:function(){return r.qq},Static:function(){return r.qG},Suspense:function(){return r.n4},Teleport:function(){return r.lR},Text:function(){return r.xv},Transition:function(){return r.uT},TransitionGroup:function(){return r.W3},VueElement:function(){return r.a2},assertNumber:function(){return r.Wu},callWithAsyncErrorHandling:function(){return r.$d},callWithErrorHandling:function(){return r.KU},camelize:function(){return r._A},capitalize:function(){return r.kC},cloneVNode:function(){return r.Ho},compatUtils:function(){return r.ry},compile:function(){return o},computed:function(){return r.Fl},createApp:function(){return r.ri},createBlock:function(){return r.j4},createCommentVNode:function(){return r.kq},createElementBlock:function(){return r.iD},createElementVNode:function(){return r._},createHydrationRenderer:function(){return r.Eo},createPropsRestProxy:function(){return r.p1},createRenderer:function(){return r.Us},createSSRApp:function(){return r.vr},createSlots:function(){return r.Nv},createStaticVNode:function(){return r.uE},createTextVNode:function(){return r.Uk},createVNode:function(){return r.Wm},customRef:function(){return r.ZM},defineAsyncComponent:function(){return r.RC},defineComponent:function(){return r.aZ},defineCustomElement:function(){return r.MW},defineEmits:function(){return r.Bz},defineExpose:function(){return r.WY},defineModel:function(){return r.Gn},defineOptions:function(){return r.Yu},defineProps:function(){return r.yb},defineSSRCustomElement:function(){return r.Ah},defineSlots:function(){return r.Wl},devtools:function(){return r.mW},effect:function(){return r.cE},effectScope:function(){return r.B},getCurrentInstance:function(){return r.FN},getCurrentScope:function(){return r.nZ},getTransitionRawChildren:function(){return r.Q6},guardReactiveProps:function(){return r.F4},h:function(){return r.h},handleError:function(){return r.S3},hasInjectionContext:function(){return r.EM},hydrate:function(){return r.ZB},initCustomFormatter:function(){return r.Mr},initDirectivesForSSR:function(){return r.Nd},inject:function(){return r.f3},isMemoSame:function(){return r.nQ},isProxy:function(){return r.X3},isReactive:function(){return r.PG},isReadonly:function(){return r.$y},isRef:function(){return r.dq},isRuntimeOnly:function(){return r.of},isShallow:function(){return r.yT},isVNode:function(){return r.lA},markRaw:function(){return r.Xl},mergeDefaults:function(){return r.u_},mergeModels:function(){return r.Vf},mergeProps:function(){return r.dG},nextTick:function(){return r.Y3},normalizeClass:function(){return r.C_},normalizeProps:function(){return r.vs},normalizeStyle:function(){return r.j5},onActivated:function(){return r.dl},onBeforeMount:function(){return r.wF},onBeforeUnmount:function(){return r.Jd},onBeforeUpdate:function(){return r.Xn},onDeactivated:function(){return r.se},onErrorCaptured:function(){return r.d1},onMounted:function(){return r.bv},onRenderTracked:function(){return r.bT},onRenderTriggered:function(){return r.Yq},onScopeDispose:function(){return r.EB},onServerPrefetch:function(){return r.vl},onUnmounted:function(){return r.SK},onUpdated:function(){return r.ic},openBlock:function(){return r.wg},popScopeId:function(){return r.Cn},provide:function(){return r.JJ},proxyRefs:function(){return r.WL},pushScopeId:function(){return r.dD},queuePostFlushCb:function(){return r.qb},reactive:function(){return r.qj},readonly:function(){return r.OT},ref:function(){return r.iH},registerRuntimeCompiler:function(){return r.Y1},render:function(){return r.sY},renderList:function(){return r.Ko},renderSlot:function(){return r.WI},resolveComponent:function(){return r.up},resolveDirective:function(){return r.Q2},resolveDynamicComponent:function(){return r.LL},resolveFilter:function(){return r.eq},resolveTransitionHooks:function(){return r.U2},setBlockTracking:function(){return r.qZ},setDevtoolsHook:function(){return r.ec},setTransitionHooks:function(){return r.nK},shallowReactive:function(){return r.Um},shallowReadonly:function(){return r.YS},shallowRef:function(){return r.XI},ssrContextKey:function(){return r.Uc},ssrUtils:function(){return r.G},stop:function(){return r.sT},toDisplayString:function(){return r.zw},toHandlerKey:function(){return r.hR},toHandlers:function(){return r.mx},toRaw:function(){return r.IU},toRef:function(){return r.Vh},toRefs:function(){return r.BK},toValue:function(){return r.Tn},transformVNodeArgs:function(){return r.C3},triggerRef:function(){return r.oR},unref:function(){return r.SU},useAttrs:function(){return r.l1},useCssModule:function(){return r.fb},useCssVars:function(){return r.sj},useModel:function(){return r.tT},useSSRContext:function(){return r.Zq},useSlots:function(){return r.Rr},useTransitionState:function(){return r.Y8},vModelCheckbox:function(){return r.e8},vModelDynamic:function(){return r.YZ},vModelRadio:function(){return r.G2},vModelSelect:function(){return r.bM},vModelText:function(){return r.nr},vShow:function(){return r.F8},version:function(){return r.i8},warn:function(){return r.ZK},watch:function(){return r.YP},watchEffect:function(){return r.m0},watchPostEffect:function(){return r.Rh},watchSyncEffect:function(){return r.yX},withAsyncContext:function(){return r.mv},withCtx:function(){return r.w5},withDefaults:function(){return r.b9},withDirectives:function(){return r.wy},withKeys:function(){return r.D2},withMemo:function(){return r.MX},withModifiers:function(){return r.iM},withScopeId:function(){return r.HX}});var r=n(9963);const o=()=>{0}},9980:function(t,e,n){(function(e,r){t.exports=r(n(9812),n(1474))})("undefined"!==typeof self&&self,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,n){var r=n("fc6a"),o=n("241c").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?s(t):o(r(t))}},"06cf":function(t,e,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=a(t),e=s(e,!0),c)try{return u(t,e)}catch(n){}if(l(t,e))return i(!o.f.call(t,e),t[e])}},"0cfb":function(t,e,n){var r=n("83ab"),o=n("d039"),i=n("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(t,e,n){"use strict";var r=n("23e7"),o=n("d58f").left,i=n("a640"),a=n("ae40"),s=i("reduce"),l=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!l},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(t,e,n){var r=n("c6b6"),o=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var i=n.call(t,e);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"159b":function(t,e,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),a=n("9112");for(var s in o){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==i)try{a(c,"forEach",i)}catch(u){c.forEach=i}}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,o=n("a640"),i=n("ae40"),a=o("forEach"),s=i("forEach");t.exports=a&&s?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),o=r("iterator"),i=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){i=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(l){}return n}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),o=n("b622"),i=n("2d00"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},"23e7":function(t,e,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),c=n("94ca");t.exports=function(t,e){var n,u,f,h,d,p,R=t.target,m=t.global,A=t.stat;if(u=m?r:A?r[R]||s(R,{}):(r[R]||{}).prototype,u)for(f in e){if(d=e[f],t.noTargetGet?(p=o(u,f),h=p&&p.value):h=u[f],n=c(m?f:R+(A?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof d===typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&i(d,"sham",!0),a(u,f,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),o=n("825a"),i=n("d039"),a=n("ad6d"),s="toString",l=RegExp.prototype,c=l[s],u=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=s;(u||f)&&r(RegExp.prototype,s,(function(){var t=o(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in l)?a.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},"2ca0":function(t,e,n){"use strict";var r=n("23e7"),o=n("06cf").f,i=n("50c4"),a=n("5a34"),s=n("1d80"),l=n("ab13"),c=n("c430"),u="".startsWith,f=Math.min,h=l("startsWith"),d=!c&&!h&&!!function(){var t=o(String.prototype,"startsWith");return t&&!t.writable}();r({target:"String",proto:!0,forced:!d&&!h},{startsWith:function(t){var e=String(s(this));a(t);var n=i(f(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return u?u.call(e,r,n):e.slice(n,n+r.length)===r}})},"2d00":function(t,e,n){var r,o,i=n("da84"),a=n("342f"),s=i.process,l=s&&s.versions,c=l&&l.v8;c?(r=c.split("."),o=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=r[1]))),t.exports=o&&+o},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),o=n("3f8c"),i=n("b622"),a=i("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||o[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){i(t);var n,r=a(e),s=r.length,l=0;while(s>l)o.f(t,n=r[l++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),a="String Iterator",s=o.set,l=o.getterFor(a);i(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=l(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},4160:function(t,e,n){"use strict";var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},"44e7":function(t,e,n){var r=n("861d"),o=n("c6b6"),i=n("b622"),a=i("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(t,e,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),a=function(t){return function(e,n,a){var s,l=r(e),c=o(l.length),u=i(a,c);if(t&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").filter,i=n("1dde"),a=n("ae40"),s=i("filter"),l=a("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("0366"),o=n("7b0b"),i=n("9bdd"),a=n("e95a"),s=n("50c4"),l=n("8418"),c=n("35a1");t.exports=function(t){var e,n,u,f,h,d,p=o(t),R="function"==typeof this?this:Array,m=arguments.length,A=m>1?arguments[1]:void 0,g=void 0!==A,v=c(p),y=0;if(g&&(A=r(A,m>2?arguments[2]:void 0,2)),void 0==v||R==Array&&a(v))for(e=s(p.length),n=new R(e);e>y;y++)d=g?A(p[y],y):p[y],l(n,y,d);else for(f=v.call(p),h=f.next,n=new R;!(u=h.call(f)).done;y++)d=g?i(f,A,[u.value,y],!0):u.value,l(n,y,d);return n.length=y,n}},"4fad":function(t,e,n){var r=n("23e7"),o=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5319:function(t,e,n){"use strict";var r=n("d784"),o=n("825a"),i=n("7b0b"),a=n("50c4"),s=n("a691"),l=n("1d80"),c=n("8aa5"),u=n("14c3"),f=Math.max,h=Math.min,d=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,R=/\$([$&'`]|\d\d?)/g,m=function(t){return void 0===t?t:String(t)};r("replace",2,(function(t,e,n,r){var A=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,v=A?"$":"$0";return[function(n,r){var o=l(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!A&&g||"string"===typeof r&&-1===r.indexOf(v)){var i=n(e,t,this,r);if(i.done)return i.value}var l=o(t),d=String(this),p="function"===typeof r;p||(r=String(r));var R=l.global;if(R){var b=l.unicode;l.lastIndex=0}var M=[];while(1){var O=u(l,d);if(null===O)break;if(M.push(O),!R)break;var S=String(O[0]);""===S&&(l.lastIndex=c(d,a(l.lastIndex),b))}for(var w="",P=0,N=0;N=P&&(w+=d.slice(P,k)+_,P=k+L.length)}return w+d.slice(P)}];function y(t,n,r,o,a,s){var l=r+t.length,c=o.length,u=R;return void 0!==a&&(a=i(a),u=p),e.call(s,u,(function(e,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return e;if(u>c){var f=d(u/10);return 0===f?e:f<=c?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):e}s=o[u-1]}return void 0===s?"":s}))}}))},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),o=n("241c"),i=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5db7":function(t,e,n){"use strict";var r=n("23e7"),o=n("a2bf"),i=n("7b0b"),a=n("50c4"),s=n("1c0b"),l=n("65f0");r({target:"Array",proto:!0},{flatMap:function(t){var e,n=i(this),r=a(n.length);return s(t),e=l(n,0),e.length=o(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},6547:function(t,e,n){var r=n("a691"),o=n("1d80"),i=function(t){return function(e,n){var i,a,s=String(o(e)),l=r(n),c=s.length;return l<0||l>=c?t?"":void 0:(i=s.charCodeAt(l),i<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):i:t?s.slice(l,l+2):a-56320+(i-55296<<10)+65536)}};t.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(t,e,n){var r=n("861d"),o=n("e8b5"),i=n("b622"),a=i("species");t.exports=function(t,e){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var r,o,i,a=n("7f9a"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),f=n("f772"),h=n("d012"),d=s.WeakMap,p=function(t){return i(t)?o(t):r(t,{})},R=function(t){return function(e){var n;if(!l(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var m=new d,A=m.get,g=m.has,v=m.set;r=function(t,e){return v.call(m,t,e),e},o=function(t){return A.call(m,t)||{}},i=function(t){return g.call(m,t)}}else{var y=f("state");h[y]=!0,r=function(t,e){return c(t,y,e),e},o=function(t){return u(t,y)?t[y]:{}},i=function(t){return u(t,y)}}t.exports={set:r,get:o,has:i,enforce:p,getterFor:R}},"6eeb":function(t,e,n){var r=n("da84"),o=n("9112"),i=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,f=String(String).split("String");(t.exports=function(t,e,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),u(n).source=f.join("string"==typeof e?e:"")),t!==r?(l?!h&&t[e]&&(c=!0):delete t[e],c?t[e]=n:o(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"6f53":function(t,e,n){var r=n("83ab"),o=n("df75"),i=n("fc6a"),a=n("d1e7").f,s=function(t){return function(e){var n,s=i(e),l=o(s),c=l.length,u=0,f=[];while(c>u)n=l[u++],r&&!a.call(s,n)||f.push(t?[n,s[n]]:s[n]);return f}};t.exports={entries:s(!0),values:s(!1)}},"73d9":function(t,e,n){var r=n("44d2");r("flatMap")},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),o=n("5135"),i=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,o=n("825a"),i=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),f=">",h="<",d="prototype",p="script",R=u("IE_PROTO"),m=function(){},A=function(t){return h+p+f+t+h+"/"+p+f},g=function(t){t.write(A("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=c("iframe"),n="java"+p+":";return e.style.display="none",l.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(A("document.F=Object")),t.close(),t.F},y=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}y=r?g(r):v();var t=a.length;while(t--)delete y[d][a[t]];return y()};s[R]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[d]=o(t),n=new m,m[d]=null,n[R]=t):n=y(),void 0===e?n:i(n,e)}},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),c=n("6eeb"),u=n("b622"),f=n("c430"),h=n("3f8c"),d=n("ae93"),p=d.IteratorPrototype,R=d.BUGGY_SAFARI_ITERATORS,m=u("iterator"),A="keys",g="values",v="entries",y=function(){return this};t.exports=function(t,e,n,u,d,b,M){o(n,e,u);var O,S,w,P=function(t){if(t===d&&x)return x;if(!R&&t in k)return k[t];switch(t){case A:return function(){return new n(this,t)};case g:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this)}},N=e+" Iterator",L=!1,k=t.prototype,T=k[m]||k["@@iterator"]||d&&k[d],x=!R&&T||P(d),W="Array"==e&&k.entries||T;if(W&&(O=i(W.call(new t)),p!==Object.prototype&&O.next&&(f||i(O)===p||(a?a(O,p):"function"!=typeof O[m]&&l(O,m,y)),s(O,N,!0,!0),f&&(h[N]=y))),d==g&&T&&T.name!==g&&(L=!0,x=function(){return T.call(this)}),f&&!M||k[m]===x||l(k,m,x),h[e]=x,d)if(S={values:P(g),keys:b?x:P(A),entries:P(v)},M)for(w in S)(R||L||!(w in k))&&c(k,w,S[w]);else r({target:e,proto:!0,forced:R||L},S);return S}},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),o=n("9bf2"),i=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(d.stack)||a.exec(d.stack),l=s&&s[1]||!1,c=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");l===u&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*