diff --git a/assets/index-BbbAPV-x.css b/assets/index-BfSIBMM8.css similarity index 92% rename from assets/index-BbbAPV-x.css rename to assets/index-BfSIBMM8.css index 9c6744a..4ca6703 100644 --- a/assets/index-BbbAPV-x.css +++ b/assets/index-BfSIBMM8.css @@ -29,4 +29,4 @@ * The original design remains. The terminal itself * has been extended to include xterm CSI codes, among * other features. - */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.serial-log[data-v-4cf5fd89]{display:flex;flex-direction:column}.serial-log[data-v-4cf5fd89] .el-card__body{flex:1;overflow:hidden}.controls[data-v-4cf5fd89]{display:flex;align-items:center;padding:12px}.terminal-container[data-v-4cf5fd89],#terminal[data-v-4cf5fd89]{height:100%}.me-2[data-v-4cf5fd89]{margin-right:8px}.received-bytes[data-v-4cf5fd89]{margin-left:16px;color:var(--el-text-color-regular);font-size:14px}.controls[data-v-f49a4901]{display:flex;align-items:center;gap:12px;padding:10px;border-top:1px solid var(--el-border-color-light)}.me-2[data-v-f49a4901]{margin-right:0}.serial-log[data-v-9a1e85ef]{display:flex;flex-direction:column;height:100%}.serial-term[data-v-9a1e85ef]{flex:1}.chart-3d-container[data-v-fd334cfa]{position:relative;width:100%;height:100%}.canvas-container[data-v-fd334cfa]{width:100%;height:100%}.data-panel[data-v-fd334cfa]{position:absolute;top:20px;right:20px;background:linear-gradient(135deg,#3c3c3ccc,#1e1e1ecc);color:#fff;padding:15px;border-radius:8px;font-family:SF Mono,Monaco,Menlo,Consolas,monospace;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 4px 6px #0000001a;border:1px solid rgba(255,255,255,.1)}.data-panel div[data-v-fd334cfa]{margin:5px 0}.model-controls[data-v-fd334cfa]{margin-top:10px;display:flex;gap:8px}.model-switch[data-v-fd334cfa],.model-upload[data-v-fd334cfa]{flex:1}.uplot,.uplot *,.uplot *:before,.uplot *:after{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:#00000012;position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607D8B}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607D8B}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}.chart-panel[data-v-e6e95fc6]{height:100%;display:flex;flex-direction:column;padding:12px}.chart-controls[data-v-e6e95fc6]{margin-bottom:16px}.charts-container[data-v-e6e95fc6]{flex:1}.chart-item[data-v-e6e95fc6]{background:var(--el-bg-color);border-radius:8px;padding:16px;margin-bottom:16px;box-shadow:0 2px 12px #0000001a}.chart-header[data-v-e6e95fc6]{display:flex;align-items:center;gap:8px;margin-bottom:16px}.chart-name-input[data-v-e6e95fc6]{max-width:200px}.chart-content[data-v-e6e95fc6]{display:flex;flex-direction:column;gap:10px;padding-bottom:20px}.chart-container[data-v-e6e95fc6]{width:100%;height:300px}.field-selector[data-v-e6e95fc6]{display:flex;flex-direction:column;gap:8px}.data-table-container[data-v-4561ae04]{height:100%;display:flex;flex-direction:column}.table-toolbar[data-v-4561ae04]{padding:12px;display:flex;justify-content:space-between;align-items:center}.import-export-buttons[data-v-4561ae04],.operation-buttons[data-v-4561ae04]{display:flex;gap:8px}.quick-send[data-v-a0ddafa7]{margin:10px;min-width:200px}.quick-send-actions[data-v-a0ddafa7]{margin:8px 0}.action-group[data-v-a0ddafa7]{display:flex;align-items:center;gap:8px}.compact-btn[data-v-a0ddafa7]{padding:6px 8px!important}[data-v-a0ddafa7] .el-button-group .el-button--small{padding:6px 8px}[data-v-a0ddafa7] .el-input-number.el-input-number--small{width:120px}.card-header[data-v-a0ddafa7]{display:flex;justify-content:space-between;align-items:center;padding:4px 8px}.group-select[data-v-a0ddafa7]{display:flex;align-items:center;gap:4px}.item-header[data-v-a0ddafa7]{display:flex;justify-content:space-between;align-items:center;gap:8px}.item-content[data-v-a0ddafa7]{display:grid;grid-template-columns:1fr;gap:4px}.quick-send-list[data-v-a0ddafa7]{display:flex;flex-direction:column;gap:8px}.item-row[data-v-a0ddafa7]{display:flex;align-items:center;white-space:nowrap;gap:8px}.flex-grow[data-v-a0ddafa7]{flex:1}.item-settings[data-v-a0ddafa7]{padding:8px}.setting-row[data-v-a0ddafa7]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.setting-row[data-v-a0ddafa7]:last-child{margin-bottom:0}.ms-2[data-v-a0ddafa7]{margin-left:4px}.mb-2[data-v-a0ddafa7]{margin-bottom:4px}.mt-2[data-v-a0ddafa7]{margin-top:4px}.me-2[data-v-a0ddafa7]{margin-right:4px}.serial-script[data-v-3c8fbedf]{margin:10px;min-width:300px}.script-select[data-v-3c8fbedf]{display:flex;align-items:center;gap:8px}.script-editor[data-v-3c8fbedf]{padding:8px 0}.script-name-container[data-v-3c8fbedf]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.script-name-input[data-v-3c8fbedf]{flex:1}.run-button[data-v-3c8fbedf]{flex-shrink:0}.ms-2[data-v-3c8fbedf]{margin-left:8px}[data-v-3c8fbedf] .CodeMirror{height:800px;border:1px solid #dcdfe6;border-radius:4px}[data-v-3c8fbedf] .CodeMirror-focused{border-color:#409eff}.vdr{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed black}.handle{box-sizing:border-box;position:absolute;width:10px;height:10px;background:#eee;border:1px solid #333}.handle-tl{top:-10px;left:-10px;cursor:nw-resize}.handle-tm{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr{top:-10px;right:-10px;cursor:ne-resize}.handle-ml{top:50%;margin-top:-5px;left:-10px;cursor:w-resize}.handle-mr{top:50%;margin-top:-5px;right:-10px;cursor:e-resize}.handle-bl{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width: 768px){[class*=handle-]:before{content:"";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.canvas-panel[data-v-7e5002fe]{height:100%;display:flex;flex-direction:column;background:var(--el-bg-color)}.toolbar[data-v-7e5002fe]{padding:12px;border-bottom:1px solid var(--el-border-color);background:var(--el-bg-color-overlay)}.tool-group[data-v-7e5002fe]{display:flex;gap:8px}.canvas-container[data-v-7e5002fe]{flex:1;position:relative;overflow:auto;padding:20px}.grid-background[data-v-7e5002fe]{position:absolute;top:0;left:0;right:0;bottom:0}.canvas-item[data-v-7e5002fe]{background:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:0 2px 12px #0000001a}.remove-btn[data-v-7e5002fe]{position:absolute;top:8px;right:8px;z-index:100}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.app-container[data-v-3cfc1d31]{height:100vh}.app-header[data-v-3cfc1d31]{background-color:var(--el-bg-color-overlay);padding:0 20px;border-bottom:1px solid var(--el-border-color-light);box-shadow:0 2px 8px #0000000d;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.header-content[data-v-3cfc1d31]{height:100%;display:flex;align-items:center;justify-content:space-between}.header-left[data-v-3cfc1d31]{display:flex;align-items:center;gap:24px}.header-content h1[data-v-3cfc1d31]{color:var(--el-text-color-primary);font-size:1.5rem;font-weight:600;margin:0;background:linear-gradient(120deg,#6366f1,#2dd4bf);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;letter-spacing:-.5px}.header-serial-config[data-v-3cfc1d31]{margin:0;position:relative}.header-serial-config[data-v-3cfc1d31] .el-card{background:transparent;border:none;box-shadow:none}.header-serial-config[data-v-3cfc1d31] .el-card .el-form{display:flex;gap:12px}.header-serial-config[data-v-3cfc1d31] .el-form-item__label{color:var(--el-text-color-regular);font-weight:500}.header-serial-config[data-v-3cfc1d31] .el-input__wrapper,.header-serial-config[data-v-3cfc1d31] .el-select .el-input__wrapper{background-color:var(--el-bg-color);border:1px solid var(--el-border-color);box-shadow:none;transition:all .2s}.header-serial-config[data-v-3cfc1d31] .el-input__wrapper:hover,.header-serial-config[data-v-3cfc1d31] .el-select .el-input__wrapper:hover{border-color:var(--el-color-primary)}.header-links[data-v-3cfc1d31]{display:flex;align-items:center;gap:12px}.header-links .el-button[data-v-3cfc1d31]{border:1px solid var(--el-border-color);transition:all .2s}.header-links .el-button[data-v-3cfc1d31]:hover{background:var(--el-color-primary-light-9);border-color:var(--el-color-primary);color:var(--el-color-primary)}.header-links a[data-v-3cfc1d31]{color:var(--el-text-color-primary);text-decoration:none}.header-links a[data-v-3cfc1d31]:hover{color:var(--el-color-primary)}.main-container[data-v-3cfc1d31]{width:100%;height:calc(100vh - 60px);background-color:var(--el-bg-color-overlay)}.fullscreen-toggle[data-v-3cfc1d31]{margin-left:0}.lv-card[data-v-3cfc1d31],.lv-card[data-v-3cfc1d31] .el-tab-pane{height:100%}[data-v-3cfc1d31] .splitpanes__splitter{background-color:var(--el-border-color)!important;border:none}[data-v-3cfc1d31] .splitpanes__pane{background-color:transparent}.w75[data-v-3cfc1d31]{width:75%}.w25[data-v-3cfc1d31]{width:25%}html{background-color:var(--el-bg-color-overlay)}html.dark .el-button{--el-button-divide-border-color: rgba(0, 0, 0, .5)}.lv-tabs .el-tabs__content{flex:1;overflow-y:auto}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__nav{border:0 none}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item{font-size:12px;border:0 none;border-radius:4px;margin:8px 0 0 8px;padding:0 6px;height:24px;transition:all .1s;-webkit-user-select:none;user-select:none}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{background-color:#f5f5f5;color:#191919}.lv-tabs .el-tabs__item.is-top{border:0 none}.lv-tabs .el-tabs__item:hover{color:#999}.lv-tabs .el-tabs__header{margin:0;align-items:flex-start}.lv-tabs .el-tab-pane{height:100%}.lv-tabs .el-tabs__new-tab{margin-right:10px}.dark .dash-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{background-color:#383838;color:#fff}.el-card{--el-card-padding: 12px}.splitpanes.default-theme .splitpanes__pane{background-color:var(--el-bg-color-overlay)}.dark .default-theme.splitpanes--vertical>.splitpanes__splitter,.dark .default-theme .splitpanes--vertical>.splitpanes__splitter{border-color:#333} + */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.serial-log[data-v-4cf5fd89]{display:flex;flex-direction:column}.serial-log[data-v-4cf5fd89] .el-card__body{flex:1;overflow:hidden}.controls[data-v-4cf5fd89]{display:flex;align-items:center;padding:12px}.terminal-container[data-v-4cf5fd89],#terminal[data-v-4cf5fd89]{height:100%}.me-2[data-v-4cf5fd89]{margin-right:8px}.received-bytes[data-v-4cf5fd89]{margin-left:16px;color:var(--el-text-color-regular);font-size:14px}.controls[data-v-f49a4901]{display:flex;align-items:center;gap:12px;padding:10px;border-top:1px solid var(--el-border-color-light)}.me-2[data-v-f49a4901]{margin-right:0}.serial-log[data-v-9a1e85ef]{display:flex;flex-direction:column;height:100%}.serial-term[data-v-9a1e85ef]{flex:1}.template-option[data-v-f63c7f83]{padding:4px 0}.template-desc[data-v-f63c7f83]{font-size:12px;color:var(--el-text-color-secondary)}.card-header[data-v-f63c7f83]{display:flex;justify-content:space-between;align-items:center}.field-item[data-v-f63c7f83],.handle-item[data-v-f63c7f83],.action-item[data-v-f63c7f83]{display:flex;gap:8px;align-items:center;margin-bottom:8px}.data-fields[data-v-f63c7f83],.handles[data-v-f63c7f83],.actions[data-v-f63c7f83]{margin-top:8px}.custom-node{padding:10px;border-radius:4px;text-align:center;background:var(--el-bg-color);border:2px solid var(--el-color-primary);position:relative;width:100%;height:100%}.custom-node.selected{border-color:var(--el-color-success);box-shadow:0 0 8px var(--el-color-success)}.handle{width:10px;height:10px;background:var(--el-color-primary);border:2px solid var(--el-bg-color);border-radius:50%;transition:all .3s}.handle:hover{background:var(--el-color-success);transform:scale(1.2)}.label{font-weight:700;margin-bottom:8px}.status{font-size:12px;color:var(--el-text-color-secondary)}.custom-node.tank{border-radius:8px}.custom-node.tank.oxidizer{border-color:#67c23a}.custom-node.tank.pressurant{border-color:#909399}.custom-node.valve{height:40px;border-radius:20px;transition:all .3s}.custom-node.valve.open{background-color:var(--el-color-success-light)}.custom-node.check-valve{border-radius:15px;transform:rotate(45deg)}.custom-node.check-valve .label{transform:rotate(-45deg)}.custom-node.regulator{height:50px;border-radius:8px;border-style:dashed}.custom-node.engine{height:140px;border-color:#f56c6c;border-radius:12px}.custom-node[data-v-9e4cfdeb]{padding:10px;border-radius:4px;text-align:center;background:var(--el-bg-color);border:2px solid var(--el-color-primary);position:relative;width:100%;height:100%}.custom-node.selected[data-v-9e4cfdeb]{border-color:var(--el-color-success);box-shadow:0 0 8px var(--el-color-success)}.label[data-v-9e4cfdeb]{font-weight:700;margin-bottom:8px}.status[data-v-9e4cfdeb]{font-size:.9em}.status>div[data-v-9e4cfdeb]{margin:4px 0}.custom-node[data-v-199a83a6]{padding:10px;border-radius:4px;text-align:center;background:var(--el-bg-color);border:2px solid var(--el-color-primary);position:relative;width:100%;height:100%}.custom-node.selected[data-v-199a83a6]{border-color:var(--el-color-success);box-shadow:0 0 8px var(--el-color-success)}.custom-node.check-valve[data-v-199a83a6]{border-radius:15px;transform:rotate(45deg)}.custom-node.check-valve .label[data-v-199a83a6]{transform:rotate(-45deg)}.label[data-v-199a83a6]{font-weight:700;margin-bottom:8px}.handle[data-v-199a83a6]{width:10px;height:10px;background:var(--el-color-primary);border:2px solid var(--el-bg-color);border-radius:50%;transition:all .3s}.handle[data-v-199a83a6]:hover{background:var(--el-color-success);transform:scale(1.2)}.custom-node[data-v-3915b64a]{padding:10px;border-radius:4px;text-align:center;background:var(--el-bg-color);border:2px solid var(--el-color-primary);position:relative;width:100%;height:100%}.custom-node.selected[data-v-3915b64a]{border-color:var(--el-color-success);box-shadow:0 0 8px var(--el-color-success)}.handle[data-v-3915b64a]{width:10px;height:10px;background:var(--el-color-primary);border:2px solid var(--el-bg-color);border-radius:50%;transition:all .3s}.handle[data-v-3915b64a]:hover{background:var(--el-color-success);transform:scale(1.2)}.label[data-v-3915b64a]{font-weight:700;margin-bottom:8px}.status[data-v-3915b64a]{font-size:12px;color:var(--el-text-color-secondary)}.custom-node.tank[data-v-3915b64a]{border-radius:8px}.custom-node.tank.oxidizer[data-v-3915b64a]{border-color:#67c23a}.custom-node.tank.pressurant[data-v-3915b64a]{border-color:#909399}.custom-node.valve[data-v-3915b64a]{height:40px;border-radius:20px;transition:all .3s}.custom-node.valve.open[data-v-3915b64a]{background-color:var(--el-color-success-light)}.custom-node.check-valve[data-v-3915b64a]{border-radius:15px;transform:rotate(45deg)}.custom-node.check-valve .label[data-v-3915b64a]{transform:rotate(-45deg)}.custom-node.regulator[data-v-3915b64a]{height:50px;border-radius:8px;border-style:dashed}.custom-node.engine[data-v-3915b64a]{height:140px;border-color:#f56c6c;border-radius:12px}.vue-flow{position:relative;width:100%;height:100%;overflow:hidden;z-index:0;direction:ltr}.vue-flow__container{position:absolute;height:100%;width:100%;left:0;top:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{border-width:1px;border-style:solid;border-color:#bbb}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible,.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible,.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid #555}.vue-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.vue-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.vue-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{position:absolute;z-index:5;margin:15px}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10}}:root{--vf-node-bg: #fff;--vf-node-text: #222;--vf-connection-path: #b1b1b7;--vf-handle: #555}.vue-flow__edge.updating .vue-flow__edge-path{stroke:#777}.vue-flow__edge-text{font-size:10px}.vue-flow__edge-textbg{fill:#fff}.vue-flow__connection-path{stroke:var(--vf-connection-path)}.vue-flow__node{cursor:grab}.vue-flow__node.selectable:focus,.vue-flow__node.selectable:focus-visible{outline:none}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;text-align:center;border-width:1px;border-style:solid;color:var(--vf-node-text);background-color:var(--vf-node-bg);border-color:var(--vf-node-color)}.vue-flow__node-default.selected,.vue-flow__node-default.selected:hover,.vue-flow__node-input.selected,.vue-flow__node-input.selected:hover,.vue-flow__node-output.selected,.vue-flow__node-output.selected:hover{box-shadow:0 0 0 .5px var(--vf-box-shadow)}.vue-flow__node-default .vue-flow__handle,.vue-flow__node-input .vue-flow__handle,.vue-flow__node-output .vue-flow__handle{background:var(--vf-handle)}.vue-flow__node-default.selectable:hover,.vue-flow__node-input.selectable:hover,.vue-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.vue-flow__node-input{--vf-node-color: var(--vf-node-color, #0041d0);--vf-handle: var(--vf-node-color, #0041d0);--vf-box-shadow: var(--vf-node-color, #0041d0);background:var(--vf-node-bg);border-color:var(--vf-node-color, #0041d0)}.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible{outline:none;border:1px solid var(--vf-node-color, #0041d0)}.vue-flow__node-default{--vf-handle: var(--vf-node-color, #1a192b);--vf-box-shadow: var(--vf-node-color, #1a192b);background:var(--vf-node-bg);border-color:var(--vf-node-color, #1a192b)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible{outline:none;border:1px solid var(--vf-node-color, #1a192b)}.vue-flow__node-output{--vf-handle: var(--vf-node-color, #ff0072);--vf-box-shadow: var(--vf-node-color, #ff0072);background:var(--vf-node-bg);border-color:var(--vf-node-color, #ff0072)}.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid var(--vf-node-color, #ff0072)}.vue-flow__nodesselection-rect,.vue-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible,.vue-flow__selection:focus,.vue-flow__selection:focus-visible{outline:none}.vue-flow__handle{width:6px;height:6px;background:var(--vf-handle);border:1px solid #fff;border-radius:100%}.vue-flow__resize-control{position:absolute}.vue-flow__resize-control.left,.vue-flow__resize-control.right{cursor:ew-resize}.vue-flow__resize-control.top,.vue-flow__resize-control.bottom{cursor:ns-resize}.vue-flow__resize-control.top.left,.vue-flow__resize-control.bottom.right{cursor:nwse-resize}.vue-flow__resize-control.bottom.left,.vue-flow__resize-control.top.right{cursor:nesw-resize}.vue-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.vue-flow__resize-control.handle.left{left:0;top:50%}.vue-flow__resize-control.handle.right{left:100%;top:50%}.vue-flow__resize-control.handle.top{left:50%;top:0}.vue-flow__resize-control.handle.bottom{left:50%;top:100%}.vue-flow__resize-control.handle.top.left,.vue-flow__resize-control.handle.bottom.left{left:0}.vue-flow__resize-control.handle.top.right,.vue-flow__resize-control.handle.bottom.right{left:100%}.vue-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.vue-flow__resize-control.line.left,.vue-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.vue-flow__resize-control.line.left{left:0;border-left-width:1px}.vue-flow__resize-control.line.right{left:100%;border-right-width:1px}.vue-flow__resize-control.line.top,.vue-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.vue-flow__resize-control.line.top{top:0;border-top-width:1px}.vue-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.vue-flow__controls{box-shadow:0 0 2px 1px #00000014}.vue-flow__controls-button{background:#fefefe;border:none;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;user-select:none;padding:5px}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}.vue-flow__minimap{background-color:#fff}.vue-flow__minimap.pannable{cursor:grab}.vue-flow__minimap.dragging{cursor:grabbing}.vue-flow__minimap-mask.pannable{cursor:grab}.pipeline-panel[data-v-b5b33707]{width:100%;height:100%;display:flex;flex-direction:column}.toolbar[data-v-b5b33707]{padding:10px;border-bottom:1px solid var(--el-border-color);background:var(--el-bg-color-overlay)}.pipeline-canvas[data-v-b5b33707]{flex:1;background-color:var(--el-bg-color)}.custom-node[data-v-b5b33707]{padding:10px;border-radius:4px;text-align:center;background:var(--el-bg-color);border:2px solid var(--el-color-primary);position:relative;width:100%;height:100%}.custom-node.selected[data-v-b5b33707]{border-color:var(--el-color-success);box-shadow:0 0 8px var(--el-color-success)}.custom-node.sensor[data-v-b5b33707]{border-radius:30px}.custom-node.sensor.pressure[data-v-b5b33707]{border-color:#409eff}.custom-node.sensor.temperature[data-v-b5b33707]{border-color:#e6a23c}.custom-node.sensor.flow[data-v-b5b33707]{border-color:#67c23a}.chart-3d-container[data-v-c84e5003]{position:relative;width:100%;height:100%}.canvas-container[data-v-c84e5003]{width:100%;height:100%}.data-panel[data-v-c84e5003]{position:absolute;top:20px;right:20px;background:linear-gradient(135deg,#3c3c3ccc,#1e1e1ecc);color:#fff;padding:15px;border-radius:8px;font-family:SF Mono,Monaco,Menlo,Consolas,monospace;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 4px 6px #0000001a;border:1px solid rgba(255,255,255,.1)}.data-panel div[data-v-c84e5003]{margin:5px 0}.model-controls[data-v-c84e5003]{margin-top:10px;display:flex;gap:8px}.model-switch[data-v-c84e5003],.model-upload[data-v-c84e5003]{flex:1}.uplot,.uplot *,.uplot *:before,.uplot *:after{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:#00000012;position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607D8B}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607D8B}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}.chart-panel[data-v-e6e95fc6]{height:100%;display:flex;flex-direction:column;padding:12px}.chart-controls[data-v-e6e95fc6]{margin-bottom:16px}.charts-container[data-v-e6e95fc6]{flex:1}.chart-item[data-v-e6e95fc6]{background:var(--el-bg-color);border-radius:8px;padding:16px;margin-bottom:16px;box-shadow:0 2px 12px #0000001a}.chart-header[data-v-e6e95fc6]{display:flex;align-items:center;gap:8px;margin-bottom:16px}.chart-name-input[data-v-e6e95fc6]{max-width:200px}.chart-content[data-v-e6e95fc6]{display:flex;flex-direction:column;gap:10px;padding-bottom:20px}.chart-container[data-v-e6e95fc6]{width:100%;height:300px}.field-selector[data-v-e6e95fc6]{display:flex;flex-direction:column;gap:8px}.data-table-container[data-v-e749fc61]{height:100%;display:flex;flex-direction:column}.table-toolbar[data-v-e749fc61]{padding:12px;display:flex;justify-content:space-between;align-items:center}.import-export-buttons[data-v-e749fc61],.operation-buttons[data-v-e749fc61]{display:flex;gap:8px}.mb-3[data-v-e749fc61]{margin-bottom:12px}.flow-title[data-v-e749fc61]{font-weight:700;font-size:14px;margin-bottom:8px}.flow-content[data-v-e749fc61]{font-size:13px;line-height:1.5}.flow-step[data-v-e749fc61]{display:flex;align-items:flex-start;margin-bottom:8px}.step-number[data-v-e749fc61]{width:20px;height:20px;background-color:var(--el-color-primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;margin-right:8px;flex-shrink:0}.step-content[data-v-e749fc61]{flex:1}.step-content b[data-v-e749fc61]{color:var(--el-color-primary)}.quick-send[data-v-a0ddafa7]{margin:10px;min-width:200px}.quick-send-actions[data-v-a0ddafa7]{margin:8px 0}.action-group[data-v-a0ddafa7]{display:flex;align-items:center;gap:8px}.compact-btn[data-v-a0ddafa7]{padding:6px 8px!important}[data-v-a0ddafa7] .el-button-group .el-button--small{padding:6px 8px}[data-v-a0ddafa7] .el-input-number.el-input-number--small{width:120px}.card-header[data-v-a0ddafa7]{display:flex;justify-content:space-between;align-items:center;padding:4px 8px}.group-select[data-v-a0ddafa7]{display:flex;align-items:center;gap:4px}.item-header[data-v-a0ddafa7]{display:flex;justify-content:space-between;align-items:center;gap:8px}.item-content[data-v-a0ddafa7]{display:grid;grid-template-columns:1fr;gap:4px}.quick-send-list[data-v-a0ddafa7]{display:flex;flex-direction:column;gap:8px}.item-row[data-v-a0ddafa7]{display:flex;align-items:center;white-space:nowrap;gap:8px}.flex-grow[data-v-a0ddafa7]{flex:1}.item-settings[data-v-a0ddafa7]{padding:8px}.setting-row[data-v-a0ddafa7]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.setting-row[data-v-a0ddafa7]:last-child{margin-bottom:0}.ms-2[data-v-a0ddafa7]{margin-left:4px}.mb-2[data-v-a0ddafa7]{margin-bottom:4px}.mt-2[data-v-a0ddafa7]{margin-top:4px}.me-2[data-v-a0ddafa7]{margin-right:4px}.serial-script[data-v-3c8fbedf]{margin:10px;min-width:300px}.script-select[data-v-3c8fbedf]{display:flex;align-items:center;gap:8px}.script-editor[data-v-3c8fbedf]{padding:8px 0}.script-name-container[data-v-3c8fbedf]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.script-name-input[data-v-3c8fbedf]{flex:1}.run-button[data-v-3c8fbedf]{flex-shrink:0}.ms-2[data-v-3c8fbedf]{margin-left:8px}[data-v-3c8fbedf] .CodeMirror{height:800px;border:1px solid #dcdfe6;border-radius:4px}[data-v-3c8fbedf] .CodeMirror-focused{border-color:#409eff}.vdr{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed black}.handle{box-sizing:border-box;position:absolute;width:10px;height:10px;background:#eee;border:1px solid #333}.handle-tl{top:-10px;left:-10px;cursor:nw-resize}.handle-tm{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr{top:-10px;right:-10px;cursor:ne-resize}.handle-ml{top:50%;margin-top:-5px;left:-10px;cursor:w-resize}.handle-mr{top:50%;margin-top:-5px;right:-10px;cursor:e-resize}.handle-bl{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width: 768px){[class*=handle-]:before{content:"";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.canvas-panel[data-v-8966f8c9]{height:100%;display:flex;flex-direction:column;background:var(--el-bg-color)}.toolbar[data-v-8966f8c9]{padding:12px;border-bottom:1px solid var(--el-border-color);background:var(--el-bg-color-overlay)}.tool-group[data-v-8966f8c9]{display:flex;gap:8px}.canvas-container[data-v-8966f8c9]{flex:1;position:relative;overflow:auto;padding:20px}.grid-background[data-v-8966f8c9]{position:absolute;top:0;left:0;right:0;bottom:0}.canvas-item[data-v-8966f8c9]{background:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:0 2px 12px #0000001a}.remove-btn[data-v-8966f8c9]{position:absolute;top:8px;right:8px;z-index:100}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.app-container[data-v-ef1e6fb1]{height:100vh}.app-header[data-v-ef1e6fb1]{background-color:var(--el-bg-color-overlay);padding:0 20px;border-bottom:1px solid var(--el-border-color-light);box-shadow:0 2px 8px #0000000d;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.header-content[data-v-ef1e6fb1]{height:100%;display:flex;align-items:center;justify-content:space-between}.header-left[data-v-ef1e6fb1]{display:flex;align-items:center;gap:24px}.header-content h1[data-v-ef1e6fb1]{color:var(--el-text-color-primary);font-size:1.5rem;font-weight:600;margin:0;background:linear-gradient(120deg,#6366f1,#2dd4bf);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;letter-spacing:-.5px}.header-serial-config[data-v-ef1e6fb1]{margin:0;position:relative}.header-serial-config[data-v-ef1e6fb1] .el-card{background:transparent;border:none;box-shadow:none}.header-serial-config[data-v-ef1e6fb1] .el-card .el-form{display:flex;gap:12px}.header-serial-config[data-v-ef1e6fb1] .el-form-item__label{color:var(--el-text-color-regular);font-weight:500}.header-serial-config[data-v-ef1e6fb1] .el-input__wrapper,.header-serial-config[data-v-ef1e6fb1] .el-select .el-input__wrapper{background-color:var(--el-bg-color);border:1px solid var(--el-border-color);box-shadow:none;transition:all .2s}.header-serial-config[data-v-ef1e6fb1] .el-input__wrapper:hover,.header-serial-config[data-v-ef1e6fb1] .el-select .el-input__wrapper:hover{border-color:var(--el-color-primary)}.header-links[data-v-ef1e6fb1]{display:flex;align-items:center;gap:12px}.header-links .el-button[data-v-ef1e6fb1]{border:1px solid var(--el-border-color);transition:all .2s}.header-links .el-button[data-v-ef1e6fb1]:hover{background:var(--el-color-primary-light-9);border-color:var(--el-color-primary);color:var(--el-color-primary)}.header-links a[data-v-ef1e6fb1]{color:var(--el-text-color-primary);text-decoration:none}.header-links a[data-v-ef1e6fb1]:hover{color:var(--el-color-primary)}.main-container[data-v-ef1e6fb1]{width:100%;height:calc(100vh - 60px);background-color:var(--el-bg-color-overlay)}.fullscreen-toggle[data-v-ef1e6fb1]{margin-left:0}.lv-card[data-v-ef1e6fb1],.lv-card[data-v-ef1e6fb1] .el-tab-pane{height:100%}[data-v-ef1e6fb1] .splitpanes__splitter{background-color:var(--el-border-color)!important;border:none}[data-v-ef1e6fb1] .splitpanes__pane{background-color:transparent}.w75[data-v-ef1e6fb1]{width:75%}.w25[data-v-ef1e6fb1]{width:25%}html{background-color:var(--el-bg-color-overlay)}html.dark .el-button{--el-button-divide-border-color: rgba(0, 0, 0, .5)}.lv-tabs .el-tabs__content{flex:1;overflow-y:auto}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__nav{border:0 none}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item{font-size:12px;border:0 none;border-radius:4px;margin:8px 0 0 8px;padding:0 6px;height:24px;transition:all .1s;-webkit-user-select:none;user-select:none}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{background-color:#f5f5f5;color:#191919}.lv-tabs .el-tabs__item.is-top{border:0 none}.lv-tabs .el-tabs__item:hover{color:#999}.lv-tabs .el-tabs__header{margin:0;align-items:flex-start}.lv-tabs .el-tab-pane{height:100%}.lv-tabs .el-tabs__new-tab{margin-right:10px}.dark .dash-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{background-color:#383838;color:#fff}.el-card{--el-card-padding: 12px}.splitpanes.default-theme .splitpanes__pane{background-color:var(--el-bg-color-overlay)}.dark .default-theme.splitpanes--vertical>.splitpanes__splitter,.dark .default-theme .splitpanes--vertical>.splitpanes__splitter{border-color:#333} diff --git a/assets/index-C9I8h_Dk.js b/assets/index-C9I8h_Dk.js deleted file mode 100644 index c1832e3..0000000 --- a/assets/index-C9I8h_Dk.js +++ /dev/null @@ -1,125 +0,0 @@ -var Bu=Object.defineProperty;var Nu=(s,e,t)=>e in s?Bu(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var ce=(s,e,t)=>Nu(s,typeof e!="symbol"?e+"":e,t);import{r as F,w as _i,S as Xi,aw as ih,x as lt,j as Ii,ag as C,y as H,z as I,A as E,G as oe,P as S,H as $,O as Ae,a6 as Re,u as Z,L as W,M as Ze,ax as ji,c as dn,J as Ge,B as Ko,V as Jo,C as ea,D as xr,K as zu,ay as Uu,at as qu,az as Wu}from"./vue-CAgL8zVV.js";import{E as se,M as Gu,g as ta,a as Yu,i as Fu}from"./utils-DMCumeSF.js";import{r as Hu,a as Ku,b as Ju}from"./xterm-BZdChWd0.js";import{C as ef,V as ue,M as Qi,T as bi,Q as ls,S as ia,a as Ne,R as tf,P as nf,b as rn,c as sf,d as wr,e as nh,L as sh,f as on,F as ko,h as St,i as Rt,j as Zt,k as Ai,l as rf,m as rh,D as Qr,n as hs,I as of,o as af,O as oh,p as lf,q as hf,B as Ns,r as cf,s as ah,N as uf,t as ff,u as df,v as kr,w as lh,x as vr,y as pf,z as Of,A as Hi,E as an,G as Fn,H as Kt,J as mf,K as Ki,U as gf,W as Pr,X as yf,Y as Xt,Z as $r,_ as bf,$ as Sf,a0 as ln,a1 as ai,a2 as hh,a3 as xf,a4 as wf,a5 as Qf,a6 as kf,a7 as vf,a8 as ch,a9 as Pf,aa as na,ab as sa,ac as ra,ad as oa,ae as aa,af as $f,ag as Tf,ah as _f,ai as Af,aj as mi,ak as Rf,al as Zf,g as Cf,am as zs,an as Mf,ao as Ef,ap as Lf,aq as Df,ar as Xf,as as If,at as la,au as ha,av as jf}from"./three-FCmarWxK.js";import{u as Vf}from"./uplot-C0BbzL7s.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(n){if(n.ep)return;n.ep=!0;const r=t(n);fetch(n.href,r)}})();const _n={serial:{baudRate:115200,dataBits:8,stopBits:1,parity:"none",flowControl:"none"},display:{showTime:!0,showMs:!1,showHex:!0,showText:!0,showNewline:!0,autoScroll:!1,timeOut:5},send:{isHexSend:!1,addCRLF:!1,addCRLFType:` -`,autoSend:!1,autoSendInterval:1e3,addChecksum:!1,content:"",history:[],historyMaxLength:100},layout:{splitPaneSize:75,leftActiveTab:"0",rightActiveTab:"0"},charts:{list:[{id:1,name:"Chart 1",fields:["pitch","roll","yaw"]}]},canvas:{items:[]}},ei=class ei{constructor(){ce(this,"configs",{});this.loadAllConfigs()}static getInstance(){return ei.instance||(ei.instance=new ei),ei.instance}loadAllConfigs(){for(const[e,t]of Object.entries(_n)){const i=localStorage.getItem(`config.${e}`);this.configs[e]=i?{...t,...JSON.parse(i)}:t}}getConfig(e){return this.configs[e]||_n[e]}setConfig(e,t){this.configs[e]={...this.configs[e],...t},localStorage.setItem(`config.${e}`,JSON.stringify(this.configs[e]))}useConfig(e){const t=F(this.getConfig(e));return _i(t,i=>{this.setConfig(e,i)},{deep:!0}),t}resetConfig(e){this.configs[e]={..._n[e]},localStorage.setItem(`config.${e}`,JSON.stringify(this.configs[e]))}resetAllConfigs(){Object.keys(_n).forEach(e=>{this.resetConfig(e)})}};ce(ei,"instance");let Ct=ei;const ti=class ti{constructor(){ce(this,"handlers",new Map)}static getInstance(){return ti.instance||(ti.instance=new ti),ti.instance}emit(e,t){const i=this.handlers.get(e);i&&(i.forEach((n,r)=>{n.callback(t),n.once&&i.splice(r,1)}),i.length===0&&this.handlers.delete(e))}on(e,t,i=!1){var n;this.handlers.has(e)||this.handlers.set(e,[]),(n=this.handlers.get(e))==null||n.push({callback:t,once:i})}once(e,t){this.on(e,t,!0)}off(e,t){if(!t){this.handlers.delete(e);return}const i=this.handlers.get(e);if(!i)return;const n=i.findIndex(r=>r.callback===t);n!==-1&&(i.splice(n,1),i.length===0&&this.handlers.delete(e))}useEvent(e,t){this.on(e,t),Xi(()=>{this.off(e,t)})}};ce(ti,"instance");let rt=ti;const le={SERIAL_DATA:"serial-data",SERIAL_SEND:"serial-send",DATA_UPDATE:"data-update",TERM_WRITE:"term-write",SERIAL_ERROR:"error"},Bf=rt.getInstance(),ii=class ii{constructor(){ce(this,"textEncoder");ce(this,"textDecoder");ce(this,"isConnected",!1);ce(this,"sendQueue",[]);ce(this,"maxQueueSize",1e3);ce(this,"processingQueue",!1);this.textEncoder=new TextEncoder,this.textDecoder=new TextDecoder}static getInstance(){return ii.instance||(ii.instance=new ii),ii.instance}setConnected(e){this.isConnected=e,e||this.clearSendQueue()}isSerialConnected(){return this.isConnected}validateHexString(e){return/^[0-9A-Fa-f\s]*$/.test(e)&&e.replace(/\s/g,"").length%2===0}stringToUint8Array(e,t=!1){if(t){if(!this.validateHexString(e))throw new Error("无效的HEX格式字符串");const i=e.replace(/[^0-9A-Fa-f]/g,""),n=new Uint8Array(i.length/2);for(let r=0;rt.toString(16).padStart(2,"0").toUpperCase()).join(" ")}uint8ArrayToString(e){try{return this.textDecoder.decode(e)}catch(t){return console.error("解码数据时出错:",t),""}}formatLogMessage(e,t){try{const i=new Date,n=[];if(t.showTime){const o=i.toLocaleTimeString();if(t.showMs){const a=i.getMilliseconds().toString().padStart(3,"0");n.push(`[${o}.${a}]`)}else n.push(`[${o}]`)}if(t.showHex){const o=this.uint8ArrayToHexString(e);n.push(o)}if(t.showText){const o=this.uint8ArrayToString(e);t.showHex?n.push(`| ${o}`):n.push(o)}return t.showNewline?n.push(` -`):n.push(""),n.join(" ")}catch(i){return console.error("格式化日志消息时出错:",i),`[${new Date().toLocaleTimeString()}] 错误: 无法格式化消息 -`}}async addToSendQueue(e){if(!this.isConnected)throw new Error("串口未连接");if(this.sendQueue.length>=this.maxQueueSize)throw new Error("发送队列已满");this.sendQueue.push(e),this.processingQueue||await this.processSendQueue()}clearSendQueue(){this.sendQueue=[],this.processingQueue=!1}async processSendQueue(){if(!(this.processingQueue||this.sendQueue.length===0)){for(this.processingQueue=!0;this.sendQueue.length>0&&this.isConnected;){const e=this.sendQueue.shift();if(e)try{Bf.emit(le.SERIAL_SEND,e),await new Promise(t=>setTimeout(t,10))}catch(t){console.error("发送数据时出错:",t)}}this.processingQueue=!1}}calculateChecksum(e){return e.reduce((t,i)=>t^i,0)}appendChecksum(e){const t=this.calculateChecksum(e),i=new Uint8Array(e.length+1);return i.set(e),i[e.length]=t,i}verifyChecksum(e){if(e.length<1)return!1;const t=e[e.length-1],i=this.calculateChecksum(e.slice(0,-1));return t===i}};ce(ii,"instance");let Ri=ii;const vo=ih("field",{state:()=>({fields:[],nextId:1,columnVisibility:{key:!0,name:!1,keyAddr:!1,keySize:!1,dataType:!0,description:!1,value:!0,avg:!1,min:!1,max:!1,lastUpdate:!0,updateCount:!0}}),actions:{createField(s,e,t){const i={id:this.nextId++,key:s,name:s,keyAddr:0,keySize:0,dataType:t||"number",description:"",value:e,avg:typeof e=="number"?e:null,avgSum:typeof e=="number"?e:null,min:typeof e=="number"?e:null,max:typeof e=="number"?e:null,lastUpdate:Date.now(),updateCount:1,isEditing:!1};return this.fields.push(i),this.saveToLocalStorage(),i},initDefaultFields(){this.fields.length===0&&(this.createField("pitch",0,"number"),this.createField("roll",0,"number"),this.createField("yaw",0,"number"))},updateField(s,e){s.value=e,s.lastUpdate=Date.now(),s.updateCount++,typeof e=="number"&&(s.avgSum==null&&(s.avgSum=0),s.avgSum+=e,s.avg=Math.floor(s.avgSum/s.updateCount*1e3)/1e3,(s.min===null||es.max)&&(s.max=e)),this.saveToLocalStorage()},deleteField(s){const e=this.fields.findIndex(t=>t.id===s);e!==-1&&(this.fields.splice(e,1),this.saveToLocalStorage())},toggleColumnVisibility(){localStorage.setItem("config.columnVisibility",JSON.stringify(this.columnVisibility))},saveToLocalStorage(){localStorage.setItem("config.fields",JSON.stringify(this.fields)),localStorage.setItem("config.nextId",String(this.nextId))},loadFromLocalStorage(){const s=localStorage.getItem("config.fields"),e=localStorage.getItem("config.nextId"),t=localStorage.getItem("config.columnVisibility");s&&(this.fields=JSON.parse(s)),e&&(this.nextId=parseInt(e,10)),t&&(this.columnVisibility=JSON.parse(t)),this.initDefaultFields()},exportData(){const s=JSON.stringify(this.fields,null,2),e=new Blob([s],{type:"application/json"}),t=URL.createObjectURL(e),i=document.createElement("a");i.href=t,i.download=`data-export-${new Date().toISOString()}.json`,i.click(),URL.revokeObjectURL(t)},async importData(s){try{const e=await s.text(),t=JSON.parse(e);return this.fields=t,this.saveToLocalStorage(),!0}catch(e){return console.error("导入数据失败:",e),!1}}}}),An=rt.getInstance(),ca=`let cache = ''; - -// 处理接收的数据 -async function DataReceiver(data) { - cache += uint8ArrayToString(data); - // 数据格式:"pitch:-0.13,roll:0.00,yaw:0.07\\n" - - if (cache.indexOf('\\n') !== -1) { - const lines = cache.split('\\n'); - cache = lines.pop() || ''; - - for (const line of lines) { - let files = line.split(',') - let data = {}; - files.map((str) => { - let s2 = str.split(':') - if (s2.length === 2) { - data[s2[0]] = parseFloat(s2[1]) - } - }) - - // 更新到数据表 - updateDataTable(data); - } - } - return data; -} - -// 处理发送的数据 -async function DataSender(data) { - // checksum - // await sleep(10); - - return data; -} - -// 定时发送数据 -setInterval(async () => { - const bytes = new Uint8Array(3); - // sendHex(bytes); -}, 1000); - -// 支持的函数 -// stringToUint8Array(); -// uint8ArrayToHexString(); -// uint8ArrayToString(); - -`,ni=class ni{constructor(){ce(this,"scripts",[]);ce(this,"currentScript",{id:Date.now(),name:"新建脚本",code:"",isRunning:!1});ce(this,"serialHelper",Ri.getInstance());ce(this,"runtimer",{DataReceiverInterface:null,DataSenderInterface:null});ce(this,"RuntimerTimerIntervals",[]);ce(this,"RuntimerTimerouts",[]);this.loadScripts()}static getInstance(){return ni.instance||(ni.instance=new ni),ni.instance}getScripts(){return this.scripts}getCurrentScript(){return this.currentScript}setCurrentScript(e){this.currentScript=e}addScript(e="新脚本",t=ca){const i={id:Date.now(),name:e,code:t,isRunning:!1};return this.scripts.push(i),this.currentScript=i,this.saveScripts(),i}removeScript(e){const t=this.scripts.findIndex(i=>i.id===e);t>-1&&(this.scripts.splice(t,1),this.currentScript.id===e&&(this.scripts.length===0&&this.addScript(),this.currentScript=this.scripts[0]),this.saveScripts())}async runScript(){let e=this.currentScript;if(!e.isRunning){e.isRunning=!0;try{const t={stringToUint8Array:this.serialHelper.stringToUint8Array.bind(this.serialHelper),uint8ArrayToHexString:this.serialHelper.uint8ArrayToHexString.bind(this.serialHelper),uint8ArrayToString:this.serialHelper.uint8ArrayToString.bind(this.serialHelper),sendText:r=>{const o=this.serialHelper.stringToUint8Array(r);An.emit(le.SERIAL_SEND,o)},sendHex:r=>{let o=r;typeof r=="string"&&(o=this.serialHelper.stringToUint8Array(r,!0)),An.emit(le.SERIAL_SEND,o)},updateDataTable:r=>{An.emit(le.DATA_UPDATE,r)},getDataTables:()=>{const r=vo();return JSON.parse(JSON.stringify(r.fields))},sleep:r=>new Promise(o=>setTimeout(o,r)),setTimeout:(r,o)=>{const a=setTimeout(r,o);return this.RuntimerTimerouts.push(a),a},setInterval:(r,o)=>{const a=setInterval(r,o);return this.RuntimerTimerIntervals.push(a),a}},i=` -return (async function() { - ${e.code} - - - let DataReceiverInterface = typeof DataReceiver == 'undefined' ? null : DataReceiver; - let DataSenderInterface = typeof DataSender == 'undefined'? null : DataSender; - return { DataReceiverInterface, DataSenderInterface }; -})() - `,n=new Function("context",`with(context) { ${i} }`);this.runtimer=await n(t)}catch(t){console.error("脚本执行错误:",t),An.emit(le.SERIAL_ERROR,{error:t instanceof Error?t.message:"未知错误"}),this.stopScript()}}}stopScript(){this.currentScript.isRunning=!1,this.RuntimerTimerouts.forEach(clearTimeout),this.RuntimerTimerouts=[],this.RuntimerTimerIntervals.forEach(clearInterval),this.RuntimerTimerIntervals=[]}async getRuntimer(){return this.currentScript.isRunning||await this.runScript(),this.runtimer}saveScripts(){localStorage.setItem("config.serialScripts",JSON.stringify(this.scripts))}loadScripts(){const e=localStorage.getItem("config.serialScripts");if(e)try{this.scripts=JSON.parse(e)}catch(t){console.error("加载脚本失败:",t)}this.scripts.length===0&&this.addScript("数据处理Demo(key:val,key:val)",ca),this.scripts.map(t=>{t.isRunning=!1}),this.currentScript=this.scripts[0]||this.currentScript}};ce(ni,"instance");let cs=ni;const ze=F([]),Nf=Ct.getInstance(),zf=Nf.useConfig("serial"),Tr=F(null),Uf=[{name:"Arduino UNO",vendorId:"2341",productId:"0043"},{name:"Arduino Mega",vendorId:"2341",productId:"0010"},{name:"Arduino Nano",vendorId:"0403",productId:"6001"},{name:"ATmega32U4",vendorId:"2341",productId:"8036"},{name:"CP2102/CP2102N",vendorId:"10c4",productId:"ea60"},{name:"FT2232H",vendorId:"0403",productId:"6010"},{name:"FTDI Basic",vendorId:"0403",productId:"6001"},{name:"CH340",vendorId:"1a86",productId:"7523"},{name:"CH9102",vendorId:"1a86",productId:"55d4"},{name:"PL2303",vendorId:"067b",productId:"2303"},{name:"PL2303HX",vendorId:"067b",productId:"2303"},{name:"ESP USB_SERIAL_JTAG",vendorId:"303a",productId:"1001"},{name:"ESP USB Bridge",vendorId:"303a",productId:"1002"},{name:"ESP32-S2 USB CDC",vendorId:"303a",productId:"0002"},{name:"ESP32-S3 USB CDC",vendorId:"303a",productId:"0009"},{name:"CH9102F",vendorId:"1a86",productId:"55d4"},{name:"CH340G",vendorId:"1a86",productId:"7523"},{name:"STM32 Virtual COM Port",vendorId:"0483",productId:"5740"},{name:"STM32 USB CDC",vendorId:"0483",productId:"5740"}],qf=s=>{if(!s.getInfo().usbProductId)return"串口设备";const e=(s.getInfo().usbVendorId||0).toString(16).padStart(4,"0"),t=(s.getInfo().usbProductId||0).toString(16).padStart(4,"0"),i=Uf.find(n=>n.vendorId.toLowerCase()===e.toLowerCase()&&n.productId.toLowerCase()===t.toLowerCase());return i?`${i.name} (VID:${e} PID:${t})`:`未知设备 (VID:${e} PID:${t})`},uh=s=>{var e;return"serialport_"+(((e=s.getInfo().usbProductId)==null?void 0:e.toString())||"")},fh=s=>({id:uh(s),title:qf(s),type:"serialport",port:s}),Wf=async()=>{var s;(s=navigator.serial)==null||s.getPorts().then(e=>{e.map(t=>{let i=uh(t);ze.value.find(r=>r.id===i)||ze.value.push(fh(t))})})},Gf=async()=>{try{const s=await navigator.serial.requestPort();return fh(s)}catch(s){s.message!="Failed to execute 'requestPort' on 'Serial': No port selected by the user."&&se.error("串口连接失败:"+s),console.error(s)}return null},Yf=async s=>{try{const e=s.port;await e.open(zf.value),Tr.value=e;let t=e.writable.getWriter(),i=e.readable.getReader();return{writer:t,reader:i}}catch(e){se.error("串口连接失败:"+e),console.log(e)}},Ff=async()=>{try{Tr.value&&await Tr.value.close()}catch(s){se.error("断开设备失败:"+s),console.log(s)}},si=class si{constructor(){ce(this,"timers");this.timers=new Map}static getInstance(){return si.instance||(si.instance=new si),si.instance}animationFrame(e){const t=this.timers.get(e);if(!t||!t.isRunning)return;const i=performance.now(),n=i-t.lastTime;n>=t.interval&&(t.callback(),t.lastTime=i-n%t.interval),t.requestId=requestAnimationFrame(()=>this.animationFrame(e))}startTimer(e,t,i){this.timers.has(e)&&this.stopTimer(e),this.timers.set(e,{callback:t,interval:i,lastTime:performance.now(),requestId:null,isRunning:!0});const n=this.timers.get(e);n.requestId=requestAnimationFrame(()=>this.animationFrame(e))}stopTimer(e){const t=this.timers.get(e);t&&(t.isRunning=!1,t.requestId!==null&&(cancelAnimationFrame(t.requestId),t.requestId=null))}resumeTimer(e){const t=this.timers.get(e);t&&!t.isRunning&&(t.isRunning=!0,t.lastTime=performance.now(),t.requestId=requestAnimationFrame(()=>this.animationFrame(e)))}clearTimer(e){this.stopTimer(e),this.timers.delete(e)}clearAllTimers(){for(const e of this.timers.keys())this.clearTimer(e)}isTimerRunning(e){const t=this.timers.get(e);return t?t.isRunning:!1}};ce(si,"instance");let _r=si;const Hf=()=>"mock",Kf=()=>"mock",Jf=s=>({id:Kf(),title:Hf(),type:"mock",port:s});ze.value.push(Jf(null));const dh=F(!1),ph=_r.getInstance(),Oh="mock_imu_simulation",ed=s=>new Promise(e=>setTimeout(e,s)),td=async()=>{mh(),dh.value=!0;const{writable:s,readable:e}=new TransformStream({transform(a,l){l.enqueue(a)}});let t=s.getWriter(),i=e.getReader(),n=0,r=0,o=0;return await ed(1e3-Date.now()%1e3),ph.startTimer(Oh,()=>{n+=Math.random()*.4-.2,r+=Math.random()*.4-.1,o+=Math.random()*.4-0;let a=`pitch:${n.toFixed(2)},roll:${r.toFixed(2)},yaw:${o.toFixed(2)} -`;const l=new TextEncoder().encode(a);t.write(l)},50),{writer:t,reader:i}},mh=()=>{ph.stopTimer(Oh),dh.value=!1},id=async s=>td(),nd=async()=>{mh()},sd=s=>"未知设备"+s,gh=s=>"usb",yh=s=>({id:gh(),title:sd(s),type:"usb",port:s}),rd=async()=>{var s;(s=navigator.usb)==null||s.getDevices().then(e=>{e.map(t=>{let i=gh();ze.value.find(r=>r.id===i)||ze.value.push(yh(t))})})},od=async()=>{try{const s=await navigator.usb.requestDevice({filters:[]});return yh(s)}catch(s){s.message!="Failed to execute 'requestDevice' on 'USB': No device selected."&&se.error("串口连接失败:"+s),console.error(s)}return null},ad=async s=>(console.log(s),null),ld=s=>"未知设备"+s,hd=s=>"bluetooth",cd=s=>({id:hd(),title:ld(s),type:"bluetooth",port:s}),ud=async()=>{try{const s=await navigator.bluetooth.requestDevice({acceptAllDevices:!0});return cd(s)}catch(s){s.message!="User cancelled the requestDevice() chooser."&&se.error("串口连接失败:"+s),console.error(s)}return null},fd=async s=>null,dd={class:"serial-config"},pd={class:"config-container"},Od={class:"port-section"},md={class:"port-list"},gd=lt({__name:"SerialConfig",setup(s){const t=Ct.getInstance().useConfig("serial"),i=cs.getInstance(),n=rt.getInstance(),r=F(null),o=F(null),a=F(!1),l=F(""),h=[921600,460800,230400,115200,57600,38400,19200,9600,4800,2400,1200];_i(t,async()=>{if(a.value){try{await p()}catch{}try{const y=ze.value.find(v=>v.id===l.value);y&&await d(y)}catch(y){se.error("更新串口参数失败:"+y)}}},{deep:!0});const u=async y=>{const v=await i.getRuntimer();v.DataReceiverInterface&&(y=await v.DataReceiverInterface(y)),n.emit(le.SERIAL_DATA,y)},f=async()=>{let y=null;switch(l.value){case"authorizedSerial":y=await Gf();break;case"authorizedUSB":y=await od();break;case"authorizedBluetooth":y=await ud();break;case"websocket":break;case"webstlink":case"script":case"dap":case"adb":se.warning("该设备类型开发中"),l.value="";break;default:y=ze.value.find(v=>v.id===l.value)}y?d(y):l.value=""},d=async y=>{ze.value.find(x=>x.id===y.id)||ze.value.push(y);let w;try{y.type==="serialport"?w=await Yf(y):y.type==="mock"?w=await id(y):y.type==="usb"?w=await ad(y):y.type==="bluetooth"&&(w=await fd(y))}catch(x){se.error("串口连接失败:"+x),console.log(x)}w?(r.value=w.writer,o.value=w.reader,a.value=!0,se.success("串口连接成功"),O(),l.value=y.id):l.value=""},p=async()=>{try{o.value&&(await o.value.cancel(),o.value.releaseLock()),r.value&&(await r.value.close(),r.value.releaseLock())}catch(y){console.log(y)}a.value=!1;try{await Ff(),await nd(),se.success("设备已断开")}catch(y){se.error("断开设备失败:"+y),console.log(y)}},O=async()=>{for(;a.value&&o.value;)try{const{value:y,done:v}=await o.value.read();if(v)break;u(y)}catch(y){se.error("读取串口数据失败:"+y);break}},g=async y=>{if(!a.value||!r.value){y.length==1&&y[0]==13?n.emit(le.TERM_WRITE,y):se.error("设备未连接");return}const v=await i.getRuntimer();v.DataSenderInterface&&(y=await v.DataSenderInterface(y));try{await r.value.write(y),se.success({message:"发送成功",grouping:!0,duration:1800,showClose:!0})}catch(w){console.log(w),se.error("发送数据失败:"+w)}},m=F({url:"",history:[]}),Q=y=>{y&&(m.value.url=y,m.value.history.includes(y)||(m.value.history.push(y),localStorage.setItem("config.wsConfig",JSON.stringify(m.value))))};Ii(()=>{n.on(le.SERIAL_SEND,g),Wf(),rd()}),Xi(()=>{n.off(le.SERIAL_SEND,g)});const T=()=>{if(a.value)p();else{const y=ze.value.find(v=>v.id===l.value);y&&d(y)}};return(y,v)=>{const w=C("el-option"),x=C("el-option-group"),P=C("el-select"),k=C("el-button"),L=C("el-button-group"),X=C("el-form-item"),D=C("el-form");return I(),H("div",dd,[E("div",pd,[E("div",Od,[E("div",md,[S(P,{modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=_=>l.value=_),onChange:f,placeholder:"选择设备",size:"small"},{default:$(()=>[S(w,{label:"选择设备",value:""}),S(x,{label:"串口设备"},{default:$(()=>[S(w,{label:"授权串口设备",value:"authorizedSerial"}),(I(!0),H(Ae,null,Re(Z(ze).filter(_=>_.type=="serialport"),_=>(I(),oe(w,{key:_.id,label:_.title,value:_.id},null,8,["label","value"]))),128))]),_:1}),S(x,{label:"WebUSB设备"},{default:$(()=>[S(w,{label:"授权WebUSB设备",value:"authorizedUSB"}),(I(!0),H(Ae,null,Re(Z(ze).filter(_=>_.type=="usb"),_=>(I(),oe(w,{key:_.id,label:_.title,value:_.id},null,8,["label","value"]))),128))]),_:1}),S(x,{label:"蓝牙设备"},{default:$(()=>[S(w,{label:"授权蓝牙设备",value:"authorizedBluetooth"}),(I(!0),H(Ae,null,Re(Z(ze).filter(_=>_.type=="bluetooth"),_=>(I(),oe(w,{key:_.id,label:_.title,value:_.id},null,8,["label","value"]))),128))]),_:1}),S(x,{label:"其他"},{default:$(()=>[S(w,{label:"WebSocket",value:"websocket"}),S(w,{label:"脚本",value:"script"}),S(w,{label:"Stlink",value:"webstlink"}),S(w,{label:"DAP",value:"dap"}),S(w,{label:"adb",value:"adb"}),S(w,{label:"模拟数据(IMU)",value:"mock"})]),_:1})]),_:1},8,["modelValue"])]),S(L,null,{default:$(()=>[S(k,{type:a.value?"danger":"primary",onClick:T,size:"small"},{default:$(()=>[W(Ze(a.value?"断开":"连接"),1)]),_:1},8,["type"])]),_:1})]),l.value=="websocket"?(I(),oe(D,{key:0,model:m.value,inline:!0,size:"small",class:"config-section"},{default:$(()=>[S(X,{label:"ws"},{default:$(()=>[S(P,{modelValue:m.value.url,"onUpdate:modelValue":v[1]||(v[1]=_=>m.value.url=_),filterable:"","allow-create":"",onChange:Q,style:{width:"300px"}},{default:$(()=>[(I(!0),H(Ae,null,Re(m.value.history,_=>(I(),oe(w,{key:_,label:_,value:_},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])):(I(),oe(D,{key:1,model:Z(t),inline:!0,size:"small",class:"config-section"},{default:$(()=>[S(X,{label:"波特率"},{default:$(()=>[S(P,{modelValue:Z(t).baudRate,"onUpdate:modelValue":v[2]||(v[2]=_=>Z(t).baudRate=_),style:{width:"80px"}},{default:$(()=>[(I(),H(Ae,null,Re(h,_=>S(w,{key:_,value:_},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),S(X,{label:"数据位"},{default:$(()=>[S(P,{modelValue:Z(t).dataBits,"onUpdate:modelValue":v[3]||(v[3]=_=>Z(t).dataBits=_),style:{width:"50px"}},{default:$(()=>[(I(),H(Ae,null,Re([8,7,6,5],_=>S(w,{key:_,value:_},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),S(X,{label:"停止位"},{default:$(()=>[S(P,{modelValue:Z(t).stopBits,"onUpdate:modelValue":v[4]||(v[4]=_=>Z(t).stopBits=_),style:{width:"50px"}},{default:$(()=>[(I(),H(Ae,null,Re([1,2],_=>S(w,{key:_,value:_},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),S(X,{label:"校验位"},{default:$(()=>[S(P,{modelValue:Z(t).parity,"onUpdate:modelValue":v[5]||(v[5]=_=>Z(t).parity=_),style:{width:"60px"}},{default:$(()=>[S(w,{label:"无",value:"none"}),S(w,{label:"奇校验",value:"odd"}),S(w,{label:"偶校验",value:"even"})]),_:1},8,["modelValue"])]),_:1}),S(X,{label:"流控制"},{default:$(()=>[S(P,{modelValue:Z(t).flowControl,"onUpdate:modelValue":v[6]||(v[6]=_=>Z(t).flowControl=_),style:{width:"60px"}},{default:$(()=>[S(w,{label:"无",value:"none"}),S(w,{label:"硬件流控",value:"hardware"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]))])])}}}),ht=(s,e)=>{const t=s.__vccOpts||s;for(const[i,n]of e)t[i]=n;return t},yd=ht(gd,[["__scopeId","data-v-1bd72a3e"]]);var bd=Hu(),Sd=Ku(),xd=Ju();const wd={class:"serial-log"},Qd={class:"controls"},kd={class:"received-bytes"},vd=lt({__name:"SerialLogTerm",setup(s){const e=rt.getInstance(),i=Ct.getInstance().useConfig("display"),n=ji(),r=F(i.value),o=Ri.getInstance();let a=[],l=new Uint8Array,h=null,c=0,u=null,f=null;const d=F(0),p=()=>{u&&u.clear(),a=[],d.value=0},O=P=>{e.emit(le.SERIAL_SEND,new TextEncoder().encode(P))},g=P=>P?{background:"#1e1e1e",foreground:"#d4d4d4",selectionBackground:"#3a3a3a"}:{background:"#ffffff",foreground:"#000000",selectionBackground:"#d4d4d4"},m=()=>{u=new bd.Terminal({cursorBlink:!0,convertEol:!0,fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace",fontSize:14,theme:g(n.value),scrollback:1e4});const P=new xd.SearchAddon;u.loadAddon(P),f=new Sd.FitAddon,u.loadAddon(f),u.onData(O);const k=document.getElementById("terminal");k&&(u.open(k),u.write(` -\x1B[36m _____ _ _ _______ _ - / ____| (_) | | |__ __| | | - | (___ ___ _ __ _ __ _| | | | ___ ___ | | - \\___ \\ / _ \\ '__| |/ _\` | | | |/ _ \\ / _ \\| | - ____) | __/ | | | (_| | | | | (_) | (_) | | - |_____/ \\___|_| |_|\\__,_|_| |_|\\___/ \\___/|_| - -\x1B[0m -\x1B[35m=== Serial Tool ===\x1B[0m -\x1B[32m版本: v2.1.0\x1B[0m -\x1B[0m -功能特点: -- 🔌 支持串口和WebUSB设备连接 -- 📝 实时数据收发显示 -- 🎨 支持文本和HEX格式数据发送 -- 📜 支持自定义脚本编写和执行 -- 🎯 快捷发送功能 -- ⚙️ 可配置的显示选项 -- 🌙 暗色主题支持 - -\x1B[33m开始使用: -1. 点击顶部的连接按钮选择串口设备 -2. 配置串口参数(波特率等) -3. 开始接收/发送数据\x1B[0m - -`)),setTimeout(()=>{f==null||f.fit()},120)},Q=P=>{P in r.value&&(r.value[P]=!r.value[P])},T=P=>{if(l=new Uint8Array([...l,...P]),d.value+=P.length,r.value.timeOut==0){y();return}if(h&&clearTimeout(h),c==0)c=Date.now();else if(Date.now()-c>=r.value.timeOut){c=0,y();return}h=window.setTimeout(()=>{c=0,y()},r.value.timeOut)},y=()=>{const P=o.formatLogMessage(l,r.value);u&&(requestAnimationFrame(()=>{u&&(u.write(P),r.value.autoScroll&&u.scrollToBottom())}),a.push(P)),l=new Uint8Array};_i(n,P=>{u&&(u.options.theme=g(P))});const v=()=>{setTimeout(()=>{f==null||f.fit()},120)},w=P=>{if(u){let k=o.uint8ArrayToString(P);u.write(k)}};Ii(()=>{m(),e.on(le.SERIAL_DATA,T),e.on(le.TERM_WRITE,w),window.addEventListener("resize",v)}),Xi(()=>{e.off(le.SERIAL_DATA,T),e.off(le.TERM_WRITE,w),window.removeEventListener("resize",v),h&&clearTimeout(h),u&&u.dispose()});const x=()=>{if(!u)return;const k=`serial-log-${new Date().toISOString().replace(/[:.]/g,"-")}.txt`,L=a.join(` -`),X=new Blob([L],{type:"text/plain;charset=utf-8"}),D=URL.createObjectURL(X),_=document.createElement("a");_.href=D,_.download=k,document.body.appendChild(_),_.click(),document.body.removeChild(_),URL.revokeObjectURL(D)};return(P,k)=>{const L=C("el-button"),X=C("el-button-group"),D=C("el-input-number"),_=C("el-tooltip");return I(),H("div",wd,[E("div",Qd,[S(X,{class:"me-2"},{default:$(()=>[S(L,{type:r.value.showTime?"primary":"default",size:"small",onClick:k[0]||(k[0]=B=>Q("showTime"))},{default:$(()=>k[7]||(k[7]=[W(" 时间 ")])),_:1},8,["type"]),S(L,{type:r.value.showMs?"primary":"default",size:"small",onClick:k[1]||(k[1]=B=>Q("showMs"))},{default:$(()=>k[8]||(k[8]=[W(" 毫秒 ")])),_:1},8,["type"]),S(L,{type:r.value.showHex?"primary":"default",size:"small",onClick:k[2]||(k[2]=B=>Q("showHex"))},{default:$(()=>k[9]||(k[9]=[W(" HEX ")])),_:1},8,["type"]),S(L,{type:r.value.showText?"primary":"default",size:"small",onClick:k[3]||(k[3]=B=>Q("showText"))},{default:$(()=>k[10]||(k[10]=[W(" TEXT ")])),_:1},8,["type"]),S(L,{type:r.value.showNewline?"primary":"default",size:"small",onClick:k[4]||(k[4]=B=>Q("showNewline"))},{default:$(()=>k[11]||(k[11]=[W(" 换行 ")])),_:1},8,["type"])]),_:1}),S(X,{class:"me-2",style:{"white-space":"nowrap"}},{default:$(()=>[S(L,{type:r.value.autoScroll?"primary":"default",size:"small",onClick:k[5]||(k[5]=B=>Q("autoScroll"))},{default:$(()=>k[12]||(k[12]=[W(" 自动滚动 ")])),_:1},8,["type"]),S(L,{type:"danger",size:"small",onClick:p},{default:$(()=>k[13]||(k[13]=[W(" 清空 ")])),_:1}),S(L,{type:"primary",size:"small",onClick:x},{default:$(()=>k[14]||(k[14]=[W(" 导出 ")])),_:1})]),_:1}),S(_,{class:"box-item",effect:"dark",content:"分包超时时间(ms)",placement:"bottom"},{default:$(()=>[S(D,{modelValue:r.value.timeOut,"onUpdate:modelValue":k[6]||(k[6]=B=>r.value.timeOut=B),min:0,max:3e3,step:5,size:"small"},{prefix:$(()=>k[15]||(k[15]=[])),suffix:$(()=>k[16]||(k[16]=[E("span",null,"ms",-1)])),_:1},8,["modelValue"])]),_:1}),E("div",kd,[E("span",null,"接收: "+Ze(d.value)+" 字节",1)])]),k[17]||(k[17]=E("div",{class:"terminal-container"},[E("div",{id:"terminal"})],-1))])}}}),Pd=ht(vd,[["__scopeId","data-v-4cf5fd89"]]),$d={class:"serial-send"},Td={class:"controls"},_d={class:"me-2",style:{display:"inline-block"}},Ad={class:"send-content"},Rd=lt({__name:"SerialSend",setup(s){const e=rt.getInstance(),i=Ct.getInstance().useConfig("send");let n=null;const r=Ri.getInstance(),o=()=>{try{let u=i.value.content;i.value.addCRLF&&(u+=i.value.addCRLFType);let f=r.stringToUint8Array(u,i.value.isHexSend);i.value.addChecksum&&(f=r.appendChecksum(f)),e.emit(le.SERIAL_SEND,f),u&&!i.value.history.includes(i.value.content)&&(i.value.history.unshift(i.value.content),i.value.history.length>i.value.historyMaxLength&&i.value.history.pop())}catch(u){return console.error("发送数据时出错:",u),se.error("发送数据时出错"+u),e.emit(le.SERIAL_ERROR,{message:u instanceof Error?u.message:"发送数据时出错"}),!1}return!0},a=()=>{i.value.autoSend?n=window.setInterval(()=>{o()||(n&&(clearInterval(n),n=null),i.value.autoSend=!1)},i.value.autoSendInterval):n&&(clearInterval(n),n=null)},l=u=>{i.value.autoSendInterval=u,i.value.autoSend&&n&&(clearInterval(n),n=window.setInterval(o,u))};let h=-1;const c=u=>{if(!u.metaKey&&!u.ctrlKey&&!u.shiftKey&&u.key==="Enter")return o(),h=-1,u.preventDefault(),!1;const f=u.target;if(u.key==="ArrowUp"||u.key==="ArrowDown"){const d=f.selectionStart,O=!i.value.content.slice(0,d).includes(` -`);if(h==-1&&!O)return}else h=-1;u.key==="ArrowUp"?(u.preventDefault(),h===-1&&i.value.content.trim()&&!i.value.history.includes(i.value.content)&&(i.value.history.unshift(i.value.content),i.value.history.length>i.value.historyMaxLength&&i.value.history.pop()),i.value.history.length>0&&(h=Math.min(h+1,i.value.history.length-1),i.value.content=i.value.history[h],f.selectionStart=f.selectionEnd=0)):u.key==="ArrowDown"&&(u.preventDefault(),h>-1&&(h--,i.value.content=h===-1?"":i.value.history[h],f.selectionStart=f.selectionEnd=0))};return(u,f)=>{const d=C("el-switch"),p=C("el-checkbox"),O=C("el-option"),g=C("el-select"),m=C("el-input-number"),Q=C("el-button"),T=C("el-input");return I(),H("div",$d,[E("div",Td,[S(d,{modelValue:Z(i).isHexSend,"onUpdate:modelValue":f[0]||(f[0]=y=>Z(i).isHexSend=y),"active-text":"HEX","inactive-text":"TEXT",class:"me-2"},null,8,["modelValue"]),E("div",_d,[S(p,{modelValue:Z(i).addCRLF,"onUpdate:modelValue":f[1]||(f[1]=y=>Z(i).addCRLF=y),label:"",class:"",style:{"vertical-align":"middle"}},null,8,["modelValue"]),S(g,{modelValue:Z(i).addCRLFType,"onUpdate:modelValue":f[2]||(f[2]=y=>Z(i).addCRLFType=y),size:"small",style:{width:"80px"},onChange:f[3]||(f[3]=y=>Z(i).addCRLF=!0)},{default:$(()=>[S(O,{value:`\r -`,label:"CRLF(\\r\\n)"}),S(O,{value:"\r",label:"CR(\\r)"}),S(O,{value:` -`,label:"LF(\\n)"}),S(O,{value:` - -`,label:"LF2(\\n\\n)"})]),_:1},8,["modelValue"])]),S(p,{modelValue:Z(i).addChecksum,"onUpdate:modelValue":f[4]||(f[4]=y=>Z(i).addChecksum=y),label:"校验和",class:"me-2"},null,8,["modelValue"]),S(p,{modelValue:Z(i).autoSend,"onUpdate:modelValue":f[5]||(f[5]=y=>Z(i).autoSend=y),onChange:a,label:"自动发送",class:"me-2"},null,8,["modelValue"]),S(m,{modelValue:Z(i).autoSendInterval,"onUpdate:modelValue":f[6]||(f[6]=y=>Z(i).autoSendInterval=y),step:100,onChange:l,size:"small",class:"me-2",title:"自动发送时间间隔"},{suffix:$(()=>f[8]||(f[8]=[E("span",null,"ms",-1)])),_:1},8,["modelValue"]),S(Q,{type:"primary",onClick:o,class:"me-2"},{default:$(()=>f[9]||(f[9]=[W("发送")])),_:1})]),E("div",Ad,[S(T,{modelValue:Z(i).content,"onUpdate:modelValue":f[7]||(f[7]=y=>Z(i).content=y),type:"textarea",rows:5,placeholder:Z(i).isHexSend?"请输入HEX格式数据,如:AA BB CC 11 22":"请输入要发送的文本",onKeydown:c},null,8,["modelValue","placeholder"])])])}}}),Zd=ht(Rd,[["__scopeId","data-v-f49a4901"]]),Cd={class:"serial-log"},Md=lt({__name:"SerialLog",setup(s){return(e,t)=>(I(),H("div",Cd,[S(Pd,{class:"serial-term"}),S(Zd,{class:"serial-send"})]))}}),Ed=ht(Md,[["__scopeId","data-v-9a1e85ef"]]),ua={type:"change"},Po={type:"start"},bh={type:"end"},Rn=new tf,fa=new nf,Ld=Math.cos(70*rn.DEG2RAD),ye=new ue,Le=2*Math.PI,ee={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},Us=1e-6;class Dd extends ef{constructor(e,t=null){super(e,t),this.state=ee.NONE,this.enabled=!0,this.target=new ue,this.cursor=new ue,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:Qi.ROTATE,MIDDLE:Qi.DOLLY,RIGHT:Qi.PAN},this.touches={ONE:bi.ROTATE,TWO:bi.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new ue,this._lastQuaternion=new ls,this._lastTargetPosition=new ue,this._quat=new ls().setFromUnitVectors(e.up,new ue(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new ia,this._sphericalDelta=new ia,this._scale=1,this._panOffset=new ue,this._rotateStart=new Ne,this._rotateEnd=new Ne,this._rotateDelta=new Ne,this._panStart=new Ne,this._panEnd=new Ne,this._panDelta=new Ne,this._dollyStart=new Ne,this._dollyEnd=new Ne,this._dollyDelta=new Ne,this._dollyDirection=new ue,this._mouse=new Ne,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=Id.bind(this),this._onPointerDown=Xd.bind(this),this._onPointerUp=jd.bind(this),this._onContextMenu=Wd.bind(this),this._onMouseWheel=Nd.bind(this),this._onKeyDown=zd.bind(this),this._onTouchStart=Ud.bind(this),this._onTouchMove=qd.bind(this),this._onMouseDown=Vd.bind(this),this._onMouseMove=Bd.bind(this),this._interceptControlDown=Gd.bind(this),this._interceptControlUp=Yd.bind(this),this.domElement!==null&&this.connect(),this.update()}connect(){this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(e){e.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=e}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(ua),this.update(),this.state=ee.NONE}update(e=null){const t=this.object.position;ye.copy(t).sub(this.target),ye.applyQuaternion(this._quat),this._spherical.setFromVector3(ye),this.autoRotate&&this.state===ee.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let i=this.minAzimuthAngle,n=this.maxAzimuthAngle;isFinite(i)&&isFinite(n)&&(i<-Math.PI?i+=Le:i>Math.PI&&(i-=Le),n<-Math.PI?n+=Le:n>Math.PI&&(n-=Le),i<=n?this._spherical.theta=Math.max(i,Math.min(n,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(i+n)/2?Math.max(i,this._spherical.theta):Math.min(n,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const o=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=o!=this._spherical.radius}if(ye.setFromSpherical(this._spherical),ye.applyQuaternion(this._quatInverse),t.copy(this.target).add(ye),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let o=null;if(this.object.isPerspectiveCamera){const a=ye.length();o=this._clampDistance(a*this._scale);const l=a-o;this.object.position.addScaledVector(this._dollyDirection,l),this.object.updateMatrixWorld(),r=!!l}else if(this.object.isOrthographicCamera){const a=new ue(this._mouse.x,this._mouse.y,0);a.unproject(this.object);const l=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=l!==this.object.zoom;const h=new ue(this._mouse.x,this._mouse.y,0);h.unproject(this.object),this.object.position.sub(h).add(a),this.object.updateMatrixWorld(),o=ye.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;o!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(o).add(this.object.position):(Rn.origin.copy(this.object.position),Rn.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(Rn.direction))Us||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Us||this._lastTargetPosition.distanceToSquared(this.target)>Us?(this.dispatchEvent(ua),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e!==null?Le/60*this.autoRotateSpeed*e:Le/60/60*this.autoRotateSpeed}_getZoomScale(e){const t=Math.abs(e*.01);return Math.pow(.95,this.zoomSpeed*t)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,t){ye.setFromMatrixColumn(t,0),ye.multiplyScalar(-e),this._panOffset.add(ye)}_panUp(e,t){this.screenSpacePanning===!0?ye.setFromMatrixColumn(t,1):(ye.setFromMatrixColumn(t,0),ye.crossVectors(this.object.up,ye)),ye.multiplyScalar(e),this._panOffset.add(ye)}_pan(e,t){const i=this.domElement;if(this.object.isPerspectiveCamera){const n=this.object.position;ye.copy(n).sub(this.target);let r=ye.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*r/i.clientHeight,this.object.matrix),this._panUp(2*t*r/i.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/i.clientWidth,this.object.matrix),this._panUp(t*(this.object.top-this.object.bottom)/this.object.zoom/i.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(e,t){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const i=this.domElement.getBoundingClientRect(),n=e-i.left,r=t-i.top,o=i.width,a=i.height;this._mouse.x=n/o*2-1,this._mouse.y=-(r/a)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Le*this._rotateDelta.x/t.clientHeight),this._rotateUp(Le*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let t=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(Le*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),t=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-Le*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),t=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(Le*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),t=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-Le*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),i=.5*(e.pageX+t.x),n=.5*(e.pageY+t.y);this._rotateStart.set(i,n)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),i=.5*(e.pageX+t.x),n=.5*(e.pageY+t.y);this._panStart.set(i,n)}}_handleTouchStartDolly(e){const t=this._getSecondPointerPosition(e),i=e.pageX-t.x,n=e.pageY-t.y,r=Math.sqrt(i*i+n*n);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{const i=this._getSecondPointerPosition(e),n=.5*(e.pageX+i.x),r=.5*(e.pageY+i.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Le*this._rotateDelta.x/t.clientHeight),this._rotateUp(Le*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),i=.5*(e.pageX+t.x),n=.5*(e.pageY+t.y);this._panEnd.set(i,n)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){const t=this._getSecondPointerPosition(e),i=e.pageX-t.x,n=e.pageY-t.y,r=Math.sqrt(i*i+n*n);this._dollyEnd.set(0,r),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const o=(e.pageX+t.x)*.5,a=(e.pageY+t.y)*.5;this._updateZoomParameters(o,a)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let t=0;t=2.0 are supported."));return}const h=new _p(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});h.fileLoader.setRequestHeader(this.requestHeader);for(let c=0;c=0&&a[u]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+u+'".')}}h.setExtensions(o),h.setPlugins(a),h.parse(i,n)}parseAsync(e,t){const i=this;return new Promise(function(n,r){i.parse(e,t,n,r)})}}function Hd(){let s={};return{get:function(e){return s[e]},add:function(e,t){s[e]=t},remove:function(e){delete s[e]},removeAll:function(){s={}}}}const U={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class Kd{constructor(e){this.parser=e,this.name=U.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let i=0,n=t.length;i=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class fp{constructor(e){this.parser=e,this.name=U.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,n=i.json,r=n.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=n.images[o.source];let l=i.textureLoader;if(a.uri){const h=i.options.manager.getHandler(a.uri);h!==null&&(l=h)}return this.detectSupport().then(function(h){if(h)return i.loadTextureImage(e,o.source,l);if(n.extensionsRequired&&n.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class dp{constructor(e){this.parser=e,this.name=U.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,n=i.json,r=n.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=n.images[o.source];let l=i.textureLoader;if(a.uri){const h=i.options.manager.getHandler(a.uri);h!==null&&(l=h)}return this.detectSupport().then(function(h){if(h)return i.loadTextureImage(e,o.source,l);if(n.extensionsRequired&&n.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class pp{constructor(e){this.name=U.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,i=t.bufferViews[e];if(i.extensions&&i.extensions[this.name]){const n=i.extensions[this.name],r=this.parser.getDependency("buffer",n.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const l=n.byteOffset||0,h=n.byteLength||0,c=n.count,u=n.byteStride,f=new Uint8Array(a,l,h);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(c,u,f,n.mode,n.filter).then(function(d){return d.buffer}):o.ready.then(function(){const d=new ArrayBuffer(c*u);return o.decodeGltfBuffer(new Uint8Array(d),c,u,f,n.mode,n.filter),d})})}else return null}}class Op{constructor(e){this.name=U.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,i=t.nodes[e];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const n=t.meshes[i.mesh];for(const h of n.primitives)if(h.mode!==He.TRIANGLES&&h.mode!==He.TRIANGLE_STRIP&&h.mode!==He.TRIANGLE_FAN&&h.mode!==void 0)return null;const o=i.extensions[this.name].attributes,a=[],l={};for(const h in o)a.push(this.parser.getDependency("accessor",o[h]).then(c=>(l[h]=c,l[h])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(h=>{const c=h.pop(),u=c.isGroup?c.children:[c],f=h[0].count,d=[];for(const p of u){const O=new hs,g=new ue,m=new ls,Q=new ue(1,1,1),T=new of(p.geometry,p.material,f);for(let y=0;y0||s.search(/^data\:image\/jpeg/)===0?"image/jpeg":s.search(/\.webp($|\?)/i)>0||s.search(/^data\:image\/webp/)===0?"image/webp":s.search(/\.ktx2($|\?)/i)>0||s.search(/^data\:image\/ktx2/)===0?"image/ktx2":"image/png"}const Tp=new hs;class _p{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new Hd,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let i=!1,n=-1,r=!1,o=-1;if(typeof navigator<"u"){const a=navigator.userAgent;i=/^((?!chrome|android).)*safari/i.test(a)===!0;const l=a.match(/Version\/(\d+)/);n=i&&l?parseInt(l[1],10):-1,r=a.indexOf("Firefox")>-1,o=r?a.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>"u"||i&&n<17||r&&o<98?this.textureLoader=new lf(this.options.manager):this.textureLoader=new hf(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new ko(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const i=this,n=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(o){const a={scene:o[0][n.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:n.asset,parser:i,userData:{}};return Yt(r,a,n),vt(a,n),Promise.all(i._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){for(const l of a.scenes)l.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],i=this.json.meshes||[];for(let n=0,r=t.length;n{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[h,c]of o.children.entries())r(c,a.children[h])};return r(i,n),n.name+="_instance_"+e.uses[t]++,n}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let i=0;i=2&&g.setY(k,w[x*l+1]),l>=3&&g.setZ(k,w[x*l+2]),l>=4&&g.setW(k,w[x*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}g.normalized=p}return g})}loadTexture(e){const t=this.json,i=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const l=i.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,i){const n=this,r=this.json,o=r.textures[e],a=r.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const h=this.loadImageSource(t,i).then(function(c){c.flipY=!1,c.name=o.name||a.name||"",c.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(c.name=a.uri);const f=(r.samplers||{})[o.sampler]||{};return c.magFilter=Oa[f.magFilter]||kr,c.minFilter=Oa[f.minFilter]||ah,c.wrapS=ma[f.wrapS]||vr,c.wrapT=ma[f.wrapT]||vr,c.generateMipmaps=!c.isCompressedTexture&&c.minFilter!==lh&&c.minFilter!==kr,n.associations.set(c,{textures:e}),c}).catch(function(){return null});return this.textureCache[l]=h,h}loadImageSource(e,t){const i=this,n=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(u=>u.clone());const o=n.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",h=!1;if(o.bufferView!==void 0)l=i.getDependency("bufferView",o.bufferView).then(function(u){h=!0;const f=new Blob([u],{type:o.mimeType});return l=a.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const c=Promise.resolve(l).then(function(u){return new Promise(function(f,d){let p=f;t.isImageBitmapLoader===!0&&(p=function(O){const g=new na(O);g.needsUpdate=!0,f(g)}),t.load(on.resolveURL(u,r.path),p,void 0,d)})}).then(function(u){return h===!0&&a.revokeObjectURL(l),vt(u,o),u.userData.mimeType=o.mimeType||$p(o.uri),u}).catch(function(u){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),u});return this.sourceCache[e]=c,c}assignTexture(e,t,i,n){const r=this;return this.getDependency("texture",i.index).then(function(o){if(!o)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(o=o.clone(),o.channel=i.texCoord),r.extensions[U.KHR_TEXTURE_TRANSFORM]){const a=i.extensions!==void 0?i.extensions[U.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=r.associations.get(o);o=r.extensions[U.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,l)}}return n!==void 0&&(o.colorSpace=n),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let i=e.material;const n=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new Hi,an.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,l.sizeAttenuation=!1,this.cache.add(a,l)),i=l}else if(e.isLine){const a="LineBasicMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new Fn,an.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,this.cache.add(a,l)),i=l}if(n||r||o){let a="ClonedMaterial:"+i.uuid+":";n&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=i.clone(),r&&(l.vertexColors=!0),o&&(l.flatShading=!0),n&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(i))),i=l}e.material=i}getMaterialType(){return Kt}loadMaterial(e){const t=this,i=this.json,n=this.extensions,r=i.materials[e];let o;const a={},l=r.extensions||{},h=[];if(l[U.KHR_MATERIALS_UNLIT]){const u=n[U.KHR_MATERIALS_UNLIT];o=u.getMaterialType(),h.push(u.extendParams(a,r,t))}else{const u=r.pbrMetallicRoughness||{};if(a.color=new Rt(1,1,1),a.opacity=1,Array.isArray(u.baseColorFactor)){const f=u.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],Zt),a.opacity=f[3]}u.baseColorTexture!==void 0&&h.push(t.assignTexture(a,"map",u.baseColorTexture,Ai)),a.metalness=u.metallicFactor!==void 0?u.metallicFactor:1,a.roughness=u.roughnessFactor!==void 0?u.roughnessFactor:1,u.metallicRoughnessTexture!==void 0&&(h.push(t.assignTexture(a,"metalnessMap",u.metallicRoughnessTexture)),h.push(t.assignTexture(a,"roughnessMap",u.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),h.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=mf);const c=r.alphaMode||Ws.OPAQUE;if(c===Ws.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,c===Ws.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==Ki&&(h.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new Ne(1,1),r.normalTexture.scale!==void 0)){const u=r.normalTexture.scale;a.normalScale.set(u,u)}if(r.occlusionTexture!==void 0&&o!==Ki&&(h.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==Ki){const u=r.emissiveFactor;a.emissive=new Rt().setRGB(u[0],u[1],u[2],Zt)}return r.emissiveTexture!==void 0&&o!==Ki&&h.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,Ai)),Promise.all(h).then(function(){const u=new o(a);return r.name&&(u.name=r.name),vt(u,r),t.associations.set(u,{materials:e}),r.extensions&&Yt(n,u,r),u})}createUniqueName(e){const t=gf.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,i=this.extensions,n=this.primitiveCache;function r(a){return i[U.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return ga(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&vp(m,r),m.name=t.createUniqueName(r.name||"mesh_"+e),vt(m,r),g.extensions&&Yt(n,m,g),t.assignFinalMaterial(m),u.push(m)}for(let d=0,p=u.length;d1?c=new ai:h.length===1?c=h[0]:c=new oh,c!==h[0])for(let u=0,f=h.length;u{const u=new Map;for(const[f,d]of n.associations)(f instanceof an||f instanceof na)&&u.set(f,d);return c.traverse(f=>{const d=n.associations.get(f);d!=null&&u.set(f,d)}),u};return n.associations=h(r),r})}_createAnimationTracks(e,t,i,n,r){const o=[],a=e.name?e.name:e.uuid,l=[];Et[r.path]===Et.weights?e.traverse(function(f){f.morphTargetInfluences&&l.push(f.name?f.name:f.uuid)}):l.push(a);let h;switch(Et[r.path]){case Et.weights:h=ra;break;case Et.rotation:h=oa;break;case Et.position:case Et.scale:h=sa;break;default:switch(i.itemSize){case 1:h=ra;break;case 2:case 3:default:h=sa;break}break}const c=n.interpolation!==void 0?wp[n.interpolation]:ch,u=this._getArrayFromAccessor(i);for(let f=0,d=l.length;f0?r[r.length-1]:"",smooth:o!==void 0?o.smooth:this.smooth,groupStart:o!==void 0?o.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(l){const h={index:typeof l=="number"?l:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return h.clone=this.clone.bind(h),h}};return this.materials.push(a),a},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(n){const r=this.currentMaterial();if(r&&r.groupEnd===-1&&(r.groupEnd=this.geometry.vertices.length/3,r.groupCount=r.groupEnd-r.groupStart,r.inherited=!1),n&&this.materials.length>1)for(let o=this.materials.length-1;o>=0;o--)this.materials[o].groupCount<=0&&this.materials.splice(o,1);return n&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),r}},i&&i.name&&typeof i.clone=="function"){const n=i.clone(0);n.inherited=!0,this.object.materials.push(n)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const i=parseInt(e,10);return(i>=0?i-1:i+t/3)*3},parseNormalIndex:function(e,t){const i=parseInt(e,10);return(i>=0?i-1:i+t/3)*3},parseUVIndex:function(e,t){const i=parseInt(e,10);return(i>=0?i-1:i+t/2)*2},addVertex:function(e,t,i){const n=this.vertices,r=this.object.geometry.vertices;r.push(n[e+0],n[e+1],n[e+2]),r.push(n[t+0],n[t+1],n[t+2]),r.push(n[i+0],n[i+1],n[i+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,i){const n=this.normals,r=this.object.geometry.normals;r.push(n[e+0],n[e+1],n[e+2]),r.push(n[t+0],n[t+1],n[t+2]),r.push(n[i+0],n[i+1],n[i+2])},addFaceNormal:function(e,t,i){const n=this.vertices,r=this.object.geometry.normals;ba.fromArray(n,e),Ys.fromArray(n,t),Sa.fromArray(n,i),Ye.subVectors(Sa,Ys),xa.subVectors(ba,Ys),Ye.cross(xa),Ye.normalize(),r.push(Ye.x,Ye.y,Ye.z),r.push(Ye.x,Ye.y,Ye.z),r.push(Ye.x,Ye.y,Ye.z)},addColor:function(e,t,i){const n=this.colors,r=this.object.geometry.colors;n[e]!==void 0&&r.push(n[e+0],n[e+1],n[e+2]),n[t]!==void 0&&r.push(n[t+0],n[t+1],n[t+2]),n[i]!==void 0&&r.push(n[i+0],n[i+1],n[i+2])},addUV:function(e,t,i){const n=this.uvs,r=this.object.geometry.uvs;r.push(n[e+0],n[e+1]),r.push(n[t+0],n[t+1]),r.push(n[i+0],n[i+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,i,n,r,o,a,l,h){const c=this.vertices.length;let u=this.parseVertexIndex(e,c),f=this.parseVertexIndex(t,c),d=this.parseVertexIndex(i,c);if(this.addVertex(u,f,d),this.addColor(u,f,d),a!==void 0&&a!==""){const p=this.normals.length;u=this.parseNormalIndex(a,p),f=this.parseNormalIndex(l,p),d=this.parseNormalIndex(h,p),this.addNormal(u,f,d)}else this.addFaceNormal(u,f,d);if(n!==void 0&&n!==""){const p=this.uvs.length;u=this.parseUVIndex(n,p),f=this.parseUVIndex(r,p),d=this.parseUVIndex(o,p),this.addUV(u,f,d),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let i=0,n=e.length;i=7?(Zn.setRGB(parseFloat(u[4]),parseFloat(u[5]),parseFloat(u[6]),Ai),t.colors.push(Zn.r,Zn.g,Zn.b)):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(u[1]),parseFloat(u[2]),parseFloat(u[3]));break;case"vt":t.uvs.push(parseFloat(u[1]),parseFloat(u[2]));break}}else if(c==="f"){const f=h.slice(1).trim().split(ya),d=[];for(let O=0,g=f.length;O0){const Q=m.split("/");d.push(Q)}}const p=d[0];for(let O=1,g=d.length-1;O1){const f=n[1].trim().toLowerCase();t.object.smooth=f!=="0"&&f!=="off"}else t.object.smooth=!0;const u=t.object.currentMaterial();u&&(u.smooth=t.object.smooth)}else{if(h==="\0")continue;console.warn('THREE.OBJLoader: Unexpected line: "'+h+'"')}}t.finalize();const r=new ai;if(r.materialLibraries=[].concat(t.materialLibraries),!(t.objects.length===1&&t.objects[0].geometry.vertices.length===0)===!0)for(let a=0,l=t.objects.length;a0&&O.setAttribute("normal",new mi(c.normals,3)),c.colors.length>0&&(p=!0,O.setAttribute("color",new mi(c.colors,3))),c.hasUVIndices===!0&&O.setAttribute("uv",new mi(c.uvs,2));const g=[];for(let Q=0,T=u.length;Q1){for(let Q=0,T=u.length;Q0){const a=new Hi({size:1,sizeAttenuation:!1}),l=new Pr;l.setAttribute("position",new mi(t.vertices,3)),t.colors.length>0&&t.colors[0]!==void 0&&(l.setAttribute("color",new mi(t.colors,3)),a.vertexColors=!0);const h=new ln(l,a);r.add(h)}return r}}var Dp=Zf();const Xp=Cf(Dp),Ip={class:"chart-3d-container"},jp={class:"data-panel"},Vp={class:"model-controls"},Bp=lt({__name:"Chart3D",setup(s){try{zs.install({THREE:Mf})}catch{}const e=rt.getInstance(),t=F(null),i=F(0),n=F(0),r=F(0),o=F("rocket"),a=F(null),l=F(null),h=ji(),c=dn(()=>h.value?1710618:15790320),u=dn(()=>h.value?4210752:3368703);let f,d,p,O,g,m,Q,T,y;const v=()=>{f=new Ef,f.background=new Rt(c.value);const N=new Lf(1.6);f.add(N),d=new If,T=new Xp,T.showPanel(0),T.dom.style.position="absolute",T.dom.style.left="0px",T.dom.style.top="0px",t.value.appendChild(T.dom),p=new hh(75,t.value.clientWidth/t.value.clientHeight,.1,1e3),p.position.set(2,2,2),p.lookAt(0,0,0),O=new Df({antialias:!0}),O.setSize(t.value.clientWidth,t.value.clientHeight),t.value.appendChild(O.domElement),m=new Dd(p,O.domElement),m.enableDamping=!0,k(o.value),X()},w=()=>{const N=new ai,J=new la(.5,1.4,12),re=new Kt({color:u.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),me=new Xt(J,re);me.position.set(0,0,-.6),me.rotation.x=-Math.PI/2,N.add(me);const Pe=new ha(.4,.4,1),ge=new Kt({color:u.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),xe=new Xt(Pe,ge);return xe.position.set(0,0,.3),N.add(xe),N},x=()=>{const N=new ai,J=new la(.2,.5,12),re=new Kt({color:u.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),me=new Xt(J,re);me.position.set(0,1.05,0),N.add(me);const Pe=new jf(.2,.2,1.6),ge=new Kt({color:u.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),xe=new Xt(Pe,ge);xe.position.set(0,0,0),N.add(xe);const Ve=.09,nt=1.5,wt=800,We=window.innerHeight,Vu=new zs.Geometry(Ve,nt,wt),Ho=new zs.Material({color:16720384});return Ho.setPerspective(p.fov,We),y=new ln(Vu,Ho),y.rotation.x=3.14,y.position.set(0,-.92,0),N.add(y),N},P=()=>{const N=new ai,J=new ha(1,1,1),re=new Kt({color:u.value,metalness:.7,roughness:.3,envMapIntensity:1}),me=new Xt(J,re);return N.add(me),N},k=N=>{switch(g&&f.remove(g),N){case"rocket":g=x();break;case"arrow":g=w();break;case"cube":g=P();break;case"custom":a?g=a.value:g=w();break;default:g=w()}f.add(g)},L=N=>{var Pe,ge;const J=(Pe=N.target.files)==null?void 0:Pe[0];if(!J)return;const re=(ge=J.name.split(".").pop())==null?void 0:ge.toLowerCase(),me=new FileReader;me.onload=xe=>{var nt;const Ve=(nt=xe.target)==null?void 0:nt.result;if(Ve)if(re==="gltf"||re==="glb")new Fd().parse(Ve,"",We=>{a.value=We.scene,o.value="custom",k("custom")},We=>{se.error("加载模型失败:"+We.message)});else if(re==="obj"){const wt=new Lp;try{const We=wt.parse(Ve);a.value=We,o.value="custom",k("custom")}catch(We){se.error("加载模型失败:"+We.message)}}else se.error("不支持的文件格式,请使用.gltf、.glb或.obj格式的3D模型文件")},me.readAsText(J)},X=()=>{const N=new Xf(16777215,6);f.add(N);const J=new Qr(16777215,12);J.position.set(5,5,10),f.add(J);const re=new Qr(16777215,1);re.position.set(-5,3,-5),f.add(re);const me=new rh(4890367,1,10);me.position.set(2,2,2),f.add(me)},D=()=>{var N=d.getDelta();Q=requestAnimationFrame(D),T.begin(),g&&g.rotation.set(rn.degToRad(n.value),rn.degToRad(r.value),rn.degToRad(i.value)),y&&y.material.update(N),m.update(),O.render(f,p),T.end()},_=()=>{if(t.value&&p&&O){let N=t.value.clientWidth,J=t.value.clientHeight;p.aspect=N/J,p.updateProjectionMatrix(),O.setSize(N,J),y&&y.material.setPerspective(p.fov,J)}},B=N=>{if(!N||typeof N.pitch!="number")return;const{pitch:J,roll:re,yaw:me}=N;i.value=J,n.value=re,r.value=me},G=()=>{o.value==="arrow"?o.value="cube":(o.value,o.value="arrow"),k(o.value)},ne=()=>{var N;(N=l.value)==null||N.click()};return Ii(()=>{v(),D(),e.on(le.DATA_UPDATE,B),window.addEventListener("resize",_)}),Xi(()=>{Q&&cancelAnimationFrame(Q),e.off(le.DATA_UPDATE,B),window.removeEventListener("resize",_),O.dispose()}),(N,J)=>{const re=C("el-button");return I(),H("div",Ip,[E("div",{ref_key:"container",ref:t,class:"canvas-container"},null,512),E("div",jp,[E("div",null,"Pitch: "+Ze(i.value.toFixed(2))+"°",1),E("div",null,"Roll: "+Ze(n.value.toFixed(2))+"°",1),E("div",null,"Yaw: "+Ze(r.value.toFixed(2))+"°",1),E("div",Vp,[S(re,{class:"model-switch",onClick:G,size:"small"},{default:$(()=>J[0]||(J[0]=[W(" 切换模型 ")])),_:1}),S(re,{class:"model-upload",onClick:ne,size:"small"},{default:$(()=>J[1]||(J[1]=[W(" 导入模型 ")])),_:1}),E("input",{ref_key:"fileInput",ref:l,type:"file",accept:".gltf,.glb,.obj",style:{display:"none"},onChange:L},null,544)])])])}}}),wh=ht(Bp,[["__scopeId","data-v-fd334cfa"]]),Np={class:"chart-panel"},zp={class:"chart-controls"},Up={class:"charts-container"},qp={class:"chart-header"},Wp={class:"chart-content"},Gp=lt({__name:"ChartPanel",setup(s){const e=rt.getInstance(),t=vo(),n=Ct.getInstance().useConfig("charts"),r=F([]);let o=dn(()=>r.value.reduce((x,P)=>Math.max(x,P.id),0)+1);const a=ji(),l={background:"#1e1e1e",gridColor:"#2c2c2c",textColor:"#d4d4d4",lineColors:["#4a9eff","#ff4a4a","#4aff4a","#ffd700","#ff4aff","#4affff"]},h={background:"#ffffff",gridColor:"#f0f0f0",textColor:"#333333",lineColors:["#3366ff","#ff3333","#33ff33","#ffcc00","#ff33ff","#33ffff"]},c=dn(()=>a.value?l:h),u=w=>{const x={id:o.value,name:w,fields:[],data:[[]],timestamps:[],uplot:null,container:null};return r.value.push(x),d(),x},f=w=>{const x=r.value.find(P=>P.id===w);x&&(x.data=[[]],x.timestamps=[],x.fields.forEach(()=>x.data.push([])),x.uplot&&x.uplot.setData(x.data))},d=()=>{const w=r.value.map(x=>({id:x.id,name:x.name,fields:x.fields}));n.value.list=w},p=()=>{const w=n.value.list||[];Array.isArray(w)&&w.forEach(x=>{const P=u(x.name);P.id=x.id,x.fields.forEach(k=>T(P.id,k))})},O=(w,x)=>{const P={width:x.clientWidth||200,height:300,cursor:{sync:{key:0}},series:[{label:"Time",value:(k,L)=>{if(!L)return"--";let X=new Date(L*1e3);return X.toLocaleString()+"."+X.getMilliseconds()}},...w.fields.map((k,L)=>({label:k,stroke:c.value.lineColors[L%c.value.lineColors.length]}))],axes:[{stroke:c.value.textColor,grid:{stroke:c.value.gridColor}},{stroke:c.value.textColor,grid:{stroke:c.value.gridColor}}],scales:{x:{time:!0}}};w.uplot=new Vf(P,w.data,x),w.container=x},g=w=>{if(typeof w!="object"||w===null)return;const x=Date.now();r.value.forEach(P=>{if(P.fields.length===0)return;P.timestamps.push(x/1e3);let k=0;const L=[P.timestamps,...P.fields.map((X,D)=>{const _=w[X];let B=null;return typeof _=="number"&&(k++,B=_),P.data[D+1].push(B),P.data[D+1]})];k!=0&&(P.uplot&&P.uplot.setData(L),P.data=L)})},m=()=>{d()},Q=w=>{w.data=[w.timestamps],w.fields.forEach(()=>w.data.push([])),d(),w.uplot&&(w.uplot.destroy(),w.container&&O(w,w.container))},T=(w,x)=>{const P=r.value.find(k=>k.id===w);if(P){if(P.fields.includes(x)){se.warning("该字段已添加到图表中");return}P.fields.push(x),P.data.push([]),d(),P.uplot&&(P.uplot.destroy(),P.container&&O(P,P.container))}},y=w=>{const x=r.value.findIndex(k=>k.id===w);if(x===-1)return;const P=r.value[x];P.uplot&&P.uplot.destroy(),r.value.splice(x,1),d()},v=()=>{r.value.forEach(w=>{if(w.uplot&&w.container){let x=w.container.clientWidth;x&&w.uplot.setSize({width:x,height:w.uplot.height})}})};return Ii(()=>{p(),e.on(le.DATA_UPDATE,g),window.addEventListener("resize",v)}),Xi(()=>{e.off(le.DATA_UPDATE,g),window.removeEventListener("resize",v),r.value.forEach(w=>{w.uplot&&w.uplot.destroy()})}),(w,x)=>{const P=C("el-button"),k=C("el-input"),L=C("el-option"),X=C("el-select"),D=C("Delete"),_=C("el-icon"),B=C("RefreshRight");return I(),H("div",Np,[E("div",zp,[S(P,{onClick:x[0]||(x[0]=G=>u("新图表")),type:"primary",size:"small"},{default:$(()=>x[1]||(x[1]=[W(" 添加图表 ")])),_:1})]),E("div",Up,[(I(!0),H(Ae,null,Re(r.value,G=>(I(),H("div",{key:G.id,class:"chart-item"},[E("div",qp,[S(k,{modelValue:G.name,"onUpdate:modelValue":ne=>G.name=ne,size:"small",placeholder:"图表名称",class:"chart-name-input",onChange:m},null,8,["modelValue","onUpdate:modelValue"]),S(X,{modelValue:G.fields,"onUpdate:modelValue":ne=>G.fields=ne,multiple:"",filterable:"",placeholder:"选择字段",size:"small",style:{"min-width":"200px"},onChange:ne=>Q(G)},{default:$(()=>[(I(!0),H(Ae,null,Re(Z(t).fields.map(ne=>ne.key),ne=>(I(),oe(L,{key:ne,label:ne,value:ne},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),S(P,{onClick:ne=>y(G.id),type:"danger",size:"small",circle:""},{default:$(()=>[S(_,null,{default:$(()=>[S(D)]),_:1})]),_:2},1032,["onClick"]),S(P,{onClick:ne=>f(G.id),style:{"margin-left":"0"},type:"warning",size:"small",circle:""},{default:$(()=>[S(_,null,{default:$(()=>[S(B)]),_:1})]),_:2},1032,["onClick"])]),E("div",Wp,[E("div",{ref_for:!0,ref:ne=>{ne&&!G.uplot&&O(G,ne)},class:"chart-container"},null,512)])]))),128))])])}}}),Qh=ht(Gp,[["__scopeId","data-v-e6e95fc6"]]),Yp={class:"data-table-container"},Fp={class:"table-toolbar"},Hp={class:"import-export-buttons"},Kp={class:"operation-buttons"},Jp=lt({__name:"DataTable",setup(s){const e=rt.getInstance(),t=vo(),i=a=>{typeof a!="object"||a===null||Object.entries(a).forEach(([l,h])=>{const c=t.fields.find(u=>u.key===l);c?t.updateField(c,h):t.fields.push(t.createField(l,h))})},n=()=>{t.createField("new_field","")},r=()=>{t.saveToLocalStorage()},o=()=>{t.fields.forEach(a=>{a.value="",a.avg=null,a.avgSum=null,a.min=null,a.max=null,a.updateCount=0,a.lastUpdate=0}),t.saveToLocalStorage()};return Ii(()=>{t.loadFromLocalStorage(),e.on(le.DATA_UPDATE,i)}),Xi(()=>{e.off(le.DATA_UPDATE,i)}),(a,l)=>{const h=C("arrow-down"),c=C("el-icon"),u=C("el-button"),f=C("el-checkbox"),d=C("el-dropdown-item"),p=C("el-dropdown-menu"),O=C("el-dropdown"),g=C("Delete"),m=C("el-table-column"),Q=C("el-input"),T=C("el-option"),y=C("el-select"),v=C("el-tooltip"),w=C("el-table");return I(),H("div",Yp,[E("div",Fp,[S(O,{trigger:"click"},{dropdown:$(()=>[S(p,null,{default:$(()=>[(I(!0),H(Ae,null,Re(Z(t).columnVisibility,(x,P)=>(I(),oe(d,{key:P},{default:$(()=>[S(f,{modelValue:Z(t).columnVisibility[P],"onUpdate:modelValue":k=>Z(t).columnVisibility[P]=k,onChange:l[0]||(l[0]=k=>Z(t).toggleColumnVisibility())},{default:$(()=>[W(Ze(P==="key"?"Key":P==="name"?"字段名":P==="dataType"?"数据类型":P==="keyAddr"?"内存地址":P==="keySize"?"内存大小":P==="description"?"描述":P==="value"?"当前值":P==="avg"?"平均值":P==="min"?"最小值":P==="max"?"最大值":P==="lastUpdate"?"最后更新":P==="updateCount"?"更新次数":P),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1})]),default:$(()=>[S(u,{type:"primary",size:"small"},{default:$(()=>[l[3]||(l[3]=W(" 显示/隐藏列 ")),S(c,{class:"el-icon--right"},{default:$(()=>[S(h)]),_:1})]),_:1})]),_:1}),E("div",Hp,[S(u,{type:"primary",size:"small",onClick:n},{default:$(()=>l[4]||(l[4]=[W("添加")])),_:1}),S(u,{type:"primary",size:"small",onClick:Z(t).exportData},{default:$(()=>l[5]||(l[5]=[W("导出数据")])),_:1},8,["onClick"]),S(u,{type:"primary",size:"small",onClick:l[1]||(l[1]=x=>a.$refs.fileInput.click())},{default:$(()=>l[6]||(l[6]=[W("导入数据")])),_:1}),S(u,{type:"warning",size:"small",onClick:o},{default:$(()=>l[7]||(l[7]=[W("重置数据")])),_:1}),E("input",{ref:"fileInput",type:"file",accept:".json",style:{display:"none"},onChange:l[2]||(l[2]=x=>{var k;const P=(k=x.target.files)==null?void 0:k[0];P&&Z(t).importData(P)})},null,544)])]),S(w,{data:Z(t).fields,border:"",stripe:""},{default:$(()=>[S(m,{label:"操作",width:"50",fixed:"left"},{default:$(({row:x})=>[E("div",Kp,[S(u,{onClick:P=>Z(t).deleteField(x.id),type:"danger",size:"small",circle:""},{default:$(()=>[S(c,null,{default:$(()=>[S(g)]),_:1})]),_:2},1032,["onClick"])])]),_:1}),Z(t).columnVisibility.key?(I(),oe(m,{key:0,label:"Key","min-width":"100"},{default:$(({row:x})=>[S(Q,{modelValue:x.key,"onUpdate:modelValue":P=>x.key=P,size:"small",onChange:r},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):Ge("",!0),Z(t).columnVisibility.name?(I(),oe(m,{key:1,label:"字段名","min-width":"100"},{default:$(({row:x})=>[S(Q,{modelValue:x.name,"onUpdate:modelValue":P=>x.name=P,size:"small",onChange:r},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):Ge("",!0),Z(t).columnVisibility.keyAddr?(I(),oe(m,{key:2,label:"内存地址","min-width":"100"},{default:$(({row:x})=>[S(Q,{modelValue:x.keyAddr,"onUpdate:modelValue":P=>x.keyAddr=P,size:"small",onChange:r},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):Ge("",!0),Z(t).columnVisibility.keySize?(I(),oe(m,{key:3,label:"内存大小","min-width":"100"},{default:$(({row:x})=>[S(Q,{modelValue:x.keySize,"onUpdate:modelValue":P=>x.keySize=P,size:"small",onChange:r},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):Ge("",!0),Z(t).columnVisibility.dataType?(I(),oe(m,{key:4,label:"数据类型","min-width":"80"},{default:$(({row:x})=>[S(y,{modelValue:x.dataType,"onUpdate:modelValue":P=>x.dataType=P,size:"small",onChange:r},{default:$(()=>[S(T,{label:"数字",value:"number"}),S(T,{label:"字符串",value:"string"}),S(T,{label:"布尔值",value:"boolean"}),S(T,{label:"对象",value:"object"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1})):Ge("",!0),Z(t).columnVisibility.description?(I(),oe(m,{key:5,label:"描述","min-width":"150"},{default:$(({row:x})=>[S(Q,{modelValue:x.description,"onUpdate:modelValue":P=>x.description=P,size:"small",onChange:r},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):Ge("",!0),Z(t).columnVisibility.value?(I(),oe(m,{key:6,label:"当前值","min-width":"100"},{default:$(({row:x})=>[E("span",null,Ze(x.value),1)]),_:1})):Ge("",!0),Z(t).columnVisibility.avg?(I(),oe(m,{key:7,label:"平均值","min-width":"100"},{default:$(({row:x})=>[E("span",null,Ze(x.avg??"-"),1)]),_:1})):Ge("",!0),Z(t).columnVisibility.min?(I(),oe(m,{key:8,label:"最小值","min-width":"100"},{default:$(({row:x})=>[E("span",null,Ze(x.min??"-"),1)]),_:1})):Ge("",!0),Z(t).columnVisibility.max?(I(),oe(m,{key:9,label:"最大值","min-width":"100"},{default:$(({row:x})=>[E("span",null,Ze(x.max??"-"),1)]),_:1})):Ge("",!0),Z(t).columnVisibility.lastUpdate?(I(),oe(m,{key:10,label:"最后更新","min-width":"120"},{default:$(({row:x})=>[S(v,{content:new Date(x.lastUpdate).toLocaleString(),placement:"top",effect:"dark"},{default:$(()=>[E("span",null,Ze(new Date(x.lastUpdate).toLocaleTimeString()+"."+String(new Date(x.lastUpdate).getMilliseconds()).padStart(3,"0")),1)]),_:2},1032,["content"])]),_:1})):Ge("",!0),Z(t).columnVisibility.updateCount?(I(),oe(m,{key:11,label:"更新次数",width:"100"},{default:$(({row:x})=>[E("span",null,Ze(x.updateCount),1)]),_:1})):Ge("",!0)]),_:1},8,["data"])])}}}),kh=ht(Jp,[["__scopeId","data-v-4561ae04"]]),eO=rt.getInstance(),tO=ih("quickSend",()=>{const s=Ri.getInstance(),e=F([]),t=F(0),i=dn(()=>e.value.find(y=>y.id===t.value)||e.value[0]),n=F({}),r=F(1e3),o=y=>/^[0-9A-Fa-f\s]*$/.test(y),a=y=>{if(!y.content){se.warning("发送内容不能为空");return}if(y.type==="hex"&&!o(y.content)){se.error("HEX格式数据不合法");return}const v=s.stringToUint8Array(y.content+y.addCRLFType,y.type==="hex");eO.emit(le.SERIAL_SEND,v)},l=y=>{const v=n.value[y.id];v?(clearInterval(v),delete n.value[y.id]):n.value[y.id]=window.setInterval(()=>a(y),r.value)},h=()=>{i.value.items.push({id:Date.now(),name:"新建项目",content:"",type:"text",addCRLFType:"\\n"})},c=y=>{const v=i.value.items.findIndex(w=>w.id===y);v>-1&&i.value.items.splice(v,1)},u=y=>{y&&e.value.push({id:Date.now(),name:y,items:[]})},f=()=>{if(e.value.length<=1){se.warning("至少保留一个分组");return}const y=e.value.findIndex(v=>v.id===i.value.id);y>-1&&(e.value.splice(y,1),e.value.length==0&&u("默认分组"),p(e.value[0]))},d=y=>{y&&(i.value.name=y)},p=y=>{t.value=y.id},O=y=>{console.log("切换分组",y,e),t.value=y},g=y=>{try{if(!Array.isArray(y)||!y.every(v=>typeof v=="object"&&typeof v.id=="number"&&typeof v.name=="string"&&Array.isArray(v.items)))throw new Error("配置文件格式错误");e.value=y,p(e.value[0]),se.success("导入成功")}catch(v){se.error(`导入失败:${v instanceof Error?v.message:"无效的配置文件"}`)}},m=()=>JSON.stringify(e.value,null,2),Q=()=>{localStorage.setItem("config.quickSendGroups",JSON.stringify(e.value))},T=()=>{const y=localStorage.getItem("config.quickSendGroups");if(y)try{e.value=JSON.parse(y)}catch{se.error("加载配置失败")}e.value.length==0&&(e.value=[{id:1,name:"默认分组",items:[{id:1,name:"查询版本",content:"AT+VERSION?",type:"text",addCRLFType:` -`},{id:2,name:"重启设备",content:"AT+RESET",type:"text",addCRLFType:` -`},{id:3,name:"查询状态",content:"AT+STATUS?",type:"text",addCRLFType:` -`},{id:4,name:"16进制测试",content:"AA BB CC 11 22",type:"hex",addCRLFType:""}]}]),p(e.value[0])};return _i([e,i],()=>{Q()},{deep:!0}),T(),{groups:e,currentGroupId:t,currentGroup:i,autoSendIntervals:n,autoSendInterval:r,sendData:a,toggleAutoSend:l,addItem:h,removeItem:c,addGroup:u,removeGroup:f,renameGroup:d,handleGroupChange:O,importConfig:g,exportConfig:m}}),iO={class:"quick-send"},nO={class:"group-select"},sO={class:"quick-send-actions"},rO={class:"action-group"},oO={class:"quick-send-list"},aO={class:"item-row"},lO={class:"item-settings"},hO={class:"setting-row"},cO={class:"setting-row"},uO={class:"setting-row"},fO={class:"setting-row"},dO=lt({__name:"SerialQuickSend",setup(s){const e=tO(),t=F(null),i=a=>{const l=a.target;if(l.files&&l.files[0]){const h=new FileReader;h.onload=c=>{var u;try{const f=JSON.parse((u=c.target)==null?void 0:u.result);e.importConfig(f)}catch{}},h.readAsText(l.files[0])}},n=()=>{const a=e.exportConfig(),l=new Blob([a],{type:"application/json"}),h=URL.createObjectURL(l),c=document.createElement("a");c.href=h,c.download="quick-send-config.json",c.click(),URL.revokeObjectURL(h)},r=()=>{const a=prompt("请输入分组名称");a&&e.addGroup(a)},o=()=>{const a=prompt("请输入新的分组名称",e.currentGroup.name);a&&e.renameGroup(a)};return(a,l)=>{const h=C("el-option"),c=C("el-select"),u=C("el-button"),f=C("el-button-group"),d=C("Plus"),p=C("el-icon"),O=C("FolderAdd"),g=C("FolderOpened"),m=C("el-input"),Q=C("Setting"),T=C("el-radio-button"),y=C("el-radio-group"),v=C("el-input-number"),w=C("el-tooltip"),x=C("el-popover"),P=C("Delete");return I(),H("div",iO,[E("div",nO,[S(c,{size:"small",modelValue:Z(e).currentGroupId,"onUpdate:modelValue":l[0]||(l[0]=k=>Z(e).currentGroupId=k),onChange:Z(e).handleGroupChange},{default:$(()=>[(I(!0),H(Ae,null,Re(Z(e).groups,k=>(I(),oe(h,{key:k.id,label:k.name,value:k.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),S(f,{style:{width:"240px"}},{default:$(()=>[S(u,{size:"small",onClick:r,class:"compact-btn"},{default:$(()=>l[3]||(l[3]=[W("新增")])),_:1}),S(u,{size:"small",onClick:o,class:"compact-btn"},{default:$(()=>l[4]||(l[4]=[W("改名")])),_:1}),S(u,{size:"small",onClick:Z(e).removeGroup,class:"compact-btn"},{default:$(()=>l[5]||(l[5]=[W("删除")])),_:1},8,["onClick"])]),_:1})]),E("div",sO,[E("div",rO,[S(u,{size:"small",onClick:Z(e).addItem,class:"add-item-btn"},{default:$(()=>[S(p,null,{default:$(()=>[S(d)]),_:1}),l[6]||(l[6]=W(" 增加一条 "))]),_:1},8,["onClick"]),E("input",{type:"file",ref_key:"importInput",ref:t,style:{display:"none"},accept:"application/json",onChange:i},null,544),S(f,null,{default:$(()=>[S(u,{size:"small",onClick:l[1]||(l[1]=k=>a.$refs.importInput.click()),class:"compact-btn"},{default:$(()=>[S(p,null,{default:$(()=>[S(O)]),_:1})]),_:1}),S(u,{size:"small",onClick:n,class:"compact-btn"},{default:$(()=>[S(p,null,{default:$(()=>[S(g)]),_:1})]),_:1})]),_:1})])]),E("div",oO,[(I(!0),H(Ae,null,Re(Z(e).currentGroup.items,k=>(I(),H("div",{key:k.id,class:"mb-2 quick-send-item"},[E("div",aO,[S(u,{size:"small",type:"primary",onClick:L=>Z(e).sendData(k)},{default:$(()=>[W(Ze(k.name),1)]),_:2},1032,["onClick"]),S(m,{modelValue:k.content,"onUpdate:modelValue":L=>k.content=L,size:"small",placeholder:"请输入发送内容",class:"flex-grow"},null,8,["modelValue","onUpdate:modelValue"]),S(f,null,{default:$(()=>[S(x,{placement:"bottom",width:300,trigger:"click"},{reference:$(()=>[S(u,{size:"small"},{default:$(()=>[S(p,null,{default:$(()=>[S(Q)]),_:1})]),_:1})]),default:$(()=>[E("div",lO,[E("div",hO,[l[7]||(l[7]=E("span",null,"指令名称:",-1)),S(m,{modelValue:k.name,"onUpdate:modelValue":L=>k.name=L,placeholder:"名称",size:"small",style:{width:"120px"}},null,8,["modelValue","onUpdate:modelValue"])]),E("div",cO,[l[10]||(l[10]=E("span",null,"数据类型:",-1)),S(y,{modelValue:k.type,"onUpdate:modelValue":L=>k.type=L,size:"small"},{default:$(()=>[S(T,{value:"text"},{default:$(()=>l[8]||(l[8]=[W("文本")])),_:1}),S(T,{value:"hex"},{default:$(()=>l[9]||(l[9]=[W("HEX")])),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),E("div",uO,[l[11]||(l[11]=E("span",null,"添加换行:",-1)),S(c,{modelValue:k.addCRLFType,"onUpdate:modelValue":L=>k.addCRLFType=L,size:"small",style:{width:"80px"}},{default:$(()=>[S(h,{value:"",label:"无"}),S(h,{value:`\r -`,label:"CRLF(\\r\\n)"}),S(h,{value:"\r",label:"CR(\\r)"}),S(h,{value:` -`,label:"LF(\\n)"}),S(h,{value:` - -`,label:"LF2(\\n\\n)"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),E("div",fO,[l[12]||(l[12]=E("span",null,"定时发送:",-1)),S(w,{class:"box-item",effect:"dark",content:"间隔(ms)",placement:"bottom"},{default:$(()=>[S(v,{modelValue:Z(e).autoSendInterval,"onUpdate:modelValue":l[2]||(l[2]=L=>Z(e).autoSendInterval=L),min:100,max:1e4,size:"small",style:{width:"120px"},class:"me-2"},null,8,["modelValue"])]),_:1}),S(u,{size:"small",type:Z(e).autoSendIntervals[k.id]?"success":"default",onClick:L=>Z(e).toggleAutoSend(k)},{default:$(()=>[W(Ze(Z(e).autoSendIntervals[k.id]?"停止":"开始"),1)]),_:2},1032,["type","onClick"])])])]),_:2},1024),S(u,{size:"small",type:"danger",onClick:L=>Z(e).removeItem(k.id)},{default:$(()=>[S(p,null,{default:$(()=>[S(P)]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)])]))),128))])])}}}),pO=ht(dO,[["__scopeId","data-v-a0ddafa7"]]);let Zr=[],vh=[];(()=>{let s="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e>1;if(s=vh[i])e=i+1;else return!0;if(e==t)return!1}}function wa(s){return s>=127462&&s<=127487}const Qa=8205;function mO(s,e,t=!0,i=!0){return(t?Ph:gO)(s,e,i)}function Ph(s,e,t){if(e==s.length)return e;e&&$h(s.charCodeAt(e))&&Th(s.charCodeAt(e-1))&&e--;let i=Fs(s,e);for(e+=ka(i);e=0&&wa(Fs(s,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function gO(s,e,t){for(;e>0;){let i=Ph(s,e-2,t);if(i=56320&&s<57344}function Th(s){return s>=55296&&s<56320}function ka(s){return s<65536?1:2}class q{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Zi(this,e,t);let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),Ot.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Zi(this,e,t);let i=[];return this.decompose(e,t,i,0),Ot.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new hn(this),r=new hn(e);for(let o=t,a=t;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(a+=n.value.length,n.done||a>=i)return!0}}iter(e=1){return new hn(this,e)}iterRange(e,t=this.length){return new _h(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ah(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?q.empty:e.length<=32?new fe(e):Ot.from(fe.split(e,[]))}}class fe extends q{constructor(e,t=yO(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.text[r],a=n+o.length;if((t?i:a)>=e)return new bO(n,a,i,o);n=a+1,i++}}decompose(e,t,i,n){let r=e<=0&&t>=this.length?this:new fe(va(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let o=i.pop(),a=Hn(r.text,o.text.slice(),0,r.length);if(a.length<=32)i.push(new fe(a,o.length+r.length));else{let l=a.length>>1;i.push(new fe(a.slice(0,l)),new fe(a.slice(l)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof fe))return super.replace(e,t,i);[e,t]=Zi(this,e,t);let n=Hn(this.text,Hn(i.text,va(this.text,0,e)),t),r=this.length+i.length-(t-e);return n.length<=32?new fe(n,r):Ot.from(fe.split(n,[]),r)}sliceString(e,t=this.length,i=` -`){[e,t]=Zi(this,e,t);let n="";for(let r=0,o=0;r<=t&&oe&&o&&(n+=i),er&&(n+=a.slice(Math.max(0,e-r),t-r)),r=l+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],n=-1;for(let r of e)i.push(r),n+=r.length+1,i.length==32&&(t.push(new fe(i,n)),i=[],n=-1);return n>-1&&t.push(new fe(i,n)),t}}class Ot extends q{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.children[r],a=n+o.length,l=i+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,i,n);n=a+1,i=l+1}}decompose(e,t,i,n){for(let r=0,o=0;o<=t&&r=o){let h=n&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!h?i.push(a):a.decompose(e-o,t-o,i,h)}o=l+1}}replace(e,t,i){if([e,t]=Zi(this,e,t),i.lines=r&&t<=a){let l=o.replace(e-r,t-r,i),h=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>h>>6){let c=this.children.slice();return c[n]=l,new Ot(c,this.length-(t-e)+i.length)}return super.replace(r,a,l)}r=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=` -`){[e,t]=Zi(this,e,t);let n="";for(let r=0,o=0;re&&r&&(n+=i),eo&&(n+=a.sliceString(e-o,t-o,i)),o=l+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Ot))return 0;let i=0,[n,r,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,r+=t){if(n==o||r==a)return i;let l=this.children[n],h=e.children[r];if(l!=h)return i+l.scanIdentical(h,t);i+=l.length+1}}static from(e,t=e.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new fe(d,t)}let n=Math.max(32,i>>5),r=n<<1,o=n>>1,a=[],l=0,h=-1,c=[];function u(d){let p;if(d.lines>r&&d instanceof Ot)for(let O of d.children)u(O);else d.lines>o&&(l>o||!l)?(f(),a.push(d)):d instanceof fe&&l&&(p=c[c.length-1])instanceof fe&&d.lines+p.lines<=32?(l+=d.lines,h+=d.length+1,c[c.length-1]=new fe(p.text.concat(d.text),p.length+1+d.length)):(l+d.lines>n&&f(),l+=d.lines,h+=d.length+1,c.push(d))}function f(){l!=0&&(a.push(c.length==1?c[0]:Ot.from(c,h)),h=-1,l=c.length=0)}for(let d of e)u(d);return f(),a.length==1?a[0]:new Ot(a,t)}}q.empty=new fe([""],0);function yO(s){let e=-1;for(let t of s)e+=t.length+1;return e}function Hn(s,e,t=0,i=1e9){for(let n=0,r=0,o=!0;r=t&&(l>i&&(a=a.slice(0,i-n)),n0?1:(e instanceof fe?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],o=r>>1,a=n instanceof fe?n.text.length:n.children.length;if(o==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` -`,this;e--}else if(n instanceof fe){let l=n.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,l.length>Math.max(0,e))return this.value=e==0?l:t>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=n.children[o+(t<0?-1:0)];e>l.length?(e-=l.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(l),this.offsets.push(t>0?1:(l instanceof fe?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class _h{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new hn(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=i?n:t<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ah{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(q.prototype[Symbol.iterator]=function(){return this.iter()},hn.prototype[Symbol.iterator]=_h.prototype[Symbol.iterator]=Ah.prototype[Symbol.iterator]=function(){return this});class bO{constructor(e,t,i,n){this.from=e,this.to=t,this.number=i,this.text=n}get length(){return this.to-this.from}}function Zi(s,e,t){return e=Math.max(0,Math.min(s.length,e)),[e,Math.max(e,Math.min(s.length,t))]}function Me(s,e,t=!0,i=!0){return mO(s,e,t,i)}function SO(s){return s>=56320&&s<57344}function xO(s){return s>=55296&&s<56320}function wO(s,e){let t=s.charCodeAt(e);if(!xO(t)||e+1==s.length)return t;let i=s.charCodeAt(e+1);return SO(i)?(t-55296<<10)+(i-56320)+65536:t}function QO(s){return s<65536?1:2}const Cr=/\r\n?|\n/;var Ce=function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s}(Ce||(Ce={}));class _t{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-n);r+=a}else{if(i!=Ce.Simple&&h>=e&&(i==Ce.TrackDel&&ne||i==Ce.TrackBefore&&ne))return null;if(h>e||h==e&&t<0&&!a)return e==n||t<0?r:r+l;r+=l}n=h}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return r}touchesRange(e,t=e){for(let i=0,n=0;i=0&&n<=t&&a>=e)return nt?"cover":!0;n=a}return!1}toString(){let e="";for(let t=0;t=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new _t(e)}static create(e){return new _t(e)}}class we extends _t{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Mr(this,(t,i,n,r,o)=>e=e.replace(n,n+(i-t),o),!1),e}mapDesc(e,t=!1){return Er(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let n=0,r=0;n=0){t[n]=a,t[n+1]=o;let l=n>>1;for(;i.length0&&jt(i,t,r.text),r.forward(c),a+=c}let h=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,i){let n=[],r=[],o=0,a=null;function l(c=!1){if(!c&&!n.length)return;of||u<0||f>t)throw new RangeError(`Invalid change range ${u} to ${f} (in doc of length ${t})`);let p=d?typeof d=="string"?q.of(d.split(i||Cr)):d:q.empty,O=p.length;if(u==f&&O==0)return;uo&&$e(n,u-o,-1),$e(n,f-u,O),jt(r,n,p),o=f}}return h(e),l(!a),a}static empty(e){return new we(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let n=0;na&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length=0&&t<=0&&t==s[n+1]?s[n]+=e:n>=0&&e==0&&s[n]==0?s[n+1]+=t:i?(s[n]+=e,s[n+1]+=t):s.push(e,t)}function jt(s,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==s.sections.length||s.sections[o+1]<0);)a=s.sections[o++],l=s.sections[o++];e(n,h,r,c,u),n=h,r=c}}}function Er(s,e,t,i=!1){let n=[],r=i?[]:null,o=new pn(s),a=new pn(e);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let h=Math.min(o.len,a.len);$e(n,h,-1),o.forward(h),a.forward(h)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len=0&&l=0){let h=0,c=o.len;for(;c;)if(a.ins==-1){let u=Math.min(c,a.len);h+=u,c-=u,a.forward(u)}else if(a.ins==0&&a.lenl||o.ins>=0&&o.len>l)&&(a||i.length>h),r.forward2(l),o.forward(l)}}}}class pn{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?q.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?q.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ri{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new ri(i,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return A.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return A.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return A.range(e.anchor,e.head)}static create(e,t,i){return new ri(e,t,i)}}class A{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:A.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new A(e.ranges.map(t=>ri.fromJSON(t)),e.main)}static single(e,t=e){return new A([A.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;ne?8:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((n,r)=>n.from-r.from),t=e.indexOf(i);for(let n=1;nr.head?A.range(l,a):A.range(a,l))}}return new A(e,t)}}function Zh(s,e){for(let t of s.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let $o=0;class j{constructor(e,t,i,n,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=n,this.id=$o++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new j(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:To),!!e.static,e.enables)}of(e){return new Kn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Kn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Kn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function To(s,e){return s==e||s.length==e.length&&s.every((t,i)=>t===e[i])}class Kn{constructor(e,t,i,n){this.dependencies=e,this.facet=t,this.type=i,this.value=n,this.id=$o++}dynamicSlot(e){var t;let i=this.value,n=this.facet.compareInput,r=this.id,o=e[r]>>1,a=this.type==2,l=!1,h=!1,c=[];for(let u of this.dependencies)u=="doc"?l=!0:u=="selection"?h=!0:((t=e[u.id])!==null&&t!==void 0?t:1)&1||c.push(e[u.id]);return{create(u){return u.values[o]=i(u),1},update(u,f){if(l&&f.docChanged||h&&(f.docChanged||f.selection)||Lr(u,c)){let d=i(u);if(a?!Pa(d,u.values[o],n):!n(d,u.values[o]))return u.values[o]=d,1}return 0},reconfigure:(u,f)=>{let d,p=f.config.address[r];if(p!=null){let O=fs(f,p);if(this.dependencies.every(g=>g instanceof j?f.facet(g)===u.facet(g):g instanceof Wt?f.field(g,!1)==u.field(g,!1):!0)||(a?Pa(d=i(u),O,n):n(d=i(u),O)))return u.values[o]=O,0}else d=i(u);return u.values[o]=d,1}}}}function Pa(s,e,t){if(s.length!=e.length)return!1;for(let i=0;is[l.id]),n=t.map(l=>l.type),r=i.filter(l=>!(l&1)),o=s[e.id]>>1;function a(l){let h=[];for(let c=0;ci===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Cn).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,n)=>{let r=i.values[t],o=this.updateF(r,n);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,n)=>{let r=i.facet(Cn),o=n.facet(Cn),a;return(a=r.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(i.values[t]=a.create(i),1):n.config.address[this.id]!=null?(i.values[t]=n.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,Cn.of({field:this,create:e})]}get extension(){return this}}const Jt={lowest:4,low:3,default:2,high:1,highest:0};function zi(s){return e=>new Ch(e,s)}const As={highest:zi(Jt.highest),high:zi(Jt.high),default:zi(Jt.default),low:zi(Jt.low),lowest:zi(Jt.lowest)};class Ch{constructor(e,t){this.inner=e,this.prec=t}}class Rs{of(e){return new Dr(this,e)}reconfigure(e){return Rs.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Dr{constructor(e,t){this.compartment=e,this.inner=t}}class us{constructor(e,t,i,n,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let n=[],r=Object.create(null),o=new Map;for(let f of vO(e,t,o))f instanceof Wt?n.push(f):(r[f.facet.id]||(r[f.facet.id]=[])).push(f);let a=Object.create(null),l=[],h=[];for(let f of n)a[f.id]=h.length<<1,h.push(d=>f.slot(d));let c=i==null?void 0:i.config.facets;for(let f in r){let d=r[f],p=d[0].facet,O=c&&c[f]||[];if(d.every(g=>g.type==0))if(a[p.id]=l.length<<1|1,To(O,d))l.push(i.facet(p));else{let g=p.combine(d.map(m=>m.value));l.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(a[g.id]=l.length<<1|1,l.push(g.value)):(a[g.id]=h.length<<1,h.push(m=>g.dynamicSlot(m)));a[p.id]=h.length<<1,h.push(g=>kO(g,p,d))}}let u=h.map(f=>f(a));return new us(e,o,u,a,l,r)}}function vO(s,e,t){let i=[[],[],[],[],[]],n=new Map;function r(o,a){let l=n.get(o);if(l!=null){if(l<=a)return;let h=i[l].indexOf(o);h>-1&&i[l].splice(h,1),o instanceof Dr&&t.delete(o.compartment)}if(n.set(o,a),Array.isArray(o))for(let h of o)r(h,a);else if(o instanceof Dr){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,a)}else if(o instanceof Ch)r(o.inner,o.prec);else if(o instanceof Wt)i[a].push(o),o.provides&&r(o.provides,a);else if(o instanceof Kn)i[a].push(o),o.facet.extensions&&r(o.facet.extensions,Jt.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,a)}}return r(s,Jt.default),i.reduce((o,a)=>o.concat(a))}function cn(s,e){if(e&1)return 2;let t=e>>1,i=s.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;s.status[t]=4;let n=s.computeSlot(s,s.config.dynamicSlots[t]);return s.status[t]=2|n}function fs(s,e){return e&1?s.config.staticValues[e>>1]:s.values[e>>1]}const Mh=j.define(),Xr=j.define({combine:s=>s.some(e=>e),static:!0}),Eh=j.define({combine:s=>s.length?s[0]:void 0,static:!0}),Lh=j.define(),Dh=j.define(),Xh=j.define(),Ih=j.define({combine:s=>s.length?s[0]:!1});class Oi{constructor(e,t){this.type=e,this.value=t}static define(){return new PO}}class PO{of(e){return new Oi(this,e)}}class $O{constructor(e){this.map=e}of(e){return new he(this,e)}}class he{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new he(this.type,t)}is(e){return this.type==e}static define(e={}){return new $O(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let n of e){let r=n.map(t);r&&i.push(r)}return i}}he.reconfigure=he.define();he.appendConfig=he.define();class ve{constructor(e,t,i,n,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Zh(i,t.newLength),r.some(a=>a.type==ve.time)||(this.annotations=r.concat(ve.time.of(Date.now())))}static create(e,t,i,n,r,o){return new ve(e,t,i,n,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ve.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}ve.time=Oi.define();ve.userEvent=Oi.define();ve.addToHistory=Oi.define();ve.remote=Oi.define();function TO(s,e){let t=[];for(let i=0,n=0;;){let r,o;if(i=s[i]))r=s[i++],o=s[i++];else if(n=0;n--){let r=i[n](s);r instanceof ve?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof ve?s=r[0]:s=Vh(e,vi(r),!1)}return s}function AO(s){let e=s.startState,t=e.facet(Xh),i=s;for(let n=t.length-1;n>=0;n--){let r=t[n](s);r&&Object.keys(r).length&&(i=jh(i,Ir(e,r,s.changes.newLength),!0))}return i==s?s:ve.create(e,s.changes,s.selection,i.effects,i.annotations,i.scrollIntoView)}const RO=[];function vi(s){return s==null?RO:Array.isArray(s)?s:[s]}var Tt=function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s}(Tt||(Tt={}));const ZO=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let jr;try{jr=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function CO(s){if(jr)return jr.test(s);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||ZO.test(t)))return!0}return!1}function MO(s){return e=>{if(!/\S/.test(e))return Tt.Space;if(CO(e))return Tt.Word;for(let t=0;t-1)return Tt.Word;return Tt.Other}}class Y{constructor(e,t,i,n,r,o){this.config=e,this.doc=t,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let a=0;an.set(h,l)),t=null),n.set(a.value.compartment,a.value.extension)):a.is(he.reconfigure)?(t=null,i=a.value):a.is(he.appendConfig)&&(t=null,i=vi(i).concat(a.value));let r;t?r=e.startState.values.slice():(t=us.resolve(i,n,this),r=new Y(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,h)=>h.reconfigure(l,this),null).values);let o=e.startState.facet(Xr)?e.newSelection:e.newSelection.asSingle();new Y(t,e.newDoc,o,r,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:A.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),n=this.changes(i.changes),r=[i.range],o=vi(i.effects);for(let a=1;ao.spec.fromJSON(a,l)))}}return Y.create({doc:e.doc,selection:A.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=us.resolve(e.extensions||[],new Map),i=e.doc instanceof q?e.doc:q.of((e.doc||"").split(t.staticFacet(Y.lineSeparator)||Cr)),n=e.selection?e.selection instanceof A?e.selection:A.single(e.selection.anchor,e.selection.head):A.single(0);return Zh(n,i.length),t.staticFacet(Xr)||(n=n.asSingle()),new Y(t,i,n,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(Y.tabSize)}get lineBreak(){return this.facet(Y.lineSeparator)||` -`}get readOnly(){return this.facet(Ih)}phrase(e,...t){for(let i of this.facet(Y.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,n)=>{if(n=="$")return"$";let r=+(n||1);return!r||r>t.length?i:t[r-1]})),e}languageDataAt(e,t,i=-1){let n=[];for(let r of this.facet(Mh))for(let o of r(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&n.push(o[e]);return n}charCategorizer(e){return MO(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:n}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-i,a=e-i;for(;o>0;){let l=Me(t,o,!1);if(r(t.slice(l,o))!=Tt.Word)break;o=l}for(;as.length?s[0]:4});Y.lineSeparator=Eh;Y.readOnly=Ih;Y.phrases=j.define({compare(s,e){let t=Object.keys(s),i=Object.keys(e);return t.length==i.length&&t.every(n=>s[n]==e[n])}});Y.languageData=Mh;Y.changeFilter=Lh;Y.transactionFilter=Dh;Y.transactionExtender=Xh;Rs.reconfigure=he.define();function EO(s,e,t={}){let i={};for(let n of s)for(let r of Object.keys(n)){let o=n[r],a=i[r];if(a===void 0)i[r]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(t,r))i[r]=t[r](a,o);else throw new Error("Config merge conflict for field "+r)}for(let n in e)i[n]===void 0&&(i[n]=e[n]);return i}class ci{eq(e){return this==e}range(e,t=e){return Vr.create(e,t,this)}}ci.prototype.startSide=ci.prototype.endSide=0;ci.prototype.point=!1;ci.prototype.mapMode=Ce.TrackDel;let Vr=class Bh{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Bh(e,t,i)}};function Br(s,e){return s.from-e.from||s.value.startSide-e.value.startSide}class _o{constructor(e,t,i,n){this.from=e,this.to=t,this.value=i,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,n=0){let r=i?this.to:this.from;for(let o=n,a=r.length;;){if(o==a)return o;let l=o+a>>1,h=r[l]-e||(i?this.value[l].endSide:this.value[l].startSide)-t;if(l==o)return h>=0?o:a;h>=0?a=l:o=l+1}}between(e,t,i,n){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,r);rd||f==d&&h.startSide>0&&h.endSide<=0)continue;(d-f||h.endSide-h.startSide)<0||(o<0&&(o=f),h.point&&(a=Math.max(a,d-f)),i.push(h),n.push(f-o),r.push(d-o))}return{mapped:i.length?new _o(n,r,i,a):null,pos:o}}}class K{constructor(e,t,i,n){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=n}static create(e,t,i,n){return new K(e,t,i,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:n=0,filterTo:r=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(Br)),this.isEmpty)return t.length?K.of(t):this;let a=new Nh(this,null,-1).goto(0),l=0,h=[],c=new On;for(;a.value||l=0){let u=t[l++];c.addInner(u.from,u.to,u.value)||h.push(u)}else a.rangeIndex==1&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ra.to||r=r&&e<=r+o.length&&o.between(r,e-r,t-r,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return mn.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return mn.from(e).goto(t)}static compare(e,t,i,n,r=-1){let o=e.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=r),a=t.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=r),l=$a(o,a,i),h=new Ui(o,l,r),c=new Ui(a,l,r);i.iterGaps((u,f,d)=>Ta(h,u,c,f,d,n)),i.empty&&i.length==0&&Ta(h,0,c,0,0,n)}static eq(e,t,i=0,n){n==null&&(n=999999999);let r=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),o=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let a=$a(r,o),l=new Ui(r,a,0).goto(i),h=new Ui(o,a,0).goto(i);for(;;){if(l.to!=h.to||!Nr(l.active,h.active)||l.point&&(!h.point||!l.point.eq(h.point)))return!1;if(l.to>n)return!0;l.next(),h.next()}}static spans(e,t,i,n,r=-1){let o=new Ui(e,null,r).goto(t),a=t,l=o.openStart;for(;;){let h=Math.min(o.to,i);if(o.point){let c=o.activeForPoint(o.to),u=o.pointFroma&&(n.span(a,h,o.active,l),l=o.openEnd(h));if(o.to>i)return l+(o.point&&o.to>i?1:0);a=o.to,o.next()}}static of(e,t=!1){let i=new On;for(let n of e instanceof Vr?[e]:t?LO(e):e)i.add(n.from,n.to,n.value);return i.finish()}static join(e){if(!e.length)return K.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let n=e[i];n!=K.empty;n=n.nextLayer)t=new K(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}}K.empty=new K([],[],null,-1);function LO(s){if(s.length>1)for(let e=s[0],t=1;t0)return s.slice().sort(Br);e=i}return s}K.empty.nextLayer=K.empty;class On{finishChunk(e){this.chunks.push(new _o(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new On)).add(e,t,i)}addInner(e,t,i){let n=e-this.lastTo||i.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return n<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(K.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=K.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function $a(s,e,t){let i=new Map;for(let r of s)for(let o=0;o=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&n.push(new Nh(o,t,i,r));return n.length==1?n[0]:new mn(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)Hs(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)Hs(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Hs(this.heap,0)}}}function Hs(s,e){for(let t=s[e];;){let i=(e<<1)+1;if(i>=s.length)break;let n=s[i];if(i+1=0&&(n=s[i+1],i++),t.compare(n)<0)break;s[i]=t,s[e]=n,e=i}}class Ui{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=mn.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Mn(this.active,e),Mn(this.activeTo,e),Mn(this.activeRank,e),this.minActive=_a(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:n,rank:r}=this.cursor;for(;t0;)t++;En(this.active,t,i),En(this.activeTo,t,n),En(this.activeRank,t,r),e&&En(e,t,this.cursor.from),this.minActive=_a(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),i&&Mn(i,n)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&i[n]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function Ta(s,e,t,i,n,r){s.goto(e),t.goto(i);let o=i+n,a=i,l=i-e;for(;;){let h=s.to+l-t.to,c=h||s.endSide-t.endSide,u=c<0?s.to+l:t.to,f=Math.min(u,o);if(s.point||t.point?s.point&&t.point&&(s.point==t.point||s.point.eq(t.point))&&Nr(s.activeForPoint(s.to),t.activeForPoint(t.to))||r.comparePoint(a,f,s.point,t.point):f>a&&!Nr(s.active,t.active)&&r.compareRange(a,f,s.active,t.active),u>o)break;(h||s.openEnd!=t.openEnd)&&r.boundChange&&r.boundChange(u),a=u,c<=0&&s.next(),c>=0&&t.next()}}function Nr(s,e){if(s.length!=e.length)return!1;for(let t=0;t=e;i--)s[i+1]=s[i];s[e]=t}function _a(s,e){let t=-1,i=1e9;for(let n=0;n=e)return n;if(n==s.length)break;r+=s.charCodeAt(n)==9?t-r%t:1,n=Me(s,n)}return s.length}const zr="ͼ",Aa=typeof Symbol>"u"?"__"+zr:Symbol.for(zr),Ur=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Bt{constructor(e,t){this.rules=[];let{finish:i}=t||{};function n(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,a,l,h){let c=[],u=/^@(\w+)\b/.exec(o[0]),f=u&&u[1]=="keyframes";if(u&&a==null)return l.push(o[0]+";");for(let d in a){let p=a[d];if(/&/.test(d))r(d.split(/,\s*/).map(O=>o.map(g=>O.replace(/&/,g))).reduce((O,g)=>O.concat(g)),p,l);else if(p&&typeof p=="object"){if(!u)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(n(d),p,c,f)}else p!=null&&c.push(d.replace(/_.*/,"").replace(/[A-Z]/g,O=>"-"+O.toLowerCase())+": "+p+";")}(c.length||f)&&l.push((i&&!u&&!h?o.map(i):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)r(n(o),e[o],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let e=Ra[Aa]||1;return Ra[Aa]=e+1,zr+e.toString(36)}static mount(e,t,i){let n=e[Ur],r=i&&i.nonce;n?r&&n.setNonce(r):n=new XO(e,r),n.mount(Array.isArray(t)?t:[t],e)}}let Za=new Map;class XO{constructor(e,t){let i=e.ownerDocument||e,n=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let r=Za.get(i);if(r)return e[Ur]=r;this.sheet=new n.CSSStyleSheet,Za.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Ur]=this}mount(e,t){let i=this.sheet,n=0,r=0;for(let o=0;o-1&&(this.modules.splice(l,1),r--,l=-1),l==-1){if(this.modules.splice(r++,0,a),i)for(let h=0;h",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},IO=typeof navigator<"u"&&/Mac/.test(navigator.platform),jO=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var ke=0;ke<10;ke++)Nt[48+ke]=Nt[96+ke]=String(ke);for(var ke=1;ke<=24;ke++)Nt[ke+111]="F"+ke;for(var ke=65;ke<=90;ke++)Nt[ke]=String.fromCharCode(ke+32),gn[ke]=String.fromCharCode(ke);for(var Ks in Nt)gn.hasOwnProperty(Ks)||(gn[Ks]=Nt[Ks]);function VO(s){var e=IO&&s.metaKey&&s.shiftKey&&!s.ctrlKey&&!s.altKey||jO&&s.shiftKey&&s.key&&s.key.length==1||s.key=="Unidentified",t=!e&&s.key||(s.shiftKey?gn:Nt)[s.keyCode]||s.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function yn(s){let e;return s.nodeType==11?e=s.getSelection?s:s.ownerDocument:e=s,e.getSelection()}function qr(s,e){return e?s==e||s.contains(e.nodeType!=1?e.parentNode:e):!1}function Jn(s,e){if(!e.anchorNode)return!1;try{return qr(s,e.anchorNode)}catch{return!1}}function bn(s){return s.nodeType==3?fi(s,0,s.nodeValue.length).getClientRects():s.nodeType==1?s.getClientRects():[]}function un(s,e,t,i){return t?Ca(s,e,t,i,-1)||Ca(s,e,t,i,1):!1}function ui(s){for(var e=0;;e++)if(s=s.previousSibling,!s)return e}function ds(s){return s.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(s.nodeName)}function Ca(s,e,t,i,n){for(;;){if(s==t&&e==i)return!0;if(e==(n<0?0:bt(s))){if(s.nodeName=="DIV")return!1;let r=s.parentNode;if(!r||r.nodeType!=1)return!1;e=ui(s)+(n<0?0:1),s=r}else if(s.nodeType==1){if(s=s.childNodes[e+(n<0?-1:0)],s.nodeType==1&&s.contentEditable=="false")return!1;e=n<0?bt(s):0}else return!1}}function bt(s){return s.nodeType==3?s.nodeValue.length:s.childNodes.length}function Cs(s,e){let t=e?s.left:s.right;return{left:t,right:t,top:s.top,bottom:s.bottom}}function BO(s){let e=s.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:s.innerWidth,top:0,bottom:s.innerHeight}}function zh(s,e){let t=e.width/s.offsetWidth,i=e.height/s.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-s.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-s.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function NO(s,e,t,i,n,r,o,a){let l=s.ownerDocument,h=l.defaultView||window;for(let c=s,u=!1;c&&!u;)if(c.nodeType==1){let f,d=c==l.body,p=1,O=1;if(d)f=BO(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(u=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let Q=c.getBoundingClientRect();({scaleX:p,scaleY:O}=zh(c,Q)),f={left:Q.left,right:Q.left+c.clientWidth*p,top:Q.top,bottom:Q.top+c.clientHeight*O}}let g=0,m=0;if(n=="nearest")e.top0&&e.bottom>f.bottom+m&&(m=e.bottom-f.bottom+m+o)):e.bottom>f.bottom&&(m=e.bottom-f.bottom+o,t<0&&e.top-m0&&e.right>f.right+g&&(g=e.right-f.right+g+r)):e.right>f.right&&(g=e.right-f.right+r,t<0&&e.leftn.clientHeight&&(i=n),!t&&n.scrollWidth>n.clientWidth&&(t=n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;return{x:t,y:i}}class UO{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?bt(t):0),i,Math.min(e.focusOffset,i?bt(i):0))}set(e,t,i,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=n}}let gi=null;function Uh(s){if(s.setActive)return s.setActive();if(gi)return s.focus(gi);let e=[];for(let t=s;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(s.focus(gi==null?{get preventScroll(){return gi={preventScroll:!0},!0}}:void 0),!gi){gi=!1;for(let t=0;tMath.max(1,s.scrollHeight-s.clientHeight-4)}function Gh(s,e){for(let t=s,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=bt(t)}else if(t.parentNode&&!ds(t))i=ui(t),t=t.parentNode;else return null}}function Yh(s,e){for(let t=s,i=e;;){if(t.nodeType==3&&it)return u.domBoundsAround(e,t,h);if(f>=e&&n==-1&&(n=l,r=h),h>t&&u.dom.parentNode==this.dom){o=l,a=c;break}c=f,h=f+u.breakAfter}return{from:r,to:a<0?i+this.length:a,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=Ao){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function Hh(s,e,t,i,n,r,o,a,l){let{children:h}=s,c=h.length?h[e]:null,u=r.length?r[r.length-1]:null,f=u?u.breakAfter:o;if(!(e==i&&c&&!o&&!f&&r.length<2&&c.merge(t,n,r.length?u:null,t==0,a,l))){if(i0&&(!o&&r.length&&c.merge(t,c.length,r[0],!1,a,0)?c.breakAfter=r.shift().breakAfter:(t2);var M={mac:Xa||/Mac/.test(Xe.platform),windows:/Win/.test(Xe.platform),linux:/Linux|X11/.test(Xe.platform),ie:Ms,ie_version:Jh?Wr.documentMode||6:Yr?+Yr[1]:Gr?+Gr[1]:0,gecko:La,gecko_version:La?+(/Firefox\/(\d+)/.exec(Xe.userAgent)||[0,0])[1]:0,chrome:!!Js,chrome_version:Js?+Js[1]:0,ios:Xa,android:/Android\b/.test(Xe.userAgent),webkit:Da,safari:ec,webkit_version:Da?+(/\bAppleWebKit\/(\d+)/.exec(Xe.userAgent)||[0,0])[1]:0,tabSize:Wr.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const GO=256;class ot extends ie{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,i){return this.flags&8||i&&(!(i instanceof ot)||this.length-(t-e)+i.length>GO||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new ot(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new Te(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return YO(this.dom,e,t)}}class Mt extends ie{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let n of t)n.setParent(this)}setAttrs(e){if(qh(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,i,n,r,o){return i&&(!(i instanceof Mt&&i.mark.eq(this.mark))||e&&r<=0||te&&t.push(i=e&&(n=r),i=l,r++}let o=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new Mt(this.mark,t,o)}domAtPos(e){return tc(this,e)}coordsAt(e,t){return nc(this,e,t)}}function YO(s,e,t){let i=s.nodeValue.length;e>i&&(e=i);let n=e,r=e,o=0;e==0&&t<0||e==i&&t>=0?M.chrome||M.gecko||(e?(n--,o=1):r=0)?0:a.length-1];return M.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,h=>h.width)||l),o?Cs(l,o<0):l||null}class oi extends ie{static create(e,t,i){return new oi(e,t,i)}constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}split(e){let t=oi.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,i,n,r,o){return i&&(!(i instanceof oi)||!this.widget.compare(i.widget)||e>0&&r<=0||t0)?Te.before(this.dom):Te.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;let n=this.dom.getClientRects(),r=null;if(!n.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?n.length-1:0;r=n[a],!(e>0?a==0:a==n.length-1||r.top0?Te.before(this.dom):Te.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return q.empty}get isHidden(){return!0}}ot.prototype.children=oi.prototype.children=Ci.prototype.children=Ao;function tc(s,e){let t=s.dom,{children:i}=s,n=0;for(let r=0;nr&&e0;r--){let o=i[r-1];if(o.dom.parentNode==t)return o.domAtPos(o.length)}for(let r=n;r0&&e instanceof Mt&&n.length&&(i=n[n.length-1])instanceof Mt&&i.mark.eq(e.mark)?ic(i,e.children[0],t-1):(n.push(e),e.setParent(s)),s.length+=e.length}function nc(s,e,t){let i=null,n=-1,r=null,o=-1;function a(h,c){for(let u=0,f=0;u=c&&(d.children.length?a(d,c-f):(!r||r.isHidden&&t>0)&&(p>c||f==p&&d.getSide()>0)?(r=d,o=c-f):(f-1?1:0)!=n.length-(t&&n.indexOf(t)>-1?1:0))return!1;for(let r of i)if(r!=t&&(n.indexOf(r)==-1||s[r]!==e[r]))return!1;return!0}function Hr(s,e,t){let i=!1;if(e)for(let n in e)t&&n in t||(i=!0,n=="style"?s.style.cssText="":s.removeAttribute(n));if(t)for(let n in t)e&&e[n]==t[n]||(i=!0,n=="style"?s.style.cssText=t[n]:s.setAttribute(n,t[n]));return i}function HO(s){let e=Object.create(null);for(let t=0;t0?3e8:-4e8:t>0?1e8:-1e8,new zt(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,n;if(e.isBlockGap)i=-5e8,n=4e8;else{let{start:r,end:o}=sc(e,t);i=(r?t?-3e8:-1:5e8)-1,n=(o?t?2e8:1:-6e8)+1}return new zt(e,i,n,t,e.widget||null,!0)}static line(e){return new kn(e)}static set(e,t=!1){return K.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}de.none=K.empty;class Qn extends de{constructor(e){let{start:t,end:i}=sc(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,i;return this==e||e instanceof Qn&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&ps(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Qn.prototype.point=!1;class kn extends de{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof kn&&this.spec.class==e.spec.class&&ps(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}kn.prototype.mapMode=Ce.TrackBefore;kn.prototype.point=!0;class zt extends de{constructor(e,t,i,n,r,o){super(t,i,r,e),this.block=n,this.isReplace=o,this.mapMode=n?t<=0?Ce.TrackBefore:Ce.TrackAfter:Ce.TrackDel}get type(){return this.startSide!=this.endSide?Je.WidgetRange:this.startSide<=0?Je.WidgetBefore:Je.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof zt&&KO(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}zt.prototype.point=!0;function sc(s,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=s;return t==null&&(t=s.inclusive),i==null&&(i=s.inclusive),{start:t??e,end:i??e}}function KO(s,e){return s==e||!!(s&&e&&s.compare(e))}function es(s,e,t,i=0){let n=t.length-1;n>=0&&t[n]+i>=s?t[n]=Math.max(t[n],e):t.push(s,e)}class pe extends ie{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,i,n,r,o){if(i){if(!(i instanceof pe))return!1;this.dom||i.transferDOM(this)}return n&&this.setDeco(i?i.attrs:null),Kh(this,e,t,i?i.children.slice():[],r,o),!0}split(e){let t=new pe;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i,off:n}=this.childPos(e);n&&(t.append(this.children[i].split(n),0),this.children[i].merge(n,this.children[i].length,null,!1,0,0),i++);for(let r=i;r0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){ps(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){ic(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=Fr(t,this.attrs||{})),i&&(this.attrs=Fr({class:i},this.attrs||{}))}domAtPos(e){return tc(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var i;this.dom?this.flags&4&&(qh(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Hr(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let n=this.dom.lastChild;for(;n&&ie.get(n)instanceof Mt;)n=n.lastChild;if(!n||!this.length||n.nodeName!="BR"&&((i=ie.get(n))===null||i===void 0?void 0:i.isEditable)==!1&&(!M.ios||!this.children.some(r=>r instanceof ot))){let r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let i of this.children){if(!(i instanceof ot)||/[^ -~]/.test(i.text))return null;let n=bn(i.dom);if(n.length!=1)return null;e+=n[0].width,t=n[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let i=nc(this,e,t);if(!this.children.length&&i&&this.parent){let{heightOracle:n}=this.parent.view.viewState,r=i.bottom-i.top;if(Math.abs(r-n.lineHeight)<2&&n.textHeight=t){if(r instanceof pe)return r;if(o>t)break}n=o+r.breakAfter}return null}}class At extends ie{constructor(e,t,i){super(),this.widget=e,this.length=t,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,n,r,o){return i&&(!(i instanceof At)||!this.widget.compare(i.widget)||e>0&&r<=0||t0}}class Kr extends Es{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class fn{constructor(e,t,i,n){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof At&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new pe),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Ln(new Ci(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof At)&&this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:r,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=r,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-i)),this.getLine().append(Ln(new ot(this.text.slice(this.textOff,this.textOff+n)),t),i),this.atCursorPos=!0,this.textOff+=n,e-=n,i=0}}span(e,t,i,n){this.buildText(t-e,i,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,i,n,r,o){if(this.disallowBlockEffectsFor[o]&&i instanceof zt){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(i instanceof zt)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new At(i.widget||Mi.block,a,i));else{let l=oi.create(i.widget||Mi.inline,a,a?0:i.startSide),h=this.atCursorPos&&!l.isEditable&&r<=n.length&&(e0),c=!l.isEditable&&(en.length||i.startSide<=0),u=this.getLine();this.pendingBuffer==2&&!h&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(n),h&&(u.append(Ln(new Ci(1),n),r),r=n.length+Math.max(0,r-n.length)),u.append(Ln(l,n),r),this.atCursorPos=c,this.pendingBuffer=c?en.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,i,n,r){let o=new fn(e,t,i,r);return o.openEnd=K.spans(n,t,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function Ln(s,e){for(let t of e)s=new Mt(t,[s],s.length);return s}class Mi extends Es{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Mi.inline=new Mi("span");Mi.block=new Mi("div");var Se=function(s){return s[s.LTR=0]="LTR",s[s.RTL=1]="RTL",s}(Se||(Se={}));const di=Se.LTR,Ro=Se.RTL;function rc(s){let e=[];for(let t=0;t=t){if(a.level==i)return o;(r<0||(n!=0?n<0?a.fromt:e[r].level>a.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}function ac(s,e){if(s.length!=e.length)return!1;for(let t=0;t=0;O-=3)if(ut[O+1]==-d){let g=ut[O+2],m=g&2?n:g&4?g&1?r:n:0;m&&(te[u]=te[ut[O]]=m),a=O;break}}else{if(ut.length==189)break;ut[a++]=u,ut[a++]=f,ut[a++]=l}else if((p=te[u])==2||p==1){let O=p==n;l=O?0:1;for(let g=a-3;g>=0;g-=3){let m=ut[g+2];if(m&2)break;if(O)ut[g+2]|=2;else{if(m&4)break;ut[g+2]|=4}}}}}function sm(s,e,t,i){for(let n=0,r=i;n<=t.length;n++){let o=n?t[n-1].to:s,a=nl;)p==g&&(p=t[--O].from,g=O?t[O-1].to:s),te[--p]=d;l=c}else r=h,l++}}}function eo(s,e,t,i,n,r,o){let a=i%2?2:1;if(i%2==n%2)for(let l=e,h=0;ll&&o.push(new Vt(l,O.from,d));let g=O.direction==di!=!(d%2);to(s,g?i+1:i,n,O.inner,O.from,O.to,o),l=O.to}p=O.to}else{if(p==t||(c?te[p]!=a:te[p]==a))break;p++}f?eo(s,l,p,i+1,n,f,o):le;){let c=!0,u=!1;if(!h||l>r[h-1].to){let O=te[l-1];O!=a&&(c=!1,u=O==16)}let f=!c&&a==1?[]:null,d=c?i:i+1,p=l;e:for(;;)if(h&&p==r[h-1].to){if(u)break e;let O=r[--h];if(!c)for(let g=O.from,m=h;;){if(g==e)break e;if(m&&r[m-1].to==g)g=r[--m].from;else{if(te[g-1]==a)break e;break}}if(f)f.push(O);else{O.tote.length;)te[te.length]=256;let i=[],n=e==di?0:1;return to(s,n,n,t,0,s.length,i),i}function lc(s){return[new Vt(0,s,0)]}let hc="";function om(s,e,t,i,n){var r;let o=i.head-s.from,a=Vt.find(e,o,(r=i.bidiLevel)!==null&&r!==void 0?r:-1,i.assoc),l=e[a],h=l.side(n,t);if(o==h){let f=a+=n?1:-1;if(f<0||f>=e.length)return null;l=e[a=f],o=l.side(!n,t),h=l.side(n,t)}let c=Me(s.text,o,l.forward(n,t));(cl.to)&&(c=h),hc=s.text.slice(Math.min(o,c),Math.max(o,c));let u=a==(n?e.length-1:0)?null:e[a+(n?1:-1)];return u&&c==h&&u.level+(n?0:1)s.some(e=>e)}),lm=j.define({combine:s=>s.some(e=>e)}),gc=j.define();class $i{constructor(e,t="nearest",i="nearest",n=5,r=5,o=!1){this.range=e,this.y=t,this.x=i,this.yMargin=n,this.xMargin=r,this.isSnapshot=o}map(e){return e.empty?this:new $i(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new $i(A.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Dn=he.define({map:(s,e)=>s.map(e)}),yc=he.define();function gt(s,e,t){let i=s.facet(dc);i.length?i[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const $t=j.define({combine:s=>s.length?s[0]:!0});let hm=0;const Ji=j.define();class Ut{constructor(e,t,i,n,r){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=n,this.extension=r(this)}static define(e,t){const{eventHandlers:i,eventObservers:n,provide:r,decorations:o}=t||{};return new Ut(hm++,e,i,n,a=>{let l=[Ji.of(a)];return o&&l.push(Sn.of(h=>{let c=h.plugin(a);return c?o(c):de.none})),r&&l.push(r(a)),l})}static fromClass(e,t){return Ut.define(i=>new e(i),t)}}class er{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(gt(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){gt(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){gt(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const bc=j.define(),Mo=j.define(),Sn=j.define(),Sc=j.define(),Eo=j.define(),xc=j.define();function ja(s,e){let t=s.state.facet(xc);if(!t.length)return t;let i=t.map(r=>r instanceof Function?r(s):r),n=[];return K.spans(i,e.from,e.to,{point(){},span(r,o,a,l){let h=r-e.from,c=o-e.from,u=n;for(let f=a.length-1;f>=0;f--,l--){let d=a[f].spec.bidiIsolate,p;if(d==null&&(d=am(e.text,h,c)),l>0&&u.length&&(p=u[u.length-1]).to==h&&p.direction==d)p.to=c,u=p.inner;else{let O={from:h,to:c,direction:d,inner:[]};u.push(O),u=O.inner}}}}),n}const wc=j.define();function Qc(s){let e=0,t=0,i=0,n=0;for(let r of s.state.facet(wc)){let o=r(s);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(n=Math.max(n,o.bottom)))}return{left:e,right:t,top:i,bottom:n}}const en=j.define();class et{constructor(e,t,i,n){this.fromA=e,this.toA=t,this.fromB=i,this.toB=n}join(e){return new et(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>i.toA)){if(n.toAc)break;r+=2}if(!l)return i;new et(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),o=l.toA,a=l.toB}}}class Os{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=we.empty(this.startState.doc.length);for(let r of i)this.changes=this.changes.compose(r.changes);let n=[];this.changes.iterChangedRanges((r,o,a,l)=>n.push(new et(r,o,a,l))),this.changedRanges=n}static create(e,t,i){return new Os(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Va extends ie{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=de.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new pe],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new et(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:h,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?n=this.domChanged.newSel.head:!mm(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let r=n>-1?um(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:h,to:c}=this.hasComposition;i=new et(h,c,e.changes.mapPos(h,-1),e.changes.mapPos(c,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(M.ie||M.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),l=pm(o,a,e.changes);return i=et.extendWithRanges(i,l),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,i);let{observer:n}=this.view;n.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=M.chrome||M.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||n.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let r=[];if(this.view.viewport.from||this.view.viewport.to=0?n[o]:null;if(!a)break;let{fromA:l,toA:h,fromB:c,toB:u}=a,f,d,p,O;if(i&&i.range.fromBc){let y=fn.build(this.view.state.doc,c,i.range.fromB,this.decorations,this.dynamicDecorationMap),v=fn.build(this.view.state.doc,i.range.toB,u,this.decorations,this.dynamicDecorationMap);d=y.breakAtStart,p=y.openStart,O=v.openEnd;let w=this.compositionView(i);v.breakAtStart?w.breakAfter=1:v.content.length&&w.merge(w.length,w.length,v.content[0],!1,v.openStart,0)&&(w.breakAfter=v.content[0].breakAfter,v.content.shift()),y.content.length&&w.merge(0,0,y.content[y.content.length-1],!0,0,y.openEnd)&&y.content.pop(),f=y.content.concat(w).concat(v.content)}else({content:f,breakAtStart:d,openStart:p,openEnd:O}=fn.build(this.view.state.doc,c,u,this.decorations,this.dynamicDecorationMap));let{i:g,off:m}=r.findPos(h,1),{i:Q,off:T}=r.findPos(l,-1);Hh(this,Q,T,g,m,f,d,p,O)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let i of t.effects)i.is(yc)&&(this.editContextFormatting=i.value)}compositionView(e){let t=new ot(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new Mt(n,[t],t.length);let i=new pe;return i.append(t,0),i}fixCompositionDOM(e){let t=(r,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let a=ie.get(r);a&&a!=o&&(a.dom=null),o.setDOM(r)},i=this.childPos(e.range.fromB,1),n=this.children[i.i];t(e.line,n);for(let r=e.marks.length-1;r>=-1;r--)i=n.childPos(i.off,1),n=n.children[i.i],t(r>=0?e.marks[r].node:e.text,n)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,n=i==this.dom,r=!n&&!(this.view.state.facet($t)||this.dom.tabIndex>-1)&&Jn(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(n||t||r))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),h=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(M.gecko&&a.empty&&!this.hasComposition&&cm(l)){let u=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(u,l.node.childNodes[l.offset]||null)),l=h=new Te(u,0),o=!0}let c=this.view.observer.selectionRange;(o||!c.focusNode||(!un(l.node,l.offset,c.anchorNode,c.anchorOffset)||!un(h.node,h.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,a))&&(this.view.observer.ignore(()=>{M.android&&M.chrome&&this.dom.contains(c.focusNode)&&Om(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let u=yn(this.view.root);if(u)if(a.empty){if(M.gecko){let f=fm(l.node,l.offset);if(f&&f!=3){let d=(f==1?Gh:Yh)(l.node,l.offset);d&&(l=new Te(d.node,d.offset))}}u.collapse(l.node,l.offset),a.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=a.bidiLevel)}else if(u.extend){u.collapse(l.node,l.offset);try{u.extend(h.node,h.offset)}catch{}}else{let f=document.createRange();a.anchor>a.head&&([l,h]=[h,l]),f.setEnd(h.node,h.offset),f.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(f)}r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(l,h)),this.impreciseAnchor=l.precise?null:new Te(c.anchorNode,c.anchorOffset),this.impreciseHead=h.precise?null:new Te(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&un(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=yn(e.root),{anchorNode:n,anchorOffset:r}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let o=pe.find(this,t.head);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let l=this.coordsAt(t.head,-1),h=this.coordsAt(t.head,1);if(!l||!h||l.bottom>h.top)return;let c=this.domAtPos(t.head+t.assoc);i.collapse(c.node,c.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&i.collapse(n,r)}moveToLine(e){let t=this.dom,i;if(e.node!=t)return e;for(let n=e.offset;!i&&n=0;n--){let r=ie.get(t.childNodes[n]);r instanceof pe&&(i=r.domAtPos(r.length))}return i?new Te(i.node,i.offset,!0):e}nearest(e){for(let t=e;t;){let i=ie.get(t);if(i&&i.rootView==this)return i;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t=0;o--){let a=this.children[o],l=r-a.breakAfter,h=l-a.length;if(le||a.covers(1))&&(!i||a instanceof pe&&!(i instanceof pe&&t>=0)))i=a,n=h;else if(i&&h==e&&l==e&&a instanceof At&&Math.abs(t)<2){if(a.deco.startSide<0)break;o&&(i=null)}r=h}return i?i.coordsAt(e-n,t):null}coordsForChar(e){let{i:t,off:i}=this.childPos(e,1),n=this.children[t];if(!(n instanceof pe))return null;for(;n.children.length;){let{i:a,off:l}=n.childPos(i,1);for(;;a++){if(a==n.children.length)return null;if((n=n.children[a]).length)break}i=l}if(!(n instanceof ot))return null;let r=Me(n.text,i);if(r==i)return null;let o=fi(n.dom,i,r).getClientRects();for(let a=0;aMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==Se.LTR;for(let h=0,c=0;cn)break;if(h>=i){let d=u.dom.getBoundingClientRect();if(t.push(d.height),o){let p=u.dom.lastChild,O=p?bn(p):[];if(O.length){let g=O[O.length-1],m=l?g.right-d.left:d.right-g.left;m>a&&(a=m,this.minWidth=r,this.minWidthFrom=h,this.minWidthTo=f)}}}h=f+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Se.RTL:Se.LTR}measureTextSize(){for(let r of this.children)if(r instanceof pe){let o=r.measureTextSize();if(o)return o}let e=document.createElement("div"),t,i,n;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let r=bn(e.firstChild)[0];t=e.getBoundingClientRect().height,i=r?r.width/27:7,n=r?r.height:t,e.remove()}),{lineHeight:t,charWidth:i,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Fh(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,n=0;;n++){let r=n==t.viewports.length?null:t.viewports[n],o=r?r.from-1:this.length;if(o>i){let a=(t.lineBlockAt(o).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(de.replace({widget:new Kr(a),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return de.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Sn).map(r=>(this.dynamicDecorationMap[e++]=typeof r=="function")?r(this.view):r),i=!1,n=this.view.state.facet(Sc).map((r,o)=>{let a=typeof r=="function";return a&&(i=!0),a?r(this.view):r});for(n.length&&(this.dynamicDecorationMap[e++]=i,t.push(K.join(n))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];et.anchor?-1:1),n;if(!i)return;!t.empty&&(n=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,n.left),top:Math.min(i.top,n.top),right:Math.max(i.right,n.right),bottom:Math.max(i.bottom,n.bottom)});let r=Qc(this.view),o={left:i.left-r.left,top:i.top-r.top,right:i.right+r.right,bottom:i.bottom+r.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;NO(this.view.scrollDOM,o,t.head{ie.from&&(t=!0)}),t}function gm(s,e,t=1){let i=s.charCategorizer(e),n=s.doc.lineAt(e),r=e-n.from;if(n.length==0)return A.cursor(e);r==0?t=1:r==n.length&&(t=-1);let o=r,a=r;t<0?o=Me(n.text,r,!1):a=Me(n.text,r);let l=i(n.text.slice(o,a));for(;o>0;){let h=Me(n.text,o,!1);if(i(n.text.slice(h,o))!=l)break;o=h}for(;as?e.left-s:Math.max(0,s-e.right)}function bm(s,e){return e.top>s?e.top-s:Math.max(0,s-e.bottom)}function tr(s,e){return s.tope.top+1}function Ba(s,e){return es.bottom?{top:s.top,left:s.left,right:s.right,bottom:e}:s}function no(s,e,t){let i,n,r,o,a=!1,l,h,c,u;for(let p=s.firstChild;p;p=p.nextSibling){let O=bn(p);for(let g=0;gT||o==T&&r>Q){i=p,n=m,r=Q,o=T;let y=T?t0?g0)}Q==0?t>m.bottom&&(!c||c.bottomm.top)&&(h=p,u=m):c&&tr(c,m)?c=Na(c,m.bottom):u&&tr(u,m)&&(u=Ba(u,m.top))}}if(c&&c.bottom>=t?(i=l,n=c):u&&u.top<=t&&(i=h,n=u),!i)return{node:s,offset:0};let f=Math.max(n.left,Math.min(n.right,e));if(i.nodeType==3)return za(i,f,t);if(a&&i.contentEditable!="false")return no(i,f,t);let d=Array.prototype.indexOf.call(s.childNodes,i)+(e>=(n.left+n.right)/2?1:0);return{node:s,offset:d}}function za(s,e,t){let i=s.nodeValue.length,n=-1,r=1e9,o=0;for(let a=0;at?c.top-t:t-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&u=(c.left+c.right)/2,d=f;if((M.chrome||M.gecko)&&fi(s,a).getBoundingClientRect().left==c.right&&(d=!f),u<=0)return{node:s,offset:a+(d?1:0)};n=a+(d?1:0),r=u}}}return{node:s,offset:n>-1?n:o>0?s.nodeValue.length:0}}function vc(s,e,t,i=-1){var n,r;let o=s.contentDOM.getBoundingClientRect(),a=o.top+s.viewState.paddingTop,l,{docHeight:h}=s.viewState,{x:c,y:u}=e,f=u-a;if(f<0)return 0;if(f>h)return s.state.doc.length;for(let y=s.viewState.heightOracle.textHeight/2,v=!1;l=s.elementAtHeight(f),l.type!=Je.Text;)for(;f=i>0?l.bottom+y:l.top-y,!(f>=0&&f<=h);){if(v)return t?null:0;v=!0,i=-i}u=a+f;let d=l.from;if(ds.viewport.to)return s.viewport.to==s.state.doc.length?s.state.doc.length:t?null:Ua(s,o,l,c,u);let p=s.dom.ownerDocument,O=s.root.elementFromPoint?s.root:p,g=O.elementFromPoint(c,u);g&&!s.contentDOM.contains(g)&&(g=null),g||(c=Math.max(o.left+1,Math.min(o.right-1,c)),g=O.elementFromPoint(c,u),g&&!s.contentDOM.contains(g)&&(g=null));let m,Q=-1;if(g&&((n=s.docView.nearest(g))===null||n===void 0?void 0:n.isEditable)!=!1){if(p.caretPositionFromPoint){let y=p.caretPositionFromPoint(c,u);y&&({offsetNode:m,offset:Q}=y)}else if(p.caretRangeFromPoint){let y=p.caretRangeFromPoint(c,u);y&&({startContainer:m,startOffset:Q}=y,(!s.contentDOM.contains(m)||M.safari&&Sm(m,Q,c)||M.chrome&&xm(m,Q,c))&&(m=void 0))}m&&(Q=Math.min(bt(m),Q))}if(!m||!s.docView.dom.contains(m)){let y=pe.find(s.docView,d);if(!y)return f>l.top+l.height/2?l.to:l.from;({node:m,offset:Q}=no(y.dom,c,u))}let T=s.docView.nearest(m);if(!T)return null;if(T.isWidget&&((r=T.dom)===null||r===void 0?void 0:r.nodeType)==1){let y=T.dom.getBoundingClientRect();return e.ys.defaultLineHeight*1.5){let a=s.viewState.heightOracle.textHeight,l=Math.floor((n-t.top-(s.defaultLineHeight-a)*.5)/a);r+=l*s.viewState.heightOracle.lineLength}let o=s.state.sliceDoc(t.from,t.to);return t.from+DO(o,r,s.state.tabSize)}function Sm(s,e,t){let i;if(s.nodeType!=3||e!=(i=s.nodeValue.length))return!1;for(let n=s.nextSibling;n;n=n.nextSibling)if(n.nodeType!=1||n.nodeName!="BR")return!1;return fi(s,i-1,i).getBoundingClientRect().left>t}function xm(s,e,t){if(e!=0)return!1;for(let n=s;;){let r=n.parentNode;if(!r||r.nodeType!=1||r.firstChild!=n)return!1;if(r.classList.contains("cm-line"))break;n=r}let i=s.nodeType==1?s.getBoundingClientRect():fi(s,0,Math.max(s.nodeValue.length,1)).getBoundingClientRect();return t-i.left>5}function wm(s,e){let t=s.lineBlockAt(e);if(Array.isArray(t.type)){for(let i of t.type)if(i.to>e||i.to==e&&(i.to==t.to||i.type==Je.Text))return i}return t}function Qm(s,e,t,i){let n=wm(s,e.head),r=!i||n.type!=Je.Text||!(s.lineWrapping||n.widgetLineBreaks)?null:s.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(r){let o=s.dom.getBoundingClientRect(),a=s.textDirectionAt(n.from),l=s.posAtCoords({x:t==(a==Se.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(l!=null)return A.cursor(l,t?-1:1)}return A.cursor(t?n.to:n.from,t?-1:1)}function qa(s,e,t,i){let n=s.state.doc.lineAt(e.head),r=s.bidiSpans(n),o=s.textDirectionAt(n.from);for(let a=e,l=null;;){let h=om(n,r,o,a,t),c=hc;if(!h){if(n.number==(t?s.state.doc.lines:1))return a;c=` -`,n=s.state.doc.line(n.number+(t?1:-1)),r=s.bidiSpans(n),h=s.visualLineSide(n,!t)}if(l){if(!l(c))return a}else{if(!i)return h;l=i(c)}a=h}}function km(s,e,t){let i=s.state.charCategorizer(e),n=i(t);return r=>{let o=i(r);return n==Tt.Space&&(n=o),n==o}}function vm(s,e,t,i){let n=e.head,r=t?1:-1;if(n==(t?s.state.doc.length:0))return A.cursor(n,e.assoc);let o=e.goalColumn,a,l=s.contentDOM.getBoundingClientRect(),h=s.coordsAtPos(n,e.assoc||-1),c=s.documentTop;if(h)o==null&&(o=h.left-l.left),a=r<0?h.top:h.bottom;else{let d=s.viewState.lineBlockAt(n);o==null&&(o=Math.min(l.right-l.left,s.defaultCharacterWidth*(n-d.from))),a=(r<0?d.top:d.bottom)+c}let u=l.left+o,f=i??s.viewState.heightOracle.textHeight>>1;for(let d=0;;d+=10){let p=a+(f+d)*r,O=vc(s,{x:u,y:p},!1,r);if(pl.bottom||(r<0?On)){let g=s.docView.coordsForChar(O),m=!g||p{if(e>r&&en(s)),t.from,e.head>t.from?-1:1);return i==t.from?t:A.cursor(i,ir)&&this.lineBreak(),n=o}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,a;if(this.lineSeparator?(r=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(a=n.exec(t))&&(r=a.index,o=a[0].length),this.append(t.slice(i,r<0?t.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);i=r+o}}readNode(e){if(e.cmIgnore)return;let t=ie.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let n=i.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+($m(e,i.node,i.offset)?t:0))}}function $m(s,e,t){for(;;){if(!e||t-1;let{impreciseHead:r,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let a=r||o?[]:Rm(e),l=new Pm(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=Zm(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=r&&r.node==a.focusNode&&r.offset==a.focusOffset||!qr(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),h=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!qr(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),c=e.viewport;if((M.ios||M.chrome)&&e.state.selection.main.empty&&l!=h&&(c.from>0||c.toDate.now()-100?s.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:a}=e.bounds,l=n.from,h=null;(r===8||M.android&&e.text.length=n.from&&t.to<=n.to&&(t.from!=n.from||t.to!=n.to)&&n.to-n.from-(t.to-t.from)<=4?t={from:n.from,to:n.to,insert:s.state.doc.slice(n.from,t.from).append(t.insert).append(s.state.doc.slice(t.to,n.to))}:M.chrome&&t&&t.from==t.to&&t.from==n.head&&t.insert.toString()==` - `&&s.lineWrapping&&(i&&(i=A.single(i.main.anchor-1,i.main.head-1)),t={from:n.from,to:n.to,insert:q.of([" "])}),t)return Lo(s,t,i,r);if(i&&!i.main.eq(n)){let o=!1,a="select";return s.inputState.lastSelectionTime>Date.now()-50&&(s.inputState.lastSelectionOrigin=="select"&&(o=!0),a=s.inputState.lastSelectionOrigin),s.dispatch({selection:i,scrollIntoView:o,userEvent:a}),!0}else return!1}function Lo(s,e,t,i=-1){if(M.ios&&s.inputState.flushIOSKey(e))return!0;let n=s.state.selection.main;if(M.android&&(e.to==n.to&&(e.from==n.from||e.from==n.from-1&&s.state.sliceDoc(e.from,n.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Pi(s.contentDOM,"Enter",13)||(e.from==n.from-1&&e.to==n.to&&e.insert.length==0||i==8&&e.insert.lengthn.head)&&Pi(s.contentDOM,"Backspace",8)||e.from==n.from&&e.to==n.to+1&&e.insert.length==0&&Pi(s.contentDOM,"Delete",46)))return!0;let r=e.insert.toString();s.inputState.composing>=0&&s.inputState.composing++;let o,a=()=>o||(o=_m(s,e,t));return s.state.facet(pc).some(l=>l(s,e.from,e.to,r,a))||s.dispatch(a()),!0}function _m(s,e,t){let i,n=s.state,r=n.selection.main;if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&s.inputState.composing<0){let a=r.frome.to?n.sliceDoc(e.to,r.to):"";i=n.replaceSelection(s.state.toText(a+e.insert.sliceString(0,void 0,s.state.lineBreak)+l))}else{let a=n.changes(e),l=t&&t.main.to<=a.newLength?t.main:void 0;if(n.selection.ranges.length>1&&s.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){let h=s.state.sliceDoc(e.from,e.to),c,u=t&&kc(s,t.main.head);if(u){let p=e.insert.length-(e.to-e.from);c={from:u.from,to:u.to-p}}else c=s.state.doc.lineAt(r.head);let f=r.to-e.to,d=r.to-r.from;i=n.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return{changes:a,range:l||p.map(a)};let O=p.to-f,g=O-h.length;if(p.to-p.from!=d||s.state.sliceDoc(g,O)!=h||p.to>=c.from&&p.from<=c.to)return{range:p};let m=n.changes({from:g,to:O,insert:e.insert}),Q=p.to-r.to;return{changes:m,range:l?A.range(Math.max(0,l.anchor+Q),Math.max(0,l.head+Q)):p.map(m)}})}else i={changes:a,selection:l&&n.selection.replaceRange(l)}}let o="input.type";return(s.composing||s.inputState.compositionPendingChange&&s.inputState.compositionEndedAt>Date.now()-50)&&(s.inputState.compositionPendingChange=!1,o+=".compose",s.inputState.compositionFirstChange&&(o+=".start",s.inputState.compositionFirstChange=!1)),n.update(i,{userEvent:o,scrollIntoView:!0})}function Am(s,e,t,i){let n=Math.min(s.length,e.length),r=0;for(;r0&&a>0&&s.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(i=="end"){let l=Math.max(0,r-Math.min(o,a));t-=o+l-r}if(o=o?r-t:0;r-=l,a=r+(a-o),o=r}else if(a=a?r-t:0;r-=l,o=r+(o-a),a=r}return{from:r,toA:o,toB:a}}function Rm(s){let e=[];if(s.root.activeElement!=s.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:n,focusOffset:r}=s.observer.selectionRange;return t&&(e.push(new Wa(t,i)),(n!=t||r!=i)&&e.push(new Wa(n,r))),e}function Zm(s,e){if(s.length==0)return null;let t=s[0].pos,i=s.length==2?s[1].pos:t;return t>-1&&i>-1?A.single(t+e,i+e):null}class Cm{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,M.safari&&e.contentDOM.addEventListener("input",()=>null),M.gecko&&Ym(e.contentDOM.ownerDocument)}handleEvent(e){!Vm(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let i=this.handlers[e];if(i){for(let n of i.observers)n(this.view,t);for(let n of i.handlers){if(t.defaultPrevented)break;if(n(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Mm(e),i=this.handlers,n=this.view.contentDOM;for(let r in t)if(r!="scroll"){let o=!t[r].handlers.length,a=i[r];a&&o!=!a.handlers.length&&(n.removeEventListener(r,this.handleEvent),a=null),a||n.addEventListener(r,this.handleEvent,{passive:o})}for(let r in i)r!="scroll"&&!t[r]&&n.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&Tc.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),M.android&&M.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return M.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=$c.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||Em.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:M.safari&&!M.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Ga(s,e){return(t,i)=>{try{return e.call(s,i,t)}catch(n){gt(t.state,n)}}}function Mm(s){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of s){let n=i.spec;if(n&&n.domEventHandlers)for(let r in n.domEventHandlers){let o=n.domEventHandlers[r];o&&t(r).handlers.push(Ga(i.value,o))}if(n&&n.domEventObservers)for(let r in n.domEventObservers){let o=n.domEventObservers[r];o&&t(r).observers.push(Ga(i.value,o))}}for(let i in at)t(i).handlers.push(at[i]);for(let i in tt)t(i).observers.push(tt[i]);return e}const $c=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Em="dthko",Tc=[16,17,18,20,91,92,224,225],Xn=6;function In(s){return Math.max(0,s)*.7+8}function Lm(s,e){return Math.max(Math.abs(s.clientX-e.clientX),Math.abs(s.clientY-e.clientY))}class Dm{constructor(e,t,i,n){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=zO(e.contentDOM),this.atoms=e.state.facet(Eo).map(o=>o(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Y.allowMultipleSelections)&&Xm(e,t),this.dragging=jm(e,t)&&Rc(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Lm(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,n=0,r=0,o=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:n,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=Qc(this.view);e.clientX-l.left<=n+Xn?t=-In(n-e.clientX):e.clientX+l.right>=o-Xn&&(t=In(e.clientX-o)),e.clientY-l.top<=r+Xn?i=-In(r-e.clientY):e.clientY+l.bottom>=a-Xn&&(i=In(e.clientY-a)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let i=0;it.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Xm(s,e){let t=s.state.facet(cc);return t.length?t[0](e):M.mac?e.metaKey:e.ctrlKey}function Im(s,e){let t=s.state.facet(uc);return t.length?t[0](e):M.mac?!e.altKey:!e.ctrlKey}function jm(s,e){let{main:t}=s.state.selection;if(t.empty)return!1;let i=yn(s.root);if(!i||i.rangeCount==0)return!0;let n=i.getRangeAt(0).getClientRects();for(let r=0;r=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function Vm(s,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=s.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=ie.get(t))&&i.ignoreEvent(e))return!1;return!0}const at=Object.create(null),tt=Object.create(null),_c=M.ie&&M.ie_version<15||M.ios&&M.webkit_version<604;function Bm(s){let e=s.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{s.focus(),t.remove(),Ac(s,t.value)},50)}function Ls(s,e,t){for(let i of s.facet(e))t=i(t,s);return t}function Ac(s,e){e=Ls(s.state,Zo,e);let{state:t}=s,i,n=1,r=t.toText(e),o=r.lines==t.selection.ranges.length;if(so!=null&&t.selection.ranges.every(l=>l.empty)&&so==r.toString()){let l=-1;i=t.changeByRange(h=>{let c=t.doc.lineAt(h.from);if(c.from==l)return{range:h};l=c.from;let u=t.toText((o?r.line(n++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:u},range:A.cursor(h.from+u.length)}})}else o?i=t.changeByRange(l=>{let h=r.line(n++);return{changes:{from:l.from,to:l.to,insert:h.text},range:A.cursor(l.from+h.length)}}):i=t.replaceSelection(r);s.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}tt.scroll=s=>{s.inputState.lastScrollTop=s.scrollDOM.scrollTop,s.inputState.lastScrollLeft=s.scrollDOM.scrollLeft};at.keydown=(s,e)=>(s.inputState.setSelectionOrigin("select"),e.keyCode==27&&s.inputState.tabFocusMode!=0&&(s.inputState.tabFocusMode=Date.now()+2e3),!1);tt.touchstart=(s,e)=>{s.inputState.lastTouchTime=Date.now(),s.inputState.setSelectionOrigin("select.pointer")};tt.touchmove=s=>{s.inputState.setSelectionOrigin("select.pointer")};at.mousedown=(s,e)=>{if(s.observer.flush(),s.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of s.state.facet(fc))if(t=i(s,e),t)break;if(!t&&e.button==0&&(t=Um(s,e)),t){let i=!s.hasFocus;s.inputState.startMouseSelection(new Dm(s,e,t,i)),i&&s.observer.ignore(()=>{Uh(s.contentDOM);let r=s.root.activeElement;r&&!r.contains(s.contentDOM)&&r.blur()});let n=s.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}return!1};function Ya(s,e,t,i){if(i==1)return A.cursor(e,t);if(i==2)return gm(s.state,e,t);{let n=pe.find(s.docView,e),r=s.state.doc.lineAt(n?n.posAtEnd:e),o=n?n.posAtStart:r.from,a=n?n.posAtEnd:r.to;return ae>=t.top&&e<=t.bottom&&s>=t.left&&s<=t.right;function Nm(s,e,t,i){let n=pe.find(s.docView,e);if(!n)return 1;let r=e-n.posAtStart;if(r==0)return 1;if(r==n.length)return-1;let o=n.coordsAt(r,-1);if(o&&Fa(t,i,o))return-1;let a=n.coordsAt(r,1);return a&&Fa(t,i,a)?1:o&&o.bottom>=i?-1:1}function Ha(s,e){let t=s.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:Nm(s,t,e.clientX,e.clientY)}}const zm=M.ie&&M.ie_version<=11;let Ka=null,Ja=0,el=0;function Rc(s){if(!zm)return s.detail;let e=Ka,t=el;return Ka=s,el=Date.now(),Ja=!e||t>Date.now()-400&&Math.abs(e.clientX-s.clientX)<2&&Math.abs(e.clientY-s.clientY)<2?(Ja+1)%3:1}function Um(s,e){let t=Ha(s,e),i=Rc(e),n=s.state.selection;return{update(r){r.docChanged&&(t.pos=r.changes.mapPos(t.pos),n=n.map(r.changes))},get(r,o,a){let l=Ha(s,r),h,c=Ya(s,l.pos,l.bias,i);if(t.pos!=l.pos&&!o){let u=Ya(s,t.pos,t.bias,i),f=Math.min(u.from,c.from),d=Math.max(u.to,c.to);c=f1&&(h=qm(n,l.pos))?h:a?n.addRange(c):A.create([c])}}}function qm(s,e){for(let t=0;t=e)return A.create(s.ranges.slice(0,t).concat(s.ranges.slice(t+1)),s.mainIndex==t?0:s.mainIndex-(s.mainIndex>t?1:0))}return null}at.dragstart=(s,e)=>{let{selection:{main:t}}=s.state;if(e.target.draggable){let n=s.docView.nearest(e.target);if(n&&n.isWidget){let r=n.posAtStart,o=r+n.length;(r>=t.to||o<=t.from)&&(t=A.range(r,o))}}let{inputState:i}=s;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",Ls(s.state,Co,s.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};at.dragend=s=>(s.inputState.draggedContent=null,!1);function tl(s,e,t,i){if(t=Ls(s.state,Zo,t),!t)return;let n=s.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=s.inputState,o=i&&r&&Im(s,e)?{from:r.from,to:r.to}:null,a={from:n,insert:t},l=s.state.changes(o?[o,a]:a);s.focus(),s.dispatch({changes:l,selection:{anchor:l.mapPos(n,-1),head:l.mapPos(n,1)},userEvent:o?"move.drop":"input.drop"}),s.inputState.draggedContent=null}at.drop=(s,e)=>{if(!e.dataTransfer)return!1;if(s.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),n=0,r=()=>{++n==t.length&&tl(s,e,i.filter(o=>o!=null).join(s.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(i[o]=a.result),r()},a.readAsText(t[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return tl(s,e,i,!0),!0}return!1};at.paste=(s,e)=>{if(s.state.readOnly)return!0;s.observer.flush();let t=_c?null:e.clipboardData;return t?(Ac(s,t.getData("text/plain")||t.getData("text/uri-list")),!0):(Bm(s),!1)};function Wm(s,e){let t=s.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),s.focus()},50)}function Gm(s){let e=[],t=[],i=!1;for(let n of s.selection.ranges)n.empty||(e.push(s.sliceDoc(n.from,n.to)),t.push(n));if(!e.length){let n=-1;for(let{from:r}of s.selection.ranges){let o=s.doc.lineAt(r);o.number>n&&(e.push(o.text),t.push({from:o.from,to:Math.min(s.doc.length,o.to+1)})),n=o.number}i=!0}return{text:Ls(s,Co,e.join(s.lineBreak)),ranges:t,linewise:i}}let so=null;at.copy=at.cut=(s,e)=>{let{text:t,ranges:i,linewise:n}=Gm(s.state);if(!t&&!n)return!1;so=n?t:null,e.type=="cut"&&!s.state.readOnly&&s.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let r=_c?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",t),!0):(Wm(s,t),!1)};const Zc=Oi.define();function Cc(s,e){let t=[];for(let i of s.facet(Oc)){let n=i(s,e);n&&t.push(n)}return t?s.update({effects:t,annotations:Zc.of(!0)}):null}function Mc(s){setTimeout(()=>{let e=s.hasFocus;if(e!=s.inputState.notifiedFocused){let t=Cc(s.state,e);t?s.dispatch(t):s.update([])}},10)}tt.focus=s=>{s.inputState.lastFocusTime=Date.now(),!s.scrollDOM.scrollTop&&(s.inputState.lastScrollTop||s.inputState.lastScrollLeft)&&(s.scrollDOM.scrollTop=s.inputState.lastScrollTop,s.scrollDOM.scrollLeft=s.inputState.lastScrollLeft),Mc(s)};tt.blur=s=>{s.observer.clearSelectionRange(),Mc(s)};tt.compositionstart=tt.compositionupdate=s=>{s.observer.editContext||(s.inputState.compositionFirstChange==null&&(s.inputState.compositionFirstChange=!0),s.inputState.composing<0&&(s.inputState.composing=0))};tt.compositionend=s=>{s.observer.editContext||(s.inputState.composing=-1,s.inputState.compositionEndedAt=Date.now(),s.inputState.compositionPendingKey=!0,s.inputState.compositionPendingChange=s.observer.pendingRecords().length>0,s.inputState.compositionFirstChange=null,M.chrome&&M.android?s.observer.flushSoon():s.inputState.compositionPendingChange?Promise.resolve().then(()=>s.observer.flush()):setTimeout(()=>{s.inputState.composing<0&&s.docView.hasComposition&&s.update([])},50))};tt.contextmenu=s=>{s.inputState.lastContextMenu=Date.now()};at.beforeinput=(s,e)=>{var t,i;if(e.inputType=="insertReplacementText"&&s.observer.editContext){let r=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(r&&o.length){let a=o[0],l=s.posAtDOM(a.startContainer,a.startOffset),h=s.posAtDOM(a.endContainer,a.endOffset);return Lo(s,{from:l,to:h,insert:s.state.toText(r)},null),!0}}let n;if(M.chrome&&M.android&&(n=$c.find(r=>r.inputType==e.inputType))&&(s.observer.delayAndroidKey(n.key,n.keyCode),n.key=="Backspace"||n.key=="Delete")){let r=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>r+10&&s.hasFocus&&(s.contentDOM.blur(),s.focus())},100)}return M.ios&&e.inputType=="deleteContentForward"&&s.observer.flushSoon(),M.safari&&e.inputType=="insertText"&&s.inputState.composing>=0&&setTimeout(()=>tt.compositionend(s,e),20),!1};const il=new Set;function Ym(s){il.has(s)||(il.add(s),s.addEventListener("copy",()=>{}),s.addEventListener("cut",()=>{}))}const nl=["pre-wrap","normal","pre-line","break-spaces"];let Ei=!1;function sl(){Ei=!1}class Fm{constructor(e){this.lineWrapping=e,this.doc=q.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return nl.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i-1,l=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=i,this.textHeight=n,this.lineLength=r,l){this.heightSamples={};for(let h=0;h0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>is&&(Ei=!0),this.height=e)}replace(e,t,i){return Ee.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,n){let r=this,o=i.doc;for(let a=n.length-1;a>=0;a--){let{fromA:l,toA:h,fromB:c,toB:u}=n[a],f=r.lineAt(l,ae.ByPosNoHeight,i.setDoc(t),0,0),d=f.to>=h?f:r.lineAt(h,ae.ByPosNoHeight,i,0,0);for(u+=d.to-h,h=d.to;a>0&&f.from<=n[a-1].toA;)l=n[a-1].fromA,c=n[a-1].fromB,a--,lr*2){let a=e[t-1];a.break?e.splice(--t,1,a.left,null,a.right):e.splice(--t,1,a.left,a.right),i+=1+a.break,n-=a.size}else if(r>n*2){let a=e[i];a.break?e.splice(i,1,a.left,null,a.right):e.splice(i,1,a.left,a.right),i+=2+a.break,r-=a.size}else break;else if(n=r&&o(this.blockAt(0,i,n,r))}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ue extends Ec{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,i,n){return new mt(n,this.length,i,this.height,this.breaks)}replace(e,t,i){let n=i[0];return i.length==1&&(n instanceof Ue||n instanceof Qe&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof Qe?n=new Ue(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):Ee.of(i)}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more?this.setHeight(n.heights[n.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Qe extends Ee{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,n=e.doc.lineAt(t+this.length).number,r=n-i+1,o,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*r);o=l/r,this.length>r+1&&(a=(this.height-l)/(this.length-r-1))}else o=this.height/r;return{firstLine:i,lastLine:n,perLine:o,perChar:a}}blockAt(e,t,i,n){let{firstLine:r,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(t,n);if(t.lineWrapping){let h=n+(e0){let r=i[i.length-1];r instanceof Qe?i[i.length-1]=new Qe(r.length+n):i.push(null,new Qe(n-1))}if(e>0){let r=i[0];r instanceof Qe?i[0]=new Qe(e+r.length):i.unshift(new Qe(e-1),null)}return Ee.of(i)}decomposeLeft(e,t){t.push(new Qe(e-1),null)}decomposeRight(e,t){t.push(null,new Qe(this.length-e-1))}updateHeight(e,t=0,i=!1,n){let r=t+this.length;if(n&&n.from<=t+this.length&&n.more){let o=[],a=Math.max(t,n.from),l=-1;for(n.from>t&&o.push(new Qe(n.from-t-1).updateHeight(e,t));a<=r&&n.more;){let c=e.doc.lineAt(a).length;o.length&&o.push(null);let u=n.heights[n.index++];l==-1?l=u:Math.abs(u-l)>=is&&(l=-2);let f=new Ue(c,u);f.outdated=!1,o.push(f),a+=c+1}a<=r&&o.push(null,new Qe(r-a).updateHeight(e,a));let h=Ee.of(o);return(l<0||Math.abs(h.height-this.height)>=is||Math.abs(l-this.heightMetrics(e,t).perLine)>=is)&&(Ei=!0),ms(this,h)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Km extends Ee{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,n){let r=i+this.left.height;return ea))return h;let c=t==ae.ByPosNoHeight?ae.ByPosNoHeight:ae.ByPos;return l?h.join(this.right.lineAt(a,c,i,o,a)):this.left.lineAt(a,c,i,n,r).join(h)}forEachLine(e,t,i,n,r,o){let a=n+this.left.height,l=r+this.left.length+this.break;if(this.break)e=l&&this.right.forEachLine(e,t,i,a,l,o);else{let h=this.lineAt(l,ae.ByPos,i,n,r);e=e&&h.from<=t&&o(h),t>h.to&&this.right.forEachLine(h.to+1,t,i,a,l,o)}}replace(e,t,i){let n=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,i));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let a of i)r.push(a);if(e>0&&rl(r,o-1),t=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,n=i+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e2*t.size||t.size>2*e.size?Ee.of(this.break?[e,null,t]:[e,t]):(this.left=ms(this.left,e),this.right=ms(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,n){let{left:r,right:o}=this,a=t+r.length+this.break,l=null;return n&&n.from<=t+r.length&&n.more?l=r=r.updateHeight(e,t,i,n):r.updateHeight(e,t,i),n&&n.from<=a+o.length&&n.more?l=o=o.updateHeight(e,a,i,n):o.updateHeight(e,a,i),l?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function rl(s,e){let t,i;s[e]==null&&(t=s[e-1])instanceof Qe&&(i=s[e+1])instanceof Qe&&s.splice(e-1,3,new Qe(t.length+1+i.length))}const Jm=5;class Do{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Ue?n.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Ue(i-this.pos,-1)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e=Jm)&&this.addLineDeco(n,r,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new Ue(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new Qe(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Ue)return e;let t=new Ue(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let n=this.ensureLine();n.length+=i,n.collapsed+=i,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Ue)&&!this.isCovered?this.nodes.push(new Ue(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&u.overflow!="visible"){let f=c.getBoundingClientRect();r=Math.max(r,f.left),o=Math.min(o,f.right),a=Math.max(a,f.top),l=Math.min(h==s.parentNode?n.innerHeight:l,f.bottom)}h=u.position=="absolute"||u.position=="fixed"?c.offsetParent:c.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:r-t.left,right:Math.max(r,o)-t.left,top:a-(t.top+e),bottom:Math.max(a,l)-(t.top+e)}}function ng(s){let e=s.getBoundingClientRect(),t=s.ownerDocument.defaultView||window;return e.left0&&e.top0}function sg(s,e){let t=s.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class nr{constructor(e,t,i,n){this.from=e,this.to=t,this.size=i,this.displaySize=n}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Fm(t),this.stateDeco=e.facet(Sn).filter(i=>typeof i!="function"),this.heightMap=Ee.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle.setDoc(e.doc),[new et(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=de.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let n=i?t.head:t.anchor;if(!e.some(({from:r,to:o})=>n>=r&&n<=o)){let{from:r,to:o}=this.lineBlockAt(n);e.push(new jn(r,o))}}return this.viewports=e.sort((i,n)=>i.from-n.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?al:new Xo(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(nn(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Sn).filter(c=>typeof c!="function");let n=e.changedRanges,r=et.extendWithRanges(n,eg(i,this.stateDeco,e?e.changes:we.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);sl(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=o||Ei)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let h=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(h||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(lm)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),n=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?Se.RTL:Se.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),a=t.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let h=0,c=0;if(a.width&&a.height){let{scaleX:y,scaleY:v}=zh(t,a);(y>.005&&Math.abs(this.scaleX-y)>.005||v>.005&&Math.abs(this.scaleY-v)>.005)&&(this.scaleX=y,this.scaleY=v,h|=16,o=l=!0)}let u=(parseInt(i.paddingTop)||0)*this.scaleY,f=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=f)&&(this.paddingTop=u,this.paddingBottom=f,h|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=16);let d=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=Wh(e.scrollDOM);let p=(this.printing?sg:ig)(t,this.paddingTop),O=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(l=!0)),!this.inView&&!this.scrollTarget&&!ng(e.dom))return 0;let Q=a.width;if((this.contentDOMWidth!=Q||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,h|=16),l){let y=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(y)&&(o=!0),o||n.lineWrapping&&Math.abs(Q-this.contentDOMWidth)>n.charWidth){let{lineHeight:v,charWidth:w,textHeight:x}=e.docView.measureTextSize();o=v>0&&n.refresh(r,v,w,x,Q/w,y),o&&(e.docView.minWidth=0,h|=16)}O>0&&g>0?c=Math.max(O,g):O<0&&g<0&&(c=Math.min(O,g)),sl();for(let v of this.viewports){let w=v.from==this.viewport.from?y:e.docView.measureVisibleLineHeights(v);this.heightMap=(o?Ee.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle,[new et(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,o,new Hm(v.from,w))}Ei&&(h|=2)}let T=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return T&&(h&2&&(h|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),h|=this.updateForViewport()),(h&2||T)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,r=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new jn(n.lineAt(o-i*1e3,ae.ByHeight,r,0,0).from,n.lineAt(a+(1-i)*1e3,ae.ByHeight,r,0,0).to);if(t){let{head:h}=t.range;if(hl.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),u=n.lineAt(h,ae.ByPos,r,0,0),f;t.y=="center"?f=(u.top+u.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&h=a+Math.max(10,Math.min(i,250)))&&n>o-2*1e3&&r>1,o=n<<1;if(this.defaultTextDirection!=Se.LTR&&!i)return[];let a=[],l=(c,u,f,d)=>{if(u-cc&&mm.from>=f.from&&m.to<=f.to&&Math.abs(m.from-c)m.fromQ));if(!g){if(uT.from<=u&&T.to>=u)){let T=t.moveToLineBoundary(A.cursor(u),!1,!0).head;T>c&&(u=T)}let m=this.gapSize(f,c,u,d),Q=i||m<2e6?m:2e6;g=new nr(c,u,m,Q)}a.push(g)},h=c=>{if(c.length2e6)for(let w of e)w.from>=c.from&&w.fromc.from&&l(c.from,d,c,u),pt.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];K.spans(t,this.viewport.from,this.viewport.to,{span(r,o){i.push({from:r,to:o})},point(){}},20);let n=0;if(i.length!=this.visibleRanges.length)n=12;else for(let r=0;r=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||nn(this.heightMap.lineAt(e,ae.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||nn(this.heightMap.lineAt(this.scaler.fromDOM(e),ae.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return nn(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class jn{constructor(e,t){this.from=e,this.to=t}}function og(s,e,t){let i=[],n=s,r=0;return K.spans(t,s,e,{span(){},point(o,a){o>n&&(i.push({from:n,to:o}),r+=o-n),n=a}},20),n=1)return e[e.length-1].to;let i=Math.floor(s*t);for(let n=0;;n++){let{from:r,to:o}=e[n],a=o-r;if(i<=a)return r+i;i-=a}}function Bn(s,e){let t=0;for(let{from:i,to:n}of s.ranges){if(e<=n){t+=e-i;break}t+=n-i}return t/s.total}function ag(s,e){for(let t of s)if(e(t))return t}const al={toDOM(s){return s},fromDOM(s){return s},scale:1,eq(s){return s==this}};class Xo{constructor(e,t,i){let n=0,r=0,o=0;this.viewports=i.map(({from:a,to:l})=>{let h=t.lineAt(a,ae.ByPos,e,0,0).top,c=t.lineAt(l,ae.ByPos,e,0,0).bottom;return n+=c-h,{from:a,to:l,top:h,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n);for(let a of this.viewports)a.domTop=o+(a.top-r)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),r=a.bottom}toDOM(e){for(let t=0,i=0,n=0;;t++){let r=tt.from==e.viewports[i].from&&t.to==e.viewports[i].to):!1}}function nn(s,e){if(e.scale==1)return s;let t=e.toDOM(s.top),i=e.toDOM(s.bottom);return new mt(s.from,s.length,t,i-t,Array.isArray(s._content)?s._content.map(n=>nn(n,e)):s._content)}const Nn=j.define({combine:s=>s.join(" ")}),ro=j.define({combine:s=>s.indexOf(!0)>-1}),oo=Bt.newName(),Lc=Bt.newName(),Dc=Bt.newName(),Xc={"&light":"."+Lc,"&dark":"."+Dc};function ao(s,e,t){return new Bt(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,n=>{if(n=="&")return s;if(!t||!t[n])throw new RangeError(`Unsupported selector: ${n}`);return t[n]}):s+" "+i}})}const lg=ao("."+oo,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Xc),hg={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},sr=M.ie&&M.ie_version<=11;class cg{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new UO,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(M.ie&&M.ie_version<=11||M.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(M.chrome&&M.chrome_version<126)&&(this.editContext=new fg(e),e.state.facet($t)&&(e.contentDOM.editContext=this.editContext.editContext)),sr&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,n=this.selectionRange;if(i.state.facet($t)?i.root.activeElement!=this.dom:!Jn(this.dom,n))return;let r=n.anchorNode&&i.docView.nearest(n.anchorNode);if(r&&r.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(M.ie&&M.ie_version<=11||M.android&&M.chrome)&&!i.state.selection.main.empty&&n.focusNode&&un(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=yn(e.root);if(!t)return!1;let i=M.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&ug(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let n=Jn(this.dom,i);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&Pi(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,n=!1;for(let r of e){let o=this.readMutation(r);o&&(o.typeOver&&(n=!0),t==-1?{from:t,to:i}=o:(t=Math.min(o.from,t),i=Math.max(o.to,i)))}return{from:t,to:i,typeOver:n}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),n=this.selectionChanged&&Jn(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new Tm(this.view,e,t,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,n=Pc(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),n}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let i=ll(t,e.previousSibling||e.target.previousSibling,-1),n=ll(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet($t)!=e.state.facet($t)&&(e.view.contentDOM.editContext=e.state.facet($t)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function ll(s,e,t){for(;e;){let i=ie.get(e);if(i&&i.parent==s)return i;let n=e.parentNode;e=n!=s.dom?n:t>0?e.nextSibling:e.previousSibling}return null}function hl(s,e){let t=e.startContainer,i=e.startOffset,n=e.endContainer,r=e.endOffset,o=s.docView.domAtPos(s.state.selection.main.anchor);return un(o.node,o.offset,n,r)&&([t,i,n,r]=[n,r,t,i]),{anchorNode:t,anchorOffset:i,focusNode:n,focusOffset:r}}function ug(s,e){if(e.getComposedRanges){let n=e.getComposedRanges(s.root)[0];if(n)return hl(s,n)}let t=null;function i(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return s.contentDOM.addEventListener("beforeinput",i,!0),s.dom.ownerDocument.execCommand("indent"),s.contentDOM.removeEventListener("beforeinput",i,!0),t?hl(s,t):null}class fg{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let n=e.state.selection.main,{anchor:r,head:o}=n,a=this.toEditorPos(i.updateRangeStart),l=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:a,drifted:!1});let h={from:a,to:l,insert:q.of(i.text.split(` -`))};if(h.from==this.from&&rthis.to&&(h.to=r),h.from==h.to&&!h.insert.length){let c=A.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));c.main.eq(n)||e.dispatch({selection:c,userEvent:"select"});return}if((M.mac||M.android)&&h.from==o-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(h={from:a,to:l,insert:q.of([i.text.replace("."," ")])}),this.pendingContextChange=h,!e.state.readOnly){let c=this.to-this.from+(h.to-h.from+h.insert.length);Lo(e,h,A.single(this.toEditorPos(i.selectionStart,c),this.toEditorPos(i.selectionEnd,c)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=i=>{let n=[],r=null;for(let o=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);o{let n=[];for(let r of i.getTextFormats()){let o=r.underlineStyle,a=r.underlineThickness;if(o!="None"&&a!="None"){let l=this.toEditorPos(r.rangeStart),h=this.toEditorPos(r.rangeEnd);if(l{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let n=yn(i.root);n&&n.rangeCount&&this.editContext.updateSelectionBounds(n.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,n=this.pendingContextChange;return e.changes.iterChanges((r,o,a,l,h)=>{if(i)return;let c=h.length-(o-r);if(n&&o>=n.to)if(n.from==r&&n.to==o&&n.insert.eq(h)){n=this.pendingContextChange=null,t+=c,this.to+=c;return}else n=null,this.revertPending(e.state);if(r+=t,o+=t,o<=this.from)this.from+=c,this.to+=c;else if(rthis.to||this.to-this.from+h.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(o),h.toString()),this.to+=c}t+=c}),n&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange;this.composing&&(this.composing.drifted||e.transactions.some(i=>!i.isUserEvent("input.type")&&i.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),n=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=n)&&this.editContext.updateSelection(i,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class V{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(n=>n.forEach(r=>i(r,this)))||(n=>this.update(n)),this.dispatch=this.dispatch.bind(this),this._root=e.root||qO(e.parent)||document,this.viewState=new ol(e.state||Y.create(e)),e.scrollTo&&e.scrollTo.is(Dn)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ji).map(n=>new er(n));for(let n of this.plugins)n.update(this);this.observer=new cg(this),this.inputState=new Cm(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Va(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof ve?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,n,r=this.state;for(let f of e){if(f.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=f.state}if(this.destroyed){this.viewState.state=r;return}let o=this.hasFocus,a=0,l=null;e.some(f=>f.annotation(Zc))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=Cc(r,o),l||(a=1));let h=this.observer.delayedAndroidKey,c=null;if(h?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(c=null)):this.observer.clear(),r.facet(Y.phrases)!=this.state.facet(Y.phrases))return this.setState(r);n=Os.create(this,r,e),n.flags|=a;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let f of e){if(u&&(u=u.map(f.changes)),f.scrollIntoView){let{main:d}=f.state.selection;u=new $i(d.empty?d:A.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of f.effects)d.is(Dn)&&(u=d.value.clip(this.state))}this.viewState.update(n,u),this.bidiCache=gs.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(en)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(Nn)!=n.state.facet(Nn)&&(this.viewState.mustMeasureContent=!0),(t||i||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!n.empty)for(let f of this.state.facet(io))try{f(n)}catch(d){gt(this.state,d,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Pc(this,c)&&h.force&&Pi(this.contentDOM,h.key,h.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new ol(e),this.plugins=e.facet(Ji).map(i=>new er(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new Va(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ji),i=e.state.facet(Ji);if(t!=i){let n=[];for(let r of i){let o=t.indexOf(r);if(o<0)n.push(new er(r));else{let a=this.plugins[o];a.mustUpdate=e,n.push(a)}}for(let r of this.plugins)r.mustUpdate!=e&&r.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=e;for(let n=0;n-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,n=i.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:o}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(Wh(i))r=-1,o=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(n);r=d.from,o=d.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];l&4||([this.measureRequests,h]=[h,this.measureRequests]);let c=h.map(d=>{try{return d.read(this)}catch(p){return gt(this.state,p),cl}}),u=Os.create(this,this.state,[]),f=!1;u.flags|=l,t?t.flags|=l:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),f=this.docView.update(u),f&&this.docViewUpdate());for(let d=0;d1||p<-1){n=n+p,i.scrollTop=n/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(io))a(t)}get themeClasses(){return oo+" "+(this.state.facet(ro)?Dc:Lc)+" "+this.state.facet(Nn)}updateAttrs(){let e=ul(this,bc,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet($t)?"true":"false",class:"cm-content",style:`${M.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),ul(this,Mo,t);let i=this.observer.ignore(()=>{let n=Hr(this.contentDOM,this.contentAttrs,t),r=Hr(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let n of i.effects)if(n.is(V.announce)){t&&(this.announceDOM.textContent=""),t=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(en);let e=this.state.facet(V.cspNonce);Bt.mount(this.root,this.styleModules.concat(lg).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;ti.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return ir(this,e,qa(this,e,t,i))}moveByGroup(e,t){return ir(this,e,qa(this,e,t,i=>km(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),n=this.textDirectionAt(e.from),r=i[t?i.length-1:0];return A.cursor(r.side(t,n)+e.from,r.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,i=!0){return Qm(this,e,t,i)}moveVertically(e,t,i){return ir(this,e,vm(this,e,t,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),vc(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let n=this.state.doc.lineAt(e),r=this.bidiSpans(n),o=r[Vt.find(r,e-n.from,-1,t)];return Cs(i,o.dir==Se.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(mc)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>dg)return lc(e.length);let t=this.textDirectionAt(e.from),i;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||ac(r.isolates,i=ja(this,e))))return r.order;i||(i=ja(this,e));let n=rm(e.text,t,i);return this.bidiCache.push(new gs(e.from,e.to,t,i,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||M.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Uh(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Dn.of(new $i(typeof e=="number"?A.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return Dn.of(new $i(A.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Ut.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Ut.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=Bt.newName(),n=[Nn.of(i),en.of(ao(`.${i}`,e))];return t&&t.dark&&n.push(ro.of(!0)),n}static baseTheme(e){return As.lowest(en.of(ao("."+oo,e,Xc)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),n=i&&ie.get(i)||ie.get(e);return((t=n==null?void 0:n.rootView)===null||t===void 0?void 0:t.view)||null}}V.styleModule=en;V.inputHandler=pc;V.clipboardInputFilter=Zo;V.clipboardOutputFilter=Co;V.scrollHandler=gc;V.focusChangeEffect=Oc;V.perLineTextDirection=mc;V.exceptionSink=dc;V.updateListener=io;V.editable=$t;V.mouseSelectionStyle=fc;V.dragMovesSelection=uc;V.clickAddsSelectionRange=cc;V.decorations=Sn;V.outerDecorations=Sc;V.atomicRanges=Eo;V.bidiIsolatedRanges=xc;V.scrollMargins=wc;V.darkTheme=ro;V.cspNonce=j.define({combine:s=>s.length?s[0]:""});V.contentAttributes=Mo;V.editorAttributes=bc;V.lineWrapping=V.contentAttributes.of({class:"cm-lineWrapping"});V.announce=he.define();const dg=4096,cl={};class gs{constructor(e,t,i,n,r,o){this.from=e,this.to=t,this.dir=i,this.isolates=n,this.fresh=r,this.order=o}static update(e,t){if(t.empty&&!e.some(r=>r.fresh))return e;let i=[],n=e.length?e[e.length-1].dir:Se.LTR;for(let r=Math.max(0,e.length-10);r=0;n--){let r=i[n],o=typeof r=="function"?r(s):r;o&&Fr(o,t)}return t}const pg=M.mac?"mac":M.windows?"win":M.linux?"linux":"key";function Og(s,e){const t=s.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let n,r,o,a;for(let l=0;li.concat(n),[]))),t}let It=null;const yg=4e3;function bg(s,e=pg){let t=Object.create(null),i=Object.create(null),n=(o,a)=>{let l=i[o];if(l==null)i[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,a,l,h,c)=>{var u,f;let d=t[o]||(t[o]=Object.create(null)),p=a.split(/ (?!$)/).map(m=>Og(m,e));for(let m=1;m{let y=It={view:T,prefix:Q,scope:o};return setTimeout(()=>{It==y&&(It=null)},yg),!0}]})}let O=p.join(" ");n(O,!1);let g=d[O]||(d[O]={preventDefault:!1,stopPropagation:!1,run:((f=(u=d._any)===null||u===void 0?void 0:u.run)===null||f===void 0?void 0:f.slice())||[]});l&&g.run.push(l),h&&(g.preventDefault=!0),c&&(g.stopPropagation=!0)};for(let o of s){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let h of a){let c=t[h]||(t[h]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:u}=o;for(let f in c)c[f].run.push(d=>u(d,lo))}let l=o[e]||o.key;if(l)for(let h of a)r(h,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(h,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return t}let lo=null;function Sg(s,e,t,i){lo=e;let n=VO(e),r=wO(n,0),o=QO(r)==n.length&&n!=" ",a="",l=!1,h=!1,c=!1;It&&It.view==t&&It.scope==i&&(a=It.prefix+" ",Tc.indexOf(e.keyCode)<0&&(h=!0,It=null));let u=new Set,f=g=>{if(g){for(let m of g.run)if(!u.has(m)&&(u.add(m),m(t)))return g.stopPropagation&&(c=!0),!0;g.preventDefault&&(g.stopPropagation&&(c=!0),h=!0)}return!1},d=s[i],p,O;return d&&(f(d[a+zn(n,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(M.windows&&e.ctrlKey&&e.altKey)&&(p=Nt[e.keyCode])&&p!=n?(f(d[a+zn(p,e,!0)])||e.shiftKey&&(O=gn[e.keyCode])!=n&&O!=p&&f(d[a+zn(O,e,!1)]))&&(l=!0):o&&e.shiftKey&&f(d[a+zn(n,e,!0)])&&(l=!0),!l&&f(d._any)&&(l=!0)),h&&(l=!0),l&&c&&e.stopPropagation(),lo=null,l}const xg=!(M.ios&&M.webkit&&M.webkit_version<534),dl={".cm-line":{},".cm-content":{}};xg&&(dl[".cm-line"].caretColor=dl[".cm-content"].caretColor="transparent !important");class pi extends ci{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}pi.prototype.elementClass="";pi.prototype.toDOM=void 0;pi.prototype.mapMode=Ce.TrackBefore;pi.prototype.startSide=pi.prototype.endSide=-1;pi.prototype.point=!0;const rr=j.define(),wg=j.define(),ns=j.define(),pl=j.define({combine:s=>s.some(e=>e)});function Qg(s){return[kg]}const kg=Ut.fromClass(class{constructor(s){this.view=s,this.prevViewport=s.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=s.state.facet(ns).map(e=>new ml(s,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!s.state.facet(pl),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),s.scrollDOM.insertBefore(this.dom,s.contentDOM)}update(s){if(this.updateGutters(s)){let e=this.prevViewport,t=s.view.viewport,i=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(i<(t.to-t.from)*.8)}s.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(pl)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=s.view.viewport}syncGutters(s){let e=this.dom.nextSibling;s&&this.dom.remove();let t=K.iter(this.view.state.facet(rr),this.view.viewport.from),i=[],n=this.gutters.map(r=>new vg(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let o=!0;for(let a of r.type)if(a.type==Je.Text&&o){ho(t,i,a.from);for(let l of n)l.line(this.view,a,i);o=!1}else if(a.widget)for(let l of n)l.widget(this.view,a)}else if(r.type==Je.Text){ho(t,i,r.from);for(let o of n)o.line(this.view,r,i)}else if(r.widget)for(let o of n)o.widget(this.view,r);for(let r of n)r.finish();s&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(s){let e=s.startState.facet(ns),t=s.state.facet(ns),i=s.docChanged||s.heightChanged||s.viewportChanged||!K.eq(s.startState.facet(rr),s.state.facet(rr),s.view.viewport.from,s.view.viewport.to);if(e==t)for(let n of this.gutters)n.update(s)&&(i=!0);else{i=!0;let n=[];for(let r of t){let o=e.indexOf(r);o<0?n.push(new ml(this.view,r)):(this.gutters[o].update(s),n.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),n.indexOf(r)<0&&r.destroy();for(let r of n)this.dom.appendChild(r.dom);this.gutters=n}return i}destroy(){for(let s of this.gutters)s.destroy();this.dom.remove()}},{provide:s=>V.scrollMargins.of(e=>{let t=e.plugin(s);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==Se.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function Ol(s){return Array.isArray(s)?s:[s]}function ho(s,e,t){for(;s.value&&s.from<=t;)s.from==t&&e.push(s.value),s.next()}class vg{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=K.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:n}=this,r=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==n.elements.length){let a=new Ic(e,o,r,i);n.elements.push(a),n.dom.appendChild(a.dom)}else n.elements[this.i].update(e,o,r,i);this.height=t.bottom,this.i++}line(e,t,i){let n=[];ho(this.cursor,n,t.from),i.length&&(n=n.concat(i));let r=this.gutter.config.lineMarker(e,t,n);r&&n.unshift(r);let o=this.gutter;n.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,n)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),n=i?[i]:null;for(let r of e.state.facet(wg)){let o=r(e,t.widget,t);o&&(n||(n=[])).push(o)}n&&this.addElement(e,t,n)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class ml{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,n=>{let r=n.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let l=r.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=n.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[i](e,a,n)&&n.preventDefault()});this.markers=Ol(t.markers(e)),t.initialSpacer&&(this.spacer=new Ic(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ol(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],e);n!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[n])}let i=e.view.viewport;return!K.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Ic{constructor(e,t,i,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,n)}update(e,t,i,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),Pg(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let i="cm-gutterElement",n=this.dom.firstChild;for(let r=0,o=0;;){let a=o,l=rr(a,l,h)||o(a,l,h):o}return i}})}});class or extends pi{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function ar(s,e){return s.state.facet(Si).formatNumber(e,s.state)}const _g=ns.compute([Si],s=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet($g)},lineMarker(e,t,i){return i.some(n=>n.toDOM)?null:new or(ar(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,i)=>{for(let n of e.state.facet(Tg)){let r=n(e,t,i);if(r)return r}return null},lineMarkerChange:e=>e.startState.facet(Si)!=e.state.facet(Si),initialSpacer(e){return new or(ar(e,gl(e.state.doc.lines)))},updateSpacer(e,t){let i=ar(t.view,gl(t.view.state.doc.lines));return i==e.number?e:new or(i)},domEventHandlers:s.facet(Si).domEventHandlers}));function Ag(s={}){return[Si.of(s),Qg(),_g]}function gl(s){let e=9;for(;e{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=je.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}z.closedBy=new z({deserialize:s=>s.split(" ")});z.openedBy=new z({deserialize:s=>s.split(" ")});z.group=new z({deserialize:s=>s.split(" ")});z.isolate=new z({deserialize:s=>{if(s&&s!="rtl"&&s!="ltr"&&s!="auto")throw new RangeError("Invalid value for isolate: "+s);return s||"auto"}});z.contextHash=new z({perNode:!0});z.lookAhead=new z({perNode:!0});z.mounted=new z({perNode:!0});class bs{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}static get(e){return e&&e.props&&e.props[z.mounted.id]}}const Zg=Object.create(null);class je{constructor(e,t,i,n=0){this.name=e,this.props=t,this.id=i,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):Zg,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),n=new je(e.name||"",t,e.id,i);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(z.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let n of i.split(" "))t[n]=e[i];return i=>{for(let n=i.prop(z.group),r=-1;r<(n?n.length:0);r++){let o=t[r<0?i.name:n[r]];if(o)return o}}}}je.none=new je("",Object.create(null),0,8);class Io{constructor(e){this.types=e;for(let t=0;t0;for(let l=this.cursor(o|be.IncludeAnonymous);;){let h=!1;if(l.from<=r&&l.to>=n&&(!a&&l.type.isAnonymous||t(l)!==!1)){if(l.firstChild())continue;h=!0}for(;h&&i&&(a||!l.type.isAnonymous)&&i(l),!l.nextSibling();){if(!l.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Bo(je.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,n)=>new Oe(this.type,t,i,n,this.propValues),e.makeTree||((t,i,n)=>new Oe(je.none,t,i,n)))}static build(e){return Lg(e)}}Oe.empty=new Oe(je.none,[],[],0);class jo{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new jo(this.buffer,this.index)}}class qt{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return je.none}toString(){let e=[];for(let t=0;t0));l=o[l+3]);return a}slice(e,t,i){let n=this.buffer,r=new Uint16Array(t-e),o=0;for(let a=e,l=0;a=e&&te;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function xn(s,e,t,i){for(var n;s.from==s.to||(t<1?s.from>=e:s.from>e)||(t>-1?s.to<=e:s.to0?a.length:-1;e!=h;e+=t){let c=a[e],u=l[e]+o.from;if(Vc(n,i,u,u+c.length)){if(c instanceof qt){if(r&be.ExcludeBuffers)continue;let f=c.findChild(0,c.buffer.length,t,i-u,n);if(f>-1)return new yt(new Cg(o,c,e,u),null,f)}else if(r&be.IncludeAnonymous||!c.type.isAnonymous||Vo(c)){let f;if(!(r&be.IgnoreMounts)&&(f=bs.get(c))&&!f.overlay)return new Ie(f.tree,u,e,o);let d=new Ie(c,u,e,o);return r&be.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(t<0?c.children.length-1:0,t,i,n)}}}if(r&be.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let n;if(!(i&be.IgnoreOverlays)&&(n=bs.get(this._tree))&&n.overlay){let r=e-this.from;for(let{from:o,to:a}of n.overlay)if((t>0?o<=r:o=r:a>r))return new Ie(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function bl(s,e,t,i){let n=s.cursor(),r=[];if(!n.firstChild())return r;if(t!=null){for(let o=!1;!o;)if(o=n.type.is(t),!n.nextSibling())return r}for(;;){if(i!=null&&n.type.is(i))return r;if(n.type.is(e)&&r.push(n.node),!n.nextSibling())return i==null?r:[]}}function co(s,e,t=e.length-1){for(let i=s;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class Cg{constructor(e,t,i,n){this.parent=e,this.buffer=t,this.index=i,this.start=n}}class yt extends Bc{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,i);return r<0?null:new yt(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&be.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new yt(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new yt(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new yt(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,n=this.index+4,r=i.buffer[this.index+3];if(r>n){let o=i.buffer[this.index+1];e.push(i.slice(n,r,o)),t.push(0)}return new Oe(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Nc(s){if(!s.length)return null;let e=0,t=s[0];for(let r=1;rt.from||o.to=e){let a=new Ie(o.tree,o.overlay[0].from+r.from,-1,r);(n||(n=[i])).push(xn(a,e,t,!1))}}return n?Nc(n):i}class uo{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Ie)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=i+n.buffer[e+1],this.to=i+n.buffer[e+2],!0}yield(e){return e?e instanceof Ie?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:n}=this.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,i);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&be.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&be.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&be.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let n=i<0?0:this.stack[i]+4;if(this.index!=n)return this.yieldBuf(t.findChild(n,this.index,-1,0,4))}else{let n=t.buffer[this.index+3];if(n<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(n)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:n}=this;if(n){if(e>0){if(this.index-1)for(let r=t+e,o=e<0?-1:i._tree.children.length;r!=o;r+=e){let a=i._tree.children[r];if(this.mode&be.IncludeAnonymous||a instanceof qt||!a.type.isAnonymous||Vo(a))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==n){if(n==this.index)return o;t=o,i=r+1;break e}n=this.stack[--r]}for(let n=i;n=0;r--){if(r<0)return co(this._tree,e,n);let o=i[t.buffer[this.stack[r]]];if(!o.isAnonymous){if(e[n]&&e[n]!=o.name)return!1;n--}}return!0}}function Vo(s){return s.children.some(e=>e instanceof qt||!e.type.isAnonymous||Vo(e))}function Lg(s){var e;let{buffer:t,nodeSet:i,maxBufferLength:n=jc,reused:r=[],minRepeatType:o=i.types.length}=s,a=Array.isArray(t)?new jo(t,t.length):t,l=i.types,h=0,c=0;function u(v,w,x,P,k,L){let{id:X,start:D,end:_,size:B}=a,G=c,ne=h;for(;B<0;)if(a.next(),B==-1){let Pe=r[X];x.push(Pe),P.push(D-v);return}else if(B==-3){h=X;return}else if(B==-4){c=X;return}else throw new RangeError(`Unrecognized record size: ${B}`);let N=l[X],J,re,me=D-v;if(_-D<=n&&(re=g(a.pos-w,k))){let Pe=new Uint16Array(re.size-re.skip),ge=a.pos-re.size,xe=Pe.length;for(;a.pos>ge;)xe=m(re.start,Pe,xe);J=new qt(Pe,_-re.start,i),me=re.start-v}else{let Pe=a.pos-B;a.next();let ge=[],xe=[],Ve=X>=o?X:-1,nt=0,wt=_;for(;a.pos>Pe;)Ve>=0&&a.id==Ve&&a.size>=0?(a.end<=wt-n&&(p(ge,xe,D,nt,a.end,wt,Ve,G,ne),nt=ge.length,wt=a.end),a.next()):L>2500?f(D,Pe,ge,xe):u(D,Pe,ge,xe,Ve,L+1);if(Ve>=0&&nt>0&&nt-1&&nt>0){let We=d(N,ne);J=Bo(N,ge,xe,0,ge.length,0,_-D,We,We)}else J=O(N,ge,xe,_-D,G-_,ne)}x.push(J),P.push(me)}function f(v,w,x,P){let k=[],L=0,X=-1;for(;a.pos>w;){let{id:D,start:_,end:B,size:G}=a;if(G>4)a.next();else{if(X>-1&&_=0;B-=3)D[G++]=k[B],D[G++]=k[B+1]-_,D[G++]=k[B+2]-_,D[G++]=G;x.push(new qt(D,k[2]-_,i)),P.push(_-v)}}function d(v,w){return(x,P,k)=>{let L=0,X=x.length-1,D,_;if(X>=0&&(D=x[X])instanceof Oe){if(!X&&D.type==v&&D.length==k)return D;(_=D.prop(z.lookAhead))&&(L=P[X]+D.length+_)}return O(v,x,P,k,L,w)}}function p(v,w,x,P,k,L,X,D,_){let B=[],G=[];for(;v.length>P;)B.push(v.pop()),G.push(w.pop()+x-k);v.push(O(i.types[X],B,G,L-k,D-L,_)),w.push(k-x)}function O(v,w,x,P,k,L,X){if(L){let D=[z.contextHash,L];X=X?[D].concat(X):[D]}if(k>25){let D=[z.lookAhead,k];X=X?[D].concat(X):[D]}return new Oe(v,w,x,P,X)}function g(v,w){let x=a.fork(),P=0,k=0,L=0,X=x.end-n,D={size:0,start:0,skip:0};e:for(let _=x.pos-v;x.pos>_;){let B=x.size;if(x.id==w&&B>=0){D.size=P,D.start=k,D.skip=L,L+=4,P+=4,x.next();continue}let G=x.pos-B;if(B<0||G<_||x.start=o?4:0,N=x.start;for(x.next();x.pos>G;){if(x.size<0)if(x.size==-3)ne+=4;else break e;else x.id>=o&&(ne+=4);x.next()}k=N,P+=B,L+=ne}return(w<0||P==v)&&(D.size=P,D.start=k,D.skip=L),D.size>4?D:void 0}function m(v,w,x){let{id:P,start:k,end:L,size:X}=a;if(a.next(),X>=0&&P4){let _=a.pos-(X-4);for(;a.pos>_;)x=m(v,w,x)}w[--x]=D,w[--x]=L-v,w[--x]=k-v,w[--x]=P}else X==-3?h=P:X==-4&&(c=P);return x}let Q=[],T=[];for(;a.pos>0;)u(s.start||0,s.bufferStart||0,Q,T,-1,0);let y=(e=s.length)!==null&&e!==void 0?e:Q.length?T[0]+Q[0].length:0;return new Oe(l[s.topID],Q.reverse(),T.reverse(),y)}const Sl=new WeakMap;function ss(s,e){if(!s.isAnonymous||e instanceof qt||e.type!=s)return 1;let t=Sl.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=s||!(i instanceof Oe)){t=1;break}t+=ss(s,i)}Sl.set(e,t)}return t}function Bo(s,e,t,i,n,r,o,a,l){let h=0;for(let p=i;p=c)break;w+=x}if(T==y+1){if(w>c){let x=p[y];d(x.children,x.positions,0,x.children.length,O[y]+Q);continue}u.push(p[y])}else{let x=O[T-1]+p[T-1].length-v;u.push(Bo(s,p,O,y,T,v,x,null,l))}f.push(v+Q-r)}}return d(e,t,i,n,0),(a||l)(u,f,o)}class Dg{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof yt?this.setBuffer(e.context.buffer,e.index,t):e instanceof Ie&&this.map.set(e.tree,t)}get(e){return e instanceof yt?this.getBuffer(e.context.buffer,e.index):e instanceof Ie?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class li{constructor(e,t,i,n,r=!1,o=!1){this.from=e,this.to=t,this.tree=i,this.offset=n,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let n=[new li(0,e.length,e,0,!1,i)];for(let r of t)r.to>e.length&&n.push(r);return n}static applyChanges(e,t,i=128){if(!t.length)return e;let n=[],r=1,o=e.length?e[0]:null;for(let a=0,l=0,h=0;;a++){let c=a=i)for(;o&&o.from=f.from||u<=f.to||h){let d=Math.max(f.from,l)-h,p=Math.min(f.to,u)-h;f=d>=p?null:new li(d,p,f.tree,f.offset+h,a>0,!!c)}if(f&&n.push(f),o.to>u)break;o=rnew lr(n.from,n.to)):[new lr(0,0)]:[new lr(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let n=this.startParse(e,t,i);for(;;){let r=n.advance();if(r)return r}}}class Xg{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new z({perNode:!0});let Ig=0;class Ke{constructor(e,t,i,n){this.name=e,this.set=t,this.base=i,this.modified=n,this.id=Ig++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i=typeof e=="string"?e:"?";if(e instanceof Ke&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new Ke(i,[],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(e){let t=new Ss(e);return i=>i.modified.indexOf(t)>-1?i:Ss.get(i.base||i,i.modified.concat(t).sort((n,r)=>n.id-r.id))}}let jg=0;class Ss{constructor(e){this.name=e,this.instances=[],this.id=jg++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(a=>a.base==e&&Vg(t,a.modified));if(i)return i;let n=[],r=new Ke(e.name,n,e,t);for(let a of t)a.instances.push(r);let o=Bg(t);for(let a of e.set)if(!a.modified.length)for(let l of o)n.push(Ss.get(a,l));return r}}function Vg(s,e){return s.length==e.length&&s.every((t,i)=>t==e[i])}function Bg(s){let e=[[]];for(let t=0;ti.length-t.length)}function Uc(s){let e=Object.create(null);for(let t in s){let i=s[t];Array.isArray(i)||(i=[i]);for(let n of t.split(" "))if(n){let r=[],o=2,a=n;for(let u=0;;){if(a=="..."&&u>0&&u+3==n.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+n);if(r.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),u+=f[0].length,u==n.length)break;let d=n[u++];if(u==n.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+n);a=n.slice(u)}let l=r.length-1,h=r[l];if(!h)throw new RangeError("Invalid path: "+n);let c=new xs(i,o,l>0?r.slice(0,l):null);e[h]=c.sort(e[h])}}return qc.add(e)}const qc=new z;class xs{constructor(e,t,i,n){this.tags=e,this.mode=t,this.context=i,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let o=n;for(let a of r)for(let l of a.set){let h=t[l.id];if(h){o=o?o+" "+h:h;break}}return o},scope:i}}function Ng(s,e){let t=null;for(let i of s){let n=i.style(e);n&&(t=t?t+" "+n:n)}return t}function zg(s,e,t,i=0,n=s.length){let r=new Ug(i,Array.isArray(e)?e:[e],t);r.highlightRange(s.cursor(),i,n,"",r.highlighters),r.flush(n)}class Ug{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,n,r){let{type:o,from:a,to:l}=e;if(a>=i||l<=t)return;o.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(o)));let h=n,c=qg(e)||xs.empty,u=Ng(r,c.tags);if(u&&(h&&(h+=" "),h+=u,c.mode==1&&(n+=(n?" ":"")+u)),this.startSpan(Math.max(t,a),h),c.opaque)return;let f=e.tree&&e.tree.prop(z.mounted);if(f&&f.overlay){let d=e.node.enter(f.overlay[0].from+a,1),p=this.highlighters.filter(g=>!g.scope||g.scope(f.tree.type)),O=e.firstChild();for(let g=0,m=a;;g++){let Q=g=T||!e.nextSibling())););if(!Q||T>i)break;m=Q.to+a,m>t&&(this.highlightRange(d.cursor(),Math.max(t,Q.from+a),Math.min(i,m),"",p),this.startSpan(Math.min(i,m),h))}O&&e.parent()}else if(e.firstChild()){f&&(n="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,n,r),this.startSpan(Math.min(i,e.to),h)}while(e.nextSibling());e.parent()}}}function qg(s){let e=s.type.prop(qc);for(;e&&e.context&&!s.matchContext(e.context);)e=e.next;return e||null}const R=Ke.define,qn=R(),Lt=R(),xl=R(Lt),wl=R(Lt),Dt=R(),Wn=R(Dt),hr=R(Dt),pt=R(),Ft=R(pt),ft=R(),dt=R(),fo=R(),qi=R(fo),Gn=R(),b={comment:qn,lineComment:R(qn),blockComment:R(qn),docComment:R(qn),name:Lt,variableName:R(Lt),typeName:xl,tagName:R(xl),propertyName:wl,attributeName:R(wl),className:R(Lt),labelName:R(Lt),namespace:R(Lt),macroName:R(Lt),literal:Dt,string:Wn,docString:R(Wn),character:R(Wn),attributeValue:R(Wn),number:hr,integer:R(hr),float:R(hr),bool:R(Dt),regexp:R(Dt),escape:R(Dt),color:R(Dt),url:R(Dt),keyword:ft,self:R(ft),null:R(ft),atom:R(ft),unit:R(ft),modifier:R(ft),operatorKeyword:R(ft),controlKeyword:R(ft),definitionKeyword:R(ft),moduleKeyword:R(ft),operator:dt,derefOperator:R(dt),arithmeticOperator:R(dt),logicOperator:R(dt),bitwiseOperator:R(dt),compareOperator:R(dt),updateOperator:R(dt),definitionOperator:R(dt),typeOperator:R(dt),controlOperator:R(dt),punctuation:fo,separator:R(fo),bracket:qi,angleBracket:R(qi),squareBracket:R(qi),paren:R(qi),brace:R(qi),content:pt,heading:Ft,heading1:R(Ft),heading2:R(Ft),heading3:R(Ft),heading4:R(Ft),heading5:R(Ft),heading6:R(Ft),contentSeparator:R(pt),list:R(pt),quote:R(pt),emphasis:R(pt),strong:R(pt),link:R(pt),monospace:R(pt),strikethrough:R(pt),inserted:R(),deleted:R(),changed:R(),invalid:R(),meta:Gn,documentMeta:R(Gn),annotation:R(Gn),processingInstruction:R(Gn),definition:Ke.defineModifier("definition"),constant:Ke.defineModifier("constant"),function:Ke.defineModifier("function"),standard:Ke.defineModifier("standard"),local:Ke.defineModifier("local"),special:Ke.defineModifier("special")};for(let s in b){let e=b[s];e instanceof Ke&&(e.name=s)}Wc([{tag:b.link,class:"tok-link"},{tag:b.heading,class:"tok-heading"},{tag:b.emphasis,class:"tok-emphasis"},{tag:b.strong,class:"tok-strong"},{tag:b.keyword,class:"tok-keyword"},{tag:b.atom,class:"tok-atom"},{tag:b.bool,class:"tok-bool"},{tag:b.url,class:"tok-url"},{tag:b.labelName,class:"tok-labelName"},{tag:b.inserted,class:"tok-inserted"},{tag:b.deleted,class:"tok-deleted"},{tag:b.literal,class:"tok-literal"},{tag:b.string,class:"tok-string"},{tag:b.number,class:"tok-number"},{tag:[b.regexp,b.escape,b.special(b.string)],class:"tok-string2"},{tag:b.variableName,class:"tok-variableName"},{tag:b.local(b.variableName),class:"tok-variableName tok-local"},{tag:b.definition(b.variableName),class:"tok-variableName tok-definition"},{tag:b.special(b.variableName),class:"tok-variableName2"},{tag:b.definition(b.propertyName),class:"tok-propertyName tok-definition"},{tag:b.typeName,class:"tok-typeName"},{tag:b.namespace,class:"tok-namespace"},{tag:b.className,class:"tok-className"},{tag:b.macroName,class:"tok-macroName"},{tag:b.propertyName,class:"tok-propertyName"},{tag:b.operator,class:"tok-operator"},{tag:b.comment,class:"tok-comment"},{tag:b.meta,class:"tok-meta"},{tag:b.invalid,class:"tok-invalid"},{tag:b.punctuation,class:"tok-punctuation"}]);var cr;const xi=new z;function Gc(s){return j.define({combine:s?e=>e.concat(s):void 0})}const No=new z;class st{constructor(e,t,i=[],n=""){this.data=e,this.name=n,Y.prototype.hasOwnProperty("tree")||Object.defineProperty(Y.prototype,"tree",{get(){return qe(this)}}),this.parser=t,this.extension=[Di.of(this),Y.languageData.of((r,o,a)=>{let l=Ql(r,o,a),h=l.type.prop(xi);if(!h)return[];let c=r.facet(h),u=l.type.prop(No);if(u){let f=l.resolve(o-l.from,a);for(let d of u)if(d.test(f,r)){let p=r.facet(d.facet);return d.type=="replace"?p:p.concat(c)}}return c})].concat(i)}isActiveAt(e,t,i=-1){return Ql(e,t,i).type.prop(xi)==this.data}findRegions(e){let t=e.facet(Di);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],n=(r,o)=>{if(r.prop(xi)==this.data){i.push({from:o,to:o+r.length});return}let a=r.prop(z.mounted);if(a){if(a.tree.prop(xi)==this.data){if(a.overlay)for(let l of a.overlay)i.push({from:l.from+o,to:l.to+o});else i.push({from:o,to:o+r.length});return}else if(a.overlay){let l=i.length;if(n(a.tree,a.overlay[0].from+o),i.length>l)return}}for(let l=0;li.isTop?t:void 0)]}),e.name)}configure(e,t){return new ws(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function qe(s){let e=s.field(st.state,!1);return e?e.tree:Oe.empty}class Wg{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let Wi=null;class Qs{constructor(e,t,i=[],n,r,o,a,l){this.parser=e,this.state=t,this.fragments=i,this.tree=n,this.treeLen=r,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new Qs(e,t,[],Oe.empty,0,i,[],null)}startParse(){return this.parser.startParse(new Wg(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=Oe.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let n=Date.now()+e;e=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(li.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Wi;Wi=this;try{return e()}finally{Wi=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=kl(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:n,treeLen:r,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((h,c,u,f)=>l.push({fromA:h,toA:c,fromB:u,toB:f})),i=li.applyChanges(i,l),n=Oe.empty,r=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let h of this.skipped){let c=e.mapPos(h.from,1),u=e.mapPos(h.to,-1);ce.from&&(this.fragments=kl(this.fragments,n,r),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends zc{createParse(t,i,n){let r=n[0].from,o=n[n.length-1].to;return{parsedPos:r,advance(){let l=Wi;if(l){for(let h of n)l.tempSkipped.push(h);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new Oe(je.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Wi}}function kl(s,e,t){return li.applyChanges(s,[{fromA:e,toA:t,fromB:e,toB:t}])}class Li{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new Li(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=Qs.create(e.facet(Di).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new Li(i)}}st.state=Wt.define({create:Li.init,update(s,e){for(let t of e.effects)if(t.is(st.setState))return t.value;return e.startState.facet(Di)!=e.state.facet(Di)?Li.init(e.state):s.apply(e)}});let Yc=s=>{let e=setTimeout(()=>s(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Yc=s=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(s,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const ur=typeof navigator<"u"&&(!((cr=navigator.scheduling)===null||cr===void 0)&&cr.isInputPending)?()=>navigator.scheduling.isInputPending():null,Gg=Ut.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(st.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(st.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=Yc(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndn+1e3,l=r.context.work(()=>ur&&ur()||Date.now()>o,n+(a?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:st.setState.of(new Li(r.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>gt(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Di=j.define({combine(s){return s.length?s[0]:null},enables:s=>[st.state,Gg,V.contentAttributes.compute([s],e=>{let t=e.facet(s);return t&&t.name?{"data-language":t.name}:{}})]});class Yg{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const Fg=j.define(),Ds=j.define({combine:s=>{if(!s.length)return" ";let e=s[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(s[0]));return e}});function ks(s){let e=s.facet(Ds);return e.charCodeAt(0)==9?s.tabSize*e.length:e.length}function vs(s,e){let t="",i=s.tabSize,n=s.facet(Ds)[0];if(n==" "){for(;e>=i;)t+=" ",e-=i;n=" "}for(let r=0;r=e?Hg(s,t,e):null}class Xs{constructor(e,t={}){this.state=e,this.options=t,this.unit=ks(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:r}=this.options;return n!=null&&n>=i.from&&n<=i.to?r&&n==e?{text:"",from:e}:(t<0?n-1&&(r+=o-this.countColumn(i,i.search(/\S|$/))),r}countColumn(e,t=e.length){return Zs(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:n}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let o=r(n);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Hc=new z;function Hg(s,e,t){let i=e.resolveStack(t),n=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(n!=i.node){let r=[];for(let o=n;o&&!(o.from==i.node.from&&o.type==i.node.type);o=o.parent)r.push(o);for(let o=r.length-1;o>=0;o--)i={node:r[o],next:i}}return Kc(i,s,t)}function Kc(s,e,t){for(let i=s;i;i=i.next){let n=Jg(i.node);if(n)return n(zo.create(e,t,i))}return 0}function Kg(s){return s.pos==s.options.simulateBreak&&s.options.simulateDoubleBreak}function Jg(s){let e=s.type.prop(Hc);if(e)return e;let t=s.firstChild,i;if(t&&(i=t.type.prop(z.closedBy))){let n=s.lastChild,r=n&&i.indexOf(n.name)>-1;return o=>Jc(o,!0,1,void 0,r&&!Kg(o)?n.from:void 0)}return s.parent==null?e0:null}function e0(){return 0}class zo extends Xs{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new zo(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(t0(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return Kc(this.context.next,this.base,this.pos)}}function t0(s,e){for(let t=e;t;t=t.parent)if(s==t)return!0;return!1}function i0(s){let e=s.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let n=s.options.simulateBreak,r=s.state.doc.lineAt(t.from),o=n==null||n<=r.from?r.to:Math.min(r.to,n);for(let a=t.to;;){let l=e.childAfter(a);if(!l||l==i)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let h=/^ */.exec(r.text.slice(t.to-r.from))[0].length;return{from:t.from,to:t.to+h}}a=l.to}}function n0({closing:s,align:e=!0,units:t=1}){return i=>Jc(i,e,t,s)}function Jc(s,e,t,i,n){let r=s.textAfter,o=r.match(/^\s*/)[0].length,a=i&&r.slice(o,o+i.length)==i||n==s.pos+o,l=e?i0(s):null;return l?a?s.column(l.from):s.column(l.to):s.baseIndent+(a?0:s.unit*t)}const s0=s=>s.baseIndent;function fr({except:s,units:e=1}={}){return t=>{let i=s&&s.test(t.textAfter);return t.baseIndent+(i?0:e*t.unit)}}const r0=new z;function o0(s){let e=s.firstChild,t=s.lastChild;return e&&e.toa.prop(xi)==o.data:o?a=>a==o:void 0,this.style=Wc(e.map(a=>({tag:a.tag,class:a.class||n(Object.assign({},a,{tag:null}))})),{all:r}).style,this.module=i?new Bt(i):null,this.themeType=t.themeType}static define(e,t){return new vn(e,t||{})}}const po=j.define(),a0=j.define({combine(s){return s.length?[s[0]]:null}});function dr(s){let e=s.facet(po);return e.length?e:s.facet(a0)}function eu(s,e){let t=[h0],i;return s instanceof vn&&(s.module&&t.push(V.styleModule.of(s.module)),i=s.themeType),i?t.push(po.computeN([V.darkTheme],n=>n.facet(V.darkTheme)==(i=="dark")?[s]:[])):t.push(po.of(s)),t}class l0{constructor(e){this.markCache=Object.create(null),this.tree=qe(e.state),this.decorations=this.buildDeco(e,dr(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=qe(e.state),i=dr(e.state),n=i!=dr(e.startState),{viewport:r}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return de.none;let i=new On;for(let{from:n,to:r}of e.visibleRanges)zg(this.tree,t,(o,a,l)=>{i.add(o,a,this.markCache[l]||(this.markCache[l]=de.mark({class:l})))},n,r);return i.finish()}}const h0=As.high(Ut.fromClass(l0,{decorations:s=>s.decorations})),c0=vn.define([{tag:b.meta,color:"#404740"},{tag:b.link,textDecoration:"underline"},{tag:b.heading,textDecoration:"underline",fontWeight:"bold"},{tag:b.emphasis,fontStyle:"italic"},{tag:b.strong,fontWeight:"bold"},{tag:b.strikethrough,textDecoration:"line-through"},{tag:b.keyword,color:"#708"},{tag:[b.atom,b.bool,b.url,b.contentSeparator,b.labelName],color:"#219"},{tag:[b.literal,b.inserted],color:"#164"},{tag:[b.string,b.deleted],color:"#a11"},{tag:[b.regexp,b.escape,b.special(b.string)],color:"#e40"},{tag:b.definition(b.variableName),color:"#00f"},{tag:b.local(b.variableName),color:"#30a"},{tag:[b.typeName,b.namespace],color:"#085"},{tag:b.className,color:"#167"},{tag:[b.special(b.variableName),b.macroName],color:"#256"},{tag:b.definition(b.propertyName),color:"#00c"},{tag:b.comment,color:"#940"},{tag:b.invalid,color:"#f00"}]),u0=1e4,f0="()[]{}",d0=new z;function Oo(s,e,t){let i=s.prop(e<0?z.openedBy:z.closedBy);if(i)return i;if(s.name.length==1){let n=t.indexOf(s.name);if(n>-1&&n%2==(e<0?1:0))return[t[n+e]]}return null}function mo(s){let e=s.type.prop(d0);return e?e(s.node):s}function wi(s,e,t,i={}){let n=i.maxScanDistance||u0,r=i.brackets||f0,o=qe(s),a=o.resolveInner(e,t);for(let l=a;l;l=l.parent){let h=Oo(l.type,t,r);if(h&&l.from0?e>=c.from&&ec.from&&e<=c.to))return p0(s,e,t,l,c,h,r)}}return O0(s,e,t,o,a.type,n,r)}function p0(s,e,t,i,n,r,o){let a=i.parent,l={from:n.from,to:n.to},h=0,c=a==null?void 0:a.cursor();if(c&&(t<0?c.childBefore(i.from):c.childAfter(i.to)))do if(t<0?c.to<=i.from:c.from>=i.to){if(h==0&&r.indexOf(c.type.name)>-1&&c.from0)return null;let h={from:t<0?e-1:e,to:t>0?e+1:e},c=s.doc.iterRange(e,t>0?s.doc.length:0),u=0;for(let f=0;!c.next().done&&f<=r;){let d=c.value;t<0&&(f+=d.length);let p=e+f*t;for(let O=t>0?0:d.length-1,g=t>0?d.length:-1;O!=g;O+=t){let m=o.indexOf(d[O]);if(!(m<0||i.resolveInner(p+O,1).type!=n))if(m%2==0==t>0)u++;else{if(u==1)return{start:h,end:{from:p+O,to:p+O+1},matched:m>>1==l>>1};u--}}t>0&&(f+=d.length)}return c.done?{start:h,matched:!1}:null}const m0=Object.create(null),vl=[je.none],Pl=[],$l=Object.create(null),g0=Object.create(null);for(let[s,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])g0[s]=y0(m0,e);function pr(s,e){Pl.indexOf(s)>-1||(Pl.push(s),console.warn(e))}function y0(s,e){let t=[];for(let a of e.split(" ")){let l=[];for(let h of a.split(".")){let c=s[h]||b[h];c?typeof c=="function"?l.length?l=l.map(c):pr(h,`Modifier ${h} used at start of tag`):l.length?pr(h,`Tag ${h} used as modifier`):l=Array.isArray(c)?c:[c]:pr(h,`Unknown highlighting tag ${h}`)}for(let h of l)t.push(h)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),n=i+" "+t.map(a=>a.id),r=$l[n];if(r)return r.id;let o=$l[n]=je.define({id:vl.length,name:i,props:[Uc({[i]:t})]});return vl.push(o),o.id}Se.RTL,Se.LTR;const b0=s=>{let{state:e}=s,t=e.doc.lineAt(e.selection.main.from),i=qo(s.state,t.from);return i.line?S0(s):i.block?w0(s):!1};function Uo(s,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let n=s(e,t);return n?(i(t.update(n)),!0):!1}}const S0=Uo(v0,0),x0=Uo(tu,0),w0=Uo((s,e)=>tu(s,e,k0(e)),0);function qo(s,e){let t=s.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const Gi=50;function Q0(s,{open:e,close:t},i,n){let r=s.sliceDoc(i-Gi,i),o=s.sliceDoc(n,n+Gi),a=/\s*$/.exec(r)[0].length,l=/^\s*/.exec(o)[0].length,h=r.length-a;if(r.slice(h-e.length,h)==e&&o.slice(l,l+t.length)==t)return{open:{pos:i-a,margin:a&&1},close:{pos:n+l,margin:l&&1}};let c,u;n-i<=2*Gi?c=u=s.sliceDoc(i,n):(c=s.sliceDoc(i,i+Gi),u=s.sliceDoc(n-Gi,n));let f=/^\s*/.exec(c)[0].length,d=/\s*$/.exec(u)[0].length,p=u.length-d-t.length;return c.slice(f,f+e.length)==e&&u.slice(p,p+t.length)==t?{open:{pos:i+f+e.length,margin:/\s/.test(c.charAt(f+e.length))?1:0},close:{pos:n-d-t.length,margin:/\s/.test(u.charAt(p-1))?1:0}}:null}function k0(s){let e=[];for(let t of s.selection.ranges){let i=s.doc.lineAt(t.from),n=t.to<=i.to?i:s.doc.lineAt(t.to);n.from>i.from&&n.from==t.to&&(n=t.to==i.to+1?i:s.doc.lineAt(t.to-1));let r=e.length-1;r>=0&&e[r].to>i.from?e[r].to=n.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:n.to})}return e}function tu(s,e,t=e.selection.ranges){let i=t.map(r=>qo(e,r.from).block);if(!i.every(r=>r))return null;let n=t.map((r,o)=>Q0(e,i[o],r.from,r.to));if(s!=2&&!n.every(r=>r))return{changes:e.changes(t.map((r,o)=>n[o]?[]:[{from:r.from,insert:i[o].open+" "},{from:r.to,insert:" "+i[o].close}]))};if(s!=1&&n.some(r=>r)){let r=[];for(let o=0,a;on&&(r==o||o>u.from)){n=u.from;let f=/^\s*/.exec(u.text)[0].length,d=f==u.length,p=u.text.slice(f,f+h.length)==h?f:-1;fr.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:a,token:l,indent:h,empty:c,single:u}of i)(u||!c)&&r.push({from:a.from+h,insert:l+" "});let o=e.changes(r);return{changes:o,selection:e.selection.map(o,1)}}else if(s!=1&&i.some(r=>r.comment>=0)){let r=[];for(let{line:o,comment:a,token:l}of i)if(a>=0){let h=o.from+a,c=h+l.length;o.text[c-o.from]==" "&&c++,r.push({from:h,to:c})}return{changes:r}}return null}function Vi(s,e){return A.create(s.ranges.map(e),s.mainIndex)}function xt(s,e){return s.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function ct({state:s,dispatch:e},t){let i=Vi(s.selection,t);return i.eq(s.selection,!0)?!1:(e(xt(s,i)),!0)}function Is(s,e){return A.cursor(e?s.to:s.from)}function iu(s,e){return ct(s,t=>t.empty?s.moveByChar(t,e):Is(t,e))}function _e(s){return s.textDirectionAt(s.state.selection.main.head)==Se.LTR}const nu=s=>iu(s,!_e(s)),su=s=>iu(s,_e(s));function ru(s,e){return ct(s,t=>t.empty?s.moveByGroup(t,e):Is(t,e))}const P0=s=>ru(s,!_e(s)),$0=s=>ru(s,_e(s));function T0(s,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(s.sliceDoc(e.from,e.to)))||e.firstChild}function js(s,e,t){let i=qe(s).resolveInner(e.head),n=t?z.closedBy:z.openedBy;for(let l=e.head;;){let h=t?i.childAfter(l):i.childBefore(l);if(!h)break;T0(s,h,n)?i=h:l=t?h.to:h.from}let r=i.type.prop(n),o,a;return r&&(o=t?wi(s,i.from,1):wi(s,i.to,-1))&&o.matched?a=t?o.end.to:o.end.from:a=t?i.to:i.from,A.cursor(a,t?-1:1)}const _0=s=>ct(s,e=>js(s.state,e,!_e(s))),A0=s=>ct(s,e=>js(s.state,e,_e(s)));function ou(s,e){return ct(s,t=>{if(!t.empty)return Is(t,e);let i=s.moveVertically(t,e);return i.head!=t.head?i:s.moveToLineBoundary(t,e)})}const au=s=>ou(s,!1),lu=s=>ou(s,!0);function hu(s){let e=s.scrollDOM.clientHeighto.empty?s.moveVertically(o,e,t.height):Is(o,e));if(n.eq(i.selection))return!1;let r;if(t.selfScroll){let o=s.coordsAtPos(i.selection.main.head),a=s.scrollDOM.getBoundingClientRect(),l=a.top+t.marginTop,h=a.bottom-t.marginBottom;o&&o.top>l&&o.bottomcu(s,!1),go=s=>cu(s,!0);function Gt(s,e,t){let i=s.lineBlockAt(e.head),n=s.moveToLineBoundary(e,t);if(n.head==e.head&&n.head!=(t?i.to:i.from)&&(n=s.moveToLineBoundary(e,t,!1)),!t&&n.head==i.from&&i.length){let r=/^\s*/.exec(s.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&e.head!=i.from+r&&(n=A.cursor(i.from+r))}return n}const R0=s=>ct(s,e=>Gt(s,e,!0)),Z0=s=>ct(s,e=>Gt(s,e,!1)),C0=s=>ct(s,e=>Gt(s,e,!_e(s))),M0=s=>ct(s,e=>Gt(s,e,_e(s))),E0=s=>ct(s,e=>A.cursor(s.lineBlockAt(e.head).from,1)),L0=s=>ct(s,e=>A.cursor(s.lineBlockAt(e.head).to,-1));function D0(s,e,t){let i=!1,n=Vi(s.selection,r=>{let o=wi(s,r.head,-1)||wi(s,r.head,1)||r.head>0&&wi(s,r.head-1,1)||r.headD0(s,e);function it(s,e){let t=Vi(s.state.selection,i=>{let n=e(i);return A.range(i.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return t.eq(s.state.selection)?!1:(s.dispatch(xt(s.state,t)),!0)}function uu(s,e){return it(s,t=>s.moveByChar(t,e))}const fu=s=>uu(s,!_e(s)),du=s=>uu(s,_e(s));function pu(s,e){return it(s,t=>s.moveByGroup(t,e))}const I0=s=>pu(s,!_e(s)),j0=s=>pu(s,_e(s)),V0=s=>it(s,e=>js(s.state,e,!_e(s))),B0=s=>it(s,e=>js(s.state,e,_e(s)));function Ou(s,e){return it(s,t=>s.moveVertically(t,e))}const mu=s=>Ou(s,!1),gu=s=>Ou(s,!0);function yu(s,e){return it(s,t=>s.moveVertically(t,e,hu(s).height))}const _l=s=>yu(s,!1),Al=s=>yu(s,!0),N0=s=>it(s,e=>Gt(s,e,!0)),z0=s=>it(s,e=>Gt(s,e,!1)),U0=s=>it(s,e=>Gt(s,e,!_e(s))),q0=s=>it(s,e=>Gt(s,e,_e(s))),W0=s=>it(s,e=>A.cursor(s.lineBlockAt(e.head).from)),G0=s=>it(s,e=>A.cursor(s.lineBlockAt(e.head).to)),Rl=({state:s,dispatch:e})=>(e(xt(s,{anchor:0})),!0),Zl=({state:s,dispatch:e})=>(e(xt(s,{anchor:s.doc.length})),!0),Cl=({state:s,dispatch:e})=>(e(xt(s,{anchor:s.selection.main.anchor,head:0})),!0),Ml=({state:s,dispatch:e})=>(e(xt(s,{anchor:s.selection.main.anchor,head:s.doc.length})),!0),Y0=({state:s,dispatch:e})=>(e(s.update({selection:{anchor:0,head:s.doc.length},userEvent:"select"})),!0),F0=({state:s,dispatch:e})=>{let t=Vs(s).map(({from:i,to:n})=>A.range(i,Math.min(n+1,s.doc.length)));return e(s.update({selection:A.create(t),userEvent:"select"})),!0},H0=({state:s,dispatch:e})=>{let t=Vi(s.selection,i=>{let n=qe(s),r=n.resolveStack(i.from,1);if(i.empty){let o=n.resolveStack(i.from,-1);o.node.from>=r.node.from&&o.node.to<=r.node.to&&(r=o)}for(let o=r;o;o=o.next){let{node:a}=o;if((a.from=i.to||a.to>i.to&&a.from<=i.from)&&o.next)return A.range(a.to,a.from)}return i});return t.eq(s.selection)?!1:(e(xt(s,t)),!0)},K0=({state:s,dispatch:e})=>{let t=s.selection,i=null;return t.ranges.length>1?i=A.create([t.main]):t.main.empty||(i=A.create([A.cursor(t.main.head)])),i?(e(xt(s,i)),!0):!1};function Pn(s,e){if(s.state.readOnly)return!1;let t="delete.selection",{state:i}=s,n=i.changeByRange(r=>{let{from:o,to:a}=r;if(o==a){let l=e(r);lo&&(t="delete.forward",l=Yn(s,l,!0)),o=Math.min(o,l),a=Math.max(a,l)}else o=Yn(s,o,!1),a=Yn(s,a,!0);return o==a?{range:r}:{changes:{from:o,to:a},range:A.cursor(o,on(s)))i.between(e,e,(n,r)=>{ne&&(e=t?r:n)});return e}const bu=(s,e,t)=>Pn(s,i=>{let n=i.from,{state:r}=s,o=r.doc.lineAt(n),a,l;if(t&&!e&&n>o.from&&nbu(s,!1,!0),Su=s=>bu(s,!0,!1),xu=(s,e)=>Pn(s,t=>{let i=t.head,{state:n}=s,r=n.doc.lineAt(i),o=n.charCategorizer(i);for(let a=null;;){if(i==(e?r.to:r.from)){i==t.head&&r.number!=(e?n.doc.lines:1)&&(i+=e?1:-1);break}let l=Me(r.text,i-r.from,e)+r.from,h=r.text.slice(Math.min(i,l)-r.from,Math.max(i,l)-r.from),c=o(h);if(a!=null&&c!=a)break;(h!=" "||i!=t.head)&&(a=c),i=l}return i}),wu=s=>xu(s,!1),J0=s=>xu(s,!0),ey=s=>Pn(s,e=>{let t=s.lineBlockAt(e.head).to;return e.headPn(s,e=>{let t=s.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),iy=s=>Pn(s,e=>{let t=s.moveToLineBoundary(e,!0).head;return e.head{if(s.readOnly)return!1;let t=s.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:q.of(["",""])},range:A.cursor(i.from)}));return e(s.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},sy=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=s.changeByRange(i=>{if(!i.empty||i.from==0||i.from==s.doc.length)return{range:i};let n=i.from,r=s.doc.lineAt(n),o=n==r.from?n-1:Me(r.text,n-r.from,!1)+r.from,a=n==r.to?n+1:Me(r.text,n-r.from,!0)+r.from;return{changes:{from:o,to:a,insert:s.doc.slice(n,a).append(s.doc.slice(o,n))},range:A.cursor(a)}});return t.changes.empty?!1:(e(s.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Vs(s){let e=[],t=-1;for(let i of s.selection.ranges){let n=s.doc.lineAt(i.from),r=s.doc.lineAt(i.to);if(!i.empty&&i.to==r.from&&(r=s.doc.lineAt(i.to-1)),t>=n.number){let o=e[e.length-1];o.to=r.to,o.ranges.push(i)}else e.push({from:n.from,to:r.to,ranges:[i]});t=r.number+1}return e}function Qu(s,e,t){if(s.readOnly)return!1;let i=[],n=[];for(let r of Vs(s)){if(t?r.to==s.doc.length:r.from==0)continue;let o=s.doc.lineAt(t?r.to+1:r.from-1),a=o.length+1;if(t){i.push({from:r.to,to:o.to},{from:r.from,insert:o.text+s.lineBreak});for(let l of r.ranges)n.push(A.range(Math.min(s.doc.length,l.anchor+a),Math.min(s.doc.length,l.head+a)))}else{i.push({from:o.from,to:r.from},{from:r.to,insert:s.lineBreak+o.text});for(let l of r.ranges)n.push(A.range(l.anchor-a,l.head-a))}}return i.length?(e(s.update({changes:i,scrollIntoView:!0,selection:A.create(n,s.selection.mainIndex),userEvent:"move.line"})),!0):!1}const ry=({state:s,dispatch:e})=>Qu(s,e,!1),oy=({state:s,dispatch:e})=>Qu(s,e,!0);function ku(s,e,t){if(s.readOnly)return!1;let i=[];for(let n of Vs(s))t?i.push({from:n.from,insert:s.doc.slice(n.from,n.to)+s.lineBreak}):i.push({from:n.to,insert:s.lineBreak+s.doc.slice(n.from,n.to)});return e(s.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const ay=({state:s,dispatch:e})=>ku(s,e,!1),ly=({state:s,dispatch:e})=>ku(s,e,!0),hy=s=>{if(s.state.readOnly)return!1;let{state:e}=s,t=e.changes(Vs(e).map(({from:n,to:r})=>(n>0?n--:r{let r;if(s.lineWrapping){let o=s.lineBlockAt(n.head),a=s.coordsAtPos(n.head,n.assoc||1);a&&(r=o.bottom+s.documentTop-a.bottom+s.defaultLineHeight/2)}return s.moveVertically(n,!0,r)}).map(t);return s.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function cy(s,e){if(/\(\)|\[\]|\{\}/.test(s.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=qe(s).resolveInner(e),i=t.childBefore(e),n=t.childAfter(e),r;return i&&n&&i.to<=e&&n.from>=e&&(r=i.type.prop(z.closedBy))&&r.indexOf(n.name)>-1&&s.doc.lineAt(i.to).from==s.doc.lineAt(n.from).from&&!/\S/.test(s.sliceDoc(i.to,n.from))?{from:i.to,to:n.from}:null}const El=vu(!1),uy=vu(!0);function vu(s){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(n=>{let{from:r,to:o}=n,a=e.doc.lineAt(r),l=!s&&r==o&&cy(e,r);s&&(r=o=(o<=a.to?a:e.doc.lineAt(o)).to);let h=new Xs(e,{simulateBreak:r,simulateDoubleBreak:!!l}),c=Fc(h,r);for(c==null&&(c=Zs(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));oa.from&&r{let n=[];for(let o=i.from;o<=i.to;){let a=s.doc.lineAt(o);a.number>t&&(i.empty||i.to>a.from)&&(e(a,n,i),t=a.number),o=a.to+1}let r=s.changes(n);return{changes:n,range:A.range(r.mapPos(i.anchor,1),r.mapPos(i.head,1))}})}const fy=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=Object.create(null),i=new Xs(s,{overrideIndentation:r=>{let o=t[r];return o??-1}}),n=Wo(s,(r,o,a)=>{let l=Fc(i,r.from);if(l==null)return;/\S/.test(r.text)||(l=0);let h=/^\s*/.exec(r.text)[0],c=vs(s,l);(h!=c||a.froms.readOnly?!1:(e(s.update(Wo(s,(t,i)=>{i.push({from:t.from,insert:s.facet(Ds)})}),{userEvent:"input.indent"})),!0),$u=({state:s,dispatch:e})=>s.readOnly?!1:(e(s.update(Wo(s,(t,i)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let r=Zs(n,s.tabSize),o=0,a=vs(s,Math.max(0,r-ks(s)));for(;o(s.setTabFocusMode(),!0),py=[{key:"Ctrl-b",run:nu,shift:fu,preventDefault:!0},{key:"Ctrl-f",run:su,shift:du},{key:"Ctrl-p",run:au,shift:mu},{key:"Ctrl-n",run:lu,shift:gu},{key:"Ctrl-a",run:E0,shift:W0},{key:"Ctrl-e",run:L0,shift:G0},{key:"Ctrl-d",run:Su},{key:"Ctrl-h",run:yo},{key:"Ctrl-k",run:ey},{key:"Ctrl-Alt-h",run:wu},{key:"Ctrl-o",run:ny},{key:"Ctrl-t",run:sy},{key:"Ctrl-v",run:go}],Oy=[{key:"ArrowLeft",run:nu,shift:fu,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:P0,shift:I0,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:C0,shift:U0,preventDefault:!0},{key:"ArrowRight",run:su,shift:du,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:$0,shift:j0,preventDefault:!0},{mac:"Cmd-ArrowRight",run:M0,shift:q0,preventDefault:!0},{key:"ArrowUp",run:au,shift:mu,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Rl,shift:Cl},{mac:"Ctrl-ArrowUp",run:Tl,shift:_l},{key:"ArrowDown",run:lu,shift:gu,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Zl,shift:Ml},{mac:"Ctrl-ArrowDown",run:go,shift:Al},{key:"PageUp",run:Tl,shift:_l},{key:"PageDown",run:go,shift:Al},{key:"Home",run:Z0,shift:z0,preventDefault:!0},{key:"Mod-Home",run:Rl,shift:Cl},{key:"End",run:R0,shift:N0,preventDefault:!0},{key:"Mod-End",run:Zl,shift:Ml},{key:"Enter",run:El,shift:El},{key:"Mod-a",run:Y0},{key:"Backspace",run:yo,shift:yo},{key:"Delete",run:Su},{key:"Mod-Backspace",mac:"Alt-Backspace",run:wu},{key:"Mod-Delete",mac:"Alt-Delete",run:J0},{mac:"Mod-Backspace",run:ty},{mac:"Mod-Delete",run:iy}].concat(py.map(s=>({mac:s.key,run:s.run,shift:s.shift}))),my=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:_0,shift:V0},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:A0,shift:B0},{key:"Alt-ArrowUp",run:ry},{key:"Shift-Alt-ArrowUp",run:ay},{key:"Alt-ArrowDown",run:oy},{key:"Shift-Alt-ArrowDown",run:ly},{key:"Escape",run:K0},{key:"Mod-Enter",run:uy},{key:"Alt-l",mac:"Ctrl-l",run:F0},{key:"Mod-i",run:H0,preventDefault:!0},{key:"Mod-[",run:$u},{key:"Mod-]",run:Pu},{key:"Mod-Alt-\\",run:fy},{key:"Shift-Mod-k",run:hy},{key:"Shift-Mod-\\",run:X0},{key:"Mod-/",run:b0},{key:"Alt-A",run:x0},{key:"Ctrl-m",mac:"Shift-Alt-m",run:dy}].concat(Oy),gy={key:"Tab",run:Pu,shift:$u};var Ll={};class Ps{constructor(e,t,i,n,r,o,a,l,h,c=0,u){this.p=e,this.stack=t,this.state=i,this.reducePos=n,this.pos=r,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=h,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,i=0){let n=e.parser.context;return new Ps(e,[],t,i,i,0,[],0,n?new Dl(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let i=e>>19,n=e&65535,{parser:r}=this.p,o=this.reducePos=2e3&&!(!((t=this.p.parser.nodeSet.types[n])===null||t===void 0)&&t.isAnonymous)&&(h==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(n,h)}storeNode(e,t,i,n=4,r=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(t==i)return;if(o.buffer[a-2]>=t){o.buffer[a-2]=i;return}}}if(!r||this.pos==i)this.buffer.push(e,t,i,n);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>i;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,n>4&&(n-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=i,this.buffer[o+3]=n}}shift(e,t,i,n){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=n,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,n,4);else{let r=e,{parser:o}=this.p;(n>this.pos||t<=o.maxNode)&&(this.pos=n,o.stateFlag(r,1)||(this.reducePos=n)),this.pushState(r,i),this.shiftContext(t,i),t<=o.maxNode&&this.buffer.push(t,i,n,4)}}apply(e,t,i,n){e&65536?this.reduce(e):this.shift(e,t,i,n)}useNode(e,t){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(i,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let i=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new Ps(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,i?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new yy(this);;){let i=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(i==0)return!1;if(!(i&65536))return!0;t.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,o;rl&1&&a==o)||n.push(t[r],o)}t=n}let i=[];for(let n=0;n>19,n=t&65535,r=this.stack.length-i*3;if(r<0||e.getGoto(this.stack[r],n,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;t=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],i=(n,r)=>{if(!t.includes(n))return t.push(n),e.allActions(n,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-r;if(a>1){let l=o&65535,h=this.stack.length-a*3;if(h>=0&&e.getGoto(this.stack[h],l,!1)>=0)return a<<19|65536|l}}else{let a=i(o,r+1);if(a!=null)return a}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Dl{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class yy{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}}class $s{constructor(e,t,i){this.stack=e,this.pos=t,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new $s(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new $s(this.stack,this.pos,this.index)}}function sn(s,e=Uint16Array){if(typeof s!="string")return s;let t=null;for(let i=0,n=0;i=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),r+=l,a)break;r*=46}t?t[n++]=r:t=new e(r)}return t}class rs{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Xl=new rs;class by{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Xl,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,n=this.rangeIndex,r=this.pos+e;for(;ri.to:r>=i.to;){if(n==this.ranges.length-1)return null;let o=this.ranges[++n];r+=o.from-i.to,i=o}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,i,n;if(t>=0&&t=this.chunk2Pos&&ia.to&&(this.chunk2=this.chunk2.slice(0,a.to-i)),n=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),n}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Xl,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(i+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return i}}class Ti{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;Tu(this.data,e,t,this.id,i.data,i.tokenPrecTable)}}Ti.prototype.contextual=Ti.prototype.fallback=Ti.prototype.extend=!1;class bo{constructor(e,t,i){this.precTable=t,this.elseToken=i,this.data=typeof e=="string"?sn(e):e}token(e,t){let i=e.pos,n=0;for(;;){let r=e.next<0,o=e.resolveOffset(1,1);if(Tu(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(r||n++,o==null)break;e.reset(o,e.token)}n&&(e.reset(i,e.token),e.acceptToken(this.elseToken,n))}}bo.prototype.contextual=Ti.prototype.fallback=Ti.prototype.extend=!1;class $n{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function Tu(s,e,t,i,n,r){let o=0,a=1<0){let p=s[d];if(l.allows(p)&&(e.token.value==-1||e.token.value==p||Sy(p,e.token.value,n,r))){e.acceptToken(p);break}}let c=e.next,u=0,f=s[o+2];if(e.next<0&&f>u&&s[h+f*3-3]==65535){o=s[h+f*3-1];continue e}for(;u>1,p=h+d+(d<<1),O=s[p],g=s[p+1]||65536;if(c=g)u=d+1;else{o=s[p+2],e.advance();continue e}}break}}function Il(s,e,t){for(let i=e,n;(n=s[i])!=65535;i++)if(n==t)return i-e;return-1}function Sy(s,e,t,i){let n=Il(t,i,e);return n<0||Il(t,i,s)e)&&!i.type.isError)return t<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(s.length,Math.max(i.from+1,e+25));if(t<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return t<0?0:s.length}}class xy{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?jl(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?jl(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=o,null;if(r instanceof Oe){if(o==e){if(o=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+r.length}}}class wy{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new rs)}getActions(e){let t=0,i=null,{parser:n}=e.p,{tokenizers:r}=n,o=n.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let h=0;hu.end+25&&(l=Math.max(u.lookAhead,l)),u.value!=0)){let f=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!c.extend&&(i=u,t>f))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),!i&&e.pos==this.stream.end&&(i=new rs,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new rs,{pos:i,p:n}=e;return t.start=i,t.end=Math.min(i+1,n.stream.end),t.value=i==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,i){let n=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(n,e),i),e.value>-1){let{parser:r}=i.p;for(let o=0;o=0&&i.p.parser.dialect.allows(a>>1)){a&1?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,i,n){for(let r=0;re.bufferLength*4?new xy(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,i=this.stacks=[],n,r;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;ot)i.push(a);else{if(this.advanceStack(a,i,e))continue;{n||(n=[],r=[]),n.push(a);let l=this.tokens.getMainToken(a);r.push(l.value,l.end)}}break}}if(!i.length){let o=n&&Py(n);if(o)return Be&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Be&&n&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&n){let o=this.stoppedAt!=null&&n[0].pos>this.stoppedAt?n[0]:this.runRecovery(n,r,i);if(o)return Be&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(i.length>o)for(i.sort((a,l)=>l.score-a.score);i.length>o;)i.pop();i.some(a=>a.reducePos>t)&&this.recovering--}else if(i.length>1){e:for(let o=0;o500&&h.buffer.length>500)if((a.score-h.score||a.buffer.length-h.buffer.length)>0)i.splice(l--,1);else{i.splice(o--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let h=e.curContext&&e.curContext.tracker.strict,c=h?e.curContext.hash:0;for(let u=this.fragments.nodeAt(n);u;){let f=this.parser.nodeSet.types[u.type.id]==u.type?r.getGoto(e.state,u.type.id):-1;if(f>-1&&u.length&&(!h||(u.prop(z.contextHash)||0)==c))return e.useNode(u,f),Be&&console.log(o+this.stackID(e)+` (via reuse of ${r.getName(u.type.id)})`),!0;if(!(u instanceof Oe)||u.children.length==0||u.positions[0]>0)break;let d=u.children[0];if(d instanceof Oe&&u.positions[0]==0)u=d;else break}}let a=r.stateSlot(e.state,4);if(a>0)return e.reduce(a),Be&&console.log(o+this.stackID(e)+` (via always-reduce ${r.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let h=0;hn?t.push(p):i.push(p)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return Vl(e,t),!0}}runRecovery(e,t,i){let n=null,r=!1;for(let o=0;o ":"";if(a.deadEnd&&(r||(r=!0,a.restart(),Be&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,i))))continue;let u=a.split(),f=c;for(let d=0;u.forceReduce()&&d<10&&(Be&&console.log(f+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,i));d++)Be&&(f=this.stackID(u)+" -> ");for(let d of a.recoverByInsert(l))Be&&console.log(c+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,i);this.stream.end>a.pos?(h==a.pos&&(h++,l=0),a.recoverByDelete(l,h),Be&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),Vl(a,i)):(!n||n.scores;class vy{constructor(e){this.start=e.start,this.shift=e.shift||mr,this.reduce=e.reduce||mr,this.reuse=e.reuse||mr,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Ts extends zc{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;ae.topRules[a][1]),n=[];for(let a=0;a=0)r(c,l,a[h++]);else{let u=a[h+-c];for(let f=-c;f>0;f--)r(a[h++],l,u);h++}}}this.nodeSet=new Io(t.map((a,l)=>je.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:n[l],top:i.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=jc;let o=sn(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;atypeof a=="number"?new Ti(o,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,i){let n=new Qy(this,e,t,i);for(let r of this.wrappers)n=r(n,e,t,i);return n}getGoto(e,t,i=!1){let n=this.goto;if(t>=n[0])return-1;for(let r=n[t+1];;){let o=n[r++],a=o&1,l=n[r++];if(a&&i)return l;for(let h=r+(o>>1);r0}validAction(e,t){return!!this.allActions(e,i=>i==t?!0:null)}allActions(e,t){let i=this.stateSlot(e,4),n=i?t(i):void 0;for(let r=this.stateSlot(e,1);n==null;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Pt(this.data,r+2);else break;n=t(Pt(this.data,r+1))}return n}nextStates(e){let t=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=Pt(this.data,i+2);else break;if(!(this.data[i+2]&1)){let n=this.data[i+1];t.some((r,o)=>o&1&&r==n)||t.push(this.data[i],n)}}return t}configure(e){let t=Object.assign(Object.create(Ts.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=i}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(i=>{let n=e.tokenizers.find(r=>r.from==i);return n?n.to:i})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((i,n)=>{let r=e.specializers.find(a=>a.from==i.external);if(!r)return i;let o=Object.assign(Object.assign({},i),{external:r.to});return t.specializers[n]=Bl(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),i=t.map(()=>!1);if(e)for(let r of e.split(" ")){let o=t.indexOf(r);o>=0&&(i[o]=!0)}let n=null;for(let r=0;ri)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.scores.external(t,i)<<1|e}return s.get}const $y=314,Ty=315,Nl=1,_y=2,Ay=3,Ry=4,Zy=316,Cy=318,My=319,Ey=5,Ly=6,Dy=0,So=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],_u=125,Xy=59,xo=47,Iy=42,jy=43,Vy=45,By=60,Ny=44,zy=63,Uy=46,qy=91,Wy=new vy({start:!1,shift(s,e){return e==Ey||e==Ly||e==Cy?s:e==My},strict:!1}),Gy=new $n((s,e)=>{let{next:t}=s;(t==_u||t==-1||e.context)&&s.acceptToken(Zy)},{contextual:!0,fallback:!0}),Yy=new $n((s,e)=>{let{next:t}=s,i;So.indexOf(t)>-1||t==xo&&((i=s.peek(1))==xo||i==Iy)||t!=_u&&t!=Xy&&t!=-1&&!e.context&&s.acceptToken($y)},{contextual:!0}),Fy=new $n((s,e)=>{s.next==qy&&!e.context&&s.acceptToken(Ty)},{contextual:!0}),Hy=new $n((s,e)=>{let{next:t}=s;if(t==jy||t==Vy){if(s.advance(),t==s.next){s.advance();let i=!e.context&&e.canShift(Nl);s.acceptToken(i?Nl:_y)}}else t==zy&&s.peek(1)==Uy&&(s.advance(),s.advance(),(s.next<48||s.next>57)&&s.acceptToken(Ay))},{contextual:!0});function gr(s,e){return s>=65&&s<=90||s>=97&&s<=122||s==95||s>=192||!e&&s>=48&&s<=57}const Ky=new $n((s,e)=>{if(s.next!=By||!e.dialectEnabled(Dy)||(s.advance(),s.next==xo))return;let t=0;for(;So.indexOf(s.next)>-1;)s.advance(),t++;if(gr(s.next,!0)){for(s.advance(),t++;gr(s.next,!1);)s.advance(),t++;for(;So.indexOf(s.next)>-1;)s.advance(),t++;if(s.next==Ny)return;for(let i=0;;i++){if(i==7){if(!gr(s.next,!0))return;break}if(s.next!="extends".charCodeAt(i))break;s.advance(),t++}}s.acceptToken(Ry,-t)}),Jy=Uc({"get set async static":b.modifier,"for while do if else switch try catch finally return throw break continue default case":b.controlKeyword,"in of await yield void typeof delete instanceof":b.operatorKeyword,"let var const using function class extends":b.definitionKeyword,"import export from":b.moduleKeyword,"with debugger as new":b.keyword,TemplateString:b.special(b.string),super:b.atom,BooleanLiteral:b.bool,this:b.self,null:b.null,Star:b.modifier,VariableName:b.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":b.function(b.variableName),VariableDefinition:b.definition(b.variableName),Label:b.labelName,PropertyName:b.propertyName,PrivatePropertyName:b.special(b.propertyName),"CallExpression/MemberExpression/PropertyName":b.function(b.propertyName),"FunctionDeclaration/VariableDefinition":b.function(b.definition(b.variableName)),"ClassDeclaration/VariableDefinition":b.definition(b.className),"NewExpression/VariableName":b.className,PropertyDefinition:b.definition(b.propertyName),PrivatePropertyDefinition:b.definition(b.special(b.propertyName)),UpdateOp:b.updateOperator,"LineComment Hashbang":b.lineComment,BlockComment:b.blockComment,Number:b.number,String:b.string,Escape:b.escape,ArithOp:b.arithmeticOperator,LogicOp:b.logicOperator,BitOp:b.bitwiseOperator,CompareOp:b.compareOperator,RegExp:b.regexp,Equals:b.definitionOperator,Arrow:b.function(b.punctuation),": Spread":b.punctuation,"( )":b.paren,"[ ]":b.squareBracket,"{ }":b.brace,"InterpolationStart InterpolationEnd":b.special(b.brace),".":b.derefOperator,", ;":b.separator,"@":b.meta,TypeName:b.typeName,TypeDefinition:b.definition(b.typeName),"type enum interface implements namespace module declare":b.definitionKeyword,"abstract global Privacy readonly override":b.modifier,"is keyof unique infer asserts":b.operatorKeyword,JSXAttributeValue:b.attributeValue,JSXText:b.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":b.angleBracket,"JSXIdentifier JSXNameSpacedName":b.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":b.attributeName,"JSXBuiltin/JSXIdentifier":b.standard(b.tagName)}),eb={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,const:52,extends:56,this:60,true:68,false:68,null:80,void:84,typeof:88,super:104,new:138,delete:150,yield:159,await:163,class:168,public:231,private:231,protected:231,readonly:233,instanceof:252,satisfies:255,in:256,import:290,keyof:347,unique:351,infer:357,asserts:393,is:395,abstract:415,implements:417,type:419,let:422,var:424,using:427,interface:433,enum:437,namespace:443,module:445,declare:449,global:453,for:472,of:481,while:484,with:488,do:492,if:496,else:498,switch:502,case:508,try:514,catch:518,finally:522,return:526,throw:530,break:534,continue:538,debugger:542},tb={__proto__:null,async:125,get:127,set:129,declare:191,public:193,private:193,protected:193,static:195,abstract:197,override:199,readonly:205,accessor:207,new:399},ib={__proto__:null,"<":189},nb=Ts.deserialize({version:14,states:"$EOQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#D_O.QQlO'#DeO.bQlO'#DpO%[QlO'#DxO0fQlO'#EQOOQ!0Lf'#EY'#EYO1PQ`O'#EVOOQO'#En'#EnOOQO'#Ij'#IjO1XQ`O'#GrO1dQ`O'#EmO1iQ`O'#EmO3hQ!0MxO'#JpO6[Q!0MxO'#JqO6uQ`O'#F[O6zQ,UO'#FsOOQ!0Lf'#Fe'#FeO7VO7dO'#FeO7eQMhO'#F{O9UQ`O'#FzOOQ!0Lf'#Jq'#JqOOQ!0Lb'#Jp'#JpO9ZQ`O'#GvOOQ['#K]'#K]O9fQ`O'#IWO9kQ!0LrO'#IXOOQ['#J^'#J^OOQ['#I]'#I]Q`QlOOQ`QlOOO9sQ!L^O'#DtO9zQlO'#D|O:RQlO'#EOO9aQ`O'#GrO:YQMhO'#CoO:hQ`O'#ElO:sQ`O'#EwO:xQMhO'#FdO;gQ`O'#GrOOQO'#K^'#K^O;lQ`O'#K^O;zQ`O'#GzO;zQ`O'#G{O;zQ`O'#G}O9aQ`O'#HQOYQ`O'#CeO>jQ`O'#HaO>rQ`O'#HgO>rQ`O'#HiO`QlO'#HkO>rQ`O'#HmO>rQ`O'#HpO>wQ`O'#HvO>|Q!0LsO'#H|O%[QlO'#IOO?XQ!0LsO'#IQO?dQ!0LsO'#ISO9kQ!0LrO'#IUO?oQ!0MxO'#CiO@qQpO'#DjQOQ`OOO%[QlO'#EOOAXQ`O'#ERO:YQMhO'#ElOAdQ`O'#ElOAoQ!bO'#FdOOQ['#Cg'#CgOOQ!0Lb'#Do'#DoOOQ!0Lb'#Jt'#JtO%[QlO'#JtOOQO'#Jw'#JwOOQO'#If'#IfOBoQpO'#EeOOQ!0Lb'#Ed'#EdOOQ!0Lb'#J{'#J{OCkQ!0MSO'#EeOCuQpO'#EUOOQO'#Jv'#JvODZQpO'#JwOEhQpO'#EUOCuQpO'#EePEuO&2DjO'#CbPOOO)CD{)CD{OOOO'#I^'#I^OFQO#tO,59UOOQ!0Lh,59U,59UOOOO'#I_'#I_OF`O&jO,59UOFnQ!L^O'#DaOOOO'#Ia'#IaOFuO#@ItO,59yOOQ!0Lf,59y,59yOGTQlO'#IbOGhQ`O'#JrOIgQ!fO'#JrO+}QlO'#JrOInQ`O,5:POJUQ`O'#EnOJcQ`O'#KROJnQ`O'#KQOJnQ`O'#KQOJvQ`O,5;[OJ{Q`O'#KPOOQ!0Ln,5:[,5:[OKSQlO,5:[OMQQ!0MxO,5:dOMqQ`O,5:lON[Q!0LrO'#KOONcQ`O'#J}O9ZQ`O'#J}ONwQ`O'#J}O! PQ`O,5;ZO! UQ`O'#J}O!#ZQ!fO'#JqOOQ!0Lh'#Ci'#CiO%[QlO'#EQO!#yQ!fO,5:qOOQS'#Jx'#JxOOQO-ErOOQ['#Jf'#JfOOQ[,5>s,5>sOOQ[-EbQ!0MxO,5:hO%[QlO,5:hO!@xQ!0MxO,5:jOOQO,5@x,5@xO!AiQMhO,5=^O!AwQ!0LrO'#JgO9UQ`O'#JgO!BYQ!0LrO,59ZO!BeQpO,59ZO!BmQMhO,59ZO:YQMhO,59ZO!BxQ`O,5;XO!CQQ`O'#H`O!CfQ`O'#KbO%[QlO,5;|O!9lQpO,5wQ`O'#HVO9aQ`O'#HXO!D}Q`O'#HXO:YQMhO'#HZO!ESQ`O'#HZOOQ[,5=o,5=oO!EXQ`O'#H[O!EjQ`O'#CoO!EoQ`O,59PO!EyQ`O,59PO!HOQlO,59POOQ[,59P,59PO!H`Q!0LrO,59PO%[QlO,59PO!JkQlO'#HcOOQ['#Hd'#HdOOQ['#He'#HeO`QlO,5={O!KRQ`O,5={O`QlO,5>RO`QlO,5>TO!KWQ`O,5>VO`QlO,5>XO!K]Q`O,5>[O!KbQlO,5>bOOQ[,5>h,5>hO%[QlO,5>hO9kQ!0LrO,5>jOOQ[,5>l,5>lO# lQ`O,5>lOOQ[,5>n,5>nO# lQ`O,5>nOOQ[,5>p,5>pO#!YQpO'#D]O%[QlO'#JtO#!{QpO'#JtO##VQpO'#DkO##hQpO'#DkO#%yQlO'#DkO#&QQ`O'#JsO#&YQ`O,5:UO#&_Q`O'#ErO#&mQ`O'#KSO#&uQ`O,5;]O#&zQpO'#DkO#'XQpO'#ETOOQ!0Lf,5:m,5:mO%[QlO,5:mO#'`Q`O,5:mO>wQ`O,5;WO!BeQpO,5;WO!BmQMhO,5;WO:YQMhO,5;WO#'hQ`O,5@`O#'mQ07dO,5:qOOQO-E|O+}QlO,5>|OOQO,5?S,5?SO#*uQlO'#IbOOQO-E<`-E<`O#+SQ`O,5@^O#+[Q!fO,5@^O#+cQ`O,5@lOOQ!0Lf1G/k1G/kO%[QlO,5@mO#+kQ`O'#IhOOQO-ErQ`O1G3qO$4rQlO1G3sO$8vQlO'#HrOOQ[1G3v1G3vO$9TQ`O'#HxO>wQ`O'#HzOOQ[1G3|1G3|O$9]QlO1G3|O9kQ!0LrO1G4SOOQ[1G4U1G4UOOQ!0Lb'#G^'#G^O9kQ!0LrO1G4WO9kQ!0LrO1G4YO$=dQ`O,5@`O!(yQlO,5;^O9ZQ`O,5;^O>wQ`O,5:VO!(yQlO,5:VO!BeQpO,5:VO$=iQ?MtO,5:VOOQO,5;^,5;^O$=sQpO'#IcO$>ZQ`O,5@_OOQ!0Lf1G/p1G/pO$>cQpO'#IiO$>mQ`O,5@nOOQ!0Lb1G0w1G0wO##hQpO,5:VOOQO'#Ie'#IeO$>uQpO,5:oOOQ!0Ln,5:o,5:oO#'cQ`O1G0XOOQ!0Lf1G0X1G0XO%[QlO1G0XOOQ!0Lf1G0r1G0rO>wQ`O1G0rO!BeQpO1G0rO!BmQMhO1G0rOOQ!0Lb1G5z1G5zO!BYQ!0LrO1G0[OOQO1G0k1G0kO%[QlO1G0kO$>|Q!0LrO1G0kO$?XQ!0LrO1G0kO!BeQpO1G0[OCuQpO1G0[O$?gQ!0LrO1G0kOOQO1G0[1G0[O$?{Q!0MxO1G0kPOOO-E|O$@iQ`O1G5xO$@qQ`O1G6WO$@yQ!fO1G6XO9ZQ`O,5?SO$ATQ!0MxO1G6UO%[QlO1G6UO$AeQ!0LrO1G6UO$AvQ`O1G6TO$AvQ`O1G6TO9ZQ`O1G6TO$BOQ`O,5?VO9ZQ`O,5?VOOQO,5?V,5?VO$BdQ`O,5?VO$)iQ`O,5?VOOQO-E^OOQ[,5>^,5>^O%[QlO'#HsO%=zQ`O'#HuOOQ[,5>d,5>dO9ZQ`O,5>dOOQ[,5>f,5>fOOQ[7+)h7+)hOOQ[7+)n7+)nOOQ[7+)r7+)rOOQ[7+)t7+)tO%>PQpO1G5zO%>kQ?MtO1G0xO%>uQ`O1G0xOOQO1G/q1G/qO%?QQ?MtO1G/qO>wQ`O1G/qO!(yQlO'#DkOOQO,5>},5>}OOQO-EwQ`O7+&^O!BeQpO7+&^OOQO7+%v7+%vO$?{Q!0MxO7+&VOOQO7+&V7+&VO%[QlO7+&VO%?[Q!0LrO7+&VO!BYQ!0LrO7+%vO!BeQpO7+%vO%?gQ!0LrO7+&VO%?uQ!0MxO7++pO%[QlO7++pO%@VQ`O7++oO%@VQ`O7++oOOQO1G4q1G4qO9ZQ`O1G4qO%@_Q`O1G4qOOQS7+%{7+%{O#'cQ`O<_OOQ[,5>a,5>aO&=aQ`O1G4OO9ZQ`O7+&dO!(yQlO7+&dOOQO7+%]7+%]O&=fQ?MtO1G6XO>wQ`O7+%]OOQ!0Lf<wQ`O<]Q`O<= ZOOQO7+*]7+*]O9ZQ`O7+*]OOQ[ANAjANAjO&>eQ!fOANAjO!&iQMhOANAjO#'cQ`OANAjO4UQ!fOANAjO&>lQ`OANAjO%[QlOANAjO&>tQ!0MzO7+'yO&AVQ!0MzO,5?_O&CbQ!0MzO,5?aO&EmQ!0MzO7+'{O&HOQ!fO1G4jO&HYQ?MtO7+&_O&J^Q?MvO,5=WO&LeQ?MvO,5=YO&LuQ?MvO,5=WO&MVQ?MvO,5=YO&MgQ?MvO,59sO' mQ?MvO,5wQ`O7+)jO'-]Q`O<|AN>|O%[QlOAN?]OOQO<PPPP!>XHwPPPPPPPPPP!AhP!BuPPHw!DWPHwPHwHwHwHwHwPHw!EjP!HtP!KzP!LO!LY!L^!L^P!HqP!Lb!LbP# hP# lHwPHw# r#$wCV@yP@yP@y@yP#&U@y@y#(h@y#+`@y#-l@y@y#.[#0p#0p#0u#1O#0p#1ZPP#0pP@y#1s@y#5r@y@y6aPPP#9wPPP#:b#:bP#:bP#:x#:bPP#;OP#:uP#:u#;c#:u#;}#R#>X#>c#>i#>s#>y#?Z#?a#@R#@e#@k#@q#AP#Af#CZ#Ci#Cp#E[#Ej#G[#Gj#Gp#Gv#G|#HW#H^#Hd#Hn#IQ#IWPPPPPPPPPPP#I^PPPPPPP#JR#MY#Nr#Ny$ RPPP$&mP$&v$)o$0Y$0]$0`$1_$1b$1i$1qP$1w$1zP$2h$2l$3d$4r$4w$5_PP$5d$5j$5n$5q$5u$5y$6u$7^$7u$7y$7|$8P$8V$8Y$8^$8bR!|RoqOXst!Z#d%l&p&r&s&u,n,s2S2VY!vQ'^-`1g5qQ%svQ%{yQ&S|Q&h!VS'U!e-WQ'd!iS'j!r!yU*h$|*X*lQ+l%|Q+y&UQ,_&bQ-^']Q-h'eQ-p'kQ0U*nQ1q,`R < TypeParamList const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:378,context:Wy,nodeProps:[["isolate",-8,5,6,14,35,37,49,51,53,""],["group",-26,9,17,19,66,206,210,214,215,217,220,223,233,235,241,243,245,247,250,256,262,264,266,268,270,272,273,"Statement",-34,13,14,30,33,34,40,49,52,53,55,60,68,70,74,78,80,82,83,108,109,118,119,135,138,140,141,142,143,144,146,147,166,168,170,"Expression",-23,29,31,35,39,41,43,172,174,176,177,179,180,181,183,184,185,187,188,189,200,202,204,205,"Type",-3,86,101,107,"ClassItem"],["openedBy",23,"<",36,"InterpolationStart",54,"[",58,"{",71,"(",159,"JSXStartCloseTag"],["closedBy",-2,24,167,">",38,"InterpolationEnd",48,"]",59,"}",72,")",164,"JSXEndTag"]],propSources:[Jy],skippedNodes:[0,5,6,276],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(X!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(X!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(UpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(UpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Up(X!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Up(X!b'z0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(V#S$h&j'{0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Up(X!b'{0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!n),Q(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(T':f$h&j(X!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(X!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(X!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(X!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(X!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Up(X!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(X!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(UpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(UpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Up(X!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!V7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!V7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!V7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(X!b!V7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(X!b!V7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(X!b!V7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(X!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(X!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!e$b$h&j#})Lv(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#P-v$?V_![(CdtBr$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!o7`$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Up(X!b'z0/l$[#t(R,2j(c$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Up(X!b'{0/l$[#t(R,2j(c$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[Yy,Fy,Hy,Ky,2,3,4,5,6,7,8,9,10,11,12,13,14,Gy,new bo("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOv~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!S~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(a~~",141,338),new bo("j~RQYZXz{^~^O(O~~aP!P!Qd~iO(P~~",25,321)],topRules:{Script:[0,7],SingleExpression:[1,274],SingleClassItem:[2,275]},dialects:{jsx:0,ts:15091},dynamicPrecedences:{78:1,80:1,92:1,168:1,198:1},specialized:[{term:325,get:s=>eb[s]||-1},{term:341,get:s=>tb[s]||-1},{term:93,get:s=>ib[s]||-1}],tokenPrec:15116});function zl(s){let e=Object.keys(s).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function sb(s){let e=Object.create(null),t=Object.create(null);for(let{label:n}of s){e[n[0]]=!0;for(let r=1;rtypeof n=="string"?{label:n}:n),[t,i]=e.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:sb(e);return n=>{let r=n.matchBefore(i);return r||n.explicit?{from:r?r.from:n.pos,options:e,validFor:t}:null}}function ob(s,e){return t=>{for(let i=qe(t.state).resolveInner(t.pos,-1);i;i=i.parent){if(s.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return e(t)}}const ab=Oi.define(),lb=V.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class hb{constructor(e,t,i,n){this.field=e,this.line=t,this.from=i,this.to=n}}class Go{constructor(e,t,i){this.field=e,this.from=t,this.to=i}map(e){let t=e.mapPos(this.from,-1,Ce.TrackDel),i=e.mapPos(this.to,1,Ce.TrackDel);return t==null||i==null?null:new Go(this.field,t,i)}}class Yo{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let i=[],n=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(i.length){let h=o,c=/^\t*/.exec(l)[0].length;for(let u=0;unew Go(l.field,n[l.line]+l.from,n[l.line]+l.to));return{text:i,ranges:a}}static parse(e){let t=[],i=[],n=[],r;for(let o of e.split(/\r\n?|\n/)){for(;r=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let a=r[1]?+r[1]:null,l=r[2]||r[3]||"",h=-1,c=l.replace(/\\[{}]/g,u=>u[1]);for(let u=0;u=h&&f.field++}n.push(new hb(h,i.length,r.index,r.index+c.length)),o=o.slice(0,r.index)+l+o.slice(r.index+r[0].length)}o=o.replace(/\\([{}])/g,(a,l,h)=>{for(let c of n)c.line==i.length&&c.from>h&&(c.from--,c.to--);return l}),i.push(o)}return new Yo(i,n)}}let cb=de.widget({widget:new class extends Es{toDOM(){let s=document.createElement("span");return s.className="cm-snippetFieldPosition",s}ignoreEvent(){return!1}}}),ub=de.mark({class:"cm-snippetField"});class Bi{constructor(e,t){this.ranges=e,this.active=t,this.deco=de.set(e.map(i=>(i.from==i.to?cb:ub).range(i.from,i.to)))}map(e){let t=[];for(let i of this.ranges){let n=i.map(e);if(!n)return null;t.push(n)}return new Bi(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(i=>i.field==this.active&&i.from<=t.from&&i.to>=t.to))}}const Tn=he.define({map(s,e){return s&&s.map(e)}}),fb=he.define(),wn=Wt.define({create(){return null},update(s,e){for(let t of e.effects){if(t.is(Tn))return t.value;if(t.is(fb)&&s)return new Bi(s.ranges,t.value)}return s&&e.docChanged&&(s=s.map(e.changes)),s&&e.selection&&!s.selectionInsideField(e.selection)&&(s=null),s},provide:s=>V.decorations.from(s,e=>e?e.deco:de.none)});function Fo(s,e){return A.create(s.filter(t=>t.field==e).map(t=>A.range(t.from,t.to)))}function db(s){let e=Yo.parse(s);return(t,i,n,r)=>{let{text:o,ranges:a}=e.instantiate(t.state,n),{main:l}=t.state.selection,h={changes:{from:n,to:r==l.from?l.to:r,insert:q.of(o)},scrollIntoView:!0,annotations:i?[ab.of(i),ve.userEvent.of("input.complete")]:void 0};if(a.length&&(h.selection=Fo(a,0)),a.some(c=>c.field>0)){let c=new Bi(a,0),u=h.effects=[Tn.of(c)];t.state.field(wn,!1)===void 0&&u.push(he.appendConfig.of([wn,yb,bb,lb]))}t.dispatch(t.state.update(h))}}function Au(s){return({state:e,dispatch:t})=>{let i=e.field(wn,!1);if(!i||s<0&&i.active==0)return!1;let n=i.active+s,r=s>0&&!i.ranges.some(o=>o.field==n+s);return t(e.update({selection:Fo(i.ranges,n),effects:Tn.of(r?null:new Bi(i.ranges,n)),scrollIntoView:!0})),!0}}const pb=({state:s,dispatch:e})=>s.field(wn,!1)?(e(s.update({effects:Tn.of(null)})),!0):!1,Ob=Au(1),mb=Au(-1),gb=[{key:"Tab",run:Ob,shift:mb},{key:"Escape",run:pb}],Ul=j.define({combine(s){return s.length?s[0]:gb}}),yb=As.highest(ys.compute([Ul],s=>s.facet(Ul)));function De(s,e){return Object.assign(Object.assign({},e),{apply:db(s)})}const bb=V.domEventHandlers({mousedown(s,e){let t=e.state.field(wn,!1),i;if(!t||(i=e.posAtCoords({x:s.clientX,y:s.clientY}))==null)return!1;let n=t.ranges.find(r=>r.from<=i&&r.to>=i);return!n||n.field==t.active?!1:(e.dispatch({selection:Fo(t.ranges,n.field),effects:Tn.of(t.ranges.some(r=>r.field>n.field)?new Bi(t.ranges,n.field):null),scrollIntoView:!0}),!0)}}),Ru=new class extends ci{};Ru.startSide=1;Ru.endSide=-1;const Zu=[De("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),De("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),De("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),De("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),De("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),De(`try { - \${} -} catch (\${error}) { - \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),De("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),De(`if (\${}) { - \${} -} else { - \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),De(`class \${name} { - constructor(\${params}) { - \${} - } -}`,{label:"class",detail:"definition",type:"keyword"}),De('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),De('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Sb=Zu.concat([De("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),De("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),De("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ql=new Dg,Cu=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Yi(s){return(e,t)=>{let i=e.node.getChild("VariableDefinition");return i&&t(i,s),!0}}const xb=["FunctionDeclaration"],wb={FunctionDeclaration:Yi("function"),ClassDeclaration:Yi("class"),ClassExpression:()=>!0,EnumDeclaration:Yi("constant"),TypeAliasDeclaration:Yi("type"),NamespaceDeclaration:Yi("namespace"),VariableDefinition(s,e){s.matchContext(xb)||e(s,"variable")},TypeDefinition(s,e){e(s,"type")},__proto__:null};function Mu(s,e){let t=ql.get(e);if(t)return t;let i=[],n=!0;function r(o,a){let l=s.sliceString(o.from,o.to);i.push({label:l,type:a})}return e.cursor(be.IncludeAnonymous).iterate(o=>{if(n)n=!1;else if(o.name){let a=wb[o.name];if(a&&a(o,r)||Cu.has(o.name))return!1}else if(o.to-o.from>8192){for(let a of Mu(s,o.node))i.push(a);return!1}}),ql.set(e,i),i}const Wl=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Eu=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function Qb(s){let e=qe(s.state).resolveInner(s.pos,-1);if(Eu.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Wl.test(s.state.sliceDoc(e.from,e.to));if(!t&&!s.explicit)return null;let i=[];for(let n=e;n;n=n.parent)Cu.has(n.name)&&(i=i.concat(Mu(s.state.doc,n)));return{options:i,from:t?e.from:s.pos,validFor:Wl}}const hi=ws.define({name:"javascript",parser:nb.configure({props:[Hc.add({IfStatement:fr({except:/^\s*({|else\b)/}),TryStatement:fr({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:s0,SwitchBody:s=>{let e=s.textAfter,t=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return s.baseIndent+(t?0:i?1:2)*s.unit},Block:n0({closing:"}"}),ArrowFunction:s=>s.baseIndent+s.unit,"TemplateString BlockComment":()=>null,"Statement Property":fr({except:/^{/}),JSXElement(s){let e=/^\s*<\//.test(s.textAfter);return s.lineIndent(s.node.from)+(e?0:s.unit)},JSXEscape(s){let e=/\s*\}/.test(s.textAfter);return s.lineIndent(s.node.from)+(e?0:s.unit)},"JSXOpenTag JSXSelfClosingTag"(s){return s.column(s.node.from)+s.unit}}),r0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":o0,BlockComment(s){return{from:s.from+2,to:s.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Lu={test:s=>/^JSX/.test(s.name),facet:Gc({commentTokens:{block:{open:"{/*",close:"*/}"}}})},kb=hi.configure({dialect:"ts"},"typescript"),vb=hi.configure({dialect:"jsx",props:[No.add(s=>s.isTop?[Lu]:void 0)]}),Pb=hi.configure({dialect:"jsx ts",props:[No.add(s=>s.isTop?[Lu]:void 0)]},"typescript");let Du=s=>({label:s,type:"keyword"});const Xu="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Du),$b=Xu.concat(["declare","implements","private","protected","public"].map(Du));function Tb(s={}){let e=s.jsx?s.typescript?Pb:vb:s.typescript?kb:hi,t=s.typescript?Sb.concat($b):Zu.concat(Xu);return new Yg(e,[hi.data.of({autocomplete:ob(Eu,rb(t))}),hi.data.of({autocomplete:Qb}),s.jsx?Rb:[]])}function _b(s){for(;;){if(s.name=="JSXOpenTag"||s.name=="JSXSelfClosingTag"||s.name=="JSXFragmentTag")return s;if(s.name=="JSXEscape"||!s.parent)return null;s=s.parent}}function Gl(s,e,t=s.length){for(let i=e==null?void 0:e.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return s.sliceString(i.from,Math.min(i.to,t));return""}const Ab=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Rb=V.inputHandler.of((s,e,t,i,n)=>{if((Ab?s.composing:s.compositionStarted)||s.state.readOnly||e!=t||i!=">"&&i!="/"||!hi.isActiveAt(s.state,e,-1))return!1;let r=n(),{state:o}=r,a=o.changeByRange(l=>{var h;let{head:c}=l,u=qe(o).resolveInner(c-1,-1),f;if(u.name=="JSXStartTag"&&(u=u.parent),!(o.doc.sliceString(c-1,c)!=i||u.name=="JSXAttributeValue"&&u.to>c)){if(i==">"&&u.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(i=="/"&&u.name=="JSXStartCloseTag"){let d=u.parent,p=d.parent;if(p&&d.from==c-2&&((f=Gl(o.doc,p.firstChild,c))||((h=p.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let O=`${f}>`;return{range:A.cursor(c+O.length,-1),changes:{from:c,insert:O}}}}else if(i==">"){let d=_b(u);if(d&&d.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(f=Gl(o.doc,d,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return a.changes.empty?!1:(s.dispatch([r,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Zb="#e5c07b",Yl="#e06c75",Cb="#56b6c2",Mb="#ffffff",os="#abb2bf",wo="#7d8799",Eb="#61afef",Lb="#98c379",Fl="#d19a66",Db="#c678dd",Xb="#21252b",Hl="#2c313a",Kl="#282c34",yr="#353a42",Ib="#3E4451",Jl="#528bff",jb=V.theme({"&":{color:os,backgroundColor:Kl},".cm-content":{caretColor:Jl},".cm-cursor, .cm-dropCursor":{borderLeftColor:Jl},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Ib},".cm-panels":{backgroundColor:Xb,color:os},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Kl,color:wo,border:"none"},".cm-activeLineGutter":{backgroundColor:Hl},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:yr},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:yr,borderBottomColor:yr},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Hl,color:os}}},{dark:!0}),Iu=vn.define([{tag:b.keyword,color:Db},{tag:[b.name,b.deleted,b.character,b.propertyName,b.macroName],color:Yl},{tag:[b.function(b.variableName),b.labelName],color:Eb},{tag:[b.color,b.constant(b.name),b.standard(b.name)],color:Fl},{tag:[b.definition(b.name),b.separator],color:os},{tag:[b.typeName,b.className,b.number,b.changed,b.annotation,b.modifier,b.self,b.namespace],color:Zb},{tag:[b.operator,b.operatorKeyword,b.url,b.escape,b.regexp,b.link,b.special(b.string)],color:Cb},{tag:[b.meta,b.comment],color:wo},{tag:b.strong,fontWeight:"bold"},{tag:b.emphasis,fontStyle:"italic"},{tag:b.strikethrough,textDecoration:"line-through"},{tag:b.link,color:wo,textDecoration:"underline"},{tag:b.heading,fontWeight:"bold",color:Yl},{tag:[b.atom,b.bool,b.special(b.variableName)],color:Fl},{tag:[b.processingInstruction,b.string,b.inserted],color:Lb},{tag:b.invalid,color:Mb}]),Vb=[jb,eu(Iu)],Bb={class:"serial-script"},Nb={class:"script-select"},zb={class:"script-editor"},Ub={class:"script-name-container"},qb=lt({__name:"SerialScript",setup(s){const e=cs.getInstance(),t=F(e.getScripts()),i=F(e.getCurrentScript()),n=F(i.value.id),r=F(null),o=ji(),a=p=>{r.value&&r.value.dispatch({changes:{from:0,to:r.value.state.doc.length,insert:p}})},l=p=>{e.setCurrentScript(p),i.value=p,a(p.code),n.value=i.value.id},h=()=>{const p=e.addScript();t.value=e.getScripts(),l(p)},c=p=>{e.removeScript(p),t.value=e.getScripts(),t.value.length==0&&h(),l(t.value[0])},u=async()=>{i.value.isRunning?await e.stopScript():await e.runScript()},f=()=>{const p=t.value.find(O=>O.id===n.value);p&&l(p)},d=()=>{const p=document.getElementById("script-editor-container");if(p){const O=Y.create({doc:i.value.code,extensions:[ys.of(my),ys.of([gy]),eu(o.value?Iu:c0),Tb(),o.value?Vb:[],Ag(),V.updateListener.of(g=>{g.docChanged&&(i.value.code=g.state.doc.toString())})]});r.value=new V({state:O,parent:p})}};return Ii(()=>{d()}),_i(o,()=>{r.value&&(r.value.destroy(),d())}),_i(t,()=>{e.saveScripts()},{deep:!0}),(p,O)=>{const g=C("el-option"),m=C("el-select"),Q=C("Plus"),T=C("el-icon"),y=C("el-button"),v=C("el-button-group"),w=C("el-input"),x=C("Compass"),P=C("el-tooltip");return I(),H("div",Bb,[E("div",Nb,[S(m,{size:"small",modelValue:n.value,"onUpdate:modelValue":O[0]||(O[0]=k=>n.value=k),onChange:f,placeholder:"选择脚本"},{default:$(()=>[(I(!0),H(Ae,null,Re(t.value,k=>(I(),oe(g,{key:k.id,label:k.name,value:k.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),S(v,{class:"ms-2",style:{width:"250px"}},{default:$(()=>[S(y,{size:"small",onClick:h},{default:$(()=>[S(T,null,{default:$(()=>[S(Q)]),_:1}),O[4]||(O[4]=W(" 新建 "))]),_:1}),S(y,{size:"small",type:"danger",onClick:O[1]||(O[1]=k=>c(i.value.id))},{default:$(()=>O[5]||(O[5]=[W("删除")])),_:1})]),_:1})]),E("div",zb,[E("div",Ub,[S(w,{size:"small",modelValue:i.value.name,"onUpdate:modelValue":O[2]||(O[2]=k=>i.value.name=k),placeholder:"脚本名称",class:"script-name-input"},null,8,["modelValue"]),S(y,{type:i.value.isRunning?"success":"primary",size:"small",onClick:O[3]||(O[3]=k=>u()),class:"run-button"},{default:$(()=>[W(Ze(i.value.isRunning?"停止":"运行"),1)]),_:1},8,["type"]),S(P,{effect:"dark",placement:"bottom"},{content:$(()=>O[6]||(O[6]=[E("p",null,"可用的API:",-1),E("ul",null,[E("li",null,"sendText(text) - 发送文本数据"),E("li",null,"sendHex(hex) - 发送HEX格式数据"),E("li",null,"sleep(ms) - 延时指定毫秒数"),E("li",null,"updateDataTable({pitch: 1.0, roll: 1.0, yaw: 1.0}); 更新IMU数据")],-1)])),default:$(()=>[S(y,{size:"small",style:{"margin-left":"0"}},{default:$(()=>[S(T,null,{default:$(()=>[S(x)]),_:1})]),_:1})]),_:1})]),O[7]||(O[7]=E("div",{id:"script-editor-container",class:"editor-container"},null,-1))])])}}}),Wb=ht(qb,[["__scopeId","data-v-3c8fbedf"]]);function eh(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Function]"}function yi(s,e,t,i=1){const[n,r]=typeof i=="number"?[i,i]:i,o=Math.round(e/n/s[0])*s[0],a=Math.round(t/r/s[1])*s[1];return[o,a]}function br(s,e,t){return s-e-t}function Sr(s,e,t){return s-e-t}function Fe(s,e,t){return e!==null&&seh(i[r]));if(!eh(i[n]))return!1;do{if(i[n](e))return!0;if(i===t)return!1;i=i.parentNode}while(i);return!1}function Gb(s){const e=window.getComputedStyle(s);return[parseFloat(e.getPropertyValue("width"),10),parseFloat(e.getPropertyValue("height"),10)]}function Ht(s,e,t){s&&(s.attachEvent?s.attachEvent("on"+e,t):s.addEventListener?s.addEventListener(e,t,!0):s["on"+e]=t)}function Qt(s,e,t){s&&(s.detachEvent?s.detachEvent("on"+e,t):s.removeEventListener?s.removeEventListener(e,t,!0):s["on"+e]=null)}const Yb=(s,e)=>{const t=s.__vccOpts||s;for(const[i,n]of e)t[i]=n;return t},as={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},Fb={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},Hb={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"};let kt=as.mouse;const Kb={replace:!0,name:"vue-draggable-resizable",props:{className:{type:String,default:"vdr"},classNameDraggable:{type:String,default:"draggable"},classNameResizable:{type:String,default:"resizable"},classNameDragging:{type:String,default:"dragging"},classNameResizing:{type:String,default:"resizing"},classNameActive:{type:String,default:"active"},classNameHandle:{type:String,default:"handle"},disableUserSelect:{type:Boolean,default:!0},enableNativeDrag:{type:Boolean,default:!1},preventDeactivation:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},lockAspectRatio:{type:Boolean,default:!1},w:{type:[Number,String],default:200,validator:s=>typeof s=="number"?s>0:s==="auto"},h:{type:[Number,String],default:200,validator:s=>typeof s=="number"?s>0:s==="auto"},minWidth:{type:Number,default:0,validator:s=>s>=0},minHeight:{type:Number,default:0,validator:s=>s>=0},maxWidth:{type:Number,default:null,validator:s=>s>=0},maxHeight:{type:Number,default:null,validator:s=>s>=0},x:{type:Number,default:0},y:{type:Number,default:0},z:{type:[String,Number],default:"auto",validator:s=>typeof s=="string"?s==="auto":s>=0},handles:{type:Array,default:()=>["tl","tm","tr","mr","br","bm","bl","ml"],validator:s=>{const e=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(s.filter(t=>e.has(t))).size===s.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:s=>["x","y","both"].includes(s)},grid:{type:Array,default:()=>[1,1]},parent:{type:Boolean,default:!1},scale:{type:[Number,Array],default:1,validator:s=>typeof s=="number"?s>0:s.length===2&&s[0]>0&&s[1]>0},onDragStart:{type:Function,default:()=>!0},onDrag:{type:Function,default:()=>!0},onResizeStart:{type:Function,default:()=>!0},onResize:{type:Function,default:()=>!0}},data:function(){return{left:this.x,top:this.y,right:null,bottom:null,width:null,height:null,widthTouched:!1,heightTouched:!1,aspectFactor:null,parentWidth:null,parentHeight:null,handle:null,enabled:this.active,resizing:!1,dragging:!1,dragEnable:!1,resizeEnable:!1,zIndex:this.z}},created:function(){this.maxWidth&&this.minWidth>this.maxWidth&&console.warn("[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth"),this.maxHeight&&this.minHeight>this.maxHeight&&console.warn("[Vdr warn]: Invalid prop: minHeight cannot be greater than maxHeight"),this.resetBoundsAndMouseState()},mounted:function(){this.enableNativeDrag||(this.$el.ondragstart=()=>!1);const[s,e]=this.getParentSize();this.parentWidth=s,this.parentHeight=e;const[t,i]=Gb(this.$el);this.aspectFactor=(this.w!=="auto"?this.w:t)/(this.h!=="auto"?this.h:i),this.width=this.w!=="auto"?this.w:t,this.height=this.h!=="auto"?this.h:i,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top,this.active&&this.$emit("activated"),Ht(document.documentElement,"mousedown",this.deselect),Ht(document.documentElement,"touchend touchcancel",this.deselect),Ht(window,"resize",this.checkParentSize)},beforeUnmount:function(){Qt(document.documentElement,"mousedown",this.deselect),Qt(document.documentElement,"touchstart",this.handleUp),Qt(document.documentElement,"mousemove",this.move),Qt(document.documentElement,"touchmove",this.move),Qt(document.documentElement,"mouseup",this.handleUp),Qt(document.documentElement,"touchend touchcancel",this.deselect),Qt(window,"resize",this.checkParentSize)},methods:{resetBoundsAndMouseState(){this.mouseClickPosition={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0},this.bounds={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null}},checkParentSize(){if(this.parent){const[s,e]=this.getParentSize();this.parentWidth=s,this.parentHeight=e,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top}},getParentSize(){if(this.parent){const s=window.getComputedStyle(this.$el.parentNode,null);return[parseInt(s.getPropertyValue("width"),10),parseInt(s.getPropertyValue("height"),10)]}return[null,null]},elementTouchDown(s){kt=as.touch,this.elementDown(s)},elementMouseDown(s){kt=as.mouse,this.elementDown(s)},elementDown(s){if(s instanceof MouseEvent&&s.button!==0)return;const e=s.target||s.srcElement;if(this.$el.contains(e)){if(this.onDragStart(s)===!1)return;if(this.dragHandle&&!th(e,this.dragHandle,this.$el)||this.dragCancel&&th(e,this.dragCancel,this.$el)){this.dragging=!1;return}this.enabled||(this.enabled=!0,this.$emit("activated"),this.$emit("update:active",!0)),this.draggable&&(this.dragEnable=!0),this.mouseClickPosition.mouseX=s.touches?s.touches[0].pageX:s.pageX,this.mouseClickPosition.mouseY=s.touches?s.touches[0].pageY:s.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.parent&&(this.bounds=this.calcDragLimits()),Ht(document.documentElement,kt.move,this.move),Ht(document.documentElement,kt.stop,this.handleUp)}},calcDragLimits(){return{minLeft:this.left%this.grid[0],maxLeft:Math.floor((this.parentWidth-this.width-this.left)/this.grid[0])*this.grid[0]+this.left,minRight:this.right%this.grid[0],maxRight:Math.floor((this.parentWidth-this.width-this.right)/this.grid[0])*this.grid[0]+this.right,minTop:this.top%this.grid[1],maxTop:Math.floor((this.parentHeight-this.height-this.top)/this.grid[1])*this.grid[1]+this.top,minBottom:this.bottom%this.grid[1],maxBottom:Math.floor((this.parentHeight-this.height-this.bottom)/this.grid[1])*this.grid[1]+this.bottom}},deselect(s){const e=s.target||s.srcElement,t=new RegExp(this.className+"-([trmbl]{2})","");!this.$el.contains(e)&&!t.test(e.className)&&(this.enabled&&!this.preventDeactivation&&(this.enabled=!1,this.$emit("deactivated"),this.$emit("update:active",!1)),Qt(document.documentElement,kt.move,this.handleResize)),this.resetBoundsAndMouseState()},handleTouchDown(s,e){kt=as.touch,this.handleDown(s,e)},handleDown(s,e){e instanceof MouseEvent&&e.which!==1||this.onResizeStart(s,e)!==!1&&(e.stopPropagation&&e.stopPropagation(),this.lockAspectRatio&&!s.includes("m")?this.handle="m"+s.substring(1):this.handle=s,this.resizeEnable=!0,this.mouseClickPosition.mouseX=e.touches?e.touches[0].pageX:e.pageX,this.mouseClickPosition.mouseY=e.touches?e.touches[0].pageY:e.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.bounds=this.calcResizeLimits(),Ht(document.documentElement,kt.move,this.handleResize),Ht(document.documentElement,kt.stop,this.handleUp))},calcResizeLimits(){let s=this.minW,e=this.minH,t=this.maxW,i=this.maxH;const n=this.aspectFactor,[r,o]=this.grid,a=this.width,l=this.height,h=this.left,c=this.top,u=this.right,f=this.bottom;this.lockAspectRatio&&(s/e>n?e=s/n:s=n*e,t&&i?(t=Math.min(t,n*i),i=Math.min(i,t/n)):t?i=t/n:i&&(t=n*i)),t=t-t%r,i=i-i%o;const d={minLeft:null,maxLeft:null,minTop:null,maxTop:null,minRight:null,maxRight:null,minBottom:null,maxBottom:null};return this.parent?(d.minLeft=h%r,d.maxLeft=h+Math.floor((a-s)/r)*r,d.minTop=c%o,d.maxTop=c+Math.floor((l-e)/o)*o,d.minRight=u%r,d.maxRight=u+Math.floor((a-s)/r)*r,d.minBottom=f%o,d.maxBottom=f+Math.floor((l-e)/o)*o,t&&(d.minLeft=Math.max(d.minLeft,this.parentWidth-u-t),d.minRight=Math.max(d.minRight,this.parentWidth-h-t)),i&&(d.minTop=Math.max(d.minTop,this.parentHeight-f-i),d.minBottom=Math.max(d.minBottom,this.parentHeight-c-i)),this.lockAspectRatio&&(d.minLeft=Math.max(d.minLeft,h-c*n),d.minTop=Math.max(d.minTop,c-h/n),d.minRight=Math.max(d.minRight,u-f*n),d.minBottom=Math.max(d.minBottom,f-u/n))):(d.minLeft=null,d.maxLeft=h+Math.floor((a-s)/r)*r,d.minTop=null,d.maxTop=c+Math.floor((l-e)/o)*o,d.minRight=null,d.maxRight=u+Math.floor((a-s)/r)*r,d.minBottom=null,d.maxBottom=f+Math.floor((l-e)/o)*o,t&&(d.minLeft=-(u+t),d.minRight=-(h+t)),i&&(d.minTop=-(f+i),d.minBottom=-(c+i)),this.lockAspectRatio&&t&&i&&(d.minLeft=Math.min(d.minLeft,-(u+t)),d.minTop=Math.min(d.minTop,-(i+f)),d.minRight=Math.min(d.minRight,-h-t),d.minBottom=Math.min(d.minBottom,-c-i))),d},move(s){this.resizing?this.handleResize(s):this.dragEnable&&this.handleDrag(s)},handleDrag(s){const e=this.axis,t=this.grid,i=this.bounds,n=this.mouseClickPosition,r=e&&e!=="y"?n.mouseX-(s.touches?s.touches[0].pageX:s.pageX):0,o=e&&e!=="x"?n.mouseY-(s.touches?s.touches[0].pageY:s.pageY):0,[a,l]=yi(t,r,o,this.scale),h=Fe(n.left-a,i.minLeft,i.maxLeft),c=Fe(n.top-l,i.minTop,i.maxTop);if(this.onDrag(h,c)===!1)return;const u=Fe(n.right+a,i.minRight,i.maxRight),f=Fe(n.bottom+l,i.minBottom,i.maxBottom);this.left=h,this.top=c,this.right=u,this.bottom=f,this.$emit("dragging",this.left,this.top),this.dragging=!0},moveHorizontally(s){const[e,t]=yi(this.grid,s,this.top,1),i=Fe(e,this.bounds.minLeft,this.bounds.maxLeft);this.left=i,this.right=this.parentWidth-this.width-i},moveVertically(s){const[e,t]=yi(this.grid,this.left,s,1),i=Fe(t,this.bounds.minTop,this.bounds.maxTop);this.top=i,this.bottom=this.parentHeight-this.height-i},handleResize(s){let e=this.left,t=this.top,i=this.right,n=this.bottom;const r=this.mouseClickPosition,o=this.aspectFactor,a=r.mouseX-(s.touches?s.touches[0].pageX:s.pageX),l=r.mouseY-(s.touches?s.touches[0].pageY:s.pageY);!this.widthTouched&&a&&(this.widthTouched=!0),!this.heightTouched&&l&&(this.heightTouched=!0);const[h,c]=yi(this.grid,a,l,this.scale);this.handle.includes("b")?(n=Fe(r.bottom+c,this.bounds.minBottom,this.bounds.maxBottom),this.lockAspectRatio&&this.resizingOnY&&(i=this.right-(this.bottom-n)*o)):this.handle.includes("t")&&(t=Fe(r.top-c,this.bounds.minTop,this.bounds.maxTop),this.lockAspectRatio&&this.resizingOnY&&(e=this.left-(this.top-t)*o)),this.handle.includes("r")?(i=Fe(r.right+h,this.bounds.minRight,this.bounds.maxRight),this.lockAspectRatio&&this.resizingOnX&&(n=this.bottom-(this.right-i)/o)):this.handle.includes("l")&&(e=Fe(r.left-h,this.bounds.minLeft,this.bounds.maxLeft),this.lockAspectRatio&&this.resizingOnX&&(t=this.top-(this.left-e)/o));const u=br(this.parentWidth,e,i),f=Sr(this.parentHeight,t,n);this.onResize(this.handle,e,t,u,f)!==!1&&(this.left=e,this.top=t,this.right=i,this.bottom=n,this.width=u,this.height=f,this.$emit("resizing",this.left,this.top,this.width,this.height),this.resizing=!0)},changeWidth(s){const[e,t]=yi(this.grid,s,0,1),i=Fe(this.parentWidth-e-this.left,this.bounds.minRight,this.bounds.maxRight);let n=this.bottom;this.lockAspectRatio&&(n=this.bottom-(this.right-i)/this.aspectFactor);const r=br(this.parentWidth,this.left,i),o=Sr(this.parentHeight,this.top,n);this.right=i,this.bottom=n,this.width=r,this.height=o},changeHeight(s){const[e,t]=yi(this.grid,0,s,1),i=Fe(this.parentHeight-t-this.top,this.bounds.minBottom,this.bounds.maxBottom);let n=this.right;this.lockAspectRatio&&(n=this.right-(this.bottom-i)*this.aspectFactor);const r=br(this.parentWidth,this.left,n),o=Sr(this.parentHeight,this.top,i);this.right=n,this.bottom=i,this.width=r,this.height=o},handleUp(s){this.handle=null,this.resetBoundsAndMouseState(),this.dragEnable=!1,this.resizeEnable=!1,this.resizing&&(this.resizing=!1,this.$emit("resizeStop",this.left,this.top,this.width,this.height)),this.dragging&&(this.dragging=!1,this.$emit("dragStop",this.left,this.top)),Qt(document.documentElement,kt.move,this.handleResize)}},computed:{style(){return{transform:`translate(${this.left}px, ${this.top}px)`,width:this.computedWidth,height:this.computedHeight,zIndex:this.zIndex,...this.dragging&&this.disableUserSelect?Fb:Hb}},actualHandles(){return this.resizable?this.handles:[]},computedWidth(){return this.w==="auto"&&!this.widthTouched?"auto":this.width+"px"},computedHeight(){return this.h==="auto"&&!this.heightTouched?"auto":this.height+"px"},minW(){return this.minWidth},minH(){return this.minHeight},maxW(){return this.maxWidth},maxH(){return this.maxHeight},resizingOnX(){return!!this.handle&&(this.handle.includes("l")||this.handle.includes("r"))},resizingOnY(){return!!this.handle&&(this.handle.includes("t")||this.handle.includes("b"))},isCornerHandle(){return!!this.handle&&["tl","tr","br","bl"].includes(this.handle)}},watch:{active(s){this.enabled=s,s?this.$emit("activated"):this.$emit("deactivated")},z(s){(s>=0||s==="auto")&&(this.zIndex=s)},x(s){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveHorizontally(s))},y(s){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveVertically(s))},lockAspectRatio(s){s?this.aspectFactor=this.width/this.height:this.aspectFactor=void 0},w(s){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeWidth(s))},h(s){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeHeight(s))}}},Jb=["onMousedown","onTouchstart"];function e1(s,e,t,i,n,r){return I(),H("div",{style:ea(r.style),class:xr([{[t.classNameActive]:s.enabled,[t.classNameDragging]:s.dragging,[t.classNameResizing]:s.resizing,[t.classNameDraggable]:t.draggable,[t.classNameResizable]:t.resizable},t.className]),onMousedown:e[0]||(e[0]=(...o)=>r.elementMouseDown&&r.elementMouseDown(...o)),onTouchstart:e[1]||(e[1]=(...o)=>r.elementTouchDown&&r.elementTouchDown(...o))},[(I(!0),H(Ae,null,Re(r.actualHandles,o=>(I(),H("div",{key:o,class:xr([t.classNameHandle,t.classNameHandle+"-"+o]),style:ea({display:s.enabled?"block":"none"}),onMousedown:Jo(a=>r.handleDown(o,a),["stop","prevent"]),onTouchstart:Jo(a=>r.handleTouchDown(o,a),["stop","prevent"])},[Ko(s.$slots,o)],46,Jb))),128)),Ko(s.$slots,"default")],38)}const ju=Yb(Kb,[["render",e1]]);function Qo(s){Qo.installed||(Qo.installed=!0,s.component("VueDraggableResizable",ju))}const t1={install:Qo};let _s=null;typeof window<"u"?_s=window.Vue:typeof global<"u"&&(_s=global.Vue);_s&&_s.use(t1);const i1={class:"canvas-panel"},n1={class:"toolbar"},Fi=10,s1=lt({__name:"CanvasPanel",setup(s){var f;const e=Ct.getInstance(),t=e.useConfig("canvas"),i=F(((f=t.value)==null?void 0:f.items)||[]),n=ji(),r={chart:Qh,table:kh,"3d":wh},o=d=>{const p={id:Date.now(),type:d,x:0,y:0,width:400,height:300};i.value.push(p),u()},a=d=>Math.round(d/Fi)*Fi,l=(d,p,O,g,m)=>{const Q=i.value.find(T=>T.id===m);Q&&(Q.x=a(d),Q.y=a(p),Q.width=a(O),Q.height=a(g),u())},h=(d,p,O)=>{const g=i.value.find(m=>m.id===O);g&&(g.x=a(d),g.y=a(p),u())},c=d=>{const p=i.value.findIndex(O=>O.id===d);p!==-1&&(i.value.splice(p,1),u())},u=()=>{e.setConfig("canvas",{items:i.value})};return(d,p)=>{const O=C("el-button"),g=C("el-button-group");return I(),H("div",i1,[E("div",n1,[S(g,{class:"tool-group"},{default:$(()=>[S(O,{type:"primary",size:"small",onClick:p[0]||(p[0]=m=>o("chart"))},{default:$(()=>p[3]||(p[3]=[W("添加图表")])),_:1}),S(O,{type:"primary",size:"small",onClick:p[1]||(p[1]=m=>o("table"))},{default:$(()=>p[4]||(p[4]=[W("添加数据表")])),_:1}),S(O,{type:"primary",size:"small",onClick:p[2]||(p[2]=m=>o("3d"))},{default:$(()=>p[5]||(p[5]=[W("添加3D视图")])),_:1})]),_:1})]),E("div",{class:xr(["canvas-container",{dark:Z(n)}])},[p[6]||(p[6]=E("div",{class:"grid-background"},null,-1)),(I(!0),H(Ae,null,Re(i.value,m=>(I(),oe(Z(ju),{key:m.id,x:m.x,y:m.y,w:m.width,h:m.height,width:m.width,height:m.height,draggable:!0,resizable:!0,grid:[Fi,Fi],snap:!0,"snap-tolerance":Fi,class:"canvas-item",onResizing:(Q,T,y,v)=>l(Q,T,y,v,m.id),onDragging:(Q,T)=>h(Q,T,m.id)},{default:$(()=>[(I(),oe(zu(r[m.type]))),S(O,{class:"remove-btn",type:"danger",circle:"",size:"small",onClick:Q=>c(m.id),icon:"Delete"},null,8,["onClick"])]),_:2},1032,["x","y","w","h","width","height","grid","onResizing","onDragging"]))),128))],2)])}}}),r1=ht(s1,[["__scopeId","data-v-7e5002fe"]]),o1={class:"header-content"},a1={class:"header-left"},l1={class:"header-links"},h1=lt({__name:"App",setup(s){const t=Ct.getInstance().useConfig("layout"),i=ji({initialValue:"dark",storage:localStorage}),n=Uu(i),r=F(!1),o=()=>{document.fullscreenElement?(document.exitFullscreen(),r.value=!1):(document.documentElement.requestFullscreen(),r.value=!0)},a=u=>{t.value.splitPaneSize=u[0].size,c()},l=()=>{c()};let h;const c=()=>{clearTimeout(h),h=setTimeout(()=>{window.dispatchEvent(new CustomEvent("resize",{}))},100)};return c(),(u,f)=>{const d=C("el-button"),p=C("el-header"),O=C("el-tab-pane"),g=C("el-tabs"),m=C("el-container");return I(),oe(m,{class:"app-container"},{default:$(()=>[S(p,{class:"app-header"},{default:$(()=>[E("div",o1,[E("div",a1,[f[4]||(f[4]=E("h1",null,[E("a",{href:"https://github.com/qdsang/web-serial-debug",target:"_blank"},"Web Serial")],-1)),S(yd,{class:"header-serial-config"})]),E("div",l1,[S(d,{class:"theme-toggle",icon:Z(i)?"Sunny":"Moon",circle:"",onClick:f[0]||(f[0]=Q=>Z(n)())},null,8,["icon"]),S(d,{class:"fullscreen-toggle",icon:"FullScreen",circle:"",onClick:f[1]||(f[1]=Q=>o())})])])]),_:1}),S(m,{class:"main-container"},{default:$(()=>[S(Z(Gu),{class:"default-theme",onResize:a},{default:$(()=>[S(Z(ta),{size:Z(t).splitPaneSize,class:"w75"},{default:$(()=>[S(g,{type:"card",class:"lv-card lv-tabs",addable:"",modelValue:Z(t).leftActiveTab,"onUpdate:modelValue":f[2]||(f[2]=Q=>Z(t).leftActiveTab=Q),onTabClick:l},{default:$(()=>[S(O,{label:"命令行"},{default:$(()=>[S(Ed)]),_:1}),S(O,{label:"可视化",lazy:""},{default:$(()=>[S(Qh)]),_:1}),S(O,{label:"姿态",lazy:""},{default:$(()=>[S(wh)]),_:1}),S(O,{label:"数据表",lazy:""},{default:$(()=>[S(kh)]),_:1}),S(O,{label:"画板",lazy:""},{default:$(()=>[S(r1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["size"]),S(Z(ta),{class:"w25"},{default:$(()=>[S(g,{type:"card",class:"lv-card lv-tabs",modelValue:Z(t).rightActiveTab,"onUpdate:modelValue":f[3]||(f[3]=Q=>Z(t).rightActiveTab=Q)},{default:$(()=>[S(O,{label:"快捷发送"},{default:$(()=>[S(pO)]),_:1}),S(O,{label:"脚本"},{default:$(()=>[S(Wb)]),_:1}),S(O,{label:"设置"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})}}}),c1=ht(h1,[["__scopeId","data-v-3cfc1d31"]]),Bs=qu(c1),u1=Wu();for(const[s,e]of Object.entries(Yu))Bs.component(s,e);Bs.use(u1);Bs.use(Fu);Bs.mount("#app");"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("./sw.js").then(s=>{console.log("ServiceWorker registration successful")}).catch(s=>{console.error("ServiceWorker registration failed:",s)})}); diff --git a/assets/index-CPepqvEm.js b/assets/index-CPepqvEm.js new file mode 100644 index 0000000..fdb4950 --- /dev/null +++ b/assets/index-CPepqvEm.js @@ -0,0 +1,163 @@ +var zy=Object.defineProperty;var Vy=(n,e,t)=>e in n?zy(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Ke=(n,e,t)=>Vy(n,typeof e!="symbol"?e+"":e,t);import{r as ae,w as Qe,S as Oi,aw as Jp,ax as Sl,x as Oe,j as St,ag as ie,y as K,z as G,A as q,G as be,P as x,H as A,O as ke,a6 as Xe,u as $,L as te,M as ve,ay as Zs,e as em,i as Wn,ao as tm,R as Me,az as Xy,c as pe,B as Be,D as Ge,F as nm,g as Br,X as ra,o as Do,C as gt,n as Dn,a2 as By,W as im,J as Ee,aA as Uy,l as ja,ad as jy,k as Wy,aB as Ze,t as Bi,af as Ie,U as qc,E as Xt,K as ni,an as cr,h as qy,f as sm,a8 as rm,a1 as Yy,a9 as Gy,V as zh,aC as Hy,at as Fy,aD as Ky}from"./vue-DDR9gto8.js";import{E as We,a as om,b as am,c as ii,d as Ji,e as Fs,f as Et,g as _l,h as $e,i as es,j as Jy,k as e1,M as t1,l as Vh,m as n1,n as i1}from"./utils-Be68bvOs.js";import{r as s1,a as r1,b as o1}from"./xterm-BZdChWd0.js";import{C as a1,V as Je,M as us,T as rs,Q as oa,S as Xh,a as Mt,R as l1,P as u1,b as hr,c as c1,d as vu,e as lm,L as um,f as dr,F as Yc,h as wn,i as Ln,j as zn,k as ws,l as h1,m as cm,D as wu,n as aa,I as d1,o as f1,O as hm,p as p1,q as m1,B as $l,r as g1,s as dm,N as O1,t as y1,u as v1,v as bu,w as fm,x as xu,y as w1,z as b1,A as Ks,E as fr,G as No,H as Si,J as x1,K as Js,U as S1,W as Su,X as _1,Y as si,Z as _u,_ as $1,$ as k1,a0 as pr,a1 as Ni,a2 as pm,a3 as P1,a4 as Q1,a5 as T1,a6 as A1,a7 as C1,a8 as mm,a9 as E1,aa as Bh,ab as Uh,ac as jh,ad as Wh,ae as qh,af as M1,ag as R1,ah as Z1,ai as D1,aj as ts,ak as N1,al as I1,g as L1,am as kl,an as z1,ao as V1,ap as X1,aq as B1,ar as U1,as as j1,at as Yh,au as Gh,av as W1}from"./three-FCmarWxK.js";import{u as q1}from"./uplot-C0BbzL7s.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();const eo={serial:{baudRate:115200,dataBits:8,stopBits:1,parity:"none",flowControl:"none"},display:{showTime:!0,showMs:!1,showHex:!0,showText:!0,showNewline:!0,autoScroll:!1,timeOut:5},send:{isHexSend:!1,addCRLF:!1,addCRLFType:` +`,autoSend:!1,autoSendInterval:1e3,addChecksum:!1,content:"",history:[],historyMaxLength:100},layout:{splitPaneSize:75,leftActiveTab:"0",rightActiveTab:"0"},charts:{list:[{id:1,name:"Chart 1",fields:["pitch","roll","yaw"]}]},canvas:{items:[]}},Qi=class Qi{constructor(){Ke(this,"configs",{});this.loadAllConfigs()}static getInstance(){return Qi.instance||(Qi.instance=new Qi),Qi.instance}loadAllConfigs(){for(const[e,t]of Object.entries(eo)){const i=localStorage.getItem(`config.${e}`);this.configs[e]=i?{...t,...JSON.parse(i)}:t}}getConfig(e){return this.configs[e]||eo[e]}setConfig(e,t){this.configs[e]={...this.configs[e],...t},localStorage.setItem(`config.${e}`,JSON.stringify(this.configs[e]))}useConfig(e){const t=ae(this.getConfig(e));return Qe(t,i=>{this.setConfig(e,i)},{deep:!0}),t}resetConfig(e){this.configs[e]={...eo[e]},localStorage.setItem(`config.${e}`,JSON.stringify(this.configs[e]))}resetAllConfigs(){Object.keys(eo).forEach(e=>{this.resetConfig(e)})}};Ke(Qi,"instance");let Vn=Qi;const Ti=class Ti{constructor(){Ke(this,"handlers",new Map)}static getInstance(){return Ti.instance||(Ti.instance=new Ti),Ti.instance}emit(e,t){const i=this.handlers.get(e);i&&(i.forEach((s,r)=>{s.callback(t),s.once&&i.splice(r,1)}),i.length===0&&this.handlers.delete(e))}on(e,t,i=!1){var s;this.handlers.has(e)||this.handlers.set(e,[]),(s=this.handlers.get(e))==null||s.push({callback:t,once:i})}once(e,t){this.on(e,t,!0)}off(e,t){if(!t){this.handlers.delete(e);return}const i=this.handlers.get(e);if(!i)return;const s=i.findIndex(r=>r.callback===t);s!==-1&&(i.splice(s,1),i.length===0&&this.handlers.delete(e))}useEvent(e,t){this.on(e,t),Oi(()=>{this.off(e,t)})}};Ke(Ti,"instance");let en=Ti;const He={SERIAL_DATA:"serial-data",SERIAL_SEND:"serial-send",DATA_UPDATE:"data-update",TERM_WRITE:"term-write",SERIAL_ERROR:"error"},Y1=en.getInstance(),Ai=class Ai{constructor(){Ke(this,"textEncoder");Ke(this,"textDecoder");Ke(this,"isConnected",!1);Ke(this,"sendQueue",[]);Ke(this,"maxQueueSize",1e3);Ke(this,"processingQueue",!1);this.textEncoder=new TextEncoder,this.textDecoder=new TextDecoder}static getInstance(){return Ai.instance||(Ai.instance=new Ai),Ai.instance}setConnected(e){this.isConnected=e,e||this.clearSendQueue()}isSerialConnected(){return this.isConnected}validateHexString(e){return/^[0-9A-Fa-f\s]*$/.test(e)&&e.replace(/\s/g,"").length%2===0}stringToUint8Array(e,t=!1){if(t){if(!this.validateHexString(e))throw new Error("无效的HEX格式字符串");const i=e.replace(/[^0-9A-Fa-f]/g,""),s=new Uint8Array(i.length/2);for(let r=0;rt.toString(16).padStart(2,"0").toUpperCase()).join(" ")}uint8ArrayToString(e){try{return this.textDecoder.decode(e)}catch(t){return console.error("解码数据时出错:",t),""}}formatLogMessage(e,t){try{const i=new Date,s=[];if(t.showTime){const o=i.toLocaleTimeString();if(t.showMs){const a=i.getMilliseconds().toString().padStart(3,"0");s.push(`[${o}.${a}]`)}else s.push(`[${o}]`)}if(t.showHex){const o=this.uint8ArrayToHexString(e);s.push(o)}if(t.showText){const o=this.uint8ArrayToString(e);t.showHex?s.push(`| ${o}`):s.push(o)}return t.showNewline?s.push(` +`):s.push(""),s.join(" ")}catch(i){return console.error("格式化日志消息时出错:",i),`[${new Date().toLocaleTimeString()}] 错误: 无法格式化消息 +`}}async addToSendQueue(e){if(!this.isConnected)throw new Error("串口未连接");if(this.sendQueue.length>=this.maxQueueSize)throw new Error("发送队列已满");this.sendQueue.push(e),this.processingQueue||await this.processSendQueue()}clearSendQueue(){this.sendQueue=[],this.processingQueue=!1}async processSendQueue(){if(!(this.processingQueue||this.sendQueue.length===0)){for(this.processingQueue=!0;this.sendQueue.length>0&&this.isConnected;){const e=this.sendQueue.shift();if(e)try{Y1.emit(He.SERIAL_SEND,e),await new Promise(t=>setTimeout(t,10))}catch(t){console.error("发送数据时出错:",t)}}this.processingQueue=!1}}calculateChecksum(e){return e.reduce((t,i)=>t^i,0)}appendChecksum(e){const t=this.calculateChecksum(e),i=new Uint8Array(e.length+1);return i.set(e),i[e.length]=t,i}verifyChecksum(e){if(e.length<1)return!1;const t=e[e.length-1],i=this.calculateChecksum(e.slice(0,-1));return t===i}};Ke(Ai,"instance");let bs=Ai;const Io=(n,e,t,i)=>({id:n,key:e,name:e,keyAddr:0,keySize:0,dataType:i||"number",description:"",value:t,avg:typeof t=="number"?t:null,avgSum:typeof t=="number"?t:null,min:typeof t=="number"?t:null,max:typeof t=="number"?t:null,lastUpdate:Date.now(),updateCount:1,isEditing:!1}),G1=[Io(1,"pitch",0,"number"),Io(1,"roll",0,"number"),Io(1,"yaw",0,"number")],Gc=Jp("field",{state:()=>({fields:Sl("config.fields",G1),nextId:Sl("config.nextId",1),columnVisibility:Sl("config.columnVisibility",{key:!0,name:!1,keyAddr:!1,keySize:!1,dataType:!0,description:!1,value:!0,avg:!1,min:!1,max:!1,lastUpdate:!0,updateCount:!0})}),actions:{createField(n,e,t){const i=Io(this.nextId++,n,e,t);return this.fields.push(i),i},updateField(n,e){n.value=e,n.lastUpdate=Date.now(),n.updateCount++,typeof e=="number"&&(n.avgSum==null&&(n.avgSum=0),n.avgSum+=e,n.avg=Math.floor(n.avgSum/n.updateCount*1e3)/1e3,(n.min===null||en.max)&&(n.max=e))},deleteField(n){const e=this.fields.findIndex(t=>t.id===n);e!==-1&&this.fields.splice(e,1)},toggleColumnVisibility(){},saveToLocalStorage(){},loadFromLocalStorage(){},exportData(){const n=JSON.stringify(this.fields,null,2),e=new Blob([n],{type:"application/json"}),t=URL.createObjectURL(e),i=document.createElement("a");i.href=t,i.download=`data-export-${new Date().toISOString()}.json`,i.click(),URL.revokeObjectURL(t)},async importData(n){try{const e=await n.text(),t=JSON.parse(e);return this.fields=t,!0}catch(e){return console.error("导入数据失败:",e),!1}}}}),to=en.getInstance(),Hh=`let cache = ''; + +// 处理接收的数据 +async function DataReceiver(data) { + cache += uint8ArrayToString(data); + // 数据格式:"pitch:-0.13,roll:0.00,yaw:0.07\\n" + + if (cache.indexOf('\\n') !== -1) { + const lines = cache.split('\\n'); + cache = lines.pop() || ''; + + for (const line of lines) { + let files = line.split(',') + let data = {}; + files.map((str) => { + let s2 = str.split(':') + if (s2.length === 2) { + data[s2[0]] = parseFloat(s2[1]) + } + }) + + // 更新到数据表 + updateDataTable(data); + } + } + return data; +} + +// 处理发送的数据 +async function DataSender(data) { + // checksum + // await sleep(10); + + return data; +} + +// 定时发送数据 +setInterval(async () => { + const bytes = new Uint8Array(3); + // sendHex(bytes); +}, 1000); + +// 支持的函数 +// stringToUint8Array(); +// uint8ArrayToHexString(); +// uint8ArrayToString(); + +`,Ci=class Ci{constructor(){Ke(this,"scripts",[]);Ke(this,"currentScript",{id:Date.now(),name:"新建脚本",code:"",isRunning:!1});Ke(this,"serialHelper",bs.getInstance());Ke(this,"runtimer",{DataReceiverInterface:null,DataSenderInterface:null});Ke(this,"RuntimerTimerIntervals",[]);Ke(this,"RuntimerTimerouts",[]);this.loadScripts()}static getInstance(){return Ci.instance||(Ci.instance=new Ci),Ci.instance}getScripts(){return this.scripts}getCurrentScript(){return this.currentScript}setCurrentScript(e){this.currentScript=e}addScript(e="新脚本",t=Hh){const i={id:Date.now(),name:e,code:t,isRunning:!1};return this.scripts.push(i),this.currentScript=i,this.saveScripts(),i}removeScript(e){const t=this.scripts.findIndex(i=>i.id===e);t>-1&&(this.scripts.splice(t,1),this.currentScript.id===e&&(this.scripts.length===0&&this.addScript(),this.currentScript=this.scripts[0]),this.saveScripts())}async runScript(){let e=this.currentScript;if(!e.isRunning){e.isRunning=!0;try{const t={stringToUint8Array:this.serialHelper.stringToUint8Array.bind(this.serialHelper),uint8ArrayToHexString:this.serialHelper.uint8ArrayToHexString.bind(this.serialHelper),uint8ArrayToString:this.serialHelper.uint8ArrayToString.bind(this.serialHelper),sendText:r=>{const o=this.serialHelper.stringToUint8Array(r);to.emit(He.SERIAL_SEND,o)},sendHex:r=>{let o=r;typeof r=="string"&&(o=this.serialHelper.stringToUint8Array(r,!0)),to.emit(He.SERIAL_SEND,o)},updateDataTable:r=>{to.emit(He.DATA_UPDATE,r)},getDataTables:()=>{const r=Gc();return JSON.parse(JSON.stringify(r.fields))},sleep:r=>new Promise(o=>setTimeout(o,r)),setTimeout:(r,o)=>{const a=setTimeout(r,o);return this.RuntimerTimerouts.push(a),a},setInterval:(r,o)=>{const a=setInterval(r,o);return this.RuntimerTimerIntervals.push(a),a}},i=` +return (async function() { + ${e.code} + + + let DataReceiverInterface = typeof DataReceiver == 'undefined' ? null : DataReceiver; + let DataSenderInterface = typeof DataSender == 'undefined'? null : DataSender; + return { DataReceiverInterface, DataSenderInterface }; +})() + `,s=new Function("context",`with(context) { ${i} }`);this.runtimer=await s(t)}catch(t){console.error("脚本执行错误:",t),to.emit(He.SERIAL_ERROR,{error:t instanceof Error?t.message:"未知错误"}),this.stopScript()}}}stopScript(){this.currentScript.isRunning=!1,this.RuntimerTimerouts.forEach(clearTimeout),this.RuntimerTimerouts=[],this.RuntimerTimerIntervals.forEach(clearInterval),this.RuntimerTimerIntervals=[]}async getRuntimer(){return this.currentScript.isRunning||await this.runScript(),this.runtimer}saveScripts(){localStorage.setItem("config.serialScripts",JSON.stringify(this.scripts))}loadScripts(){const e=localStorage.getItem("config.serialScripts");if(e)try{this.scripts=JSON.parse(e)}catch(t){console.error("加载脚本失败:",t)}this.scripts.length===0&&this.addScript("数据处理Demo(key:val,key:val)",Hh),this.scripts.map(t=>{t.isRunning=!1}),this.currentScript=this.scripts[0]||this.currentScript}};Ke(Ci,"instance");let la=Ci;const Rt=ae([]),H1=Vn.getInstance(),F1=H1.useConfig("serial"),$u=ae(null),K1=[{name:"Arduino UNO",vendorId:"2341",productId:"0043"},{name:"Arduino Mega",vendorId:"2341",productId:"0010"},{name:"Arduino Nano",vendorId:"0403",productId:"6001"},{name:"ATmega32U4",vendorId:"2341",productId:"8036"},{name:"CP2102/CP2102N",vendorId:"10c4",productId:"ea60"},{name:"FT2232H",vendorId:"0403",productId:"6010"},{name:"FTDI Basic",vendorId:"0403",productId:"6001"},{name:"CH340",vendorId:"1a86",productId:"7523"},{name:"CH9102",vendorId:"1a86",productId:"55d4"},{name:"PL2303",vendorId:"067b",productId:"2303"},{name:"PL2303HX",vendorId:"067b",productId:"2303"},{name:"ESP USB_SERIAL_JTAG",vendorId:"303a",productId:"1001"},{name:"ESP USB Bridge",vendorId:"303a",productId:"1002"},{name:"ESP32-S2 USB CDC",vendorId:"303a",productId:"0002"},{name:"ESP32-S3 USB CDC",vendorId:"303a",productId:"0009"},{name:"CH9102F",vendorId:"1a86",productId:"55d4"},{name:"CH340G",vendorId:"1a86",productId:"7523"},{name:"STM32 Virtual COM Port",vendorId:"0483",productId:"5740"},{name:"STM32 USB CDC",vendorId:"0483",productId:"5740"}],J1=n=>{if(!n.getInfo().usbProductId)return"串口设备";const e=(n.getInfo().usbVendorId||0).toString(16).padStart(4,"0"),t=(n.getInfo().usbProductId||0).toString(16).padStart(4,"0"),i=K1.find(s=>s.vendorId.toLowerCase()===e.toLowerCase()&&s.productId.toLowerCase()===t.toLowerCase());return i?`${i.name} (VID:${e} PID:${t})`:`未知设备 (VID:${e} PID:${t})`},gm=n=>{var e;return"serialport_"+(((e=n.getInfo().usbProductId)==null?void 0:e.toString())||"")},Om=n=>({id:gm(n),title:J1(n),type:"serialport",port:n}),ev=async()=>{var n;(n=navigator.serial)==null||n.getPorts().then(e=>{e.map(t=>{let i=gm(t);Rt.value.find(r=>r.id===i)||Rt.value.push(Om(t))})})},tv=async()=>{try{const n=await navigator.serial.requestPort();return Om(n)}catch(n){n.message!="Failed to execute 'requestPort' on 'Serial': No port selected by the user."&&We.error("串口连接失败:"+n),console.error(n)}return null},nv=async n=>{try{const e=n.port;await e.open(F1.value),$u.value=e;let t=e.writable.getWriter(),i=e.readable.getReader();return{writer:t,reader:i}}catch(e){We.error("串口连接失败:"+e),console.log(e)}},iv=async()=>{try{$u.value&&await $u.value.close()}catch(n){We.error("断开设备失败:"+n),console.log(n)}},Ei=class Ei{constructor(){Ke(this,"timers");this.timers=new Map}static getInstance(){return Ei.instance||(Ei.instance=new Ei),Ei.instance}animationFrame(e){const t=this.timers.get(e);if(!t||!t.isRunning)return;const i=performance.now(),s=i-t.lastTime;s>=t.interval&&(t.callback(),t.lastTime=i-s%t.interval),t.requestId=requestAnimationFrame(()=>this.animationFrame(e))}startTimer(e,t,i){this.timers.has(e)&&this.stopTimer(e),this.timers.set(e,{callback:t,interval:i,lastTime:performance.now(),requestId:null,isRunning:!0});const s=this.timers.get(e);s.requestId=requestAnimationFrame(()=>this.animationFrame(e))}stopTimer(e){const t=this.timers.get(e);t&&(t.isRunning=!1,t.requestId!==null&&(cancelAnimationFrame(t.requestId),t.requestId=null))}resumeTimer(e){const t=this.timers.get(e);t&&!t.isRunning&&(t.isRunning=!0,t.lastTime=performance.now(),t.requestId=requestAnimationFrame(()=>this.animationFrame(e)))}clearTimer(e){this.stopTimer(e),this.timers.delete(e)}clearAllTimers(){for(const e of this.timers.keys())this.clearTimer(e)}isTimerRunning(e){const t=this.timers.get(e);return t?t.isRunning:!1}};Ke(Ei,"instance");let ku=Ei;const sv=()=>"mock",rv=()=>"mock",ov=n=>({id:rv(),title:sv(),type:"mock",port:n});Rt.value.push(ov(null));const ym=ae(!1),vm=ku.getInstance(),wm="mock_imu_simulation",av=n=>new Promise(e=>setTimeout(e,n)),lv=async()=>{bm(),ym.value=!0;const{writable:n,readable:e}=new TransformStream({transform(a,l){l.enqueue(a)}});let t=n.getWriter(),i=e.getReader(),s=0,r=0,o=0;return await av(1e3-Date.now()%1e3),vm.startTimer(wm,()=>{s+=Math.random()*.4-.2,r+=Math.random()*.4-.1,o+=Math.random()*.4-0;let a=`pitch:${s.toFixed(2)},roll:${r.toFixed(2)},yaw:${o.toFixed(2)} +`;const l=new TextEncoder().encode(a);t.write(l)},50),{writer:t,reader:i}},bm=()=>{vm.stopTimer(wm),ym.value=!1},uv=async n=>lv(),cv=async()=>{bm()},hv=n=>"未知设备"+n,xm=n=>"usb",Sm=n=>({id:xm(),title:hv(n),type:"usb",port:n}),dv=async()=>{var n;(n=navigator.usb)==null||n.getDevices().then(e=>{e.map(t=>{let i=xm();Rt.value.find(r=>r.id===i)||Rt.value.push(Sm(t))})})},fv=async()=>{try{const n=await navigator.usb.requestDevice({filters:[]});return Sm(n)}catch(n){n.message!="Failed to execute 'requestDevice' on 'USB': No device selected."&&We.error("串口连接失败:"+n),console.error(n)}return null},pv=async n=>(console.log(n),null),mv=n=>"未知设备"+n,gv=n=>"bluetooth",Ov=n=>({id:gv(),title:mv(n),type:"bluetooth",port:n}),yv=async()=>{try{const n=await navigator.bluetooth.requestDevice({acceptAllDevices:!0});return Ov(n)}catch(n){n.message!="User cancelled the requestDevice() chooser."&&We.error("串口连接失败:"+n),console.error(n)}return null},vv=async n=>null,wv={class:"serial-config"},bv={class:"config-container"},xv={class:"port-section"},Sv={class:"port-list"},_v=Oe({__name:"SerialConfig",setup(n){const t=Vn.getInstance().useConfig("serial"),i=la.getInstance(),s=en.getInstance(),r=ae(null),o=ae(null),a=ae(!1),l=ae(""),u=[921600,460800,230400,115200,57600,38400,19200,9600,4800,2400,1200];Qe(t,async()=>{if(a.value){try{await p()}catch{}try{const g=Rt.value.find(k=>k.id===l.value);g&&await f(g)}catch(g){We.error("更新串口参数失败:"+g)}}},{deep:!0});const h=async g=>{const k=await i.getRuntimer();k.DataReceiverInterface&&(g=await k.DataReceiverInterface(g)),s.emit(He.SERIAL_DATA,g)},d=async()=>{let g=null;switch(l.value){case"authorizedSerial":g=await tv();break;case"authorizedUSB":g=await fv();break;case"authorizedBluetooth":g=await yv();break;case"websocket":break;case"webstlink":case"script":case"dap":case"adb":We.warning("该设备类型开发中"),l.value="";break;default:g=Rt.value.find(k=>k.id===l.value)}g?f(g):l.value=""},f=async g=>{Rt.value.find(Q=>Q.id===g.id)||Rt.value.push(g);let S;try{g.type==="serialport"?S=await nv(g):g.type==="mock"?S=await uv(g):g.type==="usb"?S=await pv(g):g.type==="bluetooth"&&(S=await vv(g))}catch(Q){We.error("串口连接失败:"+Q),console.log(Q)}S?(r.value=S.writer,o.value=S.reader,a.value=!0,We.success("串口连接成功"),m(),l.value=g.id):l.value=""},p=async()=>{try{o.value&&(await o.value.cancel(),o.value.releaseLock()),r.value&&(await r.value.close(),r.value.releaseLock())}catch(g){console.log(g)}a.value=!1;try{await iv(),await cv(),We.success("设备已断开")}catch(g){We.error("断开设备失败:"+g),console.log(g)}},m=async()=>{for(;a.value&&o.value;)try{const{value:g,done:k}=await o.value.read();if(k)break;h(g)}catch(g){We.error("读取串口数据失败:"+g);break}},O=async g=>{if(!a.value||!r.value){g.length==1&&g[0]==13?s.emit(He.TERM_WRITE,g):We.error("设备未连接");return}const k=await i.getRuntimer();k.DataSenderInterface&&(g=await k.DataSenderInterface(g));try{await r.value.write(g),We.success({message:"发送成功",grouping:!0,duration:1800,showClose:!0})}catch(S){console.log(S),We.error("发送数据失败:"+S)}},y=ae({url:"",history:[]}),b=g=>{g&&(y.value.url=g,y.value.history.includes(g)||(y.value.history.push(g),localStorage.setItem("config.wsConfig",JSON.stringify(y.value))))};St(()=>{s.on(He.SERIAL_SEND,O),ev(),dv()}),Oi(()=>{s.off(He.SERIAL_SEND,O)});const v=()=>{if(a.value)p();else{const g=Rt.value.find(k=>k.id===l.value);g&&f(g)}};return(g,k)=>{const S=ie("el-option"),Q=ie("el-option-group"),T=ie("el-select"),P=ie("el-button"),B=ie("el-button-group"),W=ie("el-form-item"),C=ie("el-form");return G(),K("div",wv,[q("div",bv,[q("div",xv,[q("div",Sv,[x(T,{modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=j=>l.value=j),onChange:d,placeholder:"选择设备",size:"small"},{default:A(()=>[x(S,{label:"选择设备",value:""}),x(Q,{label:"串口设备"},{default:A(()=>[x(S,{label:"授权串口设备",value:"authorizedSerial"}),(G(!0),K(ke,null,Xe($(Rt).filter(j=>j.type=="serialport"),j=>(G(),be(S,{key:j.id,label:j.title,value:j.id},null,8,["label","value"]))),128))]),_:1}),x(Q,{label:"WebUSB设备"},{default:A(()=>[x(S,{label:"授权WebUSB设备",value:"authorizedUSB"}),(G(!0),K(ke,null,Xe($(Rt).filter(j=>j.type=="usb"),j=>(G(),be(S,{key:j.id,label:j.title,value:j.id},null,8,["label","value"]))),128))]),_:1}),x(Q,{label:"蓝牙设备"},{default:A(()=>[x(S,{label:"授权蓝牙设备",value:"authorizedBluetooth"}),(G(!0),K(ke,null,Xe($(Rt).filter(j=>j.type=="bluetooth"),j=>(G(),be(S,{key:j.id,label:j.title,value:j.id},null,8,["label","value"]))),128))]),_:1}),x(Q,{label:"其他"},{default:A(()=>[x(S,{label:"WebSocket",value:"websocket"}),x(S,{label:"脚本",value:"script"}),x(S,{label:"Stlink",value:"webstlink"}),x(S,{label:"DAP",value:"dap"}),x(S,{label:"adb",value:"adb"}),x(S,{label:"模拟数据(IMU)",value:"mock"})]),_:1})]),_:1},8,["modelValue"])]),x(B,null,{default:A(()=>[x(P,{type:a.value?"danger":"primary",onClick:v,size:"small"},{default:A(()=>[te(ve(a.value?"断开":"连接"),1)]),_:1},8,["type"])]),_:1})]),l.value=="websocket"?(G(),be(C,{key:0,model:y.value,inline:!0,size:"small",class:"config-section"},{default:A(()=>[x(W,{label:"ws"},{default:A(()=>[x(T,{modelValue:y.value.url,"onUpdate:modelValue":k[1]||(k[1]=j=>y.value.url=j),filterable:"","allow-create":"",onChange:b,style:{width:"300px"}},{default:A(()=>[(G(!0),K(ke,null,Xe(y.value.history,j=>(G(),be(S,{key:j,label:j,value:j},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])):(G(),be(C,{key:1,model:$(t),inline:!0,size:"small",class:"config-section"},{default:A(()=>[x(W,{label:"波特率"},{default:A(()=>[x(T,{modelValue:$(t).baudRate,"onUpdate:modelValue":k[2]||(k[2]=j=>$(t).baudRate=j),style:{width:"80px"}},{default:A(()=>[(G(),K(ke,null,Xe(u,j=>x(S,{key:j,value:j},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),x(W,{label:"数据位"},{default:A(()=>[x(T,{modelValue:$(t).dataBits,"onUpdate:modelValue":k[3]||(k[3]=j=>$(t).dataBits=j),style:{width:"50px"}},{default:A(()=>[(G(),K(ke,null,Xe([8,7,6,5],j=>x(S,{key:j,value:j},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),x(W,{label:"停止位"},{default:A(()=>[x(T,{modelValue:$(t).stopBits,"onUpdate:modelValue":k[4]||(k[4]=j=>$(t).stopBits=j),style:{width:"50px"}},{default:A(()=>[(G(),K(ke,null,Xe([1,2],j=>x(S,{key:j,value:j},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),x(W,{label:"校验位"},{default:A(()=>[x(T,{modelValue:$(t).parity,"onUpdate:modelValue":k[5]||(k[5]=j=>$(t).parity=j),style:{width:"60px"}},{default:A(()=>[x(S,{label:"无",value:"none"}),x(S,{label:"奇校验",value:"odd"}),x(S,{label:"偶校验",value:"even"})]),_:1},8,["modelValue"])]),_:1}),x(W,{label:"流控制"},{default:A(()=>[x(T,{modelValue:$(t).flowControl,"onUpdate:modelValue":k[6]||(k[6]=j=>$(t).flowControl=j),style:{width:"60px"}},{default:A(()=>[x(S,{label:"无",value:"none"}),x(S,{label:"硬件流控",value:"hardware"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]))])])}}}),yt=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t},$v=yt(_v,[["__scopeId","data-v-1bd72a3e"]]);var kv=s1(),Pv=r1(),Qv=o1();const Tv={class:"serial-log"},Av={class:"controls"},Cv={class:"received-bytes"},Ev=Oe({__name:"SerialLogTerm",setup(n){const e=en.getInstance(),i=Vn.getInstance().useConfig("display"),s=Zs(),r=ae(i.value),o=bs.getInstance();let a=[],l=new Uint8Array,u=null,c=0,h=null,d=null;const f=ae(0),p=()=>{h&&h.clear(),a=[],f.value=0},m=T=>{e.emit(He.SERIAL_SEND,new TextEncoder().encode(T))},O=T=>T?{background:"#1e1e1e",foreground:"#d4d4d4",selectionBackground:"#3a3a3a"}:{background:"#ffffff",foreground:"#000000",selectionBackground:"#d4d4d4"},y=()=>{h=new kv.Terminal({cursorBlink:!0,convertEol:!0,fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace",fontSize:14,theme:O(s.value),scrollback:1e4});const T=new Qv.SearchAddon;h.loadAddon(T),d=new Pv.FitAddon,h.loadAddon(d),h.onData(m);const P=document.getElementById("terminal");P&&(h.open(P),h.write(` +\x1B[36m _____ _ _ _______ _ + / ____| (_) | | |__ __| | | + | (___ ___ _ __ _ __ _| | | | ___ ___ | | + \\___ \\ / _ \\ '__| |/ _\` | | | |/ _ \\ / _ \\| | + ____) | __/ | | | (_| | | | | (_) | (_) | | + |_____/ \\___|_| |_|\\__,_|_| |_|\\___/ \\___/|_| + +\x1B[0m +\x1B[35m=== Serial Tool ===\x1B[0m +\x1B[32m版本: v2.1.0\x1B[0m +\x1B[0m +功能特点: +- 🔌 支持串口和WebUSB设备连接 +- 📝 实时数据收发显示 +- 🎨 支持文本和HEX格式数据发送 +- 📜 支持自定义脚本编写和执行 +- 🎯 快捷发送功能 +- ⚙️ 可配置的显示选项 +- 🌙 暗色主题支持 + +\x1B[33m开始使用: +1. 点击顶部的连接按钮选择串口设备 +2. 配置串口参数(波特率等) +3. 开始接收/发送数据\x1B[0m + +`)),setTimeout(()=>{d==null||d.fit()},120)},b=T=>{T in r.value&&(r.value[T]=!r.value[T])},v=T=>{if(l=new Uint8Array([...l,...T]),f.value+=T.length,r.value.timeOut==0){g();return}if(u&&clearTimeout(u),c==0)c=Date.now();else if(Date.now()-c>=r.value.timeOut){c=0,g();return}u=window.setTimeout(()=>{c=0,g()},r.value.timeOut)},g=()=>{const T=o.formatLogMessage(l,r.value);h&&(requestAnimationFrame(()=>{h&&(h.write(T),r.value.autoScroll&&h.scrollToBottom())}),a.push(T)),l=new Uint8Array};Qe(s,T=>{h&&(h.options.theme=O(T))});const k=()=>{setTimeout(()=>{d==null||d.fit()},120)},S=T=>{if(h){let P=o.uint8ArrayToString(T);h.write(P)}};St(()=>{y(),e.on(He.SERIAL_DATA,v),e.on(He.TERM_WRITE,S),window.addEventListener("resize",k)}),Oi(()=>{e.off(He.SERIAL_DATA,v),e.off(He.TERM_WRITE,S),window.removeEventListener("resize",k),u&&clearTimeout(u),h&&h.dispose()});const Q=()=>{if(!h)return;const P=`serial-log-${new Date().toISOString().replace(/[:.]/g,"-")}.txt`,B=a.join(` +`),W=new Blob([B],{type:"text/plain;charset=utf-8"}),C=URL.createObjectURL(W),j=document.createElement("a");j.href=C,j.download=P,document.body.appendChild(j),j.click(),document.body.removeChild(j),URL.revokeObjectURL(C)};return(T,P)=>{const B=ie("el-button"),W=ie("el-button-group"),C=ie("el-input-number"),j=ie("el-tooltip");return G(),K("div",Tv,[q("div",Av,[x(W,{class:"me-2"},{default:A(()=>[x(B,{type:r.value.showTime?"primary":"default",size:"small",onClick:P[0]||(P[0]=w=>b("showTime"))},{default:A(()=>P[7]||(P[7]=[te(" 时间 ")])),_:1},8,["type"]),x(B,{type:r.value.showMs?"primary":"default",size:"small",onClick:P[1]||(P[1]=w=>b("showMs"))},{default:A(()=>P[8]||(P[8]=[te(" 毫秒 ")])),_:1},8,["type"]),x(B,{type:r.value.showHex?"primary":"default",size:"small",onClick:P[2]||(P[2]=w=>b("showHex"))},{default:A(()=>P[9]||(P[9]=[te(" HEX ")])),_:1},8,["type"]),x(B,{type:r.value.showText?"primary":"default",size:"small",onClick:P[3]||(P[3]=w=>b("showText"))},{default:A(()=>P[10]||(P[10]=[te(" TEXT ")])),_:1},8,["type"]),x(B,{type:r.value.showNewline?"primary":"default",size:"small",onClick:P[4]||(P[4]=w=>b("showNewline"))},{default:A(()=>P[11]||(P[11]=[te(" 换行 ")])),_:1},8,["type"])]),_:1}),x(W,{class:"me-2",style:{"white-space":"nowrap"}},{default:A(()=>[x(B,{type:r.value.autoScroll?"primary":"default",size:"small",onClick:P[5]||(P[5]=w=>b("autoScroll"))},{default:A(()=>P[12]||(P[12]=[te(" 自动滚动 ")])),_:1},8,["type"]),x(B,{type:"danger",size:"small",onClick:p},{default:A(()=>P[13]||(P[13]=[te(" 清空 ")])),_:1}),x(B,{type:"primary",size:"small",onClick:Q},{default:A(()=>P[14]||(P[14]=[te(" 导出 ")])),_:1})]),_:1}),x(j,{class:"box-item",effect:"dark",content:"分包超时时间(ms)",placement:"bottom"},{default:A(()=>[x(C,{modelValue:r.value.timeOut,"onUpdate:modelValue":P[6]||(P[6]=w=>r.value.timeOut=w),min:0,max:3e3,step:5,size:"small"},{prefix:A(()=>P[15]||(P[15]=[])),suffix:A(()=>P[16]||(P[16]=[q("span",null,"ms",-1)])),_:1},8,["modelValue"])]),_:1}),q("div",Cv,[q("span",null,"接收: "+ve(f.value)+" 字节",1)])]),P[17]||(P[17]=q("div",{class:"terminal-container"},[q("div",{id:"terminal"})],-1))])}}}),Mv=yt(Ev,[["__scopeId","data-v-4cf5fd89"]]),Rv={class:"serial-send"},Zv={class:"controls"},Dv={class:"me-2",style:{display:"inline-block"}},Nv={class:"send-content"},Iv=Oe({__name:"SerialSend",setup(n){const e=en.getInstance(),i=Vn.getInstance().useConfig("send");let s=null;const r=bs.getInstance(),o=()=>{try{let h=i.value.content;i.value.addCRLF&&(h+=i.value.addCRLFType);let d=r.stringToUint8Array(h,i.value.isHexSend);i.value.addChecksum&&(d=r.appendChecksum(d)),e.emit(He.SERIAL_SEND,d),h&&!i.value.history.includes(i.value.content)&&(i.value.history.unshift(i.value.content),i.value.history.length>i.value.historyMaxLength&&i.value.history.pop())}catch(h){return console.error("发送数据时出错:",h),We.error("发送数据时出错"+h),e.emit(He.SERIAL_ERROR,{message:h instanceof Error?h.message:"发送数据时出错"}),!1}return!0},a=()=>{i.value.autoSend?s=window.setInterval(()=>{o()||(s&&(clearInterval(s),s=null),i.value.autoSend=!1)},i.value.autoSendInterval):s&&(clearInterval(s),s=null)},l=h=>{i.value.autoSendInterval=h,i.value.autoSend&&s&&(clearInterval(s),s=window.setInterval(o,h))};let u=-1;const c=h=>{if(!h.metaKey&&!h.ctrlKey&&!h.shiftKey&&h.key==="Enter")return o(),u=-1,h.preventDefault(),!1;const d=h.target;if(h.key==="ArrowUp"||h.key==="ArrowDown"){const f=d.selectionStart,m=!i.value.content.slice(0,f).includes(` +`);if(u==-1&&!m)return}else u=-1;h.key==="ArrowUp"?(h.preventDefault(),u===-1&&i.value.content.trim()&&!i.value.history.includes(i.value.content)&&(i.value.history.unshift(i.value.content),i.value.history.length>i.value.historyMaxLength&&i.value.history.pop()),i.value.history.length>0&&(u=Math.min(u+1,i.value.history.length-1),i.value.content=i.value.history[u],d.selectionStart=d.selectionEnd=0)):h.key==="ArrowDown"&&(h.preventDefault(),u>-1&&(u--,i.value.content=u===-1?"":i.value.history[u],d.selectionStart=d.selectionEnd=0))};return(h,d)=>{const f=ie("el-switch"),p=ie("el-checkbox"),m=ie("el-option"),O=ie("el-select"),y=ie("el-input-number"),b=ie("el-button"),v=ie("el-input");return G(),K("div",Rv,[q("div",Zv,[x(f,{modelValue:$(i).isHexSend,"onUpdate:modelValue":d[0]||(d[0]=g=>$(i).isHexSend=g),"active-text":"HEX","inactive-text":"TEXT",class:"me-2"},null,8,["modelValue"]),q("div",Dv,[x(p,{modelValue:$(i).addCRLF,"onUpdate:modelValue":d[1]||(d[1]=g=>$(i).addCRLF=g),label:"",class:"",style:{"vertical-align":"middle"}},null,8,["modelValue"]),x(O,{modelValue:$(i).addCRLFType,"onUpdate:modelValue":d[2]||(d[2]=g=>$(i).addCRLFType=g),size:"small",style:{width:"80px"},onChange:d[3]||(d[3]=g=>$(i).addCRLF=!0)},{default:A(()=>[x(m,{value:`\r +`,label:"CRLF(\\r\\n)"}),x(m,{value:"\r",label:"CR(\\r)"}),x(m,{value:` +`,label:"LF(\\n)"}),x(m,{value:` + +`,label:"LF2(\\n\\n)"})]),_:1},8,["modelValue"])]),x(p,{modelValue:$(i).addChecksum,"onUpdate:modelValue":d[4]||(d[4]=g=>$(i).addChecksum=g),label:"校验和",class:"me-2"},null,8,["modelValue"]),x(p,{modelValue:$(i).autoSend,"onUpdate:modelValue":d[5]||(d[5]=g=>$(i).autoSend=g),onChange:a,label:"自动发送",class:"me-2"},null,8,["modelValue"]),x(y,{modelValue:$(i).autoSendInterval,"onUpdate:modelValue":d[6]||(d[6]=g=>$(i).autoSendInterval=g),step:100,onChange:l,size:"small",class:"me-2",title:"自动发送时间间隔"},{suffix:A(()=>d[8]||(d[8]=[q("span",null,"ms",-1)])),_:1},8,["modelValue"]),x(b,{type:"primary",onClick:o,class:"me-2"},{default:A(()=>d[9]||(d[9]=[te("发送")])),_:1})]),q("div",Nv,[x(v,{modelValue:$(i).content,"onUpdate:modelValue":d[7]||(d[7]=g=>$(i).content=g),type:"textarea",rows:5,placeholder:$(i).isHexSend?"请输入HEX格式数据,如:AA BB CC 11 22":"请输入要发送的文本",onKeydown:c},null,8,["modelValue","placeholder"])])])}}}),Lv=yt(Iv,[["__scopeId","data-v-f49a4901"]]),zv={class:"serial-log"},Vv=Oe({__name:"SerialLog",setup(n){return(e,t)=>(G(),K("div",zv,[x(Mv,{class:"serial-term"}),x(Lv,{class:"serial-send"})]))}}),Xv=yt(Vv,[["__scopeId","data-v-9a1e85ef"]]);function Wa(n){return em()?(Do(n),!0):!1}function An(n){return typeof n=="function"?n():$(n)}const Bv=typeof window<"u"&&typeof document<"u",Uv=n=>typeof n<"u",jv=Object.prototype.toString,Wv=n=>jv.call(n)==="[object Object]",qv=()=>{};function Yv(n,e){function t(...i){return new Promise((s,r)=>{Promise.resolve(n(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(s).catch(r)})}return t}const _m=n=>n();function Gv(n=_m){const e=ae(!0);function t(){e.value=!1}function i(){e.value=!0}const s=(...r)=>{e.value&&n(...r)};return{isActive:qy(e),pause:t,resume:i,eventFilter:s}}function Fh(n,e=!1,t="Timeout"){return new Promise((i,s)=>{setTimeout(e?()=>s(t):i,n)})}function Hv(n,e,t={}){const{eventFilter:i=_m,...s}=t;return Qe(n,Yv(i,e),s)}function ns(n,e,t={}){const{eventFilter:i,...s}=t,{eventFilter:r,pause:o,resume:a,isActive:l}=Gv(i);return{stop:Hv(n,e,{...s,eventFilter:r}),pause:o,resume:a,isActive:l}}function Fv(n,e={}){if(!ja(n))return jy(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const i in n.value)t[i]=Wy(()=>({get(){return n.value[i]},set(s){var r;if((r=An(e.replaceRef))!=null?r:!0)if(Array.isArray(n.value)){const a=[...n.value];a[i]=s,n.value=a}else{const a={...n.value,[i]:s};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[i]=s}}));return t}function Pu(n,e=!1){function t(h,{flush:d="sync",deep:f=!1,timeout:p,throwOnTimeout:m}={}){let O=null;const b=[new Promise(v=>{O=Qe(n,g=>{h(g)!==e&&(O==null||O(),v(g))},{flush:d,deep:f,immediate:!0})})];return p!=null&&b.push(Fh(p,m).then(()=>An(n)).finally(()=>O==null?void 0:O())),Promise.race(b)}function i(h,d){if(!ja(h))return t(g=>g===h,d);const{flush:f="sync",deep:p=!1,timeout:m,throwOnTimeout:O}=d??{};let y=null;const v=[new Promise(g=>{y=Qe([n,h],([k,S])=>{e!==(k===S)&&(y==null||y(),g(k))},{flush:f,deep:p,immediate:!0})})];return m!=null&&v.push(Fh(m,O).then(()=>An(n)).finally(()=>(y==null||y(),An(n)))),Promise.race(v)}function s(h){return t(d=>!!d,h)}function r(h){return i(null,h)}function o(h){return i(void 0,h)}function a(h){return t(Number.isNaN,h)}function l(h,d){return t(f=>{const p=Array.from(f);return p.includes(h)||p.includes(An(h))},d)}function u(h){return c(1,h)}function c(h=1,d){let f=-1;return t(()=>(f+=1,f>=h),d)}return Array.isArray(An(n))?{toMatch:t,toContains:l,changed:u,changedTimes:c,get not(){return Pu(n,!e)}}:{toMatch:t,toBe:i,toBeTruthy:s,toBeNull:r,toBeNaN:a,toBeUndefined:o,changed:u,changedTimes:c,get not(){return Pu(n,!e)}}}function Qu(n){return Pu(n)}function Kv(n){var e;const t=An(n);return(e=t==null?void 0:t.$el)!=null?e:t}const $m=Bv?window:void 0;function km(...n){let e,t,i,s;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,i,s]=n,e=$m):[e,t,i,s]=n,!e)return qv;Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(c=>c()),r.length=0},a=(c,h,d,f)=>(c.addEventListener(h,d,f),()=>c.removeEventListener(h,d,f)),l=Qe(()=>[Kv(e),An(s)],([c,h])=>{if(o(),!c)return;const d=Wv(h)?{...h}:h;r.push(...t.flatMap(f=>i.map(p=>a(c,f,p,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Wa(u),u}function Jv(n){return typeof n=="function"?n:typeof n=="string"?e=>e.key===n:Array.isArray(n)?e=>n.includes(e.key):()=>!0}function Kh(...n){let e,t,i={};n.length===3?(e=n[0],t=n[1],i=n[2]):n.length===2?typeof n[1]=="object"?(e=!0,t=n[0],i=n[1]):(e=n[0],t=n[1]):(e=!0,t=n[0]);const{target:s=$m,eventName:r="keydown",passive:o=!1,dedupe:a=!1}=i,l=Jv(e);return km(s,r,c=>{c.repeat&&An(a)||l(c)&&t(c)},o)}function ew(n){return JSON.parse(JSON.stringify(n))}function Pl(n,e,t,i={}){var s,r,o;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:h,shouldEmit:d}=i,f=Br(),p=t||(f==null?void 0:f.emit)||((s=f==null?void 0:f.$emit)==null?void 0:s.bind(f))||((o=(r=f==null?void 0:f.proxy)==null?void 0:r.$emit)==null?void 0:o.bind(f==null?void 0:f.proxy));let m=u;e||(e="modelValue"),m=m||`update:${e.toString()}`;const O=v=>a?typeof a=="function"?a(v):ew(v):v,y=()=>Uv(n[e])?O(n[e]):h,b=v=>{d?d(v)&&p(m,v):p(m,v)};if(l){const v=y(),g=ae(v);let k=!1;return Qe(()=>n[e],S=>{k||(k=!0,g.value=O(S),Dn(()=>k=!1))}),Qe(g,S=>{!k&&(S!==n[e]||c)&&b(S)},{deep:c}),g}else return pe({get(){return y()},set(v){b(v)}})}var tw={value:()=>{}};function qa(){for(var n=0,e=arguments.length,t={},i;n=0&&(i=t.slice(s+1),t=t.slice(0,s)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}Lo.prototype=qa.prototype={constructor:Lo,on:function(n,e){var t=this._,i=nw(n+"",t),s,r=-1,o=i.length;if(arguments.length<2){for(;++r0)for(var t=new Array(s),i=0,s,r;i=0&&(e=n.slice(0,t))!=="xmlns"&&(n=n.slice(t+1)),ed.hasOwnProperty(e)?{space:ed[e],local:n}:n}function sw(n){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===Tu&&e.documentElement.namespaceURI===Tu?e.createElement(n):e.createElementNS(t,n)}}function rw(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Pm(n){var e=Ya(n);return(e.local?rw:sw)(e)}function ow(){}function Hc(n){return n==null?ow:function(){return this.querySelector(n)}}function aw(n){typeof n!="function"&&(n=Hc(n));for(var e=this._groups,t=e.length,i=new Array(t),s=0;s=v&&(v=b+1);!(k=O[v])&&++v=0;)(o=i[s])&&(r&&o.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(o,r),r=o);return this}function Ew(n){n||(n=Mw);function e(h,d){return h&&d?n(h.__data__,d.__data__):!h-!d}for(var t=this._groups,i=t.length,s=new Array(i),r=0;re?1:n>=e?0:NaN}function Rw(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function Zw(){return Array.from(this)}function Dw(){for(var n=this._groups,e=0,t=n.length;e1?this.each((e==null?qw:typeof e=="function"?Gw:Yw)(n,e,t??"")):xs(this.node(),n)}function xs(n,e){return n.style.getPropertyValue(e)||Em(n).getComputedStyle(n,null).getPropertyValue(e)}function Fw(n){return function(){delete this[n]}}function Kw(n,e){return function(){this[n]=e}}function Jw(n,e){return function(){var t=e.apply(this,arguments);t==null?delete this[n]:this[n]=t}}function eb(n,e){return arguments.length>1?this.each((e==null?Fw:typeof e=="function"?Jw:Kw)(n,e)):this.node()[n]}function Mm(n){return n.trim().split(/^|\s+/)}function Fc(n){return n.classList||new Rm(n)}function Rm(n){this._node=n,this._names=Mm(n.getAttribute("class")||"")}Rm.prototype={add:function(n){var e=this._names.indexOf(n);e<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var e=this._names.indexOf(n);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function Zm(n,e){for(var t=Fc(n),i=-1,s=e.length;++i=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}})}function Qb(n){return function(){var e=this.__on;if(e){for(var t=0,i=-1,s=e.length,r;t()=>n;function Au(n,{sourceEvent:e,subject:t,target:i,identifier:s,active:r,x:o,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}Au.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function Ib(n){return!n.ctrlKey&&!n.button}function Lb(){return this.parentNode}function zb(n,e){return e??{x:n.x,y:n.y}}function Vb(){return navigator.maxTouchPoints||"ontouchstart"in this}function Xb(){var n=Ib,e=Lb,t=zb,i=Vb,s={},r=qa("start","drag","end"),o=0,a,l,u,c,h=0;function d(g){g.on("mousedown.drag",f).filter(i).on("touchstart.drag",O).on("touchmove.drag",y,Nb).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(g,k){if(!(c||!n.call(this,g,k))){var S=v(this,e.call(this,g,k),g,k,"mouse");S&&(Gt(g.view).on("mousemove.drag",p,br).on("mouseup.drag",m,br),Lm(g.view),Ql(g),u=!1,a=g.clientX,l=g.clientY,S("start",g))}}function p(g){if(cs(g),!u){var k=g.clientX-a,S=g.clientY-l;u=k*k+S*S>h}s.mouse("drag",g)}function m(g){Gt(g.view).on("mousemove.drag mouseup.drag",null),zm(g.view,u),cs(g),s.mouse("end",g)}function O(g,k){if(n.call(this,g,k)){var S=g.changedTouches,Q=e.call(this,g,k),T=S.length,P,B;for(P=0;P>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?io(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?io(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ub.exec(n))?new Pt(e[1],e[2],e[3],1):(e=jb.exec(n))?new Pt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Wb.exec(n))?io(e[1],e[2],e[3],e[4]):(e=qb.exec(n))?io(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Yb.exec(n))?ad(e[1],e[2]/100,e[3]/100,1):(e=Gb.exec(n))?ad(e[1],e[2]/100,e[3]/100,e[4]):td.hasOwnProperty(n)?sd(td[n]):n==="transparent"?new Pt(NaN,NaN,NaN,0):null}function sd(n){return new Pt(n>>16&255,n>>8&255,n&255,1)}function io(n,e,t,i){return i<=0&&(n=e=t=NaN),new Pt(n,e,t,i)}function Kb(n){return n instanceof jr||(n=_r(n)),n?(n=n.rgb(),new Pt(n.r,n.g,n.b,n.opacity)):new Pt}function Cu(n,e,t,i){return arguments.length===1?Kb(n):new Pt(n,e,t,i??1)}function Pt(n,e,t,i){this.r=+n,this.g=+e,this.b=+t,this.opacity=+i}Kc(Pt,Cu,Vm(jr,{brighter(n){return n=n==null?ca:Math.pow(ca,n),new Pt(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?xr:Math.pow(xr,n),new Pt(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Pt(Ii(this.r),Ii(this.g),Ii(this.b),ha(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rd,formatHex:rd,formatHex8:Jb,formatRgb:od,toString:od}));function rd(){return`#${Mi(this.r)}${Mi(this.g)}${Mi(this.b)}`}function Jb(){return`#${Mi(this.r)}${Mi(this.g)}${Mi(this.b)}${Mi((isNaN(this.opacity)?1:this.opacity)*255)}`}function od(){const n=ha(this.opacity);return`${n===1?"rgb(":"rgba("}${Ii(this.r)}, ${Ii(this.g)}, ${Ii(this.b)}${n===1?")":`, ${n})`}`}function ha(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Ii(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function Mi(n){return n=Ii(n),(n<16?"0":"")+n.toString(16)}function ad(n,e,t,i){return i<=0?n=e=t=NaN:t<=0||t>=1?n=e=NaN:e<=0&&(n=NaN),new Ht(n,e,t,i)}function Xm(n){if(n instanceof Ht)return new Ht(n.h,n.s,n.l,n.opacity);if(n instanceof jr||(n=_r(n)),!n)return new Ht;if(n instanceof Ht)return n;n=n.rgb();var e=n.r/255,t=n.g/255,i=n.b/255,s=Math.min(e,t,i),r=Math.max(e,t,i),o=NaN,a=r-s,l=(r+s)/2;return a?(e===r?o=(t-i)/a+(t0&&l<1?0:o,new Ht(o,a,l,n.opacity)}function ex(n,e,t,i){return arguments.length===1?Xm(n):new Ht(n,e,t,i??1)}function Ht(n,e,t,i){this.h=+n,this.s=+e,this.l=+t,this.opacity=+i}Kc(Ht,ex,Vm(jr,{brighter(n){return n=n==null?ca:Math.pow(ca,n),new Ht(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?xr:Math.pow(xr,n),new Ht(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*e,s=2*t-i;return new Pt(Tl(n>=240?n-240:n+120,s,i),Tl(n,s,i),Tl(n<120?n+240:n-120,s,i),this.opacity)},clamp(){return new Ht(ld(this.h),so(this.s),so(this.l),ha(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=ha(this.opacity);return`${n===1?"hsl(":"hsla("}${ld(this.h)}, ${so(this.s)*100}%, ${so(this.l)*100}%${n===1?")":`, ${n})`}`}}));function ld(n){return n=(n||0)%360,n<0?n+360:n}function so(n){return Math.max(0,Math.min(1,n||0))}function Tl(n,e,t){return(n<60?e+(t-e)*n/60:n<180?t:n<240?e+(t-e)*(240-n)/60:e)*255}const Bm=n=>()=>n;function tx(n,e){return function(t){return n+t*e}}function nx(n,e,t){return n=Math.pow(n,t),e=Math.pow(e,t)-n,t=1/t,function(i){return Math.pow(n+i*e,t)}}function ix(n){return(n=+n)==1?Um:function(e,t){return t-e?nx(e,t,n):Bm(isNaN(e)?t:e)}}function Um(n,e){var t=e-n;return t?tx(n,t):Bm(isNaN(n)?e:n)}const ud=function n(e){var t=ix(e);function i(s,r){var o=t((s=Cu(s)).r,(r=Cu(r)).r),a=t(s.g,r.g),l=t(s.b,r.b),u=Um(s.opacity,r.opacity);return function(c){return s.r=o(c),s.g=a(c),s.b=l(c),s.opacity=u(c),s+""}}return i.gamma=n,i}(1);function Fn(n,e){return n=+n,e=+e,function(t){return n*(1-t)+e*t}}var Eu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Al=new RegExp(Eu.source,"g");function sx(n){return function(){return n}}function rx(n){return function(e){return n(e)+""}}function ox(n,e){var t=Eu.lastIndex=Al.lastIndex=0,i,s,r,o=-1,a=[],l=[];for(n=n+"",e=e+"";(i=Eu.exec(n))&&(s=Al.exec(e));)(r=s.index)>t&&(r=e.slice(t,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,l.push({i:o,x:Fn(i,s)})),t=Al.lastIndex;return t180?c+=360:c-u>180&&(u+=360),d.push({i:h.push(s(h)+"rotate(",null,i)-2,x:Fn(u,c)})):c&&h.push(s(h)+"rotate("+c+i)}function a(u,c,h,d){u!==c?d.push({i:h.push(s(h)+"skewX(",null,i)-2,x:Fn(u,c)}):c&&h.push(s(h)+"skewX("+c+i)}function l(u,c,h,d,f,p){if(u!==h||c!==d){var m=f.push(s(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Fn(u,h)},{i:m-2,x:Fn(c,d)})}else(h!==1||d!==1)&&f.push(s(f)+"scale("+h+","+d+")")}return function(u,c){var h=[],d=[];return u=n(u),c=n(c),r(u.translateX,u.translateY,c.translateX,c.translateY,h,d),o(u.rotate,c.rotate,h,d),a(u.skewX,c.skewX,h,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,h,d),u=c=null,function(f){for(var p=-1,m=d.length,O;++p=0&&n._call.call(void 0,e),n=n._next;--Ss}function dd(){Ui=(fa=$r.now())+Ga,Ss=er=0;try{gx()}finally{Ss=0,yx(),Ui=0}}function Ox(){var n=$r.now(),e=n-fa;e>qm&&(Ga-=e,fa=n)}function yx(){for(var n,e=da,t,i=1/0;e;)e._call?(i>e._time&&(i=e._time),n=e,e=e._next):(t=e._next,e._next=null,e=n?n._next=t:da=t);tr=n,Ru(i)}function Ru(n){if(!Ss){er&&(er=clearTimeout(er));var e=n-Ui;e>24?(n<1/0&&(er=setTimeout(dd,n-$r.now()-Ga)),Ls&&(Ls=clearInterval(Ls))):(Ls||(fa=$r.now(),Ls=setInterval(Ox,qm)),Ss=1,Ym(dd))}}function fd(n,e,t){var i=new pa;return e=e==null?0:+e,i.restart(s=>{i.stop(),n(s+e)},e,t),i}var vx=qa("start","end","cancel","interrupt"),wx=[],Hm=0,pd=1,Zu=2,zo=3,md=4,Du=5,Vo=6;function Ha(n,e,t,i,s,r){var o=n.__transition;if(!o)n.__transition={};else if(t in o)return;bx(n,t,{name:e,index:i,group:s,on:vx,tween:wx,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Hm})}function eh(n,e){var t=sn(n,e);if(t.state>Hm)throw new Error("too late; already scheduled");return t}function bn(n,e){var t=sn(n,e);if(t.state>zo)throw new Error("too late; already running");return t}function sn(n,e){var t=n.__transition;if(!t||!(t=t[e]))throw new Error("transition not found");return t}function bx(n,e,t){var i=n.__transition,s;i[e]=t,t.timer=Gm(r,0,t.time);function r(u){t.state=pd,t.timer.restart(o,t.delay,t.time),t.delay<=u&&o(u-t.delay)}function o(u){var c,h,d,f;if(t.state!==pd)return l();for(c in i)if(f=i[c],f.name===t.name){if(f.state===zo)return fd(o);f.state===md?(f.state=Vo,f.timer.stop(),f.on.call("interrupt",n,n.__data__,f.index,f.group),delete i[c]):+cZu&&i.state=0&&(e=e.slice(0,t)),!e||e==="start"})}function Fx(n,e,t){var i,s,r=Hx(e)?eh:bn;return function(){var o=r(this,n),a=o.on;a!==i&&(s=(i=a).copy()).on(e,t),o.on=s}}function Kx(n,e){var t=this._id;return arguments.length<2?sn(this.node(),t).on.on(n):this.each(Fx(t,n,e))}function Jx(n){return function(){var e=this.parentNode;for(var t in this.__transition)if(+t!==n)return;e&&e.removeChild(this)}}function eS(){return this.on("end.remove",Jx(this._id))}function tS(n){var e=this._name,t=this._id;typeof n!="function"&&(n=Hc(n));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o()=>n;function kS(n,{sourceEvent:e,target:t,transform:i,dispatch:s}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function En(n,e,t){this.k=n,this.x=e,this.y=t}En.prototype={constructor:En,scale:function(n){return n===1?this:new En(this.k*n,this.x,this.y)},translate:function(n,e){return n===0&e===0?this:new En(this.k,this.x+this.k*n,this.y+this.k*e)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var _s=new En(1,0,0);En.prototype;function Cl(n){n.stopImmediatePropagation()}function zs(n){n.preventDefault(),n.stopImmediatePropagation()}function PS(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function QS(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function gd(){return this.__zoom||_s}function TS(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function AS(){return navigator.maxTouchPoints||"ontouchstart"in this}function CS(n,e,t){var i=n.invertX(e[0][0])-t[0][0],s=n.invertX(e[1][0])-t[1][0],r=n.invertY(e[0][1])-t[0][1],o=n.invertY(e[1][1])-t[1][1];return n.translate(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o))}function ES(){var n=PS,e=QS,t=CS,i=TS,s=AS,r=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],a=250,l=px,u=qa("start","zoom","end"),c,h,d,f=500,p=150,m=0,O=10;function y(w){w.property("__zoom",gd).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",P).on("dblclick.zoom",B).filter(s).on("touchstart.zoom",W).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(w,R,_,D){var N=w.selection?w.selection():w;N.property("__zoom",gd),w!==N?k(w,R,_,D):N.interrupt().each(function(){S(this,arguments).event(D).start().zoom(null,typeof R=="function"?R.apply(this,arguments):R).end()})},y.scaleBy=function(w,R,_,D){y.scaleTo(w,function(){var N=this.__zoom.k,U=typeof R=="function"?R.apply(this,arguments):R;return N*U},_,D)},y.scaleTo=function(w,R,_,D){y.transform(w,function(){var N=e.apply(this,arguments),U=this.__zoom,V=_==null?g(N):typeof _=="function"?_.apply(this,arguments):_,Y=U.invert(V),E=typeof R=="function"?R.apply(this,arguments):R;return t(v(b(U,E),V,Y),N,o)},_,D)},y.translateBy=function(w,R,_,D){y.transform(w,function(){return t(this.__zoom.translate(typeof R=="function"?R.apply(this,arguments):R,typeof _=="function"?_.apply(this,arguments):_),e.apply(this,arguments),o)},null,D)},y.translateTo=function(w,R,_,D,N){y.transform(w,function(){var U=e.apply(this,arguments),V=this.__zoom,Y=D==null?g(U):typeof D=="function"?D.apply(this,arguments):D;return t(_s.translate(Y[0],Y[1]).scale(V.k).translate(typeof R=="function"?-R.apply(this,arguments):-R,typeof _=="function"?-_.apply(this,arguments):-_),U,o)},D,N)};function b(w,R){return R=Math.max(r[0],Math.min(r[1],R)),R===w.k?w:new En(R,w.x,w.y)}function v(w,R,_){var D=R[0]-_[0]*w.k,N=R[1]-_[1]*w.k;return D===w.x&&N===w.y?w:new En(w.k,D,N)}function g(w){return[(+w[0][0]+ +w[1][0])/2,(+w[0][1]+ +w[1][1])/2]}function k(w,R,_,D){w.on("start.zoom",function(){S(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){S(this,arguments).event(D).end()}).tween("zoom",function(){var N=this,U=arguments,V=S(N,U).event(D),Y=e.apply(N,U),E=_==null?g(Y):typeof _=="function"?_.apply(N,U):_,X=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),H=N.__zoom,J=typeof R=="function"?R.apply(N,U):R,me=l(H.invert(E).concat(X/H.k),J.invert(E).concat(X/J.k));return function(oe){if(oe===1)oe=J;else{var xe=me(oe),ye=X/xe[2];oe=new En(ye,E[0]-xe[0]*ye,E[1]-xe[1]*ye)}V.zoom(null,oe)}})}function S(w,R,_){return!_&&w.__zooming||new Q(w,R)}function Q(w,R){this.that=w,this.args=R,this.active=0,this.sourceEvent=null,this.extent=e.apply(w,R),this.taps=0}Q.prototype={event:function(w){return w&&(this.sourceEvent=w),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(w,R){return this.mouse&&w!=="mouse"&&(this.mouse[1]=R.invert(this.mouse[0])),this.touch0&&w!=="touch"&&(this.touch0[1]=R.invert(this.touch0[0])),this.touch1&&w!=="touch"&&(this.touch1[1]=R.invert(this.touch1[0])),this.that.__zoom=R,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(w){var R=Gt(this.that).datum();u.call(w,this.that,new kS(w,{sourceEvent:this.sourceEvent,target:y,transform:this.that.__zoom,dispatch:u}),R)}};function T(w,...R){if(!n.apply(this,arguments))return;var _=S(this,R).event(w),D=this.__zoom,N=Math.max(r[0],Math.min(r[1],D.k*Math.pow(2,i.apply(this,arguments)))),U=dn(w);if(_.wheel)(_.mouse[0][0]!==U[0]||_.mouse[0][1]!==U[1])&&(_.mouse[1]=D.invert(_.mouse[0]=U)),clearTimeout(_.wheel);else{if(D.k===N)return;_.mouse=[U,D.invert(U)],Xo(this),_.start()}zs(w),_.wheel=setTimeout(V,p),_.zoom("mouse",t(v(b(D,N),_.mouse[0],_.mouse[1]),_.extent,o));function V(){_.wheel=null,_.end()}}function P(w,...R){if(d||!n.apply(this,arguments))return;var _=w.currentTarget,D=S(this,R,!0).event(w),N=Gt(w.view).on("mousemove.zoom",E,!0).on("mouseup.zoom",X,!0),U=dn(w,_),V=w.clientX,Y=w.clientY;Lm(w.view),Cl(w),D.mouse=[U,this.__zoom.invert(U)],Xo(this),D.start();function E(H){if(zs(H),!D.moved){var J=H.clientX-V,me=H.clientY-Y;D.moved=J*J+me*me>m}D.event(H).zoom("mouse",t(v(D.that.__zoom,D.mouse[0]=dn(H,_),D.mouse[1]),D.extent,o))}function X(H){N.on("mousemove.zoom mouseup.zoom",null),zm(H.view,D.moved),zs(H),D.event(H).end()}}function B(w,...R){if(n.apply(this,arguments)){var _=this.__zoom,D=dn(w.changedTouches?w.changedTouches[0]:w,this),N=_.invert(D),U=_.k*(w.shiftKey?.5:2),V=t(v(b(_,U),D,N),e.apply(this,R),o);zs(w),a>0?Gt(this).transition().duration(a).call(k,V,D,w):Gt(this).call(y.transform,V,D,w)}}function W(w,...R){if(n.apply(this,arguments)){var _=w.touches,D=_.length,N=S(this,R,w.changedTouches.length===D).event(w),U,V,Y,E;for(Cl(w),V=0;V(n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom",n))(ce||{}),nh=(n=>(n.Partial="partial",n.Full="full",n))(nh||{}),_i=(n=>(n.Bezier="default",n.SimpleBezier="simple-bezier",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n))(_i||{}),ci=(n=>(n.Strict="strict",n.Loose="loose",n))(ci||{}),Nu=(n=>(n.Arrow="arrow",n.ArrowClosed="arrowclosed",n))(Nu||{}),mr=(n=>(n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal",n))(mr||{}),eg=(n=>(n.TopLeft="top-left",n.TopCenter="top-center",n.TopRight="top-right",n.BottomLeft="bottom-left",n.BottomCenter="bottom-center",n.BottomRight="bottom-right",n))(eg||{});function Iu(n){var e,t;const i=((t=(e=n.composedPath)==null?void 0:e.call(n))==null?void 0:t[0])||n.target,s=typeof(i==null?void 0:i.hasAttribute)=="function"?i.hasAttribute("contenteditable"):!1,r=typeof(i==null?void 0:i.closest)=="function"?i.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(i==null?void 0:i.nodeName)||s||!!r}function MS(n){return n.ctrlKey||n.metaKey||n.shiftKey}function Od(n,e,t,i){const s=e.replace("+",` +`).replace(` + +`,` ++`).split(` +`).map(o=>o.trim().toLowerCase());if(s.length===1)return n.toLowerCase()===e.toLowerCase();i||t.add(n.toLowerCase());const r=s.every((o,a)=>t.has(o)&&Array.from(t.values())[a]===s[a]);return i&&t.delete(n.toLowerCase()),r}function RS(n,e){return t=>{if(!t.code&&!t.key)return!1;const i=ZS(t.code,n);return Array.isArray(n)?n.some(s=>Od(t[i],s,e,t.type==="keyup")):Od(t[i],n,e,t.type==="keyup")}}function ZS(n,e){return e.includes(n)?"code":"key"}function gr(n,e){const t=Me(()=>Ze(e==null?void 0:e.actInsideInputWithModifier)??!1),i=Me(()=>Ze(e==null?void 0:e.target)??window),s=ae(Ze(n)===!0);let r=!1;const o=new Set;let a=u(Ze(n));Qe(()=>Ze(n),(c,h)=>{typeof h=="boolean"&&typeof c!="boolean"&&l(),a=u(c)},{immediate:!0}),km(["blur","contextmenu"],l),Kh((...c)=>a(...c),c=>{r=MS(c),!((!r||r&&!t.value)&&Iu(c))&&(c.preventDefault(),s.value=!0)},{eventName:"keydown",target:i}),Kh((...c)=>a(...c),c=>{if(s.value){if((!r||r&&!t.value)&&Iu(c))return;r=!1,s.value=!1}},{eventName:"keyup",target:i});function l(){r=!1,o.clear(),s.value=Ze(n)===!0}function u(c){return c===null?(l(),()=>!1):typeof c=="boolean"?(l(),s.value=c,()=>!1):Array.isArray(c)||typeof c=="string"?RS(c,o):c}return s}const tg="vue-flow__node-desc",ng="vue-flow__edge-desc",DS="vue-flow__aria-live",ig=["Enter"," ","Escape"],ds={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function ma(n){return{...n.computedPosition||{x:0,y:0},width:n.dimensions.width||0,height:n.dimensions.height||0}}function ga(n,e){const t=Math.max(0,Math.min(n.x+n.width,e.x+e.width)-Math.max(n.x,e.x)),i=Math.max(0,Math.min(n.y+n.height,e.y+e.height)-Math.max(n.y,e.y));return Math.ceil(t*i)}function Fa(n){return{width:n.offsetWidth,height:n.offsetHeight}}function Bn(n,e=0,t=1){return Math.min(Math.max(n,e),t)}function sg(n,e){return{x:Bn(n.x,e[0][0],e[1][0]),y:Bn(n.y,e[0][1],e[1][1])}}function yd(n){const e=n.getRootNode();return"elementFromPoint"in e?e:window.document}function hi(n){return n&&typeof n=="object"&&"id"in n&&"source"in n&&"target"in n}function Li(n){return n&&typeof n=="object"&&"id"in n&&"position"in n&&!hi(n)}function nr(n){return Li(n)&&"computedPosition"in n}function ao(n){return!Number.isNaN(n)&&Number.isFinite(n)}function NS(n){return ao(n.width)&&ao(n.height)&&ao(n.x)&&ao(n.y)}function IS(n,e,t){const i={id:n.id.toString(),type:n.type??"default",dimensions:cr({width:0,height:0}),computedPosition:cr({z:0,...n.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:it(n.data)?n.data:{},events:cr(it(n.events)?n.events:{})};return Object.assign(e??i,n,{id:n.id.toString(),parentNode:t})}function rg(n,e,t){var i,s;const r={id:n.id.toString(),type:n.type??(e==null?void 0:e.type)??"default",source:n.source.toString(),target:n.target.toString(),sourceHandle:(i=n.sourceHandle)==null?void 0:i.toString(),targetHandle:(s=n.targetHandle)==null?void 0:s.toString(),updatable:n.updatable??(t==null?void 0:t.updatable),selectable:n.selectable??(t==null?void 0:t.selectable),focusable:n.focusable??(t==null?void 0:t.focusable),data:it(n.data)?n.data:{},events:cr(it(n.events)?n.events:{}),label:n.label??"",interactionWidth:n.interactionWidth??(t==null?void 0:t.interactionWidth),...t??{}};return Object.assign(e??r,n,{id:n.id.toString()})}function og(n,e,t,i){const s=typeof n=="string"?n:n.id,r=new Set,o=i==="source"?"target":"source";for(const a of t)a[o]===s&&r.add(a[i]);return e.filter(a=>r.has(a.id))}function LS(...n){if(n.length===3){const[r,o,a]=n;return og(r,o,a,"target")}const[e,t]=n,i=typeof e=="string"?e:e.id;return t.filter(r=>hi(r)&&r.source===i).map(r=>t.find(o=>Li(o)&&o.id===r.target))}function zS(...n){if(n.length===3){const[r,o,a]=n;return og(r,o,a,"source")}const[e,t]=n,i=typeof e=="string"?e:e.id;return t.filter(r=>hi(r)&&r.target===i).map(r=>t.find(o=>Li(o)&&o.id===r.source))}function ag({source:n,sourceHandle:e,target:t,targetHandle:i}){return`vueflow__edge-${n}${e??""}-${t}${i??""}`}function VS(n,e){return e.some(t=>hi(t)&&t.source===n.source&&t.target===n.target&&(t.sourceHandle===n.sourceHandle||!t.sourceHandle&&!n.sourceHandle)&&(t.targetHandle===n.targetHandle||!t.targetHandle&&!n.targetHandle))}function Lu({x:n,y:e},{x:t,y:i,zoom:s}){return{x:n*s+t,y:e*s+i}}function kr({x:n,y:e},{x:t,y:i,zoom:s},r=!1,o=[1,1]){const a={x:(n-t)/s,y:(e-i)/s};return r?Ja(a,o):a}function lg(n,e){return{x:Math.min(n.x,e.x),y:Math.min(n.y,e.y),x2:Math.max(n.x2,e.x2),y2:Math.max(n.y2,e.y2)}}function Oa({x:n,y:e,width:t,height:i}){return{x:n,y:e,x2:n+t,y2:e+i}}function ug({x:n,y:e,x2:t,y2:i}){return{x:n,y:e,width:t-n,height:i-e}}function XS(n,e){return ug(lg(Oa(n),Oa(e)))}function Ka(n){let e={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let t=0;t0,O=(h??0)*(d??0);(p||m||f>=O||a.dragging)&&o.push(a)}return o}function $i(n,e){const t=new Set;if(typeof n=="string")t.add(n);else if(n.length>=1)for(const i of n)t.add(i.id);return e.filter(i=>t.has(i.source)||t.has(i.target))}function vd(n,e,t,i,s,r=.1,o={x:0,y:0}){const a=e/(n.width*(1+r)),l=t/(n.height*(1+r)),u=Math.min(a,l),c=Bn(u,i,s),h=n.x+n.width/2,d=n.y+n.height/2,f=e/2-h*c+(o.x??0),p=t/2-d*c+(o.y??0);return{x:f,y:p,zoom:c}}function BS(n,e){return{x:e.x+n.x,y:e.y+n.y,z:(n.z>e.z?n.z:e.z)+1}}function hg(n,e){if(!n.parentNode)return!1;const t=e(n.parentNode);return t?t.selected?!0:hg(t,e):!1}function Pr(n,e){return typeof n>"u"?"":typeof n=="string"?n:`${e?`${e}__`:""}${Object.keys(n).sort().map(i=>`${i}=${n[i]}`).join("&")}`}function wd(n,e,t){return nt?-Bn(Math.abs(n-t),1,e)/e:0}function dg(n,e,t=15,i=40){const s=wd(n.x,i,e.width-i)*t,r=wd(n.y,i,e.height-i)*t;return[s,r]}function El(n,e){if(e){const t=n.position.x+n.dimensions.width-e.dimensions.width,i=n.position.y+n.dimensions.height-e.dimensions.height;if(t>0||i>0||n.position.x<0||n.position.y<0){let s={};if(typeof e.style=="function"?s={...e.style(e)}:e.style&&(s={...e.style}),s.width=s.width??`${e.dimensions.width}px`,s.height=s.height??`${e.dimensions.height}px`,t>0)if(typeof s.width=="string"){const r=Number(s.width.replace("px",""));s.width=`${r+t}px`}else s.width+=t;if(i>0)if(typeof s.height=="string"){const r=Number(s.height.replace("px",""));s.height=`${r+i}px`}else s.height+=i;if(n.position.x<0){const r=Math.abs(n.position.x);if(e.position.x=e.position.x-r,typeof s.width=="string"){const o=Number(s.width.replace("px",""));s.width=`${o+r}px`}else s.width+=r;n.position.x=0}if(n.position.y<0){const r=Math.abs(n.position.y);if(e.position.y=e.position.y-r,typeof s.height=="string"){const o=Number(s.height.replace("px",""));s.height=`${o+r}px`}else s.height+=r;n.position.y=0}e.dimensions.width=Number(s.width.toString().replace("px","")),e.dimensions.height=Number(s.height.toString().replace("px","")),typeof e.style=="function"?e.style=r=>{const o=e.style;return{...o(r),...s}}:e.style={...e.style,...s}}}}function bd(n,e){var t,i;const s=n.filter(o=>o.type==="add"||o.type==="remove");for(const o of s)if(o.type==="add")e.findIndex(l=>l.id===o.item.id)===-1&&e.push(o.item);else if(o.type==="remove"){const a=e.findIndex(l=>l.id===o.id);a!==-1&&e.splice(a,1)}const r=e.map(o=>o.id);for(const o of e)for(const a of n)if(a.id===o.id)switch(a.type){case"select":o.selected=a.selected;break;case"position":if(nr(o)&&(typeof a.position<"u"&&(o.position=a.position),typeof a.dragging<"u"&&(o.dragging=a.dragging),o.expandParent&&o.parentNode)){const l=e[r.indexOf(o.parentNode)];l&&nr(l)&&El(o,l)}break;case"dimensions":if(nr(o)&&(typeof a.dimensions<"u"&&(o.dimensions=a.dimensions),typeof a.updateStyle<"u"&&a.updateStyle&&(o.style={...o.style||{},width:`${(t=a.dimensions)==null?void 0:t.width}px`,height:`${(i=a.dimensions)==null?void 0:i.height}px`}),typeof a.resizing<"u"&&(o.resizing=a.resizing),o.expandParent&&o.parentNode)){const l=e[r.indexOf(o.parentNode)];l&&nr(l)&&(!!l.dimensions.width&&!!l.dimensions.height?El(o,l):Dn(()=>{El(o,l)}))}break}return e}function Gn(n,e){return{id:n,type:"select",selected:e}}function xd(n){return{item:n,type:"add"}}function Sd(n){return{id:n,type:"remove"}}function _d(n,e,t,i,s){return{id:n,source:e,target:t,sourceHandle:i||null,targetHandle:s||null,type:"remove"}}function Kn(n,e=new Set,t=!1){const i=[];for(const[s,r]of n){const o=e.has(s);!(r.selected===void 0&&!o)&&r.selected!==o&&(t&&(r.selected=o),i.push(Gn(r.id,o)))}return i}function se(n){const e=new Set;let t=!1;const i=()=>e.size>0;n&&(t=!0,e.add(n));const s=a=>{e.delete(a)};return{on:a=>{n&&t&&e.delete(n),e.add(a);const l=()=>{s(a),n&&t&&e.add(n)};return Wa(l),{off:l}},off:s,trigger:a=>Promise.all(Array.from(e).map(l=>l(a))),hasListeners:i,fns:e}}function $d(n,e,t){let i=n;do{if(i&&i.matches(e))return!0;if(i===t)return!1;i=i.parentElement}while(i);return!1}function US(n,e,t,i,s){var r,o;const a=[];for(const l of n)(l.selected||l.id===s)&&(!l.parentNode||!hg(l,i))&&(l.draggable||e&&typeof l.draggable>"u")&&a.push(cr({id:l.id,position:l.position||{x:0,y:0},distance:{x:t.x-((r=l.computedPosition)==null?void 0:r.x)||0,y:t.y-((o=l.computedPosition)==null?void 0:o.y)||0},from:l.computedPosition,extent:l.extent,parentNode:l.parentNode,dimensions:l.dimensions,expandParent:l.expandParent}));return a}function Ml({id:n,dragItems:e,findNode:t}){const i=[];for(const s of e){const r=t(s.id);r&&i.push(r)}return[n?i.find(s=>s.id===n):i[0],i]}function fg(n){if(Array.isArray(n))switch(n.length){case 1:return[n[0],n[0],n[0],n[0]];case 2:return[n[0],n[1],n[0],n[1]];case 3:return[n[0],n[1],n[2],n[1]];case 4:return n;default:return[0,0,0,0]}return[n,n,n,n]}function jS(n,e,t){const[i,s,r,o]=typeof n!="string"?fg(n.padding):[0,0,0,0];return t&&typeof t.computedPosition.x<"u"&&typeof t.computedPosition.y<"u"&&typeof t.dimensions.width<"u"&&typeof t.dimensions.height<"u"?[[t.computedPosition.x+o,t.computedPosition.y+i],[t.computedPosition.x+t.dimensions.width-s,t.computedPosition.y+t.dimensions.height-r]]:!1}function WS(n,e,t,i){let s=n.extent||t;if((s==="parent"||!Array.isArray(s)&&(s==null?void 0:s.range)==="parent")&&!n.expandParent)if(n.parentNode&&i&&n.dimensions.width&&n.dimensions.height){const r=jS(s,n,i);r&&(s=r)}else e(new lt(st.NODE_EXTENT_INVALID,n.id)),s=t;else if(Array.isArray(s)){const r=(i==null?void 0:i.computedPosition.x)||0,o=(i==null?void 0:i.computedPosition.y)||0;s=[[s[0][0]+r,s[0][1]+o],[s[1][0]+r,s[1][1]+o]]}else if(s!=="parent"&&(s!=null&&s.range)&&Array.isArray(s.range)){const[r,o,a,l]=fg(s.padding),u=(i==null?void 0:i.computedPosition.x)||0,c=(i==null?void 0:i.computedPosition.y)||0;s=[[s.range[0][0]+u+l,s.range[0][1]+c+r],[s.range[1][0]+u-o,s.range[1][1]+c-a]]}return s==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:s}function qS({width:n,height:e},t){return[t[0],[t[1][0]-(n||0),t[1][1]-(e||0)]]}function ih(n,e,t,i,s){const r=qS(n.dimensions,WS(n,t,i,s)),o=sg(e,r);return{position:{x:o.x-((s==null?void 0:s.computedPosition.x)||0),y:o.y-((s==null?void 0:s.computedPosition.y)||0)},computedPosition:o}}function $s(n,e,t=ce.Left,i=!1){const s=((e==null?void 0:e.x)??0)+n.computedPosition.x,r=((e==null?void 0:e.y)??0)+n.computedPosition.y,{width:o,height:a}=e??HS(n);if(i)return{x:s+o/2,y:r+a/2};switch((e==null?void 0:e.position)??t){case ce.Top:return{x:s+o/2,y:r};case ce.Right:return{x:s+o,y:r+a/2};case ce.Bottom:return{x:s+o/2,y:r+a};case ce.Left:return{x:s,y:r+a/2}}}function kd(n,e){return n&&(e?n.find(t=>t.id===e):n[0])||null}function YS({sourcePos:n,targetPos:e,sourceWidth:t,sourceHeight:i,targetWidth:s,targetHeight:r,width:o,height:a,viewport:l}){const u={x:Math.min(n.x,e.x),y:Math.min(n.y,e.y),x2:Math.max(n.x+t,e.x+s),y2:Math.max(n.y+i,e.y+r)};u.x===u.x2&&(u.x2+=1),u.y===u.y2&&(u.y2+=1);const c=Oa({x:(0-l.x)/l.zoom,y:(0-l.y)/l.zoom,width:o/l.zoom,height:a/l.zoom}),h=Math.max(0,Math.min(c.x2,u.x2)-Math.max(c.x,u.x)),d=Math.max(0,Math.min(c.y2,u.y2)-Math.max(c.y,u.y));return Math.ceil(h*d)>0}function GS(n,e,t=!1){const i=typeof n.zIndex=="number";let s=i?n.zIndex:0;const r=e(n.source),o=e(n.target);return!r||!o?0:(t&&(s=i?n.zIndex:Math.max(r.computedPosition.z||0,o.computedPosition.z||0)),s)}var st=(n=>(n.MISSING_STYLES="MISSING_STYLES",n.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",n.NODE_INVALID="NODE_INVALID",n.NODE_NOT_FOUND="NODE_NOT_FOUND",n.NODE_MISSING_PARENT="NODE_MISSING_PARENT",n.NODE_TYPE_MISSING="NODE_TYPE_MISSING",n.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",n.EDGE_INVALID="EDGE_INVALID",n.EDGE_NOT_FOUND="EDGE_NOT_FOUND",n.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",n.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",n.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",n.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",n.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",n.EDGE_ORPHANED="EDGE_ORPHANED",n.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",n))(st||{});const Pd={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:n=>`Node is invalid +Node: ${n}`,NODE_NOT_FOUND:n=>`Node not found +Node: ${n}`,NODE_MISSING_PARENT:(n,e)=>`Node is missing a parent +Node: ${n} +Parent: ${e}`,NODE_TYPE_MISSING:n=>`Node type is missing +Type: ${n}`,NODE_EXTENT_INVALID:n=>`Only child nodes can use a parent extent +Node: ${n}`,EDGE_INVALID:n=>`An edge needs a source and a target +Edge: ${n}`,EDGE_SOURCE_MISSING:(n,e)=>`Edge source is missing +Edge: ${n} +Source: ${e}`,EDGE_TARGET_MISSING:(n,e)=>`Edge target is missing +Edge: ${n} +Target: ${e}`,EDGE_TYPE_MISSING:n=>`Edge type is missing +Type: ${n}`,EDGE_SOURCE_TARGET_SAME:(n,e,t)=>`Edge source and target are the same +Edge: ${n} +Source: ${e} +Target: ${t}`,EDGE_SOURCE_TARGET_MISSING:(n,e,t)=>`Edge source or target is missing +Edge: ${n} +Source: ${e} +Target: ${t}`,EDGE_ORPHANED:n=>`Edge was orphaned (suddenly missing source or target) and has been removed +Edge: ${n}`,EDGE_NOT_FOUND:n=>`Edge not found +Edge: ${n}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"};class lt extends Error{constructor(e,...t){var i;super((i=Pd[e])==null?void 0:i.call(Pd,...t)),this.name="VueFlowError",this.code=e,this.args=t}}function sh(n){return"clientX"in n}function pg(n){return"sourceEvent"in n}function ui(n,e){var t,i;const s=sh(n),r=s?n.clientX:(t=n.touches)==null?void 0:t[0].clientX,o=s?n.clientY:(i=n.touches)==null?void 0:i[0].clientY;return{x:r-((e==null?void 0:e.left)??0),y:o-((e==null?void 0:e.top)??0)}}const ya=()=>{var n;return typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)==null?void 0:n.indexOf("Mac"))>=0};function HS(n){var e,t;return{width:((e=n.dimensions)==null?void 0:e.width)??n.width??0,height:((t=n.dimensions)==null?void 0:t.height)??n.height??0}}function Ja(n,e=[1,1]){return{x:e[0]*Math.round(n.x/e[0]),y:e[1]*Math.round(n.y/e[1])}}const FS=()=>!0;function Rl(n){n==null||n.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function KS(n,e,t){const i=[],s={x:n.x-t,y:n.y-t,width:t*2,height:t*2};for(const r of e.values())ga(s,ma(r))>0&&i.push(r);return i}const JS=250;function e_(n,e,t,i){var s,r;let o=[],a=Number.POSITIVE_INFINITY;const l=KS(n,t,e+JS);for(const u of l){const c=[...((s=u.handleBounds)==null?void 0:s.source)??[],...((r=u.handleBounds)==null?void 0:r.target)??[]];for(const h of c){if(i.nodeId===h.nodeId&&i.type===h.type&&i.id===h.id)continue;const{x:d,y:f}=$s(u,h,h.position,!0),p=Math.sqrt((d-n.x)**2+(f-n.y)**2);p>e||(p1){const u=i.type==="source"?"target":"source";return o.find(c=>c.type===u)??o[0]}return o[0]}function Qd(n,{handle:e,connectionMode:t,fromNodeId:i,fromHandleId:s,fromType:r,doc:o,lib:a,flowId:l,isValidConnection:u=FS},c,h,d){const f=r==="target",p=e?o.querySelector(`.${a}-flow__handle[data-id="${l}-${e==null?void 0:e.nodeId}-${e==null?void 0:e.id}-${e==null?void 0:e.type}"]`):null,{x:m,y:O}=ui(n),y=o.elementFromPoint(m,O),b=y!=null&&y.classList.contains(`${a}-flow__handle`)?y:p,v={handleDomNode:b,isValid:!1,connection:null,toHandle:null};if(b){const g=mg(void 0,b),k=b.getAttribute("data-nodeid"),S=b.getAttribute("data-handleid"),Q=b.classList.contains("connectable"),T=b.classList.contains("connectableend");if(!k||!g)return v;const P={source:f?k:i,sourceHandle:f?S:s,target:f?i:k,targetHandle:f?s:S};v.connection=P;const W=Q&&T&&(t===ci.Strict?f&&g==="source"||!f&&g==="target":k!==i||S!==s);v.isValid=W&&u(P,{nodes:h,edges:c,sourceNode:d(i),targetNode:d(k)}),v.toHandle=e}return v}function mg(n,e){return n||(e!=null&&e.classList.contains("target")?"target":e!=null&&e.classList.contains("source")?"source":null)}function t_(n,e){let t=null;return e?t="valid":n&&!e&&(t="invalid"),t}function n_(n,e){let t=null;return e?t=!0:n&&!e&&(t=!1),t}function i_(n,e,t,i,s,r=!1){var o,a,l;const u=i.get(n);if(!u)return null;const c=s===ci.Strict?(o=u.handleBounds)==null?void 0:o[e]:[...((a=u.handleBounds)==null?void 0:a.source)??[],...((l=u.handleBounds)==null?void 0:l.target)??[]],h=(t?c==null?void 0:c.find(d=>d.id===t):c==null?void 0:c[0])??null;return h&&r?{...h,...$s(u,h,h.position,!0)}:h}const zu={[ce.Left]:ce.Right,[ce.Right]:ce.Left,[ce.Top]:ce.Bottom,[ce.Bottom]:ce.Top},s_=["production","prod"];function el(n,...e){gg()&&console.warn(`[Vue Flow]: ${n}`,...e)}function gg(){return!s_.includes("production")}function Td(n,e,t,i){const s=e.querySelectorAll(`.vue-flow__handle.${n}`);return Array.from(s).map(o=>{const a=o.getBoundingClientRect();return{id:o.getAttribute("data-handleid"),position:o.getAttribute("data-handlepos"),nodeId:o.getAttribute("data-nodeid"),type:n,x:(a.left-t.left)/i,y:(a.top-t.top)/i,...Fa(o)}})}function Vu(n,e,t,i,s,r=!1,o){s.value=!1,n.selected?(r||n.selected&&e)&&(i([n]),Dn(()=>{o.blur()})):t([n])}function it(n){return typeof $(n)<"u"}function r_(n,e,t,i){if(!n||!n.source||!n.target)return t(new lt(st.EDGE_INVALID,(n==null?void 0:n.id)??"[ID UNKNOWN]")),!1;let s;return hi(n)?s=n:s={...n,id:ag(n)},s=rg(s,void 0,i),VS(s,e)?!1:s}function o_(n,e,t,i,s){if(!e.source||!e.target)return s(new lt(st.EDGE_INVALID,n.id)),!1;if(!t)return s(new lt(st.EDGE_NOT_FOUND,n.id)),!1;const{id:r,...o}=n;return{...o,id:i?ag(e):r,source:e.source,target:e.target,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle}}function Ad(n,e,t){const i={},s=[];for(let r=0;ra.id===r.parentNode);r.parentNode&&!o&&t(new lt(st.NODE_MISSING_PARENT,r.id,r.parentNode)),(r.parentNode||i[r.id])&&(i[r.id]&&(r.isParent=!0),o&&(o.isParent=!0))}return s}function Cd(n,e,t,i,s,r){let o=s;const a=i.get(o)||new Map;i.set(o,a.set(t,e)),o=`${s}-${n}`;const l=i.get(o)||new Map;if(i.set(o,l.set(t,e)),r){o=`${s}-${n}-${r}`;const u=i.get(o)||new Map;i.set(o,u.set(t,e))}}function Zl(n,e,t){n.clear(),e.clear();for(const i of t){const{source:s,target:r,sourceHandle:o=null,targetHandle:a=null}=i,l={edgeId:i.id,source:s,target:r,sourceHandle:o,targetHandle:a},u=`${s}-${o}--${r}-${a}`,c=`${r}-${a}--${s}-${o}`;Cd("source",l,c,n,s,o),Cd("target",l,u,n,r,a),e.set(i.id,i)}}function Ed(n,e){if(n.size!==e.size)return!1;for(const t of n)if(!e.has(t))return!1;return!0}function Dl(n,e,t,i,s,r,o,a){const l=[];for(const u of n){const c=hi(u)?u:r_(u,a,s,r);if(!c)continue;const h=t(c.source),d=t(c.target);if(!h||!d){s(new lt(st.EDGE_SOURCE_TARGET_MISSING,c.id,c.source,c.target));continue}if(!h){s(new lt(st.EDGE_SOURCE_MISSING,c.id,c.source));continue}if(!d){s(new lt(st.EDGE_TARGET_MISSING,c.id,c.target));continue}if(e&&!e(c,{edges:a,nodes:o,sourceNode:h,targetNode:d})){s(new lt(st.EDGE_INVALID,c.id));continue}const f=i(c.id);l.push({...rg(c,f,r),sourceNode:h,targetNode:d})}return l}const Md=Symbol("vueFlow"),tl=Symbol("nodeId"),Og=Symbol("nodeRef"),a_=Symbol("edgeId"),l_=Symbol("edgeRef"),nl=Symbol("slots");function yg(n){const{vueFlowRef:e,snapToGrid:t,snapGrid:i,noDragClassName:s,nodes:r,nodeExtent:o,nodeDragThreshold:a,viewport:l,autoPanOnNodeDrag:u,autoPanSpeed:c,nodesDraggable:h,panBy:d,findNode:f,multiSelectionActive:p,nodesSelectionActive:m,selectNodesOnDrag:O,removeSelectedElements:y,addSelectedNodes:b,updateNodePositions:v,emits:g}=Le(),{onStart:k,onDrag:S,onStop:Q,onClick:T,el:P,disabled:B,id:W,selectable:C,dragHandle:j}=n,w=ae(!1);let R=[],_,D=null,N={x:void 0,y:void 0},U={x:0,y:0},V=null,Y=!1,E=0,X=!1;const H=vg(),J=({x:he,y:le})=>{N={x:he,y:le};let we=!1;if(R=R.map(Z=>{const M={x:he-Z.distance.x,y:le-Z.distance.y},{computedPosition:z}=ih(Z,t.value?Ja(M,i.value):M,g.error,o.value,Z.parentNode?f(Z.parentNode):void 0);return we=we||Z.position.x!==z.x||Z.position.y!==z.y,Z.position=z,Z}),!!we&&(v(R,!0,!0),w.value=!0,V)){const[Z,M]=Ml({id:W,dragItems:R,findNode:f});S({event:V,node:Z,nodes:M})}},me=()=>{if(!D)return;const[he,le]=dg(U,D,c.value);if(he!==0||le!==0){const we={x:(N.x??0)-he/l.value.zoom,y:(N.y??0)-le/l.value.zoom};d({x:he,y:le})&&J(we)}E=requestAnimationFrame(me)},oe=(he,le)=>{Y=!0;const we=f(W);!O.value&&!p.value&&we&&(we.selected||y()),we&&Ze(C)&&O.value&&Vu(we,p.value,b,y,m,!1,le);const Z=H(he.sourceEvent);if(N=Z,R=US(r.value,h.value,Z,f,W),R.length){const[M,z]=Ml({id:W,dragItems:R,findNode:f});k({event:he.sourceEvent,node:M,nodes:z})}},xe=(he,le)=>{var we;he.sourceEvent.type==="touchmove"&&he.sourceEvent.touches.length>1||(a.value===0&&oe(he,le),N=H(he.sourceEvent),D=((we=e.value)==null?void 0:we.getBoundingClientRect())||null,U=ui(he.sourceEvent,D))},ye=(he,le)=>{const we=H(he.sourceEvent);if(!X&&Y&&u.value&&(X=!0,me()),!Y){const Z=we.xSnapped-(N.x??0),M=we.ySnapped-(N.y??0);Math.sqrt(Z*Z+M*M)>a.value&&oe(he,le)}(N.x!==we.xSnapped||N.y!==we.ySnapped)&&R.length&&Y&&(V=he.sourceEvent,U=ui(he.sourceEvent,D),J(we))},Re=he=>{if(!pg(he)&&!Y&&!w.value&&!p.value){const le=he,we=H(le),Z=we.xSnapped-(N.x??0),M=we.ySnapped-(N.y??0),z=Math.sqrt(Z*Z+M*M);z!==0&&z<=a.value&&(T==null||T(le));return}if(w.value=!1,X=!1,Y=!1,N={x:void 0,y:void 0},cancelAnimationFrame(E),R.length){v(R,!1,!1);const[le,we]=Ml({id:W,dragItems:R,findNode:f});Q({event:he.sourceEvent,node:le,nodes:we})}};return Qe([()=>Ze(B),P],([he,le],we,Z)=>{if(le){const M=Gt(le);he||(_=Xb().on("start",z=>xe(z,le)).on("drag",z=>ye(z,le)).on("end",z=>Re(z)).filter(z=>{const L=z.target,F=Ze(j);return!z.button&&(!s.value||!$d(L,`.${s.value}`,le)&&(!F||$d(L,F,le)))}),M.call(_)),Z(()=>{M.on(".drag",null),_&&(_.on("start",null),_.on("drag",null),_.on("end",null))})}}),w}function u_(){return{doubleClick:se(),click:se(),mouseEnter:se(),mouseMove:se(),mouseLeave:se(),contextMenu:se(),updateStart:se(),update:se(),updateEnd:se()}}function c_(n,e){const t=u_();return t.doubleClick.on(i=>{var s,r;e.edgeDoubleClick(i),(r=(s=n.events)==null?void 0:s.doubleClick)==null||r.call(s,i)}),t.click.on(i=>{var s,r;e.edgeClick(i),(r=(s=n.events)==null?void 0:s.click)==null||r.call(s,i)}),t.mouseEnter.on(i=>{var s,r;e.edgeMouseEnter(i),(r=(s=n.events)==null?void 0:s.mouseEnter)==null||r.call(s,i)}),t.mouseMove.on(i=>{var s,r;e.edgeMouseMove(i),(r=(s=n.events)==null?void 0:s.mouseMove)==null||r.call(s,i)}),t.mouseLeave.on(i=>{var s,r;e.edgeMouseLeave(i),(r=(s=n.events)==null?void 0:s.mouseLeave)==null||r.call(s,i)}),t.contextMenu.on(i=>{var s,r;e.edgeContextMenu(i),(r=(s=n.events)==null?void 0:s.contextMenu)==null||r.call(s,i)}),t.updateStart.on(i=>{var s,r;e.edgeUpdateStart(i),(r=(s=n.events)==null?void 0:s.updateStart)==null||r.call(s,i)}),t.update.on(i=>{var s,r;e.edgeUpdate(i),(r=(s=n.events)==null?void 0:s.update)==null||r.call(s,i)}),t.updateEnd.on(i=>{var s,r;e.edgeUpdateEnd(i),(r=(s=n.events)==null?void 0:s.updateEnd)==null||r.call(s,i)}),Object.entries(t).reduce((i,[s,r])=>(i.emit[s]=r.trigger,i.on[s]=r.on,i),{emit:{},on:{}})}function vg(){const{viewport:n,snapGrid:e,snapToGrid:t}=Le();return i=>{const s=pg(i)?i.sourceEvent:i,{x:r,y:o}=ui(s),a=kr({x:r,y:o},n.value),{x:l,y:u}=t.value?Ja(a,e.value):a;return{xSnapped:l,ySnapped:u,...a}}}function lo(){return!0}function wg({handleId:n,nodeId:e,type:t,isValidConnection:i,edgeUpdaterType:s,onEdgeUpdate:r,onEdgeUpdateEnd:o}){const{id:a,vueFlowRef:l,connectionMode:u,connectionRadius:c,connectOnClick:h,connectionClickStartHandle:d,nodesConnectable:f,autoPanOnConnect:p,autoPanSpeed:m,findNode:O,panBy:y,startConnection:b,updateConnection:v,endConnection:g,emits:k,viewport:S,edges:Q,nodes:T,isValidConnection:P,nodeLookup:B}=Le();let W=null,C=!1,j=null;function w(_){var D;const N=Ze(t)==="target",U=sh(_),V=yd(_.target);if(U&&_.button===0||!U){let Y=function(Se){Z=ui(Se,he),J=e_(kr(Z,S.value,!1,[1,1]),c.value,B.value,L),M||(z(),M=!0);const Ae=Qd(Se,{handle:J,connectionMode:u.value,fromNodeId:Ze(e),fromHandleId:Ze(n),fromType:N?"target":"source",isValidConnection:H,doc:V,lib:"vue",flowId:a,nodeLookup:B.value},Q.value,T.value,O);j=Ae.handleDomNode,W=Ae.connection,C=n_(!!J,Ae.isValid);const Ce={...fe,isValid:C,to:J&&C?Lu({x:J.x,y:J.y},S.value):Z,toHandle:Ae.toHandle,toPosition:C&&Ae.toHandle?Ae.toHandle.position:zu[L.position],toNode:Ae.toHandle?B.value.get(Ae.toHandle.nodeId):null};if(!(C&&J&&(fe!=null&&fe.toHandle)&&Ce.toHandle&&fe.toHandle.type===Ce.toHandle.type&&fe.toHandle.nodeId===Ce.toHandle.nodeId&&fe.toHandle.id===Ce.toHandle.id&&fe.to.x===Ce.to.x&&fe.to.y===Ce.to.y)){if(v(J&&C?Lu({x:J.x,y:J.y},S.value):Z,Ae.toHandle,t_(!!J,C)),fe=Ce,!J&&!C&&!j)return Rl(we);W&&W.source!==W.target&&j&&(Rl(we),we=j,j.classList.add("connecting","vue-flow__handle-connecting"),j.classList.toggle("valid",!!C),j.classList.toggle("vue-flow__handle-valid",!!C))}},E=function(Se){(J||j)&&W&&C&&(r?r(Se,W):k.connect(W)),k.connectEnd(Se),s&&(o==null||o(Se)),Rl(we),cancelAnimationFrame(me),g(Se),M=!1,C=!1,W=null,j=null,V.removeEventListener("mousemove",Y),V.removeEventListener("mouseup",E),V.removeEventListener("touchmove",Y),V.removeEventListener("touchend",E)};const X=O(Ze(e));let H=Ze(i)||P.value||lo;!H&&X&&(H=(N?X.isValidSourcePos:X.isValidTargetPos)||lo);let J,me=0;const{x:oe,y:xe}=ui(_),ye=V==null?void 0:V.elementFromPoint(oe,xe),Re=mg(Ze(s),ye),he=(D=l.value)==null?void 0:D.getBoundingClientRect();if(!he||!Re)return;const le=i_(Ze(e),Re,Ze(n),B.value,u.value);if(!le)return;let we,Z=ui(_,he),M=!1;const z=()=>{if(!p.value)return;const[Se,Ae]=dg(Z,he,m.value);y({x:Se,y:Ae}),me=requestAnimationFrame(z)},L={...le,nodeId:Ze(e),type:Re,position:le.position},F=B.value.get(Ze(e)),de={inProgress:!0,isValid:null,from:$s(F,L,ce.Left,!0),fromHandle:L,fromPosition:L.position,fromNode:F,to:Z,toHandle:null,toPosition:zu[L.position],toNode:null};b({nodeId:Ze(e),id:Ze(n),type:Re,position:(ye==null?void 0:ye.getAttribute("data-handlepos"))||ce.Top},{x:oe-he.left,y:xe-he.top}),k.connectStart({event:_,nodeId:Ze(e),handleId:Ze(n),handleType:Re});let fe=de;V.addEventListener("mousemove",Y),V.addEventListener("mouseup",E),V.addEventListener("touchmove",Y),V.addEventListener("touchend",E)}}function R(_){var D,N;if(!h.value)return;const U=Ze(t)==="target";if(!d.value){k.clickConnectStart({event:_,nodeId:Ze(e),handleId:Ze(n)}),b({nodeId:Ze(e),type:Ze(t),id:Ze(n),position:ce.Top},void 0,!0);return}let V=Ze(i)||P.value||lo;const Y=O(Ze(e));if(!V&&Y&&(V=(U?Y.isValidSourcePos:Y.isValidTargetPos)||lo),Y&&(typeof Y.connectable>"u"?f.value:Y.connectable)===!1)return;const E=yd(_.target),X=Qd(_,{handle:{nodeId:Ze(e),id:Ze(n),type:Ze(t),position:ce.Top},connectionMode:u.value,fromNodeId:d.value.nodeId,fromHandleId:d.value.id||null,fromType:d.value.type,isValidConnection:V,doc:E,lib:"vue",flowId:a,nodeLookup:B.value},Q.value,T.value,O),H=((D=X.connection)==null?void 0:D.source)===((N=X.connection)==null?void 0:N.target);X.isValid&&X.connection&&!H&&k.connect(X.connection),k.clickConnectEnd(_),g(_,!0)}return{handlePointerDown:w,handleClick:R}}function h_(){return Wn(tl,"")}function bg(n){const e=n??h_()??"",t=Wn(Og,ae(null)),{findNode:i,edges:s,emits:r}=Le(),o=i(e);return o||r.error(new lt(st.NODE_NOT_FOUND,e)),{id:e,nodeEl:t,node:o,parentNode:pe(()=>i(o.parentNode)),connectedEdges:pe(()=>$i([o],s.value))}}function d_(){return{doubleClick:se(),click:se(),mouseEnter:se(),mouseMove:se(),mouseLeave:se(),contextMenu:se(),dragStart:se(),drag:se(),dragStop:se()}}function f_(n,e){const t=d_();return t.doubleClick.on(i=>{var s,r;e.nodeDoubleClick(i),(r=(s=n.events)==null?void 0:s.doubleClick)==null||r.call(s,i)}),t.click.on(i=>{var s,r;e.nodeClick(i),(r=(s=n.events)==null?void 0:s.click)==null||r.call(s,i)}),t.mouseEnter.on(i=>{var s,r;e.nodeMouseEnter(i),(r=(s=n.events)==null?void 0:s.mouseEnter)==null||r.call(s,i)}),t.mouseMove.on(i=>{var s,r;e.nodeMouseMove(i),(r=(s=n.events)==null?void 0:s.mouseMove)==null||r.call(s,i)}),t.mouseLeave.on(i=>{var s,r;e.nodeMouseLeave(i),(r=(s=n.events)==null?void 0:s.mouseLeave)==null||r.call(s,i)}),t.contextMenu.on(i=>{var s,r;e.nodeContextMenu(i),(r=(s=n.events)==null?void 0:s.contextMenu)==null||r.call(s,i)}),t.dragStart.on(i=>{var s,r;e.nodeDragStart(i),(r=(s=n.events)==null?void 0:s.dragStart)==null||r.call(s,i)}),t.drag.on(i=>{var s,r;e.nodeDrag(i),(r=(s=n.events)==null?void 0:s.drag)==null||r.call(s,i)}),t.dragStop.on(i=>{var s,r;e.nodeDragStop(i),(r=(s=n.events)==null?void 0:s.dragStop)==null||r.call(s,i)}),Object.entries(t).reduce((i,[s,r])=>(i.emit[s]=r.trigger,i.on[s]=r.on,i),{emit:{},on:{}})}function xg(){const{getSelectedNodes:n,nodeExtent:e,updateNodePositions:t,findNode:i,snapGrid:s,snapToGrid:r,nodesDraggable:o,emits:a}=Le();return(l,u=!1)=>{const c=r.value?s.value[0]:5,h=r.value?s.value[1]:5,d=u?4:1,f=l.x*c*d,p=l.y*h*d,m=[];for(const O of n.value)if(O.draggable||o&&typeof O.draggable>"u"){const y={x:O.computedPosition.x+f,y:O.computedPosition.y+p},{computedPosition:b}=ih(O,y,a.error,e.value,O.parentNode?i(O.parentNode):void 0);m.push({id:O.id,position:b,from:O.position,distance:{x:l.x,y:l.y},dimensions:O.dimensions})}t(m,!0,!1)}}const Nl=.1;function qn(){return el("Viewport not initialized yet."),Promise.resolve(!1)}const p_={zoomIn:qn,zoomOut:qn,zoomTo:qn,fitView:qn,setCenter:qn,fitBounds:qn,project:n=>n,screenToFlowCoordinate:n=>n,flowToScreenCoordinate:n=>n,setViewport:qn,setTransform:qn,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function m_(n){function e(i,s){return new Promise(r=>{n.d3Selection&&n.d3Zoom?n.d3Zoom.scaleBy(Il(n.d3Selection,s,()=>{r(!0)}),i):r(!1)})}function t(i,s,r,o){return new Promise(a=>{const{x:l,y:u}=sg({x:-i,y:-s},n.translateExtent),c=_s.translate(-l,-u).scale(r);n.d3Selection&&n.d3Zoom?n.d3Zoom.transform(Il(n.d3Selection,o,()=>{a(!0)}),c):a(!1)})}return pe(()=>n.d3Zoom&&n.d3Selection&&n.dimensions.width&&n.dimensions.height?{viewportInitialized:!0,zoomIn:s=>e(1.2,s==null?void 0:s.duration),zoomOut:s=>e(1/1.2,s==null?void 0:s.duration),zoomTo:(s,r)=>new Promise(o=>{n.d3Selection&&n.d3Zoom?n.d3Zoom.scaleTo(Il(n.d3Selection,r==null?void 0:r.duration,()=>{o(!0)}),s):o(!1)}),setViewport:(s,r)=>t(s.x,s.y,s.zoom,r==null?void 0:r.duration),setTransform:(s,r)=>t(s.x,s.y,s.zoom,r==null?void 0:r.duration),getViewport:()=>({x:n.viewport.x,y:n.viewport.y,zoom:n.viewport.zoom}),getTransform:()=>({x:n.viewport.x,y:n.viewport.y,zoom:n.viewport.zoom}),fitView:(s={padding:Nl,includeHiddenNodes:!1,duration:0})=>{var r,o;const a=[];for(const d of n.nodes)d.dimensions.width&&d.dimensions.height&&((s==null?void 0:s.includeHiddenNodes)||!d.hidden)&&(!((r=s.nodes)!=null&&r.length)||(o=s.nodes)!=null&&o.length&&s.nodes.includes(d.id))&&a.push(d);if(!a.length)return Promise.resolve(!1);const l=Ka(a),{x:u,y:c,zoom:h}=vd(l,n.dimensions.width,n.dimensions.height,s.minZoom??n.minZoom,s.maxZoom??n.maxZoom,s.padding??Nl,s.offset);return t(u,c,h,s==null?void 0:s.duration)},setCenter:(s,r,o)=>{const a=typeof(o==null?void 0:o.zoom)<"u"?o.zoom:n.maxZoom,l=n.dimensions.width/2-s*a,u=n.dimensions.height/2-r*a;return t(l,u,a,o==null?void 0:o.duration)},fitBounds:(s,r={padding:Nl})=>{const{x:o,y:a,zoom:l}=vd(s,n.dimensions.width,n.dimensions.height,n.minZoom,n.maxZoom,r.padding);return t(o,a,l,r==null?void 0:r.duration)},project:s=>kr(s,n.viewport,n.snapToGrid,n.snapGrid),screenToFlowCoordinate:s=>{if(n.vueFlowRef){const{x:r,y:o}=n.vueFlowRef.getBoundingClientRect(),a={x:s.x-r,y:s.y-o};return kr(a,n.viewport,n.snapToGrid,n.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:s=>{if(n.vueFlowRef){const{x:r,y:o}=n.vueFlowRef.getBoundingClientRect(),a={x:s.x+r,y:s.y+o};return Lu(a,n.viewport)}return{x:0,y:0}}}:p_)}function Il(n,e=0,t){return n.transition().duration(e).on("end",t)}function g_(n,e,t){const i=tm(!0);return i.run(()=>{const s=()=>{i.run(()=>{let m,O,y=!!(t.nodes.value.length||t.edges.value.length);m=ns([n.modelValue,()=>{var b,v;return(v=(b=n.modelValue)==null?void 0:b.value)==null?void 0:v.length}],([b])=>{b&&Array.isArray(b)&&(O==null||O.pause(),t.setElements(b),!O&&!y&&b.length?y=!0:O==null||O.resume())}),O=ns([t.nodes,t.edges,()=>t.edges.value.length,()=>t.nodes.value.length],([b,v])=>{var g;(g=n.modelValue)!=null&&g.value&&Array.isArray(n.modelValue.value)&&(m==null||m.pause(),n.modelValue.value=[...b,...v],Dn(()=>{m==null||m.resume()}))},{immediate:y}),Do(()=>{m==null||m.stop(),O==null||O.stop()})})},r=()=>{i.run(()=>{let m,O,y=!!t.nodes.value.length;m=ns([n.nodes,()=>{var b,v;return(v=(b=n.nodes)==null?void 0:b.value)==null?void 0:v.length}],([b])=>{b&&Array.isArray(b)&&(O==null||O.pause(),t.setNodes(b),!O&&!y&&b.length?y=!0:O==null||O.resume())}),O=ns([t.nodes,()=>t.nodes.value.length],([b])=>{var v;(v=n.nodes)!=null&&v.value&&Array.isArray(n.nodes.value)&&(m==null||m.pause(),n.nodes.value=[...b],Dn(()=>{m==null||m.resume()}))},{immediate:y}),Do(()=>{m==null||m.stop(),O==null||O.stop()})})},o=()=>{i.run(()=>{let m,O,y=!!t.edges.value.length;m=ns([n.edges,()=>{var b,v;return(v=(b=n.edges)==null?void 0:b.value)==null?void 0:v.length}],([b])=>{b&&Array.isArray(b)&&(O==null||O.pause(),t.setEdges(b),!O&&!y&&b.length?y=!0:O==null||O.resume())}),O=ns([t.edges,()=>t.edges.value.length],([b])=>{var v;(v=n.edges)!=null&&v.value&&Array.isArray(n.edges.value)&&(m==null||m.pause(),n.edges.value=[...b],Dn(()=>{m==null||m.resume()}))},{immediate:y}),Do(()=>{m==null||m.stop(),O==null||O.stop()})})},a=()=>{i.run(()=>{Qe(()=>e.maxZoom,()=>{e.maxZoom&&it(e.maxZoom)&&t.setMaxZoom(e.maxZoom)},{immediate:!0})})},l=()=>{i.run(()=>{Qe(()=>e.minZoom,()=>{e.minZoom&&it(e.minZoom)&&t.setMinZoom(e.minZoom)},{immediate:!0})})},u=()=>{i.run(()=>{Qe(()=>e.translateExtent,()=>{e.translateExtent&&it(e.translateExtent)&&t.setTranslateExtent(e.translateExtent)},{immediate:!0})})},c=()=>{i.run(()=>{Qe(()=>e.nodeExtent,()=>{e.nodeExtent&&it(e.nodeExtent)&&t.setNodeExtent(e.nodeExtent)},{immediate:!0})})},h=()=>{i.run(()=>{Qe(()=>e.applyDefault,()=>{it(e.applyDefault)&&(t.applyDefault.value=e.applyDefault)},{immediate:!0})})},d=()=>{i.run(()=>{const m=async O=>{let y=O;typeof e.autoConnect=="function"&&(y=await e.autoConnect(O)),y!==!1&&t.addEdges([y])};Qe(()=>e.autoConnect,()=>{it(e.autoConnect)&&(t.autoConnect.value=e.autoConnect)},{immediate:!0}),Qe(t.autoConnect,(O,y,b)=>{O?t.onConnect(m):t.hooks.value.connect.off(m),b(()=>{t.hooks.value.connect.off(m)})},{immediate:!0})})},f=()=>{const m=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const O of Object.keys(e)){const y=O;if(!m.includes(y)){const b=Me(()=>e[y]),v=t[y];ja(v)&&i.run(()=>{Qe(b,g=>{it(g)&&(v.value=g)},{immediate:!0})})}}};(()=>{s(),r(),o(),l(),a(),u(),c(),h(),d(),f()})()}),()=>i.stop()}function O_(){return{edgesChange:se(),nodesChange:se(),nodeDoubleClick:se(),nodeClick:se(),nodeMouseEnter:se(),nodeMouseMove:se(),nodeMouseLeave:se(),nodeContextMenu:se(),nodeDragStart:se(),nodeDrag:se(),nodeDragStop:se(),nodesInitialized:se(),miniMapNodeClick:se(),miniMapNodeDoubleClick:se(),miniMapNodeMouseEnter:se(),miniMapNodeMouseMove:se(),miniMapNodeMouseLeave:se(),connect:se(),connectStart:se(),connectEnd:se(),clickConnectStart:se(),clickConnectEnd:se(),paneReady:se(),init:se(),move:se(),moveStart:se(),moveEnd:se(),selectionDragStart:se(),selectionDrag:se(),selectionDragStop:se(),selectionContextMenu:se(),selectionStart:se(),selectionEnd:se(),viewportChangeStart:se(),viewportChange:se(),viewportChangeEnd:se(),paneScroll:se(),paneClick:se(),paneContextMenu:se(),paneMouseEnter:se(),paneMouseMove:se(),paneMouseLeave:se(),edgeContextMenu:se(),edgeMouseEnter:se(),edgeMouseMove:se(),edgeMouseLeave:se(),edgeDoubleClick:se(),edgeClick:se(),edgeUpdateStart:se(),edgeUpdate:se(),edgeUpdateEnd:se(),updateNodeInternals:se(),error:se(n=>el(n.message))}}function y_(n,e){By(()=>{for(const[t,i]of Object.entries(e.value)){const s=r=>{n(t,r)};i.fns.add(s),Wa(()=>{i.off(s)})}})}function Sg(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:nh.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:mr.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:_i.Bezier,style:{}},connectionMode:ci.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:Number.NaN,y:Number.NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:ya()?"Meta":"Control",zoomActivationKeyCode:ya()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:O_(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}const v_=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function w_(n,e,t){const i=m_(n),s=Z=>{const M=Z??[];n.hooks.updateNodeInternals.trigger(M)},r=Z=>zS(Z,n.nodes,n.edges),o=Z=>LS(Z,n.nodes,n.edges),a=Z=>$i(Z,n.edges),l=({id:Z,type:M,nodeId:z})=>{var L;return Array.from(((L=n.connectionLookup.get(`${z}-${M}-${Z??null}`))==null?void 0:L.values())??[])},u=Z=>{if(Z)return e.value.get(Z)},c=Z=>{if(Z)return t.value.get(Z)},h=(Z,M,z)=>{var L,F;const ue=[];for(const de of Z){const fe={id:de.id,type:"position",dragging:z,from:de.from};if(M&&(fe.position=de.position,de.parentNode)){const Se=u(de.parentNode);fe.position={x:fe.position.x-(((L=Se==null?void 0:Se.computedPosition)==null?void 0:L.x)??0),y:fe.position.y-(((F=Se==null?void 0:Se.computedPosition)==null?void 0:F.y)??0)}}ue.push(fe)}ue!=null&&ue.length&&n.hooks.nodesChange.trigger(ue)},d=Z=>{if(!n.vueFlowRef)return;const M=n.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!M)return;const z=window.getComputedStyle(M),{m22:L}=new window.DOMMatrixReadOnly(z.transform),F=[];for(let ue=0;ue{n.fitViewOnInitDone=!0}),F.length&&n.hooks.nodesChange.trigger(F)},f=(Z,M)=>{const z=new Set,L=new Set;for(const de of Z)Li(de)?z.add(de.id):hi(de)&&L.add(de.id);const F=Kn(e.value,z,!0),ue=Kn(t.value,L);if(n.multiSelectionActive){for(const de of z)F.push(Gn(de,M));for(const de of L)ue.push(Gn(de,M))}F.length&&n.hooks.nodesChange.trigger(F),ue.length&&n.hooks.edgesChange.trigger(ue)},p=Z=>{if(n.multiSelectionActive){const M=Z.map(z=>Gn(z.id,!0));n.hooks.nodesChange.trigger(M);return}n.hooks.nodesChange.trigger(Kn(e.value,new Set(Z.map(M=>M.id)),!0)),n.hooks.edgesChange.trigger(Kn(t.value))},m=Z=>{if(n.multiSelectionActive){const M=Z.map(z=>Gn(z.id,!0));n.hooks.edgesChange.trigger(M);return}n.hooks.edgesChange.trigger(Kn(t.value,new Set(Z.map(M=>M.id)))),n.hooks.nodesChange.trigger(Kn(e.value,new Set,!0))},O=Z=>{f(Z,!0)},y=Z=>{const z=(Z||n.nodes).map(L=>(L.selected=!1,Gn(L.id,!1)));n.hooks.nodesChange.trigger(z)},b=Z=>{const z=(Z||n.edges).map(L=>(L.selected=!1,Gn(L.id,!1)));n.hooks.edgesChange.trigger(z)},v=Z=>{if(!Z||!Z.length)return f([],!1);const M=Z.reduce((z,L)=>{const F=Gn(L.id,!1);return Li(L)?z.nodes.push(F):z.edges.push(F),z},{nodes:[],edges:[]});M.nodes.length&&n.hooks.nodesChange.trigger(M.nodes),M.edges.length&&n.hooks.edgesChange.trigger(M.edges)},g=Z=>{var M;(M=n.d3Zoom)==null||M.scaleExtent([Z,n.maxZoom]),n.minZoom=Z},k=Z=>{var M;(M=n.d3Zoom)==null||M.scaleExtent([n.minZoom,Z]),n.maxZoom=Z},S=Z=>{var M;(M=n.d3Zoom)==null||M.translateExtent(Z),n.translateExtent=Z},Q=Z=>{n.nodeExtent=Z,s()},T=Z=>{var M;(M=n.d3Zoom)==null||M.clickDistance(Z)},P=Z=>{n.nodesDraggable=Z,n.nodesConnectable=Z,n.elementsSelectable=Z},B=Z=>{const M=Z instanceof Function?Z(n.nodes):Z;!n.initialized&&!M.length||(n.nodes=Ad(M,u,n.hooks.error.trigger))},W=Z=>{const M=Z instanceof Function?Z(n.edges):Z;if(!n.initialized&&!M.length)return;const z=Dl(M,n.isValidConnection,u,c,n.hooks.error.trigger,n.defaultEdgeOptions,n.nodes,n.edges);Zl(n.connectionLookup,t.value,z),n.edges=z},C=Z=>{const M=Z instanceof Function?Z([...n.nodes,...n.edges]):Z;!n.initialized&&!M.length||(B(M.filter(Li)),W(M.filter(hi)))},j=Z=>{let M=Z instanceof Function?Z(n.nodes):Z;M=Array.isArray(M)?M:[M];const z=Ad(M,u,n.hooks.error.trigger),L=[];for(const F of z)L.push(xd(F));L.length&&n.hooks.nodesChange.trigger(L)},w=Z=>{let M=Z instanceof Function?Z(n.edges):Z;M=Array.isArray(M)?M:[M];const z=Dl(M,n.isValidConnection,u,c,n.hooks.error.trigger,n.defaultEdgeOptions,n.nodes,n.edges),L=[];for(const F of z)L.push(xd(F));L.length&&n.hooks.edgesChange.trigger(L)},R=(Z,M=!0,z=!1)=>{const L=Z instanceof Function?Z(n.nodes):Z,F=Array.isArray(L)?L:[L],ue=[],de=[];function fe(Ae){const Ce=a(Ae);for(const qe of Ce)(!it(qe.deletable)||qe.deletable)&&de.push(_d(qe.id,qe.source,qe.target,qe.sourceHandle,qe.targetHandle))}function Se(Ae){const Ce=[];for(const qe of n.nodes)qe.parentNode===Ae&&Ce.push(qe);if(Ce.length){for(const qe of Ce)ue.push(Sd(qe.id));M&&fe(Ce);for(const qe of Ce)Se(qe.id)}}for(const Ae of F){const Ce=typeof Ae=="string"?u(Ae):Ae;Ce&&(it(Ce.deletable)&&!Ce.deletable||(ue.push(Sd(Ce.id)),M&&fe([Ce]),z&&Se(Ce.id)))}de.length&&n.hooks.edgesChange.trigger(de),ue.length&&n.hooks.nodesChange.trigger(ue)},_=Z=>{const M=Z instanceof Function?Z(n.edges):Z,z=Array.isArray(M)?M:[M],L=[];for(const F of z){const ue=typeof F=="string"?c(F):F;ue&&(it(ue.deletable)&&!ue.deletable||L.push(_d(typeof F=="string"?F:F.id,ue.source,ue.target,ue.sourceHandle,ue.targetHandle)))}n.hooks.edgesChange.trigger(L)},D=(Z,M,z=!0)=>{const L=c(Z.id),F=o_(Z,M,L,z,n.hooks.error.trigger);if(F){const[ue]=Dl([F],n.isValidConnection,u,c,n.hooks.error.trigger,n.defaultEdgeOptions,n.nodes,n.edges);return n.edges.splice(n.edges.indexOf(L),1,ue),Zl(n.connectionLookup,t.value,[ue]),ue}return!1},N=(Z,M,z={replace:!1})=>{const L=c(Z);if(!L)return;const F=typeof M=="function"?M(L):M;L.data=z.replace?F:{...L.data,...F}},U=Z=>bd(Z,n.nodes),V=Z=>{const M=bd(Z,n.edges);return Zl(n.connectionLookup,t.value,M),M},Y=(Z,M,z={replace:!1})=>{const L=u(Z);if(!L)return;const F=typeof M=="function"?M(L):M;z.replace?n.nodes.splice(n.nodes.indexOf(L),1,F):Object.assign(L,F)},E=(Z,M,z={replace:!1})=>{const L=u(Z);if(!L)return;const F=typeof M=="function"?M(L):M;L.data=z.replace?F:{...L.data,...F}},X=(Z,M,z=!1)=>{z?n.connectionClickStartHandle=Z:n.connectionStartHandle=Z,n.connectionEndHandle=null,n.connectionStatus=null,M&&(n.connectionPosition=M)},H=(Z,M=null,z=null)=>{n.connectionStartHandle&&(n.connectionPosition=Z,n.connectionEndHandle=M,n.connectionStatus=z)},J=(Z,M)=>{n.connectionPosition={x:Number.NaN,y:Number.NaN},n.connectionEndHandle=null,n.connectionStatus=null,M?n.connectionClickStartHandle=null:n.connectionStartHandle=null},me=Z=>{const M=NS(Z),z=M?null:nr(Z)?Z:u(Z.id);return!M&&!z?[null,null,M]:[M?Z:ma(z),z,M]},oe=(Z,M=!0,z=n.nodes)=>{const[L,F,ue]=me(Z);if(!L)return[];const de=[];for(const fe of z||n.nodes){if(!ue&&(fe.id===F.id||!fe.computedPosition))continue;const Se=ma(fe),Ae=ga(Se,L);(M&&Ae>0||Ae>=Number(L.width)*Number(L.height))&&de.push(fe)}return de},xe=(Z,M,z=!0)=>{const[L]=me(Z);if(!L)return!1;const F=ga(L,M);return z&&F>0||F>=Number(L.width)*Number(L.height)},ye=Z=>{const{viewport:M,dimensions:z,d3Zoom:L,d3Selection:F,translateExtent:ue}=n;if(!L||!F||!Z.x&&!Z.y)return!1;const de=_s.translate(M.x+Z.x,M.y+Z.y).scale(M.zoom),fe=[[0,0],[z.width,z.height]],Se=L.constrain()(de,fe,ue),Ae=n.viewport.x!==Se.x||n.viewport.y!==Se.y||n.viewport.zoom!==Se.k;return L.transform(F,Se),Ae},Re=Z=>{const M=Z instanceof Function?Z(n):Z,z=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];it(M.defaultEdgeOptions)&&(n.defaultEdgeOptions=M.defaultEdgeOptions);const L=M.modelValue||M.nodes||M.edges?[]:void 0;L&&(M.modelValue&&L.push(...M.modelValue),M.nodes&&L.push(...M.nodes),M.edges&&L.push(...M.edges),C(L));const F=()=>{it(M.maxZoom)&&k(M.maxZoom),it(M.minZoom)&&g(M.minZoom),it(M.translateExtent)&&S(M.translateExtent)};for(const ue of Object.keys(M)){const de=ue,fe=M[de];![...v_,...z].includes(de)&&it(fe)&&(n[de]=fe)}Qu(()=>n.d3Zoom).not.toBeNull().then(F),n.initialized||(n.initialized=!0)};return{updateNodePositions:h,updateNodeDimensions:d,setElements:C,setNodes:B,setEdges:W,addNodes:j,addEdges:w,removeNodes:R,removeEdges:_,findNode:u,findEdge:c,updateEdge:D,updateEdgeData:N,updateNode:Y,updateNodeData:E,applyEdgeChanges:V,applyNodeChanges:U,addSelectedElements:O,addSelectedNodes:p,addSelectedEdges:m,setMinZoom:g,setMaxZoom:k,setTranslateExtent:S,setNodeExtent:Q,setPaneClickDistance:T,removeSelectedElements:v,removeSelectedNodes:y,removeSelectedEdges:b,startConnection:X,updateConnection:H,endConnection:J,setInteractive:P,setState:Re,getIntersectingNodes:oe,getIncomers:r,getOutgoers:o,getConnectedEdges:a,getHandleConnections:l,isNodeIntersecting:xe,panBy:ye,fitView:Z=>i.value.fitView(Z),zoomIn:Z=>i.value.zoomIn(Z),zoomOut:Z=>i.value.zoomOut(Z),zoomTo:(Z,M)=>i.value.zoomTo(Z,M),setViewport:(Z,M)=>i.value.setViewport(Z,M),setTransform:(Z,M)=>i.value.setTransform(Z,M),getViewport:()=>i.value.getViewport(),getTransform:()=>i.value.getTransform(),setCenter:(Z,M,z)=>i.value.setCenter(Z,M,z),fitBounds:(Z,M)=>i.value.fitBounds(Z,M),project:Z=>i.value.project(Z),screenToFlowCoordinate:Z=>i.value.screenToFlowCoordinate(Z),flowToScreenCoordinate:Z=>i.value.flowToScreenCoordinate(Z),toObject:()=>{const Z=[],M=[];for(const z of n.nodes){const{computedPosition:L,handleBounds:F,selected:ue,dimensions:de,isParent:fe,resizing:Se,dragging:Ae,events:Ce,...qe}=z;Z.push(qe)}for(const z of n.edges){const{selected:L,sourceNode:F,targetNode:ue,events:de,...fe}=z;M.push(fe)}return JSON.parse(JSON.stringify({nodes:Z,edges:M,position:[n.viewport.x,n.viewport.y],zoom:n.viewport.zoom,viewport:n.viewport}))},fromObject:Z=>new Promise(M=>{const{nodes:z,edges:L,position:F,zoom:ue,viewport:de}=Z;if(z&&B(z),L&&W(L),de!=null&&de.x&&(de!=null&&de.y)||F){const fe=(de==null?void 0:de.x)||F[0],Se=(de==null?void 0:de.y)||F[1],Ae=(de==null?void 0:de.zoom)||ue||n.viewport.zoom;return Qu(()=>i.value.viewportInitialized).toBe(!0).then(()=>{i.value.setViewport({x:fe,y:Se,zoom:Ae}).then(()=>{M(!0)})})}else M(!0)}),updateNodeInternals:s,viewportHelper:i,$reset:()=>{const Z=Sg();if(n.edges=[],n.nodes=[],n.d3Zoom&&n.d3Selection){const M=_s.translate(Z.defaultViewport.x??0,Z.defaultViewport.y??0).scale(Bn(Z.defaultViewport.zoom??1,Z.minZoom,Z.maxZoom)),z=n.viewportRef.getBoundingClientRect(),L=[[0,0],[z.width,z.height]],F=n.d3Zoom.constrain()(M,L,Z.translateExtent);n.d3Zoom.transform(n.d3Selection,F)}Re(Z)},$destroy:()=>{}}}const b_=["data-id","data-handleid","data-nodeid","data-handlepos"],x_={name:"Handle",compatConfig:{MODE:3}},Ot=Oe({...x_,props:{id:{default:null},type:{},position:{default:()=>ce.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(n,{expose:e}){const t=Xy(n,["position","connectable","connectableStart","connectableEnd","id"]),i=Me(()=>t.type??"source"),s=Me(()=>t.isValidConnection??null),{id:r,connectionStartHandle:o,connectionClickStartHandle:a,connectionEndHandle:l,vueFlowRef:u,nodesConnectable:c,noDragClassName:h,noPanClassName:d}=Le(),{id:f,node:p,nodeEl:m,connectedEdges:O}=bg(),y=ae(),b=Me(()=>typeof n.connectableStart<"u"?n.connectableStart:!0),v=Me(()=>typeof n.connectableEnd<"u"?n.connectableEnd:!0),g=Me(()=>{var W,C,j,w,R,_;return((W=o.value)==null?void 0:W.nodeId)===f&&((C=o.value)==null?void 0:C.id)===n.id&&((j=o.value)==null?void 0:j.type)===i.value||((w=l.value)==null?void 0:w.nodeId)===f&&((R=l.value)==null?void 0:R.id)===n.id&&((_=l.value)==null?void 0:_.type)===i.value}),k=Me(()=>{var W,C,j;return((W=a.value)==null?void 0:W.nodeId)===f&&((C=a.value)==null?void 0:C.id)===n.id&&((j=a.value)==null?void 0:j.type)===i.value}),{handlePointerDown:S,handleClick:Q}=wg({nodeId:f,handleId:n.id,isValidConnection:s,type:i}),T=pe(()=>typeof n.connectable=="string"&&n.connectable==="single"?!O.value.some(W=>{const C=W[`${i.value}Handle`];return W[i.value]!==f?!1:C?C===n.id:!0}):typeof n.connectable=="number"?O.value.filter(W=>{const C=W[`${i.value}Handle`];return W[i.value]!==f?!1:C?C===n.id:!0}).length{var W;if(!p.dimensions.width||!p.dimensions.height)return;const C=(W=p.handleBounds[i.value])==null?void 0:W.find(U=>U.id===n.id);if(!u.value||C)return;const j=u.value.querySelector(".vue-flow__transformationpane");if(!m.value||!y.value||!j||!n.id)return;const w=m.value.getBoundingClientRect(),R=y.value.getBoundingClientRect(),_=window.getComputedStyle(j),{m22:D}=new window.DOMMatrixReadOnly(_.transform),N={id:n.id,position:n.position,x:(R.left-w.left)/D,y:(R.top-w.top)/D,type:i.value,nodeId:f,...Fa(y.value)};p.handleBounds[i.value]=[...p.handleBounds[i.value]??[],N]}),Oi(()=>{const W=p.handleBounds[i.value];W&&(p.handleBounds[i.value]=W.filter(C=>C.id!==n.id))});function P(W){const C=sh(W);T.value&&b.value&&(C&&W.button===0||!C)&&S(W)}function B(W){!f||!a.value&&!b.value||T.value&&Q(W)}return e({handleClick:Q,handlePointerDown:S,onClick:B,onPointerDown:P}),(W,C)=>(G(),K("div",{ref_key:"handle",ref:y,"data-id":`${$(r)}-${$(f)}-${n.id}-${i.value}`,"data-handleid":n.id,"data-nodeid":$(f),"data-handlepos":W.position,class:Ge(["vue-flow__handle",[`vue-flow__handle-${W.position}`,`vue-flow__handle-${n.id}`,$(h),$(d),i.value,{connectable:T.value,connecting:k.value,connectablestart:b.value,connectableend:v.value,connectionindicator:T.value&&(b.value&&!g.value||v.value&&g.value)}]]),onMousedown:P,onTouchstartPassive:P,onClick:B},[Be(W.$slots,"default",{id:W.id})],42,b_))}}),il=function({sourcePosition:n=ce.Bottom,targetPosition:e=ce.Top,label:t,connectable:i=!0,isValidTargetPos:s,isValidSourcePos:r,data:o}){const a=o.label||t;return[Ie(Ot,{type:"target",position:e,connectable:i,isValidConnection:s}),typeof a!="string"&&a?Ie(a):Ie(ke,[a]),Ie(Ot,{type:"source",position:n,connectable:i,isValidConnection:r})]};il.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"];il.inheritAttrs=!1;il.compatConfig={MODE:3};const S_=il,sl=function({targetPosition:n=ce.Top,label:e,connectable:t=!0,isValidTargetPos:i,data:s}){const r=s.label||e;return[Ie(Ot,{type:"target",position:n,connectable:t,isValidConnection:i}),typeof r!="string"&&r?Ie(r):Ie(ke,[r])]};sl.props=["targetPosition","label","isValidTargetPos","connectable","data"];sl.inheritAttrs=!1;sl.compatConfig={MODE:3};const __=sl,rl=function({sourcePosition:n=ce.Bottom,label:e,connectable:t=!0,isValidSourcePos:i,data:s}){const r=s.label||e;return[typeof r!="string"&&r?Ie(r):Ie(ke,[r]),Ie(Ot,{type:"source",position:n,connectable:t,isValidConnection:i})]};rl.props=["sourcePosition","label","isValidSourcePos","connectable","data"];rl.inheritAttrs=!1;rl.compatConfig={MODE:3};const $_=rl,k_=["transform"],P_=["width","height","x","y","rx","ry"],Q_=["y"],T_={name:"EdgeText",compatConfig:{MODE:3}},A_=Oe({...T_,props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(n){const e=ae({x:0,y:0,width:0,height:0}),t=ae(null),i=pe(()=>`translate(${n.x-e.value.width/2} ${n.y-e.value.height/2})`);St(s),Qe([()=>n.x,()=>n.y,t,()=>n.label],s);function s(){if(!t.value)return;const r=t.value.getBBox();(r.width!==e.value.width||r.height!==e.value.height)&&(e.value=r)}return(r,o)=>(G(),K("g",{transform:i.value,class:"vue-flow__edge-textwrapper"},[r.labelShowBg?(G(),K("rect",{key:0,class:"vue-flow__edge-textbg",width:`${e.value.width+2*r.labelBgPadding[0]}px`,height:`${e.value.height+2*r.labelBgPadding[1]}px`,x:-r.labelBgPadding[0],y:-r.labelBgPadding[1],style:gt(r.labelBgStyle),rx:r.labelBgBorderRadius,ry:r.labelBgBorderRadius},null,12,P_)):Ee("",!0),q("text",Xt(r.$attrs,{ref_key:"el",ref:t,class:"vue-flow__edge-text",y:e.value.height/2,dy:"0.3em",style:r.labelStyle}),[Be(r.$slots,"default",{},()=>[typeof r.label!="string"?(G(),be(ni(r.label),{key:0})):(G(),K(ke,{key:1},[te(ve(r.label),1)],64))])],16,Q_)],8,k_))}}),C_=["id","d","marker-end","marker-start"],E_=["d","stroke-width"],M_={name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3}},ol=Oe({...M_,props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(n,{expose:e}){const t=ae(null),i=ae(null),s=ae(null),r=qc();return e({pathEl:t,interactionEl:i,labelEl:s}),(o,a)=>(G(),K(ke,null,[q("path",Xt($(r),{id:o.id,ref_key:"pathEl",ref:t,d:o.path,class:"vue-flow__edge-path","marker-end":o.markerEnd,"marker-start":o.markerStart}),null,16,C_),o.interactionWidth?(G(),K("path",{key:0,ref_key:"interactionEl",ref:i,fill:"none",d:o.path,"stroke-width":o.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,E_)):Ee("",!0),o.label&&o.labelX&&o.labelY?(G(),be(A_,{key:1,ref_key:"labelEl",ref:s,x:o.labelX,y:o.labelY,label:o.label,"label-show-bg":o.labelShowBg,"label-bg-style":o.labelBgStyle,"label-bg-padding":o.labelBgPadding,"label-bg-border-radius":o.labelBgBorderRadius,"label-style":o.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):Ee("",!0)],64))}});function _g({sourceX:n,sourceY:e,targetX:t,targetY:i}){const s=Math.abs(t-n)/2,r=t=0?.5*n:e*25*Math.sqrt(-n)}function Rd({pos:n,x1:e,y1:t,x2:i,y2:s,c:r}){let o,a;switch(n){case ce.Left:o=e-uo(e-i,r),a=t;break;case ce.Right:o=e+uo(i-e,r),a=t;break;case ce.Top:o=e,a=t-uo(t-s,r);break;case ce.Bottom:o=e,a=t+uo(s-t,r);break}return[o,a]}function kg(n){const{sourceX:e,sourceY:t,sourcePosition:i=ce.Bottom,targetX:s,targetY:r,targetPosition:o=ce.Top,curvature:a=.25}=n,[l,u]=Rd({pos:i,x1:e,y1:t,x2:s,y2:r,c:a}),[c,h]=Rd({pos:o,x1:s,y1:r,x2:e,y2:t,c:a}),[d,f,p,m]=$g({sourceX:e,sourceY:t,targetX:s,targetY:r,sourceControlX:l,sourceControlY:u,targetControlX:c,targetControlY:h});return[`M${e},${t} C${l},${u} ${c},${h} ${s},${r}`,d,f,p,m]}function Zd({pos:n,x1:e,y1:t,x2:i,y2:s}){let r,o;switch(n){case ce.Left:case ce.Right:r=.5*(e+i),o=t;break;case ce.Top:case ce.Bottom:r=e,o=.5*(t+s);break}return[r,o]}function Pg(n){const{sourceX:e,sourceY:t,sourcePosition:i=ce.Bottom,targetX:s,targetY:r,targetPosition:o=ce.Top}=n,[a,l]=Zd({pos:i,x1:e,y1:t,x2:s,y2:r}),[u,c]=Zd({pos:o,x1:s,y1:r,x2:e,y2:t}),[h,d,f,p]=$g({sourceX:e,sourceY:t,targetX:s,targetY:r,sourceControlX:a,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${t} C${a},${l} ${u},${c} ${s},${r}`,h,d,f,p]}const Dd={[ce.Left]:{x:-1,y:0},[ce.Right]:{x:1,y:0},[ce.Top]:{x:0,y:-1},[ce.Bottom]:{x:0,y:1}};function R_({source:n,sourcePosition:e=ce.Bottom,target:t}){return e===ce.Left||e===ce.Right?n.xn[h]?-1:1)*w:y[h]=(u[h]>t[h]?-1:1)*w}}if(e!==i){const j=h==="x"?"y":"x",w=o[h]===a[j],R=l[j]>u[j],_=l[j]=C?(p=(P.x+B.x)/2,m=f[0].y):(p=f[0].x,m=(P.y+B.y)/2)}return[[n,{x:l.x+O.x,y:l.y+O.y},...f,{x:u.x+y.x,y:u.y+y.y},t],p,m,g,k]}function D_(n,e,t,i){const s=Math.min(Nd(n,e)/2,Nd(e,t)/2,i),{x:r,y:o}=e;if(n.x===r&&r===t.x||n.y===o&&o===t.y)return`L${r} ${o}`;if(n.y===o){const u=n.x{let g;return v>0&&v{const[t,i,s]=N_(n);return Ie(ol,{path:t,labelX:i,labelY:s,...e,...n})}}}),L_=I_,z_=Oe({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(n,{attrs:e}){return()=>{const[t,i,s]=Xu({...n,sourcePosition:n.sourcePosition??ce.Bottom,targetPosition:n.targetPosition??ce.Top});return Ie(ol,{path:t,labelX:i,labelY:s,...e,...n})}}}),Qg=z_,V_=Oe({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(n,{attrs:e}){return()=>Ie(Qg,{...n,...e,borderRadius:0})}}),X_=V_,B_=Oe({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(n,{attrs:e}){return()=>{const[t,i,s]=kg({...n,sourcePosition:n.sourcePosition??ce.Bottom,targetPosition:n.targetPosition??ce.Top});return Ie(ol,{path:t,labelX:i,labelY:s,...e,...n})}}}),U_=B_,j_=Oe({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(n,{attrs:e}){return()=>{const[t,i,s]=Pg({...n,sourcePosition:n.sourcePosition??ce.Bottom,targetPosition:n.targetPosition??ce.Top});return Ie(ol,{path:t,labelX:i,labelY:s,...e,...n})}}}),W_=j_,q_={input:$_,default:S_,output:__},Y_={default:U_,straight:L_,step:X_,smoothstep:Qg,simplebezier:W_};function G_(n,e,t){const i=pe(()=>m=>e.value.get(m)),s=pe(()=>m=>t.value.get(m)),r=pe(()=>{const m={...Y_,...n.edgeTypes},O=Object.keys(m);for(const y of n.edges)y.type&&!O.includes(y.type)&&(m[y.type]=y.type);return m}),o=pe(()=>{const m={...q_,...n.nodeTypes},O=Object.keys(m);for(const y of n.nodes)y.type&&!O.includes(y.type)&&(m[y.type]=y.type);return m}),a=pe(()=>n.onlyRenderVisibleElements?cg(n.nodes,{x:0,y:0,width:n.dimensions.width,height:n.dimensions.height},n.viewport,!0):n.nodes),l=pe(()=>{if(n.onlyRenderVisibleElements){const m=[];for(const O of n.edges){const y=e.value.get(O.source),b=e.value.get(O.target);YS({sourcePos:y.computedPosition||{x:0,y:0},targetPos:b.computedPosition||{x:0,y:0},sourceWidth:y.dimensions.width,sourceHeight:y.dimensions.height,targetWidth:b.dimensions.width,targetHeight:b.dimensions.height,width:n.dimensions.width,height:n.dimensions.height,viewport:n.viewport})&&m.push(O)}return m}return n.edges}),u=pe(()=>[...a.value,...l.value]),c=pe(()=>{const m=[];for(const O of n.nodes)O.selected&&m.push(O);return m}),h=pe(()=>{const m=[];for(const O of n.edges)O.selected&&m.push(O);return m}),d=pe(()=>[...c.value,...h.value]),f=pe(()=>{const m=[];for(const O of n.nodes)O.dimensions.width&&O.dimensions.height&&O.handleBounds!==void 0&&m.push(O);return m}),p=pe(()=>a.value.length>0&&f.value.length===a.value.length);return{getNode:i,getEdge:s,getElements:u,getEdgeTypes:r,getNodeTypes:o,getEdges:l,getNodes:a,getSelectedElements:d,getSelectedNodes:c,getSelectedEdges:h,getNodesInitialized:f,areNodesInitialized:p}}class ki{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var e;const t=(e=Br())==null?void 0:e.appContext.app,i=(t==null?void 0:t.config.globalProperties.$vueFlowStorage)??ki.instance;return ki.instance=i??new ki,t&&(t.config.globalProperties.$vueFlowStorage=ki.instance),ki.instance}set(e,t){return this.flows.set(e,t)}get(e){return this.flows.get(e)}remove(e){return this.flows.delete(e)}create(e,t){const i=Sg(),s=ra(i),r={};for(const[d,f]of Object.entries(s.hooks)){const p=`on${d.charAt(0).toUpperCase()+d.slice(1)}`;r[p]=f.on}const o={};for(const[d,f]of Object.entries(s.hooks))o[d]=f.trigger;const a=pe(()=>{const d=new Map;for(const f of s.nodes)d.set(f.id,f);return d}),l=pe(()=>{const d=new Map;for(const f of s.edges)d.set(f.id,f);return d}),u=G_(s,a,l),c=w_(s,a,l);c.setState({...s,...t});const h={...r,...u,...c,...Fv(s),nodeLookup:a,edgeLookup:l,emits:o,id:e,vueFlowVersion:"1.42.1",$destroy:()=>{this.remove(e)}};return this.set(e,h),h}getId(){return`vue-flow-${this.currentId++}`}}function Le(n){const e=ki.getInstance(),t=em(),i=typeof n=="object",s=i?n:{id:n},r=s.id,o=r??(t==null?void 0:t.vueFlowId);let a;if(t){const l=Wn(Md,null);typeof l<"u"&&l!==null&&(!o||l.id===o)&&(a=l)}if(a||o&&(a=e.get(o)),!a||o&&a.id!==o){const l=r??e.getId(),u=e.create(l,s);a=u,(t??tm(!0)).run(()=>{Qe(u.applyDefault,(h,d,f)=>{const p=O=>{u.applyNodeChanges(O)},m=O=>{u.applyEdgeChanges(O)};h?(u.onNodesChange(p),u.onEdgesChange(m)):(u.hooks.value.nodesChange.off(p),u.hooks.value.edgesChange.off(m)),f(()=>{u.hooks.value.nodesChange.off(p),u.hooks.value.edgesChange.off(m)})},{immediate:!0}),Wa(()=>{if(a){const h=e.get(a.id);h?h.$destroy():el(`No store instance found for id ${a.id} in storage.`)}})})}else i&&a.setState(s);if(t&&(Bi(Md,a),t.vueFlowId=a.id),i){const l=Br();(l==null?void 0:l.type.name)!=="VueFlow"&&a.emits.error(new lt(st.USEVUEFLOW_OPTIONS))}return a}function H_(n){const{emits:e,dimensions:t}=Le();let i;St(()=>{const s=n.value,r=()=>{if(!s)return;const o=Fa(s);(o.width===0||o.height===0)&&e.error(new lt(st.MISSING_VIEWPORT_DIMENSIONS)),t.value={width:o.width||500,height:o.height||500}};r(),window.addEventListener("resize",r),s&&(i=new ResizeObserver(()=>r()),i.observe(s)),im(()=>{window.removeEventListener("resize",r),i&&s&&i.unobserve(s)})})}const F_={name:"UserSelection",compatConfig:{MODE:3}},K_=Oe({...F_,props:{userSelectionRect:{}},setup(n){return(e,t)=>(G(),K("div",{class:"vue-flow__selection vue-flow__container",style:gt({width:`${e.userSelectionRect.width}px`,height:`${e.userSelectionRect.height}px`,transform:`translate(${e.userSelectionRect.x}px, ${e.userSelectionRect.y}px)`})},null,4))}}),J_=["tabIndex"],e$={name:"NodesSelection",compatConfig:{MODE:3}},t$=Oe({...e$,setup(n){const{emits:e,viewport:t,getSelectedNodes:i,noPanClassName:s,disableKeyboardA11y:r,userSelectionActive:o}=Le(),a=xg(),l=ae(null),u=yg({el:l,onStart(p){e.selectionDragStart(p)},onDrag(p){e.selectionDrag(p)},onStop(p){e.selectionDragStop(p)}});St(()=>{var p;r.value||(p=l.value)==null||p.focus({preventScroll:!0})});const c=pe(()=>Ka(i.value)),h=pe(()=>({width:`${c.value.width}px`,height:`${c.value.height}px`,top:`${c.value.y}px`,left:`${c.value.x}px`}));function d(p){e.selectionContextMenu({event:p,nodes:i.value})}function f(p){r||ds[p.key]&&(p.preventDefault(),a({x:ds[p.key].x,y:ds[p.key].y},p.shiftKey))}return(p,m)=>!$(o)&&c.value.width&&c.value.height?(G(),K("div",{key:0,class:Ge(["vue-flow__nodesselection vue-flow__container",$(s)]),style:gt({transform:`translate(${$(t).x}px,${$(t).y}px) scale(${$(t).zoom})`})},[q("div",{ref_key:"el",ref:l,class:Ge([{dragging:$(u)},"vue-flow__nodesselection-rect"]),style:gt(h.value),tabIndex:$(r)?void 0:-1,onContextmenu:d,onKeydown:f},null,46,J_)],6)):Ee("",!0)}});function n$(n,e){return{x:n.clientX-e.left,y:n.clientY-e.top}}const i$={name:"Pane",compatConfig:{MODE:3}},s$=Oe({...i$,props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(n){const{vueFlowRef:e,nodes:t,viewport:i,emits:s,userSelectionActive:r,removeSelectedElements:o,userSelectionRect:a,elementsSelectable:l,nodesSelectionActive:u,getSelectedEdges:c,getSelectedNodes:h,removeNodes:d,removeEdges:f,selectionMode:p,deleteKeyCode:m,multiSelectionKeyCode:O,multiSelectionActive:y,edgeLookup:b,nodeLookup:v,connectionLookup:g,defaultEdgeOptions:k}=Le(),S=ae(null),Q=ae(new Set),T=ae(new Set),P=ae(),B=Me(()=>l.value&&(n.isSelecting||r.value));let W=!1,C=!1;const j=gr(m,{actInsideInputWithModifier:!1}),w=gr(O);Qe(j,E=>{E&&(d(h.value),f(c.value),u.value=!1)}),Qe(w,E=>{y.value=E});function R(E,X){return H=>{H.target===X&&(E==null||E(H))}}function _(E){if(W){W=!1;return}s.paneClick(E),o(),u.value=!1}function D(E){E.preventDefault(),E.stopPropagation(),s.paneContextMenu(E)}function N(E){s.paneScroll(E)}function U(E){var X,H,J;if(P.value=(X=e.value)==null?void 0:X.getBoundingClientRect(),!l.value||!n.isSelecting||E.button!==0||E.target!==S.value||!P.value)return;(J=(H=E.target)==null?void 0:H.setPointerCapture)==null||J.call(H,E.pointerId);const{x:me,y:oe}=n$(E,P.value);C=!0,W=!1,o(),a.value={width:0,height:0,startX:me,startY:oe,x:me,y:oe},s.selectionStart(E)}function V(E){var X;if(!P.value||!a.value)return;W=!0;const{x:H,y:J}=ui(E,P.value),{startX:me=0,startY:oe=0}=a.value,xe={startX:me,startY:oe,x:Hle.id)),T.value=new Set;const he=((X=k.value)==null?void 0:X.selectable)??!0;for(const le of Q.value){const we=g.value.get(le);if(we)for(const{edgeId:Z}of we.values()){const M=b.value.get(Z);M&&(M.selectable??he)&&T.value.add(Z)}}if(!Ed(ye,Q.value)){const le=Kn(v.value,Q.value,!0);s.nodesChange(le)}if(!Ed(Re,T.value)){const le=Kn(b.value,T.value);s.edgesChange(le)}a.value=xe,r.value=!0,u.value=!1}function Y(E){var X;E.button!==0||!C||((X=E.target)==null||X.releasePointerCapture(E.pointerId),!r.value&&a.value&&E.target===S.value&&_(E),r.value=!1,a.value=null,u.value=Q.value.size>0,s.selectionEnd(E),n.selectionKeyPressed&&(W=!1),C=!1)}return(E,X)=>(G(),K("div",{ref_key:"container",ref:S,class:Ge(["vue-flow__pane vue-flow__container",{selection:E.isSelecting}]),onClick:X[0]||(X[0]=H=>B.value?void 0:R(_,S.value)(H)),onContextmenu:X[1]||(X[1]=H=>R(D,S.value)(H)),onWheelPassive:X[2]||(X[2]=H=>R(N,S.value)(H)),onPointerenter:X[3]||(X[3]=H=>B.value?void 0:$(s).paneMouseEnter(H)),onPointerdown:X[4]||(X[4]=H=>B.value?U(H):$(s).paneMouseMove(H)),onPointermove:X[5]||(X[5]=H=>B.value?V(H):$(s).paneMouseMove(H)),onPointerup:X[6]||(X[6]=H=>B.value?Y(H):void 0),onPointerleave:X[7]||(X[7]=H=>$(s).paneMouseLeave(H))},[Be(E.$slots,"default"),$(r)&&$(a)?(G(),be(K_,{key:0,"user-selection-rect":$(a)},null,8,["user-selection-rect"])):Ee("",!0),$(u)&&$(h).length?(G(),be(t$,{key:1})):Ee("",!0)],34))}}),r$={name:"Transform",compatConfig:{MODE:3}},o$=Oe({...r$,setup(n){const{viewport:e,fitViewOnInit:t,fitViewOnInitDone:i}=Le(),s=pe(()=>t.value?!i.value:!1),r=pe(()=>`translate(${e.value.x}px,${e.value.y}px) scale(${e.value.zoom})`);return(o,a)=>(G(),K("div",{class:"vue-flow__transformationpane vue-flow__container",style:gt({transform:r.value,opacity:s.value?0:void 0})},[Be(o.$slots,"default")],4))}}),a$={name:"Viewport",compatConfig:{MODE:3}},l$=Oe({...a$,setup(n){const{minZoom:e,maxZoom:t,defaultViewport:i,translateExtent:s,zoomActivationKeyCode:r,selectionKeyCode:o,panActivationKeyCode:a,panOnScroll:l,panOnScrollMode:u,panOnScrollSpeed:c,panOnDrag:h,zoomOnDoubleClick:d,zoomOnPinch:f,zoomOnScroll:p,preventScrolling:m,noWheelClassName:O,noPanClassName:y,emits:b,connectionStartHandle:v,userSelectionActive:g,paneDragging:k,d3Zoom:S,d3Selection:Q,d3ZoomHandler:T,viewport:P,viewportRef:B,paneClickDistance:W}=Le();H_(B);const C=ae(!1),j=ae(!1);let w=null,R=!1,_=0,D={x:0,y:0,zoom:0};const N=gr(a),U=gr(o),V=gr(r),Y=Me(()=>(!U.value||U.value&&o.value===!0)&&(N.value||h.value)),E=Me(()=>N.value||l.value),X=Me(()=>U.value||o.value===!0&&Y.value!==!0);St(()=>{if(!B.value){el("Viewport element is missing");return}const ye=B.value,Re=ye.getBoundingClientRect(),he=ES().clickDistance(W.value).scaleExtent([e.value,t.value]).translateExtent(s.value),le=Gt(ye).call(he),we=le.on("wheel.zoom"),Z=_s.translate(i.value.x??0,i.value.y??0).scale(Bn(i.value.zoom??1,e.value,t.value)),M=[[0,0],[Re.width,Re.height]],z=he.constrain()(Z,M,s.value);he.transform(le,z),he.wheelDelta(J),S.value=he,Q.value=le,T.value=we,P.value={x:z.x,y:z.y,zoom:z.k},he.on("start",L=>{var F;if(!L.sourceEvent)return null;_=L.sourceEvent.button,C.value=!0;const ue=oe(L.transform);((F=L.sourceEvent)==null?void 0:F.type)==="mousedown"&&(k.value=!0),D=ue,b.viewportChangeStart(ue),b.moveStart({event:L,flowTransform:ue})}),he.on("end",L=>{if(!L.sourceEvent)return null;if(C.value=!1,k.value=!1,H(Y.value,_??0)&&!R&&b.paneContextMenu(L.sourceEvent),R=!1,me(D,L.transform)){const F=oe(L.transform);D=F,b.viewportChangeEnd(F),b.moveEnd({event:L,flowTransform:F})}}),he.filter(L=>{var F;const ue=V.value||p.value,de=f.value&&L.ctrlKey,fe=L.button;if(fe===1&&L.type==="mousedown"&&(xe(L,"vue-flow__node")||xe(L,"vue-flow__edge")))return!0;if(!Y.value&&!ue&&!E.value&&!d.value&&!f.value||g.value||!d.value&&L.type==="dblclick"||xe(L,O.value)&&L.type==="wheel"||xe(L,y.value)&&(L.type!=="wheel"||E.value&&L.type==="wheel"&&!V.value)||!f.value&&L.ctrlKey&&L.type==="wheel"||!ue&&!E.value&&!de&&L.type==="wheel")return!1;if(!f&&L.type==="touchstart"&&((F=L.touches)==null?void 0:F.length)>1)return L.preventDefault(),!1;if(!Y.value&&(L.type==="mousedown"||L.type==="touchstart")||o.value===!0&&Array.isArray(h.value)&&h.value.includes(0)&&fe===0||Array.isArray(h.value)&&!h.value.includes(fe)&&(L.type==="mousedown"||L.type==="touchstart"))return!1;const Se=Array.isArray(h.value)&&h.value.includes(fe)||o.value===!0&&Array.isArray(h.value)&&!h.value.includes(0)||!fe||fe<=1;return(!L.ctrlKey||N.value||L.type==="wheel")&&Se}),Qe([g,Y],()=>{g.value&&!C.value?he.on("zoom",null):g.value||he.on("zoom",L=>{P.value={x:L.transform.x,y:L.transform.y,zoom:L.transform.k};const F=oe(L.transform);R=H(Y.value,_??0),b.viewportChange(F),b.move({event:L,flowTransform:F})})},{immediate:!0}),Qe([g,E,u,V,f,m,O],()=>{E.value&&!V.value&&!g.value?le.on("wheel.zoom",L=>{if(xe(L,O.value))return!1;const F=V.value||p.value,ue=f.value&&L.ctrlKey;if(!(!m.value||E.value||F||ue))return!1;L.preventDefault(),L.stopImmediatePropagation();const fe=le.property("__zoom").k||1,Se=ya();if(!N.value&&L.ctrlKey&&f.value&&Se){const Is=dn(L),Iy=J(L),Ly=fe*2**Iy;he.scaleTo(le,Ly,Is,L);return}const Ae=L.deltaMode===1?20:1;let Ce=u.value===mr.Vertical?0:L.deltaX*Ae,qe=u.value===mr.Horizontal?0:L.deltaY*Ae;!Se&&L.shiftKey&&u.value!==mr.Vertical&&!Ce&&qe&&(Ce=qe,qe=0),he.translateBy(le,-(Ce/fe)*c.value,-(qe/fe)*c.value);const an=oe(le.property("__zoom"));w&&clearTimeout(w),j.value?(b.move({event:L,flowTransform:an}),b.viewportChange(an),w=setTimeout(()=>{b.moveEnd({event:L,flowTransform:an}),b.viewportChangeEnd(an),j.value=!1},150)):(j.value=!0,b.moveStart({event:L,flowTransform:an}),b.viewportChangeStart(an))},{passive:!1}):typeof we<"u"&&le.on("wheel.zoom",function(L,F){const ue=!m.value&&L.type==="wheel"&&!L.ctrlKey,de=V.value||p.value,fe=f.value&&L.ctrlKey;if(!de&&!l.value&&!fe&&L.type==="wheel"||ue||xe(L,O.value))return null;L.preventDefault(),we.call(this,L,F)},{passive:!1})},{immediate:!0})});function H(ye,Re){return Re===2&&Array.isArray(ye)&&ye.includes(2)}function J(ye){const Re=ye.ctrlKey&&ya()?10:1;return-ye.deltaY*(ye.deltaMode===1?.05:ye.deltaMode?1:.002)*Re}function me(ye,Re){return ye.x!==Re.x&&!Number.isNaN(Re.x)||ye.y!==Re.y&&!Number.isNaN(Re.y)||ye.zoom!==Re.k&&!Number.isNaN(Re.k)}function oe(ye){return{x:ye.x,y:ye.y,zoom:ye.k}}function xe(ye,Re){return ye.target.closest(`.${Re}`)}return(ye,Re)=>(G(),K("div",{ref_key:"viewportRef",ref:B,class:"vue-flow__viewport vue-flow__container"},[x(s$,{"is-selecting":X.value,"selection-key-pressed":$(U),class:Ge({connecting:!!$(v),dragging:$(k),draggable:$(h)===!0||Array.isArray($(h))&&$(h).includes(0)})},{default:A(()=>[x(o$,null,{default:A(()=>[Be(ye.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),u$=["id"],c$=["id"],h$=["id"],d$={name:"A11yDescriptions",compatConfig:{MODE:3}},f$=Oe({...d$,setup(n){const{id:e,disableKeyboardA11y:t,ariaLiveMessage:i}=Le();return(s,r)=>(G(),K(ke,null,[q("div",{id:`${$(tg)}-${$(e)}`,style:{display:"none"}}," Press enter or space to select a node. "+ve($(t)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,u$),q("div",{id:`${$(ng)}-${$(e)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,c$),$(t)?Ee("",!0):(G(),K("div",{key:0,id:`${$(DS)}-${$(e)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},ve($(i)),9,h$))],64))}});function p$(){const n=Le();Qe(()=>n.viewportHelper.value.viewportInitialized,e=>{e&&setTimeout(()=>{n.emits.init(n),n.emits.paneReady(n)},1)})}function m$(n,e,t){return t===ce.Left?n-e:t===ce.Right?n+e:n}function g$(n,e,t){return t===ce.Top?n-e:t===ce.Bottom?n+e:n}const rh=function({radius:n=10,centerX:e=0,centerY:t=0,position:i=ce.Top,type:s}){return Ie("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${s}`,cx:m$(e,n,i),cy:g$(t,n,i),r:n,stroke:"transparent",fill:"transparent"})};rh.props=["radius","centerX","centerY","position","type"];rh.compatConfig={MODE:3};const Id=rh,O$=Oe({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(n){const{id:e,addSelectedEdges:t,connectionMode:i,edgeUpdaterRadius:s,emits:r,nodesSelectionActive:o,noPanClassName:a,getEdgeTypes:l,removeSelectedEdges:u,findEdge:c,findNode:h,isValidConnection:d,multiSelectionActive:f,disableKeyboardA11y:p,elementsSelectable:m,edgesUpdatable:O,edgesFocusable:y,hooks:b}=Le(),v=pe(()=>c(n.id)),{emit:g,on:k}=c_(v.value,r),S=Wn(nl),Q=Br(),T=ae(!1),P=ae(!1),B=ae(""),W=ae(null),C=ae("source"),j=ae(null),w=Me(()=>typeof v.value.selectable>"u"?m.value:v.value.selectable),R=Me(()=>typeof v.value.updatable>"u"?O.value:v.value.updatable),_=Me(()=>typeof v.value.focusable>"u"?y.value:v.value.focusable);Bi(a_,n.id),Bi(l_,j);const D=pe(()=>v.value.class instanceof Function?v.value.class(v.value):v.value.class),N=pe(()=>v.value.style instanceof Function?v.value.style(v.value):v.value.style),U=pe(()=>{const M=v.value.type||"default",z=S==null?void 0:S[`edge-${M}`];if(z)return z;let L=v.value.template??l.value[M];if(typeof L=="string"&&Q){const F=Object.keys(Q.appContext.components);F&&F.includes(M)&&(L=ie(M,!1))}return L&&typeof L!="string"?L:(r.error(new lt(st.EDGE_TYPE_MISSING,L)),!1)}),{handlePointerDown:V}=wg({nodeId:B,handleId:W,type:C,isValidConnection:d,edgeUpdaterType:C,onEdgeUpdate:X,onEdgeUpdateEnd:H});return()=>{const M=h(v.value.source),z=h(v.value.target),L="pathOptions"in v.value?v.value.pathOptions:{};if(!M&&!z)return r.error(new lt(st.EDGE_SOURCE_TARGET_MISSING,v.value.id,v.value.source,v.value.target)),null;if(!M)return r.error(new lt(st.EDGE_SOURCE_MISSING,v.value.id,v.value.source)),null;if(!z)return r.error(new lt(st.EDGE_TARGET_MISSING,v.value.id,v.value.target)),null;if(!v.value||v.value.hidden||M.hidden||z.hidden)return null;let F;i.value===ci.Strict?F=M.handleBounds.source:F=[...M.handleBounds.source||[],...M.handleBounds.target||[]];const ue=kd(F,v.value.sourceHandle);let de;i.value===ci.Strict?de=z.handleBounds.target:de=[...z.handleBounds.target||[],...z.handleBounds.source||[]];const fe=kd(de,v.value.targetHandle),Se=(ue==null?void 0:ue.position)||ce.Bottom,Ae=(fe==null?void 0:fe.position)||ce.Top,{x:Ce,y:qe}=$s(M,ue,Se),{x:an,y:Is}=$s(z,fe,Ae);return v.value.sourceX=Ce,v.value.sourceY=qe,v.value.targetX=an,v.value.targetY=Is,Ie("g",{ref:j,key:n.id,"data-id":n.id,class:["vue-flow__edge",`vue-flow__edge-${U.value===!1?"default":v.value.type||"default"}`,a.value,D.value,{updating:T.value,selected:v.value.selected,animated:v.value.animated,inactive:!w.value&&!b.value.edgeClick.hasListeners()}],onClick:me,onContextmenu:oe,onDblclick:xe,onMouseenter:ye,onMousemove:Re,onMouseleave:he,onKeyDown:_.value?Z:void 0,tabIndex:_.value?0:void 0,"aria-label":v.value.ariaLabel===null?void 0:v.value.ariaLabel||`Edge from ${v.value.source} to ${v.value.target}`,"aria-describedby":_.value?`${ng}-${e}`:void 0,role:_.value?"button":"img"},[P.value?null:Ie(U.value===!1?l.value.default:U.value,{id:n.id,sourceNode:M,targetNode:z,source:v.value.source,target:v.value.target,type:v.value.type,updatable:R.value,selected:v.value.selected,animated:v.value.animated,label:v.value.label,labelStyle:v.value.labelStyle,labelShowBg:v.value.labelShowBg,labelBgStyle:v.value.labelBgStyle,labelBgPadding:v.value.labelBgPadding,labelBgBorderRadius:v.value.labelBgBorderRadius,data:v.value.data,events:{...v.value.events,...k},style:N.value,markerStart:`url('#${Pr(v.value.markerStart,e)}')`,markerEnd:`url('#${Pr(v.value.markerEnd,e)}')`,sourcePosition:Se,targetPosition:Ae,sourceX:Ce,sourceY:qe,targetX:an,targetY:Is,sourceHandleId:v.value.sourceHandle,targetHandleId:v.value.targetHandle,interactionWidth:v.value.interactionWidth,...L}),[R.value==="source"||R.value===!0?[Ie("g",{onMousedown:le,onMouseenter:Y,onMouseout:E},Ie(Id,{position:Se,centerX:Ce,centerY:qe,radius:s.value,type:"source","data-type":"source"}))]:null,R.value==="target"||R.value===!0?[Ie("g",{onMousedown:we,onMouseenter:Y,onMouseout:E},Ie(Id,{position:Ae,centerX:an,centerY:Is,radius:s.value,type:"target","data-type":"target"}))]:null]])};function Y(){T.value=!0}function E(){T.value=!1}function X(M,z){g.update({event:M,edge:v.value,connection:z})}function H(M){g.updateEnd({event:M,edge:v.value}),P.value=!1}function J(M,z){M.button===0&&(P.value=!0,B.value=z?v.value.target:v.value.source,W.value=(z?v.value.targetHandle:v.value.sourceHandle)??"",C.value=z?"target":"source",g.updateStart({event:M,edge:v.value}),V(M))}function me(M){var z;const L={event:M,edge:v.value};w.value&&(o.value=!1,v.value.selected&&f.value?(u([v.value]),(z=j.value)==null||z.blur()):t([v.value])),g.click(L)}function oe(M){g.contextMenu({event:M,edge:v.value})}function xe(M){g.doubleClick({event:M,edge:v.value})}function ye(M){g.mouseEnter({event:M,edge:v.value})}function Re(M){g.mouseMove({event:M,edge:v.value})}function he(M){g.mouseLeave({event:M,edge:v.value})}function le(M){J(M,!0)}function we(M){J(M,!1)}function Z(M){var z;!p.value&&ig.includes(M.key)&&w.value&&(M.key==="Escape"?((z=j.value)==null||z.blur(),u([c(n.id)])):t([c(n.id)]))}}}),y$=O$,v$=Oe({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var n;const{id:e,connectionMode:t,connectionStartHandle:i,connectionEndHandle:s,connectionPosition:r,connectionLineType:o,connectionLineStyle:a,connectionLineOptions:l,connectionStatus:u,viewport:c,findNode:h}=Le(),d=(n=Wn(nl))==null?void 0:n["connection-line"],f=pe(()=>{var b;return h((b=i.value)==null?void 0:b.nodeId)}),p=pe(()=>{var b;return h((b=s.value)==null?void 0:b.nodeId)??null}),m=pe(()=>({x:(r.value.x-c.value.x)/c.value.zoom,y:(r.value.y-c.value.y)/c.value.zoom})),O=pe(()=>l.value.markerStart?`url(#${Pr(l.value.markerStart,e)})`:""),y=pe(()=>l.value.markerEnd?`url(#${Pr(l.value.markerEnd,e)})`:"");return()=>{var b,v,g;if(!f.value||!i.value)return null;const k=i.value.id,S=i.value.type,Q=f.value.handleBounds;let T=(Q==null?void 0:Q[S])||[];if(t.value===ci.Loose){const N=(Q==null?void 0:Q[S==="source"?"target":"source"])||[];T=[...T,...N]}if(!T)return null;const P=(k?T.find(N=>N.id===k):T[0])??null,B=(P==null?void 0:P.position)||ce.Top,{x:W,y:C}=$s(f.value,P,B);let j=null;p.value&&(t.value===ci.Strict?j=((b=p.value.handleBounds[S==="source"?"target":"source"])==null?void 0:b.find(N=>{var U;return N.id===((U=s.value)==null?void 0:U.id)}))||null:j=((v=[...p.value.handleBounds.source||[],...p.value.handleBounds.target||[]])==null?void 0:v.find(N=>{var U;return N.id===((U=s.value)==null?void 0:U.id)}))||null);const w=((g=s.value)==null?void 0:g.position)??(B?zu[B]:null);if(!B||!w)return null;const R=o.value??l.value.type??_i.Bezier;let _="";const D={sourceX:W,sourceY:C,sourcePosition:B,targetX:m.value.x,targetY:m.value.y,targetPosition:w};return R===_i.Bezier?[_]=kg(D):R===_i.Step?[_]=Xu({...D,borderRadius:0}):R===_i.SmoothStep?[_]=Xu(D):R===_i.SimpleBezier?[_]=Pg(D):_=`M${W},${C} ${m.value.x},${m.value.y}`,Ie("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},Ie("g",{class:"vue-flow__connection"},d?Ie(d,{sourceX:W,sourceY:C,sourcePosition:B,targetX:m.value.x,targetY:m.value.y,targetPosition:w,sourceNode:f.value,sourceHandle:P,targetNode:p.value,targetHandle:j,markerEnd:y.value,markerStart:O.value,connectionStatus:u.value}):Ie("path",{d:_,class:[l.value.class,u,"vue-flow__connection-path"],style:{...a.value,...l.value.style},"marker-end":y.value,"marker-start":O.value})))}}}),w$=v$,b$=["id","markerWidth","markerHeight","markerUnits","orient"],x$={name:"MarkerType",compatConfig:{MODE:3}},S$=Oe({...x$,props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(n){return(e,t)=>(G(),K("marker",{id:e.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${e.width}`,markerHeight:`${e.height}`,markerUnits:e.markerUnits,orient:e.orient},[e.type===$(Nu).ArrowClosed?(G(),K("polyline",{key:0,style:gt({stroke:e.color,fill:e.color,strokeWidth:e.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):Ee("",!0),e.type===$(Nu).Arrow?(G(),K("polyline",{key:1,style:gt({stroke:e.color,strokeWidth:e.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):Ee("",!0)],8,b$))}}),_$={class:"vue-flow__marker vue-flow__container"},$$={name:"MarkerDefinitions",compatConfig:{MODE:3}},k$=Oe({...$$,setup(n){const{id:e,edges:t,connectionLineOptions:i,defaultMarkerColor:s}=Le(),r=pe(()=>{const o=new Set,a=[],l=u=>{if(u){const c=Pr(u,e);o.has(c)||(typeof u=="object"?a.push({...u,id:c,color:u.color||s.value}):a.push({id:c,color:s.value,type:u}),o.add(c))}};for(const u of[i.value.markerEnd,i.value.markerStart])l(u);for(const u of t.value)for(const c of[u.markerStart,u.markerEnd])l(c);return a.sort((u,c)=>u.id.localeCompare(c.id))});return(o,a)=>(G(),K("svg",_$,[q("defs",null,[(G(!0),K(ke,null,Xe(r.value,l=>(G(),be(S$,{id:l.id,key:l.id,type:l.type,color:l.color,width:l.width,height:l.height,markerUnits:l.markerUnits,"stroke-width":l.strokeWidth,orient:l.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),P$={name:"Edges",compatConfig:{MODE:3}},Q$=Oe({...P$,setup(n){const{findNode:e,getEdges:t,elevateEdgesOnSelect:i}=Le();return(s,r)=>(G(),K(ke,null,[x(k$),(G(!0),K(ke,null,Xe($(t),o=>(G(),K("svg",{key:o.id,class:"vue-flow__edges vue-flow__container",style:gt({zIndex:$(GS)(o,$(e),$(i))})},[x($(y$),{id:o.id},null,8,["id"])],4))),128)),x($(w$))],64))}}),T$=Oe({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(n){const{id:e,noPanClassName:t,selectNodesOnDrag:i,nodesSelectionActive:s,multiSelectionActive:r,emits:o,removeSelectedNodes:a,addSelectedNodes:l,updateNodeDimensions:u,onUpdateNodeInternals:c,getNodeTypes:h,nodeExtent:d,elevateNodesOnSelect:f,disableKeyboardA11y:p,ariaLiveMessage:m,snapToGrid:O,snapGrid:y,nodeDragThreshold:b,nodesDraggable:v,elementsSelectable:g,nodesConnectable:k,nodesFocusable:S,hooks:Q}=Le(),T=ae(null);Bi(Og,T),Bi(tl,n.id);const P=Wn(nl),B=Br(),W=xg(),{node:C,parentNode:j}=bg(n.id),{emit:w,on:R}=f_(C,o),_=Me(()=>typeof C.draggable>"u"?v.value:C.draggable),D=Me(()=>typeof C.selectable>"u"?g.value:C.selectable),N=Me(()=>typeof C.connectable>"u"?k.value:C.connectable),U=Me(()=>typeof C.focusable>"u"?S.value:C.focusable),V=Me(()=>D.value||_.value||Q.value.nodeClick.hasListeners()||Q.value.nodeDoubleClick.hasListeners()||Q.value.nodeMouseEnter.hasListeners()||Q.value.nodeMouseMove.hasListeners()||Q.value.nodeMouseLeave.hasListeners()),Y=Me(()=>!!C.dimensions.width&&!!C.dimensions.height),E=pe(()=>{const z=C.type||"default",L=P==null?void 0:P[`node-${z}`];if(L)return L;let F=C.template||h.value[z];if(typeof F=="string"&&B){const ue=Object.keys(B.appContext.components);ue&&ue.includes(z)&&(F=ie(z,!1))}return F&&typeof F!="string"?F:(o.error(new lt(st.NODE_TYPE_MISSING,F)),!1)}),X=yg({id:n.id,el:T,disabled:()=>!_.value,selectable:D,dragHandle:()=>C.dragHandle,onStart(z){w.dragStart(z)},onDrag(z){w.drag(z)},onStop(z){w.dragStop(z)},onClick(z){Z(z)}}),H=pe(()=>C.class instanceof Function?C.class(C):C.class),J=pe(()=>{const z=(C.style instanceof Function?C.style(C):C.style)||{},L=C.width instanceof Function?C.width(C):C.width,F=C.height instanceof Function?C.height(C):C.height;return!z.width&&L&&(z.width=typeof L=="string"?L:`${L}px`),!z.height&&F&&(z.height=typeof F=="string"?F:`${F}px`),z}),me=Me(()=>Number(C.zIndex??J.value.zIndex??0));return c(z=>{(z.includes(n.id)||!z.length)&&xe()}),St(()=>{Qe(()=>C.hidden,(z=!1,L,F)=>{!z&&T.value&&(n.resizeObserver.observe(T.value),F(()=>{T.value&&n.resizeObserver.unobserve(T.value)}))},{immediate:!0,flush:"post"})}),Qe([()=>C.type,()=>C.sourcePosition,()=>C.targetPosition],()=>{Dn(()=>{u([{id:n.id,nodeElement:T.value,forceUpdate:!0}])})}),Qe([()=>C.position.x,()=>C.position.y,()=>{var z;return(z=j.value)==null?void 0:z.computedPosition.x},()=>{var z;return(z=j.value)==null?void 0:z.computedPosition.y},()=>{var z;return(z=j.value)==null?void 0:z.computedPosition.z},me,()=>C.selected,()=>C.dimensions.height,()=>C.dimensions.width,()=>{var z;return(z=j.value)==null?void 0:z.dimensions.height},()=>{var z;return(z=j.value)==null?void 0:z.dimensions.width}],([z,L,F,ue,de,fe])=>{const Se={x:z,y:L,z:fe+(f.value&&C.selected?1e3:0)};typeof F<"u"&&typeof ue<"u"?C.computedPosition=BS({x:F,y:ue,z:de},Se):C.computedPosition=Se},{flush:"post",immediate:!0}),Qe([()=>C.extent,d],([z,L],[F,ue])=>{(z!==F||L!==ue)&&oe()}),C.extent==="parent"||typeof C.extent=="object"&&"range"in C.extent&&C.extent.range==="parent"?Qu(()=>Y).toBe(!0).then(oe):oe(),()=>C.hidden?null:Ie("div",{ref:T,"data-id":C.id,class:["vue-flow__node",`vue-flow__node-${E.value===!1?"default":C.type||"default"}`,{[t.value]:_.value,dragging:X==null?void 0:X.value,draggable:_.value,selected:C.selected,selectable:D.value,parent:C.isParent},H.value],style:{visibility:Y.value?"visible":"hidden",zIndex:C.computedPosition.z??me.value,transform:`translate(${C.computedPosition.x}px,${C.computedPosition.y}px)`,pointerEvents:V.value?"all":"none",...J.value},tabIndex:U.value?0:void 0,role:U.value?"button":void 0,"aria-describedby":p.value?void 0:`${tg}-${e}`,"aria-label":C.ariaLabel,onMouseenter:ye,onMousemove:Re,onMouseleave:he,onContextmenu:le,onClick:Z,onDblclick:we,onKeydown:M},[Ie(E.value===!1?h.value.default:E.value,{id:C.id,type:C.type,data:C.data,events:{...C.events,...R},selected:C.selected,resizing:C.resizing,dragging:X.value,connectable:N.value,position:C.computedPosition,dimensions:C.dimensions,isValidTargetPos:C.isValidTargetPos,isValidSourcePos:C.isValidSourcePos,parent:C.parentNode,parentNodeId:C.parentNode,zIndex:C.computedPosition.z??me.value,targetPosition:C.targetPosition,sourcePosition:C.sourcePosition,label:C.label,dragHandle:C.dragHandle,onUpdateNodeInternals:xe})]);function oe(){const z=C.computedPosition,{computedPosition:L,position:F}=ih(C,O.value?Ja(z,y.value):z,o.error,d.value,j.value);(C.computedPosition.x!==L.x||C.computedPosition.y!==L.y)&&(C.computedPosition={...C.computedPosition,...L}),(C.position.x!==F.x||C.position.y!==F.y)&&(C.position=F)}function xe(){T.value&&u([{id:n.id,nodeElement:T.value,forceUpdate:!0}])}function ye(z){X!=null&&X.value||w.mouseEnter({event:z,node:C})}function Re(z){X!=null&&X.value||w.mouseMove({event:z,node:C})}function he(z){X!=null&&X.value||w.mouseLeave({event:z,node:C})}function le(z){return w.contextMenu({event:z,node:C})}function we(z){return w.doubleClick({event:z,node:C})}function Z(z){D.value&&(!i.value||!_.value||b.value>0)&&Vu(C,r.value,l,a,s,!1,T.value),w.click({event:z,node:C})}function M(z){if(!(Iu(z)||p.value))if(ig.includes(z.key)&&D.value){const L=z.key==="Escape";Vu(C,r.value,l,a,s,L,T.value)}else _.value&&C.selected&&ds[z.key]&&(z.preventDefault(),m.value=`Moved selected node ${z.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~C.position.x}, y: ${~~C.position.y}`,W({x:ds[z.key].x,y:ds[z.key].y},z.shiftKey))}}}),A$=T$;function C$(n={includeHiddenNodes:!1}){const{nodes:e}=Le();return pe(()=>{if(e.value.length===0)return!1;for(const t of e.value)if((n.includeHiddenNodes||!t.hidden)&&((t==null?void 0:t.handleBounds)===void 0||t.dimensions.width===0||t.dimensions.height===0))return!1;return!0})}const E$={class:"vue-flow__nodes vue-flow__container"},M$={name:"Nodes",compatConfig:{MODE:3}},R$=Oe({...M$,setup(n){const{getNodes:e,updateNodeDimensions:t,emits:i}=Le(),s=C$(),r=ae();return Qe(s,o=>{o&&Dn(()=>{i.nodesInitialized(e.value)})},{immediate:!0}),St(()=>{r.value=new ResizeObserver(o=>{const a=o.map(l=>({id:l.target.getAttribute("data-id"),nodeElement:l.target,forceUpdate:!0}));Dn(()=>t(a))})}),im(()=>{var o;return(o=r.value)==null?void 0:o.disconnect()}),(o,a)=>(G(),K("div",E$,[r.value?(G(!0),K(ke,{key:0},Xe($(e),(l,u,c,h)=>{const d=[l.id];if(h&&h.key===l.id&&Uy(h,d))return h;const f=(G(),be($(A$),{id:l.id,key:l.id,"resize-observer":r.value},null,8,["id","resize-observer"]));return f.memo=d,f},a,0),128)):Ee("",!0)]))}});function Z$(){const{emits:n}=Le();St(()=>{if(gg()){const e=document.querySelector(".vue-flow__pane");e&&window.getComputedStyle(e).zIndex!=="1"&&n.error(new lt(st.MISSING_STYLES))}})}const D$=q("div",{class:"vue-flow__edge-labels"},null,-1),N$={name:"VueFlow",compatConfig:{MODE:3}},I$=Oe({...N$,props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(n,{expose:e,emit:t}){const i=n,s=nm(),r=Pl(i,"modelValue",t),o=Pl(i,"nodes",t),a=Pl(i,"edges",t),l=Le(i),u=g_({modelValue:r,nodes:o,edges:a},i,l);return y_(t,l.hooks),p$(),Z$(),Bi(nl,s),Oi(()=>{u()}),e(l),(c,h)=>(G(),K("div",{ref:$(l).vueFlowRef,class:"vue-flow"},[x(l$,null,{default:A(()=>[x(Q$),D$,x(R$),Be(c.$slots,"zoom-pane")]),_:3}),Be(c.$slots,"default"),x(f$)],512))}}),L$={name:"Panel",compatConfig:{MODE:3}},Tg=Oe({...L$,props:{position:{}},setup(n){const e=n,{userSelectionActive:t}=Le(),i=pe(()=>`${e.position}`.split("-"));return(s,r)=>(G(),K("div",{class:Ge(["vue-flow__panel",i.value]),style:gt({pointerEvents:$(t)?"none":"all"})},[Be(s.$slots,"default")],6))}});var Mn=(n=>(n.Lines="lines",n.Dots="dots",n))(Mn||{});const Ag=function({dimensions:n,size:e,color:t}){return Ie("path",{stroke:t,"stroke-width":e,d:`M${n[0]/2} 0 V${n[1]} M0 ${n[1]/2} H${n[0]}`})},Cg=function({radius:n,color:e}){return Ie("circle",{cx:n,cy:n,r:n,fill:e})};Mn.Lines+"",Mn.Dots+"";const z$={[Mn.Dots]:"#81818a",[Mn.Lines]:"#eee"},V$=["id","x","y","width","height","patternTransform"],X$={key:2,height:"100",width:"100"},B$=["fill"],U$=["x","y","fill"],j$={name:"Background",compatConfig:{MODE:3}},W$=Oe({...j$,props:{id:{},variant:{default:()=>Mn.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(n){const{id:e,viewport:t}=Le(),i=pe(()=>{const o=t.value.zoom,[a,l]=Array.isArray(n.gap)?n.gap:[n.gap,n.gap],u=[a*o||1,l*o||1],c=n.size*o,[h,d]=Array.isArray(n.offset)?n.offset:[n.offset,n.offset],f=[h*o||1+u[0]/2,d*o||1+u[1]/2];return{scaledGap:u,offset:f,size:c}}),s=Me(()=>`pattern-${e}${n.id?`-${n.id}`:""}`),r=Me(()=>n.color||n.patternColor||z$[n.variant||Mn.Dots]);return(o,a)=>(G(),K("svg",{class:"vue-flow__background vue-flow__container",style:gt({height:`${o.height>100?100:o.height}%`,width:`${o.width>100?100:o.width}%`})},[Be(o.$slots,"pattern-container",{id:s.value},()=>[q("pattern",{id:s.value,x:$(t).x%i.value.scaledGap[0],y:$(t).y%i.value.scaledGap[1],width:i.value.scaledGap[0],height:i.value.scaledGap[1],patternTransform:`translate(-${i.value.offset[0]},-${i.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[Be(o.$slots,"pattern",{},()=>[o.variant===$(Mn).Lines?(G(),be($(Ag),{key:0,size:o.lineWidth,color:r.value,dimensions:i.value.scaledGap},null,8,["size","color","dimensions"])):o.variant===$(Mn).Dots?(G(),be($(Cg),{key:1,color:r.value,radius:i.value.size/2},null,8,["color","radius"])):Ee("",!0),o.bgColor?(G(),K("svg",X$,[q("rect",{width:"100%",height:"100%",fill:o.bgColor},null,8,B$)])):Ee("",!0)])],8,V$)]),q("rect",{x:o.x,y:o.y,width:"100%",height:"100%",fill:`url(#${s.value})`},null,8,U$),Be(o.$slots,"default",{id:s.value})],4))}}),q$={name:"ControlButton",compatConfig:{MODE:3}},Y$=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t},G$={class:"vue-flow__controls-button"};function H$(n,e,t,i,s,r){return G(),K("button",G$,[Be(n.$slots,"default")])}const co=Y$(q$,[["render",H$]]),F$={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},K$=q("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1),J$=[K$];function ek(n,e){return G(),K("svg",F$,J$)}const tk={render:ek},nk={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},ik=q("path",{d:"M0 0h32v4.2H0z"},null,-1),sk=[ik];function rk(n,e){return G(),K("svg",nk,sk)}const ok={render:rk},ak={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},lk=q("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1),uk=[lk];function ck(n,e){return G(),K("svg",ak,uk)}const hk={render:ck},dk={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},fk=q("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1),pk=[fk];function mk(n,e){return G(),K("svg",dk,pk)}const gk={render:mk},Ok={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},yk=q("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1),vk=[yk];function wk(n,e){return G(),K("svg",Ok,vk)}const bk={render:wk},xk={name:"Controls",compatConfig:{MODE:3}},Sk=Oe({...xk,props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>eg.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(n,{emit:e}){const{nodesDraggable:t,nodesConnectable:i,elementsSelectable:s,setInteractive:r,zoomIn:o,zoomOut:a,fitView:l,viewport:u,minZoom:c,maxZoom:h}=Le(),d=Me(()=>t.value||i.value||s.value),f=Me(()=>u.value.zoom<=c.value),p=Me(()=>u.value.zoom>=h.value);function m(){o(),e("zoomIn")}function O(){a(),e("zoomOut")}function y(){l(n.fitViewParams),e("fitView")}function b(){r(!d.value),e("interactionChange",!d.value)}return(v,g)=>(G(),be($(Tg),{class:"vue-flow__controls",position:v.position},{default:A(()=>[Be(v.$slots,"top"),v.showZoom?(G(),K(ke,{key:0},[Be(v.$slots,"control-zoom-in",{},()=>[x(co,{class:"vue-flow__controls-zoomin",disabled:p.value,onClick:m},{default:A(()=>[Be(v.$slots,"icon-zoom-in",{},()=>[(G(),be(ni($(tk))))])]),_:3},8,["disabled"])]),Be(v.$slots,"control-zoom-out",{},()=>[x(co,{class:"vue-flow__controls-zoomout",disabled:f.value,onClick:O},{default:A(()=>[Be(v.$slots,"icon-zoom-out",{},()=>[(G(),be(ni($(ok))))])]),_:3},8,["disabled"])])],64)):Ee("",!0),v.showFitView?Be(v.$slots,"control-fit-view",{key:1},()=>[x(co,{class:"vue-flow__controls-fitview",onClick:y},{default:A(()=>[Be(v.$slots,"icon-fit-view",{},()=>[(G(),be(ni($(hk))))])]),_:3})]):Ee("",!0),v.showInteractive?Be(v.$slots,"control-interactive",{key:2},()=>[v.showInteractive?(G(),be(co,{key:0,class:"vue-flow__controls-interactive",onClick:b},{default:A(()=>[d.value?Be(v.$slots,"icon-unlock",{key:0},()=>[(G(),be(ni($(bk))))]):Ee("",!0),d.value?Ee("",!0):Be(v.$slots,"icon-lock",{key:1},()=>[(G(),be(ni($(gk))))])]),_:3})):Ee("",!0)]):Ee("",!0),Be(v.$slots,"default")]),_:3},8,["position"]))}});var _k={value:()=>{}};function oh(){for(var n=0,e=arguments.length,t={},i;n=0&&(i=t.slice(s+1),t=t.slice(0,s)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}Bo.prototype=oh.prototype={constructor:Bo,on:function(n,e){var t=this._,i=$k(n+"",t),s,r=-1,o=i.length;if(arguments.length<2){for(;++r0)for(var t=new Array(s),i=0,s,r;i=0&&(e=n.slice(0,t))!=="xmlns"&&(n=n.slice(t+1)),zd.hasOwnProperty(e)?{space:zd[e],local:n}:n}function Pk(n){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===Bu&&e.documentElement.namespaceURI===Bu?e.createElement(n):e.createElementNS(t,n)}}function Qk(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Eg(n){var e=al(n);return(e.local?Qk:Pk)(e)}function Tk(){}function ah(n){return n==null?Tk:function(){return this.querySelector(n)}}function Ak(n){typeof n!="function"&&(n=ah(n));for(var e=this._groups,t=e.length,i=new Array(t),s=0;s=v&&(v=b+1);!(k=O[v])&&++v=0;)(o=i[s])&&(r&&o.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(o,r),r=o);return this}function tP(n){n||(n=nP);function e(h,d){return h&&d?n(h.__data__,d.__data__):!h-!d}for(var t=this._groups,i=t.length,s=new Array(i),r=0;re?1:n>=e?0:NaN}function iP(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function sP(){return Array.from(this)}function rP(){for(var n=this._groups,e=0,t=n.length;e1?this.each((e==null?gP:typeof e=="function"?yP:OP)(n,e,t??"")):ks(this.node(),n)}function ks(n,e){return n.style.getPropertyValue(e)||Ng(n).getComputedStyle(n,null).getPropertyValue(e)}function wP(n){return function(){delete this[n]}}function bP(n,e){return function(){this[n]=e}}function xP(n,e){return function(){var t=e.apply(this,arguments);t==null?delete this[n]:this[n]=t}}function SP(n,e){return arguments.length>1?this.each((e==null?wP:typeof e=="function"?xP:bP)(n,e)):this.node()[n]}function Ig(n){return n.trim().split(/^|\s+/)}function lh(n){return n.classList||new Lg(n)}function Lg(n){this._node=n,this._names=Ig(n.getAttribute("class")||"")}Lg.prototype={add:function(n){var e=this._names.indexOf(n);e<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var e=this._names.indexOf(n);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function zg(n,e){for(var t=lh(n),i=-1,s=e.length;++i=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}})}function FP(n){return function(){var e=this.__on;if(e){for(var t=0,i=-1,s=e.length,r;t>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?ho(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?ho(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=uQ.exec(n))?new Qt(e[1],e[2],e[3],1):(e=cQ.exec(n))?new Qt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=hQ.exec(n))?ho(e[1],e[2],e[3],e[4]):(e=dQ.exec(n))?ho(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=fQ.exec(n))?qd(e[1],e[2]/100,e[3]/100,1):(e=pQ.exec(n))?qd(e[1],e[2]/100,e[3]/100,e[4]):Vd.hasOwnProperty(n)?Ud(Vd[n]):n==="transparent"?new Qt(NaN,NaN,NaN,0):null}function Ud(n){return new Qt(n>>16&255,n>>8&255,n&255,1)}function ho(n,e,t,i){return i<=0&&(n=e=t=NaN),new Qt(n,e,t,i)}function OQ(n){return n instanceof qr||(n=Ar(n)),n?(n=n.rgb(),new Qt(n.r,n.g,n.b,n.opacity)):new Qt}function Wu(n,e,t,i){return arguments.length===1?OQ(n):new Qt(n,e,t,i??1)}function Qt(n,e,t,i){this.r=+n,this.g=+e,this.b=+t,this.opacity=+i}uh(Qt,Wu,Ug(qr,{brighter(n){return n=n==null?wa:Math.pow(wa,n),new Qt(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?Qr:Math.pow(Qr,n),new Qt(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Qt(zi(this.r),zi(this.g),zi(this.b),ba(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jd,formatHex:jd,formatHex8:yQ,formatRgb:Wd,toString:Wd}));function jd(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}`}function yQ(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}${Ri((isNaN(this.opacity)?1:this.opacity)*255)}`}function Wd(){const n=ba(this.opacity);return`${n===1?"rgb(":"rgba("}${zi(this.r)}, ${zi(this.g)}, ${zi(this.b)}${n===1?")":`, ${n})`}`}function ba(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function zi(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function Ri(n){return n=zi(n),(n<16?"0":"")+n.toString(16)}function qd(n,e,t,i){return i<=0?n=e=t=NaN:t<=0||t>=1?n=e=NaN:e<=0&&(n=NaN),new Ft(n,e,t,i)}function jg(n){if(n instanceof Ft)return new Ft(n.h,n.s,n.l,n.opacity);if(n instanceof qr||(n=Ar(n)),!n)return new Ft;if(n instanceof Ft)return n;n=n.rgb();var e=n.r/255,t=n.g/255,i=n.b/255,s=Math.min(e,t,i),r=Math.max(e,t,i),o=NaN,a=r-s,l=(r+s)/2;return a?(e===r?o=(t-i)/a+(t0&&l<1?0:o,new Ft(o,a,l,n.opacity)}function vQ(n,e,t,i){return arguments.length===1?jg(n):new Ft(n,e,t,i??1)}function Ft(n,e,t,i){this.h=+n,this.s=+e,this.l=+t,this.opacity=+i}uh(Ft,vQ,Ug(qr,{brighter(n){return n=n==null?wa:Math.pow(wa,n),new Ft(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?Qr:Math.pow(Qr,n),new Ft(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*e,s=2*t-i;return new Qt(Ll(n>=240?n-240:n+120,s,i),Ll(n,s,i),Ll(n<120?n+240:n-120,s,i),this.opacity)},clamp(){return new Ft(Yd(this.h),fo(this.s),fo(this.l),ba(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=ba(this.opacity);return`${n===1?"hsl(":"hsla("}${Yd(this.h)}, ${fo(this.s)*100}%, ${fo(this.l)*100}%${n===1?")":`, ${n})`}`}}));function Yd(n){return n=(n||0)%360,n<0?n+360:n}function fo(n){return Math.max(0,Math.min(1,n||0))}function Ll(n,e,t){return(n<60?e+(t-e)*n/60:n<180?t:n<240?e+(t-e)*(240-n)/60:e)*255}const Wg=n=>()=>n;function wQ(n,e){return function(t){return n+t*e}}function bQ(n,e,t){return n=Math.pow(n,t),e=Math.pow(e,t)-n,t=1/t,function(i){return Math.pow(n+i*e,t)}}function xQ(n){return(n=+n)==1?qg:function(e,t){return t-e?bQ(e,t,n):Wg(isNaN(e)?t:e)}}function qg(n,e){var t=e-n;return t?wQ(n,t):Wg(isNaN(n)?e:n)}const Gd=function n(e){var t=xQ(e);function i(s,r){var o=t((s=Wu(s)).r,(r=Wu(r)).r),a=t(s.g,r.g),l=t(s.b,r.b),u=qg(s.opacity,r.opacity);return function(c){return s.r=o(c),s.g=a(c),s.b=l(c),s.opacity=u(c),s+""}}return i.gamma=n,i}(1);function Jn(n,e){return n=+n,e=+e,function(t){return n*(1-t)+e*t}}var qu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zl=new RegExp(qu.source,"g");function SQ(n){return function(){return n}}function _Q(n){return function(e){return n(e)+""}}function $Q(n,e){var t=qu.lastIndex=zl.lastIndex=0,i,s,r,o=-1,a=[],l=[];for(n=n+"",e=e+"";(i=qu.exec(n))&&(s=zl.exec(e));)(r=s.index)>t&&(r=e.slice(t,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,l.push({i:o,x:Jn(i,s)})),t=zl.lastIndex;return t180?c+=360:c-u>180&&(u+=360),d.push({i:h.push(s(h)+"rotate(",null,i)-2,x:Jn(u,c)})):c&&h.push(s(h)+"rotate("+c+i)}function a(u,c,h,d){u!==c?d.push({i:h.push(s(h)+"skewX(",null,i)-2,x:Jn(u,c)}):c&&h.push(s(h)+"skewX("+c+i)}function l(u,c,h,d,f,p){if(u!==h||c!==d){var m=f.push(s(f)+"scale(",null,",",null,")");p.push({i:m-4,x:Jn(u,h)},{i:m-2,x:Jn(c,d)})}else(h!==1||d!==1)&&f.push(s(f)+"scale("+h+","+d+")")}return function(u,c){var h=[],d=[];return u=n(u),c=n(c),r(u.translateX,u.translateY,c.translateX,c.translateY,h,d),o(u.rotate,c.rotate,h,d),a(u.skewX,c.skewX,h,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,h,d),u=c=null,function(f){for(var p=-1,m=d.length,O;++p=0&&n._call.call(void 0,e),n=n._next;--Ps}function Kd(){ji=(Sa=Cr.now())+ll,Ps=ir=0;try{ZQ()}finally{Ps=0,NQ(),ji=0}}function DQ(){var n=Cr.now(),e=n-Sa;e>Hg&&(ll-=e,Sa=n)}function NQ(){for(var n,e=xa,t,i=1/0;e;)e._call?(i>e._time&&(i=e._time),n=e,e=e._next):(t=e._next,e._next=null,e=n?n._next=t:xa=t);sr=n,Gu(i)}function Gu(n){if(!Ps){ir&&(ir=clearTimeout(ir));var e=n-ji;e>24?(n<1/0&&(ir=setTimeout(Kd,n-Cr.now()-ll)),Vs&&(Vs=clearInterval(Vs))):(Vs||(Sa=Cr.now(),Vs=setInterval(DQ,Hg)),Ps=1,Fg(Kd))}}function Jd(n,e,t){var i=new _a;return e=e==null?0:+e,i.restart(s=>{i.stop(),n(s+e)},e,t),i}var IQ=oh("start","end","cancel","interrupt"),LQ=[],Jg=0,ef=1,Hu=2,Uo=3,tf=4,Fu=5,jo=6;function ul(n,e,t,i,s,r){var o=n.__transition;if(!o)n.__transition={};else if(t in o)return;zQ(n,t,{name:e,index:i,group:s,on:IQ,tween:LQ,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Jg})}function hh(n,e){var t=rn(n,e);if(t.state>Jg)throw new Error("too late; already scheduled");return t}function xn(n,e){var t=rn(n,e);if(t.state>Uo)throw new Error("too late; already running");return t}function rn(n,e){var t=n.__transition;if(!t||!(t=t[e]))throw new Error("transition not found");return t}function zQ(n,e,t){var i=n.__transition,s;i[e]=t,t.timer=Kg(r,0,t.time);function r(u){t.state=ef,t.timer.restart(o,t.delay,t.time),t.delay<=u&&o(u-t.delay)}function o(u){var c,h,d,f;if(t.state!==ef)return l();for(c in i)if(f=i[c],f.name===t.name){if(f.state===Uo)return Jd(o);f.state===tf?(f.state=jo,f.timer.stop(),f.on.call("interrupt",n,n.__data__,f.index,f.group),delete i[c]):+cHu&&i.state=0&&(e=e.slice(0,t)),!e||e==="start"})}function g2(n,e,t){var i,s,r=m2(e)?hh:xn;return function(){var o=r(this,n),a=o.on;a!==i&&(s=(i=a).copy()).on(e,t),o.on=s}}function O2(n,e){var t=this._id;return arguments.length<2?rn(this.node(),t).on.on(n):this.each(g2(t,n,e))}function y2(n){return function(){var e=this.parentNode;for(var t in this.__transition)if(+t!==n)return;e&&e.removeChild(this)}}function v2(){return this.on("end.remove",y2(this._id))}function w2(n){var e=this._name,t=this._id;typeof n!="function"&&(n=ah(n));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o()=>n;function j2(n,{sourceEvent:e,target:t,transform:i,dispatch:s}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function Rn(n,e,t){this.k=n,this.x=e,this.y=t}Rn.prototype={constructor:Rn,scale:function(n){return n===1?this:new Rn(this.k*n,this.x,this.y)},translate:function(n,e){return n===0&e===0?this:new Rn(this.k,this.x+this.k*n,this.y+this.k*e)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var fh=new Rn(1,0,0);Rn.prototype;function Vl(n){n.stopImmediatePropagation()}function Xs(n){n.preventDefault(),n.stopImmediatePropagation()}function W2(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function q2(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function nf(){return this.__zoom||fh}function Y2(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function G2(){return navigator.maxTouchPoints||"ontouchstart"in this}function H2(n,e,t){var i=n.invertX(e[0][0])-t[0][0],s=n.invertX(e[1][0])-t[1][0],r=n.invertY(e[0][1])-t[0][1],o=n.invertY(e[1][1])-t[1][1];return n.translate(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o))}function F2(){var n=W2,e=q2,t=H2,i=Y2,s=G2,r=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],a=250,l=MQ,u=oh("start","zoom","end"),c,h,d,f=500,p=150,m=0,O=10;function y(w){w.property("__zoom",nf).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",P).on("dblclick.zoom",B).filter(s).on("touchstart.zoom",W).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(w,R,_,D){var N=w.selection?w.selection():w;N.property("__zoom",nf),w!==N?k(w,R,_,D):N.interrupt().each(function(){S(this,arguments).event(D).start().zoom(null,typeof R=="function"?R.apply(this,arguments):R).end()})},y.scaleBy=function(w,R,_,D){y.scaleTo(w,function(){var N=this.__zoom.k,U=typeof R=="function"?R.apply(this,arguments):R;return N*U},_,D)},y.scaleTo=function(w,R,_,D){y.transform(w,function(){var N=e.apply(this,arguments),U=this.__zoom,V=_==null?g(N):typeof _=="function"?_.apply(this,arguments):_,Y=U.invert(V),E=typeof R=="function"?R.apply(this,arguments):R;return t(v(b(U,E),V,Y),N,o)},_,D)},y.translateBy=function(w,R,_,D){y.transform(w,function(){return t(this.__zoom.translate(typeof R=="function"?R.apply(this,arguments):R,typeof _=="function"?_.apply(this,arguments):_),e.apply(this,arguments),o)},null,D)},y.translateTo=function(w,R,_,D,N){y.transform(w,function(){var U=e.apply(this,arguments),V=this.__zoom,Y=D==null?g(U):typeof D=="function"?D.apply(this,arguments):D;return t(fh.translate(Y[0],Y[1]).scale(V.k).translate(typeof R=="function"?-R.apply(this,arguments):-R,typeof _=="function"?-_.apply(this,arguments):-_),U,o)},D,N)};function b(w,R){return R=Math.max(r[0],Math.min(r[1],R)),R===w.k?w:new Rn(R,w.x,w.y)}function v(w,R,_){var D=R[0]-_[0]*w.k,N=R[1]-_[1]*w.k;return D===w.x&&N===w.y?w:new Rn(w.k,D,N)}function g(w){return[(+w[0][0]+ +w[1][0])/2,(+w[0][1]+ +w[1][1])/2]}function k(w,R,_,D){w.on("start.zoom",function(){S(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){S(this,arguments).event(D).end()}).tween("zoom",function(){var N=this,U=arguments,V=S(N,U).event(D),Y=e.apply(N,U),E=_==null?g(Y):typeof _=="function"?_.apply(N,U):_,X=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),H=N.__zoom,J=typeof R=="function"?R.apply(N,U):R,me=l(H.invert(E).concat(X/H.k),J.invert(E).concat(X/J.k));return function(oe){if(oe===1)oe=J;else{var xe=me(oe),ye=X/xe[2];oe=new Rn(ye,E[0]-xe[0]*ye,E[1]-xe[1]*ye)}V.zoom(null,oe)}})}function S(w,R,_){return!_&&w.__zooming||new Q(w,R)}function Q(w,R){this.that=w,this.args=R,this.active=0,this.sourceEvent=null,this.extent=e.apply(w,R),this.taps=0}Q.prototype={event:function(w){return w&&(this.sourceEvent=w),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(w,R){return this.mouse&&w!=="mouse"&&(this.mouse[1]=R.invert(this.mouse[0])),this.touch0&&w!=="touch"&&(this.touch0[1]=R.invert(this.touch0[0])),this.touch1&&w!=="touch"&&(this.touch1[1]=R.invert(this.touch1[0])),this.that.__zoom=R,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(w){var R=ri(this.that).datum();u.call(w,this.that,new j2(w,{sourceEvent:this.sourceEvent,target:y,transform:this.that.__zoom,dispatch:u}),R)}};function T(w,...R){if(!n.apply(this,arguments))return;var _=S(this,R).event(w),D=this.__zoom,N=Math.max(r[0],Math.min(r[1],D.k*Math.pow(2,i.apply(this,arguments)))),U=Hn(w);if(_.wheel)(_.mouse[0][0]!==U[0]||_.mouse[0][1]!==U[1])&&(_.mouse[1]=D.invert(_.mouse[0]=U)),clearTimeout(_.wheel);else{if(D.k===N)return;_.mouse=[U,D.invert(U)],Wo(this),_.start()}Xs(w),_.wheel=setTimeout(V,p),_.zoom("mouse",t(v(b(D,N),_.mouse[0],_.mouse[1]),_.extent,o));function V(){_.wheel=null,_.end()}}function P(w,...R){if(d||!n.apply(this,arguments))return;var _=w.currentTarget,D=S(this,R,!0).event(w),N=ri(w.view).on("mousemove.zoom",E,!0).on("mouseup.zoom",X,!0),U=Hn(w,_),V=w.clientX,Y=w.clientY;oQ(w.view),Vl(w),D.mouse=[U,this.__zoom.invert(U)],Wo(this),D.start();function E(H){if(Xs(H),!D.moved){var J=H.clientX-V,me=H.clientY-Y;D.moved=J*J+me*me>m}D.event(H).zoom("mouse",t(v(D.that.__zoom,D.mouse[0]=Hn(H,_),D.mouse[1]),D.extent,o))}function X(H){N.on("mousemove.zoom mouseup.zoom",null),aQ(H.view,D.moved),Xs(H),D.event(H).end()}}function B(w,...R){if(n.apply(this,arguments)){var _=this.__zoom,D=Hn(w.changedTouches?w.changedTouches[0]:w,this),N=_.invert(D),U=_.k*(w.shiftKey?.5:2),V=t(v(b(_,U),D,N),e.apply(this,R),o);Xs(w),a>0?ri(this).transition().duration(a).call(k,V,D,w):ri(this).call(y.transform,V,D,w)}}function W(w,...R){if(n.apply(this,arguments)){var _=w.touches,D=_.length,N=S(this,R,w.changedTouches.length===D).event(w),U,V,Y,E;for(Vl(w),V=0;Vs.style??{});function o(h){e("click",h)}function a(h){e("dblclick",h)}function l(h){e("mouseenter",h)}function u(h){e("mousemove",h)}function c(h){e("mouseleave",h)}return(h,d)=>!h.hidden&&h.dimensions.width!==0&&h.dimensions.height!==0?(G(),K(ke,{key:0},[$(i)[`node-${t.type}`]?(G(),be(ni($(i)[`node-${t.type}`]),rm(Xt({key:0},{...t,...h.$attrs})),null,16)):(G(),K("rect",Xt({key:1,id:h.id},h.$attrs,{class:["vue-flow__minimap-node",{selected:h.selected,dragging:h.dragging}],x:h.position.x,y:h.position.y,rx:h.borderRadius,ry:h.borderRadius,width:h.dimensions.width,height:h.dimensions.height,fill:h.color||r.value.background||r.value.backgroundColor,stroke:h.strokeColor,"stroke-width":h.strokeWidth,"shape-rendering":h.shapeRendering,onClick:o,onDblclick:a,onMouseenter:l,onMousemove:u,onMouseleave:c}),null,16,K2))],64)):Ee("",!0)}}),tT=["width","height","viewBox","aria-labelledby"],nT=["id"],iT=["d","fill","stroke","stroke-width"],sT={name:"MiniMap",compatConfig:{MODE:3}},rT=Oe({...sT,props:{nodeColor:{type:[String,Function],default:"#e2e2e2"},nodeStrokeColor:{type:[String,Function],default:"transparent"},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:"rgb(240, 240, 240, 0.6)"},maskStrokeColor:{default:"none"},maskStrokeWidth:{default:1},position:{default:"bottom-right"},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:"Vue Flow mini map"},inversePan:{type:Boolean,default:!1},zoomStep:{default:10},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:["click","nodeClick","nodeDblclick","nodeMouseenter","nodeMousemove","nodeMouseleave"],setup(n,{emit:e}){const t=nm(),i=qc(),s=200,r=150,{id:o,edges:a,viewport:l,translateExtent:u,dimensions:c,emits:h,d3Selection:d,d3Zoom:f,getNodesInitialized:p}=Le(),m=ae();Bi(iO,t);const O=Me(()=>{var N;return n.width??((N=i.style)==null?void 0:N.width)??s}),y=Me(()=>{var N;return n.height??((N=i.style)==null?void 0:N.height)??r}),b=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision",v=pe(()=>typeof n.nodeColor=="string"?()=>n.nodeColor:n.nodeColor),g=pe(()=>typeof n.nodeStrokeColor=="string"?()=>n.nodeStrokeColor:n.nodeStrokeColor),k=pe(()=>typeof n.nodeClassName=="string"?()=>n.nodeClassName:typeof n.nodeClassName=="function"?n.nodeClassName:()=>""),S=pe(()=>Ka(p.value)),Q=pe(()=>({x:-l.value.x/l.value.zoom,y:-l.value.y/l.value.zoom,width:c.value.width/l.value.zoom,height:c.value.height/l.value.zoom})),T=pe(()=>p.value&&p.value.length?XS(S.value,Q.value):Q.value),P=pe(()=>{const N=T.value.width/O.value,U=T.value.height/y.value;return Math.max(N,U)}),B=pe(()=>{const N=P.value*O.value,U=P.value*y.value,V=n.offsetScale*P.value;return{offset:V,x:T.value.x-(N-T.value.width)/2-V,y:T.value.y-(U-T.value.height)/2-V,width:N+V*2,height:U+V*2}}),W=pe(()=>!B.value.x||!B.value.y?"":` + M${B.value.x-B.value.offset},${B.value.y-B.value.offset} + h${B.value.width+B.value.offset*2} + v${B.value.height+B.value.offset*2} + h${-B.value.width-B.value.offset*2}z + M${Q.value.x+n.maskBorderRadius},${Q.value.y} + h${Q.value.width-2*n.maskBorderRadius} + a${n.maskBorderRadius},${n.maskBorderRadius} 0 0 1 ${n.maskBorderRadius},${n.maskBorderRadius} + v${Q.value.height-2*n.maskBorderRadius} + a${n.maskBorderRadius},${n.maskBorderRadius} 0 0 1 -${n.maskBorderRadius},${n.maskBorderRadius} + h${-(Q.value.width-2*n.maskBorderRadius)} + a${n.maskBorderRadius},${n.maskBorderRadius} 0 0 1 -${n.maskBorderRadius},-${n.maskBorderRadius} + v${-(Q.value.height-2*n.maskBorderRadius)} + a${n.maskBorderRadius},${n.maskBorderRadius} 0 0 1 ${n.maskBorderRadius},-${n.maskBorderRadius}z`);sm(N=>{if(m.value){const U=ri(m.value),V=X=>{if(X.sourceEvent.type!=="wheel"||!d.value||!f.value)return;const H=-X.sourceEvent.deltaY*(X.sourceEvent.deltaMode===1?.05:X.sourceEvent.deltaMode?1:.002)*n.zoomStep,J=l.value.zoom*2**H;f.value.scaleTo(d.value,J)},Y=X=>{if(X.sourceEvent.type!=="mousemove"||!d.value||!f.value)return;const H=P.value*Math.max(1,l.value.zoom)*(n.inversePan?-1:1),J={x:l.value.x-X.sourceEvent.movementX*H,y:l.value.y-X.sourceEvent.movementY*H},me=[[0,0],[c.value.width,c.value.height]],oe=fh.translate(J.x,J.y).scale(l.value.zoom),xe=f.value.constrain()(oe,me,u.value);f.value.transform(d.value,xe)},E=F2().on("zoom",n.pannable?Y:()=>{}).on("zoom.wheel",n.zoomable?V:()=>{});U.call(E),N(()=>{U.on("zoom",null)})}},{flush:"post"});function C(N){const[U,V]=Hn(N);e("click",{event:N,position:{x:U,y:V}})}function j(N,U){const V={event:N,node:U,connectedEdges:$i([U],a.value)};h.miniMapNodeClick(V),e("nodeClick",V)}function w(N,U){const V={event:N,node:U,connectedEdges:$i([U],a.value)};h.miniMapNodeDoubleClick(V),e("nodeDblclick",V)}function R(N,U){const V={event:N,node:U,connectedEdges:$i([U],a.value)};h.miniMapNodeMouseEnter(V),e("nodeMouseenter",V)}function _(N,U){const V={event:N,node:U,connectedEdges:$i([U],a.value)};h.miniMapNodeMouseMove(V),e("nodeMousemove",V)}function D(N,U){const V={event:N,node:U,connectedEdges:$i([U],a.value)};h.miniMapNodeMouseLeave(V),e("nodeMouseleave",V)}return(N,U)=>(G(),be($(Tg),{position:N.position,class:Ge(["vue-flow__minimap",{pannable:N.pannable,zoomable:N.zoomable}])},{default:A(()=>[(G(),K("svg",{ref_key:"el",ref:m,width:O.value,height:y.value,viewBox:[B.value.x,B.value.y,B.value.width,B.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${$(o)}`,onClick:C},[N.ariaLabel?(G(),K("title",{key:0,id:`vue-flow__minimap-${$(o)}`},ve(N.ariaLabel),9,nT)):Ee("",!0),(G(!0),K(ke,null,Xe($(p),V=>(G(),be(eT,{id:V.id,key:V.id,position:V.computedPosition,dimensions:V.dimensions,selected:V.selected,dragging:V.dragging,style:gt(V.style),class:Ge(k.value(V)),color:v.value(V),"border-radius":N.nodeBorderRadius,"stroke-color":g.value(V),"stroke-width":N.nodeStrokeWidth,"shape-rendering":$(b),type:V.type,hidden:V.hidden,onClick:Y=>j(Y,V),onDblclick:Y=>w(Y,V),onMouseenter:Y=>R(Y,V),onMousemove:Y=>_(Y,V),onMouseleave:Y=>D(Y,V)},null,8,["id","position","dimensions","selected","dragging","style","class","color","border-radius","stroke-color","stroke-width","shape-rendering","type","hidden","onClick","onDblclick","onMouseenter","onMousemove","onMouseleave"]))),128)),q("path",{class:"vue-flow__minimap-mask",d:W.value,fill:N.maskColor,stroke:N.maskStrokeColor,"stroke-width":N.maskStrokeWidth,"fill-rule":"evenodd"},null,8,iT)],8,tT))]),_:1},8,["position","class"]))}});var Ku="http://www.w3.org/1999/xhtml";const sf={svg:"http://www.w3.org/2000/svg",xhtml:Ku,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function sO(n){var e=n+="",t=e.indexOf(":");return t>=0&&(e=n.slice(0,t))!=="xmlns"&&(n=n.slice(t+1)),sf.hasOwnProperty(e)?{space:sf[e],local:n}:n}function oT(n){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===Ku&&e.documentElement.namespaceURI===Ku?e.createElement(n):e.createElementNS(t,n)}}function aT(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function rO(n){var e=sO(n);return(e.local?aT:oT)(e)}function lT(){}function oO(n){return n==null?lT:function(){return this.querySelector(n)}}function uT(n){typeof n!="function"&&(n=oO(n));for(var e=this._groups,t=e.length,i=new Array(t),s=0;s=v&&(v=b+1);!(k=O[v])&&++v=0;)(o=i[s])&&(r&&o.compareDocumentPosition(r)^4&&r.parentNode.insertBefore(o,r),r=o);return this}function DT(n){n||(n=NT);function e(h,d){return h&&d?n(h.__data__,d.__data__):!h-!d}for(var t=this._groups,i=t.length,s=new Array(i),r=0;re?1:n>=e?0:NaN}function IT(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function LT(){return Array.from(this)}function zT(){for(var n=this._groups,e=0,t=n.length;e1?this.each((e==null?FT:typeof e=="function"?JT:KT)(n,e,t??"")):tA(this.node(),n)}function tA(n,e){return n.style.getPropertyValue(e)||uO(n).getComputedStyle(n,null).getPropertyValue(e)}function nA(n){return function(){delete this[n]}}function iA(n,e){return function(){this[n]=e}}function sA(n,e){return function(){var t=e.apply(this,arguments);t==null?delete this[n]:this[n]=t}}function rA(n,e){return arguments.length>1?this.each((e==null?nA:typeof e=="function"?sA:iA)(n,e)):this.node()[n]}function cO(n){return n.trim().split(/^|\s+/)}function ph(n){return n.classList||new hO(n)}function hO(n){this._node=n,this._names=cO(n.getAttribute("class")||"")}hO.prototype={add:function(n){var e=this._names.indexOf(n);e<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var e=this._names.indexOf(n);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function dO(n,e){for(var t=ph(n),i=-1,s=e.length;++i=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}})}function MA(n){return function(){var e=this.__on;if(e){for(var t=0,i=-1,s=e.length,r;t{}};function mO(){for(var n=0,e=arguments.length,t={},i;n=0&&(i=t.slice(s+1),t=t.slice(0,s)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}qo.prototype=mO.prototype={constructor:qo,on:function(n,e){var t=this._,i=UA(n+"",t),s,r=-1,o=i.length;if(arguments.length<2){for(;++r0)for(var t=new Array(s),i=0,s,r;i()=>n;function Ju(n,{sourceEvent:e,subject:t,target:i,identifier:s,active:r,x:o,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:r,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}Ju.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function GA(n){return!n.ctrlKey&&!n.button}function HA(){return this.parentNode}function FA(n,e){return e??{x:n.x,y:n.y}}function KA(){return navigator.maxTouchPoints||"ontouchstart"in this}function JA(){var n=GA,e=HA,t=FA,i=KA,s={},r=mO("start","drag","end"),o=0,a,l,u,c,h=0;function d(g){g.on("mousedown.drag",f).filter(i).on("touchstart.drag",O).on("touchmove.drag",y,WA).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(g,k){if(!(c||!n.call(this,g,k))){var S=v(this,e.call(this,g,k),g,k,"mouse");S&&(Er(g.view).on("mousemove.drag",p,Mr).on("mouseup.drag",m,Mr),qA(g.view),Xl(g),u=!1,a=g.clientX,l=g.clientY,S("start",g))}}function p(g){if(ps(g),!u){var k=g.clientX-a,S=g.clientY-l;u=k*k+S*S>h}s.mouse("drag",g)}function m(g){Er(g.view).on("mousemove.drag mouseup.drag",null),YA(g.view,u),ps(g),s.mouse("end",g)}function O(g,k){if(n.call(this,g,k)){var S=g.changedTouches,Q=e.call(this,g,k),T=S.length,P,B;for(P=0;P(n.Line="line",n.Handle="handle",n))(Qs||{});function eC({width:n,prevWidth:e,height:t,prevHeight:i,invertX:s,invertY:r}){const o=n-e,a=t-i,l=[o>0?1:o<0?-1:0,a>0?1:a<0?-1:0];return o&&s&&(l[0]=l[0]*-1),a&&r&&(l[1]=l[1]*-1),l}const tC={[Qs.Line]:"right",[Qs.Handle]:"bottom-right"},nC={[Qs.Line]:"borderColor",[Qs.Handle]:"backgroundColor"},iC={name:"ResizeControl",compatConfig:{MODE:3}},af=Oe({...iC,props:{nodeId:{},color:{},minWidth:{default:10},minHeight:{default:10},maxWidth:{default:Number.MAX_VALUE},maxHeight:{default:Number.MAX_VALUE},position:{},variant:{default:"handle"},shouldResize:{},keepAspectRatio:{type:[Boolean,Number],default:!1}},emits:["resizeStart","resize","resizeEnd"],setup(n,{emit:e}){const t=n,i={width:0,height:0,x:0,y:0},s={...i,pointerX:0,pointerY:0,aspectRatio:1},{findNode:r,emits:o}=Le(),a=vg(),l=ae();let u=s,c=i;const h=Me(()=>t.position??tC[t.variant]),d=Me(()=>h.value.split("-")),f=Me(()=>t.color?{[nC[t.variant]]:t.color}:{});return sm(p=>{if(!l.value||!t.nodeId)return;const m=Er(l.value),O=h.value.includes("right")||h.value.includes("left"),y=h.value.includes("bottom")||h.value.includes("top"),b=h.value.includes("left"),v=h.value.includes("top"),g=JA().on("start",k=>{const S=r(t.nodeId),{xSnapped:Q,ySnapped:T}=a(k);c={width:(S==null?void 0:S.dimensions.width)??0,height:(S==null?void 0:S.dimensions.height)??0,x:(S==null?void 0:S.position.x)??0,y:(S==null?void 0:S.position.y)??0},u={...c,pointerX:Q,pointerY:T,aspectRatio:c.width/c.height},e("resizeStart",{event:k,params:c})}).on("drag",k=>{var S;const{xSnapped:Q,ySnapped:T}=a(k),P=r(t.nodeId);if(P){const B=[],{pointerX:W,pointerY:C,width:j,height:w,x:R,y:_,aspectRatio:D}=u,{x:N,y:U,width:V,height:Y}=c,E=Math.floor(O?Q-W:0),X=Math.floor(y?T-C:0);let H=Bn(j+(b?-E:E),t.minWidth,t.maxWidth),J=Bn(w+(v?-X:X),t.minHeight,t.maxHeight);if(t.keepAspectRatio){const he=H/J;let le=D;typeof t.keepAspectRatio=="number"&&he!==t.keepAspectRatio&&(le=t.keepAspectRatio);const we=O&&y,Z=O&&!y,M=y&&!O;H=he<=le&&we||M?J*le:H,J=he>le&&we||Z?H/le:J,H>=t.maxWidth?(H=t.maxWidth,J=t.maxWidth/le):H<=t.minWidth&&(H=t.minWidth,J=t.minWidth/le),J>=t.maxHeight?(J=t.maxHeight,H=t.maxHeight*le):J<=t.minHeight&&(J=t.minHeight,H=t.minHeight*le)}const me=H!==V,oe=J!==Y;if(b||v){const he=b?R-(H-j):R,le=v?_-(J-w):_,we=he!==N&&me,Z=le!==U&&oe;if(we||Z){const M={id:P.id,type:"position",from:P.position,position:{x:we?he:N,y:Z?le:U}};B.push(M),c.x=M.position.x,c.y=M.position.y}}if(t.nodeId&&(me||oe)){const he={id:t.nodeId,type:"dimensions",updateStyle:!0,resizing:!0,dimensions:{width:H,height:J}};B.push(he),c.width=H,c.height=J}if(B.length===0)return;const xe=eC({width:c.width,prevWidth:V,height:c.height,prevHeight:Y,invertX:b,invertY:v}),ye={...c,direction:xe};if(((S=t.shouldResize)==null?void 0:S.call(t,k,ye))===!1)return;e("resize",{event:k,params:ye}),o.nodesChange(B)}}).on("end",k=>{if(t.nodeId){const S={id:t.nodeId,type:"dimensions",resizing:!1};e("resizeEnd",{event:k,params:c}),o.nodesChange([S])}});m.call(g),p(()=>{m.on(".drag",null)})}),(p,m)=>(G(),K("div",{ref_key:"resizeControlRef",ref:l,class:Ge(["vue-flow__resize-control nodrag",[...d.value,p.variant]]),style:gt(f.value)},[Be(p.$slots,"default")],6))}}),sC={name:"NodeResizer",compatConfig:{MODE:3},inheritAttrs:!1},Jt=Oe({...sC,props:{nodeId:{},color:{},handleClassName:{},handleStyle:{},lineClassName:{},lineStyle:{},isVisible:{type:Boolean,default:!0},minWidth:{},minHeight:{},maxWidth:{},maxHeight:{},shouldResize:{},keepAspectRatio:{type:[Boolean,Number]}},emits:["resizeStart","resize","resizeEnd"],setup(n,{emit:e}){const t=n,{findNode:i,emits:s}=Le(),r=["top-left","top-right","bottom-left","bottom-right"],o=["top","right","bottom","left"],a=Wn(tl,null),l=Me(()=>typeof t.nodeId=="string"?t.nodeId:a),u=pe(()=>i(l.value));return Qe([()=>t.minWidth,()=>t.minHeight,()=>t.maxWidth,()=>t.maxHeight,()=>{var c;return!!((c=u.value)!=null&&c.dimensions.width)&&!!u.value.dimensions.height}],([c,h,d,f,p])=>{const m=u.value;if(m&&p){const O={id:m.id,type:"dimensions",updateStyle:!0,dimensions:{width:m.dimensions.width,height:m.dimensions.height}};c&&m.dimensions.widthd&&(O.dimensions.width=d),f&&m.dimensions.height>f&&(O.dimensions.height=f),(O.dimensions.width!==m.dimensions.width||O.dimensions.height!==m.dimensions.height)&&s.nodesChange([O])}},{flush:"post",immediate:!0}),(c,h)=>c.isVisible?(G(),K(ke,{key:0},[(G(),K(ke,null,Xe(o,d=>x(af,{key:d,class:Ge(c.lineClassName),style:gt(c.lineStyle),"node-id":l.value,position:d,variant:$(Qs).Line,"keep-aspect-ratio":c.keepAspectRatio,color:c.color,"min-width":c.minWidth,"min-height":c.minHeight,"max-width":c.maxWidth,"max-height":c.maxHeight,"should-resize":c.shouldResize,onResizeStart:h[0]||(h[0]=f=>e("resizeStart",f)),onResize:h[1]||(h[1]=f=>e("resize",f)),onResizeEnd:h[2]||(h[2]=f=>e("resizeEnd",f))},null,8,["class","style","node-id","position","variant","keep-aspect-ratio","color","min-width","min-height","max-width","max-height","should-resize"])),64)),(G(),K(ke,null,Xe(r,d=>x(af,{key:d,class:Ge(c.handleClassName),style:gt(c.handleStyle),"node-id":l.value,position:d,color:c.color,"min-width":c.minWidth,"min-height":c.minHeight,"max-width":c.maxWidth,"max-height":c.maxHeight,"should-resize":c.shouldResize,"keep-aspect-ratio":c.keepAspectRatio,onResizeStart:h[3]||(h[3]=f=>e("resizeStart",f)),onResize:h[4]||(h[4]=f=>e("resize",f)),onResizeEnd:h[5]||(h[5]=f=>e("resizeEnd",f))},null,8,["class","style","node-id","position","color","min-width","min-height","max-width","max-height","should-resize","keep-aspect-ratio"])),64))],64)):Ee("",!0)}}),rC={class:"card-header"},oC={class:"card-header"},aC={class:"card-header"},lC=Oe({__name:"NodeConfigDialog",props:{modelValue:{type:Boolean},editData:{}},emits:["update:modelValue","confirm"],setup(n,{emit:e}){const t=n,i=e,s=ae(t.modelValue),r=ae(t.editData?"编辑组件":"添加组件"),o=ra({label:"",template:"",fields:[],handles:[],actions:[]});Qe(()=>t.modelValue,p=>{s.value=p}),Qe(()=>s.value,p=>{i("update:modelValue",p)});function a(){o.fields.push({name:"",type:"number",unit:""})}function l(p){o.fields.splice(p,1)}function u(){o.handles.push({id:"",type:"target",position:"top"})}function c(p){o.handles.splice(p,1)}function h(){o.actions.push({label:"",value:""})}function d(p){o.actions.splice(p,1)}function f(){i("confirm",{...o}),s.value=!1}return(p,m)=>(G(),be($(om),{modelValue:s.value,"onUpdate:modelValue":m[3]||(m[3]=O=>s.value=O),title:r.value,width:"600px"},{footer:A(()=>[x($($e),{onClick:m[2]||(m[2]=O=>s.value=!1)},{default:A(()=>m[16]||(m[16]=[te("取消")])),_:1}),x($($e),{type:"primary",onClick:f},{default:A(()=>m[17]||(m[17]=[te("确定")])),_:1})]),default:A(()=>[x($(am),{model:o,"label-width":"100px"},{default:A(()=>[x($(ii),{label:"组件名称"},{default:A(()=>[x($(Ji),{modelValue:o.label,"onUpdate:modelValue":m[0]||(m[0]=O=>o.label=O),placeholder:"请输入组件名称"},null,8,["modelValue"])]),_:1}),x($(ii),{label:"组件类型"},{default:A(()=>[x($(Fs),{modelValue:o.template,"onUpdate:modelValue":m[1]||(m[1]=O=>o.template=O),placeholder:"选择组件模板"},{default:A(()=>[x($(Et),{label:"容器类",value:"tank"},{default:A(()=>m[4]||(m[4]=[q("div",{class:"template-option"},[q("div",null,"容器类"),q("div",{class:"template-desc"},"适用于储罐、气瓶等存储容器")],-1)])),_:1}),x($(Et),{label:"阀门类",value:"valve"},{default:A(()=>m[5]||(m[5]=[q("div",{class:"template-option"},[q("div",null,"阀门类"),q("div",{class:"template-desc"},"适用于各类阀门控制元件")],-1)])),_:1}),x($(Et),{label:"传感器类",value:"sensor"},{default:A(()=>m[6]||(m[6]=[q("div",{class:"template-option"},[q("div",null,"传感器类"),q("div",{class:"template-desc"},"适用于压力、温度等传感器")],-1)])),_:1})]),_:1},8,["modelValue"])]),_:1}),x($(ii),{label:"数据字段"},{default:A(()=>[x($(_l),{class:"data-fields"},{header:A(()=>[q("div",rC,[m[8]||(m[8]=q("span",null,"字段列表",-1)),x($($e),{type:"primary",link:"",onClick:a},{default:A(()=>m[7]||(m[7]=[te("添加字段")])),_:1})])]),default:A(()=>[(G(!0),K(ke,null,Xe(o.fields,(O,y)=>(G(),K("div",{key:y,class:"field-item"},[x($(Ji),{modelValue:O.name,"onUpdate:modelValue":b=>O.name=b,placeholder:"字段名称",style:{width:"120px"}},null,8,["modelValue","onUpdate:modelValue"]),x($(Fs),{modelValue:O.type,"onUpdate:modelValue":b=>O.type=b,placeholder:"类型",style:{width:"100px"}},{default:A(()=>[x($(Et),{label:"数值",value:"number"}),x($(Et),{label:"文本",value:"text"}),x($(Et),{label:"布尔",value:"boolean"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),x($(Ji),{modelValue:O.unit,"onUpdate:modelValue":b=>O.unit=b,placeholder:"单位",style:{width:"80px"}},null,8,["modelValue","onUpdate:modelValue"]),x($($e),{type:"danger",link:"",onClick:b=>l(y)},{default:A(()=>m[9]||(m[9]=[te("删除")])),_:2},1032,["onClick"])]))),128))]),_:1})]),_:1}),x($(ii),{label:"连接桩"},{default:A(()=>[x($(_l),{class:"handles"},{header:A(()=>[q("div",oC,[m[11]||(m[11]=q("span",null,"连接桩列表",-1)),x($($e),{type:"primary",link:"",onClick:u},{default:A(()=>m[10]||(m[10]=[te("添加连接桩")])),_:1})])]),default:A(()=>[(G(!0),K(ke,null,Xe(o.handles,(O,y)=>(G(),K("div",{key:y,class:"handle-item"},[x($(Ji),{modelValue:O.id,"onUpdate:modelValue":b=>O.id=b,placeholder:"标识符",style:{width:"120px"}},null,8,["modelValue","onUpdate:modelValue"]),x($(Fs),{modelValue:O.type,"onUpdate:modelValue":b=>O.type=b,placeholder:"类型",style:{width:"100px"}},{default:A(()=>[x($(Et),{label:"输入",value:"target"}),x($(Et),{label:"输出",value:"source"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),x($(Fs),{modelValue:O.position,"onUpdate:modelValue":b=>O.position=b,placeholder:"位置",style:{width:"100px"}},{default:A(()=>[x($(Et),{label:"顶部",value:"top"}),x($(Et),{label:"底部",value:"bottom"}),x($(Et),{label:"左侧",value:"left"}),x($(Et),{label:"右侧",value:"right"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),x($($e),{type:"danger",link:"",onClick:b=>c(y)},{default:A(()=>m[12]||(m[12]=[te("删除")])),_:2},1032,["onClick"])]))),128))]),_:1})]),_:1}),x($(ii),{label:"操作按钮"},{default:A(()=>[x($(_l),{class:"actions"},{header:A(()=>[q("div",aC,[m[14]||(m[14]=q("span",null,"按钮列表",-1)),x($($e),{type:"primary",link:"",onClick:h},{default:A(()=>m[13]||(m[13]=[te("添加按钮")])),_:1})])]),default:A(()=>[(G(!0),K(ke,null,Xe(o.actions,(O,y)=>(G(),K("div",{key:y,class:"action-item"},[x($(Ji),{modelValue:O.label,"onUpdate:modelValue":b=>O.label=b,placeholder:"按钮文本",style:{width:"120px"}},null,8,["modelValue","onUpdate:modelValue"]),x($(Ji),{modelValue:O.value,"onUpdate:modelValue":b=>O.value=b,placeholder:"动作值",style:{width:"120px"}},null,8,["modelValue","onUpdate:modelValue"]),x($($e),{type:"danger",link:"",onClick:b=>d(y)},{default:A(()=>m[15]||(m[15]=[te("删除")])),_:2},1032,["onClick"])]))),128))]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]))}}),uC=yt(lC,[["__scopeId","data-v-f63c7f83"]]),cC={name:"NodeToolbar",compatConfig:{MODE:3},inheritAttrs:!1},Fi=Oe({...cC,props:{nodeId:null,isVisible:{type:Boolean},position:{default:ce.Top},offset:{default:10},align:{default:"center"}},setup(n){const e=n,t=Wn(tl,null),{viewportRef:i,viewport:s,getSelectedNodes:r,findNode:o}=Le();function a(f,p,m,O,y){let b=.5;y==="start"?b=0:y==="end"&&(b=1);let v=[(f.x+f.width*b)*p.zoom+p.x,f.y*p.zoom+p.y-O],g=[-100*b,-100];switch(m){case ce.Right:v=[(f.x+f.width)*p.zoom+p.x+O,(f.y+f.height*b)*p.zoom+p.y],g=[0,-100*b];break;case ce.Bottom:v[1]=(f.y+f.height)*p.zoom+p.y+O,g[1]=0;break;case ce.Left:v=[f.x*p.zoom+p.x-O,(f.y+f.height*b)*p.zoom+p.y],g=[-100,-100*b];break}return`translate(${v[0]}px, ${v[1]}px) translate(${g[0]}%, ${g[1]}%)`}const l=pe(()=>(Array.isArray(e.nodeId)?e.nodeId:[e.nodeId||t||""]).reduce((f,p)=>{const m=o(p);return m&&f.push(m),f},[])),u=pe(()=>typeof e.isVisible=="boolean"?e.isVisible:l.value.length===1&&l.value[0].selected&&r.value.length===1),c=pe(()=>Ka(l.value)),h=pe(()=>Math.max(...l.value.map(f=>(f.computedPosition.z||1)+1))),d=pe(()=>({position:"absolute",transform:a(c.value,s.value,e.position,e.offset,e.align),zIndex:h.value}));return(f,p)=>(G(),be(Yy,{to:$(i),disabled:!$(i)},[$(u)&&$(l).length?(G(),K("div",Xt({key:0},f.$attrs,{style:$(d),class:"vue-flow__node-toolbar"}),[Be(f.$slots,"default")],16)):Ee("",!0)],8,["to","disabled"]))}}),hC={class:"label"},dC={class:"status"},fC=Oe({__name:"CustomNode",props:{id:{},selected:{type:Boolean},data:{}},emits:["update"],setup(n,{emit:e}){const t=n,i=e;function s(r){i("update",t.id,r)}return(r,o)=>{var a,l,u,c,h;return G(),K("div",{class:Ge(["custom-node",{selected:t.selected}])},[x($(Jt),{"min-width":80,"min-height":100}),(G(!0),K(ke,null,Xe((a=t.data)==null?void 0:a.handles,d=>(G(),be($(Ot),{key:d.id,id:d.id,type:d.type,position:d.position,class:"handle"},null,8,["id","type","position"]))),128)),(u=(l=t.data)==null?void 0:l.actions)!=null&&u.length?(G(),be($(Fi),{key:0},{default:A(()=>[(G(!0),K(ke,null,Xe(t.data.actions,d=>(G(),be($($e),{key:d.value,size:"small",onClick:f=>s(d.value)},{default:A(()=>[te(ve(d.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})):Ee("",!0),q("div",hC,ve(((c=t.data)==null?void 0:c.label)||"自定义组件"),1),q("div",dC,[(G(!0),K(ke,null,Xe((h=t.data)==null?void 0:h.fields,d=>(G(),K("div",{key:d.id},ve(d.label)+": "+ve(d.value||"N/A")+" "+ve(d.unit),1))),128))])],2)}}}),pC=yt(fC,[["__scopeId","data-v-9e4cfdeb"]]),mC={class:"label"},gC={class:"status"},OC=Oe({__name:"FuelTank",props:{id:{},selected:{type:Boolean},data:{}},emits:["update"],setup(n,{emit:e}){const t=n,i=e;function s(r){i("update",t.id,r)}return(r,o)=>{var a,l,u,c;return G(),K("div",{class:Ge(["custom-node tank",{selected:t.selected}])},[x($(Jt),{"min-width":80,"min-height":100}),x($(Ot),{id:"pressurant",type:"target",position:"top",class:"handle"}),x($(Ot),{id:"output",type:"source",position:"bottom",class:"handle"}),x($(Fi),null,{default:A(()=>[x($($e),{size:"small",onClick:o[0]||(o[0]=h=>s("FILL"))},{default:A(()=>o[3]||(o[3]=[te("加注")])),_:1}),x($($e),{size:"small",onClick:o[1]||(o[1]=h=>s("DRAIN"))},{default:A(()=>o[4]||(o[4]=[te("排空")])),_:1}),x($($e),{size:"small",onClick:o[2]||(o[2]=h=>s("VENT"))},{default:A(()=>o[5]||(o[5]=[te("排气")])),_:1})]),_:1}),q("div",mC,ve(((a=t.data)==null?void 0:a.label)||"燃料罐"),1),q("div",gC,[q("div",null,"压力: "+ve(((l=t.data)==null?void 0:l.pressure)||"N/A")+" MPa",1),q("div",null,"温度: "+ve(((u=t.data)==null?void 0:u.temperature)||"N/A")+" ℃",1),q("div",null,"液位: "+ve(((c=t.data)==null?void 0:c.level)||"N/A")+" %",1)])],2)}}}),yC={class:"label"},vC={class:"status"},wC=Oe({__name:"OxidizerTank",props:{id:{},selected:{type:Boolean},data:{}},emits:["update"],setup(n,{emit:e}){const t=n,i=e;function s(r){i("update",t.id,r)}return(r,o)=>{var a,l,u,c;return G(),K("div",{class:Ge(["custom-node tank oxidizer",{selected:t.selected}])},[x($(Jt),{"min-width":80,"min-height":100}),x($(Ot),{id:"pressurant",type:"target",position:"top",class:"handle"}),x($(Ot),{id:"output",type:"source",position:"bottom",class:"handle"}),x($(Fi),null,{default:A(()=>[x($($e),{size:"small",onClick:o[0]||(o[0]=h=>s("FILL"))},{default:A(()=>o[3]||(o[3]=[te("加注")])),_:1}),x($($e),{size:"small",onClick:o[1]||(o[1]=h=>s("DRAIN"))},{default:A(()=>o[4]||(o[4]=[te("排空")])),_:1}),x($($e),{size:"small",onClick:o[2]||(o[2]=h=>s("VENT"))},{default:A(()=>o[5]||(o[5]=[te("排气")])),_:1})]),_:1}),q("div",yC,ve(((a=t.data)==null?void 0:a.label)||"氧化剂罐"),1),q("div",vC,[q("div",null,"压力: "+ve(((l=t.data)==null?void 0:l.pressure)||"N/A")+" MPa",1),q("div",null,"温度: "+ve(((u=t.data)==null?void 0:u.temperature)||"N/A")+" ℃",1),q("div",null,"液位: "+ve(((c=t.data)==null?void 0:c.level)||"N/A")+" %",1)])],2)}}}),bC={class:"label"},xC={class:"status"},SC=Oe({__name:"PressurantTank",props:{id:{},selected:{type:Boolean},data:{}},emits:["update"],setup(n,{emit:e}){const t=n,i=e;function s(r){i("update",t.id,r)}return(r,o)=>{var a,l,u;return G(),K("div",{class:Ge(["custom-node tank pressurant",{selected:t.selected}])},[x($(Jt),{"min-width":70,"min-height":90}),x($(Ot),{id:"output",type:"source",position:"bottom",class:"handle"}),x($(Fi),null,{default:A(()=>[x($($e),{size:"small",onClick:o[0]||(o[0]=c=>s("FILL"))},{default:A(()=>o[2]||(o[2]=[te("充气")])),_:1}),x($($e),{size:"small",onClick:o[1]||(o[1]=c=>s("VENT"))},{default:A(()=>o[3]||(o[3]=[te("排气")])),_:1})]),_:1}),q("div",bC,ve(((a=t.data)==null?void 0:a.label)||"增压气罐"),1),q("div",xC,[q("div",null,"压力: "+ve(((l=t.data)==null?void 0:l.pressure)||"N/A")+" MPa",1),q("div",null,"温度: "+ve(((u=t.data)==null?void 0:u.temperature)||"N/A")+" ℃",1)])],2)}}}),_C={class:"label"},$C={class:"status"},kC=Oe({__name:"Engine",props:{id:{},selected:{type:Boolean},data:{}},emits:["update"],setup(n,{emit:e}){const t=n,i=e;function s(r){i("update",t.id,r)}return(r,o)=>{var a,l,u,c;return G(),K("div",{class:Ge(["custom-node engine",{selected:t.selected}])},[x($(Jt),{"min-width":100,"min-height":120}),x($(Ot),{id:"fuel",type:"target",position:"left",class:"handle"}),x($(Ot),{id:"oxidizer",type:"source",position:"right",class:"handle"}),x($(Fi),null,{default:A(()=>[x($($e),{size:"small",onClick:o[0]||(o[0]=h=>s("START"))},{default:A(()=>o[3]||(o[3]=[te("点火")])),_:1}),x($($e),{size:"small",onClick:o[1]||(o[1]=h=>s("SHUTDOWN"))},{default:A(()=>o[4]||(o[4]=[te("关机")])),_:1}),x($($e),{size:"small",onClick:o[2]||(o[2]=h=>s("PURGE"))},{default:A(()=>o[5]||(o[5]=[te("吹洗")])),_:1})]),_:1}),q("div",_C,ve(((a=t.data)==null?void 0:a.label)||"推进器"),1),q("div",$C,[q("div",null,"推力: "+ve(((l=t.data)==null?void 0:l.thrust)||"N/A")+" kN",1),q("div",null,"室压: "+ve(((u=t.data)==null?void 0:u.chamber_pressure)||"N/A")+" MPa",1),q("div",null,"混比: "+ve(((c=t.data)==null?void 0:c.mixture_ratio)||"N/A"),1)])],2)}}}),PC={class:"label"},QC={class:"status"},TC=Oe({__name:"Valve",props:{id:{},selected:{type:Boolean},data:{}},emits:["update"],setup(n,{emit:e}){const t=n,i=e;function s(r){i("update",t.id,r)}return(r,o)=>{var a,l,u;return G(),K("div",{class:Ge(["custom-node valve",{selected:t.selected,open:((a=t.data)==null?void 0:a.value)==="OPEN"}])},[x($(Jt),{"min-width":30,"min-height":20}),x($(Ot),{id:"input",type:"target",position:"left",class:"handle"}),x($(Ot),{id:"output",type:"source",position:"right",class:"handle"}),x($(Fi),null,{default:A(()=>[x($($e),{size:"small",onClick:o[0]||(o[0]=c=>s("OPEN"))},{default:A(()=>o[2]||(o[2]=[te("开启")])),_:1}),x($($e),{size:"small",onClick:o[1]||(o[1]=c=>s("CLOSE"))},{default:A(()=>o[3]||(o[3]=[te("关闭")])),_:1})]),_:1}),q("div",PC,ve(((l=t.data)==null?void 0:l.label)||"阀门"),1),q("div",QC,ve(((u=t.data)==null?void 0:u.value)||"关闭"),1)],2)}}}),AC={class:"label"},CC=Oe({__name:"CheckValve",props:{id:{},selected:{type:Boolean},data:{}},setup(n){const e=n;return(t,i)=>{var s;return G(),K("div",{class:Ge(["custom-node check-valve",{selected:e.selected}])},[x($(Jt),{"min-width":30,"min-height":20}),x($(Ot),{id:"target",type:"target",position:"left",class:"handle"}),x($(Ot),{id:"source",type:"source",position:"right",class:"handle"}),q("div",AC,ve(((s=e.data)==null?void 0:s.label)||"单向阀"),1)],2)}}}),EC=yt(CC,[["__scopeId","data-v-199a83a6"]]),MC={class:"label"},RC={class:"status"},ZC=Oe({__name:"Regulator",props:{id:{},selected:{type:Boolean},data:{}},emits:["update"],setup(n,{emit:e}){const t=n,i=e;function s(r){i("update",t.id,r)}return(r,o)=>{var a,l;return G(),K("div",{class:Ge(["custom-node regulator",{selected:t.selected}])},[x($(Jt),{"min-width":70,"min-height":50}),x($(Fi),null,{default:A(()=>[x($($e),{size:"small",onClick:o[0]||(o[0]=u=>s("SET"))},{default:A(()=>o[1]||(o[1]=[te("设定")])),_:1})]),_:1}),q("div",MC,ve(((a=t.data)==null?void 0:a.label)||"调压阀"),1),q("div",RC,"设定: "+ve(((l=t.data)==null?void 0:l.setpoint)||"N/A")+" MPa",1)],2)}}}),DC=yt(ZC,[["__scopeId","data-v-3915b64a"]]),NC={class:"pipeline-panel"},IC={class:"toolbar"},LC={class:"label"},zC={class:"value"},VC={class:"label"},XC={class:"value"},BC={class:"label"},UC={class:"value"},jC=Oe({__name:"PipelinePanel",setup(n){const{nodes:e,edges:t,addNodes:i,getNode:s,setNodes:r,addEdges:o,setEdges:a,project:l,elements:u}=Le(),c=ae(!1),h=ae(null),d=ae(!1),f=ra({style:"default",color:"#333",width:10}),p=[{label:"实线",value:"default"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}];function m(){var E,X,H;if(!h.value)return;const Y=h.value;f.style=((E=Y.style)==null?void 0:E.type)||"default",f.color=((X=Y.style)==null?void 0:X.stroke)||"#333",f.width=((H=Y.style)==null?void 0:H.strokeWidth)||2,d.value=!0}function O(){if(!h.value)return;const Y=h.value,E={stroke:f.color,strokeWidth:f.width,strokeDasharray:f.style==="dashed"?"5 5":f.style==="dotted"?"2 2":void 0};Object.assign(Y.style,E),d.value=!1,D()}function y({edge:Y}){h.value=Y}const b=ae(null),v=ae(null),g=ae(!1),k=ae(!1),S=ra({past:[],future:[]}),Q=[{id:"pressurant-1",type:"pressurant",position:{x:100,y:40},data:{label:"氦气瓶",pressure:"30.0",temperature:"25.0"}},{id:"pressure-1",type:"pressure",position:{x:100,y:150},data:{label:"P1",value:"30.0"}},{id:"regulator-1",type:"regulator",position:{x:100,y:260},data:{label:"主调压阀",setpoint:"2.0"}},{id:"pressure-2",type:"pressure",position:{x:100,y:250},data:{label:"P2",value:"2.0"}},{id:"oxidizer-1",type:"oxidizer",position:{x:300,y:100},data:{label:"液氧罐",pressure:"1.8",temperature:"-183.0",level:"95"}},{id:"temperature-1",type:"temperature",position:{x:300,y:230},data:{label:"T1",value:"-183.0"}},{id:"check_valve-1",type:"check_valve",position:{x:300,y:360},data:{label:"单向阀1"}},{id:"valve-1",type:"valve",position:{x:300,y:420},data:{label:"氧化剂阀"}},{id:"flow-1",type:"flow",position:{x:300,y:520},data:{label:"F1",value:"0.0"}},{id:"fuel-1",type:"fuel",position:{x:500,y:100},data:{label:"煤油罐",pressure:"1.8",temperature:"15.0",level:"95"}},{id:"temperature-2",type:"temperature",position:{x:500,y:230},data:{label:"T2",value:"15.0"}},{id:"check_valve-2",type:"check_valve",position:{x:500,y:360},data:{label:"单向阀2"}},{id:"valve-2",type:"valve",position:{x:500,y:420},data:{label:"燃料阀"}},{id:"flow-2",type:"flow",position:{x:500,y:520},data:{label:"F2",value:"0.0"}},{id:"engine-1",type:"engine",position:{x:325,y:660},data:{label:"主发动机",thrust:"0.0",chamber_pressure:"0.0",mixture_ratio:"2.5"}}],T=[{id:"e1-2",source:"pressurant-1",target:"pressure-1",style:{strokeWidth:5}},{id:"e2-3",source:"pressure-1",target:"regulator-1",style:{strokeWidth:5}},{id:"e3-4",source:"regulator-1",target:"pressure-2",style:{strokeWidth:5}},{id:"e4-5",source:"pressure-2",target:"oxidizer-1",style:{strokeWidth:5}},{id:"e4-6",source:"pressure-2",target:"fuel-1",style:{strokeWidth:5}},{id:"e5-7",source:"oxidizer-1",target:"temperature-1",style:{strokeWidth:5}},{id:"e7-8",source:"temperature-1",target:"check_valve-1",style:{strokeWidth:5}},{id:"e8-9",source:"check_valve-1",target:"valve-1",style:{strokeWidth:5}},{id:"e9-10",source:"valve-1",target:"flow-1",style:{strokeWidth:5}},{id:"e10-15",source:"flow-1",target:"engine-1",style:{strokeWidth:5}},{id:"e6-11",source:"fuel-1",target:"temperature-2",style:{strokeWidth:5}},{id:"e11-12",source:"temperature-2",target:"check_valve-2",style:{strokeWidth:5}},{id:"e12-13",source:"check_valve-2",target:"valve-2",style:{strokeWidth:5}},{id:"e13-14",source:"valve-2",target:"flow-2",style:{strokeWidth:5}},{id:"e14-15",source:"flow-2",target:"engine-1",style:{strokeWidth:5}}];function P(Y,E){const X=s(Y);X&&(X.data={...X.data,value:E},D())}function B(Y){const E=l({x:100,y:100}),X={id:`${Y}-${Date.now()}`,type:Y,position:E,data:{label:"",value:""}};i([X]),D()}function W(){c.value=!0}function C(Y){const E=l({x:100,y:100}),X={id:`custom-${Date.now()}`,type:"custom",position:E,data:{...Y,label:Y.label||"自定义组件"}};i([X]),D()}function j({node:Y}){b.value=Y}function w(){b.value=null,h.value=null}function R(){b.value&&(v.value=JSON.parse(JSON.stringify(b.value)))}function _(){if(v.value){const Y={...v.value,id:`${v.value.type}-${Date.now()}`,position:{x:v.value.position.x+50,y:v.value.position.y+50}};i([Y]),D()}}function D(){S.past.push({nodes:JSON.parse(JSON.stringify(e)),edges:JSON.parse(JSON.stringify(t))}),S.future=[],V()}function N(){if(S.past.length>0){const Y={nodes:e,edges:t};S.future.unshift(Y);const E=S.past.pop();E&&(r(E.nodes),a(E.edges),V())}}function U(){if(S.future.length>0){const Y={nodes:e,edges:t};S.past.push(Y);const E=S.future.shift();E&&(r(E.nodes),a(E.edges),V())}}function V(){g.value=S.past.length>0,k.value=S.future.length>0}return St(()=>{i(Q),o(T),window.addEventListener("keydown",Y=>{if(Y.metaKey||Y.ctrlKey)switch(Y.key){case"c":b.value&&R();break;case"v":v.value&&_();break;case"z":!Y.shiftKey&&g.value?N():Y.shiftKey&&k.value&&U();break}})}),(Y,E)=>(G(),K("div",NC,[q("div",IC,[x($(es),null,{default:A(()=>[x($($e),{onClick:E[0]||(E[0]=X=>B("fuel"))},{default:A(()=>E[17]||(E[17]=[te("燃料罐")])),_:1}),x($($e),{onClick:E[1]||(E[1]=X=>B("oxidizer"))},{default:A(()=>E[18]||(E[18]=[te("氧化剂罐")])),_:1}),x($($e),{onClick:E[2]||(E[2]=X=>B("pressurant"))},{default:A(()=>E[19]||(E[19]=[te("增压气罐")])),_:1}),x($($e),{onClick:E[3]||(E[3]=X=>B("engine"))},{default:A(()=>E[20]||(E[20]=[te("推进器")])),_:1})]),_:1}),x($(es),{style:{"margin-left":"12px"}},{default:A(()=>[x($($e),{onClick:E[4]||(E[4]=X=>B("valve"))},{default:A(()=>E[21]||(E[21]=[te("阀门")])),_:1}),x($($e),{onClick:E[5]||(E[5]=X=>B("check_valve"))},{default:A(()=>E[22]||(E[22]=[te("单向阀")])),_:1}),x($($e),{onClick:E[6]||(E[6]=X=>B("regulator"))},{default:A(()=>E[23]||(E[23]=[te("调压阀")])),_:1})]),_:1}),x($(es),{style:{"margin-left":"12px"}},{default:A(()=>[x($($e),{onClick:E[7]||(E[7]=X=>B("pressure"))},{default:A(()=>E[24]||(E[24]=[te("压力传感器")])),_:1}),x($($e),{onClick:E[8]||(E[8]=X=>B("temperature"))},{default:A(()=>E[25]||(E[25]=[te("温度传感器")])),_:1}),x($($e),{onClick:E[9]||(E[9]=X=>B("flow"))},{default:A(()=>E[26]||(E[26]=[te("流量传感器")])),_:1})]),_:1}),x($(es),{style:{"margin-left":"12px"}},{default:A(()=>[x($($e),{type:"primary",onClick:W},{default:A(()=>E[27]||(E[27]=[te("添加自定义组件")])),_:1})]),_:1}),x($(es),{style:{"margin-left":"12px"}},{default:A(()=>[x($($e),{onClick:R,disabled:!b.value},{default:A(()=>E[28]||(E[28]=[te("复制")])),_:1},8,["disabled"]),x($($e),{onClick:_,disabled:!v.value},{default:A(()=>E[29]||(E[29]=[te("粘贴")])),_:1},8,["disabled"]),x($($e),{onClick:N,disabled:!g.value},{default:A(()=>E[30]||(E[30]=[te("撤销")])),_:1},8,["disabled"]),x($($e),{onClick:U,disabled:!k.value},{default:A(()=>E[31]||(E[31]=[te("重做")])),_:1},8,["disabled"])]),_:1}),x($(es),{style:{"margin-left":"12px"}},{default:A(()=>[x($($e),{onClick:m,disabled:!h.value},{default:A(()=>E[32]||(E[32]=[te("编辑连接线")])),_:1},8,["disabled"])]),_:1})]),x(uC,{modelValue:c.value,"onUpdate:modelValue":E[10]||(E[10]=X=>c.value=X),onConfirm:C},null,8,["modelValue"]),x($(om),{modelValue:d.value,"onUpdate:modelValue":E[15]||(E[15]=X=>d.value=X),title:"编辑连接线样式",width:"400px"},{footer:A(()=>[x($($e),{onClick:E[14]||(E[14]=X=>d.value=!1)},{default:A(()=>E[33]||(E[33]=[te("取消")])),_:1}),x($($e),{type:"primary",onClick:O},{default:A(()=>E[34]||(E[34]=[te("确定")])),_:1})]),default:A(()=>[x($(am),{model:f},{default:A(()=>[x($(ii),{label:"线型"},{default:A(()=>[x($(Fs),{modelValue:f.style,"onUpdate:modelValue":E[11]||(E[11]=X=>f.style=X)},{default:A(()=>[(G(),K(ke,null,Xe(p,X=>x($(Et),{key:X.value,label:X.label,value:X.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),x($(ii),{label:"颜色"},{default:A(()=>[x($(Jy),{modelValue:f.color,"onUpdate:modelValue":E[12]||(E[12]=X=>f.color=X)},null,8,["modelValue"])]),_:1}),x($(ii),{label:"粗细"},{default:A(()=>[x($(e1),{modelValue:f.width,"onUpdate:modelValue":E[13]||(E[13]=X=>f.width=X),min:1,max:10},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),x($(I$),{modelValue:$(u),"onUpdate:modelValue":E[16]||(E[16]=X=>ja(u)?u.value=X:null),"default-viewport":{zoom:1},"min-zoom":.2,"max-zoom":4,class:"pipeline-canvas",onNodeClick:j,onPaneClick:w,onEdgeClick:y},{"node-fuel":A(X=>[x(OC,Xt(X,{onUpdate:P}),null,16)]),"node-oxidizer":A(X=>[x(wC,Xt(X,{onUpdate:P}),null,16)]),"node-pressurant":A(X=>[x(SC,Xt(X,{onUpdate:P}),null,16)]),"node-engine":A(X=>[x(kC,Xt(X,{onUpdate:P}),null,16)]),"node-valve":A(X=>[x(TC,Xt(X,{onUpdate:P}),null,16)]),"node-check_valve":A(X=>[x(EC,rm(Gy(X)),null,16)]),"node-regulator":A(X=>[x(DC,Xt(X,{onUpdate:P}),null,16)]),"node-pressure":A(X=>[q("div",{class:Ge(["custom-node sensor pressure",{selected:X.selected}])},[x($(Jt),{"min-width":60,"min-height":60}),q("div",LC,ve(X.data.label||"压力传感器"),1),q("div",zC,ve(X.data.value||"N/A")+" MPa",1)],2)]),"node-temperature":A(X=>[q("div",{class:Ge(["custom-node sensor temperature",{selected:X.selected}])},[x($(Jt),{"min-width":60,"min-height":60}),q("div",VC,ve(X.data.label||"温度传感器"),1),q("div",XC,ve(X.data.value||"N/A")+" ℃",1)],2)]),"node-flow":A(X=>[q("div",{class:Ge(["custom-node sensor flow",{selected:X.selected}])},[x($(Jt),{"min-width":60,"min-height":60}),q("div",BC,ve(X.data.label||"流量传感器"),1),q("div",UC,ve(X.data.value||"N/A")+" kg/s",1)],2)]),"node-custom":A(X=>[x(pC,Xt(X,{onUpdate:P}),null,16)]),default:A(()=>[x($(W$),{"pattern-color":"#aaa",gap:20}),x($(Sk)),x($(rT))]),_:1},8,["modelValue"])]))}}),WC=yt(jC,[["__scopeId","data-v-b5b33707"]]),lf={type:"change"},mh={type:"start"},gO={type:"end"},Oo=new l1,uf=new u1,qC=Math.cos(70*hr.DEG2RAD),ot=new Je,_t=2*Math.PI,Ve={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},Bl=1e-6;class YC extends a1{constructor(e,t=null){super(e,t),this.state=Ve.NONE,this.enabled=!0,this.target=new Je,this.cursor=new Je,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:us.ROTATE,MIDDLE:us.DOLLY,RIGHT:us.PAN},this.touches={ONE:rs.ROTATE,TWO:rs.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new Je,this._lastQuaternion=new oa,this._lastTargetPosition=new Je,this._quat=new oa().setFromUnitVectors(e.up,new Je(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new Xh,this._sphericalDelta=new Xh,this._scale=1,this._panOffset=new Je,this._rotateStart=new Mt,this._rotateEnd=new Mt,this._rotateDelta=new Mt,this._panStart=new Mt,this._panEnd=new Mt,this._panDelta=new Mt,this._dollyStart=new Mt,this._dollyEnd=new Mt,this._dollyDelta=new Mt,this._dollyDirection=new Je,this._mouse=new Mt,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=HC.bind(this),this._onPointerDown=GC.bind(this),this._onPointerUp=FC.bind(this),this._onContextMenu=sE.bind(this),this._onMouseWheel=eE.bind(this),this._onKeyDown=tE.bind(this),this._onTouchStart=nE.bind(this),this._onTouchMove=iE.bind(this),this._onMouseDown=KC.bind(this),this._onMouseMove=JC.bind(this),this._interceptControlDown=rE.bind(this),this._interceptControlUp=oE.bind(this),this.domElement!==null&&this.connect(),this.update()}connect(){this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(e){e.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=e}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(lf),this.update(),this.state=Ve.NONE}update(e=null){const t=this.object.position;ot.copy(t).sub(this.target),ot.applyQuaternion(this._quat),this._spherical.setFromVector3(ot),this.autoRotate&&this.state===Ve.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let i=this.minAzimuthAngle,s=this.maxAzimuthAngle;isFinite(i)&&isFinite(s)&&(i<-Math.PI?i+=_t:i>Math.PI&&(i-=_t),s<-Math.PI?s+=_t:s>Math.PI&&(s-=_t),i<=s?this._spherical.theta=Math.max(i,Math.min(s,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(i+s)/2?Math.max(i,this._spherical.theta):Math.min(s,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const o=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=o!=this._spherical.radius}if(ot.setFromSpherical(this._spherical),ot.applyQuaternion(this._quatInverse),t.copy(this.target).add(ot),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let o=null;if(this.object.isPerspectiveCamera){const a=ot.length();o=this._clampDistance(a*this._scale);const l=a-o;this.object.position.addScaledVector(this._dollyDirection,l),this.object.updateMatrixWorld(),r=!!l}else if(this.object.isOrthographicCamera){const a=new Je(this._mouse.x,this._mouse.y,0);a.unproject(this.object);const l=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=l!==this.object.zoom;const u=new Je(this._mouse.x,this._mouse.y,0);u.unproject(this.object),this.object.position.sub(u).add(a),this.object.updateMatrixWorld(),o=ot.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;o!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(o).add(this.object.position):(Oo.origin.copy(this.object.position),Oo.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(Oo.direction))Bl||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Bl||this._lastTargetPosition.distanceToSquared(this.target)>Bl?(this.dispatchEvent(lf),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e!==null?_t/60*this.autoRotateSpeed*e:_t/60/60*this.autoRotateSpeed}_getZoomScale(e){const t=Math.abs(e*.01);return Math.pow(.95,this.zoomSpeed*t)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,t){ot.setFromMatrixColumn(t,0),ot.multiplyScalar(-e),this._panOffset.add(ot)}_panUp(e,t){this.screenSpacePanning===!0?ot.setFromMatrixColumn(t,1):(ot.setFromMatrixColumn(t,0),ot.crossVectors(this.object.up,ot)),ot.multiplyScalar(e),this._panOffset.add(ot)}_pan(e,t){const i=this.domElement;if(this.object.isPerspectiveCamera){const s=this.object.position;ot.copy(s).sub(this.target);let r=ot.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*r/i.clientHeight,this.object.matrix),this._panUp(2*t*r/i.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/i.clientWidth,this.object.matrix),this._panUp(t*(this.object.top-this.object.bottom)/this.object.zoom/i.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(e,t){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const i=this.domElement.getBoundingClientRect(),s=e-i.left,r=t-i.top,o=i.width,a=i.height;this._mouse.x=s/o*2-1,this._mouse.y=-(r/a)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(_t*this._rotateDelta.x/t.clientHeight),this._rotateUp(_t*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let t=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(_t*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),t=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-_t*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),t=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(_t*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),t=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-_t*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),i=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);this._rotateStart.set(i,s)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),i=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);this._panStart.set(i,s)}}_handleTouchStartDolly(e){const t=this._getSecondPointerPosition(e),i=e.pageX-t.x,s=e.pageY-t.y,r=Math.sqrt(i*i+s*s);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{const i=this._getSecondPointerPosition(e),s=.5*(e.pageX+i.x),r=.5*(e.pageY+i.y);this._rotateEnd.set(s,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(_t*this._rotateDelta.x/t.clientHeight),this._rotateUp(_t*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),i=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);this._panEnd.set(i,s)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){const t=this._getSecondPointerPosition(e),i=e.pageX-t.x,s=e.pageY-t.y,r=Math.sqrt(i*i+s*s);this._dollyEnd.set(0,r),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const o=(e.pageX+t.x)*.5,a=(e.pageY+t.y)*.5;this._updateZoomParameters(o,a)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let t=0;t=2.0 are supported."));return}const u=new zE(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});u.fileLoader.setRequestHeader(this.requestHeader);for(let c=0;c=0&&a[h]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+h+'".')}}u.setExtensions(o),u.setPlugins(a),u.parse(i,s)}parseAsync(e,t){const i=this;return new Promise(function(s,r){i.parse(e,t,s,r)})}}function lE(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const Te={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class uE{constructor(e){this.parser=e,this.name=Te.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let i=0,s=t.length;i=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class SE{constructor(e){this.parser=e,this.name=Te.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const u=i.options.manager.getHandler(a.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class _E{constructor(e){this.parser=e,this.name=Te.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const u=i.options.manager.getHandler(a.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class $E{constructor(e){this.name=Te.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,i=t.bufferViews[e];if(i.extensions&&i.extensions[this.name]){const s=i.extensions[this.name],r=this.parser.getDependency("buffer",s.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const l=s.byteOffset||0,u=s.byteLength||0,c=s.count,h=s.byteStride,d=new Uint8Array(a,l,u);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(c,h,d,s.mode,s.filter).then(function(f){return f.buffer}):o.ready.then(function(){const f=new ArrayBuffer(c*h);return o.decodeGltfBuffer(new Uint8Array(f),c,h,d,s.mode,s.filter),f})})}else return null}}class kE{constructor(e){this.name=Te.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,i=t.nodes[e];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const s=t.meshes[i.mesh];for(const u of s.primitives)if(u.mode!==Vt.TRIANGLES&&u.mode!==Vt.TRIANGLE_STRIP&&u.mode!==Vt.TRIANGLE_FAN&&u.mode!==void 0)return null;const o=i.extensions[this.name].attributes,a=[],l={};for(const u in o)a.push(this.parser.getDependency("accessor",o[u]).then(c=>(l[u]=c,l[u])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(u=>{const c=u.pop(),h=c.isGroup?c.children:[c],d=u[0].count,f=[];for(const p of h){const m=new aa,O=new Je,y=new oa,b=new Je(1,1,1),v=new d1(p.geometry,p.material,d);for(let g=0;g0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":n.search(/\.ktx2($|\?)/i)>0||n.search(/^data\:image\/ktx2/)===0?"image/ktx2":"image/png"}const LE=new aa;class zE{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new lE,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let i=!1,s=-1,r=!1,o=-1;if(typeof navigator<"u"){const a=navigator.userAgent;i=/^((?!chrome|android).)*safari/i.test(a)===!0;const l=a.match(/Version\/(\d+)/);s=i&&l?parseInt(l[1],10):-1,r=a.indexOf("Firefox")>-1,o=r?a.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>"u"||i&&s<17||r&&o<98?this.textureLoader=new p1(this.options.manager):this.textureLoader=new m1(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new Yc(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const i=this,s=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(o){const a={scene:o[0][s.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:s.asset,parser:i,userData:{}};return wi(r,a,s),Qn(a,s),Promise.all(i._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){for(const l of a.scenes)l.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],i=this.json.meshes||[];for(let s=0,r=t.length;s{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[u,c]of o.children.entries())r(c,a.children[u])};return r(i,s),s.name+="_instance_"+e.uses[t]++,s}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let i=0;i=2&&O.setY(P,S[Q*l+1]),l>=3&&O.setZ(P,S[Q*l+2]),l>=4&&O.setW(P,S[Q*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}O.normalized=p}return O})}loadTexture(e){const t=this.json,i=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const l=i.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,i){const s=this,r=this.json,o=r.textures[e],a=r.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const u=this.loadImageSource(t,i).then(function(c){c.flipY=!1,c.name=o.name||a.name||"",c.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(c.name=a.uri);const d=(r.samplers||{})[o.sampler]||{};return c.magFilter=df[d.magFilter]||bu,c.minFilter=df[d.minFilter]||dm,c.wrapS=ff[d.wrapS]||xu,c.wrapT=ff[d.wrapT]||xu,c.generateMipmaps=!c.isCompressedTexture&&c.minFilter!==fm&&c.minFilter!==bu,s.associations.set(c,{textures:e}),c}).catch(function(){return null});return this.textureCache[l]=u,u}loadImageSource(e,t){const i=this,s=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(h=>h.clone());const o=s.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",u=!1;if(o.bufferView!==void 0)l=i.getDependency("bufferView",o.bufferView).then(function(h){u=!0;const d=new Blob([h],{type:o.mimeType});return l=a.createObjectURL(d),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const c=Promise.resolve(l).then(function(h){return new Promise(function(d,f){let p=d;t.isImageBitmapLoader===!0&&(p=function(m){const O=new Bh(m);O.needsUpdate=!0,d(O)}),t.load(dr.resolveURL(h,r.path),p,void 0,f)})}).then(function(h){return u===!0&&a.revokeObjectURL(l),Qn(h,o),h.userData.mimeType=o.mimeType||IE(o.uri),h}).catch(function(h){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),h});return this.sourceCache[e]=c,c}assignTexture(e,t,i,s){const r=this;return this.getDependency("texture",i.index).then(function(o){if(!o)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(o=o.clone(),o.channel=i.texCoord),r.extensions[Te.KHR_TEXTURE_TRANSFORM]){const a=i.extensions!==void 0?i.extensions[Te.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=r.associations.get(o);o=r.extensions[Te.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,l)}}return s!==void 0&&(o.colorSpace=s),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let i=e.material;const s=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new Ks,fr.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,l.sizeAttenuation=!1,this.cache.add(a,l)),i=l}else if(e.isLine){const a="LineBasicMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new No,fr.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,this.cache.add(a,l)),i=l}if(s||r||o){let a="ClonedMaterial:"+i.uuid+":";s&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=i.clone(),r&&(l.vertexColors=!0),o&&(l.flatShading=!0),s&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(i))),i=l}e.material=i}getMaterialType(){return Si}loadMaterial(e){const t=this,i=this.json,s=this.extensions,r=i.materials[e];let o;const a={},l=r.extensions||{},u=[];if(l[Te.KHR_MATERIALS_UNLIT]){const h=s[Te.KHR_MATERIALS_UNLIT];o=h.getMaterialType(),u.push(h.extendParams(a,r,t))}else{const h=r.pbrMetallicRoughness||{};if(a.color=new Ln(1,1,1),a.opacity=1,Array.isArray(h.baseColorFactor)){const d=h.baseColorFactor;a.color.setRGB(d[0],d[1],d[2],zn),a.opacity=d[3]}h.baseColorTexture!==void 0&&u.push(t.assignTexture(a,"map",h.baseColorTexture,ws)),a.metalness=h.metallicFactor!==void 0?h.metallicFactor:1,a.roughness=h.roughnessFactor!==void 0?h.roughnessFactor:1,h.metallicRoughnessTexture!==void 0&&(u.push(t.assignTexture(a,"metalnessMap",h.metallicRoughnessTexture)),u.push(t.assignTexture(a,"roughnessMap",h.metallicRoughnessTexture))),o=this._invokeOne(function(d){return d.getMaterialType&&d.getMaterialType(e)}),u.push(Promise.all(this._invokeAll(function(d){return d.extendMaterialParams&&d.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=x1);const c=r.alphaMode||jl.OPAQUE;if(c===jl.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,c===jl.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==Js&&(u.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new Mt(1,1),r.normalTexture.scale!==void 0)){const h=r.normalTexture.scale;a.normalScale.set(h,h)}if(r.occlusionTexture!==void 0&&o!==Js&&(u.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==Js){const h=r.emissiveFactor;a.emissive=new Ln().setRGB(h[0],h[1],h[2],zn)}return r.emissiveTexture!==void 0&&o!==Js&&u.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,ws)),Promise.all(u).then(function(){const h=new o(a);return r.name&&(h.name=r.name),Qn(h,r),t.associations.set(h,{materials:e}),r.extensions&&wi(s,h,r),h})}createUniqueName(e){const t=S1.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,i=this.extensions,s=this.primitiveCache;function r(a){return i[Te.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return pf(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&DE(y,r),y.name=t.createUniqueName(r.name||"mesh_"+e),Qn(y,r),O.extensions&&wi(s,y,O),t.assignFinalMaterial(y),h.push(y)}for(let f=0,p=h.length;f1?c=new Ni:u.length===1?c=u[0]:c=new hm,c!==u[0])for(let h=0,d=u.length;h{const h=new Map;for(const[d,f]of s.associations)(d instanceof fr||d instanceof Bh)&&h.set(d,f);return c.traverse(d=>{const f=s.associations.get(d);f!=null&&h.set(d,f)}),h};return s.associations=u(r),r})}_createAnimationTracks(e,t,i,s,r){const o=[],a=e.name?e.name:e.uuid,l=[];Yn[r.path]===Yn.weights?e.traverse(function(d){d.morphTargetInfluences&&l.push(d.name?d.name:d.uuid)}):l.push(a);let u;switch(Yn[r.path]){case Yn.weights:u=jh;break;case Yn.rotation:u=Wh;break;case Yn.position:case Yn.scale:u=Uh;break;default:switch(i.itemSize){case 1:u=jh;break;case 2:case 3:default:u=Uh;break}break}const c=s.interpolation!==void 0?ME[s.interpolation]:mm,h=this._getArrayFromAccessor(i);for(let d=0,f=l.length;d0?r[r.length-1]:"",smooth:o!==void 0?o.smooth:this.smooth,groupStart:o!==void 0?o.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(l){const u={index:typeof l=="number"?l:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return u.clone=this.clone.bind(u),u}};return this.materials.push(a),a},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(s){const r=this.currentMaterial();if(r&&r.groupEnd===-1&&(r.groupEnd=this.geometry.vertices.length/3,r.groupCount=r.groupEnd-r.groupStart,r.inherited=!1),s&&this.materials.length>1)for(let o=this.materials.length-1;o>=0;o--)this.materials[o].groupCount<=0&&this.materials.splice(o,1);return s&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),r}},i&&i.name&&typeof i.clone=="function"){const s=i.clone(0);s.inherited=!0,this.object.materials.push(s)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const i=parseInt(e,10);return(i>=0?i-1:i+t/3)*3},parseNormalIndex:function(e,t){const i=parseInt(e,10);return(i>=0?i-1:i+t/3)*3},parseUVIndex:function(e,t){const i=parseInt(e,10);return(i>=0?i-1:i+t/2)*2},addVertex:function(e,t,i){const s=this.vertices,r=this.object.geometry.vertices;r.push(s[e+0],s[e+1],s[e+2]),r.push(s[t+0],s[t+1],s[t+2]),r.push(s[i+0],s[i+1],s[i+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,i){const s=this.normals,r=this.object.geometry.normals;r.push(s[e+0],s[e+1],s[e+2]),r.push(s[t+0],s[t+1],s[t+2]),r.push(s[i+0],s[i+1],s[i+2])},addFaceNormal:function(e,t,i){const s=this.vertices,r=this.object.geometry.normals;gf.fromArray(s,e),ql.fromArray(s,t),Of.fromArray(s,i),Lt.subVectors(Of,ql),yf.subVectors(gf,ql),Lt.cross(yf),Lt.normalize(),r.push(Lt.x,Lt.y,Lt.z),r.push(Lt.x,Lt.y,Lt.z),r.push(Lt.x,Lt.y,Lt.z)},addColor:function(e,t,i){const s=this.colors,r=this.object.geometry.colors;s[e]!==void 0&&r.push(s[e+0],s[e+1],s[e+2]),s[t]!==void 0&&r.push(s[t+0],s[t+1],s[t+2]),s[i]!==void 0&&r.push(s[i+0],s[i+1],s[i+2])},addUV:function(e,t,i){const s=this.uvs,r=this.object.geometry.uvs;r.push(s[e+0],s[e+1]),r.push(s[t+0],s[t+1]),r.push(s[i+0],s[i+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,i,s,r,o,a,l,u){const c=this.vertices.length;let h=this.parseVertexIndex(e,c),d=this.parseVertexIndex(t,c),f=this.parseVertexIndex(i,c);if(this.addVertex(h,d,f),this.addColor(h,d,f),a!==void 0&&a!==""){const p=this.normals.length;h=this.parseNormalIndex(a,p),d=this.parseNormalIndex(l,p),f=this.parseNormalIndex(u,p),this.addNormal(h,d,f)}else this.addFaceNormal(h,d,f);if(s!==void 0&&s!==""){const p=this.uvs.length;h=this.parseUVIndex(s,p),d=this.parseUVIndex(r,p),f=this.parseUVIndex(o,p),this.addUV(h,d,f),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let i=0,s=e.length;i=7?(yo.setRGB(parseFloat(h[4]),parseFloat(h[5]),parseFloat(h[6]),ws),t.colors.push(yo.r,yo.g,yo.b)):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(h[1]),parseFloat(h[2]),parseFloat(h[3]));break;case"vt":t.uvs.push(parseFloat(h[1]),parseFloat(h[2]));break}}else if(c==="f"){const d=u.slice(1).trim().split(mf),f=[];for(let m=0,O=d.length;m0){const b=y.split("/");f.push(b)}}const p=f[0];for(let m=1,O=f.length-1;m1){const d=s[1].trim().toLowerCase();t.object.smooth=d!=="0"&&d!=="off"}else t.object.smooth=!0;const h=t.object.currentMaterial();h&&(h.smooth=t.object.smooth)}else{if(u==="\0")continue;console.warn('THREE.OBJLoader: Unexpected line: "'+u+'"')}}t.finalize();const r=new Ni;if(r.materialLibraries=[].concat(t.materialLibraries),!(t.objects.length===1&&t.objects[0].geometry.vertices.length===0)===!0)for(let a=0,l=t.objects.length;a0&&m.setAttribute("normal",new ts(c.normals,3)),c.colors.length>0&&(p=!0,m.setAttribute("color",new ts(c.colors,3))),c.hasUVIndices===!0&&m.setAttribute("uv",new ts(c.uvs,2));const O=[];for(let b=0,v=h.length;b1){for(let b=0,v=h.length;b0){const a=new Ks({size:1,sizeAttenuation:!1}),l=new Su;l.setAttribute("position",new ts(t.vertices,3)),t.colors.length>0&&t.colors[0]!==void 0&&(l.setAttribute("color",new ts(t.colors,3)),a.vertexColors=!0);const u=new pr(l,a);r.add(u)}return r}}var YE=I1();const GE=L1(YE),HE={class:"chart-3d-container"},FE={class:"data-panel"},KE={class:"model-controls"},JE=Oe({__name:"ChartIMU",setup(n){try{kl.install({THREE:z1})}catch{}const e=en.getInstance(),t=ae(null),i=ae(0),s=ae(0),r=ae(0),o=ae("rocket"),a=ae(null),l=ae(null),u=Zs(),c=pe(()=>u.value?1710618:15790320),h=pe(()=>u.value?4210752:3368703);let d,f,p,m,O,y,b,v,g;const k=()=>{d=new V1,d.background=new Ln(c.value);const D=new X1(1.6);d.add(D),f=new j1,v=new GE,v.showPanel(0),v.dom.style.position="absolute",v.dom.style.left="0px",v.dom.style.top="0px",t.value.appendChild(v.dom),p=new pm(75,t.value.clientWidth/t.value.clientHeight,.1,1e3),p.position.set(2,2,2),p.lookAt(0,0,0),m=new B1({antialias:!0}),m.setSize(t.value.clientWidth,t.value.clientHeight),t.value.appendChild(m.domElement),y=new YC(p,m.domElement),y.enableDamping=!0,P(o.value),W()},S=()=>{const D=new Ni,N=new Yh(.5,1.4,12),U=new Si({color:h.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),V=new si(N,U);V.position.set(0,0,-.6),V.rotation.x=-Math.PI/2,D.add(V);const Y=new Gh(.4,.4,1),E=new Si({color:h.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),X=new si(Y,E);return X.position.set(0,0,.3),D.add(X),D},Q=()=>{const D=new Ni,N=new Yh(.2,.5,12),U=new Si({color:h.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),V=new si(N,U);V.position.set(0,1.05,0),D.add(V);const Y=new W1(.2,.2,1.6),E=new Si({color:h.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),X=new si(Y,E);X.position.set(0,0,0),D.add(X);const H=.09,J=1.5,me=800,oe=window.innerHeight,xe=new kl.Geometry(H,J,me),ye=new kl.Material({color:16720384});return ye.setPerspective(p.fov,oe),g=new pr(xe,ye),g.rotation.x=3.14,g.position.set(0,-.92,0),D.add(g),D},T=()=>{const D=new Ni,N=new Gh(1,1,1),U=new Si({color:h.value,metalness:.7,roughness:.3,envMapIntensity:1}),V=new si(N,U);return D.add(V),D},P=D=>{switch(O&&d.remove(O),D){case"rocket":O=Q();break;case"arrow":O=S();break;case"cube":O=T();break;case"custom":a?O=a.value:O=S();break;default:O=S()}d.add(O)},B=D=>{var Y,E;const N=(Y=D.target.files)==null?void 0:Y[0];if(!N)return;const U=(E=N.name.split(".").pop())==null?void 0:E.toLowerCase(),V=new FileReader;V.onload=X=>{var J;const H=(J=X.target)==null?void 0:J.result;if(H)if(U==="gltf"||U==="glb")new aE().parse(H,"",oe=>{a.value=oe.scene,o.value="custom",P("custom")},oe=>{We.error("加载模型失败:"+oe.message)});else if(U==="obj"){const me=new qE;try{const oe=me.parse(H);a.value=oe,o.value="custom",P("custom")}catch(oe){We.error("加载模型失败:"+oe.message)}}else We.error("不支持的文件格式,请使用.gltf、.glb或.obj格式的3D模型文件")},V.readAsText(N)},W=()=>{const D=new U1(16777215,6);d.add(D);const N=new wu(16777215,12);N.position.set(5,5,10),d.add(N);const U=new wu(16777215,1);U.position.set(-5,3,-5),d.add(U);const V=new cm(4890367,1,10);V.position.set(2,2,2),d.add(V)},C=()=>{var D=f.getDelta();b=requestAnimationFrame(C),v.begin(),O&&O.rotation.set(hr.degToRad(s.value),hr.degToRad(r.value),hr.degToRad(i.value)),g&&g.material.update(D),y.update(),m.render(d,p),v.end()},j=()=>{if(t.value&&p&&m){let D=t.value.clientWidth,N=t.value.clientHeight;p.aspect=D/N,p.updateProjectionMatrix(),m.setSize(D,N),g&&g.material.setPerspective(p.fov,N)}},w=D=>{if(!D||typeof D.pitch!="number")return;const{pitch:N,roll:U,yaw:V}=D;i.value=N,s.value=U,r.value=V},R=()=>{o.value==="arrow"?o.value="cube":(o.value,o.value="arrow"),P(o.value)},_=()=>{var D;(D=l.value)==null||D.click()};return St(()=>{k(),C(),e.on(He.DATA_UPDATE,w),window.addEventListener("resize",j)}),Oi(()=>{b&&cancelAnimationFrame(b),e.off(He.DATA_UPDATE,w),window.removeEventListener("resize",j),m.dispose()}),(D,N)=>{const U=ie("el-button");return G(),K("div",HE,[q("div",{ref_key:"container",ref:t,class:"canvas-container"},null,512),q("div",FE,[q("div",null,"Pitch: "+ve(i.value.toFixed(2))+"°",1),q("div",null,"Roll: "+ve(s.value.toFixed(2))+"°",1),q("div",null,"Yaw: "+ve(r.value.toFixed(2))+"°",1),q("div",KE,[x(U,{class:"model-switch",onClick:R,size:"small"},{default:A(()=>N[0]||(N[0]=[te(" 切换模型 ")])),_:1}),x(U,{class:"model-upload",onClick:_,size:"small"},{default:A(()=>N[1]||(N[1]=[te(" 导入模型 ")])),_:1}),q("input",{ref_key:"fileInput",ref:l,type:"file",accept:".gltf,.glb,.obj",style:{display:"none"},onChange:B},null,544)])])])}}}),vO=yt(JE,[["__scopeId","data-v-c84e5003"]]),eM={class:"chart-panel"},tM={class:"chart-controls"},nM={class:"charts-container"},iM={class:"chart-header"},sM={class:"chart-content"},rM=Oe({__name:"ChartPanel",setup(n){const e=en.getInstance(),t=Gc(),s=Vn.getInstance().useConfig("charts"),r=ae([]);let o=pe(()=>r.value.reduce((Q,T)=>Math.max(Q,T.id),0)+1);const a=Zs(),l={background:"#1e1e1e",gridColor:"#2c2c2c",textColor:"#d4d4d4",lineColors:["#4a9eff","#ff4a4a","#4aff4a","#ffd700","#ff4aff","#4affff"]},u={background:"#ffffff",gridColor:"#f0f0f0",textColor:"#333333",lineColors:["#3366ff","#ff3333","#33ff33","#ffcc00","#ff33ff","#33ffff"]},c=pe(()=>a.value?l:u),h=S=>{const Q={id:o.value,name:S,fields:[],data:[[]],timestamps:[],uplot:null,container:null};return r.value.push(Q),f(),Q},d=S=>{const Q=r.value.find(T=>T.id===S);Q&&(Q.data=[[]],Q.timestamps=[],Q.fields.forEach(()=>Q.data.push([])),Q.uplot&&Q.uplot.setData(Q.data))},f=()=>{const S=r.value.map(Q=>({id:Q.id,name:Q.name,fields:Q.fields}));s.value.list=S},p=()=>{const S=s.value.list||[];Array.isArray(S)&&S.forEach(Q=>{const T=h(Q.name);T.id=Q.id,Q.fields.forEach(P=>v(T.id,P))})},m=(S,Q)=>{const T={width:Q.clientWidth||200,height:300,cursor:{sync:{key:0}},series:[{label:"Time",value:(P,B)=>{if(!B)return"--";let W=new Date(B*1e3);return W.toLocaleString()+"."+W.getMilliseconds()}},...S.fields.map((P,B)=>({label:P,stroke:c.value.lineColors[B%c.value.lineColors.length]}))],axes:[{stroke:c.value.textColor,grid:{stroke:c.value.gridColor}},{stroke:c.value.textColor,grid:{stroke:c.value.gridColor}}],scales:{x:{time:!0}}};S.uplot=new q1(T,S.data,Q),S.container=Q},O=S=>{if(typeof S!="object"||S===null)return;const Q=Date.now();r.value.forEach(T=>{if(T.fields.length===0)return;T.timestamps.push(Q/1e3);let P=0;const B=[T.timestamps,...T.fields.map((W,C)=>{const j=S[W];let w=null;return typeof j=="number"&&(P++,w=j),T.data[C+1].push(w),T.data[C+1]})];P!=0&&(T.uplot&&T.uplot.setData(B),T.data=B)})},y=()=>{f()},b=S=>{S.data=[S.timestamps],S.fields.forEach(()=>S.data.push([])),f(),S.uplot&&(S.uplot.destroy(),S.container&&m(S,S.container))},v=(S,Q)=>{const T=r.value.find(P=>P.id===S);if(T){if(T.fields.includes(Q)){We.warning("该字段已添加到图表中");return}T.fields.push(Q),T.data.push([]),f(),T.uplot&&(T.uplot.destroy(),T.container&&m(T,T.container))}},g=S=>{const Q=r.value.findIndex(P=>P.id===S);if(Q===-1)return;const T=r.value[Q];T.uplot&&T.uplot.destroy(),r.value.splice(Q,1),f()},k=()=>{r.value.forEach(S=>{if(S.uplot&&S.container){let Q=S.container.clientWidth;Q&&S.uplot.setSize({width:Q,height:S.uplot.height})}})};return St(()=>{p(),e.on(He.DATA_UPDATE,O),window.addEventListener("resize",k)}),Oi(()=>{e.off(He.DATA_UPDATE,O),window.removeEventListener("resize",k),r.value.forEach(S=>{S.uplot&&S.uplot.destroy()})}),(S,Q)=>{const T=ie("el-button"),P=ie("el-input"),B=ie("el-option"),W=ie("el-select"),C=ie("Delete"),j=ie("el-icon"),w=ie("RefreshRight");return G(),K("div",eM,[q("div",tM,[x(T,{onClick:Q[0]||(Q[0]=R=>h("新图表")),type:"primary",size:"small"},{default:A(()=>Q[1]||(Q[1]=[te(" 添加图表 ")])),_:1})]),q("div",nM,[(G(!0),K(ke,null,Xe(r.value,R=>(G(),K("div",{key:R.id,class:"chart-item"},[q("div",iM,[x(P,{modelValue:R.name,"onUpdate:modelValue":_=>R.name=_,size:"small",placeholder:"图表名称",class:"chart-name-input",onChange:y},null,8,["modelValue","onUpdate:modelValue"]),x(W,{modelValue:R.fields,"onUpdate:modelValue":_=>R.fields=_,multiple:"",filterable:"",placeholder:"选择字段",size:"small",style:{"min-width":"200px"},onChange:_=>b(R)},{default:A(()=>[(G(!0),K(ke,null,Xe($(t).fields.map(_=>_.key),_=>(G(),be(B,{key:_,label:_,value:_},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),x(T,{onClick:_=>g(R.id),type:"danger",size:"small",circle:""},{default:A(()=>[x(j,null,{default:A(()=>[x(C)]),_:1})]),_:2},1032,["onClick"]),x(T,{onClick:_=>d(R.id),style:{"margin-left":"0"},type:"warning",size:"small",circle:""},{default:A(()=>[x(j,null,{default:A(()=>[x(w)]),_:1})]),_:2},1032,["onClick"])]),q("div",sM,[q("div",{ref_for:!0,ref:_=>{_&&!R.uplot&&m(R,_)},class:"chart-container"},null,512)])]))),128))])])}}}),wO=yt(rM,[["__scopeId","data-v-e6e95fc6"]]),oM={class:"data-table-container"},aM={class:"table-toolbar"},lM={class:"import-export-buttons"},uM={class:"operation-buttons"},cM=Oe({__name:"DataTable",setup(n){const e=en.getInstance(),t=Gc(),i=a=>{typeof a!="object"||a===null||Object.entries(a).forEach(([l,u])=>{const c=t.fields.find(h=>h.key===l);c?t.updateField(c,u):t.fields.push(t.createField(l,u))})},s=()=>{t.createField("new_field","")},r=()=>{t.saveToLocalStorage()},o=()=>{t.fields.forEach(a=>{a.value="",a.avg=null,a.avgSum=null,a.min=null,a.max=null,a.updateCount=0,a.lastUpdate=0}),t.saveToLocalStorage()};return St(()=>{t.loadFromLocalStorage(),e.on(He.DATA_UPDATE,i)}),Oi(()=>{e.off(He.DATA_UPDATE,i)}),(a,l)=>{const u=ie("el-alert"),c=ie("arrow-down"),h=ie("el-icon"),d=ie("el-button"),f=ie("el-checkbox"),p=ie("el-dropdown-item"),m=ie("el-dropdown-menu"),O=ie("el-dropdown"),y=ie("Delete"),b=ie("el-table-column"),v=ie("el-input"),g=ie("el-option"),k=ie("el-select"),S=ie("el-tooltip"),Q=ie("el-table");return G(),K("div",oM,[x(u,{type:"info",closable:!1,class:"mb-3"},{title:A(()=>l[3]||(l[3]=[q("div",{class:"flow-title"},"数据流转过程说明",-1)])),default:A(()=>[l[4]||(l[4]=q("div",{class:"flow-content"},[q("div",{class:"flow-step"},[q("div",{class:"step-number"},"1"),q("div",{class:"step-content"},[q("b",null,"数据采集:"),te("设备(串口/USB/蓝牙等)采集数据并发送 ")])]),q("div",{class:"flow-step"},[q("div",{class:"step-number"},"2"),q("div",{class:"step-content"},[q("b",null,"脚本处理:"),te("数据进入脚本的 DataReceiver 函数进行处理, 可在脚本面板进行编辑 ")])]),q("div",{class:"flow-step"},[q("div",{class:"step-number"},"3"),q("div",{class:"step-content"},[q("b",null,"数据更新:"),te("脚本通过 updateDataTable({key: value}) 更新数据表 ")])]),q("div",{class:"flow-step"},[q("div",{class:"step-number"},"4"),q("div",{class:"step-content"},[q("b",null,"显示输出:"),te("脚本 return 的数据会显示在命令行面板 ")])])],-1))]),_:1}),q("div",aM,[x(O,{trigger:"click"},{dropdown:A(()=>[x(m,null,{default:A(()=>[(G(!0),K(ke,null,Xe($(t).columnVisibility,(T,P)=>(G(),be(p,{key:P},{default:A(()=>[x(f,{modelValue:$(t).columnVisibility[P],"onUpdate:modelValue":B=>$(t).columnVisibility[P]=B,onChange:l[0]||(l[0]=B=>$(t).toggleColumnVisibility())},{default:A(()=>[te(ve(P==="key"?"Key":P==="name"?"字段名":P==="dataType"?"数据类型":P==="keyAddr"?"内存地址":P==="keySize"?"内存大小":P==="description"?"描述":P==="value"?"当前值":P==="avg"?"平均值":P==="min"?"最小值":P==="max"?"最大值":P==="lastUpdate"?"最后更新":P==="updateCount"?"更新次数":P),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1})]),default:A(()=>[x(d,{type:"primary",size:"small"},{default:A(()=>[l[5]||(l[5]=te(" 显示/隐藏列 ")),x(h,{class:"el-icon--right"},{default:A(()=>[x(c)]),_:1})]),_:1})]),_:1}),q("div",lM,[x(d,{type:"primary",size:"small",onClick:s},{default:A(()=>l[6]||(l[6]=[te("添加")])),_:1}),x(d,{type:"primary",size:"small",onClick:$(t).exportData},{default:A(()=>l[7]||(l[7]=[te("导出数据")])),_:1},8,["onClick"]),x(d,{type:"primary",size:"small",onClick:l[1]||(l[1]=T=>a.$refs.fileInput.click())},{default:A(()=>l[8]||(l[8]=[te("导入数据")])),_:1}),x(d,{type:"warning",size:"small",onClick:o},{default:A(()=>l[9]||(l[9]=[te("重置数据")])),_:1}),q("input",{ref:"fileInput",type:"file",accept:".json",style:{display:"none"},onChange:l[2]||(l[2]=T=>{var B;const P=(B=T.target.files)==null?void 0:B[0];P&&$(t).importData(P)})},null,544)])]),x(Q,{data:$(t).fields,border:"",stripe:""},{default:A(()=>[x(b,{label:"操作",width:"60",fixed:"left"},{default:A(({row:T})=>[q("div",uM,[x(d,{onClick:P=>$(t).deleteField(T.id),type:"danger",size:"small",circle:""},{default:A(()=>[x(h,null,{default:A(()=>[x(y)]),_:1})]),_:2},1032,["onClick"])])]),_:1}),$(t).columnVisibility.key?(G(),be(b,{key:0,label:"Key","min-width":"100"},{default:A(({row:T})=>[x(v,{modelValue:T.key,"onUpdate:modelValue":P=>T.key=P,size:"small",onChange:r},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):Ee("",!0),$(t).columnVisibility.name?(G(),be(b,{key:1,label:"字段名","min-width":"100"},{default:A(({row:T})=>[x(v,{modelValue:T.name,"onUpdate:modelValue":P=>T.name=P,size:"small",onChange:r},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):Ee("",!0),$(t).columnVisibility.keyAddr?(G(),be(b,{key:2,label:"内存地址","min-width":"100"},{default:A(({row:T})=>[x(v,{modelValue:T.keyAddr,"onUpdate:modelValue":P=>T.keyAddr=P,size:"small",onChange:r},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):Ee("",!0),$(t).columnVisibility.keySize?(G(),be(b,{key:3,label:"内存大小","min-width":"100"},{default:A(({row:T})=>[x(v,{modelValue:T.keySize,"onUpdate:modelValue":P=>T.keySize=P,size:"small",onChange:r},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):Ee("",!0),$(t).columnVisibility.dataType?(G(),be(b,{key:4,label:"数据类型","min-width":"80"},{default:A(({row:T})=>[x(k,{modelValue:T.dataType,"onUpdate:modelValue":P=>T.dataType=P,size:"small",onChange:r},{default:A(()=>[x(g,{label:"数字",value:"number"}),x(g,{label:"字符串",value:"string"}),x(g,{label:"布尔值",value:"boolean"}),x(g,{label:"对象",value:"object"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1})):Ee("",!0),$(t).columnVisibility.description?(G(),be(b,{key:5,label:"描述","min-width":"150"},{default:A(({row:T})=>[x(v,{modelValue:T.description,"onUpdate:modelValue":P=>T.description=P,size:"small",onChange:r},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):Ee("",!0),$(t).columnVisibility.value?(G(),be(b,{key:6,label:"当前值","min-width":"100"},{default:A(({row:T})=>[q("span",null,ve(T.value),1)]),_:1})):Ee("",!0),$(t).columnVisibility.avg?(G(),be(b,{key:7,label:"平均值","min-width":"100"},{default:A(({row:T})=>[q("span",null,ve(T.avg??"-"),1)]),_:1})):Ee("",!0),$(t).columnVisibility.min?(G(),be(b,{key:8,label:"最小值","min-width":"100"},{default:A(({row:T})=>[q("span",null,ve(T.min??"-"),1)]),_:1})):Ee("",!0),$(t).columnVisibility.max?(G(),be(b,{key:9,label:"最大值","min-width":"100"},{default:A(({row:T})=>[q("span",null,ve(T.max??"-"),1)]),_:1})):Ee("",!0),$(t).columnVisibility.lastUpdate?(G(),be(b,{key:10,label:"最后更新","min-width":"120"},{default:A(({row:T})=>[x(S,{content:new Date(T.lastUpdate).toLocaleString(),placement:"top",effect:"dark"},{default:A(()=>[q("span",null,ve(new Date(T.lastUpdate).toLocaleTimeString()+"."+String(new Date(T.lastUpdate).getMilliseconds()).padStart(3,"0")),1)]),_:2},1032,["content"])]),_:1})):Ee("",!0),$(t).columnVisibility.updateCount?(G(),be(b,{key:11,label:"更新次数",width:"100"},{default:A(({row:T})=>[q("span",null,ve(T.updateCount),1)]),_:1})):Ee("",!0)]),_:1},8,["data"])])}}}),bO=yt(cM,[["__scopeId","data-v-e749fc61"]]),hM=en.getInstance(),dM=Jp("quickSend",()=>{const n=bs.getInstance(),e=ae([]),t=ae(0),i=pe(()=>e.value.find(g=>g.id===t.value)||e.value[0]),s=ae({}),r=ae(1e3),o=g=>/^[0-9A-Fa-f\s]*$/.test(g),a=g=>{if(!g.content){We.warning("发送内容不能为空");return}if(g.type==="hex"&&!o(g.content)){We.error("HEX格式数据不合法");return}const k=n.stringToUint8Array(g.content+g.addCRLFType,g.type==="hex");hM.emit(He.SERIAL_SEND,k)},l=g=>{const k=s.value[g.id];k?(clearInterval(k),delete s.value[g.id]):s.value[g.id]=window.setInterval(()=>a(g),r.value)},u=()=>{i.value.items.push({id:Date.now(),name:"新建项目",content:"",type:"text",addCRLFType:"\\n"})},c=g=>{const k=i.value.items.findIndex(S=>S.id===g);k>-1&&i.value.items.splice(k,1)},h=g=>{g&&e.value.push({id:Date.now(),name:g,items:[]})},d=()=>{if(e.value.length<=1){We.warning("至少保留一个分组");return}const g=e.value.findIndex(k=>k.id===i.value.id);g>-1&&(e.value.splice(g,1),e.value.length==0&&h("默认分组"),p(e.value[0]))},f=g=>{g&&(i.value.name=g)},p=g=>{t.value=g.id},m=g=>{console.log("切换分组",g,e),t.value=g},O=g=>{try{if(!Array.isArray(g)||!g.every(k=>typeof k=="object"&&typeof k.id=="number"&&typeof k.name=="string"&&Array.isArray(k.items)))throw new Error("配置文件格式错误");e.value=g,p(e.value[0]),We.success("导入成功")}catch(k){We.error(`导入失败:${k instanceof Error?k.message:"无效的配置文件"}`)}},y=()=>JSON.stringify(e.value,null,2),b=()=>{localStorage.setItem("config.quickSendGroups",JSON.stringify(e.value))},v=()=>{const g=localStorage.getItem("config.quickSendGroups");if(g)try{e.value=JSON.parse(g)}catch{We.error("加载配置失败")}e.value.length==0&&(e.value=[{id:1,name:"默认分组",items:[{id:1,name:"查询版本",content:"AT+VERSION?",type:"text",addCRLFType:` +`},{id:2,name:"重启设备",content:"AT+RESET",type:"text",addCRLFType:` +`},{id:3,name:"查询状态",content:"AT+STATUS?",type:"text",addCRLFType:` +`},{id:4,name:"16进制测试",content:"AA BB CC 11 22",type:"hex",addCRLFType:""}]}]),p(e.value[0])};return Qe([e,i],()=>{b()},{deep:!0}),v(),{groups:e,currentGroupId:t,currentGroup:i,autoSendIntervals:s,autoSendInterval:r,sendData:a,toggleAutoSend:l,addItem:u,removeItem:c,addGroup:h,removeGroup:d,renameGroup:f,handleGroupChange:m,importConfig:O,exportConfig:y}}),fM={class:"quick-send"},pM={class:"group-select"},mM={class:"quick-send-actions"},gM={class:"action-group"},OM={class:"quick-send-list"},yM={class:"item-row"},vM={class:"item-settings"},wM={class:"setting-row"},bM={class:"setting-row"},xM={class:"setting-row"},SM={class:"setting-row"},_M=Oe({__name:"SerialQuickSend",setup(n){const e=dM(),t=ae(null),i=a=>{const l=a.target;if(l.files&&l.files[0]){const u=new FileReader;u.onload=c=>{var h;try{const d=JSON.parse((h=c.target)==null?void 0:h.result);e.importConfig(d)}catch{}},u.readAsText(l.files[0])}},s=()=>{const a=e.exportConfig(),l=new Blob([a],{type:"application/json"}),u=URL.createObjectURL(l),c=document.createElement("a");c.href=u,c.download="quick-send-config.json",c.click(),URL.revokeObjectURL(u)},r=()=>{const a=prompt("请输入分组名称");a&&e.addGroup(a)},o=()=>{const a=prompt("请输入新的分组名称",e.currentGroup.name);a&&e.renameGroup(a)};return(a,l)=>{const u=ie("el-option"),c=ie("el-select"),h=ie("el-button"),d=ie("el-button-group"),f=ie("Plus"),p=ie("el-icon"),m=ie("FolderAdd"),O=ie("FolderOpened"),y=ie("el-input"),b=ie("Setting"),v=ie("el-radio-button"),g=ie("el-radio-group"),k=ie("el-input-number"),S=ie("el-tooltip"),Q=ie("el-popover"),T=ie("Delete");return G(),K("div",fM,[q("div",pM,[x(c,{size:"small",modelValue:$(e).currentGroupId,"onUpdate:modelValue":l[0]||(l[0]=P=>$(e).currentGroupId=P),onChange:$(e).handleGroupChange},{default:A(()=>[(G(!0),K(ke,null,Xe($(e).groups,P=>(G(),be(u,{key:P.id,label:P.name,value:P.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),x(d,{style:{width:"240px"}},{default:A(()=>[x(h,{size:"small",onClick:r,class:"compact-btn"},{default:A(()=>l[3]||(l[3]=[te("新增")])),_:1}),x(h,{size:"small",onClick:o,class:"compact-btn"},{default:A(()=>l[4]||(l[4]=[te("改名")])),_:1}),x(h,{size:"small",onClick:$(e).removeGroup,class:"compact-btn"},{default:A(()=>l[5]||(l[5]=[te("删除")])),_:1},8,["onClick"])]),_:1})]),q("div",mM,[q("div",gM,[x(h,{size:"small",onClick:$(e).addItem,class:"add-item-btn"},{default:A(()=>[x(p,null,{default:A(()=>[x(f)]),_:1}),l[6]||(l[6]=te(" 增加一条 "))]),_:1},8,["onClick"]),q("input",{type:"file",ref_key:"importInput",ref:t,style:{display:"none"},accept:"application/json",onChange:i},null,544),x(d,null,{default:A(()=>[x(h,{size:"small",onClick:l[1]||(l[1]=P=>a.$refs.importInput.click()),class:"compact-btn"},{default:A(()=>[x(p,null,{default:A(()=>[x(m)]),_:1})]),_:1}),x(h,{size:"small",onClick:s,class:"compact-btn"},{default:A(()=>[x(p,null,{default:A(()=>[x(O)]),_:1})]),_:1})]),_:1})])]),q("div",OM,[(G(!0),K(ke,null,Xe($(e).currentGroup.items,P=>(G(),K("div",{key:P.id,class:"mb-2 quick-send-item"},[q("div",yM,[x(h,{size:"small",type:"primary",onClick:B=>$(e).sendData(P)},{default:A(()=>[te(ve(P.name),1)]),_:2},1032,["onClick"]),x(y,{modelValue:P.content,"onUpdate:modelValue":B=>P.content=B,size:"small",placeholder:"请输入发送内容",class:"flex-grow"},null,8,["modelValue","onUpdate:modelValue"]),x(d,null,{default:A(()=>[x(Q,{placement:"bottom",width:300,trigger:"click"},{reference:A(()=>[x(h,{size:"small"},{default:A(()=>[x(p,null,{default:A(()=>[x(b)]),_:1})]),_:1})]),default:A(()=>[q("div",vM,[q("div",wM,[l[7]||(l[7]=q("span",null,"指令名称:",-1)),x(y,{modelValue:P.name,"onUpdate:modelValue":B=>P.name=B,placeholder:"名称",size:"small",style:{width:"120px"}},null,8,["modelValue","onUpdate:modelValue"])]),q("div",bM,[l[10]||(l[10]=q("span",null,"数据类型:",-1)),x(g,{modelValue:P.type,"onUpdate:modelValue":B=>P.type=B,size:"small"},{default:A(()=>[x(v,{value:"text"},{default:A(()=>l[8]||(l[8]=[te("文本")])),_:1}),x(v,{value:"hex"},{default:A(()=>l[9]||(l[9]=[te("HEX")])),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),q("div",xM,[l[11]||(l[11]=q("span",null,"添加换行:",-1)),x(c,{modelValue:P.addCRLFType,"onUpdate:modelValue":B=>P.addCRLFType=B,size:"small",style:{width:"80px"}},{default:A(()=>[x(u,{value:"",label:"无"}),x(u,{value:`\r +`,label:"CRLF(\\r\\n)"}),x(u,{value:"\r",label:"CR(\\r)"}),x(u,{value:` +`,label:"LF(\\n)"}),x(u,{value:` + +`,label:"LF2(\\n\\n)"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),q("div",SM,[l[12]||(l[12]=q("span",null,"定时发送:",-1)),x(S,{class:"box-item",effect:"dark",content:"间隔(ms)",placement:"bottom"},{default:A(()=>[x(k,{modelValue:$(e).autoSendInterval,"onUpdate:modelValue":l[2]||(l[2]=B=>$(e).autoSendInterval=B),min:100,max:1e4,size:"small",style:{width:"120px"},class:"me-2"},null,8,["modelValue"])]),_:1}),x(h,{size:"small",type:$(e).autoSendIntervals[P.id]?"success":"default",onClick:B=>$(e).toggleAutoSend(P)},{default:A(()=>[te(ve($(e).autoSendIntervals[P.id]?"停止":"开始"),1)]),_:2},1032,["type","onClick"])])])]),_:2},1024),x(h,{size:"small",type:"danger",onClick:B=>$(e).removeItem(P.id)},{default:A(()=>[x(p,null,{default:A(()=>[x(T)]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)])]))),128))])])}}}),$M=yt(_M,[["__scopeId","data-v-a0ddafa7"]]);let nc=[],xO=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e>1;if(n=xO[i])e=i+1;else return!0;if(e==t)return!1}}function vf(n){return n>=127462&&n<=127487}const wf=8205;function PM(n,e,t=!0,i=!0){return(t?SO:QM)(n,e,i)}function SO(n,e,t){if(e==n.length)return e;e&&_O(n.charCodeAt(e))&&$O(n.charCodeAt(e-1))&&e--;let i=Yl(n,e);for(e+=bf(i);e=0&&vf(Yl(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function QM(n,e,t){for(;e>0;){let i=SO(n,e-2,t);if(i=56320&&n<57344}function $O(n){return n>=55296&&n<56320}function bf(n){return n<65536?1:2}class De{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Ts(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),fn.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Ts(this,e,t);let i=[];return this.decompose(e,t,i,0),fn.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new Or(this),r=new Or(e);for(let o=t,a=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(a+=s.value.length,s.done||a>=i)return!0}}iter(e=1){return new Or(this,e)}iterRange(e,t=this.length){return new kO(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new PO(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?De.empty:e.length<=32?new et(e):fn.from(et.split(e,[]))}}class et extends De{constructor(e,t=TM(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],a=s+o.length;if((t?i:a)>=e)return new AM(s,a,i,o);s=a+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new et(xf(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),a=Yo(r.text,o.text.slice(),0,r.length);if(a.length<=32)i.push(new et(a,o.length+r.length));else{let l=a.length>>1;i.push(new et(a.slice(0,l)),new et(a.slice(l)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof et))return super.replace(e,t,i);[e,t]=Ts(this,e,t);let s=Yo(this.text,Yo(i.text,xf(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new et(s,r):fn.from(et.split(s,[]),r)}sliceString(e,t=this.length,i=` +`){[e,t]=Ts(this,e,t);let s="";for(let r=0,o=0;r<=t&&oe&&o&&(s+=i),er&&(s+=a.slice(Math.max(0,e-r),t-r)),r=l+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new et(i,s)),i=[],s=-1);return s>-1&&t.push(new et(i,s)),t}}class fn extends De{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],a=s+o.length,l=i+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,i,s);s=a+1,i=l+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r=o){let u=s&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!u?i.push(a):a.decompose(e-o,t-o,i,u)}o=l+1}}replace(e,t,i){if([e,t]=Ts(this,e,t),i.lines=r&&t<=a){let l=o.replace(e-r,t-r,i),u=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let c=this.children.slice();return c[s]=l,new fn(c,this.length-(t-e)+i.length)}return super.replace(r,a,l)}r=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=` +`){[e,t]=Ts(this,e,t);let s="";for(let r=0,o=0;re&&r&&(s+=i),eo&&(s+=a.sliceString(e-o,t-o,i)),o=l+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof fn))return 0;let i=0,[s,r,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==a)return i;let l=this.children[s],u=e.children[r];if(l!=u)return i+l.scanIdentical(u,t);i+=l.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let f of e)i+=f.lines;if(i<32){let f=[];for(let p of e)p.flatten(f);return new et(f,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,a=[],l=0,u=-1,c=[];function h(f){let p;if(f.lines>r&&f instanceof fn)for(let m of f.children)h(m);else f.lines>o&&(l>o||!l)?(d(),a.push(f)):f instanceof et&&l&&(p=c[c.length-1])instanceof et&&f.lines+p.lines<=32?(l+=f.lines,u+=f.length+1,c[c.length-1]=new et(p.text.concat(f.text),p.length+1+f.length)):(l+f.lines>s&&d(),l+=f.lines,u+=f.length+1,c.push(f))}function d(){l!=0&&(a.push(c.length==1?c[0]:fn.from(c,u)),u=-1,l=c.length=0)}for(let f of e)h(f);return d(),a.length==1?a[0]:new fn(a,t)}}De.empty=new et([""],0);function TM(n){let e=-1;for(let t of n)e+=t.length+1;return e}function Yo(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r=t&&(l>i&&(a=a.slice(0,i-s)),s0?1:(e instanceof et?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,a=s instanceof et?s.text.length:s.children.length;if(o==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(s instanceof et){let l=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,l.length>Math.max(0,e))return this.value=e==0?l:t>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=s.children[o+(t<0?-1:0)];e>l.length?(e-=l.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(l),this.offsets.push(t>0?1:(l instanceof et?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class kO{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Or(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class PO{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(De.prototype[Symbol.iterator]=function(){return this.iter()},Or.prototype[Symbol.iterator]=kO.prototype[Symbol.iterator]=PO.prototype[Symbol.iterator]=function(){return this});class AM{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function Ts(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function bt(n,e,t=!0,i=!0){return PM(n,e,t,i)}function CM(n){return n>=56320&&n<57344}function EM(n){return n>=55296&&n<56320}function MM(n,e){let t=n.charCodeAt(e);if(!EM(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return CM(i)?(t-55296<<10)+(i-56320)+65536:t}function RM(n){return n<65536?1:2}const ic=/\r\n?|\n/;var wt=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(wt||(wt={}));class Nn{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-s);r+=a}else{if(i!=wt.Simple&&u>=e&&(i==wt.TrackDel&&se||i==wt.TrackBefore&&se))return null;if(u>e||u==e&&t<0&&!a)return e==s||t<0?r:r+l;r+=l}s=u}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i=0&&s<=t&&a>=e)return st?"cover":!0;s=a}return!1}toString(){let e="";for(let t=0;t=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Nn(e)}static create(e){return new Nn(e)}}class ct extends Nn{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return sc(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return rc(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s=0){t[s]=a,t[s+1]=o;let l=s>>1;for(;i.length0&&ai(i,t,r.text),r.forward(c),a+=c}let u=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,a=null;function l(c=!1){if(!c&&!s.length)return;od||h<0||d>t)throw new RangeError(`Invalid change range ${h} to ${d} (in doc of length ${t})`);let p=f?typeof f=="string"?De.of(f.split(i||ic)):f:De.empty,m=p.length;if(h==d&&m==0)return;ho&&pt(s,h-o,-1),pt(s,d-h,m),ai(r,s,p),o=d}}return u(e),l(!a),a}static empty(e){return new ct(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;sa&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length=0&&t<=0&&t==n[s+1]?n[s]+=e:s>=0&&e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function ai(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)a=n.sections[o++],l=n.sections[o++];e(s,u,r,c,h),s=u,r=c}}}function rc(n,e,t,i=!1){let s=[],r=i?[]:null,o=new Rr(n),a=new Rr(e);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let u=Math.min(o.len,a.len);pt(s,u,-1),o.forward(u),a.forward(u)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len=0&&l=0){let u=0,c=o.len;for(;c;)if(a.ins==-1){let h=Math.min(c,a.len);u+=h,c-=h,a.forward(h)}else if(a.ins==0&&a.lenl||o.ins>=0&&o.len>l)&&(a||i.length>u),r.forward2(l),o.forward(l)}}}}class Rr{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?De.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?De.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Zi{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new Zi(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return ee.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return ee.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return ee.range(e.anchor,e.head)}static create(e,t,i){return new Zi(e,t,i)}}class ee{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:ee.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new ee(e.ranges.map(t=>Zi.fromJSON(t)),e.main)}static single(e,t=e){return new ee([ee.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;se?8:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(i);for(let s=1;sr.head?ee.range(l,a):ee.range(a,l))}}return new ee(e,t)}}function TO(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let gh=0;class ge{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=gh++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new ge(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Oh),!!e.static,e.enables)}of(e){return new Go([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Go(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Go(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function Oh(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Go{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=gh++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,a=this.type==2,l=!1,u=!1,c=[];for(let h of this.dependencies)h=="doc"?l=!0:h=="selection"?u=!0:((t=e[h.id])!==null&&t!==void 0?t:1)&1||c.push(e[h.id]);return{create(h){return h.values[o]=i(h),1},update(h,d){if(l&&d.docChanged||u&&(d.docChanged||d.selection)||oc(h,c)){let f=i(h);if(a?!Sf(f,h.values[o],s):!s(f,h.values[o]))return h.values[o]=f,1}return 0},reconfigure:(h,d)=>{let f,p=d.config.address[r];if(p!=null){let m=Pa(d,p);if(this.dependencies.every(O=>O instanceof ge?d.facet(O)===h.facet(O):O instanceof yi?d.field(O,!1)==h.field(O,!1):!0)||(a?Sf(f=i(h),m,s):s(f=i(h),m)))return h.values[o]=m,0}else f=i(h);return h.values[o]=f,1}}}}function Sf(n,e,t){if(n.length!=e.length)return!1;for(let i=0;in[l.id]),s=t.map(l=>l.type),r=i.filter(l=>!(l&1)),o=n[e.id]>>1;function a(l){let u=[];for(let c=0;ci===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(vo).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>{let r=i.facet(vo),o=s.facet(vo),a;return(a=r.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(i.values[t]=a.create(i),1):s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,vo.of({field:this,create:e})]}get extension(){return this}}const Pi={lowest:4,low:3,default:2,high:1,highest:0};function Us(n){return e=>new AO(e,n)}const cl={highest:Us(Pi.highest),high:Us(Pi.high),default:Us(Pi.default),low:Us(Pi.low),lowest:Us(Pi.lowest)};class AO{constructor(e,t){this.inner=e,this.prec=t}}class hl{of(e){return new ac(this,e)}reconfigure(e){return hl.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class ac{constructor(e,t){this.compartment=e,this.inner=t}}class ka{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let d of DM(e,t,o))d instanceof yi?s.push(d):(r[d.facet.id]||(r[d.facet.id]=[])).push(d);let a=Object.create(null),l=[],u=[];for(let d of s)a[d.id]=u.length<<1,u.push(f=>d.slot(f));let c=i==null?void 0:i.config.facets;for(let d in r){let f=r[d],p=f[0].facet,m=c&&c[d]||[];if(f.every(O=>O.type==0))if(a[p.id]=l.length<<1|1,Oh(m,f))l.push(i.facet(p));else{let O=p.combine(f.map(y=>y.value));l.push(i&&p.compare(O,i.facet(p))?i.facet(p):O)}else{for(let O of f)O.type==0?(a[O.id]=l.length<<1|1,l.push(O.value)):(a[O.id]=u.length<<1,u.push(y=>O.dynamicSlot(y)));a[p.id]=u.length<<1,u.push(O=>ZM(O,p,f))}}let h=u.map(d=>d(a));return new ka(e,o,h,a,l,r)}}function DM(n,e,t){let i=[[],[],[],[],[]],s=new Map;function r(o,a){let l=s.get(o);if(l!=null){if(l<=a)return;let u=i[l].indexOf(o);u>-1&&i[l].splice(u,1),o instanceof ac&&t.delete(o.compartment)}if(s.set(o,a),Array.isArray(o))for(let u of o)r(u,a);else if(o instanceof ac){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(o.compartment)||o.inner;t.set(o.compartment,u),r(u,a)}else if(o instanceof AO)r(o.inner,o.prec);else if(o instanceof yi)i[a].push(o),o.provides&&r(o.provides,a);else if(o instanceof Go)i[a].push(o),o.facet.extensions&&r(o.facet.extensions,Pi.default);else{let u=o.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(u,a)}}return r(n,Pi.default),i.reduce((o,a)=>o.concat(a))}function yr(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function Pa(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const CO=ge.define(),lc=ge.define({combine:n=>n.some(e=>e),static:!0}),EO=ge.define({combine:n=>n.length?n[0]:void 0,static:!0}),MO=ge.define(),RO=ge.define(),ZO=ge.define(),DO=ge.define({combine:n=>n.length?n[0]:!1});class Ki{constructor(e,t){this.type=e,this.value=t}static define(){return new NM}}class NM{of(e){return new Ki(this,e)}}class IM{constructor(e){this.map=e}of(e){return new Fe(this,e)}}class Fe{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new Fe(this.type,t)}is(e){return this.type==e}static define(e={}){return new IM(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}Fe.reconfigure=Fe.define();Fe.appendConfig=Fe.define();class ft{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&TO(i,t.newLength),r.some(a=>a.type==ft.time)||(this.annotations=r.concat(ft.time.of(Date.now())))}static create(e,t,i,s,r,o){return new ft(e,t,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ft.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}ft.time=Ki.define();ft.userEvent=Ki.define();ft.addToHistory=Ki.define();ft.remote=Ki.define();function LM(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i=n[i]))r=n[i++],o=n[i++];else if(s=0;s--){let r=i[s](n);r instanceof ft?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof ft?n=r[0]:n=IO(e,gs(r),!1)}return n}function VM(n){let e=n.startState,t=e.facet(ZO),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=NO(i,uc(e,r,n.changes.newLength),!0))}return i==n?n:ft.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const XM=[];function gs(n){return n==null?XM:Array.isArray(n)?n:[n]}var Zn=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(Zn||(Zn={}));const BM=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let cc;try{cc=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function UM(n){if(cc)return cc.test(n);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||BM.test(t)))return!0}return!1}function jM(n){return e=>{if(!/\S/.test(e))return Zn.Space;if(UM(e))return Zn.Word;for(let t=0;t-1)return Zn.Word;return Zn.Other}}class Ne{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let a=0;as.set(u,l)),t=null),s.set(a.value.compartment,a.value.extension)):a.is(Fe.reconfigure)?(t=null,i=a.value):a.is(Fe.appendConfig)&&(t=null,i=gs(i).concat(a.value));let r;t?r=e.startState.values.slice():(t=ka.resolve(i,s,this),r=new Ne(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let o=e.startState.facet(lc)?e.newSelection:e.newSelection.asSingle();new Ne(t,e.newDoc,o,r,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:ee.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=gs(i.effects);for(let a=1;ao.spec.fromJSON(a,l)))}}return Ne.create({doc:e.doc,selection:ee.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=ka.resolve(e.extensions||[],new Map),i=e.doc instanceof De?e.doc:De.of((e.doc||"").split(t.staticFacet(Ne.lineSeparator)||ic)),s=e.selection?e.selection instanceof ee?e.selection:ee.single(e.selection.anchor,e.selection.head):ee.single(0);return TO(s,i.length),t.staticFacet(lc)||(s=s.asSingle()),new Ne(t,i,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(Ne.tabSize)}get lineBreak(){return this.facet(Ne.lineSeparator)||` +`}get readOnly(){return this.facet(DO)}phrase(e,...t){for(let i of this.facet(Ne.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let r=+(s||1);return!r||r>t.length?i:t[r-1]})),e}languageDataAt(e,t,i=-1){let s=[];for(let r of this.facet(CO))for(let o of r(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&s.push(o[e]);return s}charCategorizer(e){return jM(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:s}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-i,a=e-i;for(;o>0;){let l=bt(t,o,!1);if(r(t.slice(l,o))!=Zn.Word)break;o=l}for(;an.length?n[0]:4});Ne.lineSeparator=EO;Ne.readOnly=DO;Ne.phrases=ge.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(s=>n[s]==e[s])}});Ne.languageData=CO;Ne.changeFilter=MO;Ne.transactionFilter=RO;Ne.transactionExtender=ZO;hl.reconfigure=Fe.define();function WM(n,e,t={}){let i={};for(let s of n)for(let r of Object.keys(s)){let o=s[r],a=i[r];if(a===void 0)i[r]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(t,r))i[r]=t[r](a,o);else throw new Error("Config merge conflict for field "+r)}for(let s in e)i[s]===void 0&&(i[s]=e[s]);return i}class Wi{eq(e){return this==e}range(e,t=e){return hc.create(e,t,this)}}Wi.prototype.startSide=Wi.prototype.endSide=0;Wi.prototype.point=!1;Wi.prototype.mapMode=wt.TrackDel;let hc=class LO{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new LO(e,t,i)}};function dc(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class yh{constructor(e,t,i,s){this.from=e,this.to=t,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,s=0){let r=i?this.to:this.from;for(let o=s,a=r.length;;){if(o==a)return o;let l=o+a>>1,u=r[l]-e||(i?this.value[l].endSide:this.value[l].startSide)-t;if(l==o)return u>=0?o:a;u>=0?a=l:o=l+1}}between(e,t,i,s){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,r);rf||d==f&&u.startSide>0&&u.endSide<=0)continue;(f-d||u.endSide-u.startSide)<0||(o<0&&(o=d),u.point&&(a=Math.max(a,f-d)),i.push(u),s.push(d-o),r.push(f-o))}return{mapped:i.length?new yh(s,r,i,a):null,pos:o}}}class ze{constructor(e,t,i,s){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=s}static create(e,t,i,s){return new ze(e,t,i,s)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:s=0,filterTo:r=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(dc)),this.isEmpty)return t.length?ze.of(t):this;let a=new zO(this,null,-1).goto(0),l=0,u=[],c=new Zr;for(;a.value||l=0){let h=t[l++];c.addInner(h.from,h.to,h.value)||u.push(h)}else a.rangeIndex==1&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ra.to||r=r&&e<=r+o.length&&o.between(r,e-r,t-r,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return Dr.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Dr.from(e).goto(t)}static compare(e,t,i,s,r=-1){let o=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=r),a=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=r),l=_f(o,a,i),u=new js(o,l,r),c=new js(a,l,r);i.iterGaps((h,d,f)=>$f(u,h,c,d,f,s)),i.empty&&i.length==0&&$f(u,0,c,0,0,s)}static eq(e,t,i=0,s){s==null&&(s=999999999);let r=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),o=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let a=_f(r,o),l=new js(r,a,0).goto(i),u=new js(o,a,0).goto(i);for(;;){if(l.to!=u.to||!fc(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>s)return!0;l.next(),u.next()}}static spans(e,t,i,s,r=-1){let o=new js(e,null,r).goto(t),a=t,l=o.openStart;for(;;){let u=Math.min(o.to,i);if(o.point){let c=o.activeForPoint(o.to),h=o.pointFroma&&(s.span(a,u,o.active,l),l=o.openEnd(u));if(o.to>i)return l+(o.point&&o.to>i?1:0);a=o.to,o.next()}}static of(e,t=!1){let i=new Zr;for(let s of e instanceof hc?[e]:t?qM(e):e)i.add(s.from,s.to,s.value);return i.finish()}static join(e){if(!e.length)return ze.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let s=e[i];s!=ze.empty;s=s.nextLayer)t=new ze(s.chunkPos,s.chunk,t,Math.max(s.maxPoint,t.maxPoint));return t}}ze.empty=new ze([],[],null,-1);function qM(n){if(n.length>1)for(let e=n[0],t=1;t0)return n.slice().sort(dc);e=i}return n}ze.empty.nextLayer=ze.empty;class Zr{finishChunk(e){this.chunks.push(new yh(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new Zr)).add(e,t,i)}addInner(e,t,i){let s=e-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(ze.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=ze.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function _f(n,e,t){let i=new Map;for(let r of n)for(let o=0;o=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&s.push(new zO(o,t,i,r));return s.length==1?s[0]:new Dr(s)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)Gl(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)Gl(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Gl(this.heap,0)}}}function Gl(n,e){for(let t=n[e];;){let i=(e<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1=0&&(s=n[i+1],i++),t.compare(s)<0)break;n[i]=t,n[e]=s,e=i}}class js{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Dr.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){wo(this.active,e),wo(this.activeTo,e),wo(this.activeRank,e),this.minActive=kf(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:s,rank:r}=this.cursor;for(;t0;)t++;bo(this.active,t,i),bo(this.activeTo,t,s),bo(this.activeRank,t,r),e&&bo(e,t,this.cursor.from),this.minActive=kf(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>e){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&wo(i,s)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function $f(n,e,t,i,s,r){n.goto(e),t.goto(i);let o=i+s,a=i,l=i-e;for(;;){let u=n.to+l-t.to,c=u||n.endSide-t.endSide,h=c<0?n.to+l:t.to,d=Math.min(h,o);if(n.point||t.point?n.point&&t.point&&(n.point==t.point||n.point.eq(t.point))&&fc(n.activeForPoint(n.to),t.activeForPoint(t.to))||r.comparePoint(a,d,n.point,t.point):d>a&&!fc(n.active,t.active)&&r.compareRange(a,d,n.active,t.active),h>o)break;(u||n.openEnd!=t.openEnd)&&r.boundChange&&r.boundChange(h),a=h,c<=0&&n.next(),c>=0&&t.next()}}function fc(n,e){if(n.length!=e.length)return!1;for(let t=0;t=e;i--)n[i+1]=n[i];n[e]=t}function kf(n,e){let t=-1,i=1e9;for(let s=0;s=e)return s;if(s==n.length)break;r+=n.charCodeAt(s)==9?t-r%t:1,s=bt(n,s)}return n.length}const pc="ͼ",Pf=typeof Symbol>"u"?"__"+pc:Symbol.for(pc),mc=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Qf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class di{constructor(e,t){this.rules=[];let{finish:i}=t||{};function s(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,a,l,u){let c=[],h=/^@(\w+)\b/.exec(o[0]),d=h&&h[1]=="keyframes";if(h&&a==null)return l.push(o[0]+";");for(let f in a){let p=a[f];if(/&/.test(f))r(f.split(/,\s*/).map(m=>o.map(O=>m.replace(/&/,O))).reduce((m,O)=>m.concat(O)),p,l);else if(p&&typeof p=="object"){if(!h)throw new RangeError("The value of a property ("+f+") should be a primitive value.");r(s(f),p,c,d)}else p!=null&&c.push(f.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(c.length||d)&&l.push((i&&!h&&!u?o.map(i):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)r(s(o),e[o],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=Qf[Pf]||1;return Qf[Pf]=e+1,pc+e.toString(36)}static mount(e,t,i){let s=e[mc],r=i&&i.nonce;s?r&&s.setNonce(r):s=new GM(e,r),s.mount(Array.isArray(t)?t:[t],e)}}let Tf=new Map;class GM{constructor(e,t){let i=e.ownerDocument||e,s=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&s.CSSStyleSheet){let r=Tf.get(i);if(r)return e[mc]=r;this.sheet=new s.CSSStyleSheet,Tf.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[mc]=this}mount(e,t){let i=this.sheet,s=0,r=0;for(let o=0;o-1&&(this.modules.splice(l,1),r--,l=-1),l==-1){if(this.modules.splice(r++,0,a),i)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},HM=typeof navigator<"u"&&/Mac/.test(navigator.platform),FM=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var dt=0;dt<10;dt++)fi[48+dt]=fi[96+dt]=String(dt);for(var dt=1;dt<=24;dt++)fi[dt+111]="F"+dt;for(var dt=65;dt<=90;dt++)fi[dt]=String.fromCharCode(dt+32),Nr[dt]=String.fromCharCode(dt);for(var Hl in fi)Nr.hasOwnProperty(Hl)||(Nr[Hl]=fi[Hl]);function KM(n){var e=HM&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||FM&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Nr:fi)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Ir(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function gc(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function Ho(n,e){if(!e.anchorNode)return!1;try{return gc(n,e.anchorNode)}catch{return!1}}function Lr(n){return n.nodeType==3?Yi(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function vr(n,e,t,i){return t?Af(n,e,t,i,-1)||Af(n,e,t,i,1):!1}function qi(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function Qa(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function Af(n,e,t,i,s){for(;;){if(n==t&&e==i)return!0;if(e==(s<0?0:vn(n))){if(n.nodeName=="DIV")return!1;let r=n.parentNode;if(!r||r.nodeType!=1)return!1;e=qi(n)+(s<0?0:1),n=r}else if(n.nodeType==1){if(n=n.childNodes[e+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=s<0?vn(n):0}else return!1}}function vn(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function fl(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function JM(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function VO(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function eR(n,e,t,i,s,r,o,a){let l=n.ownerDocument,u=l.defaultView||window;for(let c=n,h=!1;c&&!h;)if(c.nodeType==1){let d,f=c==l.body,p=1,m=1;if(f)d=JM(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(h=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let b=c.getBoundingClientRect();({scaleX:p,scaleY:m}=VO(c,b)),d={left:b.left,right:b.left+c.clientWidth*p,top:b.top,bottom:b.top+c.clientHeight*m}}let O=0,y=0;if(s=="nearest")e.top0&&e.bottom>d.bottom+y&&(y=e.bottom-d.bottom+y+o)):e.bottom>d.bottom&&(y=e.bottom-d.bottom+o,t<0&&e.top-y0&&e.right>d.right+O&&(O=e.right-d.right+O+r)):e.right>d.right&&(O=e.right-d.right+r,t<0&&e.lefts.clientHeight&&(i=s),!t&&s.scrollWidth>s.clientWidth&&(t=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return{x:t,y:i}}class nR{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?vn(t):0),i,Math.min(e.focusOffset,i?vn(i):0))}set(e,t,i,s){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=s}}let is=null;function XO(n){if(n.setActive)return n.setActive();if(is)return n.focus(is);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(is==null?{get preventScroll(){return is={preventScroll:!0},!0}}:void 0),!is){is=!1;for(let t=0;tMath.max(1,n.scrollHeight-n.clientHeight-4)}function jO(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=vn(t)}else if(t.parentNode&&!Qa(t))i=qi(t),t=t.parentNode;else return null}}function WO(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&it)return h.domBoundsAround(e,t,u);if(d>=e&&s==-1&&(s=l,r=u),u>t&&h.dom.parentNode==this.dom){o=l,a=c;break}c=d,u=d+h.breakAfter}return{from:r,to:a<0?i+this.length:a,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=vh){this.markDirty();for(let s=e;sthis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function YO(n,e,t,i,s,r,o,a,l){let{children:u}=n,c=u.length?u[e]:null,h=r.length?r[r.length-1]:null,d=h?h.breakAfter:o;if(!(e==i&&c&&!o&&!d&&r.length<2&&c.merge(t,s,r.length?h:null,t==0,a,l))){if(i0&&(!o&&r.length&&c.merge(t,c.length,r[0],!1,a,0)?c.breakAfter=r.shift().breakAfter:(t2);var re={mac:Zf||/Mac/.test(kt.platform),windows:/Win/.test(kt.platform),linux:/Linux|X11/.test(kt.platform),ie:pl,ie_version:HO?Oc.documentMode||6:vc?+vc[1]:yc?+yc[1]:0,gecko:Mf,gecko_version:Mf?+(/Firefox\/(\d+)/.exec(kt.userAgent)||[0,0])[1]:0,chrome:!!Fl,chrome_version:Fl?+Fl[1]:0,ios:Zf,android:/Android\b/.test(kt.userAgent),webkit:Rf,safari:FO,webkit_version:Rf?+(/\bAppleWebKit\/(\d+)/.exec(kt.userAgent)||[0,0])[1]:0,tabSize:Oc.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const rR=256;class tn extends je{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,i){return this.flags&8||i&&(!(i instanceof tn)||this.length-(t-e)+i.length>rR||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new tn(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new mt(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return oR(this.dom,e,t)}}class jn extends je{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let s of t)s.setParent(this)}setAttrs(e){if(BO(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,i,s,r,o){return i&&(!(i instanceof jn&&i.mark.eq(this.mark))||e&&r<=0||te&&t.push(i=e&&(s=r),i=l,r++}let o=this.length-e;return this.length=e,s>-1&&(this.children.length=s,this.markDirty()),new jn(this.mark,t,o)}domAtPos(e){return KO(this,e)}coordsAt(e,t){return e0(this,e,t)}}function oR(n,e,t){let i=n.nodeValue.length;e>i&&(e=i);let s=e,r=e,o=0;e==0&&t<0||e==i&&t>=0?re.chrome||re.gecko||(e?(s--,o=1):r=0)?0:a.length-1];return re.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,u=>u.width)||l),o?fl(l,o<0):l||null}class Di extends je{static create(e,t,i){return new Di(e,t,i)}constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}split(e){let t=Di.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,i,s,r,o){return i&&(!(i instanceof Di)||!this.widget.compare(i.widget)||e>0&&r<=0||t0)?mt.before(this.dom):mt.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;let s=this.dom.getClientRects(),r=null;if(!s.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?s.length-1:0;r=s[a],!(e>0?a==0:a==s.length-1||r.top0?mt.before(this.dom):mt.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return De.empty}get isHidden(){return!0}}tn.prototype.children=Di.prototype.children=As.prototype.children=vh;function KO(n,e){let t=n.dom,{children:i}=n,s=0;for(let r=0;sr&&e0;r--){let o=i[r-1];if(o.dom.parentNode==t)return o.domAtPos(o.length)}for(let r=s;r0&&e instanceof jn&&s.length&&(i=s[s.length-1])instanceof jn&&i.mark.eq(e.mark)?JO(i,e.children[0],t-1):(s.push(e),e.setParent(n)),n.length+=e.length}function e0(n,e,t){let i=null,s=-1,r=null,o=-1;function a(u,c){for(let h=0,d=0;h=c&&(f.children.length?a(f,c-d):(!r||r.isHidden&&t>0)&&(p>c||d==p&&f.getSide()>0)?(r=f,o=c-d):(d-1?1:0)!=s.length-(t&&s.indexOf(t)>-1?1:0))return!1;for(let r of i)if(r!=t&&(s.indexOf(r)==-1||n[r]!==e[r]))return!1;return!0}function bc(n,e,t){let i=!1;if(e)for(let s in e)t&&s in t||(i=!0,s=="style"?n.style.cssText="":n.removeAttribute(s));if(t)for(let s in t)e&&e[s]==t[s]||(i=!0,s=="style"?n.style.cssText=t[s]:n.setAttribute(s,t[s]));return i}function lR(n){let e=Object.create(null);for(let t=0;t0?3e8:-4e8:t>0?1e8:-1e8,new pi(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,s;if(e.isBlockGap)i=-5e8,s=4e8;else{let{start:r,end:o}=t0(e,t);i=(r?t?-3e8:-1:5e8)-1,s=(o?t?2e8:1:-6e8)+1}return new pi(e,i,s,t,e.widget||null,!0)}static line(e){return new Gr(e)}static set(e,t=!1){return ze.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}tt.none=ze.empty;class Yr extends tt{constructor(e){let{start:t,end:i}=t0(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,i;return this==e||e instanceof Yr&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&Ta(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Yr.prototype.point=!1;class Gr extends tt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Gr&&this.spec.class==e.spec.class&&Ta(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Gr.prototype.mapMode=wt.TrackBefore;Gr.prototype.point=!0;class pi extends tt{constructor(e,t,i,s,r,o){super(t,i,r,e),this.block=s,this.isReplace=o,this.mapMode=s?t<=0?wt.TrackBefore:wt.TrackAfter:wt.TrackDel}get type(){return this.startSide!=this.endSide?Ut.WidgetRange:this.startSide<=0?Ut.WidgetBefore:Ut.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof pi&&uR(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}pi.prototype.point=!0;function t0(n,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=n;return t==null&&(t=n.inclusive),i==null&&(i=n.inclusive),{start:t??e,end:i??e}}function uR(n,e){return n==e||!!(n&&e&&n.compare(e))}function Fo(n,e,t,i=0){let s=t.length-1;s>=0&&t[s]+i>=n?t[s]=Math.max(t[s],e):t.push(n,e)}class nt extends je{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,i,s,r,o){if(i){if(!(i instanceof nt))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),GO(this,e,t,i?i.children.slice():[],r,o),!0}split(e){let t=new nt;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i,off:s}=this.childPos(e);s&&(t.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let r=i;r0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Ta(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){JO(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=wc(t,this.attrs||{})),i&&(this.attrs=wc({class:i},this.attrs||{}))}domAtPos(e){return KO(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var i;this.dom?this.flags&4&&(BO(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(bc(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let s=this.dom.lastChild;for(;s&&je.get(s)instanceof jn;)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((i=je.get(s))===null||i===void 0?void 0:i.isEditable)==!1&&(!re.ios||!this.children.some(r=>r instanceof tn))){let r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let i of this.children){if(!(i instanceof tn)||/[^ -~]/.test(i.text))return null;let s=Lr(i.dom);if(s.length!=1)return null;e+=s[0].width,t=s[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let i=e0(this,e,t);if(!this.children.length&&i&&this.parent){let{heightOracle:s}=this.parent.view.viewState,r=i.bottom-i.top;if(Math.abs(r-s.lineHeight)<2&&s.textHeight=t){if(r instanceof nt)return r;if(o>t)break}s=o+r.breakAfter}return null}}class In extends je{constructor(e,t,i){super(),this.widget=e,this.length=t,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,s,r,o){return i&&(!(i instanceof In)||!this.widget.compare(i.widget)||e>0&&r<=0||t0}}class xc extends ml{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class wr{constructor(e,t,i,s){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=s,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof In&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new nt),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(xo(new As(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof In)&&this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:r,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=r,this.textOff=0}let s=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-i)),this.getLine().append(xo(new tn(this.text.slice(this.textOff,this.textOff+s)),t),i),this.atCursorPos=!0,this.textOff+=s,e-=s,i=0}}span(e,t,i,s){this.buildText(t-e,i,s),this.pos=t,this.openStart<0&&(this.openStart=s)}point(e,t,i,s,r,o){if(this.disallowBlockEffectsFor[o]&&i instanceof pi){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(i instanceof pi)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new In(i.widget||Cs.block,a,i));else{let l=Di.create(i.widget||Cs.inline,a,a?0:i.startSide),u=this.atCursorPos&&!l.isEditable&&r<=s.length&&(e0),c=!l.isEditable&&(es.length||i.startSide<=0),h=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(s),u&&(h.append(xo(new As(1),s),r),r=s.length+Math.max(0,r-s.length)),h.append(xo(l,s),r),this.atCursorPos=c,this.pendingBuffer=c?es.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,i,s,r){let o=new wr(e,t,i,r);return o.openEnd=ze.spans(s,t,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function xo(n,e){for(let t of e)n=new jn(t,[n],n.length);return n}class Cs extends ml{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Cs.inline=new Cs("span");Cs.block=new Cs("div");var ut=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(ut||(ut={}));const Gi=ut.LTR,wh=ut.RTL;function n0(n){let e=[];for(let t=0;t=t){if(a.level==i)return o;(r<0||(s!=0?s<0?a.fromt:e[r].level>a.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}function s0(n,e){if(n.length!=e.length)return!1;for(let t=0;t=0;m-=3)if(ln[m+1]==-f){let O=ln[m+2],y=O&2?s:O&4?O&1?r:s:0;y&&(Ue[h]=Ue[ln[m]]=y),a=m;break}}else{if(ln.length==189)break;ln[a++]=h,ln[a++]=d,ln[a++]=l}else if((p=Ue[h])==2||p==1){let m=p==s;l=m?0:1;for(let O=a-3;O>=0;O-=3){let y=ln[O+2];if(y&2)break;if(m)ln[O+2]|=2;else{if(y&4)break;ln[O+2]|=4}}}}}function mR(n,e,t,i){for(let s=0,r=i;s<=t.length;s++){let o=s?t[s-1].to:n,a=sl;)p==O&&(p=t[--m].from,O=m?t[m-1].to:n),Ue[--p]=f;l=c}else r=u,l++}}}function _c(n,e,t,i,s,r,o){let a=i%2?2:1;if(i%2==s%2)for(let l=e,u=0;ll&&o.push(new li(l,m.from,f));let O=m.direction==Gi!=!(f%2);$c(n,O?i+1:i,s,m.inner,m.from,m.to,o),l=m.to}p=m.to}else{if(p==t||(c?Ue[p]!=a:Ue[p]==a))break;p++}d?_c(n,l,p,i+1,s,d,o):le;){let c=!0,h=!1;if(!u||l>r[u-1].to){let m=Ue[l-1];m!=a&&(c=!1,h=m==16)}let d=!c&&a==1?[]:null,f=c?i:i+1,p=l;e:for(;;)if(u&&p==r[u-1].to){if(h)break e;let m=r[--u];if(!c)for(let O=m.from,y=u;;){if(O==e)break e;if(y&&r[y-1].to==O)O=r[--y].from;else{if(Ue[O-1]==a)break e;break}}if(d)d.push(m);else{m.toUe.length;)Ue[Ue.length]=256;let i=[],s=e==Gi?0:1;return $c(n,s,s,t,0,n.length,i),i}function r0(n){return[new li(0,n,0)]}let o0="";function OR(n,e,t,i,s){var r;let o=i.head-n.from,a=li.find(e,o,(r=i.bidiLevel)!==null&&r!==void 0?r:-1,i.assoc),l=e[a],u=l.side(s,t);if(o==u){let d=a+=s?1:-1;if(d<0||d>=e.length)return null;l=e[a=d],o=l.side(!s,t),u=l.side(s,t)}let c=bt(n.text,o,l.forward(s,t));(cl.to)&&(c=u),o0=n.text.slice(Math.min(o,c),Math.max(o,c));let h=a==(s?e.length-1:0)?null:e[a+(s?1:-1)];return h&&c==u&&h.level+(s?0:1)n.some(e=>e)}),vR=ge.define({combine:n=>n.some(e=>e)}),p0=ge.define();class ys{constructor(e,t="nearest",i="nearest",s=5,r=5,o=!1){this.range=e,this.y=t,this.x=i,this.yMargin=s,this.xMargin=r,this.isSnapshot=o}map(e){return e.empty?this:new ys(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new ys(ee.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const So=Fe.define({map:(n,e)=>n.map(e)}),m0=Fe.define();function mn(n,e,t){let i=n.facet(c0);i.length?i[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const Cn=ge.define({combine:n=>n.length?n[0]:!0});let wR=0;const rr=ge.define();class mi{constructor(e,t,i,s,r){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=s,this.extension=r(this)}static define(e,t){const{eventHandlers:i,eventObservers:s,provide:r,decorations:o}=t||{};return new mi(wR++,e,i,s,a=>{let l=[rr.of(a)];return o&&l.push(zr.of(u=>{let c=u.plugin(a);return c?o(c):tt.none})),r&&l.push(r(a)),l})}static fromClass(e,t){return mi.define(i=>new e(i),t)}}class Kl{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(mn(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){mn(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){mn(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const g0=ge.define(),Sh=ge.define(),zr=ge.define(),O0=ge.define(),_h=ge.define(),y0=ge.define();function Nf(n,e){let t=n.state.facet(y0);if(!t.length)return t;let i=t.map(r=>r instanceof Function?r(n):r),s=[];return ze.spans(i,e.from,e.to,{point(){},span(r,o,a,l){let u=r-e.from,c=o-e.from,h=s;for(let d=a.length-1;d>=0;d--,l--){let f=a[d].spec.bidiIsolate,p;if(f==null&&(f=yR(e.text,u,c)),l>0&&h.length&&(p=h[h.length-1]).to==u&&p.direction==f)p.to=c,h=p.inner;else{let m={from:u,to:c,direction:f,inner:[]};h.push(m),h=m.inner}}}}),s}const v0=ge.define();function w0(n){let e=0,t=0,i=0,s=0;for(let r of n.state.facet(v0)){let o=r(n);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(s=Math.max(s,o.bottom)))}return{left:e,right:t,top:i,bottom:s}}const or=ge.define();class jt{constructor(e,t,i,s){this.fromA=e,this.toA=t,this.fromB=i,this.toB=s}join(e){return new jt(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let s=e[t-1];if(!(s.fromA>i.toA)){if(s.toAc)break;r+=2}if(!l)return i;new jt(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),o=l.toA,a=l.toB}}}class Aa{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=ct.empty(this.startState.doc.length);for(let r of i)this.changes=this.changes.compose(r.changes);let s=[];this.changes.iterChangedRanges((r,o,a,l)=>s.push(new jt(r,o,a,l))),this.changedRanges=s}static create(e,t,i){return new Aa(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class If extends je{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=tt.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new nt],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new jt(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:u,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?s=this.domChanged.newSel.head:!PR(e.changes,this.hasComposition)&&!e.selectionSet&&(s=e.state.selection.main.head));let r=s>-1?xR(this.view,e.changes,s):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;i=new jt(u,c,e.changes.mapPos(u,-1),e.changes.mapPos(c,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(re.ie||re.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),l=$R(o,a,e.changes);return i=jt.extendWithRanges(i,l),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,i);let{observer:s}=this.view;s.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=re.chrome||re.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||s.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let r=[];if(this.view.viewport.from||this.view.viewport.to=0?s[o]:null;if(!a)break;let{fromA:l,toA:u,fromB:c,toB:h}=a,d,f,p,m;if(i&&i.range.fromBc){let g=wr.build(this.view.state.doc,c,i.range.fromB,this.decorations,this.dynamicDecorationMap),k=wr.build(this.view.state.doc,i.range.toB,h,this.decorations,this.dynamicDecorationMap);f=g.breakAtStart,p=g.openStart,m=k.openEnd;let S=this.compositionView(i);k.breakAtStart?S.breakAfter=1:k.content.length&&S.merge(S.length,S.length,k.content[0],!1,k.openStart,0)&&(S.breakAfter=k.content[0].breakAfter,k.content.shift()),g.content.length&&S.merge(0,0,g.content[g.content.length-1],!0,0,g.openEnd)&&g.content.pop(),d=g.content.concat(S).concat(k.content)}else({content:d,breakAtStart:f,openStart:p,openEnd:m}=wr.build(this.view.state.doc,c,h,this.decorations,this.dynamicDecorationMap));let{i:O,off:y}=r.findPos(u,1),{i:b,off:v}=r.findPos(l,-1);YO(this,b,v,O,y,d,f,p,m)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let i of t.effects)i.is(m0)&&(this.editContextFormatting=i.value)}compositionView(e){let t=new tn(e.text.nodeValue);t.flags|=8;for(let{deco:s}of e.marks)t=new jn(s,[t],t.length);let i=new nt;return i.append(t,0),i}fixCompositionDOM(e){let t=(r,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let a=je.get(r);a&&a!=o&&(a.dom=null),o.setDOM(r)},i=this.childPos(e.range.fromB,1),s=this.children[i.i];t(e.line,s);for(let r=e.marks.length-1;r>=-1;r--)i=s.childPos(i.off,1),s=s.children[i.i],t(r>=0?e.marks[r].node:e.text,s)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,s=i==this.dom,r=!s&&!(this.view.state.facet(Cn)||this.dom.tabIndex>-1)&&Ho(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(s||t||r))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),u=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(re.gecko&&a.empty&&!this.hasComposition&&bR(l)){let h=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(h,l.node.childNodes[l.offset]||null)),l=u=new mt(h,0),o=!0}let c=this.view.observer.selectionRange;(o||!c.focusNode||(!vr(l.node,l.offset,c.anchorNode,c.anchorOffset)||!vr(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,a))&&(this.view.observer.ignore(()=>{re.android&&re.chrome&&this.dom.contains(c.focusNode)&&kR(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=Ir(this.view.root);if(h)if(a.empty){if(re.gecko){let d=SR(l.node,l.offset);if(d&&d!=3){let f=(d==1?jO:WO)(l.node,l.offset);f&&(l=new mt(f.node,f.offset))}}h.collapse(l.node,l.offset),a.bidiLevel!=null&&h.caretBidiLevel!==void 0&&(h.caretBidiLevel=a.bidiLevel)}else if(h.extend){h.collapse(l.node,l.offset);try{h.extend(u.node,u.offset)}catch{}}else{let d=document.createRange();a.anchor>a.head&&([l,u]=[u,l]),d.setEnd(u.node,u.offset),d.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(d)}r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new mt(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new mt(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&vr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=Ir(e.root),{anchorNode:s,anchorOffset:r}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let o=nt.find(this,t.head);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let l=this.coordsAt(t.head,-1),u=this.coordsAt(t.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(t.head+t.assoc);i.collapse(c.node,c.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let h=e.observer.selectionRange;e.docView.posFromDOM(h.anchorNode,h.anchorOffset)!=t.from&&i.collapse(s,r)}moveToLine(e){let t=this.dom,i;if(e.node!=t)return e;for(let s=e.offset;!i&&s=0;s--){let r=je.get(t.childNodes[s]);r instanceof nt&&(i=r.domAtPos(r.length))}return i?new mt(i.node,i.offset,!0):e}nearest(e){for(let t=e;t;){let i=je.get(t);if(i&&i.rootView==this)return i;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t=0;o--){let a=this.children[o],l=r-a.breakAfter,u=l-a.length;if(le||a.covers(1))&&(!i||a instanceof nt&&!(i instanceof nt&&t>=0)))i=a,s=u;else if(i&&u==e&&l==e&&a instanceof In&&Math.abs(t)<2){if(a.deco.startSide<0)break;o&&(i=null)}r=u}return i?i.coordsAt(e-s,t):null}coordsForChar(e){let{i:t,off:i}=this.childPos(e,1),s=this.children[t];if(!(s instanceof nt))return null;for(;s.children.length;){let{i:a,off:l}=s.childPos(i,1);for(;;a++){if(a==s.children.length)return null;if((s=s.children[a]).length)break}i=l}if(!(s instanceof tn))return null;let r=bt(s.text,i);if(r==i)return null;let o=Yi(s.dom,i,r).getClientRects();for(let a=0;aMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==ut.LTR;for(let u=0,c=0;cs)break;if(u>=i){let f=h.dom.getBoundingClientRect();if(t.push(f.height),o){let p=h.dom.lastChild,m=p?Lr(p):[];if(m.length){let O=m[m.length-1],y=l?O.right-f.left:f.right-O.left;y>a&&(a=y,this.minWidth=r,this.minWidthFrom=u,this.minWidthTo=d)}}}u=d+h.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?ut.RTL:ut.LTR}measureTextSize(){for(let r of this.children)if(r instanceof nt){let o=r.measureTextSize();if(o)return o}let e=document.createElement("div"),t,i,s;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let r=Lr(e.firstChild)[0];t=e.getBoundingClientRect().height,i=r?r.width/27:7,s=r?r.height:t,e.remove()}),{lineHeight:t,charWidth:i,textHeight:s}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new qO(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,s=0;;s++){let r=s==t.viewports.length?null:t.viewports[s],o=r?r.from-1:this.length;if(o>i){let a=(t.lineBlockAt(o).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(tt.replace({widget:new xc(a),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return tt.set(e)}updateDeco(){let e=1,t=this.view.state.facet(zr).map(r=>(this.dynamicDecorationMap[e++]=typeof r=="function")?r(this.view):r),i=!1,s=this.view.state.facet(O0).map((r,o)=>{let a=typeof r=="function";return a&&(i=!0),a?r(this.view):r});for(s.length&&(this.dynamicDecorationMap[e++]=i,t.push(ze.join(s))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];et.anchor?-1:1),s;if(!i)return;!t.empty&&(s=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let r=w0(this.view),o={left:i.left-r.left,top:i.top-r.top,right:i.right+r.right,bottom:i.bottom+r.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;eR(this.view.scrollDOM,o,t.head{ie.from&&(t=!0)}),t}function QR(n,e,t=1){let i=n.charCategorizer(e),s=n.doc.lineAt(e),r=e-s.from;if(s.length==0)return ee.cursor(e);r==0?t=1:r==s.length&&(t=-1);let o=r,a=r;t<0?o=bt(s.text,r,!1):a=bt(s.text,r);let l=i(s.text.slice(o,a));for(;o>0;){let u=bt(s.text,o,!1);if(i(s.text.slice(u,o))!=l)break;o=u}for(;an?e.left-n:Math.max(0,n-e.right)}function AR(n,e){return e.top>n?e.top-n:Math.max(0,n-e.bottom)}function Jl(n,e){return n.tope.top+1}function Lf(n,e){return en.bottom?{top:n.top,left:n.left,right:n.right,bottom:e}:n}function Pc(n,e,t){let i,s,r,o,a=!1,l,u,c,h;for(let p=n.firstChild;p;p=p.nextSibling){let m=Lr(p);for(let O=0;Ov||o==v&&r>b){i=p,s=y,r=b,o=v;let g=v?t0?O0)}b==0?t>y.bottom&&(!c||c.bottomy.top)&&(u=p,h=y):c&&Jl(c,y)?c=zf(c,y.bottom):h&&Jl(h,y)&&(h=Lf(h,y.top))}}if(c&&c.bottom>=t?(i=l,s=c):h&&h.top<=t&&(i=u,s=h),!i)return{node:n,offset:0};let d=Math.max(s.left,Math.min(s.right,e));if(i.nodeType==3)return Vf(i,d,t);if(a&&i.contentEditable!="false")return Pc(i,d,t);let f=Array.prototype.indexOf.call(n.childNodes,i)+(e>=(s.left+s.right)/2?1:0);return{node:n,offset:f}}function Vf(n,e,t){let i=n.nodeValue.length,s=-1,r=1e9,o=0;for(let a=0;at?c.top-t:t-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&h=(c.left+c.right)/2,f=d;if((re.chrome||re.gecko)&&Yi(n,a).getBoundingClientRect().left==c.right&&(f=!d),h<=0)return{node:n,offset:a+(f?1:0)};s=a+(f?1:0),r=h}}}return{node:n,offset:s>-1?s:o>0?n.nodeValue.length:0}}function x0(n,e,t,i=-1){var s,r;let o=n.contentDOM.getBoundingClientRect(),a=o.top+n.viewState.paddingTop,l,{docHeight:u}=n.viewState,{x:c,y:h}=e,d=h-a;if(d<0)return 0;if(d>u)return n.state.doc.length;for(let g=n.viewState.heightOracle.textHeight/2,k=!1;l=n.elementAtHeight(d),l.type!=Ut.Text;)for(;d=i>0?l.bottom+g:l.top-g,!(d>=0&&d<=u);){if(k)return t?null:0;k=!0,i=-i}h=a+d;let f=l.from;if(fn.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:t?null:Xf(n,o,l,c,h);let p=n.dom.ownerDocument,m=n.root.elementFromPoint?n.root:p,O=m.elementFromPoint(c,h);O&&!n.contentDOM.contains(O)&&(O=null),O||(c=Math.max(o.left+1,Math.min(o.right-1,c)),O=m.elementFromPoint(c,h),O&&!n.contentDOM.contains(O)&&(O=null));let y,b=-1;if(O&&((s=n.docView.nearest(O))===null||s===void 0?void 0:s.isEditable)!=!1){if(p.caretPositionFromPoint){let g=p.caretPositionFromPoint(c,h);g&&({offsetNode:y,offset:b}=g)}else if(p.caretRangeFromPoint){let g=p.caretRangeFromPoint(c,h);g&&({startContainer:y,startOffset:b}=g,(!n.contentDOM.contains(y)||re.safari&&CR(y,b,c)||re.chrome&&ER(y,b,c))&&(y=void 0))}y&&(b=Math.min(vn(y),b))}if(!y||!n.docView.dom.contains(y)){let g=nt.find(n.docView,f);if(!g)return d>l.top+l.height/2?l.to:l.from;({node:y,offset:b}=Pc(g.dom,c,h))}let v=n.docView.nearest(y);if(!v)return null;if(v.isWidget&&((r=v.dom)===null||r===void 0?void 0:r.nodeType)==1){let g=v.dom.getBoundingClientRect();return e.yn.defaultLineHeight*1.5){let a=n.viewState.heightOracle.textHeight,l=Math.floor((s-t.top-(n.defaultLineHeight-a)*.5)/a);r+=l*n.viewState.heightOracle.lineLength}let o=n.state.sliceDoc(t.from,t.to);return t.from+YM(o,r,n.state.tabSize)}function CR(n,e,t){let i;if(n.nodeType!=3||e!=(i=n.nodeValue.length))return!1;for(let s=n.nextSibling;s;s=s.nextSibling)if(s.nodeType!=1||s.nodeName!="BR")return!1;return Yi(n,i-1,i).getBoundingClientRect().left>t}function ER(n,e,t){if(e!=0)return!1;for(let s=n;;){let r=s.parentNode;if(!r||r.nodeType!=1||r.firstChild!=s)return!1;if(r.classList.contains("cm-line"))break;s=r}let i=n.nodeType==1?n.getBoundingClientRect():Yi(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return t-i.left>5}function MR(n,e){let t=n.lineBlockAt(e);if(Array.isArray(t.type)){for(let i of t.type)if(i.to>e||i.to==e&&(i.to==t.to||i.type==Ut.Text))return i}return t}function RR(n,e,t,i){let s=MR(n,e.head),r=!i||s.type!=Ut.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>s.from?e.head-1:e.head);if(r){let o=n.dom.getBoundingClientRect(),a=n.textDirectionAt(s.from),l=n.posAtCoords({x:t==(a==ut.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(l!=null)return ee.cursor(l,t?-1:1)}return ee.cursor(t?s.to:s.from,t?-1:1)}function Bf(n,e,t,i){let s=n.state.doc.lineAt(e.head),r=n.bidiSpans(s),o=n.textDirectionAt(s.from);for(let a=e,l=null;;){let u=OR(s,r,o,a,t),c=o0;if(!u){if(s.number==(t?n.state.doc.lines:1))return a;c=` +`,s=n.state.doc.line(s.number+(t?1:-1)),r=n.bidiSpans(s),u=n.visualLineSide(s,!t)}if(l){if(!l(c))return a}else{if(!i)return u;l=i(c)}a=u}}function ZR(n,e,t){let i=n.state.charCategorizer(e),s=i(t);return r=>{let o=i(r);return s==Zn.Space&&(s=o),s==o}}function DR(n,e,t,i){let s=e.head,r=t?1:-1;if(s==(t?n.state.doc.length:0))return ee.cursor(s,e.assoc);let o=e.goalColumn,a,l=n.contentDOM.getBoundingClientRect(),u=n.coordsAtPos(s,e.assoc||-1),c=n.documentTop;if(u)o==null&&(o=u.left-l.left),a=r<0?u.top:u.bottom;else{let f=n.viewState.lineBlockAt(s);o==null&&(o=Math.min(l.right-l.left,n.defaultCharacterWidth*(s-f.from))),a=(r<0?f.top:f.bottom)+c}let h=l.left+o,d=i??n.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let p=a+(d+f)*r,m=x0(n,{x:h,y:p},!1,r);if(pl.bottom||(r<0?ms)){let O=n.docView.coordsForChar(m),y=!O||p{if(e>r&&es(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:ee.cursor(i,ir)&&this.lineBreak(),s=o}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,a;if(this.lineSeparator?(r=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(a=s.exec(t))&&(r=a.index,o=a[0].length),this.append(t.slice(i,r<0?t.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);i=r+o}}readNode(e){if(e.cmIgnore)return;let t=je.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(IR(e,i.node,i.offset)?t:0))}}function IR(n,e,t){for(;;){if(!e||t-1;let{impreciseHead:r,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let a=r||o?[]:XR(e),l=new NR(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=BR(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=r&&r.node==a.focusNode&&r.offset==a.focusOffset||!gc(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),u=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!gc(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),c=e.viewport;if((re.ios||re.chrome)&&e.state.selection.main.empty&&l!=u&&(c.from>0||c.toDate.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:a}=e.bounds,l=s.from,u=null;(r===8||re.android&&e.text.length=s.from&&t.to<=s.to&&(t.from!=s.from||t.to!=s.to)&&s.to-s.from-(t.to-t.from)<=4?t={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,t.from).append(t.insert).append(n.state.doc.slice(t.to,s.to))}:re.chrome&&t&&t.from==t.to&&t.from==s.head&&t.insert.toString()==` + `&&n.lineWrapping&&(i&&(i=ee.single(i.main.anchor-1,i.main.head-1)),t={from:s.from,to:s.to,insert:De.of([" "])}),t)return $h(n,t,i,r);if(i&&!i.main.eq(s)){let o=!1,a="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(o=!0),a=n.inputState.lastSelectionOrigin),n.dispatch({selection:i,scrollIntoView:o,userEvent:a}),!0}else return!1}function $h(n,e,t,i=-1){if(re.ios&&n.inputState.flushIOSKey(e))return!0;let s=n.state.selection.main;if(re.android&&(e.to==s.to&&(e.from==s.from||e.from==s.from-1&&n.state.sliceDoc(e.from,s.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Os(n.contentDOM,"Enter",13)||(e.from==s.from-1&&e.to==s.to&&e.insert.length==0||i==8&&e.insert.lengths.head)&&Os(n.contentDOM,"Backspace",8)||e.from==s.from&&e.to==s.to+1&&e.insert.length==0&&Os(n.contentDOM,"Delete",46)))return!0;let r=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let o,a=()=>o||(o=zR(n,e,t));return n.state.facet(h0).some(l=>l(n,e.from,e.to,r,a))||n.dispatch(a()),!0}function zR(n,e,t){let i,s=n.state,r=s.selection.main;if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let a=r.frome.to?s.sliceDoc(e.to,r.to):"";i=s.replaceSelection(n.state.toText(a+e.insert.sliceString(0,void 0,n.state.lineBreak)+l))}else{let a=s.changes(e),l=t&&t.main.to<=a.newLength?t.main:void 0;if(s.selection.ranges.length>1&&n.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){let u=n.state.sliceDoc(e.from,e.to),c,h=t&&b0(n,t.main.head);if(h){let p=e.insert.length-(e.to-e.from);c={from:h.from,to:h.to-p}}else c=n.state.doc.lineAt(r.head);let d=r.to-e.to,f=r.to-r.from;i=s.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return{changes:a,range:l||p.map(a)};let m=p.to-d,O=m-u.length;if(p.to-p.from!=f||n.state.sliceDoc(O,m)!=u||p.to>=c.from&&p.from<=c.to)return{range:p};let y=s.changes({from:O,to:m,insert:e.insert}),b=p.to-r.to;return{changes:y,range:l?ee.range(Math.max(0,l.anchor+b),Math.max(0,l.head+b)):p.map(y)}})}else i={changes:a,selection:l&&s.selection.replaceRange(l)}}let o="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,o+=".compose",n.inputState.compositionFirstChange&&(o+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:o,scrollIntoView:!0})}function VR(n,e,t,i){let s=Math.min(n.length,e.length),r=0;for(;r0&&a>0&&n.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(i=="end"){let l=Math.max(0,r-Math.min(o,a));t-=o+l-r}if(o=o?r-t:0;r-=l,a=r+(a-o),o=r}else if(a=a?r-t:0;r-=l,o=r+(o-a),a=r}return{from:r,toA:o,toB:a}}function XR(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:r}=n.observer.selectionRange;return t&&(e.push(new Uf(t,i)),(s!=t||r!=i)&&e.push(new Uf(s,r))),e}function BR(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?ee.single(t+e,i+e):null}class UR{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,re.safari&&e.contentDOM.addEventListener("input",()=>null),re.gecko&&oZ(e.contentDOM.ownerDocument)}handleEvent(e){!KR(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let i=this.handlers[e];if(i){for(let s of i.observers)s(this.view,t);for(let s of i.handlers){if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=jR(e),i=this.handlers,s=this.view.contentDOM;for(let r in t)if(r!="scroll"){let o=!t[r].handlers.length,a=i[r];a&&o!=!a.handlers.length&&(s.removeEventListener(r,this.handleEvent),a=null),a||s.addEventListener(r,this.handleEvent,{passive:o})}for(let r in i)r!="scroll"&&!t[r]&&s.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&$0.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),re.android&&re.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return re.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=_0.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||WR.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:re.safari&&!re.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function jf(n,e){return(t,i)=>{try{return e.call(n,i,t)}catch(s){mn(t.state,s)}}}function jR(n){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec;if(s&&s.domEventHandlers)for(let r in s.domEventHandlers){let o=s.domEventHandlers[r];o&&t(r).handlers.push(jf(i.value,o))}if(s&&s.domEventObservers)for(let r in s.domEventObservers){let o=s.domEventObservers[r];o&&t(r).observers.push(jf(i.value,o))}}for(let i in nn)t(i).handlers.push(nn[i]);for(let i in qt)t(i).observers.push(qt[i]);return e}const _0=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],WR="dthko",$0=[16,17,18,20,91,92,224,225],_o=6;function $o(n){return Math.max(0,n)*.7+8}function qR(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class YR{constructor(e,t,i,s){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=tR(e.contentDOM),this.atoms=e.state.facet(_h).map(o=>o(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Ne.allowMultipleSelections)&&GR(e,t),this.dragging=FR(e,t)&&Q0(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&qR(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,s=0,r=0,o=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=w0(this.view);e.clientX-l.left<=s+_o?t=-$o(s-e.clientX):e.clientX+l.right>=o-_o&&(t=$o(e.clientX-o)),e.clientY-l.top<=r+_o?i=-$o(r-e.clientY):e.clientY+l.bottom>=a-_o&&(i=$o(e.clientY-a)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let i=0;it.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function GR(n,e){let t=n.state.facet(a0);return t.length?t[0](e):re.mac?e.metaKey:e.ctrlKey}function HR(n,e){let t=n.state.facet(l0);return t.length?t[0](e):re.mac?!e.altKey:!e.ctrlKey}function FR(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let i=Ir(n.root);if(!i||i.rangeCount==0)return!0;let s=i.getRangeAt(0).getClientRects();for(let r=0;r=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function KR(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=je.get(t))&&i.ignoreEvent(e))return!1;return!0}const nn=Object.create(null),qt=Object.create(null),k0=re.ie&&re.ie_version<15||re.ios&&re.webkit_version<604;function JR(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),P0(n,t.value)},50)}function gl(n,e,t){for(let i of n.facet(e))t=i(t,n);return t}function P0(n,e){e=gl(n.state,bh,e);let{state:t}=n,i,s=1,r=t.toText(e),o=r.lines==t.selection.ranges.length;if(Qc!=null&&t.selection.ranges.every(l=>l.empty)&&Qc==r.toString()){let l=-1;i=t.changeByRange(u=>{let c=t.doc.lineAt(u.from);if(c.from==l)return{range:u};l=c.from;let h=t.toText((o?r.line(s++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:h},range:ee.cursor(u.from+h.length)}})}else o?i=t.changeByRange(l=>{let u=r.line(s++);return{changes:{from:l.from,to:l.to,insert:u.text},range:ee.cursor(l.from+u.length)}}):i=t.replaceSelection(r);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}qt.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};nn.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);qt.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};qt.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};nn.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of n.state.facet(u0))if(t=i(n,e),t)break;if(!t&&e.button==0&&(t=nZ(n,e)),t){let i=!n.hasFocus;n.inputState.startMouseSelection(new YR(n,e,t,i)),i&&n.observer.ignore(()=>{XO(n.contentDOM);let r=n.root.activeElement;r&&!r.contains(n.contentDOM)&&r.blur()});let s=n.inputState.mouseSelection;if(s)return s.start(e),s.dragging===!1}return!1};function Wf(n,e,t,i){if(i==1)return ee.cursor(e,t);if(i==2)return QR(n.state,e,t);{let s=nt.find(n.docView,e),r=n.state.doc.lineAt(s?s.posAtEnd:e),o=s?s.posAtStart:r.from,a=s?s.posAtEnd:r.to;return ae>=t.top&&e<=t.bottom&&n>=t.left&&n<=t.right;function eZ(n,e,t,i){let s=nt.find(n.docView,e);if(!s)return 1;let r=e-s.posAtStart;if(r==0)return 1;if(r==s.length)return-1;let o=s.coordsAt(r,-1);if(o&&qf(t,i,o))return-1;let a=s.coordsAt(r,1);return a&&qf(t,i,a)?1:o&&o.bottom>=i?-1:1}function Yf(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:eZ(n,t,e.clientX,e.clientY)}}const tZ=re.ie&&re.ie_version<=11;let Gf=null,Hf=0,Ff=0;function Q0(n){if(!tZ)return n.detail;let e=Gf,t=Ff;return Gf=n,Ff=Date.now(),Hf=!e||t>Date.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(Hf+1)%3:1}function nZ(n,e){let t=Yf(n,e),i=Q0(e),s=n.state.selection;return{update(r){r.docChanged&&(t.pos=r.changes.mapPos(t.pos),s=s.map(r.changes))},get(r,o,a){let l=Yf(n,r),u,c=Wf(n,l.pos,l.bias,i);if(t.pos!=l.pos&&!o){let h=Wf(n,t.pos,t.bias,i),d=Math.min(h.from,c.from),f=Math.max(h.to,c.to);c=d1&&(u=iZ(s,l.pos))?u:a?s.addRange(c):ee.create([c])}}}function iZ(n,e){for(let t=0;t=e)return ee.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}nn.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let s=n.docView.nearest(e.target);if(s&&s.isWidget){let r=s.posAtStart,o=r+s.length;(r>=t.to||o<=t.from)&&(t=ee.range(r,o))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",gl(n.state,xh,n.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};nn.dragend=n=>(n.inputState.draggedContent=null,!1);function Kf(n,e,t,i){if(t=gl(n.state,bh,t),!t)return;let s=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=n.inputState,o=i&&r&&HR(n,e)?{from:r.from,to:r.to}:null,a={from:s,insert:t},l=n.state.changes(o?[o,a]:a);n.focus(),n.dispatch({changes:l,selection:{anchor:l.mapPos(s,-1),head:l.mapPos(s,1)},userEvent:o?"move.drop":"input.drop"}),n.inputState.draggedContent=null}nn.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),s=0,r=()=>{++s==t.length&&Kf(n,e,i.filter(o=>o!=null).join(n.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(i[o]=a.result),r()},a.readAsText(t[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return Kf(n,e,i,!0),!0}return!1};nn.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=k0?null:e.clipboardData;return t?(P0(n,t.getData("text/plain")||t.getData("text/uri-list")),!0):(JR(n),!1)};function sZ(n,e){let t=n.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function rZ(n){let e=[],t=[],i=!1;for(let s of n.selection.ranges)s.empty||(e.push(n.sliceDoc(s.from,s.to)),t.push(s));if(!e.length){let s=-1;for(let{from:r}of n.selection.ranges){let o=n.doc.lineAt(r);o.number>s&&(e.push(o.text),t.push({from:o.from,to:Math.min(n.doc.length,o.to+1)})),s=o.number}i=!0}return{text:gl(n,xh,e.join(n.lineBreak)),ranges:t,linewise:i}}let Qc=null;nn.copy=nn.cut=(n,e)=>{let{text:t,ranges:i,linewise:s}=rZ(n.state);if(!t&&!s)return!1;Qc=s?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let r=k0?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",t),!0):(sZ(n,t),!1)};const T0=Ki.define();function A0(n,e){let t=[];for(let i of n.facet(d0)){let s=i(n,e);s&&t.push(s)}return t?n.update({effects:t,annotations:T0.of(!0)}):null}function C0(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=A0(n.state,e);t?n.dispatch(t):n.update([])}},10)}qt.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),C0(n)};qt.blur=n=>{n.observer.clearSelectionRange(),C0(n)};qt.compositionstart=qt.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};qt.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,re.chrome&&re.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};qt.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};nn.beforeinput=(n,e)=>{var t,i;if(e.inputType=="insertReplacementText"&&n.observer.editContext){let r=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(r&&o.length){let a=o[0],l=n.posAtDOM(a.startContainer,a.startOffset),u=n.posAtDOM(a.endContainer,a.endOffset);return $h(n,{from:l,to:u,insert:n.state.toText(r)},null),!0}}let s;if(re.chrome&&re.android&&(s=_0.find(r=>r.inputType==e.inputType))&&(n.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let r=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>r+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return re.ios&&e.inputType=="deleteContentForward"&&n.observer.flushSoon(),re.safari&&e.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>qt.compositionend(n,e),20),!1};const Jf=new Set;function oZ(n){Jf.has(n)||(Jf.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const ep=["pre-wrap","normal","pre-line","break-spaces"];let Es=!1;function tp(){Es=!1}class aZ{constructor(e){this.lineWrapping=e,this.doc=De.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return ep.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i-1,l=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=i,this.textHeight=s,this.lineLength=r,l){this.heightSamples={};for(let u=0;u0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Jo&&(Es=!0),this.height=e)}replace(e,t,i){return xt.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,s){let r=this,o=i.doc;for(let a=s.length-1;a>=0;a--){let{fromA:l,toA:u,fromB:c,toB:h}=s[a],d=r.lineAt(l,Ye.ByPosNoHeight,i.setDoc(t),0,0),f=d.to>=u?d:r.lineAt(u,Ye.ByPosNoHeight,i,0,0);for(h+=f.to-u,u=f.to;a>0&&d.from<=s[a-1].toA;)l=s[a-1].fromA,c=s[a-1].fromB,a--,lr*2){let a=e[t-1];a.break?e.splice(--t,1,a.left,null,a.right):e.splice(--t,1,a.left,a.right),i+=1+a.break,s-=a.size}else if(r>s*2){let a=e[i];a.break?e.splice(i,1,a.left,null,a.right):e.splice(i,1,a.left,a.right),i+=2+a.break,r-=a.size}else break;else if(s=r&&o(this.blockAt(0,i,s,r))}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more&&this.setHeight(s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Zt extends E0{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,i,s){return new pn(s,this.length,i,this.height,this.breaks)}replace(e,t,i){let s=i[0];return i.length==1&&(s instanceof Zt||s instanceof ht&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof ht?s=new Zt(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):xt.of(i)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more?this.setHeight(s.heights[s.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ht extends xt{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,s=e.doc.lineAt(t+this.length).number,r=s-i+1,o,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*r);o=l/r,this.length>r+1&&(a=(this.height-l)/(this.length-r-1))}else o=this.height/r;return{firstLine:i,lastLine:s,perLine:o,perChar:a}}blockAt(e,t,i,s){let{firstLine:r,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(t,s);if(t.lineWrapping){let u=s+(e0){let r=i[i.length-1];r instanceof ht?i[i.length-1]=new ht(r.length+s):i.push(null,new ht(s-1))}if(e>0){let r=i[0];r instanceof ht?i[0]=new ht(e+r.length):i.unshift(new ht(e-1),null)}return xt.of(i)}decomposeLeft(e,t){t.push(new ht(e-1),null)}decomposeRight(e,t){t.push(null,new ht(this.length-e-1))}updateHeight(e,t=0,i=!1,s){let r=t+this.length;if(s&&s.from<=t+this.length&&s.more){let o=[],a=Math.max(t,s.from),l=-1;for(s.from>t&&o.push(new ht(s.from-t-1).updateHeight(e,t));a<=r&&s.more;){let c=e.doc.lineAt(a).length;o.length&&o.push(null);let h=s.heights[s.index++];l==-1?l=h:Math.abs(h-l)>=Jo&&(l=-2);let d=new Zt(c,h);d.outdated=!1,o.push(d),a+=c+1}a<=r&&o.push(null,new ht(r-a).updateHeight(e,a));let u=xt.of(o);return(l<0||Math.abs(u.height-this.height)>=Jo||Math.abs(l-this.heightMetrics(e,t).perLine)>=Jo)&&(Es=!0),Ca(this,u)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class uZ extends xt{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,s){let r=i+this.left.height;return ea))return u;let c=t==Ye.ByPosNoHeight?Ye.ByPosNoHeight:Ye.ByPos;return l?u.join(this.right.lineAt(a,c,i,o,a)):this.left.lineAt(a,c,i,s,r).join(u)}forEachLine(e,t,i,s,r,o){let a=s+this.left.height,l=r+this.left.length+this.break;if(this.break)e=l&&this.right.forEachLine(e,t,i,a,l,o);else{let u=this.lineAt(l,Ye.ByPos,i,s,r);e=e&&u.from<=t&&o(u),t>u.to&&this.right.forEachLine(u.to+1,t,i,a,l,o)}}replace(e,t,i){let s=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-s,t-s,i));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let a of i)r.push(a);if(e>0&&np(r,o-1),t=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,s=i+this.break;if(e>=s)return this.right.decomposeRight(e-s,t);e2*t.size||t.size>2*e.size?xt.of(this.break?[e,null,t]:[e,t]):(this.left=Ca(this.left,e),this.right=Ca(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,s){let{left:r,right:o}=this,a=t+r.length+this.break,l=null;return s&&s.from<=t+r.length&&s.more?l=r=r.updateHeight(e,t,i,s):r.updateHeight(e,t,i),s&&s.from<=a+o.length&&s.more?l=o=o.updateHeight(e,a,i,s):o.updateHeight(e,a,i),l?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function np(n,e){let t,i;n[e]==null&&(t=n[e-1])instanceof ht&&(i=n[e+1])instanceof ht&&n.splice(e-1,3,new ht(t.length+1+i.length))}const cZ=5;class kh{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof Zt?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Zt(i-this.pos,-1)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e=cZ)&&this.addLineDeco(s,r,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new Zt(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new ht(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Zt)return e;let t=new Zt(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,e),s.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Zt)&&!this.isCovered?this.nodes.push(new Zt(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&h.overflow!="visible"){let d=c.getBoundingClientRect();r=Math.max(r,d.left),o=Math.min(o,d.right),a=Math.max(a,d.top),l=Math.min(u==n.parentNode?s.innerHeight:l,d.bottom)}u=h.position=="absolute"||h.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:r-t.left,right:Math.max(r,o)-t.left,top:a-(t.top+e),bottom:Math.max(a,l)-(t.top+e)}}function pZ(n){let e=n.getBoundingClientRect(),t=n.ownerDocument.defaultView||window;return e.left0&&e.top0}function mZ(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class tu{constructor(e,t,i,s){this.from=e,this.to=t,this.size=i,this.displaySize=s}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new aZ(t),this.stateDeco=e.facet(zr).filter(i=>typeof i!="function"),this.heightMap=xt.empty().applyChanges(this.stateDeco,De.empty,this.heightOracle.setDoc(e.doc),[new jt(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=tt.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let s=i?t.head:t.anchor;if(!e.some(({from:r,to:o})=>s>=r&&s<=o)){let{from:r,to:o}=this.lineBlockAt(s);e.push(new ko(r,o))}}return this.viewports=e.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?sp:new Ph(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(lr(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(zr).filter(c=>typeof c!="function");let s=e.changedRanges,r=jt.extendWithRanges(s,hZ(i,this.stateDeco,e?e.changes:ct.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);tp(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=o||Es)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(u||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(vR)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),s=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?ut.RTL:ut.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),a=t.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let u=0,c=0;if(a.width&&a.height){let{scaleX:g,scaleY:k}=VO(t,a);(g>.005&&Math.abs(this.scaleX-g)>.005||k>.005&&Math.abs(this.scaleY-k)>.005)&&(this.scaleX=g,this.scaleY=k,u|=16,o=l=!0)}let h=(parseInt(i.paddingTop)||0)*this.scaleY,d=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=h||this.paddingBottom!=d)&&(this.paddingTop=h,this.paddingBottom=d,u|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=16);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=UO(e.scrollDOM);let p=(this.printing?mZ:fZ)(t,this.paddingTop),m=p.top-this.pixelViewport.top,O=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget&&!pZ(e.dom))return 0;let b=a.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,u|=16),l){let g=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(g)&&(o=!0),o||s.lineWrapping&&Math.abs(b-this.contentDOMWidth)>s.charWidth){let{lineHeight:k,charWidth:S,textHeight:Q}=e.docView.measureTextSize();o=k>0&&s.refresh(r,k,S,Q,b/S,g),o&&(e.docView.minWidth=0,u|=16)}m>0&&O>0?c=Math.max(m,O):m<0&&O<0&&(c=Math.min(m,O)),tp();for(let k of this.viewports){let S=k.from==this.viewport.from?g:e.docView.measureVisibleLineHeights(k);this.heightMap=(o?xt.empty().applyChanges(this.stateDeco,De.empty,this.heightOracle,[new jt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,o,new lZ(k.from,S))}Es&&(u|=2)}let v=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=this.updateForViewport()),(u&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),s=this.heightMap,r=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new ko(s.lineAt(o-i*1e3,Ye.ByHeight,r,0,0).from,s.lineAt(a+(1-i)*1e3,Ye.ByHeight,r,0,0).to);if(t){let{head:u}=t.range;if(ul.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=s.lineAt(u,Ye.ByPos,r,0,0),d;t.y=="center"?d=(h.top+h.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&u=a+Math.max(10,Math.min(i,250)))&&s>o-2*1e3&&r>1,o=s<<1;if(this.defaultTextDirection!=ut.LTR&&!i)return[];let a=[],l=(c,h,d,f)=>{if(h-cc&&yy.from>=d.from&&y.to<=d.to&&Math.abs(y.from-c)y.fromb));if(!O){if(hv.from<=h&&v.to>=h)){let v=t.moveToLineBoundary(ee.cursor(h),!1,!0).head;v>c&&(h=v)}let y=this.gapSize(d,c,h,f),b=i||y<2e6?y:2e6;O=new tu(c,h,y,b)}a.push(O)},u=c=>{if(c.length2e6)for(let S of e)S.from>=c.from&&S.fromc.from&&l(c.from,f,c,h),pt.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];ze.spans(t,this.viewport.from,this.viewport.to,{span(r,o){i.push({from:r,to:o})},point(){}},20);let s=0;if(i.length!=this.visibleRanges.length)s=12;else for(let r=0;r=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||lr(this.heightMap.lineAt(e,Ye.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||lr(this.heightMap.lineAt(this.scaler.fromDOM(e),Ye.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return lr(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class ko{constructor(e,t){this.from=e,this.to=t}}function OZ(n,e,t){let i=[],s=n,r=0;return ze.spans(t,n,e,{span(){},point(o,a){o>s&&(i.push({from:s,to:o}),r+=o-s),s=a}},20),s=1)return e[e.length-1].to;let i=Math.floor(n*t);for(let s=0;;s++){let{from:r,to:o}=e[s],a=o-r;if(i<=a)return r+i;i-=a}}function Qo(n,e){let t=0;for(let{from:i,to:s}of n.ranges){if(e<=s){t+=e-i;break}t+=s-i}return t/n.total}function yZ(n,e){for(let t of n)if(e(t))return t}const sp={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};class Ph{constructor(e,t,i){let s=0,r=0,o=0;this.viewports=i.map(({from:a,to:l})=>{let u=t.lineAt(a,Ye.ByPos,e,0,0).top,c=t.lineAt(l,Ye.ByPos,e,0,0).bottom;return s+=c-u,{from:a,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(t.height-s);for(let a of this.viewports)a.domTop=o+(a.top-r)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),r=a.bottom}toDOM(e){for(let t=0,i=0,s=0;;t++){let r=tt.from==e.viewports[i].from&&t.to==e.viewports[i].to):!1}}function lr(n,e){if(e.scale==1)return n;let t=e.toDOM(n.top),i=e.toDOM(n.bottom);return new pn(n.from,n.length,t,i-t,Array.isArray(n._content)?n._content.map(s=>lr(s,e)):n._content)}const To=ge.define({combine:n=>n.join(" ")}),Tc=ge.define({combine:n=>n.indexOf(!0)>-1}),Ac=di.newName(),M0=di.newName(),R0=di.newName(),Z0={"&light":"."+M0,"&dark":"."+R0};function Cc(n,e,t){return new di(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,s=>{if(s=="&")return n;if(!t||!t[s])throw new RangeError(`Unsupported selector: ${s}`);return t[s]}):n+" "+i}})}const vZ=Cc("."+Ac,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Z0),wZ={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},nu=re.ie&&re.ie_version<=11;class bZ{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new nR,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(re.ie&&re.ie_version<=11||re.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(re.chrome&&re.chrome_version<126)&&(this.editContext=new SZ(e),e.state.facet(Cn)&&(e.contentDOM.editContext=this.editContext.editContext)),nu&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(Cn)?i.root.activeElement!=this.dom:!Ho(this.dom,s))return;let r=s.anchorNode&&i.docView.nearest(s.anchorNode);if(r&&r.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(re.ie&&re.ie_version<=11||re.android&&re.chrome)&&!i.state.selection.main.empty&&s.focusNode&&vr(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Ir(e.root);if(!t)return!1;let i=re.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&xZ(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let s=Ho(this.dom,i);return s&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&Os(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,s=!1;for(let r of e){let o=this.readMutation(r);o&&(o.typeOver&&(s=!0),t==-1?{from:t,to:i}=o:(t=Math.min(o.from,t),i=Math.max(o.to,i)))}return{from:t,to:i,typeOver:s}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),s=this.selectionChanged&&Ho(this.dom,this.selectionRange);if(e<0&&!s)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new LR(this.view,e,t,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,s=S0(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),s}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let i=rp(t,e.previousSibling||e.target.previousSibling,-1),s=rp(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:s?t.posBefore(s):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Cn)!=e.state.facet(Cn)&&(e.view.contentDOM.editContext=e.state.facet(Cn)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function rp(n,e,t){for(;e;){let i=je.get(e);if(i&&i.parent==n)return i;let s=e.parentNode;e=s!=n.dom?s:t>0?e.nextSibling:e.previousSibling}return null}function op(n,e){let t=e.startContainer,i=e.startOffset,s=e.endContainer,r=e.endOffset,o=n.docView.domAtPos(n.state.selection.main.anchor);return vr(o.node,o.offset,s,r)&&([t,i,s,r]=[s,r,t,i]),{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:r}}function xZ(n,e){if(e.getComposedRanges){let s=e.getComposedRanges(n.root)[0];if(s)return op(n,s)}let t=null;function i(s){s.preventDefault(),s.stopImmediatePropagation(),t=s.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",i,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,!0),t?op(n,t):null}class SZ{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let s=e.state.selection.main,{anchor:r,head:o}=s,a=this.toEditorPos(i.updateRangeStart),l=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:a,drifted:!1});let u={from:a,to:l,insert:De.of(i.text.split(` +`))};if(u.from==this.from&&rthis.to&&(u.to=r),u.from==u.to&&!u.insert.length){let c=ee.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));c.main.eq(s)||e.dispatch({selection:c,userEvent:"select"});return}if((re.mac||re.android)&&u.from==o-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(u={from:a,to:l,insert:De.of([i.text.replace("."," ")])}),this.pendingContextChange=u,!e.state.readOnly){let c=this.to-this.from+(u.to-u.from+u.insert.length);$h(e,u,ee.single(this.toEditorPos(i.selectionStart,c),this.toEditorPos(i.selectionEnd,c)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=i=>{let s=[],r=null;for(let o=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);o{let s=[];for(let r of i.getTextFormats()){let o=r.underlineStyle,a=r.underlineThickness;if(o!="None"&&a!="None"){let l=this.toEditorPos(r.rangeStart),u=this.toEditorPos(r.rangeEnd);if(l{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=Ir(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,s=this.pendingContextChange;return e.changes.iterChanges((r,o,a,l,u)=>{if(i)return;let c=u.length-(o-r);if(s&&o>=s.to)if(s.from==r&&s.to==o&&s.insert.eq(u)){s=this.pendingContextChange=null,t+=c,this.to+=c;return}else s=null,this.revertPending(e.state);if(r+=t,o+=t,o<=this.from)this.from+=c,this.to+=c;else if(rthis.to||this.to-this.from+u.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(o),u.toString()),this.to+=c}t+=c}),s&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange;this.composing&&(this.composing.drifted||e.transactions.some(i=>!i.isUserEvent("input.type")&&i.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),s=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class _e{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(s=>s.forEach(r=>i(r,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||iR(e.parent)||document,this.viewState=new ip(e.state||Ne.create(e)),e.scrollTo&&e.scrollTo.is(So)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(rr).map(s=>new Kl(s));for(let s of this.plugins)s.update(this);this.observer=new bZ(this),this.inputState=new UR(this),this.inputState.ensureHandlers(this.plugins),this.docView=new If(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof ft?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,s,r=this.state;for(let d of e){if(d.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=d.state}if(this.destroyed){this.viewState.state=r;return}let o=this.hasFocus,a=0,l=null;e.some(d=>d.annotation(T0))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=A0(r,o),l||(a=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(c=null)):this.observer.clear(),r.facet(Ne.phrases)!=this.state.facet(Ne.phrases))return this.setState(r);s=Aa.create(this,r,e),s.flags|=a;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(h&&(h=h.map(d.changes)),d.scrollIntoView){let{main:f}=d.state.selection;h=new ys(f.empty?f:ee.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of d.effects)f.is(So)&&(h=f.value.clip(this.state))}this.viewState.update(s,h),this.bidiCache=Ea.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),t=this.docView.update(s),this.state.facet(or)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(To)!=s.state.facet(To)&&(this.viewState.mustMeasureContent=!0),(t||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!s.empty)for(let d of this.state.facet(kc))try{d(s)}catch(f){mn(this.state,f,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!S0(this,c)&&u.force&&Os(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new ip(e),this.plugins=e.facet(rr).map(i=>new Kl(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new If(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(rr),i=e.state.facet(rr);if(t!=i){let s=[];for(let r of i){let o=t.indexOf(r);if(o<0)s.push(new Kl(r));else{let a=this.plugins[o];a.mustUpdate=e,s.push(a)}}for(let r of this.plugins)r.mustUpdate!=e&&r.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=e;for(let s=0;s-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:o}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(UO(i))r=-1,o=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(s);r=f.from,o=f.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(f=>{try{return f.read(this)}catch(p){return mn(this.state,p),ap}}),h=Aa.create(this,this.state,[]),d=!1;h.flags|=l,t?t.flags|=l:t=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),d=this.docView.update(h),d&&this.docViewUpdate());for(let f=0;f1||p<-1){s=s+p,i.scrollTop=s/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(kc))a(t)}get themeClasses(){return Ac+" "+(this.state.facet(Tc)?R0:M0)+" "+this.state.facet(To)}updateAttrs(){let e=lp(this,g0,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Cn)?"true":"false",class:"cm-content",style:`${re.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),lp(this,Sh,t);let i=this.observer.ignore(()=>{let s=bc(this.contentDOM,this.contentAttrs,t),r=bc(this.dom,this.editorAttrs,e);return s||r});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let s of i.effects)if(s.is(_e.announce)){t&&(this.announceDOM.textContent=""),t=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=s.value}}mountStyles(){this.styleModules=this.state.facet(or);let e=this.state.facet(_e.cspNonce);di.mount(this.root,this.styleModules.concat(vZ).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;ti.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return eu(this,e,Bf(this,e,t,i))}moveByGroup(e,t){return eu(this,e,Bf(this,e,t,i=>ZR(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),s=this.textDirectionAt(e.from),r=i[t?i.length-1:0];return ee.cursor(r.side(t,s)+e.from,r.forward(!t,s)?1:-1)}moveToLineBoundary(e,t,i=!0){return RR(this,e,t,i)}moveVertically(e,t,i){return eu(this,e,DR(this,e,t,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),x0(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(e),r=this.bidiSpans(s),o=r[li.find(r,e-s.from,-1,t)];return fl(i,o.dir==ut.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(f0)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>_Z)return r0(e.length);let t=this.textDirectionAt(e.from),i;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||s0(r.isolates,i=Nf(this,e))))return r.order;i||(i=Nf(this,e));let s=gR(e.text,t,i);return this.bidiCache.push(new Ea(e.from,e.to,t,i,!0,s)),s}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||re.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{XO(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return So.of(new ys(typeof e=="number"?ee.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return So.of(new ys(ee.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return mi.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return mi.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=di.newName(),s=[To.of(i),or.of(Cc(`.${i}`,e))];return t&&t.dark&&s.push(Tc.of(!0)),s}static baseTheme(e){return cl.lowest(or.of(Cc("."+Ac,e,Z0)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),s=i&&je.get(i)||je.get(e);return((t=s==null?void 0:s.rootView)===null||t===void 0?void 0:t.view)||null}}_e.styleModule=or;_e.inputHandler=h0;_e.clipboardInputFilter=bh;_e.clipboardOutputFilter=xh;_e.scrollHandler=p0;_e.focusChangeEffect=d0;_e.perLineTextDirection=f0;_e.exceptionSink=c0;_e.updateListener=kc;_e.editable=Cn;_e.mouseSelectionStyle=u0;_e.dragMovesSelection=l0;_e.clickAddsSelectionRange=a0;_e.decorations=zr;_e.outerDecorations=O0;_e.atomicRanges=_h;_e.bidiIsolatedRanges=y0;_e.scrollMargins=v0;_e.darkTheme=Tc;_e.cspNonce=ge.define({combine:n=>n.length?n[0]:""});_e.contentAttributes=Sh;_e.editorAttributes=g0;_e.lineWrapping=_e.contentAttributes.of({class:"cm-lineWrapping"});_e.announce=Fe.define();const _Z=4096,ap={};class Ea{constructor(e,t,i,s,r,o){this.from=e,this.to=t,this.dir=i,this.isolates=s,this.fresh=r,this.order=o}static update(e,t){if(t.empty&&!e.some(r=>r.fresh))return e;let i=[],s=e.length?e[e.length-1].dir:ut.LTR;for(let r=Math.max(0,e.length-10);r=0;s--){let r=i[s],o=typeof r=="function"?r(n):r;o&&wc(o,t)}return t}const $Z=re.mac?"mac":re.windows?"win":re.linux?"linux":"key";function kZ(n,e){const t=n.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let s,r,o,a;for(let l=0;li.concat(s),[]))),t}let oi=null;const TZ=4e3;function AZ(n,e=$Z){let t=Object.create(null),i=Object.create(null),s=(o,a)=>{let l=i[o];if(l==null)i[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,a,l,u,c)=>{var h,d;let f=t[o]||(t[o]=Object.create(null)),p=a.split(/ (?!$)/).map(y=>kZ(y,e));for(let y=1;y{let g=oi={view:v,prefix:b,scope:o};return setTimeout(()=>{oi==g&&(oi=null)},TZ),!0}]})}let m=p.join(" ");s(m,!1);let O=f[m]||(f[m]={preventDefault:!1,stopPropagation:!1,run:((d=(h=f._any)===null||h===void 0?void 0:h.run)===null||d===void 0?void 0:d.slice())||[]});l&&O.run.push(l),u&&(O.preventDefault=!0),c&&(O.stopPropagation=!0)};for(let o of n){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let u of a){let c=t[u]||(t[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:h}=o;for(let d in c)c[d].run.push(f=>h(f,Ec))}let l=o[e]||o.key;if(l)for(let u of a)r(u,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(u,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return t}let Ec=null;function CZ(n,e,t,i){Ec=e;let s=KM(e),r=MM(s,0),o=RM(r)==s.length&&s!=" ",a="",l=!1,u=!1,c=!1;oi&&oi.view==t&&oi.scope==i&&(a=oi.prefix+" ",$0.indexOf(e.keyCode)<0&&(u=!0,oi=null));let h=new Set,d=O=>{if(O){for(let y of O.run)if(!h.has(y)&&(h.add(y),y(t)))return O.stopPropagation&&(c=!0),!0;O.preventDefault&&(O.stopPropagation&&(c=!0),u=!0)}return!1},f=n[i],p,m;return f&&(d(f[a+Ao(s,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(re.windows&&e.ctrlKey&&e.altKey)&&(p=fi[e.keyCode])&&p!=s?(d(f[a+Ao(p,e,!0)])||e.shiftKey&&(m=Nr[e.keyCode])!=s&&m!=p&&d(f[a+Ao(m,e,!1)]))&&(l=!0):o&&e.shiftKey&&d(f[a+Ao(s,e,!0)])&&(l=!0),!l&&d(f._any)&&(l=!0)),u&&(l=!0),l&&c&&e.stopPropagation(),Ec=null,l}const EZ=!(re.ios&&re.webkit&&re.webkit_version<534),cp={".cm-line":{},".cm-content":{}};EZ&&(cp[".cm-line"].caretColor=cp[".cm-content"].caretColor="transparent !important");class Hi extends Wi{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Hi.prototype.elementClass="";Hi.prototype.toDOM=void 0;Hi.prototype.mapMode=wt.TrackBefore;Hi.prototype.startSide=Hi.prototype.endSide=-1;Hi.prototype.point=!0;const iu=ge.define(),MZ=ge.define(),ea=ge.define(),hp=ge.define({combine:n=>n.some(e=>e)});function RZ(n){return[ZZ]}const ZZ=mi.fromClass(class{constructor(n){this.view=n,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(ea).map(e=>new fp(n,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!n.state.facet(hp),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}update(n){if(this.updateGutters(n)){let e=this.prevViewport,t=n.view.viewport,i=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(i<(t.to-t.from)*.8)}n.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(hp)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=n.view.viewport}syncGutters(n){let e=this.dom.nextSibling;n&&this.dom.remove();let t=ze.iter(this.view.state.facet(iu),this.view.viewport.from),i=[],s=this.gutters.map(r=>new DZ(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let o=!0;for(let a of r.type)if(a.type==Ut.Text&&o){Mc(t,i,a.from);for(let l of s)l.line(this.view,a,i);o=!1}else if(a.widget)for(let l of s)l.widget(this.view,a)}else if(r.type==Ut.Text){Mc(t,i,r.from);for(let o of s)o.line(this.view,r,i)}else if(r.widget)for(let o of s)o.widget(this.view,r);for(let r of s)r.finish();n&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(n){let e=n.startState.facet(ea),t=n.state.facet(ea),i=n.docChanged||n.heightChanged||n.viewportChanged||!ze.eq(n.startState.facet(iu),n.state.facet(iu),n.view.viewport.from,n.view.viewport.to);if(e==t)for(let s of this.gutters)s.update(n)&&(i=!0);else{i=!0;let s=[];for(let r of t){let o=e.indexOf(r);o<0?s.push(new fp(this.view,r)):(this.gutters[o].update(n),s.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),s.indexOf(r)<0&&r.destroy();for(let r of s)this.dom.appendChild(r.dom);this.gutters=s}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove()}},{provide:n=>_e.scrollMargins.of(e=>{let t=e.plugin(n);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==ut.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function dp(n){return Array.isArray(n)?n:[n]}function Mc(n,e,t){for(;n.value&&n.from<=t;)n.from==t&&e.push(n.value),n.next()}class DZ{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=ze.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:s}=this,r=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==s.elements.length){let a=new D0(e,o,r,i);s.elements.push(a),s.dom.appendChild(a.dom)}else s.elements[this.i].update(e,o,r,i);this.height=t.bottom,this.i++}line(e,t,i){let s=[];Mc(this.cursor,s,t.from),i.length&&(s=s.concat(i));let r=this.gutter.config.lineMarker(e,t,s);r&&s.unshift(r);let o=this.gutter;s.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,s)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),s=i?[i]:null;for(let r of e.state.facet(MZ)){let o=r(e,t.widget,t);o&&(s||(s=[])).push(o)}s&&this.addElement(e,t,s)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class fp{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,s=>{let r=s.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let l=r.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=s.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[i](e,a,s)&&s.preventDefault()});this.markers=dp(t.markers(e)),t.initialSpacer&&(this.spacer=new D0(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=dp(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],e);s!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[s])}let i=e.view.viewport;return!ze.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class D0{constructor(e,t,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,s)}update(e,t,i,s){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),NZ(this.markers,s)||this.setMarkers(e,s)}setMarkers(e,t){let i="cm-gutterElement",s=this.dom.firstChild;for(let r=0,o=0;;){let a=o,l=rr(a,l,u)||o(a,l,u):o}return i}})}});class su extends Hi{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function ru(n,e){return n.state.facet(os).formatNumber(e,n.state)}const zZ=ea.compute([os],n=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(IZ)},lineMarker(e,t,i){return i.some(s=>s.toDOM)?null:new su(ru(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,i)=>{for(let s of e.state.facet(LZ)){let r=s(e,t,i);if(r)return r}return null},lineMarkerChange:e=>e.startState.facet(os)!=e.state.facet(os),initialSpacer(e){return new su(ru(e,pp(e.state.doc.lines)))},updateSpacer(e,t){let i=ru(t.view,pp(t.view.state.doc.lines));return i==e.number?e:new su(i)},domEventHandlers:n.facet(os).domEventHandlers}));function VZ(n={}){return[os.of(n),RZ(),zZ]}function pp(n){let e=9;for(;e{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=At.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}Pe.closedBy=new Pe({deserialize:n=>n.split(" ")});Pe.openedBy=new Pe({deserialize:n=>n.split(" ")});Pe.group=new Pe({deserialize:n=>n.split(" ")});Pe.isolate=new Pe({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});Pe.contextHash=new Pe({perNode:!0});Pe.lookAhead=new Pe({perNode:!0});Pe.mounted=new Pe({perNode:!0});class Ra{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}static get(e){return e&&e.props&&e.props[Pe.mounted.id]}}const BZ=Object.create(null);class At{constructor(e,t,i,s=0){this.name=e,this.props=t,this.id=i,this.flags=s}static define(e){let t=e.props&&e.props.length?Object.create(null):BZ,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),s=new At(e.name||"",t,e.id,i);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(s)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return s}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(Pe.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let s of i.split(" "))t[s]=e[i];return i=>{for(let s=i.prop(Pe.group),r=-1;r<(s?s.length:0);r++){let o=t[r<0?i.name:s[r]];if(o)return o}}}}At.none=new At("",Object.create(null),0,8);class Qh{constructor(e){this.types=e;for(let t=0;t0;for(let l=this.cursor(o|at.IncludeAnonymous);;){let u=!1;if(l.from<=r&&l.to>=s&&(!a&&l.type.isAnonymous||t(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&i&&(a||!l.type.isAnonymous)&&i(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Ch(At.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,s)=>new rt(this.type,t,i,s,this.propValues),e.makeTree||((t,i,s)=>new rt(At.none,t,i,s)))}static build(e){return qZ(e)}}rt.empty=new rt(At.none,[],[],0);class Th{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Th(this.buffer,this.index)}}class gi{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return At.none}toString(){let e=[];for(let t=0;t0));l=o[l+3]);return a}slice(e,t,i){let s=this.buffer,r=new Uint16Array(t-e),o=0;for(let a=e,l=0;a=e&&te;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function Vr(n,e,t,i){for(var s;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to0?a.length:-1;e!=u;e+=t){let c=a[e],h=l[e]+o.from;if(I0(s,i,h,h+c.length)){if(c instanceof gi){if(r&at.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,t,i-h,s);if(d>-1)return new gn(new UZ(o,c,e,h),null,d)}else if(r&at.IncludeAnonymous||!c.type.isAnonymous||Ah(c)){let d;if(!(r&at.IgnoreMounts)&&(d=Ra.get(c))&&!d.overlay)return new Tt(d.tree,h,e,o);let f=new Tt(c,h,e,o);return r&at.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?c.children.length-1:0,t,i,s)}}}if(r&at.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let s;if(!(i&at.IgnoreOverlays)&&(s=Ra.get(this._tree))&&s.overlay){let r=e-this.from;for(let{from:o,to:a}of s.overlay)if((t>0?o<=r:o=r:a>r))return new Tt(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function gp(n,e,t,i){let s=n.cursor(),r=[];if(!s.firstChild())return r;if(t!=null){for(let o=!1;!o;)if(o=s.type.is(t),!s.nextSibling())return r}for(;;){if(i!=null&&s.type.is(i))return r;if(s.type.is(e)&&r.push(s.node),!s.nextSibling())return i==null?r:[]}}function Rc(n,e,t=e.length-1){for(let i=n;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class UZ{constructor(e,t,i,s){this.parent=e,this.buffer=t,this.index=i,this.start=s}}class gn extends L0{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.context.start,i);return r<0?null:new gn(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&at.ExcludeBuffers)return null;let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new gn(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new gn(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new gn(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,s=this.index+4,r=i.buffer[this.index+3];if(r>s){let o=i.buffer[this.index+1];e.push(i.slice(s,r,o)),t.push(0)}return new rt(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function z0(n){if(!n.length)return null;let e=0,t=n[0];for(let r=1;rt.from||o.to=e){let a=new Tt(o.tree,o.overlay[0].from+r.from,-1,r);(s||(s=[i])).push(Vr(a,e,t,!1))}}return s?z0(s):i}class Zc{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Tt)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:s}=this.buffer;return this.type=t||s.set.types[s.buffer[e]],this.from=i+s.buffer[e+1],this.to=i+s.buffer[e+2],!0}yield(e){return e?e instanceof Tt?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:s}=this.buffer,r=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.buffer.start,i);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&at.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&at.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&at.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(t.findChild(s,this.index,-1,0,4))}else{let s=t.buffer[this.index+3];if(s<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:s}=this;if(s){if(e>0){if(this.index-1)for(let r=t+e,o=e<0?-1:i._tree.children.length;r!=o;r+=e){let a=i._tree.children[r];if(this.mode&at.IncludeAnonymous||a instanceof gi||!a.type.isAnonymous||Ah(a))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==s){if(s==this.index)return o;t=o,i=r+1;break e}s=this.stack[--r]}for(let s=i;s=0;r--){if(r<0)return Rc(this._tree,e,s);let o=i[t.buffer[this.stack[r]]];if(!o.isAnonymous){if(e[s]&&e[s]!=o.name)return!1;s--}}return!0}}function Ah(n){return n.children.some(e=>e instanceof gi||!e.type.isAnonymous||Ah(e))}function qZ(n){var e;let{buffer:t,nodeSet:i,maxBufferLength:s=N0,reused:r=[],minRepeatType:o=i.types.length}=n,a=Array.isArray(t)?new Th(t,t.length):t,l=i.types,u=0,c=0;function h(k,S,Q,T,P,B){let{id:W,start:C,end:j,size:w}=a,R=c,_=u;for(;w<0;)if(a.next(),w==-1){let Y=r[W];Q.push(Y),T.push(C-k);return}else if(w==-3){u=W;return}else if(w==-4){c=W;return}else throw new RangeError(`Unrecognized record size: ${w}`);let D=l[W],N,U,V=C-k;if(j-C<=s&&(U=O(a.pos-S,P))){let Y=new Uint16Array(U.size-U.skip),E=a.pos-U.size,X=Y.length;for(;a.pos>E;)X=y(U.start,Y,X);N=new gi(Y,j-U.start,i),V=U.start-k}else{let Y=a.pos-w;a.next();let E=[],X=[],H=W>=o?W:-1,J=0,me=j;for(;a.pos>Y;)H>=0&&a.id==H&&a.size>=0?(a.end<=me-s&&(p(E,X,C,J,a.end,me,H,R,_),J=E.length,me=a.end),a.next()):B>2500?d(C,Y,E,X):h(C,Y,E,X,H,B+1);if(H>=0&&J>0&&J-1&&J>0){let oe=f(D,_);N=Ch(D,E,X,0,E.length,0,j-C,oe,oe)}else N=m(D,E,X,j-C,R-j,_)}Q.push(N),T.push(V)}function d(k,S,Q,T){let P=[],B=0,W=-1;for(;a.pos>S;){let{id:C,start:j,end:w,size:R}=a;if(R>4)a.next();else{if(W>-1&&j=0;w-=3)C[R++]=P[w],C[R++]=P[w+1]-j,C[R++]=P[w+2]-j,C[R++]=R;Q.push(new gi(C,P[2]-j,i)),T.push(j-k)}}function f(k,S){return(Q,T,P)=>{let B=0,W=Q.length-1,C,j;if(W>=0&&(C=Q[W])instanceof rt){if(!W&&C.type==k&&C.length==P)return C;(j=C.prop(Pe.lookAhead))&&(B=T[W]+C.length+j)}return m(k,Q,T,P,B,S)}}function p(k,S,Q,T,P,B,W,C,j){let w=[],R=[];for(;k.length>T;)w.push(k.pop()),R.push(S.pop()+Q-P);k.push(m(i.types[W],w,R,B-P,C-B,j)),S.push(P-Q)}function m(k,S,Q,T,P,B,W){if(B){let C=[Pe.contextHash,B];W=W?[C].concat(W):[C]}if(P>25){let C=[Pe.lookAhead,P];W=W?[C].concat(W):[C]}return new rt(k,S,Q,T,W)}function O(k,S){let Q=a.fork(),T=0,P=0,B=0,W=Q.end-s,C={size:0,start:0,skip:0};e:for(let j=Q.pos-k;Q.pos>j;){let w=Q.size;if(Q.id==S&&w>=0){C.size=T,C.start=P,C.skip=B,B+=4,T+=4,Q.next();continue}let R=Q.pos-w;if(w<0||R=o?4:0,D=Q.start;for(Q.next();Q.pos>R;){if(Q.size<0)if(Q.size==-3)_+=4;else break e;else Q.id>=o&&(_+=4);Q.next()}P=D,T+=w,B+=_}return(S<0||T==k)&&(C.size=T,C.start=P,C.skip=B),C.size>4?C:void 0}function y(k,S,Q){let{id:T,start:P,end:B,size:W}=a;if(a.next(),W>=0&&T4){let j=a.pos-(W-4);for(;a.pos>j;)Q=y(k,S,Q)}S[--Q]=C,S[--Q]=B-k,S[--Q]=P-k,S[--Q]=T}else W==-3?u=T:W==-4&&(c=T);return Q}let b=[],v=[];for(;a.pos>0;)h(n.start||0,n.bufferStart||0,b,v,-1,0);let g=(e=n.length)!==null&&e!==void 0?e:b.length?v[0]+b[0].length:0;return new rt(l[n.topID],b.reverse(),v.reverse(),g)}const Op=new WeakMap;function ta(n,e){if(!n.isAnonymous||e instanceof gi||e.type!=n)return 1;let t=Op.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=n||!(i instanceof rt)){t=1;break}t+=ta(n,i)}Op.set(e,t)}return t}function Ch(n,e,t,i,s,r,o,a,l){let u=0;for(let p=i;p=c)break;S+=Q}if(v==g+1){if(S>c){let Q=p[g];f(Q.children,Q.positions,0,Q.children.length,m[g]+b);continue}h.push(p[g])}else{let Q=m[v-1]+p[v-1].length-k;h.push(Ch(n,p,m,g,v,k,Q,null,l))}d.push(k+b-r)}}return f(e,t,i,s,0),(a||l)(h,d,o)}class YZ{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let s=this.map.get(e);s||this.map.set(e,s=new Map),s.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof gn?this.setBuffer(e.context.buffer,e.index,t):e instanceof Tt&&this.map.set(e.tree,t)}get(e){return e instanceof gn?this.getBuffer(e.context.buffer,e.index):e instanceof Tt?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Vi{constructor(e,t,i,s,r=!1,o=!1){this.from=e,this.to=t,this.tree=i,this.offset=s,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let s=[new Vi(0,e.length,e,0,!1,i)];for(let r of t)r.to>e.length&&s.push(r);return s}static applyChanges(e,t,i=128){if(!t.length)return e;let s=[],r=1,o=e.length?e[0]:null;for(let a=0,l=0,u=0;;a++){let c=a=i)for(;o&&o.from=d.from||h<=d.to||u){let f=Math.max(d.from,l)-u,p=Math.min(d.to,h)-u;d=f>=p?null:new Vi(f,p,d.tree,d.offset+u,a>0,!!c)}if(d&&s.push(d),o.to>h)break;o=rnew ou(s.from,s.to)):[new ou(0,0)]:[new ou(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let s=this.startParse(e,t,i);for(;;){let r=s.advance();if(r)return r}}}class GZ{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new Pe({perNode:!0});let HZ=0;class Bt{constructor(e,t,i,s){this.name=e,this.set=t,this.base=i,this.modified=s,this.id=HZ++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i=typeof e=="string"?e:"?";if(e instanceof Bt&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let s=new Bt(i,[],null,[]);if(s.set.push(s),t)for(let r of t.set)s.set.push(r);return s}static defineModifier(e){let t=new Za(e);return i=>i.modified.indexOf(t)>-1?i:Za.get(i.base||i,i.modified.concat(t).sort((s,r)=>s.id-r.id))}}let FZ=0;class Za{constructor(e){this.name=e,this.instances=[],this.id=FZ++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(a=>a.base==e&&KZ(t,a.modified));if(i)return i;let s=[],r=new Bt(e.name,s,e,t);for(let a of t)a.instances.push(r);let o=JZ(t);for(let a of e.set)if(!a.modified.length)for(let l of o)s.push(Za.get(a,l));return r}}function KZ(n,e){return n.length==e.length&&n.every((t,i)=>t==e[i])}function JZ(n){let e=[[]];for(let t=0;ti.length-t.length)}function X0(n){let e=Object.create(null);for(let t in n){let i=n[t];Array.isArray(i)||(i=[i]);for(let s of t.split(" "))if(s){let r=[],o=2,a=s;for(let h=0;;){if(a=="..."&&h>0&&h+3==s.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!d)throw new RangeError("Invalid path: "+s);if(r.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),h+=d[0].length,h==s.length)break;let f=s[h++];if(h==s.length&&f=="!"){o=0;break}if(f!="/")throw new RangeError("Invalid path: "+s);a=s.slice(h)}let l=r.length-1,u=r[l];if(!u)throw new RangeError("Invalid path: "+s);let c=new Da(i,o,l>0?r.slice(0,l):null);e[u]=c.sort(e[u])}}return B0.add(e)}const B0=new Pe;class Da{constructor(e,t,i,s){this.tags=e,this.mode=t,this.context=i,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let o=s;for(let a of r)for(let l of a.set){let u=t[l.id];if(u){o=o?o+" "+u:u;break}}return o},scope:i}}function e5(n,e){let t=null;for(let i of n){let s=i.style(e);s&&(t=t?t+" "+s:s)}return t}function t5(n,e,t,i=0,s=n.length){let r=new n5(i,Array.isArray(e)?e:[e],t);r.highlightRange(n.cursor(),i,s,"",r.highlighters),r.flush(s)}class n5{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,s,r){let{type:o,from:a,to:l}=e;if(a>=i||l<=t)return;o.isTop&&(r=this.highlighters.filter(f=>!f.scope||f.scope(o)));let u=s,c=i5(e)||Da.empty,h=e5(r,c.tags);if(h&&(u&&(u+=" "),u+=h,c.mode==1&&(s+=(s?" ":"")+h)),this.startSpan(Math.max(t,a),u),c.opaque)return;let d=e.tree&&e.tree.prop(Pe.mounted);if(d&&d.overlay){let f=e.node.enter(d.overlay[0].from+a,1),p=this.highlighters.filter(O=>!O.scope||O.scope(d.tree.type)),m=e.firstChild();for(let O=0,y=a;;O++){let b=O=v||!e.nextSibling())););if(!b||v>i)break;y=b.to+a,y>t&&(this.highlightRange(f.cursor(),Math.max(t,b.from+a),Math.min(i,y),"",p),this.startSpan(Math.min(i,y),u))}m&&e.parent()}else if(e.firstChild()){d&&(s="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,s,r),this.startSpan(Math.min(i,e.to),u)}while(e.nextSibling());e.parent()}}}function i5(n){let e=n.type.prop(B0);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const ne=Bt.define,Eo=ne(),ei=ne(),yp=ne(ei),vp=ne(ei),ti=ne(),Mo=ne(ti),au=ne(ti),hn=ne(),bi=ne(hn),un=ne(),cn=ne(),Dc=ne(),Ws=ne(Dc),Ro=ne(),I={comment:Eo,lineComment:ne(Eo),blockComment:ne(Eo),docComment:ne(Eo),name:ei,variableName:ne(ei),typeName:yp,tagName:ne(yp),propertyName:vp,attributeName:ne(vp),className:ne(ei),labelName:ne(ei),namespace:ne(ei),macroName:ne(ei),literal:ti,string:Mo,docString:ne(Mo),character:ne(Mo),attributeValue:ne(Mo),number:au,integer:ne(au),float:ne(au),bool:ne(ti),regexp:ne(ti),escape:ne(ti),color:ne(ti),url:ne(ti),keyword:un,self:ne(un),null:ne(un),atom:ne(un),unit:ne(un),modifier:ne(un),operatorKeyword:ne(un),controlKeyword:ne(un),definitionKeyword:ne(un),moduleKeyword:ne(un),operator:cn,derefOperator:ne(cn),arithmeticOperator:ne(cn),logicOperator:ne(cn),bitwiseOperator:ne(cn),compareOperator:ne(cn),updateOperator:ne(cn),definitionOperator:ne(cn),typeOperator:ne(cn),controlOperator:ne(cn),punctuation:Dc,separator:ne(Dc),bracket:Ws,angleBracket:ne(Ws),squareBracket:ne(Ws),paren:ne(Ws),brace:ne(Ws),content:hn,heading:bi,heading1:ne(bi),heading2:ne(bi),heading3:ne(bi),heading4:ne(bi),heading5:ne(bi),heading6:ne(bi),contentSeparator:ne(hn),list:ne(hn),quote:ne(hn),emphasis:ne(hn),strong:ne(hn),link:ne(hn),monospace:ne(hn),strikethrough:ne(hn),inserted:ne(),deleted:ne(),changed:ne(),invalid:ne(),meta:Ro,documentMeta:ne(Ro),annotation:ne(Ro),processingInstruction:ne(Ro),definition:Bt.defineModifier("definition"),constant:Bt.defineModifier("constant"),function:Bt.defineModifier("function"),standard:Bt.defineModifier("standard"),local:Bt.defineModifier("local"),special:Bt.defineModifier("special")};for(let n in I){let e=I[n];e instanceof Bt&&(e.name=n)}U0([{tag:I.link,class:"tok-link"},{tag:I.heading,class:"tok-heading"},{tag:I.emphasis,class:"tok-emphasis"},{tag:I.strong,class:"tok-strong"},{tag:I.keyword,class:"tok-keyword"},{tag:I.atom,class:"tok-atom"},{tag:I.bool,class:"tok-bool"},{tag:I.url,class:"tok-url"},{tag:I.labelName,class:"tok-labelName"},{tag:I.inserted,class:"tok-inserted"},{tag:I.deleted,class:"tok-deleted"},{tag:I.literal,class:"tok-literal"},{tag:I.string,class:"tok-string"},{tag:I.number,class:"tok-number"},{tag:[I.regexp,I.escape,I.special(I.string)],class:"tok-string2"},{tag:I.variableName,class:"tok-variableName"},{tag:I.local(I.variableName),class:"tok-variableName tok-local"},{tag:I.definition(I.variableName),class:"tok-variableName tok-definition"},{tag:I.special(I.variableName),class:"tok-variableName2"},{tag:I.definition(I.propertyName),class:"tok-propertyName tok-definition"},{tag:I.typeName,class:"tok-typeName"},{tag:I.namespace,class:"tok-namespace"},{tag:I.className,class:"tok-className"},{tag:I.macroName,class:"tok-macroName"},{tag:I.propertyName,class:"tok-propertyName"},{tag:I.operator,class:"tok-operator"},{tag:I.comment,class:"tok-comment"},{tag:I.meta,class:"tok-meta"},{tag:I.invalid,class:"tok-invalid"},{tag:I.punctuation,class:"tok-punctuation"}]);var lu;const as=new Pe;function j0(n){return ge.define({combine:n?e=>e.concat(n):void 0})}const Eh=new Pe;class Kt{constructor(e,t,i=[],s=""){this.data=e,this.name=s,Ne.prototype.hasOwnProperty("tree")||Object.defineProperty(Ne.prototype,"tree",{get(){return It(this)}}),this.parser=t,this.extension=[Rs.of(this),Ne.languageData.of((r,o,a)=>{let l=wp(r,o,a),u=l.type.prop(as);if(!u)return[];let c=r.facet(u),h=l.type.prop(Eh);if(h){let d=l.resolve(o-l.from,a);for(let f of h)if(f.test(d,r)){let p=r.facet(f.facet);return f.type=="replace"?p:p.concat(c)}}return c})].concat(i)}isActiveAt(e,t,i=-1){return wp(e,t,i).type.prop(as)==this.data}findRegions(e){let t=e.facet(Rs);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],s=(r,o)=>{if(r.prop(as)==this.data){i.push({from:o,to:o+r.length});return}let a=r.prop(Pe.mounted);if(a){if(a.tree.prop(as)==this.data){if(a.overlay)for(let l of a.overlay)i.push({from:l.from+o,to:l.to+o});else i.push({from:o,to:o+r.length});return}else if(a.overlay){let l=i.length;if(s(a.tree,a.overlay[0].from+o),i.length>l)return}}for(let l=0;li.isTop?t:void 0)]}),e.name)}configure(e,t){return new Na(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function It(n){let e=n.field(Kt.state,!1);return e?e.tree:rt.empty}class s5{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let qs=null;class Ia{constructor(e,t,i=[],s,r,o,a,l){this.parser=e,this.state=t,this.fragments=i,this.tree=s,this.treeLen=r,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new Ia(e,t,[],rt.empty,0,i,[],null)}startParse(){return this.parser.startParse(new s5(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=rt.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let s=Date.now()+e;e=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Vi.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=qs;qs=this;try{return e()}finally{qs=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=bp(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:s,treeLen:r,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((u,c,h,d)=>l.push({fromA:u,toA:c,fromB:h,toB:d})),i=Vi.applyChanges(i,l),s=rt.empty,r=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),h=e.mapPos(u.to,-1);ce.from&&(this.fragments=bp(this.fragments,s,r),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends V0{createParse(t,i,s){let r=s[0].from,o=s[s.length-1].to;return{parsedPos:r,advance(){let l=qs;if(l){for(let u of s)l.tempSkipped.push(u);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new rt(At.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return qs}}function bp(n,e,t){return Vi.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class Ms{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new Ms(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=Ia.create(e.facet(Rs).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new Ms(i)}}Kt.state=yi.define({create:Ms.init,update(n,e){for(let t of e.effects)if(t.is(Kt.setState))return t.value;return e.startState.facet(Rs)!=e.state.facet(Rs)?Ms.init(e.state):n.apply(e)}});let W0=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(W0=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const uu=typeof navigator<"u"&&(!((lu=navigator.scheduling)===null||lu===void 0)&&lu.isInputPending)?()=>navigator.scheduling.isInputPending():null,r5=mi.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Kt.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Kt.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=W0(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnds+1e3,l=r.context.work(()=>uu&&uu()||Date.now()>o,s+(a?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Kt.setState.of(new Ms(r.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>mn(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Rs=ge.define({combine(n){return n.length?n[0]:null},enables:n=>[Kt.state,r5,_e.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class o5{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const a5=ge.define(),Ol=ge.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function La(n){let e=n.facet(Ol);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function za(n,e){let t="",i=n.tabSize,s=n.facet(Ol)[0];if(s==" "){for(;e>=i;)t+=" ",e-=i;s=" "}for(let r=0;r=e?l5(n,t,e):null}class yl{constructor(e,t={}){this.state=e,this.options=t,this.unit=La(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:s,simulateDoubleBreak:r}=this.options;return s!=null&&s>=i.from&&s<=i.to?r&&s==e?{text:"",from:e}:(t<0?s-1&&(r+=o-this.countColumn(i,i.search(/\S|$/))),r}countColumn(e,t=e.length){return dl(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:s}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let o=r(s);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Y0=new Pe;function l5(n,e,t){let i=e.resolveStack(t),s=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(s!=i.node){let r=[];for(let o=s;o&&!(o.from==i.node.from&&o.type==i.node.type);o=o.parent)r.push(o);for(let o=r.length-1;o>=0;o--)i={node:r[o],next:i}}return G0(i,n,t)}function G0(n,e,t){for(let i=n;i;i=i.next){let s=c5(i.node);if(s)return s(Mh.create(e,t,i))}return 0}function u5(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function c5(n){let e=n.type.prop(Y0);if(e)return e;let t=n.firstChild,i;if(t&&(i=t.type.prop(Pe.closedBy))){let s=n.lastChild,r=s&&i.indexOf(s.name)>-1;return o=>H0(o,!0,1,void 0,r&&!u5(o)?s.from:void 0)}return n.parent==null?h5:null}function h5(){return 0}class Mh extends yl{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new Mh(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(d5(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return G0(this.context.next,this.base,this.pos)}}function d5(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function f5(n){let e=n.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let s=n.options.simulateBreak,r=n.state.doc.lineAt(t.from),o=s==null||s<=r.from?r.to:Math.min(r.to,s);for(let a=t.to;;){let l=e.childAfter(a);if(!l||l==i)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let u=/^ */.exec(r.text.slice(t.to-r.from))[0].length;return{from:t.from,to:t.to+u}}a=l.to}}function p5({closing:n,align:e=!0,units:t=1}){return i=>H0(i,e,t,n)}function H0(n,e,t,i,s){let r=n.textAfter,o=r.match(/^\s*/)[0].length,a=i&&r.slice(o,o+i.length)==i||s==n.pos+o,l=e?f5(n):null;return l?a?n.column(l.from):n.column(l.to):n.baseIndent+(a?0:n.unit*t)}const m5=n=>n.baseIndent;function cu({except:n,units:e=1}={}){return t=>{let i=n&&n.test(t.textAfter);return t.baseIndent+(i?0:e*t.unit)}}const g5=new Pe;function O5(n){let e=n.firstChild,t=n.lastChild;return e&&e.toa.prop(as)==o.data:o?a=>a==o:void 0,this.style=U0(e.map(a=>({tag:a.tag,class:a.class||s(Object.assign({},a,{tag:null}))})),{all:r}).style,this.module=i?new di(i):null,this.themeType=t.themeType}static define(e,t){return new Hr(e,t||{})}}const Nc=ge.define(),y5=ge.define({combine(n){return n.length?[n[0]]:null}});function hu(n){let e=n.facet(Nc);return e.length?e:n.facet(y5)}function F0(n,e){let t=[w5],i;return n instanceof Hr&&(n.module&&t.push(_e.styleModule.of(n.module)),i=n.themeType),i?t.push(Nc.computeN([_e.darkTheme],s=>s.facet(_e.darkTheme)==(i=="dark")?[n]:[])):t.push(Nc.of(n)),t}class v5{constructor(e){this.markCache=Object.create(null),this.tree=It(e.state),this.decorations=this.buildDeco(e,hu(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=It(e.state),i=hu(e.state),s=i!=hu(e.startState),{viewport:r}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||s)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return tt.none;let i=new Zr;for(let{from:s,to:r}of e.visibleRanges)t5(this.tree,t,(o,a,l)=>{i.add(o,a,this.markCache[l]||(this.markCache[l]=tt.mark({class:l})))},s,r);return i.finish()}}const w5=cl.high(mi.fromClass(v5,{decorations:n=>n.decorations})),b5=Hr.define([{tag:I.meta,color:"#404740"},{tag:I.link,textDecoration:"underline"},{tag:I.heading,textDecoration:"underline",fontWeight:"bold"},{tag:I.emphasis,fontStyle:"italic"},{tag:I.strong,fontWeight:"bold"},{tag:I.strikethrough,textDecoration:"line-through"},{tag:I.keyword,color:"#708"},{tag:[I.atom,I.bool,I.url,I.contentSeparator,I.labelName],color:"#219"},{tag:[I.literal,I.inserted],color:"#164"},{tag:[I.string,I.deleted],color:"#a11"},{tag:[I.regexp,I.escape,I.special(I.string)],color:"#e40"},{tag:I.definition(I.variableName),color:"#00f"},{tag:I.local(I.variableName),color:"#30a"},{tag:[I.typeName,I.namespace],color:"#085"},{tag:I.className,color:"#167"},{tag:[I.special(I.variableName),I.macroName],color:"#256"},{tag:I.definition(I.propertyName),color:"#00c"},{tag:I.comment,color:"#940"},{tag:I.invalid,color:"#f00"}]),x5=1e4,S5="()[]{}",_5=new Pe;function Ic(n,e,t){let i=n.prop(e<0?Pe.openedBy:Pe.closedBy);if(i)return i;if(n.name.length==1){let s=t.indexOf(n.name);if(s>-1&&s%2==(e<0?1:0))return[t[s+e]]}return null}function Lc(n){let e=n.type.prop(_5);return e?e(n.node):n}function ls(n,e,t,i={}){let s=i.maxScanDistance||x5,r=i.brackets||S5,o=It(n),a=o.resolveInner(e,t);for(let l=a;l;l=l.parent){let u=Ic(l.type,t,r);if(u&&l.from0?e>=c.from&&ec.from&&e<=c.to))return $5(n,e,t,l,c,u,r)}}return k5(n,e,t,o,a.type,s,r)}function $5(n,e,t,i,s,r,o){let a=i.parent,l={from:s.from,to:s.to},u=0,c=a==null?void 0:a.cursor();if(c&&(t<0?c.childBefore(i.from):c.childAfter(i.to)))do if(t<0?c.to<=i.from:c.from>=i.to){if(u==0&&r.indexOf(c.type.name)>-1&&c.from0)return null;let u={from:t<0?e-1:e,to:t>0?e+1:e},c=n.doc.iterRange(e,t>0?n.doc.length:0),h=0;for(let d=0;!c.next().done&&d<=r;){let f=c.value;t<0&&(d+=f.length);let p=e+d*t;for(let m=t>0?0:f.length-1,O=t>0?f.length:-1;m!=O;m+=t){let y=o.indexOf(f[m]);if(!(y<0||i.resolveInner(p+m,1).type!=s))if(y%2==0==t>0)h++;else{if(h==1)return{start:u,end:{from:p+m,to:p+m+1},matched:y>>1==l>>1};h--}}t>0&&(d+=f.length)}return c.done?{start:u,matched:!1}:null}const P5=Object.create(null),xp=[At.none],Sp=[],_p=Object.create(null),Q5=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Q5[n]=T5(P5,e);function du(n,e){Sp.indexOf(n)>-1||(Sp.push(n),console.warn(e))}function T5(n,e){let t=[];for(let a of e.split(" ")){let l=[];for(let u of a.split(".")){let c=n[u]||I[u];c?typeof c=="function"?l.length?l=l.map(c):du(u,`Modifier ${u} used at start of tag`):l.length?du(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:du(u,`Unknown highlighting tag ${u}`)}for(let u of l)t.push(u)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),s=i+" "+t.map(a=>a.id),r=_p[s];if(r)return r.id;let o=_p[s]=At.define({id:xp.length,name:i,props:[X0({[i]:t})]});return xp.push(o),o.id}ut.RTL,ut.LTR;const A5=n=>{let{state:e}=n,t=e.doc.lineAt(e.selection.main.from),i=Zh(n.state,t.from);return i.line?C5(n):i.block?M5(n):!1};function Rh(n,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let s=n(e,t);return s?(i(t.update(s)),!0):!1}}const C5=Rh(D5,0),E5=Rh(K0,0),M5=Rh((n,e)=>K0(n,e,Z5(e)),0);function Zh(n,e){let t=n.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const Ys=50;function R5(n,{open:e,close:t},i,s){let r=n.sliceDoc(i-Ys,i),o=n.sliceDoc(s,s+Ys),a=/\s*$/.exec(r)[0].length,l=/^\s*/.exec(o)[0].length,u=r.length-a;if(r.slice(u-e.length,u)==e&&o.slice(l,l+t.length)==t)return{open:{pos:i-a,margin:a&&1},close:{pos:s+l,margin:l&&1}};let c,h;s-i<=2*Ys?c=h=n.sliceDoc(i,s):(c=n.sliceDoc(i,i+Ys),h=n.sliceDoc(s-Ys,s));let d=/^\s*/.exec(c)[0].length,f=/\s*$/.exec(h)[0].length,p=h.length-f-t.length;return c.slice(d,d+e.length)==e&&h.slice(p,p+t.length)==t?{open:{pos:i+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:s-f-t.length,margin:/\s/.test(h.charAt(p-1))?1:0}}:null}function Z5(n){let e=[];for(let t of n.selection.ranges){let i=n.doc.lineAt(t.from),s=t.to<=i.to?i:n.doc.lineAt(t.to);s.from>i.from&&s.from==t.to&&(s=t.to==i.to+1?i:n.doc.lineAt(t.to-1));let r=e.length-1;r>=0&&e[r].to>i.from?e[r].to=s.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:s.to})}return e}function K0(n,e,t=e.selection.ranges){let i=t.map(r=>Zh(e,r.from).block);if(!i.every(r=>r))return null;let s=t.map((r,o)=>R5(e,i[o],r.from,r.to));if(n!=2&&!s.every(r=>r))return{changes:e.changes(t.map((r,o)=>s[o]?[]:[{from:r.from,insert:i[o].open+" "},{from:r.to,insert:" "+i[o].close}]))};if(n!=1&&s.some(r=>r)){let r=[];for(let o=0,a;os&&(r==o||o>h.from)){s=h.from;let d=/^\s*/.exec(h.text)[0].length,f=d==h.length,p=h.text.slice(d,d+u.length)==u?d:-1;dr.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:a,token:l,indent:u,empty:c,single:h}of i)(h||!c)&&r.push({from:a.from+u,insert:l+" "});let o=e.changes(r);return{changes:o,selection:e.selection.map(o,1)}}else if(n!=1&&i.some(r=>r.comment>=0)){let r=[];for(let{line:o,comment:a,token:l}of i)if(a>=0){let u=o.from+a,c=u+l.length;o.text[c-o.from]==" "&&c++,r.push({from:u,to:c})}return{changes:r}}return null}function Ds(n,e){return ee.create(n.ranges.map(e),n.mainIndex)}function Sn(n,e){return n.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function on({state:n,dispatch:e},t){let i=Ds(n.selection,t);return i.eq(n.selection,!0)?!1:(e(Sn(n,i)),!0)}function vl(n,e){return ee.cursor(e?n.to:n.from)}function J0(n,e){return on(n,t=>t.empty?n.moveByChar(t,e):vl(t,e))}function vt(n){return n.textDirectionAt(n.state.selection.main.head)==ut.LTR}const ey=n=>J0(n,!vt(n)),ty=n=>J0(n,vt(n));function ny(n,e){return on(n,t=>t.empty?n.moveByGroup(t,e):vl(t,e))}const N5=n=>ny(n,!vt(n)),I5=n=>ny(n,vt(n));function L5(n,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(n.sliceDoc(e.from,e.to)))||e.firstChild}function wl(n,e,t){let i=It(n).resolveInner(e.head),s=t?Pe.closedBy:Pe.openedBy;for(let l=e.head;;){let u=t?i.childAfter(l):i.childBefore(l);if(!u)break;L5(n,u,s)?i=u:l=t?u.to:u.from}let r=i.type.prop(s),o,a;return r&&(o=t?ls(n,i.from,1):ls(n,i.to,-1))&&o.matched?a=t?o.end.to:o.end.from:a=t?i.to:i.from,ee.cursor(a,t?-1:1)}const z5=n=>on(n,e=>wl(n.state,e,!vt(n))),V5=n=>on(n,e=>wl(n.state,e,vt(n)));function iy(n,e){return on(n,t=>{if(!t.empty)return vl(t,e);let i=n.moveVertically(t,e);return i.head!=t.head?i:n.moveToLineBoundary(t,e)})}const sy=n=>iy(n,!1),ry=n=>iy(n,!0);function oy(n){let e=n.scrollDOM.clientHeighto.empty?n.moveVertically(o,e,t.height):vl(o,e));if(s.eq(i.selection))return!1;let r;if(t.selfScroll){let o=n.coordsAtPos(i.selection.main.head),a=n.scrollDOM.getBoundingClientRect(),l=a.top+t.marginTop,u=a.bottom-t.marginBottom;o&&o.top>l&&o.bottomay(n,!1),zc=n=>ay(n,!0);function vi(n,e,t){let i=n.lineBlockAt(e.head),s=n.moveToLineBoundary(e,t);if(s.head==e.head&&s.head!=(t?i.to:i.from)&&(s=n.moveToLineBoundary(e,t,!1)),!t&&s.head==i.from&&i.length){let r=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&e.head!=i.from+r&&(s=ee.cursor(i.from+r))}return s}const X5=n=>on(n,e=>vi(n,e,!0)),B5=n=>on(n,e=>vi(n,e,!1)),U5=n=>on(n,e=>vi(n,e,!vt(n))),j5=n=>on(n,e=>vi(n,e,vt(n))),W5=n=>on(n,e=>ee.cursor(n.lineBlockAt(e.head).from,1)),q5=n=>on(n,e=>ee.cursor(n.lineBlockAt(e.head).to,-1));function Y5(n,e,t){let i=!1,s=Ds(n.selection,r=>{let o=ls(n,r.head,-1)||ls(n,r.head,1)||r.head>0&&ls(n,r.head-1,1)||r.headY5(n,e);function Yt(n,e){let t=Ds(n.state.selection,i=>{let s=e(i);return ee.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)});return t.eq(n.state.selection)?!1:(n.dispatch(Sn(n.state,t)),!0)}function ly(n,e){return Yt(n,t=>n.moveByChar(t,e))}const uy=n=>ly(n,!vt(n)),cy=n=>ly(n,vt(n));function hy(n,e){return Yt(n,t=>n.moveByGroup(t,e))}const H5=n=>hy(n,!vt(n)),F5=n=>hy(n,vt(n)),K5=n=>Yt(n,e=>wl(n.state,e,!vt(n))),J5=n=>Yt(n,e=>wl(n.state,e,vt(n)));function dy(n,e){return Yt(n,t=>n.moveVertically(t,e))}const fy=n=>dy(n,!1),py=n=>dy(n,!0);function my(n,e){return Yt(n,t=>n.moveVertically(t,e,oy(n).height))}const kp=n=>my(n,!1),Pp=n=>my(n,!0),eD=n=>Yt(n,e=>vi(n,e,!0)),tD=n=>Yt(n,e=>vi(n,e,!1)),nD=n=>Yt(n,e=>vi(n,e,!vt(n))),iD=n=>Yt(n,e=>vi(n,e,vt(n))),sD=n=>Yt(n,e=>ee.cursor(n.lineBlockAt(e.head).from)),rD=n=>Yt(n,e=>ee.cursor(n.lineBlockAt(e.head).to)),Qp=({state:n,dispatch:e})=>(e(Sn(n,{anchor:0})),!0),Tp=({state:n,dispatch:e})=>(e(Sn(n,{anchor:n.doc.length})),!0),Ap=({state:n,dispatch:e})=>(e(Sn(n,{anchor:n.selection.main.anchor,head:0})),!0),Cp=({state:n,dispatch:e})=>(e(Sn(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),oD=({state:n,dispatch:e})=>(e(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),aD=({state:n,dispatch:e})=>{let t=bl(n).map(({from:i,to:s})=>ee.range(i,Math.min(s+1,n.doc.length)));return e(n.update({selection:ee.create(t),userEvent:"select"})),!0},lD=({state:n,dispatch:e})=>{let t=Ds(n.selection,i=>{let s=It(n),r=s.resolveStack(i.from,1);if(i.empty){let o=s.resolveStack(i.from,-1);o.node.from>=r.node.from&&o.node.to<=r.node.to&&(r=o)}for(let o=r;o;o=o.next){let{node:a}=o;if((a.from=i.to||a.to>i.to&&a.from<=i.from)&&o.next)return ee.range(a.to,a.from)}return i});return t.eq(n.selection)?!1:(e(Sn(n,t)),!0)},uD=({state:n,dispatch:e})=>{let t=n.selection,i=null;return t.ranges.length>1?i=ee.create([t.main]):t.main.empty||(i=ee.create([ee.cursor(t.main.head)])),i?(e(Sn(n,i)),!0):!1};function Fr(n,e){if(n.state.readOnly)return!1;let t="delete.selection",{state:i}=n,s=i.changeByRange(r=>{let{from:o,to:a}=r;if(o==a){let l=e(r);lo&&(t="delete.forward",l=Zo(n,l,!0)),o=Math.min(o,l),a=Math.max(a,l)}else o=Zo(n,o,!1),a=Zo(n,a,!0);return o==a?{range:r}:{changes:{from:o,to:a},range:ee.cursor(o,os(n)))i.between(e,e,(s,r)=>{se&&(e=t?r:s)});return e}const gy=(n,e,t)=>Fr(n,i=>{let s=i.from,{state:r}=n,o=r.doc.lineAt(s),a,l;if(t&&!e&&s>o.from&&sgy(n,!1,!0),Oy=n=>gy(n,!0,!1),yy=(n,e)=>Fr(n,t=>{let i=t.head,{state:s}=n,r=s.doc.lineAt(i),o=s.charCategorizer(i);for(let a=null;;){if(i==(e?r.to:r.from)){i==t.head&&r.number!=(e?s.doc.lines:1)&&(i+=e?1:-1);break}let l=bt(r.text,i-r.from,e)+r.from,u=r.text.slice(Math.min(i,l)-r.from,Math.max(i,l)-r.from),c=o(u);if(a!=null&&c!=a)break;(u!=" "||i!=t.head)&&(a=c),i=l}return i}),vy=n=>yy(n,!1),cD=n=>yy(n,!0),hD=n=>Fr(n,e=>{let t=n.lineBlockAt(e.head).to;return e.headFr(n,e=>{let t=n.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),fD=n=>Fr(n,e=>{let t=n.moveToLineBoundary(e,!0).head;return e.head{if(n.readOnly)return!1;let t=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:De.of(["",""])},range:ee.cursor(i.from)}));return e(n.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},mD=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let s=i.from,r=n.doc.lineAt(s),o=s==r.from?s-1:bt(r.text,s-r.from,!1)+r.from,a=s==r.to?s+1:bt(r.text,s-r.from,!0)+r.from;return{changes:{from:o,to:a,insert:n.doc.slice(s,a).append(n.doc.slice(o,s))},range:ee.cursor(a)}});return t.changes.empty?!1:(e(n.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function bl(n){let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.from),r=n.doc.lineAt(i.to);if(!i.empty&&i.to==r.from&&(r=n.doc.lineAt(i.to-1)),t>=s.number){let o=e[e.length-1];o.to=r.to,o.ranges.push(i)}else e.push({from:s.from,to:r.to,ranges:[i]});t=r.number+1}return e}function wy(n,e,t){if(n.readOnly)return!1;let i=[],s=[];for(let r of bl(n)){if(t?r.to==n.doc.length:r.from==0)continue;let o=n.doc.lineAt(t?r.to+1:r.from-1),a=o.length+1;if(t){i.push({from:r.to,to:o.to},{from:r.from,insert:o.text+n.lineBreak});for(let l of r.ranges)s.push(ee.range(Math.min(n.doc.length,l.anchor+a),Math.min(n.doc.length,l.head+a)))}else{i.push({from:o.from,to:r.from},{from:r.to,insert:n.lineBreak+o.text});for(let l of r.ranges)s.push(ee.range(l.anchor-a,l.head-a))}}return i.length?(e(n.update({changes:i,scrollIntoView:!0,selection:ee.create(s,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}const gD=({state:n,dispatch:e})=>wy(n,e,!1),OD=({state:n,dispatch:e})=>wy(n,e,!0);function by(n,e,t){if(n.readOnly)return!1;let i=[];for(let s of bl(n))t?i.push({from:s.from,insert:n.doc.slice(s.from,s.to)+n.lineBreak}):i.push({from:s.to,insert:n.lineBreak+n.doc.slice(s.from,s.to)});return e(n.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const yD=({state:n,dispatch:e})=>by(n,e,!1),vD=({state:n,dispatch:e})=>by(n,e,!0),wD=n=>{if(n.state.readOnly)return!1;let{state:e}=n,t=e.changes(bl(e).map(({from:s,to:r})=>(s>0?s--:r{let r;if(n.lineWrapping){let o=n.lineBlockAt(s.head),a=n.coordsAtPos(s.head,s.assoc||1);a&&(r=o.bottom+n.documentTop-a.bottom+n.defaultLineHeight/2)}return n.moveVertically(s,!0,r)}).map(t);return n.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function bD(n,e){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=It(n).resolveInner(e),i=t.childBefore(e),s=t.childAfter(e),r;return i&&s&&i.to<=e&&s.from>=e&&(r=i.type.prop(Pe.closedBy))&&r.indexOf(s.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(s.from).from&&!/\S/.test(n.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}const Ep=xy(!1),xD=xy(!0);function xy(n){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(s=>{let{from:r,to:o}=s,a=e.doc.lineAt(r),l=!n&&r==o&&bD(e,r);n&&(r=o=(o<=a.to?a:e.doc.lineAt(o)).to);let u=new yl(e,{simulateBreak:r,simulateDoubleBreak:!!l}),c=q0(u,r);for(c==null&&(c=dl(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));oa.from&&r{let s=[];for(let o=i.from;o<=i.to;){let a=n.doc.lineAt(o);a.number>t&&(i.empty||i.to>a.from)&&(e(a,s,i),t=a.number),o=a.to+1}let r=n.changes(s);return{changes:s,range:ee.range(r.mapPos(i.anchor,1),r.mapPos(i.head,1))}})}const SD=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=Object.create(null),i=new yl(n,{overrideIndentation:r=>{let o=t[r];return o??-1}}),s=Dh(n,(r,o,a)=>{let l=q0(i,r.from);if(l==null)return;/\S/.test(r.text)||(l=0);let u=/^\s*/.exec(r.text)[0],c=za(n,l);(u!=c||a.fromn.readOnly?!1:(e(n.update(Dh(n,(t,i)=>{i.push({from:t.from,insert:n.facet(Ol)})}),{userEvent:"input.indent"})),!0),_y=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(Dh(n,(t,i)=>{let s=/^\s*/.exec(t.text)[0];if(!s)return;let r=dl(s,n.tabSize),o=0,a=za(n,Math.max(0,r-La(n)));for(;o(n.setTabFocusMode(),!0),$D=[{key:"Ctrl-b",run:ey,shift:uy,preventDefault:!0},{key:"Ctrl-f",run:ty,shift:cy},{key:"Ctrl-p",run:sy,shift:fy},{key:"Ctrl-n",run:ry,shift:py},{key:"Ctrl-a",run:W5,shift:sD},{key:"Ctrl-e",run:q5,shift:rD},{key:"Ctrl-d",run:Oy},{key:"Ctrl-h",run:Vc},{key:"Ctrl-k",run:hD},{key:"Ctrl-Alt-h",run:vy},{key:"Ctrl-o",run:pD},{key:"Ctrl-t",run:mD},{key:"Ctrl-v",run:zc}],kD=[{key:"ArrowLeft",run:ey,shift:uy,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:N5,shift:H5,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:U5,shift:nD,preventDefault:!0},{key:"ArrowRight",run:ty,shift:cy,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:I5,shift:F5,preventDefault:!0},{mac:"Cmd-ArrowRight",run:j5,shift:iD,preventDefault:!0},{key:"ArrowUp",run:sy,shift:fy,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Qp,shift:Ap},{mac:"Ctrl-ArrowUp",run:$p,shift:kp},{key:"ArrowDown",run:ry,shift:py,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Tp,shift:Cp},{mac:"Ctrl-ArrowDown",run:zc,shift:Pp},{key:"PageUp",run:$p,shift:kp},{key:"PageDown",run:zc,shift:Pp},{key:"Home",run:B5,shift:tD,preventDefault:!0},{key:"Mod-Home",run:Qp,shift:Ap},{key:"End",run:X5,shift:eD,preventDefault:!0},{key:"Mod-End",run:Tp,shift:Cp},{key:"Enter",run:Ep,shift:Ep},{key:"Mod-a",run:oD},{key:"Backspace",run:Vc,shift:Vc},{key:"Delete",run:Oy},{key:"Mod-Backspace",mac:"Alt-Backspace",run:vy},{key:"Mod-Delete",mac:"Alt-Delete",run:cD},{mac:"Mod-Backspace",run:dD},{mac:"Mod-Delete",run:fD}].concat($D.map(n=>({mac:n.key,run:n.run,shift:n.shift}))),PD=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:z5,shift:K5},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:V5,shift:J5},{key:"Alt-ArrowUp",run:gD},{key:"Shift-Alt-ArrowUp",run:yD},{key:"Alt-ArrowDown",run:OD},{key:"Shift-Alt-ArrowDown",run:vD},{key:"Escape",run:uD},{key:"Mod-Enter",run:xD},{key:"Alt-l",mac:"Ctrl-l",run:aD},{key:"Mod-i",run:lD,preventDefault:!0},{key:"Mod-[",run:_y},{key:"Mod-]",run:Sy},{key:"Mod-Alt-\\",run:SD},{key:"Shift-Mod-k",run:wD},{key:"Shift-Mod-\\",run:G5},{key:"Mod-/",run:A5},{key:"Alt-A",run:E5},{key:"Ctrl-m",mac:"Shift-Alt-m",run:_D}].concat(kD),QD={key:"Tab",run:Sy,shift:_y};var Mp={};class Va{constructor(e,t,i,s,r,o,a,l,u,c=0,h){this.p=e,this.stack=t,this.state=i,this.reducePos=s,this.pos=r,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=h}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,i=0){let s=e.parser.context;return new Va(e,[],t,i,i,0,[],0,s?new Rp(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let i=e>>19,s=e&65535,{parser:r}=this.p,o=this.reducePos=2e3&&!(!((t=this.p.parser.nodeSet.types[s])===null||t===void 0)&&t.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(s,u)}storeNode(e,t,i,s=4,r=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(t==i)return;if(o.buffer[a-2]>=t){o.buffer[a-2]=i;return}}}if(!r||this.pos==i)this.buffer.push(e,t,i,s);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>i;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,s>4&&(s-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=i,this.buffer[o+3]=s}}shift(e,t,i,s){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=s,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,s,4);else{let r=e,{parser:o}=this.p;(s>this.pos||t<=o.maxNode)&&(this.pos=s,o.stateFlag(r,1)||(this.reducePos=s)),this.pushState(r,i),this.shiftContext(t,i),t<=o.maxNode&&this.buffer.push(t,i,s,4)}}apply(e,t,i,s){e&65536?this.reduce(e):this.shift(e,t,i,s)}useNode(e,t){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let s=this.pos;this.reducePos=this.pos=s+e.length,this.pushState(t,s),this.buffer.push(i,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let i=e.buffer.slice(t),s=e.bufferBase+t;for(;e&&s==e.bufferBase;)e=e.parent;return new Va(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,s,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,i?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new TD(this);;){let i=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(i==0)return!1;if(!(i&65536))return!0;t.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let s=[];for(let r=0,o;rl&1&&a==o)||s.push(t[r],o)}t=s}let i=[];for(let s=0;s>19,s=t&65535,r=this.stack.length-i*3;if(r<0||e.getGoto(this.stack[r],s,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;t=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],i=(s,r)=>{if(!t.includes(s))return t.push(s),e.allActions(s,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-r;if(a>1){let l=o&65535,u=this.stack.length-a*3;if(u>=0&&e.getGoto(this.stack[u],l,!1)>=0)return a<<19|65536|l}}else{let a=i(o,r+1);if(a!=null)return a}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Rp{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class TD{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=s}}class Xa{constructor(e,t,i){this.stack=e,this.pos=t,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new Xa(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Xa(this.stack,this.pos,this.index)}}function ur(n,e=Uint16Array){if(typeof n!="string")return n;let t=null;for(let i=0,s=0;i=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),r+=l,a)break;r*=46}t?t[s++]=r:t=new e(r)}return t}class na{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Zp=new na;class AD{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Zp,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,s=this.rangeIndex,r=this.pos+e;for(;ri.to:r>=i.to;){if(s==this.ranges.length-1)return null;let o=this.ranges[++s];r+=o.from-i.to,i=o}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,i,s;if(t>=0&&t=this.chunk2Pos&&ia.to&&(this.chunk2=this.chunk2.slice(0,a.to-i)),s=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),s}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Zp,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let s of this.ranges){if(s.from>=t)break;s.to>e&&(i+=this.input.read(Math.max(s.from,e),Math.min(s.to,t)))}return i}}class vs{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;$y(this.data,e,t,this.id,i.data,i.tokenPrecTable)}}vs.prototype.contextual=vs.prototype.fallback=vs.prototype.extend=!1;class Xc{constructor(e,t,i){this.precTable=t,this.elseToken=i,this.data=typeof e=="string"?ur(e):e}token(e,t){let i=e.pos,s=0;for(;;){let r=e.next<0,o=e.resolveOffset(1,1);if($y(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(r||s++,o==null)break;e.reset(o,e.token)}s&&(e.reset(i,e.token),e.acceptToken(this.elseToken,s))}}Xc.prototype.contextual=vs.prototype.fallback=vs.prototype.extend=!1;class Kr{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function $y(n,e,t,i,s,r){let o=0,a=1<0){let p=n[f];if(l.allows(p)&&(e.token.value==-1||e.token.value==p||CD(p,e.token.value,s,r))){e.acceptToken(p);break}}let c=e.next,h=0,d=n[o+2];if(e.next<0&&d>h&&n[u+d*3-3]==65535){o=n[u+d*3-1];continue e}for(;h>1,p=u+f+(f<<1),m=n[p],O=n[p+1]||65536;if(c=O)h=f+1;else{o=n[p+2],e.advance();continue e}}break}}function Dp(n,e,t){for(let i=e,s;(s=n[i])!=65535;i++)if(s==t)return i-e;return-1}function CD(n,e,t,i){let s=Dp(t,i,e);return s<0||Dp(t,i,n)e)&&!i.type.isError)return t<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(n.length,Math.max(i.from+1,e+25));if(t<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return t<0?0:n.length}}class ED{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Np(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Np(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=o,null;if(r instanceof rt){if(o==e){if(o=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+r.length}}}class MD{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new na)}getActions(e){let t=0,i=null,{parser:s}=e.p,{tokenizers:r}=s,o=s.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let u=0;uh.end+25&&(l=Math.max(h.lookAhead,l)),h.value!=0)){let d=t;if(h.extended>-1&&(t=this.addActions(e,h.extended,h.end,t)),t=this.addActions(e,h.value,h.end,t),!c.extend&&(i=h,t>d))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),!i&&e.pos==this.stream.end&&(i=new na,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new na,{pos:i,p:s}=e;return t.start=i,t.end=Math.min(i+1,s.stream.end),t.value=i==s.stream.end?s.parser.eofTerm:0,t}updateCachedToken(e,t,i){let s=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(s,e),i),e.value>-1){let{parser:r}=i.p;for(let o=0;o=0&&i.p.parser.dialect.allows(a>>1)){a&1?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(s+1)}putAction(e,t,i,s){for(let r=0;re.bufferLength*4?new ED(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,i=this.stacks=[],s,r;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;ot)i.push(a);else{if(this.advanceStack(a,i,e))continue;{s||(s=[],r=[]),s.push(a);let l=this.tokens.getMainToken(a);r.push(l.value,l.end)}}break}}if(!i.length){let o=s&&ND(s);if(o)return Ct&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Ct&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&s){let o=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,r,i);if(o)return Ct&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(i.length>o)for(i.sort((a,l)=>l.score-a.score);i.length>o;)i.pop();i.some(a=>a.reducePos>t)&&this.recovering--}else if(i.length>1){e:for(let o=0;o500&&u.buffer.length>500)if((a.score-u.score||a.buffer.length-u.buffer.length)>0)i.splice(l--,1);else{i.splice(o--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let h=this.fragments.nodeAt(s);h;){let d=this.parser.nodeSet.types[h.type.id]==h.type?r.getGoto(e.state,h.type.id):-1;if(d>-1&&h.length&&(!u||(h.prop(Pe.contextHash)||0)==c))return e.useNode(h,d),Ct&&console.log(o+this.stackID(e)+` (via reuse of ${r.getName(h.type.id)})`),!0;if(!(h instanceof rt)||h.children.length==0||h.positions[0]>0)break;let f=h.children[0];if(f instanceof rt&&h.positions[0]==0)h=f;else break}}let a=r.stateSlot(e.state,4);if(a>0)return e.reduce(a),Ct&&console.log(o+this.stackID(e)+` (via always-reduce ${r.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let u=0;us?t.push(p):i.push(p)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return Ip(e,t),!0}}runRecovery(e,t,i){let s=null,r=!1;for(let o=0;o ":"";if(a.deadEnd&&(r||(r=!0,a.restart(),Ct&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,i))))continue;let h=a.split(),d=c;for(let f=0;h.forceReduce()&&f<10&&(Ct&&console.log(d+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,i));f++)Ct&&(d=this.stackID(h)+" -> ");for(let f of a.recoverByInsert(l))Ct&&console.log(c+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,i);this.stream.end>a.pos?(u==a.pos&&(u++,l=0),a.recoverByDelete(l,u),Ct&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),Ip(a,i)):(!s||s.scoren;class DD{constructor(e){this.start=e.start,this.shift=e.shift||pu,this.reduce=e.reduce||pu,this.reuse=e.reuse||pu,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Ba extends V0{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;ae.topRules[a][1]),s=[];for(let a=0;a=0)r(c,l,a[u++]);else{let h=a[u+-c];for(let d=-c;d>0;d--)r(a[u++],l,h);u++}}}this.nodeSet=new Qh(t.map((a,l)=>At.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:s[l],top:i.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=N0;let o=ur(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;atypeof a=="number"?new vs(o,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,i){let s=new RD(this,e,t,i);for(let r of this.wrappers)s=r(s,e,t,i);return s}getGoto(e,t,i=!1){let s=this.goto;if(t>=s[0])return-1;for(let r=s[t+1];;){let o=s[r++],a=o&1,l=s[r++];if(a&&i)return l;for(let u=r+(o>>1);r0}validAction(e,t){return!!this.allActions(e,i=>i==t?!0:null)}allActions(e,t){let i=this.stateSlot(e,4),s=i?t(i):void 0;for(let r=this.stateSlot(e,1);s==null;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Tn(this.data,r+2);else break;s=t(Tn(this.data,r+1))}return s}nextStates(e){let t=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=Tn(this.data,i+2);else break;if(!(this.data[i+2]&1)){let s=this.data[i+1];t.some((r,o)=>o&1&&r==s)||t.push(this.data[i],s)}}return t}configure(e){let t=Object.assign(Object.create(Ba.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=i}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(i=>{let s=e.tokenizers.find(r=>r.from==i);return s?s.to:i})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((i,s)=>{let r=e.specializers.find(a=>a.from==i.external);if(!r)return i;let o=Object.assign(Object.assign({},i),{external:r.to});return t.specializers[s]=Lp(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),i=t.map(()=>!1);if(e)for(let r of e.split(" ")){let o=t.indexOf(r);o>=0&&(i[o]=!0)}let s=null;for(let r=0;ri)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.scoren.external(t,i)<<1|e}return n.get}const ID=314,LD=315,zp=1,zD=2,VD=3,XD=4,BD=316,UD=318,jD=319,WD=5,qD=6,YD=0,Bc=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ky=125,GD=59,Uc=47,HD=42,FD=43,KD=45,JD=60,eN=44,tN=63,nN=46,iN=91,sN=new DD({start:!1,shift(n,e){return e==WD||e==qD||e==UD?n:e==jD},strict:!1}),rN=new Kr((n,e)=>{let{next:t}=n;(t==ky||t==-1||e.context)&&n.acceptToken(BD)},{contextual:!0,fallback:!0}),oN=new Kr((n,e)=>{let{next:t}=n,i;Bc.indexOf(t)>-1||t==Uc&&((i=n.peek(1))==Uc||i==HD)||t!=ky&&t!=GD&&t!=-1&&!e.context&&n.acceptToken(ID)},{contextual:!0}),aN=new Kr((n,e)=>{n.next==iN&&!e.context&&n.acceptToken(LD)},{contextual:!0}),lN=new Kr((n,e)=>{let{next:t}=n;if(t==FD||t==KD){if(n.advance(),t==n.next){n.advance();let i=!e.context&&e.canShift(zp);n.acceptToken(i?zp:zD)}}else t==tN&&n.peek(1)==nN&&(n.advance(),n.advance(),(n.next<48||n.next>57)&&n.acceptToken(VD))},{contextual:!0});function mu(n,e){return n>=65&&n<=90||n>=97&&n<=122||n==95||n>=192||!e&&n>=48&&n<=57}const uN=new Kr((n,e)=>{if(n.next!=JD||!e.dialectEnabled(YD)||(n.advance(),n.next==Uc))return;let t=0;for(;Bc.indexOf(n.next)>-1;)n.advance(),t++;if(mu(n.next,!0)){for(n.advance(),t++;mu(n.next,!1);)n.advance(),t++;for(;Bc.indexOf(n.next)>-1;)n.advance(),t++;if(n.next==eN)return;for(let i=0;;i++){if(i==7){if(!mu(n.next,!0))return;break}if(n.next!="extends".charCodeAt(i))break;n.advance(),t++}}n.acceptToken(XD,-t)}),cN=X0({"get set async static":I.modifier,"for while do if else switch try catch finally return throw break continue default case":I.controlKeyword,"in of await yield void typeof delete instanceof":I.operatorKeyword,"let var const using function class extends":I.definitionKeyword,"import export from":I.moduleKeyword,"with debugger as new":I.keyword,TemplateString:I.special(I.string),super:I.atom,BooleanLiteral:I.bool,this:I.self,null:I.null,Star:I.modifier,VariableName:I.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":I.function(I.variableName),VariableDefinition:I.definition(I.variableName),Label:I.labelName,PropertyName:I.propertyName,PrivatePropertyName:I.special(I.propertyName),"CallExpression/MemberExpression/PropertyName":I.function(I.propertyName),"FunctionDeclaration/VariableDefinition":I.function(I.definition(I.variableName)),"ClassDeclaration/VariableDefinition":I.definition(I.className),"NewExpression/VariableName":I.className,PropertyDefinition:I.definition(I.propertyName),PrivatePropertyDefinition:I.definition(I.special(I.propertyName)),UpdateOp:I.updateOperator,"LineComment Hashbang":I.lineComment,BlockComment:I.blockComment,Number:I.number,String:I.string,Escape:I.escape,ArithOp:I.arithmeticOperator,LogicOp:I.logicOperator,BitOp:I.bitwiseOperator,CompareOp:I.compareOperator,RegExp:I.regexp,Equals:I.definitionOperator,Arrow:I.function(I.punctuation),": Spread":I.punctuation,"( )":I.paren,"[ ]":I.squareBracket,"{ }":I.brace,"InterpolationStart InterpolationEnd":I.special(I.brace),".":I.derefOperator,", ;":I.separator,"@":I.meta,TypeName:I.typeName,TypeDefinition:I.definition(I.typeName),"type enum interface implements namespace module declare":I.definitionKeyword,"abstract global Privacy readonly override":I.modifier,"is keyof unique infer asserts":I.operatorKeyword,JSXAttributeValue:I.attributeValue,JSXText:I.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":I.angleBracket,"JSXIdentifier JSXNameSpacedName":I.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":I.attributeName,"JSXBuiltin/JSXIdentifier":I.standard(I.tagName)}),hN={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,const:52,extends:56,this:60,true:68,false:68,null:80,void:84,typeof:88,super:104,new:138,delete:150,yield:159,await:163,class:168,public:231,private:231,protected:231,readonly:233,instanceof:252,satisfies:255,in:256,import:290,keyof:347,unique:351,infer:357,asserts:393,is:395,abstract:415,implements:417,type:419,let:422,var:424,using:427,interface:433,enum:437,namespace:443,module:445,declare:449,global:453,for:472,of:481,while:484,with:488,do:492,if:496,else:498,switch:502,case:508,try:514,catch:518,finally:522,return:526,throw:530,break:534,continue:538,debugger:542},dN={__proto__:null,async:125,get:127,set:129,declare:191,public:193,private:193,protected:193,static:195,abstract:197,override:199,readonly:205,accessor:207,new:399},fN={__proto__:null,"<":189},pN=Ba.deserialize({version:14,states:"$EOQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#D_O.QQlO'#DeO.bQlO'#DpO%[QlO'#DxO0fQlO'#EQOOQ!0Lf'#EY'#EYO1PQ`O'#EVOOQO'#En'#EnOOQO'#Ij'#IjO1XQ`O'#GrO1dQ`O'#EmO1iQ`O'#EmO3hQ!0MxO'#JpO6[Q!0MxO'#JqO6uQ`O'#F[O6zQ,UO'#FsOOQ!0Lf'#Fe'#FeO7VO7dO'#FeO7eQMhO'#F{O9UQ`O'#FzOOQ!0Lf'#Jq'#JqOOQ!0Lb'#Jp'#JpO9ZQ`O'#GvOOQ['#K]'#K]O9fQ`O'#IWO9kQ!0LrO'#IXOOQ['#J^'#J^OOQ['#I]'#I]Q`QlOOQ`QlOOO9sQ!L^O'#DtO9zQlO'#D|O:RQlO'#EOO9aQ`O'#GrO:YQMhO'#CoO:hQ`O'#ElO:sQ`O'#EwO:xQMhO'#FdO;gQ`O'#GrOOQO'#K^'#K^O;lQ`O'#K^O;zQ`O'#GzO;zQ`O'#G{O;zQ`O'#G}O9aQ`O'#HQOYQ`O'#CeO>jQ`O'#HaO>rQ`O'#HgO>rQ`O'#HiO`QlO'#HkO>rQ`O'#HmO>rQ`O'#HpO>wQ`O'#HvO>|Q!0LsO'#H|O%[QlO'#IOO?XQ!0LsO'#IQO?dQ!0LsO'#ISO9kQ!0LrO'#IUO?oQ!0MxO'#CiO@qQpO'#DjQOQ`OOO%[QlO'#EOOAXQ`O'#ERO:YQMhO'#ElOAdQ`O'#ElOAoQ!bO'#FdOOQ['#Cg'#CgOOQ!0Lb'#Do'#DoOOQ!0Lb'#Jt'#JtO%[QlO'#JtOOQO'#Jw'#JwOOQO'#If'#IfOBoQpO'#EeOOQ!0Lb'#Ed'#EdOOQ!0Lb'#J{'#J{OCkQ!0MSO'#EeOCuQpO'#EUOOQO'#Jv'#JvODZQpO'#JwOEhQpO'#EUOCuQpO'#EePEuO&2DjO'#CbPOOO)CD{)CD{OOOO'#I^'#I^OFQO#tO,59UOOQ!0Lh,59U,59UOOOO'#I_'#I_OF`O&jO,59UOFnQ!L^O'#DaOOOO'#Ia'#IaOFuO#@ItO,59yOOQ!0Lf,59y,59yOGTQlO'#IbOGhQ`O'#JrOIgQ!fO'#JrO+}QlO'#JrOInQ`O,5:POJUQ`O'#EnOJcQ`O'#KROJnQ`O'#KQOJnQ`O'#KQOJvQ`O,5;[OJ{Q`O'#KPOOQ!0Ln,5:[,5:[OKSQlO,5:[OMQQ!0MxO,5:dOMqQ`O,5:lON[Q!0LrO'#KOONcQ`O'#J}O9ZQ`O'#J}ONwQ`O'#J}O! PQ`O,5;ZO! UQ`O'#J}O!#ZQ!fO'#JqOOQ!0Lh'#Ci'#CiO%[QlO'#EQO!#yQ!fO,5:qOOQS'#Jx'#JxOOQO-ErOOQ['#Jf'#JfOOQ[,5>s,5>sOOQ[-EbQ!0MxO,5:hO%[QlO,5:hO!@xQ!0MxO,5:jOOQO,5@x,5@xO!AiQMhO,5=^O!AwQ!0LrO'#JgO9UQ`O'#JgO!BYQ!0LrO,59ZO!BeQpO,59ZO!BmQMhO,59ZO:YQMhO,59ZO!BxQ`O,5;XO!CQQ`O'#H`O!CfQ`O'#KbO%[QlO,5;|O!9lQpO,5wQ`O'#HVO9aQ`O'#HXO!D}Q`O'#HXO:YQMhO'#HZO!ESQ`O'#HZOOQ[,5=o,5=oO!EXQ`O'#H[O!EjQ`O'#CoO!EoQ`O,59PO!EyQ`O,59PO!HOQlO,59POOQ[,59P,59PO!H`Q!0LrO,59PO%[QlO,59PO!JkQlO'#HcOOQ['#Hd'#HdOOQ['#He'#HeO`QlO,5={O!KRQ`O,5={O`QlO,5>RO`QlO,5>TO!KWQ`O,5>VO`QlO,5>XO!K]Q`O,5>[O!KbQlO,5>bOOQ[,5>h,5>hO%[QlO,5>hO9kQ!0LrO,5>jOOQ[,5>l,5>lO# lQ`O,5>lOOQ[,5>n,5>nO# lQ`O,5>nOOQ[,5>p,5>pO#!YQpO'#D]O%[QlO'#JtO#!{QpO'#JtO##VQpO'#DkO##hQpO'#DkO#%yQlO'#DkO#&QQ`O'#JsO#&YQ`O,5:UO#&_Q`O'#ErO#&mQ`O'#KSO#&uQ`O,5;]O#&zQpO'#DkO#'XQpO'#ETOOQ!0Lf,5:m,5:mO%[QlO,5:mO#'`Q`O,5:mO>wQ`O,5;WO!BeQpO,5;WO!BmQMhO,5;WO:YQMhO,5;WO#'hQ`O,5@`O#'mQ07dO,5:qOOQO-E|O+}QlO,5>|OOQO,5?S,5?SO#*uQlO'#IbOOQO-E<`-E<`O#+SQ`O,5@^O#+[Q!fO,5@^O#+cQ`O,5@lOOQ!0Lf1G/k1G/kO%[QlO,5@mO#+kQ`O'#IhOOQO-ErQ`O1G3qO$4rQlO1G3sO$8vQlO'#HrOOQ[1G3v1G3vO$9TQ`O'#HxO>wQ`O'#HzOOQ[1G3|1G3|O$9]QlO1G3|O9kQ!0LrO1G4SOOQ[1G4U1G4UOOQ!0Lb'#G^'#G^O9kQ!0LrO1G4WO9kQ!0LrO1G4YO$=dQ`O,5@`O!(yQlO,5;^O9ZQ`O,5;^O>wQ`O,5:VO!(yQlO,5:VO!BeQpO,5:VO$=iQ?MtO,5:VOOQO,5;^,5;^O$=sQpO'#IcO$>ZQ`O,5@_OOQ!0Lf1G/p1G/pO$>cQpO'#IiO$>mQ`O,5@nOOQ!0Lb1G0w1G0wO##hQpO,5:VOOQO'#Ie'#IeO$>uQpO,5:oOOQ!0Ln,5:o,5:oO#'cQ`O1G0XOOQ!0Lf1G0X1G0XO%[QlO1G0XOOQ!0Lf1G0r1G0rO>wQ`O1G0rO!BeQpO1G0rO!BmQMhO1G0rOOQ!0Lb1G5z1G5zO!BYQ!0LrO1G0[OOQO1G0k1G0kO%[QlO1G0kO$>|Q!0LrO1G0kO$?XQ!0LrO1G0kO!BeQpO1G0[OCuQpO1G0[O$?gQ!0LrO1G0kOOQO1G0[1G0[O$?{Q!0MxO1G0kPOOO-E|O$@iQ`O1G5xO$@qQ`O1G6WO$@yQ!fO1G6XO9ZQ`O,5?SO$ATQ!0MxO1G6UO%[QlO1G6UO$AeQ!0LrO1G6UO$AvQ`O1G6TO$AvQ`O1G6TO9ZQ`O1G6TO$BOQ`O,5?VO9ZQ`O,5?VOOQO,5?V,5?VO$BdQ`O,5?VO$)iQ`O,5?VOOQO-E^OOQ[,5>^,5>^O%[QlO'#HsO%=zQ`O'#HuOOQ[,5>d,5>dO9ZQ`O,5>dOOQ[,5>f,5>fOOQ[7+)h7+)hOOQ[7+)n7+)nOOQ[7+)r7+)rOOQ[7+)t7+)tO%>PQpO1G5zO%>kQ?MtO1G0xO%>uQ`O1G0xOOQO1G/q1G/qO%?QQ?MtO1G/qO>wQ`O1G/qO!(yQlO'#DkOOQO,5>},5>}OOQO-EwQ`O7+&^O!BeQpO7+&^OOQO7+%v7+%vO$?{Q!0MxO7+&VOOQO7+&V7+&VO%[QlO7+&VO%?[Q!0LrO7+&VO!BYQ!0LrO7+%vO!BeQpO7+%vO%?gQ!0LrO7+&VO%?uQ!0MxO7++pO%[QlO7++pO%@VQ`O7++oO%@VQ`O7++oOOQO1G4q1G4qO9ZQ`O1G4qO%@_Q`O1G4qOOQS7+%{7+%{O#'cQ`O<_OOQ[,5>a,5>aO&=aQ`O1G4OO9ZQ`O7+&dO!(yQlO7+&dOOQO7+%]7+%]O&=fQ?MtO1G6XO>wQ`O7+%]OOQ!0Lf<wQ`O<]Q`O<= ZOOQO7+*]7+*]O9ZQ`O7+*]OOQ[ANAjANAjO&>eQ!fOANAjO!&iQMhOANAjO#'cQ`OANAjO4UQ!fOANAjO&>lQ`OANAjO%[QlOANAjO&>tQ!0MzO7+'yO&AVQ!0MzO,5?_O&CbQ!0MzO,5?aO&EmQ!0MzO7+'{O&HOQ!fO1G4jO&HYQ?MtO7+&_O&J^Q?MvO,5=WO&LeQ?MvO,5=YO&LuQ?MvO,5=WO&MVQ?MvO,5=YO&MgQ?MvO,59sO' mQ?MvO,5wQ`O7+)jO'-]Q`O<|AN>|O%[QlOAN?]OOQO<PPPP!>XHwPPPPPPPPPP!AhP!BuPPHw!DWPHwPHwHwHwHwHwPHw!EjP!HtP!KzP!LO!LY!L^!L^P!HqP!Lb!LbP# hP# lHwPHw# r#$wCV@yP@yP@y@yP#&U@y@y#(h@y#+`@y#-l@y@y#.[#0p#0p#0u#1O#0p#1ZPP#0pP@y#1s@y#5r@y@y6aPPP#9wPPP#:b#:bP#:bP#:x#:bPP#;OP#:uP#:u#;c#:u#;}#R#>X#>c#>i#>s#>y#?Z#?a#@R#@e#@k#@q#AP#Af#CZ#Ci#Cp#E[#Ej#G[#Gj#Gp#Gv#G|#HW#H^#Hd#Hn#IQ#IWPPPPPPPPPPP#I^PPPPPPP#JR#MY#Nr#Ny$ RPPP$&mP$&v$)o$0Y$0]$0`$1_$1b$1i$1qP$1w$1zP$2h$2l$3d$4r$4w$5_PP$5d$5j$5n$5q$5u$5y$6u$7^$7u$7y$7|$8P$8V$8Y$8^$8bR!|RoqOXst!Z#d%l&p&r&s&u,n,s2S2VY!vQ'^-`1g5qQ%svQ%{yQ&S|Q&h!VS'U!e-WQ'd!iS'j!r!yU*h$|*X*lQ+l%|Q+y&UQ,_&bQ-^']Q-h'eQ-p'kQ0U*nQ1q,`R < TypeParamList const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:378,context:sN,nodeProps:[["isolate",-8,5,6,14,35,37,49,51,53,""],["group",-26,9,17,19,66,206,210,214,215,217,220,223,233,235,241,243,245,247,250,256,262,264,266,268,270,272,273,"Statement",-34,13,14,30,33,34,40,49,52,53,55,60,68,70,74,78,80,82,83,108,109,118,119,135,138,140,141,142,143,144,146,147,166,168,170,"Expression",-23,29,31,35,39,41,43,172,174,176,177,179,180,181,183,184,185,187,188,189,200,202,204,205,"Type",-3,86,101,107,"ClassItem"],["openedBy",23,"<",36,"InterpolationStart",54,"[",58,"{",71,"(",159,"JSXStartCloseTag"],["closedBy",-2,24,167,">",38,"InterpolationEnd",48,"]",59,"}",72,")",164,"JSXEndTag"]],propSources:[cN],skippedNodes:[0,5,6,276],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(X!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(X!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(UpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(UpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Up(X!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Up(X!b'z0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(V#S$h&j'{0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Up(X!b'{0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!n),Q(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(T':f$h&j(X!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(X!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(X!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(X!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(X!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Up(X!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(X!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(UpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(UpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Up(X!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!V7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!V7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!V7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(X!b!V7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(X!b!V7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(X!b!V7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(X!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(X!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!e$b$h&j#})Lv(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#P-v$?V_![(CdtBr$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!o7`$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Up(X!b'z0/l$[#t(R,2j(c$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Up(X!b'{0/l$[#t(R,2j(c$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[oN,aN,lN,uN,2,3,4,5,6,7,8,9,10,11,12,13,14,rN,new Xc("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOv~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!S~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(a~~",141,338),new Xc("j~RQYZXz{^~^O(O~~aP!P!Qd~iO(P~~",25,321)],topRules:{Script:[0,7],SingleExpression:[1,274],SingleClassItem:[2,275]},dialects:{jsx:0,ts:15091},dynamicPrecedences:{78:1,80:1,92:1,168:1,198:1},specialized:[{term:325,get:n=>hN[n]||-1},{term:341,get:n=>dN[n]||-1},{term:93,get:n=>fN[n]||-1}],tokenPrec:15116});function Vp(n){let e=Object.keys(n).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function mN(n){let e=Object.create(null),t=Object.create(null);for(let{label:s}of n){e[s[0]]=!0;for(let r=1;rtypeof s=="string"?{label:s}:s),[t,i]=e.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:mN(e);return s=>{let r=s.matchBefore(i);return r||s.explicit?{from:r?r.from:s.pos,options:e,validFor:t}:null}}function ON(n,e){return t=>{for(let i=It(t.state).resolveInner(t.pos,-1);i;i=i.parent){if(n.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return e(t)}}const yN=Ki.define(),vN=_e.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class wN{constructor(e,t,i,s){this.field=e,this.line=t,this.from=i,this.to=s}}class Nh{constructor(e,t,i){this.field=e,this.from=t,this.to=i}map(e){let t=e.mapPos(this.from,-1,wt.TrackDel),i=e.mapPos(this.to,1,wt.TrackDel);return t==null||i==null?null:new Nh(this.field,t,i)}}class Ih{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let i=[],s=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(i.length){let u=o,c=/^\t*/.exec(l)[0].length;for(let h=0;hnew Nh(l.field,s[l.line]+l.from,s[l.line]+l.to));return{text:i,ranges:a}}static parse(e){let t=[],i=[],s=[],r;for(let o of e.split(/\r\n?|\n/)){for(;r=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let a=r[1]?+r[1]:null,l=r[2]||r[3]||"",u=-1,c=l.replace(/\\[{}]/g,h=>h[1]);for(let h=0;h=u&&d.field++}s.push(new wN(u,i.length,r.index,r.index+c.length)),o=o.slice(0,r.index)+l+o.slice(r.index+r[0].length)}o=o.replace(/\\([{}])/g,(a,l,u)=>{for(let c of s)c.line==i.length&&c.from>u&&(c.from--,c.to--);return l}),i.push(o)}return new Ih(i,s)}}let bN=tt.widget({widget:new class extends ml{toDOM(){let n=document.createElement("span");return n.className="cm-snippetFieldPosition",n}ignoreEvent(){return!1}}}),xN=tt.mark({class:"cm-snippetField"});class Ns{constructor(e,t){this.ranges=e,this.active=t,this.deco=tt.set(e.map(i=>(i.from==i.to?bN:xN).range(i.from,i.to)))}map(e){let t=[];for(let i of this.ranges){let s=i.map(e);if(!s)return null;t.push(s)}return new Ns(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(i=>i.field==this.active&&i.from<=t.from&&i.to>=t.to))}}const Jr=Fe.define({map(n,e){return n&&n.map(e)}}),SN=Fe.define(),Xr=yi.define({create(){return null},update(n,e){for(let t of e.effects){if(t.is(Jr))return t.value;if(t.is(SN)&&n)return new Ns(n.ranges,t.value)}return n&&e.docChanged&&(n=n.map(e.changes)),n&&e.selection&&!n.selectionInsideField(e.selection)&&(n=null),n},provide:n=>_e.decorations.from(n,e=>e?e.deco:tt.none)});function Lh(n,e){return ee.create(n.filter(t=>t.field==e).map(t=>ee.range(t.from,t.to)))}function _N(n){let e=Ih.parse(n);return(t,i,s,r)=>{let{text:o,ranges:a}=e.instantiate(t.state,s),{main:l}=t.state.selection,u={changes:{from:s,to:r==l.from?l.to:r,insert:De.of(o)},scrollIntoView:!0,annotations:i?[yN.of(i),ft.userEvent.of("input.complete")]:void 0};if(a.length&&(u.selection=Lh(a,0)),a.some(c=>c.field>0)){let c=new Ns(a,0),h=u.effects=[Jr.of(c)];t.state.field(Xr,!1)===void 0&&h.push(Fe.appendConfig.of([Xr,TN,AN,vN]))}t.dispatch(t.state.update(u))}}function Py(n){return({state:e,dispatch:t})=>{let i=e.field(Xr,!1);if(!i||n<0&&i.active==0)return!1;let s=i.active+n,r=n>0&&!i.ranges.some(o=>o.field==s+n);return t(e.update({selection:Lh(i.ranges,s),effects:Jr.of(r?null:new Ns(i.ranges,s)),scrollIntoView:!0})),!0}}const $N=({state:n,dispatch:e})=>n.field(Xr,!1)?(e(n.update({effects:Jr.of(null)})),!0):!1,kN=Py(1),PN=Py(-1),QN=[{key:"Tab",run:kN,shift:PN},{key:"Escape",run:$N}],Xp=ge.define({combine(n){return n.length?n[0]:QN}}),TN=cl.highest(Ma.compute([Xp],n=>n.facet(Xp)));function $t(n,e){return Object.assign(Object.assign({},e),{apply:_N(n)})}const AN=_e.domEventHandlers({mousedown(n,e){let t=e.state.field(Xr,!1),i;if(!t||(i=e.posAtCoords({x:n.clientX,y:n.clientY}))==null)return!1;let s=t.ranges.find(r=>r.from<=i&&r.to>=i);return!s||s.field==t.active?!1:(e.dispatch({selection:Lh(t.ranges,s.field),effects:Jr.of(t.ranges.some(r=>r.field>s.field)?new Ns(t.ranges,s.field):null),scrollIntoView:!0}),!0)}}),Qy=new class extends Wi{};Qy.startSide=1;Qy.endSide=-1;const Ty=[$t("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),$t("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),$t("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),$t("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),$t("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),$t(`try { + \${} +} catch (\${error}) { + \${} +}`,{label:"try",detail:"/ catch block",type:"keyword"}),$t("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),$t(`if (\${}) { + \${} +} else { + \${} +}`,{label:"if",detail:"/ else block",type:"keyword"}),$t(`class \${name} { + constructor(\${params}) { + \${} + } +}`,{label:"class",detail:"definition",type:"keyword"}),$t('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),$t('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],CN=Ty.concat([$t("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),$t("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),$t("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Bp=new YZ,Ay=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Gs(n){return(e,t)=>{let i=e.node.getChild("VariableDefinition");return i&&t(i,n),!0}}const EN=["FunctionDeclaration"],MN={FunctionDeclaration:Gs("function"),ClassDeclaration:Gs("class"),ClassExpression:()=>!0,EnumDeclaration:Gs("constant"),TypeAliasDeclaration:Gs("type"),NamespaceDeclaration:Gs("namespace"),VariableDefinition(n,e){n.matchContext(EN)||e(n,"variable")},TypeDefinition(n,e){e(n,"type")},__proto__:null};function Cy(n,e){let t=Bp.get(e);if(t)return t;let i=[],s=!0;function r(o,a){let l=n.sliceString(o.from,o.to);i.push({label:l,type:a})}return e.cursor(at.IncludeAnonymous).iterate(o=>{if(s)s=!1;else if(o.name){let a=MN[o.name];if(a&&a(o,r)||Ay.has(o.name))return!1}else if(o.to-o.from>8192){for(let a of Cy(n,o.node))i.push(a);return!1}}),Bp.set(e,i),i}const Up=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Ey=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function RN(n){let e=It(n.state).resolveInner(n.pos,-1);if(Ey.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Up.test(n.state.sliceDoc(e.from,e.to));if(!t&&!n.explicit)return null;let i=[];for(let s=e;s;s=s.parent)Ay.has(s.name)&&(i=i.concat(Cy(n.state.doc,s)));return{options:i,from:t?e.from:n.pos,validFor:Up}}const Xi=Na.define({name:"javascript",parser:pN.configure({props:[Y0.add({IfStatement:cu({except:/^\s*({|else\b)/}),TryStatement:cu({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:m5,SwitchBody:n=>{let e=n.textAfter,t=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return n.baseIndent+(t?0:i?1:2)*n.unit},Block:p5({closing:"}"}),ArrowFunction:n=>n.baseIndent+n.unit,"TemplateString BlockComment":()=>null,"Statement Property":cu({except:/^{/}),JSXElement(n){let e=/^\s*<\//.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},JSXEscape(n){let e=/\s*\}/.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},"JSXOpenTag JSXSelfClosingTag"(n){return n.column(n.node.from)+n.unit}}),g5.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":O5,BlockComment(n){return{from:n.from+2,to:n.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),My={test:n=>/^JSX/.test(n.name),facet:j0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},ZN=Xi.configure({dialect:"ts"},"typescript"),DN=Xi.configure({dialect:"jsx",props:[Eh.add(n=>n.isTop?[My]:void 0)]}),NN=Xi.configure({dialect:"jsx ts",props:[Eh.add(n=>n.isTop?[My]:void 0)]},"typescript");let Ry=n=>({label:n,type:"keyword"});const Zy="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Ry),IN=Zy.concat(["declare","implements","private","protected","public"].map(Ry));function LN(n={}){let e=n.jsx?n.typescript?NN:DN:n.typescript?ZN:Xi,t=n.typescript?CN.concat(IN):Ty.concat(Zy);return new o5(e,[Xi.data.of({autocomplete:ON(Ey,gN(t))}),Xi.data.of({autocomplete:RN}),n.jsx?XN:[]])}function zN(n){for(;;){if(n.name=="JSXOpenTag"||n.name=="JSXSelfClosingTag"||n.name=="JSXFragmentTag")return n;if(n.name=="JSXEscape"||!n.parent)return null;n=n.parent}}function jp(n,e,t=n.length){for(let i=e==null?void 0:e.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return n.sliceString(i.from,Math.min(i.to,t));return""}const VN=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),XN=_e.inputHandler.of((n,e,t,i,s)=>{if((VN?n.composing:n.compositionStarted)||n.state.readOnly||e!=t||i!=">"&&i!="/"||!Xi.isActiveAt(n.state,e,-1))return!1;let r=s(),{state:o}=r,a=o.changeByRange(l=>{var u;let{head:c}=l,h=It(o).resolveInner(c-1,-1),d;if(h.name=="JSXStartTag"&&(h=h.parent),!(o.doc.sliceString(c-1,c)!=i||h.name=="JSXAttributeValue"&&h.to>c)){if(i==">"&&h.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(i=="/"&&h.name=="JSXStartCloseTag"){let f=h.parent,p=f.parent;if(p&&f.from==c-2&&((d=jp(o.doc,p.firstChild,c))||((u=p.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let m=`${d}>`;return{range:ee.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(i==">"){let f=zN(h);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(d=jp(o.doc,f,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return a.changes.empty?!1:(n.dispatch([r,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),BN="#e5c07b",Wp="#e06c75",UN="#56b6c2",jN="#ffffff",ia="#abb2bf",jc="#7d8799",WN="#61afef",qN="#98c379",qp="#d19a66",YN="#c678dd",GN="#21252b",Yp="#2c313a",Gp="#282c34",gu="#353a42",HN="#3E4451",Hp="#528bff",FN=_e.theme({"&":{color:ia,backgroundColor:Gp},".cm-content":{caretColor:Hp},".cm-cursor, .cm-dropCursor":{borderLeftColor:Hp},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:HN},".cm-panels":{backgroundColor:GN,color:ia},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Gp,color:jc,border:"none"},".cm-activeLineGutter":{backgroundColor:Yp},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:gu},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:gu,borderBottomColor:gu},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Yp,color:ia}}},{dark:!0}),Dy=Hr.define([{tag:I.keyword,color:YN},{tag:[I.name,I.deleted,I.character,I.propertyName,I.macroName],color:Wp},{tag:[I.function(I.variableName),I.labelName],color:WN},{tag:[I.color,I.constant(I.name),I.standard(I.name)],color:qp},{tag:[I.definition(I.name),I.separator],color:ia},{tag:[I.typeName,I.className,I.number,I.changed,I.annotation,I.modifier,I.self,I.namespace],color:BN},{tag:[I.operator,I.operatorKeyword,I.url,I.escape,I.regexp,I.link,I.special(I.string)],color:UN},{tag:[I.meta,I.comment],color:jc},{tag:I.strong,fontWeight:"bold"},{tag:I.emphasis,fontStyle:"italic"},{tag:I.strikethrough,textDecoration:"line-through"},{tag:I.link,color:jc,textDecoration:"underline"},{tag:I.heading,fontWeight:"bold",color:Wp},{tag:[I.atom,I.bool,I.special(I.variableName)],color:qp},{tag:[I.processingInstruction,I.string,I.inserted],color:qN},{tag:I.invalid,color:jN}]),KN=[FN,F0(Dy)],JN={class:"serial-script"},e3={class:"script-select"},t3={class:"script-editor"},n3={class:"script-name-container"},i3=Oe({__name:"SerialScript",setup(n){const e=la.getInstance(),t=ae(e.getScripts()),i=ae(e.getCurrentScript()),s=ae(i.value.id),r=ae(null),o=Zs(),a=p=>{r.value&&r.value.dispatch({changes:{from:0,to:r.value.state.doc.length,insert:p}})},l=p=>{e.setCurrentScript(p),i.value=p,a(p.code),s.value=i.value.id},u=()=>{const p=e.addScript();t.value=e.getScripts(),l(p)},c=p=>{e.removeScript(p),t.value=e.getScripts(),t.value.length==0&&u(),l(t.value[0])},h=async()=>{i.value.isRunning?await e.stopScript():await e.runScript()},d=()=>{const p=t.value.find(m=>m.id===s.value);p&&l(p)},f=()=>{const p=document.getElementById("script-editor-container");if(p){const m=Ne.create({doc:i.value.code,extensions:[Ma.of(PD),Ma.of([QD]),F0(o.value?Dy:b5),LN(),o.value?KN:[],VZ(),_e.updateListener.of(O=>{O.docChanged&&(i.value.code=O.state.doc.toString())})]});r.value=new _e({state:m,parent:p})}};return St(()=>{f()}),Qe(o,()=>{r.value&&(r.value.destroy(),f())}),Qe(t,()=>{e.saveScripts()},{deep:!0}),(p,m)=>{const O=ie("el-option"),y=ie("el-select"),b=ie("Plus"),v=ie("el-icon"),g=ie("el-button"),k=ie("el-button-group"),S=ie("el-input"),Q=ie("Compass"),T=ie("el-tooltip");return G(),K("div",JN,[q("div",e3,[x(y,{size:"small",modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=P=>s.value=P),onChange:d,placeholder:"选择脚本"},{default:A(()=>[(G(!0),K(ke,null,Xe(t.value,P=>(G(),be(O,{key:P.id,label:P.name,value:P.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),x(k,{class:"ms-2",style:{width:"250px"}},{default:A(()=>[x(g,{size:"small",onClick:u},{default:A(()=>[x(v,null,{default:A(()=>[x(b)]),_:1}),m[4]||(m[4]=te(" 新建 "))]),_:1}),x(g,{size:"small",type:"danger",onClick:m[1]||(m[1]=P=>c(i.value.id))},{default:A(()=>m[5]||(m[5]=[te("删除")])),_:1})]),_:1})]),q("div",t3,[q("div",n3,[x(S,{size:"small",modelValue:i.value.name,"onUpdate:modelValue":m[2]||(m[2]=P=>i.value.name=P),placeholder:"脚本名称",class:"script-name-input"},null,8,["modelValue"]),x(g,{type:i.value.isRunning?"success":"primary",size:"small",onClick:m[3]||(m[3]=P=>h()),class:"run-button"},{default:A(()=>[te(ve(i.value.isRunning?"停止":"运行"),1)]),_:1},8,["type"]),x(T,{effect:"dark",placement:"bottom"},{content:A(()=>m[6]||(m[6]=[q("p",null,"可用的API:",-1),q("ul",null,[q("li",null,"sendText(text) - 发送文本数据"),q("li",null,"sendHex(hex) - 发送HEX格式数据"),q("li",null,"sleep(ms) - 延时指定毫秒数"),q("li",null,"updateDataTable({pitch: 1.0, roll: 1.0, yaw: 1.0}); 更新IMU数据")],-1)])),default:A(()=>[x(g,{size:"small",style:{"margin-left":"0"}},{default:A(()=>[x(v,null,{default:A(()=>[x(Q)]),_:1})]),_:1})]),_:1})]),m[7]||(m[7]=q("div",{id:"script-editor-container",class:"editor-container"},null,-1))])])}}}),s3=yt(i3,[["__scopeId","data-v-3c8fbedf"]]);function Fp(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Function]"}function ss(n,e,t,i=1){const[s,r]=typeof i=="number"?[i,i]:i,o=Math.round(e/s/n[0])*n[0],a=Math.round(t/r/n[1])*n[1];return[o,a]}function Ou(n,e,t){return n-e-t}function yu(n,e,t){return n-e-t}function zt(n,e,t){return e!==null&&nFp(i[r]));if(!Fp(i[s]))return!1;do{if(i[s](e))return!0;if(i===t)return!1;i=i.parentNode}while(i);return!1}function r3(n){const e=window.getComputedStyle(n);return[parseFloat(e.getPropertyValue("width"),10),parseFloat(e.getPropertyValue("height"),10)]}function xi(n,e,t){n&&(n.attachEvent?n.attachEvent("on"+e,t):n.addEventListener?n.addEventListener(e,t,!0):n["on"+e]=t)}function kn(n,e,t){n&&(n.detachEvent?n.detachEvent("on"+e,t):n.removeEventListener?n.removeEventListener(e,t,!0):n["on"+e]=null)}const o3=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t},sa={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},a3={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},l3={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"};let Pn=sa.mouse;const u3={replace:!0,name:"vue-draggable-resizable",props:{className:{type:String,default:"vdr"},classNameDraggable:{type:String,default:"draggable"},classNameResizable:{type:String,default:"resizable"},classNameDragging:{type:String,default:"dragging"},classNameResizing:{type:String,default:"resizing"},classNameActive:{type:String,default:"active"},classNameHandle:{type:String,default:"handle"},disableUserSelect:{type:Boolean,default:!0},enableNativeDrag:{type:Boolean,default:!1},preventDeactivation:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},lockAspectRatio:{type:Boolean,default:!1},w:{type:[Number,String],default:200,validator:n=>typeof n=="number"?n>0:n==="auto"},h:{type:[Number,String],default:200,validator:n=>typeof n=="number"?n>0:n==="auto"},minWidth:{type:Number,default:0,validator:n=>n>=0},minHeight:{type:Number,default:0,validator:n=>n>=0},maxWidth:{type:Number,default:null,validator:n=>n>=0},maxHeight:{type:Number,default:null,validator:n=>n>=0},x:{type:Number,default:0},y:{type:Number,default:0},z:{type:[String,Number],default:"auto",validator:n=>typeof n=="string"?n==="auto":n>=0},handles:{type:Array,default:()=>["tl","tm","tr","mr","br","bm","bl","ml"],validator:n=>{const e=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(n.filter(t=>e.has(t))).size===n.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:n=>["x","y","both"].includes(n)},grid:{type:Array,default:()=>[1,1]},parent:{type:Boolean,default:!1},scale:{type:[Number,Array],default:1,validator:n=>typeof n=="number"?n>0:n.length===2&&n[0]>0&&n[1]>0},onDragStart:{type:Function,default:()=>!0},onDrag:{type:Function,default:()=>!0},onResizeStart:{type:Function,default:()=>!0},onResize:{type:Function,default:()=>!0}},data:function(){return{left:this.x,top:this.y,right:null,bottom:null,width:null,height:null,widthTouched:!1,heightTouched:!1,aspectFactor:null,parentWidth:null,parentHeight:null,handle:null,enabled:this.active,resizing:!1,dragging:!1,dragEnable:!1,resizeEnable:!1,zIndex:this.z}},created:function(){this.maxWidth&&this.minWidth>this.maxWidth&&console.warn("[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth"),this.maxHeight&&this.minHeight>this.maxHeight&&console.warn("[Vdr warn]: Invalid prop: minHeight cannot be greater than maxHeight"),this.resetBoundsAndMouseState()},mounted:function(){this.enableNativeDrag||(this.$el.ondragstart=()=>!1);const[n,e]=this.getParentSize();this.parentWidth=n,this.parentHeight=e;const[t,i]=r3(this.$el);this.aspectFactor=(this.w!=="auto"?this.w:t)/(this.h!=="auto"?this.h:i),this.width=this.w!=="auto"?this.w:t,this.height=this.h!=="auto"?this.h:i,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top,this.active&&this.$emit("activated"),xi(document.documentElement,"mousedown",this.deselect),xi(document.documentElement,"touchend touchcancel",this.deselect),xi(window,"resize",this.checkParentSize)},beforeUnmount:function(){kn(document.documentElement,"mousedown",this.deselect),kn(document.documentElement,"touchstart",this.handleUp),kn(document.documentElement,"mousemove",this.move),kn(document.documentElement,"touchmove",this.move),kn(document.documentElement,"mouseup",this.handleUp),kn(document.documentElement,"touchend touchcancel",this.deselect),kn(window,"resize",this.checkParentSize)},methods:{resetBoundsAndMouseState(){this.mouseClickPosition={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0},this.bounds={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null}},checkParentSize(){if(this.parent){const[n,e]=this.getParentSize();this.parentWidth=n,this.parentHeight=e,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top}},getParentSize(){if(this.parent){const n=window.getComputedStyle(this.$el.parentNode,null);return[parseInt(n.getPropertyValue("width"),10),parseInt(n.getPropertyValue("height"),10)]}return[null,null]},elementTouchDown(n){Pn=sa.touch,this.elementDown(n)},elementMouseDown(n){Pn=sa.mouse,this.elementDown(n)},elementDown(n){if(n instanceof MouseEvent&&n.button!==0)return;const e=n.target||n.srcElement;if(this.$el.contains(e)){if(this.onDragStart(n)===!1)return;if(this.dragHandle&&!Kp(e,this.dragHandle,this.$el)||this.dragCancel&&Kp(e,this.dragCancel,this.$el)){this.dragging=!1;return}this.enabled||(this.enabled=!0,this.$emit("activated"),this.$emit("update:active",!0)),this.draggable&&(this.dragEnable=!0),this.mouseClickPosition.mouseX=n.touches?n.touches[0].pageX:n.pageX,this.mouseClickPosition.mouseY=n.touches?n.touches[0].pageY:n.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.parent&&(this.bounds=this.calcDragLimits()),xi(document.documentElement,Pn.move,this.move),xi(document.documentElement,Pn.stop,this.handleUp)}},calcDragLimits(){return{minLeft:this.left%this.grid[0],maxLeft:Math.floor((this.parentWidth-this.width-this.left)/this.grid[0])*this.grid[0]+this.left,minRight:this.right%this.grid[0],maxRight:Math.floor((this.parentWidth-this.width-this.right)/this.grid[0])*this.grid[0]+this.right,minTop:this.top%this.grid[1],maxTop:Math.floor((this.parentHeight-this.height-this.top)/this.grid[1])*this.grid[1]+this.top,minBottom:this.bottom%this.grid[1],maxBottom:Math.floor((this.parentHeight-this.height-this.bottom)/this.grid[1])*this.grid[1]+this.bottom}},deselect(n){const e=n.target||n.srcElement,t=new RegExp(this.className+"-([trmbl]{2})","");!this.$el.contains(e)&&!t.test(e.className)&&(this.enabled&&!this.preventDeactivation&&(this.enabled=!1,this.$emit("deactivated"),this.$emit("update:active",!1)),kn(document.documentElement,Pn.move,this.handleResize)),this.resetBoundsAndMouseState()},handleTouchDown(n,e){Pn=sa.touch,this.handleDown(n,e)},handleDown(n,e){e instanceof MouseEvent&&e.which!==1||this.onResizeStart(n,e)!==!1&&(e.stopPropagation&&e.stopPropagation(),this.lockAspectRatio&&!n.includes("m")?this.handle="m"+n.substring(1):this.handle=n,this.resizeEnable=!0,this.mouseClickPosition.mouseX=e.touches?e.touches[0].pageX:e.pageX,this.mouseClickPosition.mouseY=e.touches?e.touches[0].pageY:e.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.bounds=this.calcResizeLimits(),xi(document.documentElement,Pn.move,this.handleResize),xi(document.documentElement,Pn.stop,this.handleUp))},calcResizeLimits(){let n=this.minW,e=this.minH,t=this.maxW,i=this.maxH;const s=this.aspectFactor,[r,o]=this.grid,a=this.width,l=this.height,u=this.left,c=this.top,h=this.right,d=this.bottom;this.lockAspectRatio&&(n/e>s?e=n/s:n=s*e,t&&i?(t=Math.min(t,s*i),i=Math.min(i,t/s)):t?i=t/s:i&&(t=s*i)),t=t-t%r,i=i-i%o;const f={minLeft:null,maxLeft:null,minTop:null,maxTop:null,minRight:null,maxRight:null,minBottom:null,maxBottom:null};return this.parent?(f.minLeft=u%r,f.maxLeft=u+Math.floor((a-n)/r)*r,f.minTop=c%o,f.maxTop=c+Math.floor((l-e)/o)*o,f.minRight=h%r,f.maxRight=h+Math.floor((a-n)/r)*r,f.minBottom=d%o,f.maxBottom=d+Math.floor((l-e)/o)*o,t&&(f.minLeft=Math.max(f.minLeft,this.parentWidth-h-t),f.minRight=Math.max(f.minRight,this.parentWidth-u-t)),i&&(f.minTop=Math.max(f.minTop,this.parentHeight-d-i),f.minBottom=Math.max(f.minBottom,this.parentHeight-c-i)),this.lockAspectRatio&&(f.minLeft=Math.max(f.minLeft,u-c*s),f.minTop=Math.max(f.minTop,c-u/s),f.minRight=Math.max(f.minRight,h-d*s),f.minBottom=Math.max(f.minBottom,d-h/s))):(f.minLeft=null,f.maxLeft=u+Math.floor((a-n)/r)*r,f.minTop=null,f.maxTop=c+Math.floor((l-e)/o)*o,f.minRight=null,f.maxRight=h+Math.floor((a-n)/r)*r,f.minBottom=null,f.maxBottom=d+Math.floor((l-e)/o)*o,t&&(f.minLeft=-(h+t),f.minRight=-(u+t)),i&&(f.minTop=-(d+i),f.minBottom=-(c+i)),this.lockAspectRatio&&t&&i&&(f.minLeft=Math.min(f.minLeft,-(h+t)),f.minTop=Math.min(f.minTop,-(i+d)),f.minRight=Math.min(f.minRight,-u-t),f.minBottom=Math.min(f.minBottom,-c-i))),f},move(n){this.resizing?this.handleResize(n):this.dragEnable&&this.handleDrag(n)},handleDrag(n){const e=this.axis,t=this.grid,i=this.bounds,s=this.mouseClickPosition,r=e&&e!=="y"?s.mouseX-(n.touches?n.touches[0].pageX:n.pageX):0,o=e&&e!=="x"?s.mouseY-(n.touches?n.touches[0].pageY:n.pageY):0,[a,l]=ss(t,r,o,this.scale),u=zt(s.left-a,i.minLeft,i.maxLeft),c=zt(s.top-l,i.minTop,i.maxTop);if(this.onDrag(u,c)===!1)return;const h=zt(s.right+a,i.minRight,i.maxRight),d=zt(s.bottom+l,i.minBottom,i.maxBottom);this.left=u,this.top=c,this.right=h,this.bottom=d,this.$emit("dragging",this.left,this.top),this.dragging=!0},moveHorizontally(n){const[e,t]=ss(this.grid,n,this.top,1),i=zt(e,this.bounds.minLeft,this.bounds.maxLeft);this.left=i,this.right=this.parentWidth-this.width-i},moveVertically(n){const[e,t]=ss(this.grid,this.left,n,1),i=zt(t,this.bounds.minTop,this.bounds.maxTop);this.top=i,this.bottom=this.parentHeight-this.height-i},handleResize(n){let e=this.left,t=this.top,i=this.right,s=this.bottom;const r=this.mouseClickPosition,o=this.aspectFactor,a=r.mouseX-(n.touches?n.touches[0].pageX:n.pageX),l=r.mouseY-(n.touches?n.touches[0].pageY:n.pageY);!this.widthTouched&&a&&(this.widthTouched=!0),!this.heightTouched&&l&&(this.heightTouched=!0);const[u,c]=ss(this.grid,a,l,this.scale);this.handle.includes("b")?(s=zt(r.bottom+c,this.bounds.minBottom,this.bounds.maxBottom),this.lockAspectRatio&&this.resizingOnY&&(i=this.right-(this.bottom-s)*o)):this.handle.includes("t")&&(t=zt(r.top-c,this.bounds.minTop,this.bounds.maxTop),this.lockAspectRatio&&this.resizingOnY&&(e=this.left-(this.top-t)*o)),this.handle.includes("r")?(i=zt(r.right+u,this.bounds.minRight,this.bounds.maxRight),this.lockAspectRatio&&this.resizingOnX&&(s=this.bottom-(this.right-i)/o)):this.handle.includes("l")&&(e=zt(r.left-u,this.bounds.minLeft,this.bounds.maxLeft),this.lockAspectRatio&&this.resizingOnX&&(t=this.top-(this.left-e)/o));const h=Ou(this.parentWidth,e,i),d=yu(this.parentHeight,t,s);this.onResize(this.handle,e,t,h,d)!==!1&&(this.left=e,this.top=t,this.right=i,this.bottom=s,this.width=h,this.height=d,this.$emit("resizing",this.left,this.top,this.width,this.height),this.resizing=!0)},changeWidth(n){const[e,t]=ss(this.grid,n,0,1),i=zt(this.parentWidth-e-this.left,this.bounds.minRight,this.bounds.maxRight);let s=this.bottom;this.lockAspectRatio&&(s=this.bottom-(this.right-i)/this.aspectFactor);const r=Ou(this.parentWidth,this.left,i),o=yu(this.parentHeight,this.top,s);this.right=i,this.bottom=s,this.width=r,this.height=o},changeHeight(n){const[e,t]=ss(this.grid,0,n,1),i=zt(this.parentHeight-t-this.top,this.bounds.minBottom,this.bounds.maxBottom);let s=this.right;this.lockAspectRatio&&(s=this.right-(this.bottom-i)*this.aspectFactor);const r=Ou(this.parentWidth,this.left,s),o=yu(this.parentHeight,this.top,i);this.right=s,this.bottom=i,this.width=r,this.height=o},handleUp(n){this.handle=null,this.resetBoundsAndMouseState(),this.dragEnable=!1,this.resizeEnable=!1,this.resizing&&(this.resizing=!1,this.$emit("resizeStop",this.left,this.top,this.width,this.height)),this.dragging&&(this.dragging=!1,this.$emit("dragStop",this.left,this.top)),kn(document.documentElement,Pn.move,this.handleResize)}},computed:{style(){return{transform:`translate(${this.left}px, ${this.top}px)`,width:this.computedWidth,height:this.computedHeight,zIndex:this.zIndex,...this.dragging&&this.disableUserSelect?a3:l3}},actualHandles(){return this.resizable?this.handles:[]},computedWidth(){return this.w==="auto"&&!this.widthTouched?"auto":this.width+"px"},computedHeight(){return this.h==="auto"&&!this.heightTouched?"auto":this.height+"px"},minW(){return this.minWidth},minH(){return this.minHeight},maxW(){return this.maxWidth},maxH(){return this.maxHeight},resizingOnX(){return!!this.handle&&(this.handle.includes("l")||this.handle.includes("r"))},resizingOnY(){return!!this.handle&&(this.handle.includes("t")||this.handle.includes("b"))},isCornerHandle(){return!!this.handle&&["tl","tr","br","bl"].includes(this.handle)}},watch:{active(n){this.enabled=n,n?this.$emit("activated"):this.$emit("deactivated")},z(n){(n>=0||n==="auto")&&(this.zIndex=n)},x(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveHorizontally(n))},y(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveVertically(n))},lockAspectRatio(n){n?this.aspectFactor=this.width/this.height:this.aspectFactor=void 0},w(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeWidth(n))},h(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeHeight(n))}}},c3=["onMousedown","onTouchstart"];function h3(n,e,t,i,s,r){return G(),K("div",{style:gt(r.style),class:Ge([{[t.classNameActive]:n.enabled,[t.classNameDragging]:n.dragging,[t.classNameResizing]:n.resizing,[t.classNameDraggable]:t.draggable,[t.classNameResizable]:t.resizable},t.className]),onMousedown:e[0]||(e[0]=(...o)=>r.elementMouseDown&&r.elementMouseDown(...o)),onTouchstart:e[1]||(e[1]=(...o)=>r.elementTouchDown&&r.elementTouchDown(...o))},[(G(!0),K(ke,null,Xe(r.actualHandles,o=>(G(),K("div",{key:o,class:Ge([t.classNameHandle,t.classNameHandle+"-"+o]),style:gt({display:n.enabled?"block":"none"}),onMousedown:zh(a=>r.handleDown(o,a),["stop","prevent"]),onTouchstart:zh(a=>r.handleTouchDown(o,a),["stop","prevent"])},[Be(n.$slots,o)],46,c3))),128)),Be(n.$slots,"default")],38)}const Ny=o3(u3,[["render",h3]]);function Wc(n){Wc.installed||(Wc.installed=!0,n.component("VueDraggableResizable",Ny))}const d3={install:Wc};let Ua=null;typeof window<"u"?Ua=window.Vue:typeof global<"u"&&(Ua=global.Vue);Ua&&Ua.use(d3);const f3={class:"canvas-panel"},p3={class:"toolbar"},Hs=10,m3=Oe({__name:"CanvasPanel",setup(n){var p;const e=Vn.getInstance(),t=e.useConfig("canvas"),i=ae(((p=t.value)==null?void 0:p.items)||[]),s=Zs(),r={chart:wO,table:bO,"3d":vO},o=m=>{const O={id:Date.now(),type:m,x:0,y:0,width:400,height:300};i.value.push(O),h()},a=m=>Math.round(m/Hs)*Hs,l=(m,O,y,b,v)=>{const g=i.value.find(k=>k.id===v);g&&(g.x=a(m),g.y=a(O),g.width=a(y),g.height=a(b),h(),f())},u=(m,O,y)=>{const b=i.value.find(v=>v.id===y);b&&(b.x=a(m),b.y=a(O),h())},c=m=>{const O=i.value.findIndex(y=>y.id===m);O!==-1&&(i.value.splice(O,1),h())},h=()=>{e.setConfig("canvas",{items:i.value})};let d;const f=()=>{clearTimeout(d),d=setTimeout(()=>{window.dispatchEvent(new CustomEvent("resize",{}))},100)};return(m,O)=>{const y=ie("el-button"),b=ie("el-button-group");return G(),K("div",f3,[q("div",p3,[x(b,{class:"tool-group"},{default:A(()=>[x(y,{type:"primary",size:"small",onClick:O[0]||(O[0]=v=>o("chart"))},{default:A(()=>O[3]||(O[3]=[te("添加图表")])),_:1}),x(y,{type:"primary",size:"small",onClick:O[1]||(O[1]=v=>o("table"))},{default:A(()=>O[4]||(O[4]=[te("添加数据表")])),_:1}),x(y,{type:"primary",size:"small",onClick:O[2]||(O[2]=v=>o("3d"))},{default:A(()=>O[5]||(O[5]=[te("添加3D视图")])),_:1})]),_:1})]),q("div",{class:Ge(["canvas-container",{dark:$(s)}])},[O[6]||(O[6]=q("div",{class:"grid-background"},null,-1)),(G(!0),K(ke,null,Xe(i.value,v=>(G(),be($(Ny),{key:v.id,x:v.x,y:v.y,w:v.width,h:v.height,width:v.width,height:v.height,draggable:!0,resizable:!0,grid:[Hs,Hs],snap:!0,"snap-tolerance":Hs,class:"canvas-item",onResizing:(g,k,S,Q)=>l(g,k,S,Q,v.id),onDragging:(g,k)=>u(g,k,v.id)},{default:A(()=>[(G(),be(ni(r[v.type]))),x(y,{class:"remove-btn",type:"danger",circle:"",size:"small",onClick:g=>c(v.id),icon:"Delete"},null,8,["onClick"])]),_:2},1032,["x","y","w","h","width","height","grid","onResizing","onDragging"]))),128))],2)])}}}),g3=yt(m3,[["__scopeId","data-v-8966f8c9"]]),O3={class:"header-content"},y3={class:"header-left"},v3={class:"header-links"},w3=Oe({__name:"App",setup(n){const t=Vn.getInstance().useConfig("layout"),i=Zs({initialValue:"dark",storage:localStorage}),s=Hy(i),r=ae(!1),o=()=>{document.fullscreenElement?(document.exitFullscreen(),r.value=!1):(document.documentElement.requestFullscreen(),r.value=!0)},a=h=>{t.value.splitPaneSize=h[0].size,c()},l=()=>{c()};let u;const c=()=>{clearTimeout(u),u=setTimeout(()=>{window.dispatchEvent(new CustomEvent("resize",{}))},100)};return c(),(h,d)=>{const f=ie("el-button"),p=ie("el-header"),m=ie("el-tab-pane"),O=ie("el-tabs"),y=ie("el-container");return G(),be(y,{class:"app-container"},{default:A(()=>[x(p,{class:"app-header"},{default:A(()=>[q("div",O3,[q("div",y3,[d[4]||(d[4]=q("h1",null,[q("a",{href:"https://github.com/qdsang/web-serial-debug",target:"_blank"},"Web Serial")],-1)),x($v,{class:"header-serial-config"})]),q("div",v3,[x(f,{class:"theme-toggle",icon:$(i)?"Sunny":"Moon",circle:"",onClick:d[0]||(d[0]=b=>$(s)())},null,8,["icon"]),x(f,{class:"fullscreen-toggle",icon:"FullScreen",circle:"",onClick:d[1]||(d[1]=b=>o())})])])]),_:1}),x(y,{class:"main-container"},{default:A(()=>[x($(t1),{class:"default-theme",onResize:a},{default:A(()=>[x($(Vh),{size:$(t).splitPaneSize,class:"w75"},{default:A(()=>[x(O,{type:"card",class:"lv-card lv-tabs",addable:"",modelValue:$(t).leftActiveTab,"onUpdate:modelValue":d[2]||(d[2]=b=>$(t).leftActiveTab=b),onTabClick:l},{default:A(()=>[x(m,{label:"命令行"},{default:A(()=>[x(Xv)]),_:1}),x(m,{label:"姿态",lazy:""},{default:A(()=>[x(vO)]),_:1}),x(m,{label:"数据表",lazy:""},{default:A(()=>[x(bO)]),_:1}),x(m,{label:"可视化",lazy:""},{default:A(()=>[x(wO)]),_:1}),x(m,{label:"流程图"},{default:A(()=>[x(WC)]),_:1}),x(m,{label:"画板",lazy:""},{default:A(()=>[x(g3)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["size"]),x($(Vh),{class:"w25"},{default:A(()=>[x(O,{type:"card",class:"lv-card lv-tabs",modelValue:$(t).rightActiveTab,"onUpdate:modelValue":d[3]||(d[3]=b=>$(t).rightActiveTab=b)},{default:A(()=>[x(m,{label:"快捷发送"},{default:A(()=>[x($M)]),_:1}),x(m,{label:"脚本"},{default:A(()=>[x(s3)]),_:1}),x(m,{label:"设置"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})}}}),b3=yt(w3,[["__scopeId","data-v-ef1e6fb1"]]),xl=Fy(b3),x3=Ky();for(const[n,e]of Object.entries(n1))xl.component(n,e);xl.use(x3);xl.use(i1);xl.mount("#app");"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("./sw.js").then(n=>{console.log("ServiceWorker registration successful")}).catch(n=>{console.error("ServiceWorker registration failed:",n)})}); diff --git a/assets/utils-DMCumeSF.js b/assets/utils-Be68bvOs.js similarity index 99% rename from assets/utils-DMCumeSF.js rename to assets/utils-Be68bvOs.js index f4650e9..cb007c3 100644 --- a/assets/utils-DMCumeSF.js +++ b/assets/utils-Be68bvOs.js @@ -1,4 +1,4 @@ -import{g as et,i as Se,r as A,c as C,u as o,a as Ee,b as ht,d as Ve,w as ue,e as F4,o as Sp,s as Ot,f as cn,h as oi,j as Xe,n as Ne,k as K4,l as Sn,m as vn,p as W4,q as Je,t as it,v as Lc,x as T,y as M,z as _,A as k,B as Q,C as Oe,D as $,N as zt,E as tt,F as Xt,G as ae,H as G,I as qe,J as ee,K as Qe,L as ot,M as he,O as ze,P as q,Q as pt,T as tn,R as yt,S as Mo,U as Ka,V as Ae,W as $t,X as _t,Y as kp,Z as Wa,_ as j4,$ as Ep,a0 as ri,a1 as q4,a2 as Rc,a3 as U4,a4 as kt,a5 as Yn,a6 as rt,a7 as io,a8 as oa,a9 as Tl,aa as Ft,ab as zs,ac as As,ad as nn,ae as xp,af as Pe,ag as Ze,ah as Y4,ai as G4,aj as Su,ak as si,al as X4,am as Mp,an as kl,ao as Z4,ap as ku,aq as ii,ar as J4,as as ol,at as Q4,au as eg,av as tg}from"./vue-CAgL8zVV.js";import{g as ja}from"./three-FCmarWxK.js";const ng="2.9.3",Mf=Symbol("INSTALLED_KEY"),$p=Symbol(),Zo="el",ag="is-",hl=(e,t,n,a,l)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),a&&(r+=`__${a}`),l&&(r+=`--${l}`),r},Tp=Symbol("namespaceContextKey"),Bc=e=>{const t=e||(et()?Se(Tp,A(Zo)):A(Zo));return C(()=>o(t)||Zo)},de=(e,t)=>{const n=Bc(t);return{namespace:n,b:(p="")=>hl(n.value,e,p,"",""),e:p=>p?hl(n.value,e,"",p,""):"",m:p=>p?hl(n.value,e,"","",p):"",be:(p,y)=>p&&y?hl(n.value,e,p,y,""):"",em:(p,y)=>p&&y?hl(n.value,e,"",p,y):"",bm:(p,y)=>p&&y?hl(n.value,e,p,"",y):"",bem:(p,y,g)=>p&&y&&g?hl(n.value,e,p,y,g):"",is:(p,...y)=>{const g=y.length>=1?y[0]:!0;return p&&g?`${ag}${p}`:""},cssVar:p=>{const y={};for(const g in p)p[g]&&(y[`--${n.value}-${g}`]=p[g]);return y},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const y={};for(const g in p)p[g]&&(y[`--${n.value}-${e}-${g}`]=p[g]);return y},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}};var Op=typeof global=="object"&&global&&global.Object===Object&&global,lg=typeof self=="object"&&self&&self.Object===Object&&self,pa=Op||lg||Function("return this")(),Gn=pa.Symbol,Np=Object.prototype,og=Np.hasOwnProperty,rg=Np.toString,Fo=Gn?Gn.toStringTag:void 0;function sg(e){var t=og.call(e,Fo),n=e[Fo];try{e[Fo]=void 0;var a=!0}catch{}var l=rg.call(e);return a&&(t?e[Fo]=n:delete e[Fo]),l}var ig=Object.prototype,ug=ig.toString;function cg(e){return ug.call(e)}var dg="[object Null]",fg="[object Undefined]",$f=Gn?Gn.toStringTag:void 0;function Ll(e){return e==null?e===void 0?fg:dg:$f&&$f in Object(e)?sg(e):cg(e)}function Ca(e){return e!=null&&typeof e=="object"}var pg="[object Symbol]";function ui(e){return typeof e=="symbol"||Ca(e)&&Ll(e)==pg}function Hc(e,t){for(var n=-1,a=e==null?0:e.length,l=Array(a);++n0){if(++t>=Dg)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jg(e){return function(){return e}}var Vs=function(){try{var e=Bl(Object,"defineProperty");return e({},"",{}),e}catch{}}(),qg=Vs?function(e,t){return Vs(e,"toString",{configurable:!0,enumerable:!1,value:jg(t),writable:!0})}:Dc,zp=Wg(qg);function Ug(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var Jg=9007199254740991,Qg=/^(?:0|[1-9]\d*)$/;function ci(e,t){var n=typeof e;return t=t??Jg,!!t&&(n=="number"||n!="symbol"&&Qg.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=n6}function To(e){return e!=null&&jc(e.length)&&!Fc(e)}function a6(e,t,n){if(!Nn(n))return!1;var a=typeof t;return(a=="number"?To(n)&&ci(t,n.length):a=="string"&&t in n)?xr(n[t],e):!1}function l6(e){return Lp(function(t,n){var a=-1,l=n.length,r=l>1?n[l-1]:void 0,s=l>2?n[2]:void 0;for(r=e.length>3&&typeof r=="function"?(l--,r):void 0,s&&a6(n[0],n[1],s)&&(r=l<3?void 0:r,l=1),t=Object(t);++a-1}function v3(e,t){var n=this.__data__,a=di(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function qa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(i)?t>1?Tr(i,t-1,n,a,l):Xc(l,i):a||(l[l.length]=i)}return l}function Kp(e){var t=e==null?0:e.length;return t?Tr(e,1):[]}function Wp(e){return zp(Vp(e,void 0,Kp),e+"")}var Zc=Fp(Object.getPrototypeOf,Object),T3="[object Object]",O3=Function.prototype,N3=Object.prototype,jp=O3.toString,I3=N3.hasOwnProperty,P3=jp.call(Object);function qp(e){if(!Ca(e)||Ll(e)!=T3)return!1;var t=Zc(e);if(t===null)return!0;var n=I3.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&jp.call(n)==P3}function z3(e,t,n){var a=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(l);++ai))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&hy?new ur:void 0;for(r.set(e,t),r.set(t,e);++f=t||O<0||f&&I>=r}function g(){var E=Xi();if(y(E))return x(E);i=setTimeout(g,p(E))}function x(E){return i=void 0,h&&a?v(E):(a=l=void 0,s)}function w(){i!==void 0&&clearTimeout(i),c=0,a=u=l=i=void 0}function b(){return i===void 0?s:x(Xi())}function S(){var E=Xi(),O=y(E);if(a=arguments,l=this,u=E,O){if(i===void 0)return m(u);if(f)return clearTimeout(i),i=setTimeout(g,t),v(u)}return i===void 0&&(i=setTimeout(g,t)),s}return S.cancel=w,S.flush=b,S}function Tu(e,t,n){(n!==void 0&&!xr(e[t],n)||n===void 0&&!(t in e))&&Kc(e,t,n)}function d1(e){return Ca(e)&&To(e)}function Ou(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function l_(e){return $o(e,$r(e))}function o_(e,t,n,a,l,r,s){var i=Ou(e,n),u=Ou(t,n),c=s.get(u);if(c){Tu(e,n,c);return}var d=r?r(i,u,n+"",e,t,s):void 0,f=d===void 0;if(f){var h=On(u),v=!h&&rr(u),m=!h&&!v&&Yc(u);d=u,h||v||m?On(i)?d=i:d1(i)?d=Pp(i):v?(f=!1,d=Yp(u,!0)):m?(f=!1,d=Qp(u,!0)):d=[]:qp(u)||or(u)?(d=i,or(i)?d=l_(i):(!Nn(i)||Fc(i))&&(d=e1(u))):f=!1}f&&(s.set(u,d),l(d,u,a,r,s),s.delete(u)),Tu(e,n,d)}function f1(e,t,n,a,l){e!==t&&c1(t,function(r,s){if(l||(l=new ia),Nn(r))o_(e,t,s,n,f1,a,l);else{var i=a?a(Ou(e,s),r,s+"",e,t,l):void 0;i===void 0&&(i=r),Tu(e,s,i)}},$r)}function r_(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function p1(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var l=a-1;return Ap(e,u1(t),l,!0)}function s_(e,t){var n=-1,a=To(e)?Array(e.length):[];return e_(e,function(l,r,s){a[++n]=t(l,r,s)}),a}function i_(e,t){var n=On(e)?Hc:s_;return n(e,u1(t))}function u_(e,t){return Tr(i_(e,t),1)}var c_=1/0;function d_(e){var t=e==null?0:e.length;return t?Tr(e,c_):[]}function cr(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),r}),$o(e,Jp(e),n),a&&(n=ao(n,h_|m_|g_,v_));for(var l=t.length;l--;)p_(n,t[l]);return n});function m1(e,t,n,a){if(!Nn(e))return e;t=Oo(t,e);for(var l=-1,r=t.length,s=r-1,i=e;i!=null&&++l=E_){var c=k_(e);if(c)return ed(c);s=!1,l=l1,u=new ur}else u=i;e:for(;++ae===void 0,Et=e=>typeof e=="boolean",Ie=e=>typeof e=="number",Hn=e=>!e&&e!==0||Ee(e)&&e.length===0||ht(e)&&!Object.keys(e).length,Tn=e=>typeof Element>"u"?!1:e instanceof Element,ua=e=>Zt(e),M_=e=>Ve(e)?!Number.isNaN(Number(e)):!1,mi=e=>e===window;var $_=Object.defineProperty,T_=Object.defineProperties,O_=Object.getOwnPropertyDescriptors,o0=Object.getOwnPropertySymbols,N_=Object.prototype.hasOwnProperty,I_=Object.prototype.propertyIsEnumerable,r0=(e,t,n)=>t in e?$_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P_=(e,t)=>{for(var n in t||(t={}))N_.call(t,n)&&r0(e,n,t[n]);if(o0)for(var n of o0(t))I_.call(t,n)&&r0(e,n,t[n]);return e},z_=(e,t)=>T_(e,O_(t));function Nu(e,t){var n;const a=Ot();return cn(()=>{a.value=e()},z_(P_({},t),{flush:(n=void 0)!=null?n:"sync"})),oi(a)}var s0;const ut=typeof window<"u",A_=e=>typeof e<"u",Iu=e=>typeof e=="function",V_=e=>typeof e=="string",co=()=>{},Pu=ut&&((s0=window==null?void 0:window.navigator)==null?void 0:s0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rl(e){return typeof e=="function"?e():o(e)}function g1(e,t){function n(...a){return new Promise((l,r)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(l).catch(r)})}return n}function L_(e,t={}){let n,a,l=co;const r=i=>{clearTimeout(i),l(),l=co};return i=>{const u=rl(e),c=rl(t.maxWait);return n&&r(n),u<=0||c!==void 0&&c<=0?(a&&(r(a),a=null),Promise.resolve(i())):new Promise((d,f)=>{l=t.rejectOnCancel?f:d,c&&!a&&(a=setTimeout(()=>{n&&r(n),a=null,d(i())},c)),n=setTimeout(()=>{a&&r(a),a=null,d(i())},u)})}}function R_(e,t=!0,n=!0,a=!1){let l=0,r,s=!0,i=co,u;const c=()=>{r&&(clearTimeout(r),r=void 0,i(),i=co)};return f=>{const h=rl(e),v=Date.now()-l,m=()=>u=f();return c(),h<=0?(l=Date.now(),m()):(v>h&&(n||!s)?(l=Date.now(),m()):t&&(u=new Promise((p,y)=>{i=a?y:p,r=setTimeout(()=>{l=Date.now(),s=!0,p(m()),c()},Math.max(0,h-v))})),!n&&!r&&(r=setTimeout(()=>s=!0,h)),s=!1,u)}}function B_(e){return e}function H_(e,t){let n,a,l;const r=A(!0),s=()=>{r.value=!0,l()};ue(e,s,{flush:"sync"});const i=Iu(t)?t:t.get,u=Iu(t)?void 0:t.set,c=K4((d,f)=>(a=d,l=f,{get(){return r.value&&(n=i(),r.value=!1),a(),n},set(h){u==null||u(h)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function Nr(e){return F4()?(Sp(e),!0):!1}function D_(e,t=200,n={}){return g1(L_(t,n),e)}function F_(e,t=200,n={}){const a=A(e.value),l=D_(()=>{a.value=e.value},t,n);return ue(e,()=>l()),a}function y1(e,t=200,n=!1,a=!0,l=!1){return g1(R_(t,n,a,l),e)}function td(e,t=!0){et()?Xe(e):t?e():Ne(e)}function Nl(e,t,n={}){const{immediate:a=!0}=n,l=A(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function i(){l.value=!1,s()}function u(...c){s(),l.value=!0,r=setTimeout(()=>{l.value=!1,r=null,e(...c)},rl(t))}return a&&(l.value=!0,ut&&u()),Nr(i),{isPending:oi(l),start:u,stop:i}}function $n(e){var t;const n=rl(e);return(t=n==null?void 0:n.$el)!=null?t:n}const cl=ut?window:void 0,K_=ut?window.document:void 0;function wt(...e){let t,n,a,l;if(V_(e[0])||Array.isArray(e[0])?([n,a,l]=e,t=cl):[t,n,a,l]=e,!t)return co;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const r=[],s=()=>{r.forEach(d=>d()),r.length=0},i=(d,f,h,v)=>(d.addEventListener(f,h,v),()=>d.removeEventListener(f,h,v)),u=ue(()=>[$n(t),rl(l)],([d,f])=>{s(),d&&r.push(...n.flatMap(h=>a.map(v=>i(d,h,v,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return Nr(c),c}let i0=!1;function nd(e,t,n={}){const{window:a=cl,ignore:l=[],capture:r=!0,detectIframe:s=!1}=n;if(!a)return;Pu&&!i0&&(i0=!0,Array.from(a.document.body.children).forEach(h=>h.addEventListener("click",co)));let i=!0;const u=h=>l.some(v=>{if(typeof v=="string")return Array.from(a.document.querySelectorAll(v)).some(m=>m===h.target||h.composedPath().includes(m));{const m=$n(v);return m&&(h.target===m||h.composedPath().includes(m))}}),d=[wt(a,"click",h=>{const v=$n(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(i=!u(h)),!i){i=!0;return}t(h)}},{passive:!0,capture:r}),wt(a,"pointerdown",h=>{const v=$n(e);v&&(i=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),s&&wt(a,"blur",h=>{var v;const m=$n(e);((v=a.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(m!=null&&m.contains(a.document.activeElement))&&t(h)})].filter(Boolean);return()=>d.forEach(h=>h())}function W_(e={}){var t;const{window:n=cl}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,l=H_(()=>null,()=>a==null?void 0:a.activeElement);return n&&(wt(n,"blur",r=>{r.relatedTarget===null&&l.trigger()},!0),wt(n,"focus",l.trigger,!0)),l}function _1(e,t=!1){const n=A(),a=()=>n.value=!!e();return a(),td(a,t),n}function j_(e){return JSON.parse(JSON.stringify(e))}const u0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c0="__vueuse_ssr_handlers__";u0[c0]=u0[c0]||{};function q_(e,t,{window:n=cl,initialValue:a=""}={}){const l=A(a),r=C(()=>{var s;return $n(t)||((s=n==null?void 0:n.document)==null?void 0:s.documentElement)});return ue([r,()=>rl(e)],([s,i])=>{var u;if(s&&n){const c=(u=n.getComputedStyle(s).getPropertyValue(i))==null?void 0:u.trim();l.value=c||a}},{immediate:!0}),ue(l,s=>{var i;(i=r.value)!=null&&i.style&&r.value.style.setProperty(rl(e),s)}),l}function U_({document:e=K_}={}){if(!e)return A("visible");const t=A(e.visibilityState);return wt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var d0=Object.getOwnPropertySymbols,Y_=Object.prototype.hasOwnProperty,G_=Object.prototype.propertyIsEnumerable,X_=(e,t)=>{var n={};for(var a in e)Y_.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&d0)for(var a of d0(e))t.indexOf(a)<0&&G_.call(e,a)&&(n[a]=e[a]);return n};function At(e,t,n={}){const a=n,{window:l=cl}=a,r=X_(a,["window"]);let s;const i=_1(()=>l&&"ResizeObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},c=ue(()=>$n(e),f=>{u(),i.value&&l&&f&&(s=new ResizeObserver(t),s.observe(f,r))},{immediate:!0,flush:"post"}),d=()=>{u(),c()};return Nr(d),{isSupported:i,stop:d}}function f0(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:l=!0,immediate:r=!0}=t,s=A(0),i=A(0),u=A(0),c=A(0),d=A(0),f=A(0),h=A(0),v=A(0);function m(){const p=$n(e);if(!p){n&&(s.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,v.value=0);return}const y=p.getBoundingClientRect();s.value=y.height,i.value=y.bottom,u.value=y.left,c.value=y.right,d.value=y.top,f.value=y.width,h.value=y.x,v.value=y.y}return At(e,m),ue(()=>$n(e),p=>!p&&m()),l&&wt("scroll",m,{capture:!0,passive:!0}),a&&wt("resize",m,{passive:!0}),td(()=>{r&&m()}),{height:s,bottom:i,left:u,right:c,top:d,width:f,x:h,y:v,update:m}}var p0=Object.getOwnPropertySymbols,Z_=Object.prototype.hasOwnProperty,J_=Object.prototype.propertyIsEnumerable,Q_=(e,t)=>{var n={};for(var a in e)Z_.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&p0)for(var a of p0(e))t.indexOf(a)<0&&J_.call(e,a)&&(n[a]=e[a]);return n};function b1(e,t,n={}){const a=n,{window:l=cl}=a,r=Q_(a,["window"]);let s;const i=_1(()=>l&&"MutationObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},c=ue(()=>$n(e),f=>{u(),i.value&&l&&f&&(s=new MutationObserver(t),s.observe(f,r))},{immediate:!0}),d=()=>{u(),c()};return Nr(d),{isSupported:i,stop:d}}var v0;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(v0||(v0={}));var eb=Object.defineProperty,h0=Object.getOwnPropertySymbols,tb=Object.prototype.hasOwnProperty,nb=Object.prototype.propertyIsEnumerable,m0=(e,t,n)=>t in e?eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ab=(e,t)=>{for(var n in t||(t={}))tb.call(t,n)&&m0(e,n,t[n]);if(h0)for(var n of h0(t))nb.call(t,n)&&m0(e,n,t[n]);return e};const lb={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ab({linear:B_},lb);function w1(e,t,n,a={}){var l,r,s;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f}=a,h=et(),v=n||(h==null?void 0:h.emit)||((l=h==null?void 0:h.$emit)==null?void 0:l.bind(h))||((s=(r=h==null?void 0:h.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(h==null?void 0:h.proxy));let m=c;t||(t="modelValue"),m=c||m||`update:${t.toString()}`;const p=g=>i?Iu(i)?i(g):j_(g):g,y=()=>A_(e[t])?p(e[t]):f;if(u){const g=y(),x=A(g);return ue(()=>e[t],w=>x.value=p(w)),ue(x,w=>{(w!==e[t]||d)&&v(m,w)},{deep:d}),x}else return C({get(){return y()},set(g){v(m,g)}})}function ob({window:e=cl}={}){if(!e)return A(!1);const t=A(e.document.hasFocus());return wt(e,"blur",()=>{t.value=!1}),wt(e,"focus",()=>{t.value=!0}),t}function rb(e={}){const{window:t=cl,initialWidth:n=1/0,initialHeight:a=1/0,listenOrientation:l=!0,includeScrollbar:r=!0}=e,s=A(n),i=A(a),u=()=>{t&&(r?(s.value=t.innerWidth,i.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return u(),td(u),wt("resize",u,{passive:!0}),l&&wt("orientationchange",u,{passive:!0}),{width:s,height:i}}class sb extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Gt(e,t){throw new sb(`[${e}] ${t}`)}const g0={current:0},y0=A(0),C1=2e3,_0=Symbol("elZIndexContextKey"),S1=Symbol("zIndexContextKey"),Io=e=>{const t=et()?Se(_0,g0):g0,n=e||(et()?Se(S1,void 0):void 0),a=C(()=>{const s=o(n);return Ie(s)?s:C1}),l=C(()=>a.value+y0.value),r=()=>(t.current++,y0.value=t.current,l.value);return!ut&&Se(_0),{initialZIndex:a,currentZIndex:l,nextZIndex:r}};var ib={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const ub=e=>(t,n)=>cb(t,n,o(e)),cb=(e,t,n)=>Kt(n,e,e).replace(/\{(\w+)\}/g,(a,l)=>{var r;return`${(r=t==null?void 0:t[l])!=null?r:`{${l}}`}`}),db=e=>{const t=C(()=>o(e).name),n=Sn(e)?e:A(e);return{lang:t,locale:n,t:ub(e)}},k1=Symbol("localeContextKey"),ct=e=>{const t=e||Se(k1,A());return db(C(()=>t.value||ib))},E1="__epPropKey",X=e=>e,fb=e=>ht(e)&&!!e[E1],va=(e,t)=>{if(!ht(e)||fb(e))return e;const{values:n,required:a,default:l,type:r,validator:s}=e,u={type:r,required:!!a,validator:n||s?c=>{let d=!1,f=[];if(n&&(f=Array.from(n),vn(e,"default")&&f.push(l),d||(d=f.includes(c))),s&&(d||(d=s(c))),!d&&f.length>0){const h=[...new Set(f)].map(v=>JSON.stringify(v)).join(", ");W4(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[E1]:!0};return vn(e,"default")&&(u.default=l),u},pe=e=>cr(Object.entries(e).map(([t,n])=>[t,va(n,t)])),xa=["","default","small","large"],qt=va({type:String,values:xa,required:!1}),x1=Symbol("size"),M1=()=>{const e=Se(x1,{});return C(()=>o(e.size)||"")},$1=Symbol("emptyValuesContextKey"),pb=["",void 0,null],vb=void 0,Po=pe({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Je(e)?!e():!e}}),gi=(e,t)=>{const n=et()?Se($1,A({})):A({}),a=C(()=>e.emptyValues||n.value.emptyValues||pb),l=C(()=>Je(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Je(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:vb),r=s=>a.value.includes(s);return a.value.includes(l.value),{emptyValues:a,valueOnClear:l,isEmptyValue:r}},fo=e=>Object.keys(e),T1=e=>Object.entries(e),is=(e,t,n)=>({get value(){return Kt(e,t,n)},set value(a){w_(e,t,a)}}),Bs=A();function yi(e,t=void 0){const n=et()?Se($p,Bs):Bs;return e?C(()=>{var a,l;return(l=(a=n.value)==null?void 0:a[e])!=null?l:t}):n}function _i(e,t){const n=yi(),a=de(e,C(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||Zo})),l=ct(C(()=>{var i;return(i=n.value)==null?void 0:i.locale})),r=Io(C(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||C1})),s=C(()=>{var i;return o(t)||((i=n.value)==null?void 0:i.size)||""});return ad(C(()=>o(n)||{})),{ns:a,locale:l,zIndex:r,size:s}}const ad=(e,t,n=!1)=>{var a;const l=!!et(),r=l?yi():void 0,s=(a=t==null?void 0:t.provide)!=null?a:l?it:void 0;if(!s)return;const i=C(()=>{const u=o(e);return r!=null&&r.value?hb(r.value,u):u});return s($p,i),s(k1,C(()=>i.value.locale)),s(Tp,C(()=>i.value.namespace)),s(S1,C(()=>i.value.zIndex)),s(x1,{size:C(()=>i.value.size||"")}),s($1,C(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!Bs.value)&&(Bs.value=i.value),i},hb=(e,t)=>{const n=[...new Set([...fo(e),...fo(t)])],a={};for(const l of n)a[l]=t[l]!==void 0?t[l]:e[l];return a},mb=(e=[])=>({version:ng,install:(n,a)=>{n[Mf]||(n[Mf]=!0,e.forEach(l=>n.use(l)),a&&ad(a,n,!0))}}),Ue="update:modelValue",Ct="change",fn="input",gb=pe({zIndex:{type:X([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),yb={scroll:({scrollTop:e,fixed:t})=>Ie(e)&&Et(t),[Ct]:e=>Et(e)};var ve=(e,t)=>{const n=e.__vccOpts||e;for(const[a,l]of t)n[a]=l;return n};function _b(e,t,n,a){const l=n-t;return e/=a/2,e<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}const sl=e=>ut?window.requestAnimationFrame(e):setTimeout(e,16),Il=e=>ut?window.cancelAnimationFrame(e):clearTimeout(e),O1=(e="")=>e.split(" ").filter(t=>!!t.trim()),An=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},jn=(e,t)=>{!e||!t.trim()||e.classList.add(...O1(t))},kn=(e,t)=>{!e||!t.trim()||e.classList.remove(...O1(t))},Aa=(e,t)=>{var n;if(!ut||!e||!t)return"";let a=Lc(t);a==="float"&&(a="cssFloat");try{const l=e.style[a];if(l)return l;const r=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return r?r[a]:""}catch{return e.style[a]}},N1=(e,t,n)=>{if(!(!e||!t))if(ht(t))T1(t).forEach(([a,l])=>N1(e,a,l));else{const a=Lc(t);e.style[a]=n}};function Rt(e,t="px"){if(!e)return"";if(Ie(e)||M_(e))return`${e}${t}`;if(Ve(e))return e}const bb=(e,t)=>{if(!ut)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=Aa(e,n);return["scroll","auto","overlay"].some(l=>a.includes(l))},ld=(e,t)=>{if(!ut)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(bb(n,t))return n;n=n.parentNode}return n};let qr;const I1=e=>{var t;if(!ut)return 0;if(qr!==void 0)return qr;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const a=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const r=l.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),qr=a-r,qr};function od(e,t){if(!ut)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const l=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),r=l+t.offsetHeight,s=e.scrollTop,i=s+e.clientHeight;li&&(e.scrollTop=r-e.clientHeight)}function wb(e,t,n,a,l){const r=Date.now();let s;const i=()=>{const c=Date.now()-r,d=_b(c>a?a:c,t,n,a);mi(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c{s&&Il(s)}}const b0=(e,t)=>mi(t)?e.ownerDocument.documentElement:t,w0=e=>mi(e)?window.scrollY:e.scrollTop,P1="ElAffix",Cb=T({name:P1}),Sb=T({...Cb,props:gb,emits:yb,setup(e,{expose:t,emit:n}){const a=e,l=de("affix"),r=Ot(),s=Ot(),i=Ot(),{height:u}=rb(),{height:c,width:d,top:f,bottom:h,update:v}=f0(s,{windowScroll:!1}),m=f0(r),p=A(!1),y=A(0),g=A(0),x=C(()=>({height:p.value?`${c.value}px`:"",width:p.value?`${d.value}px`:""})),w=C(()=>{if(!p.value)return{};const E=a.offset?Rt(a.offset):0;return{height:`${c.value}px`,width:`${d.value}px`,top:a.position==="top"?E:"",bottom:a.position==="bottom"?E:"",transform:g.value?`translateY(${g.value}px)`:"",zIndex:a.zIndex}}),b=()=>{if(!i.value)return;y.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0;const{position:E,target:O,offset:I}=a,N=I+c.value;if(E==="top")if(O){const P=m.bottom.value-N;p.value=I>f.value&&m.bottom.value>0,g.value=P<0?P:0}else p.value=I>f.value;else if(O){const P=u.value-m.top.value-N;p.value=u.value-Im.top.value,g.value=P<0?-P:0}else p.value=u.value-I{v(),n("scroll",{scrollTop:y.value,fixed:p.value})};return ue(p,E=>n("change",E)),Xe(()=>{var E;a.target?(r.value=(E=document.querySelector(a.target))!=null?E:void 0,r.value||Gt(P1,`Target does not exist: ${a.target}`)):r.value=document.documentElement,i.value=ld(s.value,!0),v()}),wt(i,"scroll",S),cn(b),t({update:b,updateRoot:v}),(E,O)=>(_(),M("div",{ref_key:"root",ref:s,class:$(o(l).b()),style:Oe(o(x))},[k("div",{class:$({[o(l).m("fixed")]:p.value}),style:Oe(o(w))},[Q(E.$slots,"default")],6)],6))}});var kb=ve(Sb,[["__file","affix.vue"]]);const We=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return e},z1=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Eb=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Lt=e=>(e.install=zt,e),xb=We(kb),Mb=pe({size:{type:X([Number,String])},color:{type:String}}),$b=T({name:"ElIcon",inheritAttrs:!1}),Tb=T({...$b,props:Mb,setup(e){const t=e,n=de("icon"),a=C(()=>{const{size:l,color:r}=t;return!l&&!r?{}:{fontSize:vt(l)?void 0:Rt(l),"--color":r}});return(l,r)=>(_(),M("i",tt({class:o(n).b(),style:o(a)},l.$attrs),[Q(l.$slots,"default")],16))}});var Ob=ve(Tb,[["__file","icon.vue"]]);const Me=We(Ob);/*! Element Plus Icons Vue v2.3.1 */var Nb=T({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),Ib=Nb,Pb=T({name:"Aim",__name:"aim",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),zb=Pb,Ab=T({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),k("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),Vb=Ab,Lb=T({name:"Apple",__name:"apple",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"})]))}}),Rb=Lb,Bb=T({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"})]))}}),Hb=Bb,Db=T({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Ma=Db,Fb=T({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),Kb=Fb,Wb=T({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),La=Wb,jb=T({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),qb=jb,Ub=T({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),En=Ub,Yb=T({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"})]))}}),Gb=Yb,Xb=T({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),bi=Xb,Zb=T({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),Jb=Zb,Qb=T({name:"Back",__name:"back",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),A1=Qb,ew=T({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),k("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"})]))}}),tw=ew,nw=T({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336m-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8m106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),aw=nw,lw=T({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),ow=lw,rw=T({name:"Bell",__name:"bell",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),k("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),k("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),sw=rw,iw=T({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),k("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),k("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),k("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),uw=iw,cw=T({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),k("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"})]))}}),dw=cw,fw=T({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),k("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),pw=fw,vw=T({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),hw=vw,mw=T({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),gw=mw,yw=T({name:"Box",__name:"box",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"}),k("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),k("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),_w=yw,bw=T({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),ww=bw,Cw=T({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),Sw=Cw,kw=T({name:"Brush",__name:"brush",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"})]))}}),Ew=kw,xw=T({name:"Burger",__name:"burger",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),Mw=xw,$w=T({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),V1=$w,Tw=T({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),Ow=Tw,Nw=T({name:"Camera",__name:"camera",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),Iw=Nw,Pw=T({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),zw=Pw,Aw=T({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),Vw=Aw,Lw=T({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),rd=Lw,Rw=T({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),L1=Rw,Bw=T({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),Hw=Bw,Dw=T({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),k("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),Fw=Dw,Kw=T({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),k("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"})]))}}),Ww=Kw,jw=T({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),k("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),qw=jw,Uw=T({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),k("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),Yw=Uw,Gw=T({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),Xw=Gw,Zw=T({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),Jw=Zw,Qw=T({name:"Check",__name:"check",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),zo=Qw,e5=T({name:"Checked",__name:"checked",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),t5=e5,n5=T({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),a5=n5,l5=T({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"})]))}}),o5=l5,r5=T({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"}),k("path",{fill:"currentColor",d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91"}),k("path",{fill:"currentColor",d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"})]))}}),s5=r5,i5=T({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),R1=i5,u5=T({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),wi=u5,c5=T({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Ci=c5,d5=T({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),$a=d5,f5=T({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"})]))}}),p5=f5,v5=T({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),h5=v5,m5=T({name:"Clock",__name:"clock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),sd=m5,g5=T({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"})]))}}),y5=g5,_5=T({name:"Close",__name:"close",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Xn=_5,b5=T({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),w5=b5,C5=T({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),S5=C5,k5=T({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64h493.184m-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784m68.736 64 36.544 512H708.16l36.544-512z"})]))}}),E5=k5,x5=T({name:"Coin",__name:"coin",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"}),k("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"}),k("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),M5=x5,$5=T({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),T5=$5,O5=T({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),N5=O5,I5=T({name:"Collection",__name:"collection",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),k("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),P5=I5,z5=T({name:"Comment",__name:"comment",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),A5=z5,V5=T({name:"Compass",__name:"compass",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),L5=V5,R5=T({name:"Connection",__name:"connection",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),k("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),B5=R5,H5=T({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),k("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),D5=H5,F5=T({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),k("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),K5=F5,W5=T({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),j5=W5,q5=T({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"}),k("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),U5=q5,Y5=T({name:"Crop",__name:"crop",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),k("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),G5=Y5,X5=T({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),Ra=X5,Z5=T({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),Ba=Z5,J5=T({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),Q5=J5,e9=T({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),t9=e9,n9=T({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),k("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),k("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),a9=n9,l9=T({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),o9=l9,r9=T({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),s9=r9,i9=T({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),u9=i9,c9=T({name:"Delete",__name:"delete",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),B1=c9,d9=T({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48m339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),f9=d9,p9=T({name:"Discount",__name:"discount",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),v9=p9,h9=T({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),m9=h9,g9=T({name:"Dish",__name:"dish",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),y9=g9,_9=T({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),b9=_9,w9=T({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),C9=w9,S9=T({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),k9=S9,E9=T({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"})]))}}),x9=E9,M9=T({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),$9=M9,T9=T({name:"Document",__name:"document",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),H1=T9,O9=T({name:"Download",__name:"download",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),N9=O9,I9=T({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),P9=I9,z9=T({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"})]))}}),A9=z9,V9=T({name:"Edit",__name:"edit",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),k("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),L9=V9,R9=T({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),B9=R9,H9=T({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"})]))}}),D9=H9,F9=T({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"})]))}}),K9=F9,W9=T({name:"Expand",__name:"expand",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),j9=W9,q9=T({name:"Failed",__name:"failed",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),U9=q9,Y9=T({name:"Female",__name:"female",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),k("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),G9=Y9,X9=T({name:"Files",__name:"files",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),Z9=X9,J9=T({name:"Film",__name:"film",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),Q9=J9,eC=T({name:"Filter",__name:"filter",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),tC=eC,nC=T({name:"Finished",__name:"finished",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),aC=nC,lC=T({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),oC=lC,rC=T({name:"Flag",__name:"flag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),sC=rC,iC=T({name:"Fold",__name:"fold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),uC=iC,cC=T({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),dC=cC,fC=T({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),pC=fC,vC=T({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),hC=vC,mC=T({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),gC=mC,yC=T({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),_C=yC,bC=T({name:"Folder",__name:"folder",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),wC=bC,CC=T({name:"Food",__name:"food",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),SC=CC,kC=T({name:"Football",__name:"football",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),k("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0m-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),EC=kC,xC=T({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),MC=xC,$C=T({name:"Fries",__name:"fries",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),TC=$C,OC=T({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),D1=OC,NC=T({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),IC=NC,PC=T({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),zC=PC,AC=T({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),VC=AC,LC=T({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),RC=LC,BC=T({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"}),k("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),HC=BC,DC=T({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),FC=DC,KC=T({name:"Goods",__name:"goods",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),WC=KC,jC=T({name:"Grape",__name:"grape",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),qC=jC,UC=T({name:"Grid",__name:"grid",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),YC=UC,GC=T({name:"Guide",__name:"guide",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),k("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),XC=GC,ZC=T({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),JC=ZC,QC=T({name:"Headset",__name:"headset",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),e7=QC,t7=T({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"})]))}}),n7=t7,a7=T({name:"Help",__name:"help",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),l7=a7,o7=T({name:"Hide",__name:"hide",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),k("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),F1=o7,r7=T({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),s7=r7,i7=T({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),u7=i7,c7=T({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"})]))}}),d7=c7,f7=T({name:"House",__name:"house",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),p7=f7,v7=T({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"})]))}}),h7=v7,m7=T({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),g7=m7,y7=T({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),_7=y7,b7=T({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64m-64 8.064A256.448 256.448 0 0 0 264.256 384H448zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),w7=b7,C7=T({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),S7=C7,k7=T({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Si=k7,E7=T({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),x7=E7,M7=T({name:"Key",__name:"key",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),$7=M7,T7=T({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288z"})]))}}),O7=T7,N7=T({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),k("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),I7=N7,P7=T({name:"Link",__name:"link",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),z7=P7,A7=T({name:"List",__name:"list",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),V7=A7,L7=T({name:"Loading",__name:"loading",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),ca=L7,R7=T({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),B7=R7,H7=T({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),D7=H7,F7=T({name:"Location",__name:"location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),K7=F7,W7=T({name:"Lock",__name:"lock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),j7=W7,q7=T({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),U7=q7,Y7=T({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),G7=Y7,X7=T({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),Z7=X7,J7=T({name:"Male",__name:"male",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),k("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),k("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),Q7=J7,eS=T({name:"Management",__name:"management",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),tS=eS,nS=T({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),aS=nS,lS=T({name:"Medal",__name:"medal",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),oS=lS,rS=T({name:"Memo",__name:"memo",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),k("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),k("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),sS=rS,iS=T({name:"Menu",__name:"menu",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),uS=iS,cS=T({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"})]))}}),dS=cS,fS=T({name:"Message",__name:"message",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),k("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056"})]))}}),pS=fS,vS=T({name:"Mic",__name:"mic",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),hS=vS,mS=T({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),gS=mS,yS=T({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),_S=yS,bS=T({name:"Minus",__name:"minus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),K1=bS,wS=T({name:"Money",__name:"money",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),k("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),k("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),CS=wS,SS=T({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),kS=SS,ES=T({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),k("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),xS=ES,MS=T({name:"Moon",__name:"moon",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),$S=MS,TS=T({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),zu=TS,OS=T({name:"More",__name:"more",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),W1=OS,NS=T({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),IS=NS,PS=T({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),k("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),zS=PS,AS=T({name:"Mug",__name:"mug",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),VS=AS,LS=T({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),k("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),RS=LS,BS=T({name:"Mute",__name:"mute",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),k("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),HS=BS,DS=T({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),FS=DS,KS=T({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),WS=KS,jS=T({name:"Notification",__name:"notification",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),k("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),qS=jS,US=T({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),k("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),YS=US,GS=T({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),k("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),XS=GS,ZS=T({name:"Open",__name:"open",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),k("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),JS=ZS,QS=T({name:"Operation",__name:"operation",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),ek=QS,tk=T({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),nk=tk,ak=T({name:"Orange",__name:"orange",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),lk=ak,ok=T({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"})]))}}),rk=ok,sk=T({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),k("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"})]))}}),ik=sk,uk=T({name:"Pear",__name:"pear",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),ck=uk,dk=T({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"})]))}}),fk=dk,pk=T({name:"Phone",__name:"phone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),vk=pk,hk=T({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),j1=hk,mk=T({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),k("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),gk=mk,yk=T({name:"Picture",__name:"picture",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),_k=yk,bk=T({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"}),k("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),wk=bk,Ck=T({name:"Place",__name:"place",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),k("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),Sk=Ck,kk=T({name:"Platform",__name:"platform",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),Ek=kk,xk=T({name:"Plus",__name:"plus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),id=xk,Mk=T({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32z"})]))}}),$k=Mk,Tk=T({name:"Position",__name:"position",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"})]))}}),Ok=Tk,Nk=T({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),Ik=Nk,Pk=T({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),zk=Pk,Ak=T({name:"Present",__name:"present",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),k("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Vk=Ak,Lk=T({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Rk=Lk,Bk=T({name:"Printer",__name:"printer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),Hk=Bk,Dk=T({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),Fk=Dk,Kk=T({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),k("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),k("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),Wk=Kk,jk=T({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),q1=jk,qk=T({name:"Rank",__name:"rank",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"})]))}}),Uk=qk,Yk=T({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),k("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),Gk=Yk,Xk=T({name:"Reading",__name:"reading",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"}),k("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),Zk=Xk,Jk=T({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),U1=Jk,Qk=T({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),Y1=Qk,eE=T({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),tE=eE,nE=T({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),aE=nE,lE=T({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),oE=lE,rE=T({name:"Remove",__name:"remove",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),sE=rE,iE=T({name:"Right",__name:"right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),uE=iE,cE=T({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),G1=cE,dE=T({name:"School",__name:"school",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),k("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),fE=dE,pE=T({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),vE=pE,hE=T({name:"Search",__name:"search",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),X1=hE,mE=T({name:"Select",__name:"select",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"})]))}}),gE=mE,yE=T({name:"Sell",__name:"sell",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"})]))}}),_E=yE,bE=T({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),wE=bE,CE=T({name:"Service",__name:"service",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),SE=CE,kE=T({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),k("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),EE=kE,xE=T({name:"Setting",__name:"setting",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),ME=xE,$E=T({name:"Share",__name:"share",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),TE=$E,OE=T({name:"Ship",__name:"ship",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408"})]))}}),NE=OE,IE=T({name:"Shop",__name:"shop",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),PE=IE,zE=T({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),k("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),AE=zE,VE=T({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"}),k("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04"})]))}}),LE=VE,RE=T({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"})]))}}),BE=RE,HE=T({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),DE=HE,FE=T({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),KE=FE,WE=T({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"})]))}}),jE=WE,qE=T({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),UE=qE,YE=T({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Z1=YE,GE=T({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),J1=GE,XE=T({name:"Sort",__name:"sort",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"})]))}}),ZE=XE,JE=T({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),QE=JE,ex=T({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),Uo=ex,tx=T({name:"Star",__name:"star",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Q1=tx,nx=T({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),ax=nx,lx=T({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),ud=lx,ox=T({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),rx=ox,sx=T({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),ix=sx,ux=T({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),cx=ux,dx=T({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),fx=dx,px=T({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),vx=px,hx=T({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),mx=hx,gx=T({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),k("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),yx=gx,_x=T({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"}),k("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"})]))}}),bx=_x,wx=T({name:"Switch",__name:"switch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),Cx=wx,Sx=T({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),kx=Sx,Ex=T({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),xx=Ex,Mx=T({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),$x=Mx,Tx=T({name:"Timer",__name:"timer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),k("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),Ox=Tx,Nx=T({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),k("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),Ix=Nx,Px=T({name:"Tools",__name:"tools",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),zx=Px,Ax=T({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),k("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"})]))}}),Vx=Ax,Lx=T({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),k("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"})]))}}),Rx=Lx,Bx=T({name:"Top",__name:"top",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),Hx=Bx,Dx=T({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),Fx=Dx,Kx=T({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6"})]))}}),Wx=Kx,jx=T({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),qx=jx,Ux=T({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),k("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),Yx=Ux,Gx=T({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),Xx=Gx,Zx=T({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),Jx=Zx,Qx=T({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),eM=Qx,tM=T({name:"Upload",__name:"upload",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),nM=tM,aM=T({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),lM=aM,oM=T({name:"User",__name:"user",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),rM=oM,sM=T({name:"Van",__name:"van",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96h151.872M688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),iM=sM,uM=T({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),cM=uM,dM=T({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),fM=dM,pM=T({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),vM=pM,hM=T({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),mM=hM,gM=T({name:"View",__name:"view",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),ev=gM,yM=T({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),_M=yM,bM=T({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),k("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),wM=bM,CM=T({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),SM=CM,kM=T({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Ir=kM,EM=T({name:"Warning",__name:"warning",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),xM=EM,MM=T({name:"Watch",__name:"watch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),$M=MM,TM=T({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632l632 632"})]))}}),OM=TM,NM=T({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),IM=NM,PM=T({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),cd=PM,zM=T({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),tv=zM;const DX=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:Ib,Aim:zb,AlarmClock:Vb,Apple:Rb,ArrowDown:Ma,ArrowDownBold:Hb,ArrowLeft:La,ArrowLeftBold:Kb,ArrowRight:En,ArrowRightBold:qb,ArrowUp:bi,ArrowUpBold:Gb,Avatar:Jb,Back:A1,Baseball:tw,Basketball:aw,Bell:sw,BellFilled:ow,Bicycle:uw,Bottom:hw,BottomLeft:dw,BottomRight:pw,Bowl:gw,Box:_w,Briefcase:ww,Brush:Ew,BrushFilled:Sw,Burger:Mw,Calendar:V1,Camera:Iw,CameraFilled:Ow,CaretBottom:zw,CaretLeft:Vw,CaretRight:rd,CaretTop:L1,Cellphone:Hw,ChatDotRound:Fw,ChatDotSquare:Ww,ChatLineRound:qw,ChatLineSquare:Yw,ChatRound:Xw,ChatSquare:Jw,Check:zo,Checked:t5,Cherry:a5,Chicken:o5,ChromeFilled:s5,CircleCheck:wi,CircleCheckFilled:R1,CircleClose:$a,CircleCloseFilled:Ci,CirclePlus:h5,CirclePlusFilled:p5,Clock:sd,Close:Xn,CloseBold:y5,Cloudy:w5,Coffee:E5,CoffeeCup:S5,Coin:M5,ColdDrink:T5,Collection:P5,CollectionTag:N5,Comment:A5,Compass:L5,Connection:B5,Coordinate:D5,CopyDocument:K5,Cpu:j5,CreditCard:U5,Crop:G5,DArrowLeft:Ra,DArrowRight:Ba,DCaret:Q5,DataAnalysis:t9,DataBoard:a9,DataLine:o9,Delete:B1,DeleteFilled:s9,DeleteLocation:u9,Dessert:f9,Discount:v9,Dish:y9,DishDot:m9,Document:H1,DocumentAdd:b9,DocumentChecked:C9,DocumentCopy:k9,DocumentDelete:x9,DocumentRemove:$9,Download:N9,Drizzling:P9,Edit:L9,EditPen:A9,Eleme:D9,ElemeFilled:B9,ElementPlus:K9,Expand:j9,Failed:U9,Female:G9,Files:Z9,Film:Q9,Filter:tC,Finished:aC,FirstAidKit:oC,Flag:sC,Fold:uC,Folder:wC,FolderAdd:dC,FolderChecked:pC,FolderDelete:hC,FolderOpened:gC,FolderRemove:_C,Food:SC,Football:EC,ForkSpoon:MC,Fries:TC,FullScreen:D1,Goblet:RC,GobletFull:IC,GobletSquare:VC,GobletSquareFull:zC,GoldMedal:HC,Goods:WC,GoodsFilled:FC,Grape:qC,Grid:YC,Guide:XC,Handbag:JC,Headset:e7,Help:l7,HelpFilled:n7,Hide:F1,Histogram:s7,HomeFilled:u7,HotWater:d7,House:p7,IceCream:_7,IceCreamRound:h7,IceCreamSquare:g7,IceDrink:w7,IceTea:S7,InfoFilled:Si,Iphone:x7,Key:$7,KnifeFork:O7,Lightning:I7,Link:z7,List:V7,Loading:ca,Location:K7,LocationFilled:B7,LocationInformation:D7,Lock:j7,Lollipop:U7,MagicStick:G7,Magnet:Z7,Male:Q7,Management:tS,MapLocation:aS,Medal:oS,Memo:sS,Menu:uS,Message:pS,MessageBox:dS,Mic:hS,Microphone:gS,MilkTea:_S,Minus:K1,Money:CS,Monitor:kS,Moon:$S,MoonNight:xS,More:W1,MoreFilled:zu,MostlyCloudy:IS,Mouse:zS,Mug:VS,Mute:HS,MuteNotification:RS,NoSmoking:FS,Notebook:WS,Notification:qS,Odometer:YS,OfficeBuilding:XS,Open:JS,Operation:ek,Opportunity:nk,Orange:lk,Paperclip:rk,PartlyCloudy:ik,Pear:ck,Phone:vk,PhoneFilled:fk,Picture:_k,PictureFilled:j1,PictureRounded:gk,PieChart:wk,Place:Sk,Platform:Ek,Plus:id,Pointer:$k,Position:Ok,Postcard:Ik,Pouring:zk,Present:Vk,PriceTag:Rk,Printer:Hk,Promotion:Fk,QuartzWatch:Wk,QuestionFilled:q1,Rank:Uk,Reading:Zk,ReadingLamp:Gk,Refresh:tE,RefreshLeft:U1,RefreshRight:Y1,Refrigerator:aE,Remove:sE,RemoveFilled:oE,Right:uE,ScaleToOriginal:G1,School:fE,Scissor:vE,Search:X1,Select:gE,Sell:_E,SemiSelect:wE,Service:SE,SetUp:EE,Setting:ME,Share:TE,Ship:NE,Shop:PE,ShoppingBag:AE,ShoppingCart:BE,ShoppingCartFull:LE,ShoppingTrolley:DE,Smoking:KE,Soccer:jE,SoldOut:UE,Sort:ZE,SortDown:Z1,SortUp:J1,Stamp:QE,Star:Q1,StarFilled:Uo,Stopwatch:ax,SuccessFilled:ud,Sugar:rx,Suitcase:cx,SuitcaseLine:ix,Sunny:fx,Sunrise:vx,Sunset:mx,Switch:Cx,SwitchButton:yx,SwitchFilled:bx,TakeawayBox:kx,Ticket:xx,Tickets:$x,Timer:Ox,ToiletPaper:Ix,Tools:zx,Top:Hx,TopLeft:Vx,TopRight:Rx,TrendCharts:Fx,Trophy:qx,TrophyBase:Wx,TurnOff:Yx,Umbrella:Xx,Unlock:Jx,Upload:nM,UploadFilled:eM,User:rM,UserFilled:lM,Van:iM,VideoCamera:fM,VideoCameraFilled:cM,VideoPause:vM,VideoPlay:mM,View:ev,Wallet:wM,WalletFilled:_M,WarnTriangleFilled:SM,Warning:xM,WarningFilled:Ir,Watch:$M,Watermelon:OM,WindPower:IM,ZoomIn:cd,ZoomOut:tv},Symbol.toStringTag,{value:"Module"})),St=X([String,Object,Function]),dd={Close:Xn},fd={Close:Xn,SuccessFilled:ud,InfoFilled:Si,WarningFilled:Ir,CircleCloseFilled:Ci},il={success:ud,warning:Ir,error:Ci,info:Si},ki={validating:ca,success:wi,error:$a},AM=["light","dark"],VM=pe({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:fo(il),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:AM,default:"light"}}),LM={close:e=>e instanceof MouseEvent},RM=T({name:"ElAlert"}),BM=T({...RM,props:VM,emits:LM,setup(e,{emit:t}){const n=e,{Close:a}=fd,l=Xt(),r=de("alert"),s=A(!0),i=C(()=>il[n.type]),u=C(()=>!!(n.description||l.default)),c=d=>{s.value=!1,t("close",d)};return(d,f)=>(_(),ae(tn,{name:o(r).b("fade"),persisted:""},{default:G(()=>[qe(k("div",{class:$([o(r).b(),o(r).m(d.type),o(r).is("center",d.center),o(r).is(d.effect)]),role:"alert"},[d.showIcon&&o(i)?(_(),ae(o(Me),{key:0,class:$([o(r).e("icon"),{[o(r).is("big")]:o(u)}])},{default:G(()=>[(_(),ae(Qe(o(i))))]),_:1},8,["class"])):ee("v-if",!0),k("div",{class:$(o(r).e("content"))},[d.title||d.$slots.title?(_(),M("span",{key:0,class:$([o(r).e("title"),{"with-description":o(u)}])},[Q(d.$slots,"title",{},()=>[ot(he(d.title),1)])],2)):ee("v-if",!0),o(u)?(_(),M("p",{key:1,class:$(o(r).e("description"))},[Q(d.$slots,"default",{},()=>[ot(he(d.description),1)])],2)):ee("v-if",!0),d.closable?(_(),M(ze,{key:2},[d.closeText?(_(),M("div",{key:0,class:$([o(r).e("close-btn"),o(r).is("customed")]),onClick:c},he(d.closeText),3)):(_(),ae(o(Me),{key:1,class:$(o(r).e("close-btn")),onClick:c},{default:G(()=>[q(o(a))]),_:1},8,["class"]))],64)):ee("v-if",!0)],2)],2),[[pt,s.value]])]),_:3},8,["name"]))}});var HM=ve(BM,[["__file","alert.vue"]]);const DM=We(HM),Ei=()=>ut&&/firefox/i.test(window.navigator.userAgent);let ta;const FM=` +import{g as et,i as Se,r as A,c as C,u as o,a as Ee,b as ht,d as Ve,w as ue,e as F4,o as Sp,s as Ot,f as cn,h as oi,j as Xe,n as Ne,k as K4,l as Sn,m as vn,p as W4,q as Je,t as it,v as Lc,x as T,y as M,z as _,A as k,B as Q,C as Oe,D as $,N as zt,E as tt,F as Xt,G as ae,H as G,I as qe,J as ee,K as Qe,L as ot,M as he,O as ze,P as q,Q as pt,T as tn,R as yt,S as Mo,U as Ka,V as Ae,W as $t,X as _t,Y as kp,Z as Wa,_ as j4,$ as Ep,a0 as ri,a1 as q4,a2 as Rc,a3 as U4,a4 as kt,a5 as Yn,a6 as rt,a7 as io,a8 as oa,a9 as Tl,aa as Ft,ab as zs,ac as As,ad as nn,ae as xp,af as Pe,ag as Ze,ah as Y4,ai as G4,aj as Su,ak as si,al as X4,am as Mp,an as kl,ao as Z4,ap as ku,aq as ii,ar as J4,as as ol,at as Q4,au as eg,av as tg}from"./vue-DDR9gto8.js";import{g as ja}from"./three-FCmarWxK.js";const ng="2.9.3",Mf=Symbol("INSTALLED_KEY"),$p=Symbol(),Zo="el",ag="is-",hl=(e,t,n,a,l)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),a&&(r+=`__${a}`),l&&(r+=`--${l}`),r},Tp=Symbol("namespaceContextKey"),Bc=e=>{const t=e||(et()?Se(Tp,A(Zo)):A(Zo));return C(()=>o(t)||Zo)},de=(e,t)=>{const n=Bc(t);return{namespace:n,b:(p="")=>hl(n.value,e,p,"",""),e:p=>p?hl(n.value,e,"",p,""):"",m:p=>p?hl(n.value,e,"","",p):"",be:(p,y)=>p&&y?hl(n.value,e,p,y,""):"",em:(p,y)=>p&&y?hl(n.value,e,"",p,y):"",bm:(p,y)=>p&&y?hl(n.value,e,p,"",y):"",bem:(p,y,g)=>p&&y&&g?hl(n.value,e,p,y,g):"",is:(p,...y)=>{const g=y.length>=1?y[0]:!0;return p&&g?`${ag}${p}`:""},cssVar:p=>{const y={};for(const g in p)p[g]&&(y[`--${n.value}-${g}`]=p[g]);return y},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const y={};for(const g in p)p[g]&&(y[`--${n.value}-${e}-${g}`]=p[g]);return y},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}};var Op=typeof global=="object"&&global&&global.Object===Object&&global,lg=typeof self=="object"&&self&&self.Object===Object&&self,pa=Op||lg||Function("return this")(),Gn=pa.Symbol,Np=Object.prototype,og=Np.hasOwnProperty,rg=Np.toString,Fo=Gn?Gn.toStringTag:void 0;function sg(e){var t=og.call(e,Fo),n=e[Fo];try{e[Fo]=void 0;var a=!0}catch{}var l=rg.call(e);return a&&(t?e[Fo]=n:delete e[Fo]),l}var ig=Object.prototype,ug=ig.toString;function cg(e){return ug.call(e)}var dg="[object Null]",fg="[object Undefined]",$f=Gn?Gn.toStringTag:void 0;function Ll(e){return e==null?e===void 0?fg:dg:$f&&$f in Object(e)?sg(e):cg(e)}function Ca(e){return e!=null&&typeof e=="object"}var pg="[object Symbol]";function ui(e){return typeof e=="symbol"||Ca(e)&&Ll(e)==pg}function Hc(e,t){for(var n=-1,a=e==null?0:e.length,l=Array(a);++n0){if(++t>=Dg)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jg(e){return function(){return e}}var Vs=function(){try{var e=Bl(Object,"defineProperty");return e({},"",{}),e}catch{}}(),qg=Vs?function(e,t){return Vs(e,"toString",{configurable:!0,enumerable:!1,value:jg(t),writable:!0})}:Dc,zp=Wg(qg);function Ug(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var Jg=9007199254740991,Qg=/^(?:0|[1-9]\d*)$/;function ci(e,t){var n=typeof e;return t=t??Jg,!!t&&(n=="number"||n!="symbol"&&Qg.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=n6}function To(e){return e!=null&&jc(e.length)&&!Fc(e)}function a6(e,t,n){if(!Nn(n))return!1;var a=typeof t;return(a=="number"?To(n)&&ci(t,n.length):a=="string"&&t in n)?xr(n[t],e):!1}function l6(e){return Lp(function(t,n){var a=-1,l=n.length,r=l>1?n[l-1]:void 0,s=l>2?n[2]:void 0;for(r=e.length>3&&typeof r=="function"?(l--,r):void 0,s&&a6(n[0],n[1],s)&&(r=l<3?void 0:r,l=1),t=Object(t);++a-1}function v3(e,t){var n=this.__data__,a=di(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function qa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(i)?t>1?Tr(i,t-1,n,a,l):Xc(l,i):a||(l[l.length]=i)}return l}function Kp(e){var t=e==null?0:e.length;return t?Tr(e,1):[]}function Wp(e){return zp(Vp(e,void 0,Kp),e+"")}var Zc=Fp(Object.getPrototypeOf,Object),T3="[object Object]",O3=Function.prototype,N3=Object.prototype,jp=O3.toString,I3=N3.hasOwnProperty,P3=jp.call(Object);function qp(e){if(!Ca(e)||Ll(e)!=T3)return!1;var t=Zc(e);if(t===null)return!0;var n=I3.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&jp.call(n)==P3}function z3(e,t,n){var a=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(l);++ai))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&hy?new ur:void 0;for(r.set(e,t),r.set(t,e);++f=t||O<0||f&&I>=r}function g(){var E=Xi();if(y(E))return x(E);i=setTimeout(g,p(E))}function x(E){return i=void 0,h&&a?v(E):(a=l=void 0,s)}function w(){i!==void 0&&clearTimeout(i),c=0,a=u=l=i=void 0}function b(){return i===void 0?s:x(Xi())}function S(){var E=Xi(),O=y(E);if(a=arguments,l=this,u=E,O){if(i===void 0)return m(u);if(f)return clearTimeout(i),i=setTimeout(g,t),v(u)}return i===void 0&&(i=setTimeout(g,t)),s}return S.cancel=w,S.flush=b,S}function Tu(e,t,n){(n!==void 0&&!xr(e[t],n)||n===void 0&&!(t in e))&&Kc(e,t,n)}function d1(e){return Ca(e)&&To(e)}function Ou(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function l_(e){return $o(e,$r(e))}function o_(e,t,n,a,l,r,s){var i=Ou(e,n),u=Ou(t,n),c=s.get(u);if(c){Tu(e,n,c);return}var d=r?r(i,u,n+"",e,t,s):void 0,f=d===void 0;if(f){var h=On(u),v=!h&&rr(u),m=!h&&!v&&Yc(u);d=u,h||v||m?On(i)?d=i:d1(i)?d=Pp(i):v?(f=!1,d=Yp(u,!0)):m?(f=!1,d=Qp(u,!0)):d=[]:qp(u)||or(u)?(d=i,or(i)?d=l_(i):(!Nn(i)||Fc(i))&&(d=e1(u))):f=!1}f&&(s.set(u,d),l(d,u,a,r,s),s.delete(u)),Tu(e,n,d)}function f1(e,t,n,a,l){e!==t&&c1(t,function(r,s){if(l||(l=new ia),Nn(r))o_(e,t,s,n,f1,a,l);else{var i=a?a(Ou(e,s),r,s+"",e,t,l):void 0;i===void 0&&(i=r),Tu(e,s,i)}},$r)}function r_(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function p1(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var l=a-1;return Ap(e,u1(t),l,!0)}function s_(e,t){var n=-1,a=To(e)?Array(e.length):[];return e_(e,function(l,r,s){a[++n]=t(l,r,s)}),a}function i_(e,t){var n=On(e)?Hc:s_;return n(e,u1(t))}function u_(e,t){return Tr(i_(e,t),1)}var c_=1/0;function d_(e){var t=e==null?0:e.length;return t?Tr(e,c_):[]}function cr(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),r}),$o(e,Jp(e),n),a&&(n=ao(n,h_|m_|g_,v_));for(var l=t.length;l--;)p_(n,t[l]);return n});function m1(e,t,n,a){if(!Nn(e))return e;t=Oo(t,e);for(var l=-1,r=t.length,s=r-1,i=e;i!=null&&++l=E_){var c=k_(e);if(c)return ed(c);s=!1,l=l1,u=new ur}else u=i;e:for(;++ae===void 0,Et=e=>typeof e=="boolean",Ie=e=>typeof e=="number",Hn=e=>!e&&e!==0||Ee(e)&&e.length===0||ht(e)&&!Object.keys(e).length,Tn=e=>typeof Element>"u"?!1:e instanceof Element,ua=e=>Zt(e),M_=e=>Ve(e)?!Number.isNaN(Number(e)):!1,mi=e=>e===window;var $_=Object.defineProperty,T_=Object.defineProperties,O_=Object.getOwnPropertyDescriptors,o0=Object.getOwnPropertySymbols,N_=Object.prototype.hasOwnProperty,I_=Object.prototype.propertyIsEnumerable,r0=(e,t,n)=>t in e?$_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P_=(e,t)=>{for(var n in t||(t={}))N_.call(t,n)&&r0(e,n,t[n]);if(o0)for(var n of o0(t))I_.call(t,n)&&r0(e,n,t[n]);return e},z_=(e,t)=>T_(e,O_(t));function Nu(e,t){var n;const a=Ot();return cn(()=>{a.value=e()},z_(P_({},t),{flush:(n=void 0)!=null?n:"sync"})),oi(a)}var s0;const ut=typeof window<"u",A_=e=>typeof e<"u",Iu=e=>typeof e=="function",V_=e=>typeof e=="string",co=()=>{},Pu=ut&&((s0=window==null?void 0:window.navigator)==null?void 0:s0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rl(e){return typeof e=="function"?e():o(e)}function g1(e,t){function n(...a){return new Promise((l,r)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(l).catch(r)})}return n}function L_(e,t={}){let n,a,l=co;const r=i=>{clearTimeout(i),l(),l=co};return i=>{const u=rl(e),c=rl(t.maxWait);return n&&r(n),u<=0||c!==void 0&&c<=0?(a&&(r(a),a=null),Promise.resolve(i())):new Promise((d,f)=>{l=t.rejectOnCancel?f:d,c&&!a&&(a=setTimeout(()=>{n&&r(n),a=null,d(i())},c)),n=setTimeout(()=>{a&&r(a),a=null,d(i())},u)})}}function R_(e,t=!0,n=!0,a=!1){let l=0,r,s=!0,i=co,u;const c=()=>{r&&(clearTimeout(r),r=void 0,i(),i=co)};return f=>{const h=rl(e),v=Date.now()-l,m=()=>u=f();return c(),h<=0?(l=Date.now(),m()):(v>h&&(n||!s)?(l=Date.now(),m()):t&&(u=new Promise((p,y)=>{i=a?y:p,r=setTimeout(()=>{l=Date.now(),s=!0,p(m()),c()},Math.max(0,h-v))})),!n&&!r&&(r=setTimeout(()=>s=!0,h)),s=!1,u)}}function B_(e){return e}function H_(e,t){let n,a,l;const r=A(!0),s=()=>{r.value=!0,l()};ue(e,s,{flush:"sync"});const i=Iu(t)?t:t.get,u=Iu(t)?void 0:t.set,c=K4((d,f)=>(a=d,l=f,{get(){return r.value&&(n=i(),r.value=!1),a(),n},set(h){u==null||u(h)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function Nr(e){return F4()?(Sp(e),!0):!1}function D_(e,t=200,n={}){return g1(L_(t,n),e)}function F_(e,t=200,n={}){const a=A(e.value),l=D_(()=>{a.value=e.value},t,n);return ue(e,()=>l()),a}function y1(e,t=200,n=!1,a=!0,l=!1){return g1(R_(t,n,a,l),e)}function td(e,t=!0){et()?Xe(e):t?e():Ne(e)}function Nl(e,t,n={}){const{immediate:a=!0}=n,l=A(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function i(){l.value=!1,s()}function u(...c){s(),l.value=!0,r=setTimeout(()=>{l.value=!1,r=null,e(...c)},rl(t))}return a&&(l.value=!0,ut&&u()),Nr(i),{isPending:oi(l),start:u,stop:i}}function $n(e){var t;const n=rl(e);return(t=n==null?void 0:n.$el)!=null?t:n}const cl=ut?window:void 0,K_=ut?window.document:void 0;function wt(...e){let t,n,a,l;if(V_(e[0])||Array.isArray(e[0])?([n,a,l]=e,t=cl):[t,n,a,l]=e,!t)return co;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const r=[],s=()=>{r.forEach(d=>d()),r.length=0},i=(d,f,h,v)=>(d.addEventListener(f,h,v),()=>d.removeEventListener(f,h,v)),u=ue(()=>[$n(t),rl(l)],([d,f])=>{s(),d&&r.push(...n.flatMap(h=>a.map(v=>i(d,h,v,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return Nr(c),c}let i0=!1;function nd(e,t,n={}){const{window:a=cl,ignore:l=[],capture:r=!0,detectIframe:s=!1}=n;if(!a)return;Pu&&!i0&&(i0=!0,Array.from(a.document.body.children).forEach(h=>h.addEventListener("click",co)));let i=!0;const u=h=>l.some(v=>{if(typeof v=="string")return Array.from(a.document.querySelectorAll(v)).some(m=>m===h.target||h.composedPath().includes(m));{const m=$n(v);return m&&(h.target===m||h.composedPath().includes(m))}}),d=[wt(a,"click",h=>{const v=$n(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(i=!u(h)),!i){i=!0;return}t(h)}},{passive:!0,capture:r}),wt(a,"pointerdown",h=>{const v=$n(e);v&&(i=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),s&&wt(a,"blur",h=>{var v;const m=$n(e);((v=a.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(m!=null&&m.contains(a.document.activeElement))&&t(h)})].filter(Boolean);return()=>d.forEach(h=>h())}function W_(e={}){var t;const{window:n=cl}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,l=H_(()=>null,()=>a==null?void 0:a.activeElement);return n&&(wt(n,"blur",r=>{r.relatedTarget===null&&l.trigger()},!0),wt(n,"focus",l.trigger,!0)),l}function _1(e,t=!1){const n=A(),a=()=>n.value=!!e();return a(),td(a,t),n}function j_(e){return JSON.parse(JSON.stringify(e))}const u0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c0="__vueuse_ssr_handlers__";u0[c0]=u0[c0]||{};function q_(e,t,{window:n=cl,initialValue:a=""}={}){const l=A(a),r=C(()=>{var s;return $n(t)||((s=n==null?void 0:n.document)==null?void 0:s.documentElement)});return ue([r,()=>rl(e)],([s,i])=>{var u;if(s&&n){const c=(u=n.getComputedStyle(s).getPropertyValue(i))==null?void 0:u.trim();l.value=c||a}},{immediate:!0}),ue(l,s=>{var i;(i=r.value)!=null&&i.style&&r.value.style.setProperty(rl(e),s)}),l}function U_({document:e=K_}={}){if(!e)return A("visible");const t=A(e.visibilityState);return wt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var d0=Object.getOwnPropertySymbols,Y_=Object.prototype.hasOwnProperty,G_=Object.prototype.propertyIsEnumerable,X_=(e,t)=>{var n={};for(var a in e)Y_.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&d0)for(var a of d0(e))t.indexOf(a)<0&&G_.call(e,a)&&(n[a]=e[a]);return n};function At(e,t,n={}){const a=n,{window:l=cl}=a,r=X_(a,["window"]);let s;const i=_1(()=>l&&"ResizeObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},c=ue(()=>$n(e),f=>{u(),i.value&&l&&f&&(s=new ResizeObserver(t),s.observe(f,r))},{immediate:!0,flush:"post"}),d=()=>{u(),c()};return Nr(d),{isSupported:i,stop:d}}function f0(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:l=!0,immediate:r=!0}=t,s=A(0),i=A(0),u=A(0),c=A(0),d=A(0),f=A(0),h=A(0),v=A(0);function m(){const p=$n(e);if(!p){n&&(s.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,v.value=0);return}const y=p.getBoundingClientRect();s.value=y.height,i.value=y.bottom,u.value=y.left,c.value=y.right,d.value=y.top,f.value=y.width,h.value=y.x,v.value=y.y}return At(e,m),ue(()=>$n(e),p=>!p&&m()),l&&wt("scroll",m,{capture:!0,passive:!0}),a&&wt("resize",m,{passive:!0}),td(()=>{r&&m()}),{height:s,bottom:i,left:u,right:c,top:d,width:f,x:h,y:v,update:m}}var p0=Object.getOwnPropertySymbols,Z_=Object.prototype.hasOwnProperty,J_=Object.prototype.propertyIsEnumerable,Q_=(e,t)=>{var n={};for(var a in e)Z_.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&p0)for(var a of p0(e))t.indexOf(a)<0&&J_.call(e,a)&&(n[a]=e[a]);return n};function b1(e,t,n={}){const a=n,{window:l=cl}=a,r=Q_(a,["window"]);let s;const i=_1(()=>l&&"MutationObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},c=ue(()=>$n(e),f=>{u(),i.value&&l&&f&&(s=new MutationObserver(t),s.observe(f,r))},{immediate:!0}),d=()=>{u(),c()};return Nr(d),{isSupported:i,stop:d}}var v0;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(v0||(v0={}));var eb=Object.defineProperty,h0=Object.getOwnPropertySymbols,tb=Object.prototype.hasOwnProperty,nb=Object.prototype.propertyIsEnumerable,m0=(e,t,n)=>t in e?eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ab=(e,t)=>{for(var n in t||(t={}))tb.call(t,n)&&m0(e,n,t[n]);if(h0)for(var n of h0(t))nb.call(t,n)&&m0(e,n,t[n]);return e};const lb={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ab({linear:B_},lb);function w1(e,t,n,a={}){var l,r,s;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f}=a,h=et(),v=n||(h==null?void 0:h.emit)||((l=h==null?void 0:h.$emit)==null?void 0:l.bind(h))||((s=(r=h==null?void 0:h.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(h==null?void 0:h.proxy));let m=c;t||(t="modelValue"),m=c||m||`update:${t.toString()}`;const p=g=>i?Iu(i)?i(g):j_(g):g,y=()=>A_(e[t])?p(e[t]):f;if(u){const g=y(),x=A(g);return ue(()=>e[t],w=>x.value=p(w)),ue(x,w=>{(w!==e[t]||d)&&v(m,w)},{deep:d}),x}else return C({get(){return y()},set(g){v(m,g)}})}function ob({window:e=cl}={}){if(!e)return A(!1);const t=A(e.document.hasFocus());return wt(e,"blur",()=>{t.value=!1}),wt(e,"focus",()=>{t.value=!0}),t}function rb(e={}){const{window:t=cl,initialWidth:n=1/0,initialHeight:a=1/0,listenOrientation:l=!0,includeScrollbar:r=!0}=e,s=A(n),i=A(a),u=()=>{t&&(r?(s.value=t.innerWidth,i.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return u(),td(u),wt("resize",u,{passive:!0}),l&&wt("orientationchange",u,{passive:!0}),{width:s,height:i}}class sb extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Gt(e,t){throw new sb(`[${e}] ${t}`)}const g0={current:0},y0=A(0),C1=2e3,_0=Symbol("elZIndexContextKey"),S1=Symbol("zIndexContextKey"),Io=e=>{const t=et()?Se(_0,g0):g0,n=e||(et()?Se(S1,void 0):void 0),a=C(()=>{const s=o(n);return Ie(s)?s:C1}),l=C(()=>a.value+y0.value),r=()=>(t.current++,y0.value=t.current,l.value);return!ut&&Se(_0),{initialZIndex:a,currentZIndex:l,nextZIndex:r}};var ib={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const ub=e=>(t,n)=>cb(t,n,o(e)),cb=(e,t,n)=>Kt(n,e,e).replace(/\{(\w+)\}/g,(a,l)=>{var r;return`${(r=t==null?void 0:t[l])!=null?r:`{${l}}`}`}),db=e=>{const t=C(()=>o(e).name),n=Sn(e)?e:A(e);return{lang:t,locale:n,t:ub(e)}},k1=Symbol("localeContextKey"),ct=e=>{const t=e||Se(k1,A());return db(C(()=>t.value||ib))},E1="__epPropKey",X=e=>e,fb=e=>ht(e)&&!!e[E1],va=(e,t)=>{if(!ht(e)||fb(e))return e;const{values:n,required:a,default:l,type:r,validator:s}=e,u={type:r,required:!!a,validator:n||s?c=>{let d=!1,f=[];if(n&&(f=Array.from(n),vn(e,"default")&&f.push(l),d||(d=f.includes(c))),s&&(d||(d=s(c))),!d&&f.length>0){const h=[...new Set(f)].map(v=>JSON.stringify(v)).join(", ");W4(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[E1]:!0};return vn(e,"default")&&(u.default=l),u},pe=e=>cr(Object.entries(e).map(([t,n])=>[t,va(n,t)])),xa=["","default","small","large"],qt=va({type:String,values:xa,required:!1}),x1=Symbol("size"),M1=()=>{const e=Se(x1,{});return C(()=>o(e.size)||"")},$1=Symbol("emptyValuesContextKey"),pb=["",void 0,null],vb=void 0,Po=pe({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Je(e)?!e():!e}}),gi=(e,t)=>{const n=et()?Se($1,A({})):A({}),a=C(()=>e.emptyValues||n.value.emptyValues||pb),l=C(()=>Je(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Je(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:vb),r=s=>a.value.includes(s);return a.value.includes(l.value),{emptyValues:a,valueOnClear:l,isEmptyValue:r}},fo=e=>Object.keys(e),T1=e=>Object.entries(e),is=(e,t,n)=>({get value(){return Kt(e,t,n)},set value(a){w_(e,t,a)}}),Bs=A();function yi(e,t=void 0){const n=et()?Se($p,Bs):Bs;return e?C(()=>{var a,l;return(l=(a=n.value)==null?void 0:a[e])!=null?l:t}):n}function _i(e,t){const n=yi(),a=de(e,C(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||Zo})),l=ct(C(()=>{var i;return(i=n.value)==null?void 0:i.locale})),r=Io(C(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||C1})),s=C(()=>{var i;return o(t)||((i=n.value)==null?void 0:i.size)||""});return ad(C(()=>o(n)||{})),{ns:a,locale:l,zIndex:r,size:s}}const ad=(e,t,n=!1)=>{var a;const l=!!et(),r=l?yi():void 0,s=(a=t==null?void 0:t.provide)!=null?a:l?it:void 0;if(!s)return;const i=C(()=>{const u=o(e);return r!=null&&r.value?hb(r.value,u):u});return s($p,i),s(k1,C(()=>i.value.locale)),s(Tp,C(()=>i.value.namespace)),s(S1,C(()=>i.value.zIndex)),s(x1,{size:C(()=>i.value.size||"")}),s($1,C(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!Bs.value)&&(Bs.value=i.value),i},hb=(e,t)=>{const n=[...new Set([...fo(e),...fo(t)])],a={};for(const l of n)a[l]=t[l]!==void 0?t[l]:e[l];return a},mb=(e=[])=>({version:ng,install:(n,a)=>{n[Mf]||(n[Mf]=!0,e.forEach(l=>n.use(l)),a&&ad(a,n,!0))}}),Ue="update:modelValue",Ct="change",fn="input",gb=pe({zIndex:{type:X([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),yb={scroll:({scrollTop:e,fixed:t})=>Ie(e)&&Et(t),[Ct]:e=>Et(e)};var ve=(e,t)=>{const n=e.__vccOpts||e;for(const[a,l]of t)n[a]=l;return n};function _b(e,t,n,a){const l=n-t;return e/=a/2,e<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}const sl=e=>ut?window.requestAnimationFrame(e):setTimeout(e,16),Il=e=>ut?window.cancelAnimationFrame(e):clearTimeout(e),O1=(e="")=>e.split(" ").filter(t=>!!t.trim()),An=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},jn=(e,t)=>{!e||!t.trim()||e.classList.add(...O1(t))},kn=(e,t)=>{!e||!t.trim()||e.classList.remove(...O1(t))},Aa=(e,t)=>{var n;if(!ut||!e||!t)return"";let a=Lc(t);a==="float"&&(a="cssFloat");try{const l=e.style[a];if(l)return l;const r=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return r?r[a]:""}catch{return e.style[a]}},N1=(e,t,n)=>{if(!(!e||!t))if(ht(t))T1(t).forEach(([a,l])=>N1(e,a,l));else{const a=Lc(t);e.style[a]=n}};function Rt(e,t="px"){if(!e)return"";if(Ie(e)||M_(e))return`${e}${t}`;if(Ve(e))return e}const bb=(e,t)=>{if(!ut)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=Aa(e,n);return["scroll","auto","overlay"].some(l=>a.includes(l))},ld=(e,t)=>{if(!ut)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(bb(n,t))return n;n=n.parentNode}return n};let qr;const I1=e=>{var t;if(!ut)return 0;if(qr!==void 0)return qr;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const a=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const r=l.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),qr=a-r,qr};function od(e,t){if(!ut)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const l=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),r=l+t.offsetHeight,s=e.scrollTop,i=s+e.clientHeight;li&&(e.scrollTop=r-e.clientHeight)}function wb(e,t,n,a,l){const r=Date.now();let s;const i=()=>{const c=Date.now()-r,d=_b(c>a?a:c,t,n,a);mi(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c{s&&Il(s)}}const b0=(e,t)=>mi(t)?e.ownerDocument.documentElement:t,w0=e=>mi(e)?window.scrollY:e.scrollTop,P1="ElAffix",Cb=T({name:P1}),Sb=T({...Cb,props:gb,emits:yb,setup(e,{expose:t,emit:n}){const a=e,l=de("affix"),r=Ot(),s=Ot(),i=Ot(),{height:u}=rb(),{height:c,width:d,top:f,bottom:h,update:v}=f0(s,{windowScroll:!1}),m=f0(r),p=A(!1),y=A(0),g=A(0),x=C(()=>({height:p.value?`${c.value}px`:"",width:p.value?`${d.value}px`:""})),w=C(()=>{if(!p.value)return{};const E=a.offset?Rt(a.offset):0;return{height:`${c.value}px`,width:`${d.value}px`,top:a.position==="top"?E:"",bottom:a.position==="bottom"?E:"",transform:g.value?`translateY(${g.value}px)`:"",zIndex:a.zIndex}}),b=()=>{if(!i.value)return;y.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0;const{position:E,target:O,offset:I}=a,N=I+c.value;if(E==="top")if(O){const P=m.bottom.value-N;p.value=I>f.value&&m.bottom.value>0,g.value=P<0?P:0}else p.value=I>f.value;else if(O){const P=u.value-m.top.value-N;p.value=u.value-Im.top.value,g.value=P<0?-P:0}else p.value=u.value-I{v(),n("scroll",{scrollTop:y.value,fixed:p.value})};return ue(p,E=>n("change",E)),Xe(()=>{var E;a.target?(r.value=(E=document.querySelector(a.target))!=null?E:void 0,r.value||Gt(P1,`Target does not exist: ${a.target}`)):r.value=document.documentElement,i.value=ld(s.value,!0),v()}),wt(i,"scroll",S),cn(b),t({update:b,updateRoot:v}),(E,O)=>(_(),M("div",{ref_key:"root",ref:s,class:$(o(l).b()),style:Oe(o(x))},[k("div",{class:$({[o(l).m("fixed")]:p.value}),style:Oe(o(w))},[Q(E.$slots,"default")],6)],6))}});var kb=ve(Sb,[["__file","affix.vue"]]);const We=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return e},z1=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Eb=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Lt=e=>(e.install=zt,e),xb=We(kb),Mb=pe({size:{type:X([Number,String])},color:{type:String}}),$b=T({name:"ElIcon",inheritAttrs:!1}),Tb=T({...$b,props:Mb,setup(e){const t=e,n=de("icon"),a=C(()=>{const{size:l,color:r}=t;return!l&&!r?{}:{fontSize:vt(l)?void 0:Rt(l),"--color":r}});return(l,r)=>(_(),M("i",tt({class:o(n).b(),style:o(a)},l.$attrs),[Q(l.$slots,"default")],16))}});var Ob=ve(Tb,[["__file","icon.vue"]]);const Me=We(Ob);/*! Element Plus Icons Vue v2.3.1 */var Nb=T({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),Ib=Nb,Pb=T({name:"Aim",__name:"aim",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),zb=Pb,Ab=T({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),k("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),Vb=Ab,Lb=T({name:"Apple",__name:"apple",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"})]))}}),Rb=Lb,Bb=T({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"})]))}}),Hb=Bb,Db=T({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Ma=Db,Fb=T({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),Kb=Fb,Wb=T({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),La=Wb,jb=T({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),qb=jb,Ub=T({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),En=Ub,Yb=T({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"})]))}}),Gb=Yb,Xb=T({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),bi=Xb,Zb=T({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),Jb=Zb,Qb=T({name:"Back",__name:"back",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),A1=Qb,ew=T({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),k("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"})]))}}),tw=ew,nw=T({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336m-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8m106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),aw=nw,lw=T({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),ow=lw,rw=T({name:"Bell",__name:"bell",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),k("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),k("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),sw=rw,iw=T({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),k("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),k("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),k("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),uw=iw,cw=T({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),k("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"})]))}}),dw=cw,fw=T({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),k("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),pw=fw,vw=T({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),hw=vw,mw=T({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),gw=mw,yw=T({name:"Box",__name:"box",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"}),k("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),k("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),_w=yw,bw=T({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),ww=bw,Cw=T({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),Sw=Cw,kw=T({name:"Brush",__name:"brush",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"})]))}}),Ew=kw,xw=T({name:"Burger",__name:"burger",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),Mw=xw,$w=T({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),V1=$w,Tw=T({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),Ow=Tw,Nw=T({name:"Camera",__name:"camera",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),Iw=Nw,Pw=T({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),zw=Pw,Aw=T({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),Vw=Aw,Lw=T({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),rd=Lw,Rw=T({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),L1=Rw,Bw=T({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),Hw=Bw,Dw=T({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),k("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),Fw=Dw,Kw=T({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),k("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"})]))}}),Ww=Kw,jw=T({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),k("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),qw=jw,Uw=T({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),k("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),Yw=Uw,Gw=T({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),Xw=Gw,Zw=T({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),Jw=Zw,Qw=T({name:"Check",__name:"check",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),zo=Qw,e5=T({name:"Checked",__name:"checked",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),t5=e5,n5=T({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),a5=n5,l5=T({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"})]))}}),o5=l5,r5=T({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"}),k("path",{fill:"currentColor",d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91"}),k("path",{fill:"currentColor",d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"})]))}}),s5=r5,i5=T({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),R1=i5,u5=T({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),wi=u5,c5=T({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Ci=c5,d5=T({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),$a=d5,f5=T({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"})]))}}),p5=f5,v5=T({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),h5=v5,m5=T({name:"Clock",__name:"clock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),sd=m5,g5=T({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"})]))}}),y5=g5,_5=T({name:"Close",__name:"close",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Xn=_5,b5=T({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),w5=b5,C5=T({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),S5=C5,k5=T({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64h493.184m-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784m68.736 64 36.544 512H708.16l36.544-512z"})]))}}),E5=k5,x5=T({name:"Coin",__name:"coin",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"}),k("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"}),k("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),M5=x5,$5=T({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),T5=$5,O5=T({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),N5=O5,I5=T({name:"Collection",__name:"collection",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),k("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),P5=I5,z5=T({name:"Comment",__name:"comment",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),A5=z5,V5=T({name:"Compass",__name:"compass",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),L5=V5,R5=T({name:"Connection",__name:"connection",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),k("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),B5=R5,H5=T({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),k("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),D5=H5,F5=T({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),k("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),K5=F5,W5=T({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),j5=W5,q5=T({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"}),k("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),U5=q5,Y5=T({name:"Crop",__name:"crop",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),k("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),G5=Y5,X5=T({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),Ra=X5,Z5=T({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),Ba=Z5,J5=T({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),Q5=J5,e9=T({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),t9=e9,n9=T({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),k("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),k("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),a9=n9,l9=T({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),o9=l9,r9=T({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),s9=r9,i9=T({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),u9=i9,c9=T({name:"Delete",__name:"delete",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),B1=c9,d9=T({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48m339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),f9=d9,p9=T({name:"Discount",__name:"discount",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),v9=p9,h9=T({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),m9=h9,g9=T({name:"Dish",__name:"dish",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),y9=g9,_9=T({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),b9=_9,w9=T({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),C9=w9,S9=T({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),k9=S9,E9=T({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"})]))}}),x9=E9,M9=T({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),$9=M9,T9=T({name:"Document",__name:"document",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),H1=T9,O9=T({name:"Download",__name:"download",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),N9=O9,I9=T({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),P9=I9,z9=T({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"})]))}}),A9=z9,V9=T({name:"Edit",__name:"edit",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),k("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),L9=V9,R9=T({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),B9=R9,H9=T({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"})]))}}),D9=H9,F9=T({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"})]))}}),K9=F9,W9=T({name:"Expand",__name:"expand",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),j9=W9,q9=T({name:"Failed",__name:"failed",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),U9=q9,Y9=T({name:"Female",__name:"female",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),k("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),G9=Y9,X9=T({name:"Files",__name:"files",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),Z9=X9,J9=T({name:"Film",__name:"film",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),Q9=J9,eC=T({name:"Filter",__name:"filter",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),tC=eC,nC=T({name:"Finished",__name:"finished",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),aC=nC,lC=T({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),oC=lC,rC=T({name:"Flag",__name:"flag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),sC=rC,iC=T({name:"Fold",__name:"fold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),uC=iC,cC=T({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),dC=cC,fC=T({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),pC=fC,vC=T({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),hC=vC,mC=T({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),gC=mC,yC=T({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),_C=yC,bC=T({name:"Folder",__name:"folder",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),wC=bC,CC=T({name:"Food",__name:"food",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),SC=CC,kC=T({name:"Football",__name:"football",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),k("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0m-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),EC=kC,xC=T({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),MC=xC,$C=T({name:"Fries",__name:"fries",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),TC=$C,OC=T({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),D1=OC,NC=T({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),IC=NC,PC=T({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),zC=PC,AC=T({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),VC=AC,LC=T({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),RC=LC,BC=T({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"}),k("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),HC=BC,DC=T({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),FC=DC,KC=T({name:"Goods",__name:"goods",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),WC=KC,jC=T({name:"Grape",__name:"grape",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),qC=jC,UC=T({name:"Grid",__name:"grid",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),YC=UC,GC=T({name:"Guide",__name:"guide",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),k("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),XC=GC,ZC=T({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),JC=ZC,QC=T({name:"Headset",__name:"headset",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),e7=QC,t7=T({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"})]))}}),n7=t7,a7=T({name:"Help",__name:"help",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),l7=a7,o7=T({name:"Hide",__name:"hide",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),k("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),F1=o7,r7=T({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),s7=r7,i7=T({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),u7=i7,c7=T({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"})]))}}),d7=c7,f7=T({name:"House",__name:"house",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),p7=f7,v7=T({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"})]))}}),h7=v7,m7=T({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),g7=m7,y7=T({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),_7=y7,b7=T({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64m-64 8.064A256.448 256.448 0 0 0 264.256 384H448zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),w7=b7,C7=T({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),S7=C7,k7=T({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Si=k7,E7=T({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),x7=E7,M7=T({name:"Key",__name:"key",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),$7=M7,T7=T({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288z"})]))}}),O7=T7,N7=T({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),k("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),I7=N7,P7=T({name:"Link",__name:"link",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),z7=P7,A7=T({name:"List",__name:"list",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),V7=A7,L7=T({name:"Loading",__name:"loading",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),ca=L7,R7=T({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),B7=R7,H7=T({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),D7=H7,F7=T({name:"Location",__name:"location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),K7=F7,W7=T({name:"Lock",__name:"lock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),j7=W7,q7=T({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),U7=q7,Y7=T({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),G7=Y7,X7=T({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),Z7=X7,J7=T({name:"Male",__name:"male",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),k("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),k("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),Q7=J7,eS=T({name:"Management",__name:"management",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),tS=eS,nS=T({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),aS=nS,lS=T({name:"Medal",__name:"medal",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),oS=lS,rS=T({name:"Memo",__name:"memo",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),k("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),k("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),sS=rS,iS=T({name:"Menu",__name:"menu",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),uS=iS,cS=T({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"})]))}}),dS=cS,fS=T({name:"Message",__name:"message",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),k("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056"})]))}}),pS=fS,vS=T({name:"Mic",__name:"mic",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),hS=vS,mS=T({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),gS=mS,yS=T({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),_S=yS,bS=T({name:"Minus",__name:"minus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),K1=bS,wS=T({name:"Money",__name:"money",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),k("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),k("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),CS=wS,SS=T({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),kS=SS,ES=T({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),k("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),xS=ES,MS=T({name:"Moon",__name:"moon",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),$S=MS,TS=T({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),zu=TS,OS=T({name:"More",__name:"more",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),W1=OS,NS=T({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),IS=NS,PS=T({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),k("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),zS=PS,AS=T({name:"Mug",__name:"mug",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),VS=AS,LS=T({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),k("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),RS=LS,BS=T({name:"Mute",__name:"mute",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),k("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),HS=BS,DS=T({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),FS=DS,KS=T({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),WS=KS,jS=T({name:"Notification",__name:"notification",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),k("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),qS=jS,US=T({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),k("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),YS=US,GS=T({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),k("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),XS=GS,ZS=T({name:"Open",__name:"open",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),k("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),JS=ZS,QS=T({name:"Operation",__name:"operation",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),ek=QS,tk=T({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),nk=tk,ak=T({name:"Orange",__name:"orange",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),lk=ak,ok=T({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"})]))}}),rk=ok,sk=T({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),k("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"})]))}}),ik=sk,uk=T({name:"Pear",__name:"pear",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),ck=uk,dk=T({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"})]))}}),fk=dk,pk=T({name:"Phone",__name:"phone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),vk=pk,hk=T({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),j1=hk,mk=T({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),k("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),gk=mk,yk=T({name:"Picture",__name:"picture",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),_k=yk,bk=T({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"}),k("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),wk=bk,Ck=T({name:"Place",__name:"place",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),k("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),Sk=Ck,kk=T({name:"Platform",__name:"platform",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),Ek=kk,xk=T({name:"Plus",__name:"plus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),id=xk,Mk=T({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32z"})]))}}),$k=Mk,Tk=T({name:"Position",__name:"position",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"})]))}}),Ok=Tk,Nk=T({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),Ik=Nk,Pk=T({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),zk=Pk,Ak=T({name:"Present",__name:"present",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),k("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Vk=Ak,Lk=T({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Rk=Lk,Bk=T({name:"Printer",__name:"printer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),Hk=Bk,Dk=T({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),Fk=Dk,Kk=T({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),k("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),k("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),Wk=Kk,jk=T({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),q1=jk,qk=T({name:"Rank",__name:"rank",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"})]))}}),Uk=qk,Yk=T({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),k("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),Gk=Yk,Xk=T({name:"Reading",__name:"reading",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"}),k("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),Zk=Xk,Jk=T({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),U1=Jk,Qk=T({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),Y1=Qk,eE=T({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),tE=eE,nE=T({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),aE=nE,lE=T({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),oE=lE,rE=T({name:"Remove",__name:"remove",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),sE=rE,iE=T({name:"Right",__name:"right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),uE=iE,cE=T({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),G1=cE,dE=T({name:"School",__name:"school",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),k("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),fE=dE,pE=T({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),vE=pE,hE=T({name:"Search",__name:"search",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),X1=hE,mE=T({name:"Select",__name:"select",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"})]))}}),gE=mE,yE=T({name:"Sell",__name:"sell",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"})]))}}),_E=yE,bE=T({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),wE=bE,CE=T({name:"Service",__name:"service",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),SE=CE,kE=T({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),k("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),EE=kE,xE=T({name:"Setting",__name:"setting",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),ME=xE,$E=T({name:"Share",__name:"share",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),TE=$E,OE=T({name:"Ship",__name:"ship",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408"})]))}}),NE=OE,IE=T({name:"Shop",__name:"shop",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),PE=IE,zE=T({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),k("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),AE=zE,VE=T({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"}),k("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04"})]))}}),LE=VE,RE=T({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"})]))}}),BE=RE,HE=T({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),DE=HE,FE=T({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),KE=FE,WE=T({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"})]))}}),jE=WE,qE=T({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),UE=qE,YE=T({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Z1=YE,GE=T({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),J1=GE,XE=T({name:"Sort",__name:"sort",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"})]))}}),ZE=XE,JE=T({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),QE=JE,ex=T({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),Uo=ex,tx=T({name:"Star",__name:"star",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Q1=tx,nx=T({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),ax=nx,lx=T({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),ud=lx,ox=T({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),rx=ox,sx=T({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),ix=sx,ux=T({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),cx=ux,dx=T({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),fx=dx,px=T({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),vx=px,hx=T({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),mx=hx,gx=T({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),k("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),yx=gx,_x=T({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"}),k("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"})]))}}),bx=_x,wx=T({name:"Switch",__name:"switch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),Cx=wx,Sx=T({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),kx=Sx,Ex=T({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),xx=Ex,Mx=T({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),$x=Mx,Tx=T({name:"Timer",__name:"timer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),k("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),Ox=Tx,Nx=T({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),k("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),Ix=Nx,Px=T({name:"Tools",__name:"tools",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),zx=Px,Ax=T({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),k("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"})]))}}),Vx=Ax,Lx=T({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),k("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"})]))}}),Rx=Lx,Bx=T({name:"Top",__name:"top",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),Hx=Bx,Dx=T({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),Fx=Dx,Kx=T({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6"})]))}}),Wx=Kx,jx=T({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),qx=jx,Ux=T({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),k("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),Yx=Ux,Gx=T({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),Xx=Gx,Zx=T({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),Jx=Zx,Qx=T({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),eM=Qx,tM=T({name:"Upload",__name:"upload",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),nM=tM,aM=T({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),lM=aM,oM=T({name:"User",__name:"user",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),rM=oM,sM=T({name:"Van",__name:"van",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96h151.872M688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),iM=sM,uM=T({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),cM=uM,dM=T({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),fM=dM,pM=T({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),vM=pM,hM=T({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),mM=hM,gM=T({name:"View",__name:"view",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),ev=gM,yM=T({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),_M=yM,bM=T({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),k("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),wM=bM,CM=T({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),SM=CM,kM=T({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Ir=kM,EM=T({name:"Warning",__name:"warning",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),xM=EM,MM=T({name:"Watch",__name:"watch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),$M=MM,TM=T({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632l632 632"})]))}}),OM=TM,NM=T({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),IM=NM,PM=T({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),cd=PM,zM=T({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),tv=zM;const DX=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:Ib,Aim:zb,AlarmClock:Vb,Apple:Rb,ArrowDown:Ma,ArrowDownBold:Hb,ArrowLeft:La,ArrowLeftBold:Kb,ArrowRight:En,ArrowRightBold:qb,ArrowUp:bi,ArrowUpBold:Gb,Avatar:Jb,Back:A1,Baseball:tw,Basketball:aw,Bell:sw,BellFilled:ow,Bicycle:uw,Bottom:hw,BottomLeft:dw,BottomRight:pw,Bowl:gw,Box:_w,Briefcase:ww,Brush:Ew,BrushFilled:Sw,Burger:Mw,Calendar:V1,Camera:Iw,CameraFilled:Ow,CaretBottom:zw,CaretLeft:Vw,CaretRight:rd,CaretTop:L1,Cellphone:Hw,ChatDotRound:Fw,ChatDotSquare:Ww,ChatLineRound:qw,ChatLineSquare:Yw,ChatRound:Xw,ChatSquare:Jw,Check:zo,Checked:t5,Cherry:a5,Chicken:o5,ChromeFilled:s5,CircleCheck:wi,CircleCheckFilled:R1,CircleClose:$a,CircleCloseFilled:Ci,CirclePlus:h5,CirclePlusFilled:p5,Clock:sd,Close:Xn,CloseBold:y5,Cloudy:w5,Coffee:E5,CoffeeCup:S5,Coin:M5,ColdDrink:T5,Collection:P5,CollectionTag:N5,Comment:A5,Compass:L5,Connection:B5,Coordinate:D5,CopyDocument:K5,Cpu:j5,CreditCard:U5,Crop:G5,DArrowLeft:Ra,DArrowRight:Ba,DCaret:Q5,DataAnalysis:t9,DataBoard:a9,DataLine:o9,Delete:B1,DeleteFilled:s9,DeleteLocation:u9,Dessert:f9,Discount:v9,Dish:y9,DishDot:m9,Document:H1,DocumentAdd:b9,DocumentChecked:C9,DocumentCopy:k9,DocumentDelete:x9,DocumentRemove:$9,Download:N9,Drizzling:P9,Edit:L9,EditPen:A9,Eleme:D9,ElemeFilled:B9,ElementPlus:K9,Expand:j9,Failed:U9,Female:G9,Files:Z9,Film:Q9,Filter:tC,Finished:aC,FirstAidKit:oC,Flag:sC,Fold:uC,Folder:wC,FolderAdd:dC,FolderChecked:pC,FolderDelete:hC,FolderOpened:gC,FolderRemove:_C,Food:SC,Football:EC,ForkSpoon:MC,Fries:TC,FullScreen:D1,Goblet:RC,GobletFull:IC,GobletSquare:VC,GobletSquareFull:zC,GoldMedal:HC,Goods:WC,GoodsFilled:FC,Grape:qC,Grid:YC,Guide:XC,Handbag:JC,Headset:e7,Help:l7,HelpFilled:n7,Hide:F1,Histogram:s7,HomeFilled:u7,HotWater:d7,House:p7,IceCream:_7,IceCreamRound:h7,IceCreamSquare:g7,IceDrink:w7,IceTea:S7,InfoFilled:Si,Iphone:x7,Key:$7,KnifeFork:O7,Lightning:I7,Link:z7,List:V7,Loading:ca,Location:K7,LocationFilled:B7,LocationInformation:D7,Lock:j7,Lollipop:U7,MagicStick:G7,Magnet:Z7,Male:Q7,Management:tS,MapLocation:aS,Medal:oS,Memo:sS,Menu:uS,Message:pS,MessageBox:dS,Mic:hS,Microphone:gS,MilkTea:_S,Minus:K1,Money:CS,Monitor:kS,Moon:$S,MoonNight:xS,More:W1,MoreFilled:zu,MostlyCloudy:IS,Mouse:zS,Mug:VS,Mute:HS,MuteNotification:RS,NoSmoking:FS,Notebook:WS,Notification:qS,Odometer:YS,OfficeBuilding:XS,Open:JS,Operation:ek,Opportunity:nk,Orange:lk,Paperclip:rk,PartlyCloudy:ik,Pear:ck,Phone:vk,PhoneFilled:fk,Picture:_k,PictureFilled:j1,PictureRounded:gk,PieChart:wk,Place:Sk,Platform:Ek,Plus:id,Pointer:$k,Position:Ok,Postcard:Ik,Pouring:zk,Present:Vk,PriceTag:Rk,Printer:Hk,Promotion:Fk,QuartzWatch:Wk,QuestionFilled:q1,Rank:Uk,Reading:Zk,ReadingLamp:Gk,Refresh:tE,RefreshLeft:U1,RefreshRight:Y1,Refrigerator:aE,Remove:sE,RemoveFilled:oE,Right:uE,ScaleToOriginal:G1,School:fE,Scissor:vE,Search:X1,Select:gE,Sell:_E,SemiSelect:wE,Service:SE,SetUp:EE,Setting:ME,Share:TE,Ship:NE,Shop:PE,ShoppingBag:AE,ShoppingCart:BE,ShoppingCartFull:LE,ShoppingTrolley:DE,Smoking:KE,Soccer:jE,SoldOut:UE,Sort:ZE,SortDown:Z1,SortUp:J1,Stamp:QE,Star:Q1,StarFilled:Uo,Stopwatch:ax,SuccessFilled:ud,Sugar:rx,Suitcase:cx,SuitcaseLine:ix,Sunny:fx,Sunrise:vx,Sunset:mx,Switch:Cx,SwitchButton:yx,SwitchFilled:bx,TakeawayBox:kx,Ticket:xx,Tickets:$x,Timer:Ox,ToiletPaper:Ix,Tools:zx,Top:Hx,TopLeft:Vx,TopRight:Rx,TrendCharts:Fx,Trophy:qx,TrophyBase:Wx,TurnOff:Yx,Umbrella:Xx,Unlock:Jx,Upload:nM,UploadFilled:eM,User:rM,UserFilled:lM,Van:iM,VideoCamera:fM,VideoCameraFilled:cM,VideoPause:vM,VideoPlay:mM,View:ev,Wallet:wM,WalletFilled:_M,WarnTriangleFilled:SM,Warning:xM,WarningFilled:Ir,Watch:$M,Watermelon:OM,WindPower:IM,ZoomIn:cd,ZoomOut:tv},Symbol.toStringTag,{value:"Module"})),St=X([String,Object,Function]),dd={Close:Xn},fd={Close:Xn,SuccessFilled:ud,InfoFilled:Si,WarningFilled:Ir,CircleCloseFilled:Ci},il={success:ud,warning:Ir,error:Ci,info:Si},ki={validating:ca,success:wi,error:$a},AM=["light","dark"],VM=pe({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:fo(il),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:AM,default:"light"}}),LM={close:e=>e instanceof MouseEvent},RM=T({name:"ElAlert"}),BM=T({...RM,props:VM,emits:LM,setup(e,{emit:t}){const n=e,{Close:a}=fd,l=Xt(),r=de("alert"),s=A(!0),i=C(()=>il[n.type]),u=C(()=>!!(n.description||l.default)),c=d=>{s.value=!1,t("close",d)};return(d,f)=>(_(),ae(tn,{name:o(r).b("fade"),persisted:""},{default:G(()=>[qe(k("div",{class:$([o(r).b(),o(r).m(d.type),o(r).is("center",d.center),o(r).is(d.effect)]),role:"alert"},[d.showIcon&&o(i)?(_(),ae(o(Me),{key:0,class:$([o(r).e("icon"),{[o(r).is("big")]:o(u)}])},{default:G(()=>[(_(),ae(Qe(o(i))))]),_:1},8,["class"])):ee("v-if",!0),k("div",{class:$(o(r).e("content"))},[d.title||d.$slots.title?(_(),M("span",{key:0,class:$([o(r).e("title"),{"with-description":o(u)}])},[Q(d.$slots,"title",{},()=>[ot(he(d.title),1)])],2)):ee("v-if",!0),o(u)?(_(),M("p",{key:1,class:$(o(r).e("description"))},[Q(d.$slots,"default",{},()=>[ot(he(d.description),1)])],2)):ee("v-if",!0),d.closable?(_(),M(ze,{key:2},[d.closeText?(_(),M("div",{key:0,class:$([o(r).e("close-btn"),o(r).is("customed")]),onClick:c},he(d.closeText),3)):(_(),ae(o(Me),{key:1,class:$(o(r).e("close-btn")),onClick:c},{default:G(()=>[q(o(a))]),_:1},8,["class"]))],64)):ee("v-if",!0)],2)],2),[[pt,s.value]])]),_:3},8,["name"]))}});var HM=ve(BM,[["__file","alert.vue"]]);const DM=We(HM),Ei=()=>ut&&/firefox/i.test(window.navigator.userAgent);let ta;const FM=` height:0 !important; visibility:hidden !important; ${Ei()?"":"overflow:hidden !important;"} @@ -42,4 +42,4 @@ import{g as et,i as Se,r as A,c as C,u as o,a as Ee,b as ht,d as Ve,w as ue,e as * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */const XK=function(e,t){if(e&&e.addEventListener){const n=function(a){const l=GK(a);t&&Reflect.apply(t,this,[a,l])};e.addEventListener("wheel",n,{passive:!0})}},ZK={beforeMount(e,t){XK(e,t.value)}};let JK=1;const QK=T({name:"ElTable",directives:{Mousewheel:ZK},components:{TableHeader:MK,TableBody:AK,TableFooter:RK,ElScrollbar:Ta,hColgroup:Sm},props:FK,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=ct(),n=de("table"),a=et();it(Oa,a);const l=gK(a,e);a.store=l;const r=new _K({store:a.store,table:a,fit:e.fit,showHeader:e.showHeader});a.layout=r;const s=C(()=>(l.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:v,clearSort:m,sort:p,updateKeyChildren:y}=BK(l),{isHidden:g,renderExpanded:x,setDragVisible:w,isGroup:b,handleMouseLeave:S,handleHeaderFooterMousewheel:E,tableSize:O,emptyBlockStyle:I,handleFixedMousewheel:N,resizeProxyVisible:P,bodyWidth:L,resizeState:R,doLayout:K,tableBodyStyles:U,tableLayout:H,scrollbarViewStyle:V,scrollbarStyle:D}=HK(e,r,l,a),{scrollBarRef:B,scrollTo:z,setScrollLeft:F,setScrollTop:W}=KK(),Z=Rn(K,50),j=`${n.namespace.value}-table_${JK++}`;a.tableId=j,a.state={isGroup:b,resizeState:R,doLayout:K,debouncedUpdateLayout:Z};const ne=C(()=>{var te;return(te=e.sumText)!=null?te:t("el.table.sumText")}),oe=C(()=>{var te;return(te=e.emptyText)!=null?te:t("el.table.emptyText")}),ce=C(()=>Cm(l.states.originColumns.value)[0]);return DK(a),$t(()=>{Z.cancel()}),{ns:n,layout:r,store:l,columns:ce,handleHeaderFooterMousewheel:E,handleMouseLeave:S,tableId:j,tableSize:O,isHidden:g,isEmpty:s,renderExpanded:x,resizeProxyVisible:P,resizeState:R,isGroup:b,bodyWidth:L,tableBodyStyles:U,emptyBlockStyle:I,debouncedUpdateLayout:Z,handleFixedMousewheel:N,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:v,clearSort:m,doLayout:K,sort:p,updateKeyChildren:y,t,setDragVisible:w,context:a,computedSumText:ne,computedEmptyText:oe,tableLayout:H,scrollbarViewStyle:V,scrollbarStyle:D,scrollBarRef:B,scrollTo:z,setScrollLeft:F,setScrollTop:W,allowDragLastColumn:e.allowDragLastColumn}}});function eW(e,t,n,a,l,r){const s=Ze("hColgroup"),i=Ze("table-header"),u=Ze("table-body"),c=Ze("table-footer"),d=Ze("el-scrollbar"),f=ii("mousewheel");return _(),M("div",{ref:"tableWrapper",class:$([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Oe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[k("div",{class:$(e.ns.e("inner-wrapper"))},[k("div",{ref:"hiddenColumns",class:"hidden-columns"},[Q(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?qe((_(),M("div",{key:0,ref:"headerWrapper",class:$(e.ns.e("header-wrapper"))},[k("table",{ref:"tableHeader",class:$(e.ns.e("header")),style:Oe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[q(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),q(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):ee("v-if",!0),k("div",{ref:"bodyWrapper",class:$(e.ns.e("body-wrapper"))},[q(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,onScroll:h=>e.$emit("scroll",h)},{default:G(()=>[k("table",{ref:"tableBody",class:$(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Oe({width:e.bodyWidth,tableLayout:e.tableLayout})},[q(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(_(),ae(i,{key:0,ref:"tableHeaderRef",class:$(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):ee("v-if",!0),q(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(_(),ae(c,{key:1,class:$(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ee("v-if",!0)],6),e.isEmpty?(_(),M("div",{key:0,ref:"emptyBlock",style:Oe(e.emptyBlockStyle),class:$(e.ns.e("empty-block"))},[k("span",{class:$(e.ns.e("empty-text"))},[Q(e.$slots,"empty",{},()=>[ot(he(e.computedEmptyText),1)])],2)],6)):ee("v-if",!0),e.$slots.append?(_(),M("div",{key:1,ref:"appendWrapper",class:$(e.ns.e("append-wrapper"))},[Q(e.$slots,"append")],2)):ee("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","onScroll"])],2),e.showSummary&&e.tableLayout==="fixed"?qe((_(),M("div",{key:1,ref:"footerWrapper",class:$(e.ns.e("footer-wrapper"))},[k("table",{class:$(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Oe(e.tableBodyStyles)},[q(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),q(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[pt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):ee("v-if",!0),e.border||e.isGroup?(_(),M("div",{key:2,class:$(e.ns.e("border-left-patch"))},null,2)):ee("v-if",!0)],2),qe(k("div",{ref:"resizeProxy",class:$(e.ns.e("column-resize-proxy"))},null,2),[[pt,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var tW=ve(QK,[["render",eW],["__file","table.vue"]]);const nW={selection:"table-column--selection",expand:"table__expand-column"},aW={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},lW=e=>nW[e]||"",oW={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Pe(Qn,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:a}){return Pe(Qn,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:l=>l.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return Ie(a)?n=t+a:Je(a)&&(n=a(t)),Pe("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:a}=t,l=[a.e("expand-icon")];return n&&l.push(a.em("expand-icon","expanded")),Pe("div",{class:l,onClick:function(s){s.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Pe(Me,null,{default:()=>[Pe(En)]})]})},sortable:!1,resizable:!1}};function rW({row:e,column:t,$index:n}){var a;const l=t.property,r=l&&is(e,l).value;return t&&t.formatter?t.formatter(e,t,r,n):((a=r==null?void 0:r.toString)==null?void 0:a.call(r))||""}function sW({row:e,treeNode:t,store:n},a=!1){const{ns:l}=n;if(!t)return a?[Pe("span",{class:l.e("placeholder")})]:null;const r=[],s=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&r.push(Pe("span",{class:l.e("indent"),style:{"padding-left":`${t.indent}px`}})),Et(t.expanded)&&!t.noLazyChildren){const i=[l.e("expand-icon"),t.expanded?l.em("expand-icon","expanded"):""];let u=En;t.loading&&(u=ca),r.push(Pe("div",{class:i,onClick:s},{default:()=>[Pe(Me,{class:{[l.is("loading")]:t.loading}},{default:()=>[Pe(u)]})]}))}else r.push(Pe("span",{class:l.e("placeholder")}));return r}function Z2(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function iW(e,t){const n=et();return{registerComplexWatchers:()=>{const r=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},i=Z2(r,s);Object.keys(i).forEach(u=>{const c=s[u];vn(t,c)&&ue(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=ef(d)),c==="minWidth"&&u==="realMinWidth"&&(f=hm(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const r=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},i=Z2(r,s);Object.keys(i).forEach(u=>{const c=s[u];vn(t,c)&&ue(()=>t[c],d=>{n.columnConfig.value[u]=d})})}}}function uW(e,t,n){const a=et(),l=A(""),r=A(!1),s=A(),i=A(),u=de("table");cn(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),cn(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:s.value,i.value});const c=C(()=>{let b=a.vnode.vParent||a.parent;for(;b&&!b.tableId&&!b.columnId;)b=b.vnode.vParent||b.parent;return b}),d=C(()=>{const{store:b}=a.parent;if(!b)return!1;const{treeData:S}=b.states,E=S.value;return E&&Object.keys(E).length>0}),f=A(ef(e.width)),h=A(hm(e.minWidth)),v=b=>(f.value&&(b.width=f.value),h.value&&(b.minWidth=h.value),!f.value&&h.value&&(b.width=void 0),b.minWidth||(b.minWidth=80),b.realWidth=Number(vt(b.width)?b.minWidth:b.width),b),m=b=>{const S=b.type,E=oW[S]||{};Object.keys(E).forEach(I=>{const N=E[I];I!=="className"&&!vt(N)&&(b[I]=N)});const O=lW(S);if(O){const I=`${o(u.namespace)}-${O}`;b.className=b.className?`${b.className} ${I}`:I}return b},p=b=>{Ee(b)?b.forEach(E=>S(E)):S(b);function S(E){var O;((O=E==null?void 0:E.type)==null?void 0:O.name)==="ElTableColumn"&&(E.vParent=a)}};return{columnId:l,realAlign:s,isSubColumn:r,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:v,setColumnForcedProps:m,setColumnRenders:b=>{e.renderHeader||b.type!=="selection"&&(b.renderHeader=E=>(a.columnConfig.value.label,Q(t,"header",E,()=>[b.label]))),t["filter-icon"]&&(b.renderFilterIcon=E=>Q(t,"filter-icon",E));let S=b.renderCell;return b.type==="expand"?(b.renderCell=E=>Pe("div",{class:"cell"},[S(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):(S=S||rW,b.renderCell=E=>{let O=null;if(t.default){const K=t.default(E);O=K.some(U=>U.type!==ri)?K:S(E)}else O=S(E);const{columns:I}=n.value.store.states,N=I.value.findIndex(K=>K.type==="default"),P=d.value&&E.cellIndex===N,L=sW(E,P),R={class:"cell",style:{}};return b.showOverflowTooltip&&(R.class=`${R.class} ${o(u.namespace)}-tooltip`,R.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),p(O),Pe("div",R,[L,O])}),b},getPropsData:(...b)=>b.reduce((S,E)=>(Ee(E)&&E.forEach(O=>{S[O]=e[O]}),S),{}),getColumnElIndex:(b,S)=>Array.prototype.indexOf.call(b,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var cW={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let dW=1;var Nm=T({name:"ElTableColumn",components:{ElCheckbox:Qn},props:cW,setup(e,{slots:t}){const n=et(),a=A({}),l=C(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:r,registerComplexWatchers:s}=iW(l,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:v,getPropsData:m,getColumnElIndex:p,realAlign:y,updateColumnOrder:g}=uW(e,t,l),x=d.value;i.value=`${x.tableId||x.columnId}_column_${dW++}`,Rc(()=>{u.value=l.value!==x;const w=e.type||"default",b=e.sortable===""?!0:e.sortable,S=vt(e.showOverflowTooltip)?x.props.showOverflowTooltip:e.showOverflowTooltip,E={...aW[w],id:i.value,type:w,property:e.prop||e.property,align:y,headerAlign:c,showOverflowTooltip:S,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:b,index:e.index,rawColumnKey:n.vnode.key};let L=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);L=rK(E,L),L=iK(v,f,h)(L),a.value=L,r(),s()}),Xe(()=>{var w;const b=d.value,S=u.value?b.vnode.el.children:(w=b.refs.hiddenColumns)==null?void 0:w.children,E=()=>p(S||[],n.vnode.el);a.value.getColumnIndex=E,E()>-1&&l.value.store.commit("insertColumn",a.value,u.value?b.columnConfig.value:null,g)}),$t(()=>{const w=a.value.getColumnIndex;(w?w():-1)>-1&&l.value.store.commit("removeColumn",a.value,u.value?x.columnConfig.value:null,g)}),n.columnId=i.value,n.columnConfig=a},render(){var e,t,n;try{const a=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),l=[];if(Ee(a))for(const s of a)((n=s.type)==null?void 0:n.name)==="ElTableColumn"||s.shapeFlag&2?l.push(s):s.type===ze&&Ee(s.children)&&s.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!Ve(i==null?void 0:i.children)&&l.push(i)});return Pe("div",l)}catch{return Pe("div",[])}}});const fW=We(tW,{TableColumn:Nm}),pW=Lt(Nm);var wr=(e=>(e.ASC="asc",e.DESC="desc",e))(wr||{}),Cr=(e=>(e.CENTER="center",e.RIGHT="right",e))(Cr||{}),Im=(e=>(e.LEFT="left",e.RIGHT="right",e))(Im||{});const bc={asc:"desc",desc:"asc"},Sr=Symbol("placeholder"),vW=(e,t,n)=>{var a;const l={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(l.flexShrink=1);const r={...(a=e.style)!=null?a:{},...l,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(r.maxWidth=e.maxWidth),e.minWidth&&(r.minWidth=e.minWidth)),r};function hW(e,t,n){const a=C(()=>o(t).map((y,g)=>{var x,w;return{...y,key:(w=(x=y.key)!=null?x:y.dataKey)!=null?w:g}})),l=C(()=>o(a).filter(y=>!y.hidden)),r=C(()=>o(l).filter(y=>y.fixed==="left"||y.fixed===!0)),s=C(()=>o(l).filter(y=>y.fixed==="right")),i=C(()=>o(l).filter(y=>!y.fixed)),u=C(()=>{const y=[];return o(r).forEach(g=>{y.push({...g,placeholderSign:Sr})}),o(i).forEach(g=>{y.push(g)}),o(s).forEach(g=>{y.push({...g,placeholderSign:Sr})}),y}),c=C(()=>o(r).length||o(s).length),d=C(()=>o(a).reduce((y,g)=>(y[g.key]=vW(g,o(n),e.fixed),y),{})),f=C(()=>o(l).reduce((y,g)=>y+g.width,0)),h=y=>o(a).find(g=>g.key===y),v=y=>o(d)[y],m=(y,g)=>{y.width=g};function p(y){var g;const{key:x}=y.currentTarget.dataset;if(!x)return;const{sortState:w,sortBy:b}=e;let S=wr.ASC;ht(w)?S=bc[w[x]]:S=bc[b.order],(g=e.onColumnSort)==null||g.call(e,{column:h(x),key:x,order:S})}return{columns:a,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,hasFixedColumns:c,mainColumns:u,normalColumns:i,visibleColumns:l,getColumn:h,getColumnStyle:v,updateColumnWidth:m,onColumnSorted:p}}const mW=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:l})=>{const r=A({scrollLeft:0,scrollTop:0});function s(v){var m,p,y;const{scrollTop:g}=v;(m=t.value)==null||m.scrollTo(v),(p=n.value)==null||p.scrollToTop(g),(y=a.value)==null||y.scrollToTop(g)}function i(v){r.value=v,s(v)}function u(v){r.value.scrollTop=v,s(o(r))}function c(v){var m,p;r.value.scrollLeft=v,(p=(m=t.value)==null?void 0:m.scrollTo)==null||p.call(m,o(r))}function d(v){var m;i(v),(m=e.onScroll)==null||m.call(e,v)}function f({scrollTop:v}){const{scrollTop:m}=o(r);v!==m&&u(v)}function h(v,m="auto"){var p;(p=t.value)==null||p.scrollToRow(v,m)}return ue(()=>o(r).scrollTop,(v,m)=>{v>m&&l()}),{scrollPos:r,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:d,onVerticalScroll:f}},gW=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:l,ns:r,isScrolling:s})=>{const i=et(),{emit:u}=i,c=Ot(!1),d=A(e.defaultExpandedRowKeys||[]),f=A(-1),h=Ot(null),v=A({}),m=A({}),p=Ot({}),y=Ot({}),g=Ot({}),x=C(()=>Ie(e.estimatedRowHeight));function w(P){var L;(L=e.onRowsRendered)==null||L.call(e,P),P.rowCacheEnd>o(f)&&(f.value=P.rowCacheEnd)}function b({hovered:P,rowKey:L}){if(s.value)return;l.vnode.el.querySelectorAll(`[rowkey="${String(L)}"]`).forEach(U=>{P?U.classList.add(r.is("hovered")):U.classList.remove(r.is("hovered"))})}function S({expanded:P,rowData:L,rowIndex:R,rowKey:K}){var U,H;const V=[...o(d)],D=V.indexOf(K);P?D===-1&&V.push(K):D>-1&&V.splice(D,1),d.value=V,u("update:expandedRowKeys",V),(U=e.onRowExpand)==null||U.call(e,{expanded:P,rowData:L,rowIndex:R,rowKey:K}),(H=e.onExpandedRowsChange)==null||H.call(e,V)}const E=Rn(()=>{var P,L,R,K;c.value=!0,v.value={...o(v),...o(m)},O(o(h),!1),m.value={},h.value=null,(P=t.value)==null||P.forceUpdate(),(L=n.value)==null||L.forceUpdate(),(R=a.value)==null||R.forceUpdate(),(K=i.proxy)==null||K.$forceUpdate(),c.value=!1},0);function O(P,L=!1){o(x)&&[t,n,a].forEach(R=>{const K=o(R);K&&K.resetAfterRowIndex(P,L)})}function I(P,L,R){const K=o(h);(K===null||K>R)&&(h.value=R),m.value[P]=L}function N({rowKey:P,height:L,rowIndex:R},K){K?K===Im.RIGHT?g.value[P]=L:p.value[P]=L:y.value[P]=L;const U=Math.max(...[p,g,y].map(H=>H.value[P]||0));o(v)[P]!==U&&(I(P,U,R),E())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:x,isResetting:c,rowHeights:v,resetAfterIndex:O,onRowExpanded:S,onRowHovered:b,onRowsRendered:w,onRowHeightChange:N}},yW=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const l=A({}),r=C(()=>{const i={},{data:u,rowKey:c}=e,d=o(t);if(!d||!d.length)return u;const f=[],h=new Set;d.forEach(m=>h.add(m));let v=u.slice();for(v.forEach(m=>i[m[c]]=0);v.length>0;){const m=v.shift();f.push(m),h.has(m[c])&&Ee(m.children)&&m.children.length>0&&(v=[...m.children,...v],m.children.forEach(p=>i[p[c]]=i[m[c]]+1))}return l.value=i,f}),s=C(()=>{const{data:i,expandColumnKey:u}=e;return u?o(r):i});return ue(s,(i,u)=>{i!==u&&(n.value=-1,a(0,!0))}),{data:s,depthMap:l}},_W=(e,t)=>e+t,$s=e=>Ee(e)?e.reduce(_W,0):e,zl=(e,t,n={})=>Je(e)?e(t):e??n,tl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Rt(e[t])}),e),Pm=e=>Ft(e)?t=>Pe(e,t):e,bW=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:l})=>{const r=C(()=>{const{fixed:x,width:w,vScrollbarSize:b}=e,S=w-b;return x?Math.max(Math.round(o(t)),S):S}),s=C(()=>o(r)+e.vScrollbarSize),i=C(()=>{const{height:x=0,maxHeight:w=0,footerHeight:b,hScrollbarSize:S}=e;if(w>0){const E=o(v),O=o(n),N=o(h)+E+O+S;return Math.min(N,w-b)}return x-b}),u=C(()=>{const{maxHeight:x}=e,w=o(i);if(Ie(x)&&x>0)return w;const b=o(n)+o(h)+o(v);return Math.min(w,b)}),c=x=>x.width,d=C(()=>$s(o(a).map(c))),f=C(()=>$s(o(l).map(c))),h=C(()=>$s(e.headerHeight)),v=C(()=>{var x;return(((x=e.fixedData)==null?void 0:x.length)||0)*e.rowHeight}),m=C(()=>o(i)-o(h)-o(v)),p=C(()=>{const{style:x={},height:w,width:b}=e;return tl({...x,height:w,width:b})}),y=C(()=>tl({height:e.footerHeight})),g=C(()=>({top:Rt(o(h)),bottom:Rt(e.footerHeight),width:Rt(e.width)}));return{bodyWidth:r,fixedTableHeight:u,mainTableHeight:i,leftTableWidth:d,rightTableWidth:f,headerWidth:s,windowHeight:m,footerHeight:y,emptyStyle:g,rootStyle:p,headerHeight:h}};function wW(e){const t=A(),n=A(),a=A(),{columns:l,columnsStyles:r,columnsTotalWidth:s,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=hW(e,yt(e,"columns"),yt(e,"fixed")),{scrollTo:h,scrollToLeft:v,scrollToTop:m,scrollToRow:p,onScroll:y,onVerticalScroll:g,scrollPos:x}=mW(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:we}),w=de("table-v2"),b=et(),S=Ot(!1),{expandedRowKeys:E,lastRenderedRowIndex:O,isDynamic:I,isResetting:N,rowHeights:P,resetAfterIndex:L,onRowExpanded:R,onRowHeightChange:K,onRowHovered:U,onRowsRendered:H}=gW(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:b,ns:w,isScrolling:S}),{data:V,depthMap:D}=yW(e,{expandedRowKeys:E,lastRenderedRowIndex:O,resetAfterIndex:L}),B=C(()=>{const{estimatedRowHeight:Le,rowHeight:De}=e,Ye=o(V);return Ie(Le)?Object.values(o(P)).reduce(($e,Te)=>$e+Te,0):Ye.length*De}),{bodyWidth:z,fixedTableHeight:F,mainTableHeight:W,leftTableWidth:Z,rightTableWidth:j,headerWidth:ne,windowHeight:oe,footerHeight:ce,emptyStyle:te,rootStyle:se,headerHeight:fe}=bW(e,{columnsTotalWidth:s,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,rowsHeight:B}),xe=A(),me=C(()=>{const Le=o(V).length===0;return Ee(e.fixedData)?e.fixedData.length===0&&Le:Le});function le(Le){const{estimatedRowHeight:De,rowHeight:Ye,rowKey:$e}=e;return De?o(P)[o(V)[Le][$e]]||De:Ye}function we(){const{onEndReached:Le}=e;if(!Le)return;const{scrollTop:De}=o(x),Ye=o(B),$e=o(oe),Te=Ye-(De+$e)+e.hScrollbarSize;o(O)>=0&&Ye===De+o(W)-o(fe)&&Le(Te)}return ue(()=>e.expandedRowKeys,Le=>E.value=Le,{deep:!0}),{columns:l,containerRef:xe,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:I,isResetting:N,isScrolling:S,hasFixedColumns:c,columnsStyles:r,columnsTotalWidth:s,data:V,expandedRowKeys:E,depthMap:D,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:z,emptyStyle:te,rootStyle:se,headerWidth:ne,footerHeight:ce,mainTableHeight:W,fixedTableHeight:F,leftTableWidth:Z,rightTableWidth:j,showEmpty:me,getRowHeight:le,onColumnSorted:f,onRowHovered:U,onRowExpanded:R,onRowsRendered:H,onRowHeightChange:K,scrollTo:h,scrollToLeft:v,scrollToTop:m,scrollToRow:p,onScroll:y,onVerticalScroll:g}}const af=Symbol("tableV2"),zm=String,Rr={type:X(Array),required:!0},lf={type:X(Array)},Am={...lf,required:!0},CW=String,J2={type:X(Array),default:()=>Vt([])},yl={type:Number,required:!0},Vm={type:X([String,Number,Symbol]),default:"id"},Q2={type:X(Object)},Cl=pe({class:String,columns:Rr,columnsStyles:{type:X(Object),required:!0},depth:Number,expandColumnKey:CW,estimatedRowHeight:{...Ml.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:X(Function)},onRowHover:{type:X(Function)},onRowHeightChange:{type:X(Function)},rowData:{type:X(Object),required:!0},rowEventHandlers:{type:X(Object)},rowIndex:{type:Number,required:!0},rowKey:Vm,style:{type:X(Object)}}),mu={type:Number,required:!0},of=pe({class:String,columns:Rr,fixedHeaderData:{type:X(Array)},headerData:{type:X(Array),required:!0},headerHeight:{type:X([Number,Array]),default:50},rowWidth:mu,rowHeight:{type:Number,default:50},height:mu,width:mu}),Ts=pe({columns:Rr,data:Am,fixedData:lf,estimatedRowHeight:Cl.estimatedRowHeight,width:yl,height:yl,headerWidth:yl,headerHeight:of.headerHeight,bodyWidth:yl,rowHeight:yl,cache:nm.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Ml.scrollbarAlwaysOn,scrollbarStartGap:Ml.scrollbarStartGap,scrollbarEndGap:Ml.scrollbarEndGap,class:zm,style:Q2,containerStyle:Q2,getRowHeight:{type:X(Function),required:!0},rowKey:Cl.rowKey,onRowsRendered:{type:X(Function)},onScroll:{type:X(Function)}}),SW=pe({cache:Ts.cache,estimatedRowHeight:Cl.estimatedRowHeight,rowKey:Vm,headerClass:{type:X([String,Function])},headerProps:{type:X([Object,Function])},headerCellProps:{type:X([Object,Function])},headerHeight:of.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:X([String,Function])},rowProps:{type:X([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:X([Object,Function])},columns:Rr,data:Am,dataGetter:{type:X(Function)},fixedData:lf,expandColumnKey:Cl.expandColumnKey,expandedRowKeys:J2,defaultExpandedRowKeys:J2,class:zm,fixed:Boolean,style:{type:X(Object)},width:yl,height:yl,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Ml.hScrollbarSize,vScrollbarSize:Ml.vScrollbarSize,scrollbarAlwaysOn:om.alwaysOn,sortBy:{type:X(Object),default:()=>({})},sortState:{type:X(Object),default:void 0},onColumnSort:{type:X(Function)},onExpandedRowsChange:{type:X(Function)},onEndReached:{type:X(Function)},onRowExpand:Cl.onRowExpand,onScroll:Ts.onScroll,onRowsRendered:Ts.onRowsRendered,rowEventHandlers:Cl.rowEventHandlers}),kW="ElTableV2Header",EW=T({name:kW,props:of,setup(e,{slots:t,expose:n}){const a=de("table-v2"),l=Se("tableV2GridScrollLeft"),r=A(),s=C(()=>tl({width:e.width,height:e.height})),i=C(()=>tl({width:e.rowWidth,height:e.height})),u=C(()=>bn(o(e.headerHeight))),c=h=>{const v=o(r);Ne(()=>{v!=null&&v.scroll&&v.scroll({left:h})})},d=()=>{const h=a.e("fixed-header-row"),{columns:v,fixedHeaderData:m,rowHeight:p}=e;return m==null?void 0:m.map((y,g)=>{var x;const w=tl({height:p,width:"100%"});return(x=t.fixed)==null?void 0:x.call(t,{class:h,columns:v,rowData:y,rowIndex:-(g+1),style:w})})},f=()=>{const h=a.e("dynamic-header-row"),{columns:v}=e;return o(u).map((m,p)=>{var y;const g=tl({width:"100%",height:m});return(y=t.dynamic)==null?void 0:y.call(t,{class:h,columns:v,headerIndex:p,style:g})})};return Wa(()=>{l!=null&&l.value&&c(l.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return q("div",{ref:r,class:e.class,style:o(s),role:"rowgroup"},[q("div",{style:o(i),class:a.e("header")},[f(),d()])])}}});var xW=EW;const MW=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},l)=>{let r=null,s=0,i=0;const u=(d,f)=>{const h=d<=0&&t.value||d>=0&&e.value,v=f<=0&&a.value||f>=0&&n.value;return h&&v};return{hasReachedEdge:u,onWheel:d=>{Il(r);let f=d.deltaX,h=d.deltaY;Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),!(u(s,i)&&u(s+f,i+h))&&(s+=f,i+=h,d.preventDefault(),r=sl(()=>{l(s,i),s=0,i=0}))}}},Lm=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:r,getEstimatedTotalWidth:s,getColumnOffset:i,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:v,validateProps:m})=>T({name:e??"ElVirtualList",props:Ml,emits:[qs,Us],setup(p,{emit:y,expose:g,slots:x}){const w=de("vl");m(p);const b=et(),S=A(h(p,b));v==null||v(b,S);const E=A(),O=A(),I=A(),N=A(null),P=A({isScrolling:!1,scrollLeft:Ie(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:Ie(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:eo,yAxisScrollDir:eo}),L=Qh(),R=C(()=>Number.parseInt(`${p.height}`,10)),K=C(()=>Number.parseInt(`${p.width}`,10)),U=C(()=>{const{totalColumn:$e,totalRow:Te,columnCache:ke}=p,{isScrolling:He,xAxisScrollDir:Ge,scrollLeft:at}=o(P);if($e===0||Te===0)return[0,0,0,0];const nt=a(p,at,o(S)),be=l(p,nt,at,o(S)),je=!He||Ge===Ys?Math.max(1,ke):1,ft=!He||Ge===eo?Math.max(1,ke):1;return[Math.max(0,nt-je),Math.max(0,Math.min($e-1,be+ft)),nt,be]}),H=C(()=>{const{totalColumn:$e,totalRow:Te,rowCache:ke}=p,{isScrolling:He,yAxisScrollDir:Ge,scrollTop:at}=o(P);if($e===0||Te===0)return[0,0,0,0];const nt=d(p,at,o(S)),be=f(p,nt,at,o(S)),je=!He||Ge===Ys?Math.max(1,ke):1,ft=!He||Ge===eo?Math.max(1,ke):1;return[Math.max(0,nt-je),Math.max(0,Math.min(Te-1,be+ft)),nt,be]}),V=C(()=>r(p,o(S))),D=C(()=>s(p,o(S))),B=C(()=>{var $e;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:Ie(p.height)?`${p.height}px`:p.height,width:Ie(p.width)?`${p.width}px`:p.width},($e=p.style)!=null?$e:{}]}),z=C(()=>{const $e=`${o(D)}px`;return{height:`${o(V)}px`,pointerEvents:o(P).isScrolling?"none":void 0,width:$e}}),F=()=>{const{totalColumn:$e,totalRow:Te}=p;if($e>0&&Te>0){const[be,je,ft,Tt]=o(U),[bt,Pt,mt,sn]=o(H);y(qs,{columnCacheStart:be,columnCacheEnd:je,rowCacheStart:bt,rowCacheEnd:Pt,columnVisibleStart:ft,columnVisibleEnd:Tt,rowVisibleStart:mt,rowVisibleEnd:sn})}const{scrollLeft:ke,scrollTop:He,updateRequested:Ge,xAxisScrollDir:at,yAxisScrollDir:nt}=o(P);y(Us,{xAxisScrollDir:at,scrollLeft:ke,yAxisScrollDir:nt,scrollTop:He,updateRequested:Ge})},W=$e=>{const{clientHeight:Te,clientWidth:ke,scrollHeight:He,scrollLeft:Ge,scrollTop:at,scrollWidth:nt}=$e.currentTarget,be=o(P);if(be.scrollTop===at&&be.scrollLeft===Ge)return;let je=Ge;if(V2(p.direction))switch(Xs()){case _r:je=-Ge;break;case Qd:je=nt-ke-Ge;break}P.value={...be,isScrolling:!0,scrollLeft:je,scrollTop:Math.max(0,Math.min(at,He-Te)),updateRequested:!0,xAxisScrollDir:wl(be.scrollLeft,je),yAxisScrollDir:wl(be.scrollTop,at)},Ne(()=>se()),fe(),F()},Z=($e,Te)=>{const ke=o(R),He=(V.value-ke)/Te*$e;oe({scrollTop:Math.min(V.value-ke,He)})},j=($e,Te)=>{const ke=o(K),He=(D.value-ke)/Te*$e;oe({scrollLeft:Math.min(D.value-ke,He)})},{onWheel:ne}=MW({atXStartEdge:C(()=>P.value.scrollLeft<=0),atXEndEdge:C(()=>P.value.scrollLeft>=D.value-o(K)),atYStartEdge:C(()=>P.value.scrollTop<=0),atYEndEdge:C(()=>P.value.scrollTop>=V.value-o(R))},($e,Te)=>{var ke,He,Ge,at;(He=(ke=O.value)==null?void 0:ke.onMouseUp)==null||He.call(ke),(at=(Ge=I.value)==null?void 0:Ge.onMouseUp)==null||at.call(Ge);const nt=o(K),be=o(R);oe({scrollLeft:Math.min(P.value.scrollLeft+$e,D.value-nt),scrollTop:Math.min(P.value.scrollTop+Te,V.value-be)})});wt(E,"wheel",ne,{passive:!1});const oe=({scrollLeft:$e=P.value.scrollLeft,scrollTop:Te=P.value.scrollTop})=>{$e=Math.max($e,0),Te=Math.max(Te,0);const ke=o(P);Te===ke.scrollTop&&$e===ke.scrollLeft||(P.value={...ke,xAxisScrollDir:wl(ke.scrollLeft,$e),yAxisScrollDir:wl(ke.scrollTop,Te),scrollLeft:$e,scrollTop:Te,updateRequested:!0},Ne(()=>se()),fe(),F())},ce=($e=0,Te=0,ke=qn)=>{const He=o(P);Te=Math.max(0,Math.min(Te,p.totalColumn-1)),$e=Math.max(0,Math.min($e,p.totalRow-1));const Ge=I1(w.namespace.value),at=o(S),nt=r(p,at),be=s(p,at);oe({scrollLeft:i(p,Te,ke,He.scrollLeft,at,be>p.width?Ge:0),scrollTop:u(p,$e,ke,He.scrollTop,at,nt>p.height?Ge:0)})},te=($e,Te)=>{const{columnWidth:ke,direction:He,rowHeight:Ge}=p,at=L.value(t&&ke,t&&Ge,t&&He),nt=`${$e},${Te}`;if(vn(at,nt))return at[nt];{const[,be]=n(p,Te,o(S)),je=o(S),ft=V2(He),[Tt,bt]=c(p,$e,je),[Pt]=n(p,Te,je);return at[nt]={position:"absolute",left:ft?void 0:`${be}px`,right:ft?`${be}px`:void 0,top:`${bt}px`,height:`${Tt}px`,width:`${Pt}px`},at[nt]}},se=()=>{P.value.isScrolling=!1,Ne(()=>{L.value(-1,null,null)})};Xe(()=>{if(!ut)return;const{initScrollLeft:$e,initScrollTop:Te}=p,ke=o(E);ke&&(Ie($e)&&(ke.scrollLeft=$e),Ie(Te)&&(ke.scrollTop=Te)),F()});const fe=()=>{const{direction:$e}=p,{scrollLeft:Te,scrollTop:ke,updateRequested:He}=o(P),Ge=o(E);if(He&&Ge){if($e===oo)switch(Xs()){case _r:{Ge.scrollLeft=-Te;break}case Jd:{Ge.scrollLeft=Te;break}default:{const{clientWidth:at,scrollWidth:nt}=Ge;Ge.scrollLeft=nt-at-Te;break}}else Ge.scrollLeft=Math.max(0,Te);Ge.scrollTop=Math.max(0,ke)}},{resetAfterColumnIndex:xe,resetAfterRowIndex:me,resetAfter:le}=b.proxy;g({windowRef:E,innerRef:N,getItemStyleCache:L,scrollTo:oe,scrollToItem:ce,states:P,resetAfterColumnIndex:xe,resetAfterRowIndex:me,resetAfter:le});const we=()=>{const{scrollbarAlwaysOn:$e,scrollbarStartGap:Te,scrollbarEndGap:ke,totalColumn:He,totalRow:Ge}=p,at=o(K),nt=o(R),be=o(D),je=o(V),{scrollLeft:ft,scrollTop:Tt}=o(P),bt=Pe(uc,{ref:O,alwaysOn:$e,startGap:Te,endGap:ke,class:w.e("horizontal"),clientSize:at,layout:"horizontal",onScroll:j,ratio:at*100/be,scrollFrom:ft/(be-at),total:Ge,visible:!0}),Pt=Pe(uc,{ref:I,alwaysOn:$e,startGap:Te,endGap:ke,class:w.e("vertical"),clientSize:nt,layout:"vertical",onScroll:Z,ratio:nt*100/je,scrollFrom:Tt/(je-nt),total:He,visible:!0});return{horizontalScrollbar:bt,verticalScrollbar:Pt}},Le=()=>{var $e;const[Te,ke]=o(U),[He,Ge]=o(H),{data:at,totalColumn:nt,totalRow:be,useIsScrolling:je,itemKey:ft}=p,Tt=[];if(be>0&&nt>0)for(let bt=He;bt<=Ge;bt++)for(let Pt=Te;Pt<=ke;Pt++){const mt=ft({columnIndex:Pt,data:at,rowIndex:bt});Tt.push(Pe(ze,{key:mt},($e=x.default)==null?void 0:$e.call(x,{columnIndex:Pt,data:at,isScrolling:je?o(P).isScrolling:void 0,style:te(bt,Pt),rowIndex:bt})))}return Tt},De=()=>{const $e=Qe(p.innerElement),Te=Le();return[Pe($e,{style:o(z),ref:N},Ve($e)?Te:{default:()=>Te})]};return()=>{const $e=Qe(p.containerElement),{horizontalScrollbar:Te,verticalScrollbar:ke}=we(),He=De();return Pe("div",{key:0,class:w.e("wrapper"),role:p.role},[Pe($e,{class:p.className,style:o(B),onScroll:W,ref:E},Ve($e)?He:{default:()=>He}),Te,ke])}}}),{max:Qs,min:Rm,floor:Bm}=Math,$W={column:"columnWidth",row:"rowHeight"},wc={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},za=(e,t,n,a)=>{const[l,r,s]=[n[a],e[$W[a]],n[wc[a]]];if(t>s){let i=0;if(s>=0){const u=l[s];i=u.offset+u.size}for(let u=s+1;u<=t;u++){const c=r(u);l[u]={offset:i,size:c},i+=c}n[wc[a]]=t}return l[t]},Hm=(e,t,n,a,l,r)=>{for(;n<=a;){const s=n+Bm((a-n)/2),i=za(e,s,t,r).offset;if(i===l)return s;i{const r=l==="column"?e.totalColumn:e.totalRow;let s=1;for(;n{const[l,r]=[t[a],t[wc[a]]];return(r>0?l[r].offset:0)>=n?Hm(e,t,0,r,n,a):TW(e,t,Qs(0,r),n,a)},Dm=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let l=0;if(n>=e&&(n=e-1),n>=0){const i=a[n];l=i.offset+i.size}const s=(e-n-1)*t;return l+s},Fm=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let l=0;if(a>e&&(a=e-1),a>=0){const i=t[a];l=i.offset+i.size}const s=(e-a-1)*n;return l+s},OW={column:Fm,row:Dm},tp=(e,t,n,a,l,r,s)=>{const[i,u]=[r==="row"?e.height:e.width,OW[r]],c=za(e,t,l,r),d=u(e,l),f=Qs(0,Rm(d-i,c.offset)),h=Qs(0,c.offset-i+s+c.size);switch(n===zi&&(a>=h-i&&a<=f+i?n=qn:n=_a),n){case gr:return f;case yr:return h;case _a:return Math.round(h+(f-h)/2);case qn:default:return a>=h&&a<=f?a:h>f||a{const a=za(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=za(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,l,r)=>tp(e,t,n,a,l,"column",r),getRowOffset:(e,t,n,a,l,r)=>tp(e,t,n,a,l,"row",r),getColumnStartIndexForOffset:(e,t,n)=>ep(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const l=za(e,t,a,"column"),r=n+e.width;let s=l.offset+l.size,i=t;for(;iep(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:l,height:r}=e,s=za(e,t,a,"row"),i=n+r;let u=s.size+s.offset,c=t;for(;c{const n=({columnIndex:r,rowIndex:s},i)=>{var u,c;i=vt(i)?!0:i,Ie(r)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,r-1)),Ie(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},a=(r,s)=>{n({columnIndex:r},s)},l=(r,s)=>{n({rowIndex:r},s)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:l,resetAfter:n})},initCache:({estimatedColumnWidth:e=ac,estimatedRowHeight:t=ac})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),IW=Lm({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,l,r,s,i)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,a*t),d=Math.max(0,a*t-n+i+t);switch(l==="smart"&&(r>=d-n&&r<=c+n?l=qn:l=_a),l){case gr:return c;case yr:return d;case _a:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(n/2)?u:f}case qn:default:return r>=d&&r<=c?r:d>c||r{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,a*e),d=Math.max(0,a*e-t+i+e);switch(l===zi&&(r>=d-t&&r<=c+t?l=qn:l=_a),l){case gr:return c;case yr:return d;case _a:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(t/2)?u:f}case qn:default:return r>=d&&r<=c?r:d>c||rMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,l)=>{const r=a*e,s=Math.ceil((n+l-r)/e);return Math.max(0,Math.min(t-1,a+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,l)=>{const r=a*e,s=Math.ceil((n+l-r)/e);return Math.max(0,Math.min(t-1,a+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),PW="ElTableV2Grid",zW=e=>{const t=A(),n=A(),a=A(0),l=C(()=>{const{data:y,rowHeight:g,estimatedRowHeight:x}=e;if(!x)return y.length*g}),r=C(()=>{const{fixedData:y,rowHeight:g}=e;return((y==null?void 0:y.length)||0)*g}),s=C(()=>$s(e.headerHeight)),i=C(()=>{const{height:y}=e;return Math.max(0,y-o(s)-o(r))}),u=C(()=>o(s)+o(r)>0),c=({data:y,rowIndex:g})=>y[g][e.rowKey];function d({rowCacheStart:y,rowCacheEnd:g,rowVisibleStart:x,rowVisibleEnd:w}){var b;(b=e.onRowsRendered)==null||b.call(e,{rowCacheStart:y,rowCacheEnd:g,rowVisibleStart:x,rowVisibleEnd:w})}function f(y,g){var x;(x=n.value)==null||x.resetAfterRowIndex(y,g)}function h(y,g){const x=o(t),w=o(n);ht(y)?(x==null||x.scrollToLeft(y.scrollLeft),a.value=y.scrollLeft,w==null||w.scrollTo(y)):(x==null||x.scrollToLeft(y),a.value=y,w==null||w.scrollTo({scrollLeft:y,scrollTop:g}))}function v(y){var g;(g=o(n))==null||g.scrollTo({scrollTop:y})}function m(y,g){var x;(x=o(n))==null||x.scrollToItem(y,1,g)}function p(){var y,g;(y=o(n))==null||y.$forceUpdate(),(g=o(t))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:p,fixedRowHeight:r,gridHeight:i,hasHeader:u,headerHeight:s,headerRef:t,totalHeight:l,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:h,scrollToTop:v,scrollToRow:m,scrollLeft:a}},AW=T({name:PW,props:Ts,setup(e,{slots:t,expose:n}){const{ns:a}=Se(af),{bodyRef:l,fixedRowHeight:r,gridHeight:s,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:v,resetAfterRowIndex:m,scrollTo:p,scrollToTop:y,scrollToRow:g,scrollLeft:x}=zW(e);it("tableV2GridScrollLeft",x),n({forceUpdate:f,totalHeight:d,scrollTo:p,scrollToTop:y,scrollToRow:g,resetAfterRowIndex:m});const w=()=>e.bodyWidth;return()=>{const{cache:b,columns:S,data:E,fixedData:O,useIsScrolling:I,scrollbarAlwaysOn:N,scrollbarEndGap:P,scrollbarStartGap:L,style:R,rowHeight:K,bodyWidth:U,estimatedRowHeight:H,headerWidth:V,height:D,width:B,getRowHeight:z,onScroll:F}=e,W=Ie(H),Z=W?NW:IW,j=o(c);return q("div",{role:"table",class:[a.e("table"),e.class],style:R},[q(Z,{ref:l,data:E,useIsScrolling:I,itemKey:h,columnCache:0,columnWidth:W?w:U,totalColumn:1,totalRow:E.length,rowCache:b,rowHeight:W?z:K,width:B,height:o(s),class:a.e("body"),role:"rowgroup",scrollbarStartGap:L,scrollbarEndGap:P,scrollbarAlwaysOn:N,onScroll:F,onItemRendered:v,perfMode:!1},{default:ne=>{var oe;const ce=E[ne.rowIndex];return(oe=t.row)==null?void 0:oe.call(t,{...ne,columns:S,rowData:ce})}}),o(i)&&q(xW,{ref:u,class:a.e("header-wrapper"),columns:S,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:O,rowWidth:V,rowHeight:K,width:B,height:Math.min(j+o(r),D)},{dynamic:t.header,fixed:t.row})])}}});var rf=AW;function VW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const LW=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return q(rf,tt({ref:n},a),VW(t)?t:{default:()=>[t]})};var RW=LW;function BW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const HW=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return q(rf,tt({ref:n},a),BW(t)?t:{default:()=>[t]})};var DW=HW;function FW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const KW=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return q(rf,tt({ref:n},a),FW(t)?t:{default:()=>[t]})};var WW=KW;const jW=e=>{const{isScrolling:t}=Se(af),n=A(!1),a=A(),l=C(()=>Ie(e.estimatedRowHeight)&&e.rowIndex>=0),r=(u=!1)=>{const c=o(a);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:v,style:m}=e,{height:p}=c.getBoundingClientRect();n.value=!0,Ne(()=>{if(u||p!==Number.parseInt(m.height)){const y=d[0],g=(y==null?void 0:y.placeholderSign)===Sr;f==null||f({rowKey:h,height:p,rowIndex:v},y&&!g&&y.fixed)}})},s=C(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},v={};return Object.entries(h).forEach(([m,p])=>{Je(p)&&(v[m]=y=>{p({event:y,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:p})=>{const y=v[m];v[m]=g=>{f({event:g,hovered:p,rowData:u,rowIndex:c,rowKey:d}),y==null||y(g)}}),v}),i=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:h}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:h})};return Xe(()=>{o(l)&&r(!0)}),{isScrolling:t,measurable:l,measured:n,rowRef:a,eventHandlers:s,onExpand:i}},qW="ElTableV2TableRow",UW=T({name:qW,props:Cl,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:l,isScrolling:r,measurable:s,measured:i,rowRef:u,onExpand:c}=jW(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:v,rowData:m,rowIndex:p,style:y}=e;let g=d.map((x,w)=>{const b=Ee(m.children)&&m.children.length>0&&x.key===h;return n.cell({column:x,columns:d,columnIndex:w,depth:v,style:f[x.key],rowData:m,rowIndex:p,isScrolling:o(r),expandIconProps:b?{rowData:m,rowIndex:p,onExpand:c}:void 0})});if(n.row&&(g=n.row({cells:g.map(x=>Ee(x)&&x.length===1?x[0]:x),style:y,columns:d,depth:v,rowData:m,rowIndex:p,isScrolling:o(r)})),o(s)){const{height:x,...w}=y||{},b=o(i);return q("div",tt({ref:u,class:e.class,style:b?y:w,role:"row"},a,o(l)),[g])}return q("div",tt(a,{ref:u,class:e.class,style:y,role:"row"},o(l)),[g])}}});var YW=UW;function GW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const XW=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:l,expandColumnKey:r,expandedRowKeys:s,estimatedRowHeight:i,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:h,rowProps:v,rowClass:m,rowKey:p,rowEventHandlers:y,ns:g,onRowHovered:x,onRowExpanded:w}=e,b=zl(m,{columns:n,rowData:c,rowIndex:d},""),S=zl(v,{columns:n,rowData:c,rowIndex:d}),E=c[p],O=l[E]||0,I=!!r,N=d<0,P=[g.e("row"),b,{[g.e(`row-depth-${O}`)]:I&&d>=0,[g.is("expanded")]:I&&s.includes(E),[g.is("fixed")]:!O&&N,[g.is("customized")]:!!t.row}],L=u?x:void 0,R={...S,columns:n,columnsStyles:a,class:P,depth:O,expandColumnKey:r,estimatedRowHeight:N?void 0:i,isScrolling:h,rowIndex:d,rowData:c,rowKey:E,rowEventHandlers:y,style:f};return q(YW,tt(R,{onRowExpand:w,onMouseenter:H=>{L==null||L({hovered:!0,rowKey:E,event:H,rowData:c,rowIndex:d})},onMouseleave:H=>{L==null||L({hovered:!1,rowKey:E,event:H,rowData:c,rowIndex:d})},rowkey:E}),GW(t)?t:{default:()=>[t]})};var ZW=XW;const sf=(e,{slots:t})=>{var n;const{cellData:a,style:l}=e,r=((n=a==null?void 0:a.toString)==null?void 0:n.call(a))||"",s=Q(t,"default",e,()=>[r]);return q("div",{class:e.class,title:r,style:l},[s])};sf.displayName="ElTableV2Cell";sf.inheritAttrs=!1;var JW=sf;const QW=e=>{const{expanded:t,expandable:n,onExpand:a,style:l,size:r}=e,s={onClick:n?()=>a(!t):void 0,class:e.class};return q(Me,tt(s,{size:r,style:l}),{default:()=>[q(En,null,null)]})};var ej=QW;const Km=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:l,isScrolling:r,rowData:s,rowIndex:i,style:u,expandedRowKeys:c,ns:d,cellProps:f,expandColumnKey:h,indentSize:v,iconSize:m,rowKey:p},{slots:y})=>{const g=tl(u);if(t.placeholderSign===Sr)return q("div",{class:d.em("row-cell","placeholder"),style:g},null);const{cellRenderer:x,dataKey:w,dataGetter:b}=t,S=Je(b)?b({columns:e,column:t,columnIndex:n,rowData:s,rowIndex:i}):Kt(s,w??""),E=zl(f,{cellData:S,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:s}),O={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:S,isScrolling:r,rowData:s,rowIndex:i},I=Pm(x),N=I?I(O):Q(y,"default",O,()=>[q(JW,O,null)]),P=[d.e("row-cell"),t.class,t.align===Cr.CENTER&&d.is("align-center"),t.align===Cr.RIGHT&&d.is("align-right")],L=i>=0&&h&&t.key===h,R=i>=0&&c.includes(s[p]);let K;const U=`margin-inline-start: ${a*v}px;`;return L&&(ht(l)?K=q(ej,tt(l,{class:[d.e("expand-icon"),d.is("expanded",R)],size:m,expanded:R,style:U,expandable:!0}),null):K=q("div",{style:[U,`width: ${m}px; height: ${m}px;`].join(" ")},null)),q("div",tt({class:P,style:g},E,{role:"cell"}),[K,N])};Km.inheritAttrs=!1;var np=Km;const tj=pe({class:String,columns:Rr,columnsStyles:{type:X(Object),required:!0},headerIndex:Number,style:{type:X(Object)}}),nj=T({name:"ElTableV2HeaderRow",props:tj,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:l,style:r}=e;let s=n.map((i,u)=>t.cell({columns:n,column:i,columnIndex:u,headerIndex:l,style:a[i.key]}));return t.header&&(s=t.header({cells:s.map(i=>Ee(i)&&i.length===1?i[0]:i),columns:n,headerIndex:l})),q("div",{class:e.class,style:r,role:"row"},[s])}}});var aj=nj;function lj(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const oj=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:l,headerProps:r,ns:s},{slots:i})=>{const u={columns:e,headerIndex:n},c=[s.e("header-row"),zl(l,u,""),{[s.is("customized")]:!!i.header}],d={...zl(r,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:a};return q(aj,d,lj(i)?i:{default:()=>[i]})};var rj=oj;const uf=(e,{slots:t})=>Q(t,"default",e,()=>{var n,a;return[q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(a=e.column)==null?void 0:a.title])]});uf.displayName="ElTableV2HeaderCell";uf.inheritAttrs=!1;var sj=uf;const ij=e=>{const{sortOrder:t}=e;return q(Me,{size:14,class:e.class},{default:()=>[t===wr.ASC?q(J1,null,null):q(Z1,null,null)]})};var uj=ij;const cj=(e,{slots:t})=>{const{column:n,ns:a,style:l,onColumnSorted:r}=e,s=tl(l);if(n.placeholderSign===Sr)return q("div",{class:a.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:i,headerClass:u,sortable:c}=n,d={...e,class:a.e("header-cell-text")},f=Pm(i),h=f?f(d):Q(t,"default",d,()=>[q(sj,d,null)]),{sortBy:v,sortState:m,headerCellProps:p}=e;let y,g;if(m){const b=m[n.key];y=!!bc[b],g=y?b:wr.ASC}else y=n.key===v.key,g=y?v.order:wr.ASC;const x=[a.e("header-cell"),zl(u,e,""),n.align===Cr.CENTER&&a.is("align-center"),n.align===Cr.RIGHT&&a.is("align-right"),c&&a.is("sortable")],w={...zl(p,e),onClick:n.sortable?r:void 0,class:x,style:s,"data-key":n.key};return q("div",tt(w,{role:"columnheader"}),[h,c&&q(uj,{class:[a.e("sort-icon"),y&&a.is("sorting")],sortOrder:g},null)])};var ap=cj;const Wm=(e,{slots:t})=>{var n;return q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};Wm.displayName="ElTableV2Footer";var dj=Wm;const jm=(e,{slots:t})=>{const n=Q(t,"default",{},()=>[q(Rh,null,null)]);return q("div",{class:e.class,style:e.style},[n])};jm.displayName="ElTableV2Empty";var fj=jm;const qm=(e,{slots:t})=>{var n;return q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};qm.displayName="ElTableV2Overlay";var pj=qm;function qo(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const vj="ElTableV2",hj=T({name:vj,props:SW,setup(e,{slots:t,expose:n}){const a=de("table-v2"),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,mainColumns:i,mainTableHeight:u,fixedTableHeight:c,leftTableWidth:d,rightTableWidth:f,data:h,depthMap:v,expandedRowKeys:m,hasFixedColumns:p,mainTableRef:y,leftTableRef:g,rightTableRef:x,isDynamic:w,isResetting:b,isScrolling:S,bodyWidth:E,emptyStyle:O,rootStyle:I,headerWidth:N,footerHeight:P,showEmpty:L,scrollTo:R,scrollToLeft:K,scrollToTop:U,scrollToRow:H,getRowHeight:V,onColumnSorted:D,onRowHeightChange:B,onRowHovered:z,onRowExpanded:F,onRowsRendered:W,onScroll:Z,onVerticalScroll:j}=wW(e);return n({scrollTo:R,scrollToLeft:K,scrollToTop:U,scrollToRow:H}),it(af,{ns:a,isResetting:b,isScrolling:S}),()=>{const{cache:ne,cellProps:oe,estimatedRowHeight:ce,expandColumnKey:te,fixedData:se,headerHeight:fe,headerClass:xe,headerProps:me,headerCellProps:le,sortBy:we,sortState:Le,rowHeight:De,rowClass:Ye,rowEventHandlers:$e,rowKey:Te,rowProps:ke,scrollbarAlwaysOn:He,indentSize:Ge,iconSize:at,useIsScrolling:nt,vScrollbarSize:be,width:je}=e,ft=o(h),Tt={cache:ne,class:a.e("main"),columns:o(i),data:ft,fixedData:se,estimatedRowHeight:ce,bodyWidth:o(E)+be,headerHeight:fe,headerWidth:o(N),height:o(u),mainTableRef:y,rowKey:Te,rowHeight:De,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:be,useIsScrolling:nt,width:je,getRowHeight:V,onRowsRendered:W,onScroll:Z},bt=o(d),Pt=o(c),mt={cache:ne,class:a.e("left"),columns:o(r),data:ft,estimatedRowHeight:ce,leftTableRef:g,rowHeight:De,bodyWidth:bt,headerWidth:bt,headerHeight:fe,height:Pt,rowKey:Te,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:be,useIsScrolling:nt,width:bt,getRowHeight:V,onScroll:j},Wt=o(f)+be,re={cache:ne,class:a.e("right"),columns:o(s),data:ft,estimatedRowHeight:ce,rightTableRef:x,rowHeight:De,bodyWidth:Wt,headerWidth:Wt,headerHeight:fe,height:Pt,rowKey:Te,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:be,width:Wt,style:`--${o(a.namespace)}-table-scrollbar-size: ${be}px`,useIsScrolling:nt,getRowHeight:V,onScroll:j},J=o(l),ie={ns:a,depthMap:o(v),columnsStyles:J,expandColumnKey:te,expandedRowKeys:o(m),estimatedRowHeight:ce,hasFixedColumns:o(p),rowProps:ke,rowClass:Ye,rowKey:Te,rowEventHandlers:$e,onRowHovered:z,onRowExpanded:F,onRowHeightChange:B},Y={cellProps:oe,expandColumnKey:te,indentSize:Ge,iconSize:at,rowKey:Te,expandedRowKeys:o(m),ns:a},ye={ns:a,headerClass:xe,headerProps:me,columnsStyles:J},Fe={ns:a,sortBy:we,sortState:Le,headerCellProps:le,onColumnSorted:D},lt={row:Jt=>q(ZW,tt(Jt,ie),{row:t.row,cell:Mt=>{let ln;return t.cell?q(np,tt(Mt,Y,{style:J[Mt.column.key]}),qo(ln=t.cell(Mt))?ln:{default:()=>[ln]}):q(np,tt(Mt,Y,{style:J[Mt.column.key]}),null)}}),header:Jt=>q(rj,tt(Jt,ye),{header:t.header,cell:Mt=>{let ln;return t["header-cell"]?q(ap,tt(Mt,Fe,{style:J[Mt.column.key]}),qo(ln=t["header-cell"](Mt))?ln:{default:()=>[ln]}):q(ap,tt(Mt,Fe,{style:J[Mt.column.key]}),null)}})},Nt=[e.class,a.b(),a.e("root"),{[a.is("dynamic")]:o(w)}],Ut={class:a.e("footer"),style:o(P)};return q("div",{class:Nt,style:o(I)},[q(RW,Tt,qo(lt)?lt:{default:()=>[lt]}),q(DW,mt,qo(lt)?lt:{default:()=>[lt]}),q(WW,re,qo(lt)?lt:{default:()=>[lt]}),t.footer&&q(dj,Ut,{default:t.footer}),o(L)&&q(fj,{class:a.e("empty"),style:o(O)},{default:t.empty}),t.overlay&&q(pj,{class:a.e("overlay")},{default:t.overlay})])}}});var mj=hj;const gj=pe({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:X(Function)}}),yj=e=>{const t=A(),n=A(0),a=A(0);let l;return Xe(()=>{l=At(t,([r])=>{const{width:s,height:i}=r.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(r.target),h=Number.parseInt(u)||0,v=Number.parseInt(c)||0,m=Number.parseInt(d)||0,p=Number.parseInt(f)||0;n.value=s-h-v,a.value=i-m-p}).stop}),$t(()=>{l==null||l()}),ue([n,a],([r,s])=>{var i;(i=e.onResize)==null||i.call(e,{width:r,height:s})}),{sizer:t,width:n,height:a}},_j=T({name:"ElAutoResizer",props:gj,setup(e,{slots:t}){const n=de("auto-resizer"),{height:a,width:l,sizer:r}=yj(e),s={width:"100%",height:"100%"};return()=>{var i;return q("div",{ref:r,class:n.b(),style:s},[(i=t.default)==null?void 0:i.call(t,{height:a.value,width:l.value})])}}});var bj=_j;const wj=We(mj),Cj=We(bj),Ai=Symbol("tabsRootContextKey"),Sj=pe({tabs:{type:X(Array),default:()=>Vt([])}}),Um="ElTabBar",kj=T({name:Um}),Ej=T({...kj,props:Sj,setup(e,{expose:t}){const n=e,a=et(),l=Se(Ai);l||Gt(Um,"");const r=de("tabs"),s=A(),i=A(),u=()=>{let v=0,m=0;const p=["top","bottom"].includes(l.props.tabPosition)?"width":"height",y=p==="width"?"x":"y",g=y==="x"?"left":"top";return n.tabs.every(x=>{var w,b;const S=(b=(w=a.parent)==null?void 0:w.refs)==null?void 0:b[`tab-${x.uid}`];if(!S)return!1;if(!x.active)return!0;v=S[`offset${ya(g)}`],m=S[`client${ya(p)}`];const E=window.getComputedStyle(S);return p==="width"&&(m-=Number.parseFloat(E.paddingLeft)+Number.parseFloat(E.paddingRight),v+=Number.parseFloat(E.paddingLeft)),!1}),{[p]:`${m}px`,transform:`translate${ya(y)}(${v}px)`}},c=()=>i.value=u(),d=[],f=()=>{var v;d.forEach(p=>p.stop()),d.length=0;const m=(v=a.parent)==null?void 0:v.refs;if(m){for(const p in m)if(p.startsWith("tab-")){const y=m[p];y&&d.push(At(y,c))}}};ue(()=>n.tabs,async()=>{await Ne(),c(),f()},{immediate:!0});const h=At(s,()=>c());return $t(()=>{d.forEach(v=>v.stop()),d.length=0,h.stop()}),t({ref:s,update:c}),(v,m)=>(_(),M("div",{ref_key:"barRef",ref:s,class:$([o(r).e("active-bar"),o(r).is(o(l).props.tabPosition)]),style:Oe(i.value)},null,6))}});var xj=ve(Ej,[["__file","tab-bar.vue"]]);const Mj=pe({panes:{type:X(Array),default:()=>Vt([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),$j={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},lp="ElTabNav",Tj=T({name:lp,props:Mj,emits:$j,setup(e,{expose:t,emit:n}){const a=Se(Ai);a||Gt(lp,"");const l=de("tabs"),r=U_(),s=ob(),i=A(),u=A(),c=A(),d=A(),f=A(!1),h=A(0),v=A(!1),m=A(!0),p=C(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),y=C(()=>({transform:`translate${p.value==="width"?"X":"Y"}(-${h.value}px)`})),g=()=>{if(!i.value)return;const I=i.value[`offset${ya(p.value)}`],N=h.value;if(!N)return;const P=N>I?N-I:0;h.value=P},x=()=>{if(!i.value||!u.value)return;const I=u.value[`offset${ya(p.value)}`],N=i.value[`offset${ya(p.value)}`],P=h.value;if(I-P<=N)return;const L=I-P>N*2?P+N:I-N;h.value=L},w=async()=>{const I=u.value;if(!f.value||!c.value||!i.value||!I)return;await Ne();const N=c.value.querySelector(".is-active");if(!N)return;const P=i.value,L=["top","bottom"].includes(a.props.tabPosition),R=N.getBoundingClientRect(),K=P.getBoundingClientRect(),U=L?I.offsetWidth-K.width:I.offsetHeight-K.height,H=h.value;let V=H;L?(R.leftK.right&&(V=H+R.right-K.right)):(R.topK.bottom&&(V=H+(R.bottom-K.bottom))),V=Math.max(V,0),h.value=Math.min(V,U)},b=()=>{var I;if(!u.value||!i.value)return;e.stretch&&((I=d.value)==null||I.update());const N=u.value[`offset${ya(p.value)}`],P=i.value[`offset${ya(p.value)}`],L=h.value;P0&&(h.value=0))},S=I=>{let N=0;switch(I.code){case Ce.left:case Ce.up:N=-1;break;case Ce.right:case Ce.down:N=1;break;default:return}const P=Array.from(I.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let R=P.indexOf(I.target)+N;R<0?R=P.length-1:R>=P.length&&(R=0),P[R].focus({preventScroll:!0}),P[R].click(),E()},E=()=>{m.value&&(v.value=!0)},O=()=>v.value=!1;return ue(r,I=>{I==="hidden"?m.value=!1:I==="visible"&&setTimeout(()=>m.value=!0,50)}),ue(s,I=>{I?setTimeout(()=>m.value=!0,50):m.value=!1}),At(c,b),Xe(()=>setTimeout(()=>w(),0)),Wa(()=>b()),t({scrollToActiveTab:w,removeFocus:O}),()=>{const I=f.value?[q("span",{class:[l.e("nav-prev"),l.is("disabled",!f.value.prev)],onClick:g},[q(Me,null,{default:()=>[q(La,null,null)]})]),q("span",{class:[l.e("nav-next"),l.is("disabled",!f.value.next)],onClick:x},[q(Me,null,{default:()=>[q(En,null,null)]})])]:null,N=e.panes.map((P,L)=>{var R,K,U,H;const V=P.uid,D=P.props.disabled,B=(K=(R=P.props.name)!=null?R:P.index)!=null?K:`${L}`,z=!D&&(P.isClosable||e.editable);P.index=`${L}`;const F=z?q(Me,{class:"is-icon-close",onClick:j=>n("tabRemove",P,j)},{default:()=>[q(Xn,null,null)]}):null,W=((H=(U=P.slots).label)==null?void 0:H.call(U))||P.props.label,Z=!D&&P.active?0:-1;return q("div",{ref:`tab-${V}`,class:[l.e("item"),l.is(a.props.tabPosition),l.is("active",P.active),l.is("disabled",D),l.is("closable",z),l.is("focus",v.value)],id:`tab-${B}`,key:`tab-${V}`,"aria-controls":`pane-${B}`,role:"tab","aria-selected":P.active,tabindex:Z,onFocus:()=>E(),onBlur:()=>O(),onClick:j=>{O(),n("tabClick",P,B,j)},onKeydown:j=>{z&&(j.code===Ce.delete||j.code===Ce.backspace)&&n("tabRemove",P,j)}},[W,F])});return q("div",{ref:c,class:[l.e("nav-wrap"),l.is("scrollable",!!f.value),l.is(a.props.tabPosition)]},[I,q("div",{class:l.e("nav-scroll"),ref:i},[q("div",{class:[l.e("nav"),l.is(a.props.tabPosition),l.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:y.value,role:"tablist",onKeydown:S},[e.type?null:q(xj,{ref:d,tabs:[...e.panes]},null),N])])])}}}),Oj=pe({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:X(Function),default:()=>!0},stretch:Boolean}),gu=e=>Ve(e)||Ie(e),Nj={[Ue]:e=>gu(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>gu(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>gu(e),tabAdd:()=>!0},Ij=T({name:"ElTabs",props:Oj,emits:Nj,setup(e,{emit:t,slots:n,expose:a}){var l;const r=de("tabs"),s=C(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:u,removeChild:c}=$d(et(),"ElTabPane"),d=A(),f=A((l=e.modelValue)!=null?l:"0"),h=async(g,x=!1)=>{var w,b;if(!(f.value===g||vt(g)))try{let S;if(e.beforeLeave){const E=e.beforeLeave(g,f.value);S=E instanceof Promise?await E:E}else S=!0;S!==!1&&(f.value=g,x&&(t(Ue,g),t("tabChange",g)),(b=(w=d.value)==null?void 0:w.removeFocus)==null||b.call(w))}catch{}},v=(g,x,w)=>{g.props.disabled||(h(x,!0),t("tabClick",g,w))},m=(g,x)=>{g.props.disabled||vt(g.props.name)||(x.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},p=()=>{t("edit",void 0,"add"),t("tabAdd")};ue(()=>e.modelValue,g=>h(g)),ue(f,async()=>{var g;await Ne(),(g=d.value)==null||g.scrollToActiveTab()}),it(Ai,{props:e,currentName:f,registerPane:g=>{i.value.push(g)},sortPane:u,unregisterPane:c}),a({currentName:f});const y=({render:g})=>g();return()=>{const g=n["add-icon"],x=e.editable||e.addable?q("div",{class:[r.e("new-tab"),s.value&&r.e("new-tab-vertical")],tabindex:"0",onClick:p,onKeydown:S=>{[Ce.enter,Ce.numpadEnter].includes(S.code)&&p()}},[g?Q(n,"add-icon"):q(Me,{class:r.is("icon-plus")},{default:()=>[q(id,null,null)]})]):null,w=q("div",{class:[r.e("header"),s.value&&r.e("header-vertical"),r.is(e.tabPosition)]},[q(y,{render:()=>{const S=i.value.some(E=>E.slots.label);return q(Tj,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:m},{$stable:!S})}},null),x]),b=q("div",{class:r.e("content")},[Q(n,"default")]);return q("div",{class:[r.b(),r.m(e.tabPosition),{[r.m("card")]:e.type==="card",[r.m("border-card")]:e.type==="border-card"}]},[b,w])}}});var Pj=Ij;const zj=pe({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Ym="ElTabPane",Aj=T({name:Ym}),Vj=T({...Aj,props:zj,setup(e){const t=e,n=et(),a=Xt(),l=Se(Ai);l||Gt(Ym,"usage: ");const r=de("tab-pane"),s=A(),i=C(()=>t.closable||l.props.closable),u=Nu(()=>{var v;return l.currentName.value===((v=t.name)!=null?v:s.value)}),c=A(u.value),d=C(()=>{var v;return(v=t.name)!=null?v:s.value}),f=Nu(()=>!t.lazy||c.value||u.value);ue(u,v=>{v&&(c.value=!0)});const h=_t({uid:n.uid,slots:a,props:t,paneName:d,active:u,index:s,isClosable:i});return l.registerPane(h),Xe(()=>{l.sortPane(h)}),Mo(()=>{l.unregisterPane(h.uid)}),(v,m)=>o(f)?qe((_(),M("div",{key:0,id:`pane-${o(d)}`,class:$(o(r).b()),role:"tabpanel","aria-hidden":!o(u),"aria-labelledby":`tab-${o(d)}`},[Q(v.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[pt,o(u)]]):ee("v-if",!0)}});var Gm=ve(Vj,[["__file","tab-pane.vue"]]);const Lj=We(Pj,{TabPane:Gm}),Rj=Lt(Gm),Bj=pe({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:xa,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Hj=T({name:"ElText"}),Dj=T({...Hj,props:Bj,setup(e){const t=e,n=A(),a=jt(),l=de("text"),r=C(()=>[l.b(),l.m(t.type),l.m(a.value),l.is("truncated",t.truncated),l.is("line-clamp",!vt(t.lineClamp))]),s=Ka().title,i=()=>{var u,c,d,f,h;if(s)return;let v=!1;const m=((u=n.value)==null?void 0:u.textContent)||"";if(t.truncated){const p=(c=n.value)==null?void 0:c.offsetWidth,y=(d=n.value)==null?void 0:d.scrollWidth;p&&y&&y>p&&(v=!0)}else if(!vt(t.lineClamp)){const p=(f=n.value)==null?void 0:f.offsetHeight,y=(h=n.value)==null?void 0:h.scrollHeight;p&&y&&y>p&&(v=!0)}v?n.value.setAttribute("title",m):n.value.removeAttribute("title")};return Xe(i),Wa(i),(u,c)=>(_(),ae(Qe(u.tag),{ref_key:"textRef",ref:n,class:$(o(r)),style:Oe({"-webkit-line-clamp":u.lineClamp})},{default:G(()=>[Q(u.$slots,"default")]),_:3},8,["class","style"]))}});var Fj=ve(Dj,[["__file","text.vue"]]);const Kj=We(Fj),Wj=pe({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:X(String),default:"light"},clearable:{type:Boolean,default:!0},size:qt,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,includeEndTime:{type:Boolean,default:!1},name:String,prefixIcon:{type:X([String,Object]),default:()=>sd},clearIcon:{type:X([String,Object]),default:()=>$a},...Po}),Va=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),l=e.toUpperCase();return l.includes("AM")&&n===12?n=0:l.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},yu=(e,t)=>{const n=Va(e);if(!n)return-1;const a=Va(t);if(!a)return-1;const l=n.minutes+n.hours*60,r=a.minutes+a.hours*60;return l===r?0:l>r?1:-1},op=e=>`${e}`.padStart(2,"0"),Zl=e=>`${op(e.hours)}:${op(e.minutes)}`,jj=(e,t)=>{const n=Va(e);if(!n)return"";const a=Va(t);if(!a)return"";const l={hours:n.hours,minutes:n.minutes};return l.minutes+=a.minutes,l.hours+=a.hours,l.hours+=Math.floor(l.minutes/60),l.minutes=l.minutes%60,Zl(l)},qj=T({name:"ElTimeSelect"}),Uj=T({...qj,props:Wj,emits:["change","blur","focus","clear","update:modelValue"],setup(e,{expose:t}){const n=e;Be.extend(Id);const{Option:a}=Pl,l=de("input"),r=A(),s=gn(),{lang:i}=ct(),u=C(()=>n.modelValue),c=C(()=>{const g=Va(n.start);return g?Zl(g):null}),d=C(()=>{const g=Va(n.end);return g?Zl(g):null}),f=C(()=>{const g=Va(n.step);return g?Zl(g):null}),h=C(()=>{const g=Va(n.minTime||"");return g?Zl(g):null}),v=C(()=>{const g=Va(n.maxTime||"");return g?Zl(g):null}),m=C(()=>{var g;const x=[],w=(b,S)=>{x.push({value:b,disabled:yu(S,h.value||"-1:-1")<=0||yu(S,v.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let b=c.value,S;for(;b&&d.value&&yu(b,d.value)<=0;)S=Be(b,"HH:mm").locale(i.value).format(n.format),w(S,b),b=jj(b,f.value);if(n.includeEndTime&&d.value&&((g=x[x.length-1])==null?void 0:g.value)!==d.value){const E=Be(d.value,"HH:mm").locale(i.value).format(n.format);w(E,d.value)}}return x});return t({blur:()=>{var g,x;(x=(g=r.value)==null?void 0:g.blur)==null||x.call(g)},focus:()=>{var g,x;(x=(g=r.value)==null?void 0:g.focus)==null||x.call(g)}}),(g,x)=>(_(),ae(o(Pl),{ref_key:"select",ref:r,"model-value":o(u),disabled:o(s),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"empty-values":g.emptyValues,"value-on-clear":g.valueOnClear,"onUpdate:modelValue":w=>g.$emit("update:modelValue",w),onChange:w=>g.$emit("change",w),onBlur:w=>g.$emit("blur",w),onFocus:w=>g.$emit("focus",w),onClear:()=>g.$emit("clear")},{prefix:G(()=>[g.prefixIcon?(_(),ae(o(Me),{key:0,class:$(o(l).e("prefix-icon"))},{default:G(()=>[(_(),ae(Qe(g.prefixIcon)))]),_:1},8,["class"])):ee("v-if",!0)]),default:G(()=>[(_(!0),M(ze,null,rt(o(m),w=>(_(),ae(o(a),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var Yj=ve(Uj,[["__file","time-select.vue"]]);const Gj=We(Yj),Xj=T({name:"ElTimeline",setup(e,{slots:t}){const n=de("timeline");return it("timeline",t),()=>Pe("ul",{class:[n.b()]},[Q(t,"default")])}}),Zj=pe({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:St},hollow:Boolean}),Jj=T({name:"ElTimelineItem"}),Qj=T({...Jj,props:Zj,setup(e){const t=e,n=de("timeline-item"),a=C(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(l,r)=>(_(),M("li",{class:$([o(n).b(),{[o(n).e("center")]:l.center}])},[k("div",{class:$(o(n).e("tail"))},null,2),l.$slots.dot?ee("v-if",!0):(_(),M("div",{key:0,class:$(o(a)),style:Oe({backgroundColor:l.color})},[l.icon?(_(),ae(o(Me),{key:0,class:$(o(n).e("icon"))},{default:G(()=>[(_(),ae(Qe(l.icon)))]),_:1},8,["class"])):ee("v-if",!0)],6)),l.$slots.dot?(_(),M("div",{key:1,class:$(o(n).e("dot"))},[Q(l.$slots,"dot")],2)):ee("v-if",!0),k("div",{class:$(o(n).e("wrapper"))},[!l.hideTimestamp&&l.placement==="top"?(_(),M("div",{key:0,class:$([o(n).e("timestamp"),o(n).is("top")])},he(l.timestamp),3)):ee("v-if",!0),k("div",{class:$(o(n).e("content"))},[Q(l.$slots,"default")],2),!l.hideTimestamp&&l.placement==="bottom"?(_(),M("div",{key:1,class:$([o(n).e("timestamp"),o(n).is("bottom")])},he(l.timestamp),3)):ee("v-if",!0)],2)],2))}});var Xm=ve(Qj,[["__file","timeline-item.vue"]]);const eq=We(Xj,{TimelineItem:Xm}),tq=Lt(Xm),Zm=pe({nowrap:Boolean});var Jm=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(Jm||{});const nq=Object.values(Jm),cf=pe({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:X(Object),default:null}}),aq=pe({side:{type:X(String),values:nq,required:!0}}),lq=["absolute","fixed"],oq=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],df=pe({arrowPadding:{type:X(Number),default:5},effect:{type:X(String),default:"light"},contentClass:String,placement:{type:X(String),values:oq,default:"bottom"},reference:{type:X(Object),default:null},offset:{type:Number,default:8},strategy:{type:X(String),values:lq,default:"absolute"},showArrow:Boolean,...rn(["ariaLabel"])}),ff=pe({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:X(Function)},"onUpdate:open":{type:X(Function)}}),Ul={type:X(Function)},pf=pe({onBlur:Ul,onClick:Ul,onFocus:Ul,onMouseDown:Ul,onMouseEnter:Ul,onMouseLeave:Ul}),rq=pe({...ff,...cf,...pf,...df,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:X(Object),default:null},teleported:Boolean,to:{type:X(String),default:"body"}}),Vi=Symbol("tooltipV2"),Qm=Symbol("tooltipV2Content"),_u="tooltip_v2.open",sq=T({name:"ElTooltipV2Root"}),iq=T({...sq,props:ff,setup(e,{expose:t}){const n=e,a=A(n.defaultOpen),l=A(null),r=C({get:()=>ua(n.open)?a.value:n.open,set:y=>{var g;a.value=y,(g=n["onUpdate:open"])==null||g.call(n,y)}}),s=C(()=>Ie(n.delayDuration)&&n.delayDuration>0),{start:i,stop:u}=Nl(()=>{r.value=!0},C(()=>n.delayDuration),{immediate:!1}),c=de("tooltip-v2"),d=on(),f=()=>{u(),r.value=!0},h=()=>{o(s)?i():f()},v=f,m=()=>{u(),r.value=!1};return ue(r,y=>{var g;y&&(document.dispatchEvent(new CustomEvent(_u)),v()),(g=n.onOpenChange)==null||g.call(n,y)}),Xe(()=>{document.addEventListener(_u,m)}),$t(()=>{u(),document.removeEventListener(_u,m)}),it(Vi,{contentId:d,triggerRef:l,ns:c,onClose:m,onDelayOpen:h,onOpen:v}),t({onOpen:v,onClose:m}),(y,g)=>Q(y.$slots,"default",{open:o(r)})}});var uq=ve(iq,[["__file","root.vue"]]);const cq=T({name:"ElTooltipV2Arrow"}),dq=T({...cq,props:{...cf,...aq},setup(e){const t=e,{ns:n}=Se(Vi),{arrowRef:a}=Se(Qm),l=C(()=>{const{style:r,width:s,height:i}=t,u=n.namespace.value;return{[`--${u}-tooltip-v2-arrow-width`]:`${s}px`,[`--${u}-tooltip-v2-arrow-height`]:`${i}px`,[`--${u}-tooltip-v2-arrow-border-width`]:`${s/2}px`,[`--${u}-tooltip-v2-arrow-cover-width`]:s/2-1,...r||{}}});return(r,s)=>(_(),M("span",{ref_key:"arrowRef",ref:a,style:Oe(o(l)),class:$(o(n).e("arrow"))},null,6))}});var rp=ve(dq,[["__file","arrow.vue"]]);const Co=Math.min,$l=Math.max,ei=Math.round,ls=Math.floor,wa=e=>({x:e,y:e}),fq={left:"right",right:"left",bottom:"top",top:"bottom"},pq={start:"end",end:"start"};function Cc(e,t,n){return $l(e,Co(t,n))}function Br(e,t){return typeof e=="function"?e(t):e}function Al(e){return e.split("-")[0]}function Hr(e){return e.split("-")[1]}function e4(e){return e==="x"?"y":"x"}function vf(e){return e==="y"?"height":"width"}function So(e){return["top","bottom"].includes(Al(e))?"y":"x"}function hf(e){return e4(So(e))}function vq(e,t,n){n===void 0&&(n=!1);const a=Hr(e),l=hf(e),r=vf(l);let s=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=ti(s)),[s,ti(s)]}function hq(e){const t=ti(e);return[Sc(e),t,Sc(t)]}function Sc(e){return e.replace(/start|end/g,t=>pq[t])}function mq(e,t,n){const a=["left","right"],l=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?l:a:t?a:l;case"left":case"right":return t?r:s;default:return[]}}function gq(e,t,n,a){const l=Hr(e);let r=mq(Al(e),n==="start",a);return l&&(r=r.map(s=>s+"-"+l),t&&(r=r.concat(r.map(Sc)))),r}function ti(e){return e.replace(/left|right|bottom|top/g,t=>fq[t])}function yq(e){return{top:0,right:0,bottom:0,left:0,...e}}function t4(e){return typeof e!="number"?yq(e):{top:e,right:e,bottom:e,left:e}}function ni(e){const{x:t,y:n,width:a,height:l}=e;return{width:a,height:l,top:n,left:t,right:t+a,bottom:n+l,x:t,y:n}}function sp(e,t,n){let{reference:a,floating:l}=e;const r=So(t),s=hf(t),i=vf(s),u=Al(t),c=r==="y",d=a.x+a.width/2-l.width/2,f=a.y+a.height/2-l.height/2,h=a[i]/2-l[i]/2;let v;switch(u){case"top":v={x:d,y:a.y-l.height};break;case"bottom":v={x:d,y:a.y+a.height};break;case"right":v={x:a.x+a.width,y:f};break;case"left":v={x:a.x-l.width,y:f};break;default:v={x:a.x,y:a.y}}switch(Hr(t)){case"start":v[s]-=h*(n&&c?-1:1);break;case"end":v[s]+=h*(n&&c?-1:1);break}return v}const _q=async(e,t,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:r=[],platform:s}=n,i=r.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:f}=sp(c,a,u),h=a,v={},m=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:l,rects:r,platform:s,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=Br(e,t)||{};if(c==null)return{};const f=t4(d),h={x:n,y:a},v=hf(l),m=vf(v),p=await s.getDimensions(c),y=v==="y",g=y?"top":"left",x=y?"bottom":"right",w=y?"clientHeight":"clientWidth",b=r.reference[m]+r.reference[v]-h[v]-r.floating[m],S=h[v]-r.reference[v],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=E?E[w]:0;(!O||!await(s.isElement==null?void 0:s.isElement(E)))&&(O=i.floating[w]||r.floating[m]);const I=b/2-S/2,N=O/2-p[m]/2-1,P=Co(f[g],N),L=Co(f[x],N),R=P,K=O-p[m]-L,U=O/2-p[m]/2+I,H=Cc(R,U,K),V=!u.arrow&&Hr(l)!=null&&U!==H&&r.reference[m]/2-(UU<=0)){var L,R;const U=(((L=r.flip)==null?void 0:L.index)||0)+1,H=O[U];if(H)return{data:{index:U,overflows:P},reset:{placement:H}};let V=(R=P.filter(D=>D.overflows[0]<=0).sort((D,B)=>D.overflows[1]-B.overflows[1])[0])==null?void 0:R.placement;if(!V)switch(v){case"bestFit":{var K;const D=(K=P.filter(B=>{if(E){const z=So(B.placement);return z===x||z==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(z=>z>0).reduce((z,F)=>z+F,0)]).sort((B,z)=>B[1]-z[1])[0])==null?void 0:K[0];D&&(V=D);break}case"initialPlacement":V=i;break}if(l!==V)return{reset:{placement:V}}}return{}}}};async function Cq(e,t){const{placement:n,platform:a,elements:l}=e,r=await(a.isRTL==null?void 0:a.isRTL(l.floating)),s=Al(n),i=Hr(n),u=So(n)==="y",c=["left","top"].includes(s)?-1:1,d=r&&u?-1:1,f=Br(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof m=="number"&&(v=i==="end"?m*-1:m),u?{x:v*d,y:h*c}:{x:h*c,y:v*d}}const Sq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:l,y:r,placement:s,middlewareData:i}=t,u=await Cq(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:l+u.x,y:r+u.y,data:{...u,placement:s}}}}},kq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:l}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:i={fn:y=>{let{x:g,y:x}=y;return{x:g,y:x}}},...u}=Br(e,t),c={x:n,y:a},d=await mf(t,u),f=So(Al(l)),h=e4(f);let v=c[h],m=c[f];if(r){const y=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=v+d[y],w=v-d[g];v=Cc(x,v,w)}if(s){const y=f==="y"?"top":"left",g=f==="y"?"bottom":"right",x=m+d[y],w=m-d[g];m=Cc(x,m,w)}const p=i.fn({...t,[h]:v,[f]:m});return{...p,data:{x:p.x-n,y:p.y-a,enabled:{[h]:r,[f]:s}}}}}};function Li(){return typeof window<"u"}function Bo(e){return n4(e)?(e.nodeName||"").toLowerCase():"#document"}function Fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Na(e){var t;return(t=(n4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function n4(e){return Li()?e instanceof Node||e instanceof Fn(e).Node:!1}function da(e){return Li()?e instanceof Element||e instanceof Fn(e).Element:!1}function Ea(e){return Li()?e instanceof HTMLElement||e instanceof Fn(e).HTMLElement:!1}function ip(e){return!Li()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fn(e).ShadowRoot}function Dr(e){const{overflow:t,overflowX:n,overflowY:a,display:l}=fa(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!["inline","contents"].includes(l)}function Eq(e){return["table","td","th"].includes(Bo(e))}function Ri(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function gf(e){const t=yf(),n=da(e)?fa(e):e;return["transform","translate","scale","rotate","perspective"].some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(a=>(n.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(n.contain||"").includes(a))}function xq(e){let t=ul(e);for(;Ea(t)&&!ko(t);){if(gf(t))return t;if(Ri(t))return null;t=ul(t)}return null}function yf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ko(e){return["html","body","#document"].includes(Bo(e))}function fa(e){return Fn(e).getComputedStyle(e)}function Bi(e){return da(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ul(e){if(Bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ip(e)&&e.host||Na(e);return ip(t)?t.host:t}function a4(e){const t=ul(e);return ko(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ea(t)&&Dr(t)?t:a4(t)}function kr(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=a4(e),r=l===((a=e.ownerDocument)==null?void 0:a.body),s=Fn(l);if(r){const i=kc(s);return t.concat(s,s.visualViewport||[],Dr(l)?l:[],i&&n?kr(i):[])}return t.concat(l,kr(l,[],n))}function kc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function l4(e){const t=fa(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const l=Ea(e),r=l?e.offsetWidth:n,s=l?e.offsetHeight:a,i=ei(n)!==r||ei(a)!==s;return i&&(n=r,a=s),{width:n,height:a,$:i}}function _f(e){return da(e)?e:e.contextElement}function ro(e){const t=_f(e);if(!Ea(t))return wa(1);const n=t.getBoundingClientRect(),{width:a,height:l,$:r}=l4(t);let s=(r?ei(n.width):n.width)/a,i=(r?ei(n.height):n.height)/l;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Mq=wa(0);function o4(e){const t=Fn(e);return!yf()||!t.visualViewport?Mq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $q(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fn(e)?!1:t}function Vl(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),r=_f(e);let s=wa(1);t&&(a?da(a)&&(s=ro(a)):s=ro(e));const i=$q(r,n,a)?o4(r):wa(0);let u=(l.left+i.x)/s.x,c=(l.top+i.y)/s.y,d=l.width/s.x,f=l.height/s.y;if(r){const h=Fn(r),v=a&&da(a)?Fn(a):a;let m=h,p=kc(m);for(;p&&a&&v!==m;){const y=ro(p),g=p.getBoundingClientRect(),x=fa(p),w=g.left+(p.clientLeft+parseFloat(x.paddingLeft))*y.x,b=g.top+(p.clientTop+parseFloat(x.paddingTop))*y.y;u*=y.x,c*=y.y,d*=y.x,f*=y.y,u+=w,c+=b,m=Fn(p),p=kc(m)}}return ni({width:d,height:f,x:u,y:c})}function bf(e,t){const n=Bi(e).scrollLeft;return t?t.left+n:Vl(Na(e)).left+n}function r4(e,t,n){n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=a.left+t.scrollLeft-(n?0:bf(e,a)),r=a.top+t.scrollTop;return{x:l,y:r}}function Tq(e){let{elements:t,rect:n,offsetParent:a,strategy:l}=e;const r=l==="fixed",s=Na(a),i=t?Ri(t.floating):!1;if(a===s||i&&r)return n;let u={scrollLeft:0,scrollTop:0},c=wa(1);const d=wa(0),f=Ea(a);if((f||!f&&!r)&&((Bo(a)!=="body"||Dr(s))&&(u=Bi(a)),Ea(a))){const v=Vl(a);c=ro(a),d.x=v.x+a.clientLeft,d.y=v.y+a.clientTop}const h=s&&!f&&!r?r4(s,u,!0):wa(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function Oq(e){return Array.from(e.getClientRects())}function Nq(e){const t=Na(e),n=Bi(e),a=e.ownerDocument.body,l=$l(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),r=$l(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+bf(e);const i=-n.scrollTop;return fa(a).direction==="rtl"&&(s+=$l(t.clientWidth,a.clientWidth)-l),{width:l,height:r,x:s,y:i}}function Iq(e,t){const n=Fn(e),a=Na(e),l=n.visualViewport;let r=a.clientWidth,s=a.clientHeight,i=0,u=0;if(l){r=l.width,s=l.height;const c=yf();(!c||c&&t==="fixed")&&(i=l.offsetLeft,u=l.offsetTop)}return{width:r,height:s,x:i,y:u}}function Pq(e,t){const n=Vl(e,!0,t==="fixed"),a=n.top+e.clientTop,l=n.left+e.clientLeft,r=Ea(e)?ro(e):wa(1),s=e.clientWidth*r.x,i=e.clientHeight*r.y,u=l*r.x,c=a*r.y;return{width:s,height:i,x:u,y:c}}function up(e,t,n){let a;if(t==="viewport")a=Iq(e,n);else if(t==="document")a=Nq(Na(e));else if(da(t))a=Pq(t,n);else{const l=o4(e);a={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return ni(a)}function s4(e,t){const n=ul(e);return n===t||!da(n)||ko(n)?!1:fa(n).position==="fixed"||s4(n,t)}function zq(e,t){const n=t.get(e);if(n)return n;let a=kr(e,[],!1).filter(i=>da(i)&&Bo(i)!=="body"),l=null;const r=fa(e).position==="fixed";let s=r?ul(e):e;for(;da(s)&&!ko(s);){const i=fa(s),u=gf(s);!u&&i.position==="fixed"&&(l=null),(r?!u&&!l:!u&&i.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Dr(s)&&!u&&s4(e,s))?a=a.filter(d=>d!==s):l=i,s=ul(s)}return t.set(e,a),a}function Aq(e){let{element:t,boundary:n,rootBoundary:a,strategy:l}=e;const s=[...n==="clippingAncestors"?Ri(t)?[]:zq(t,this._c):[].concat(n),a],i=s[0],u=s.reduce((c,d)=>{const f=up(t,d,l);return c.top=$l(f.top,c.top),c.right=Co(f.right,c.right),c.bottom=Co(f.bottom,c.bottom),c.left=$l(f.left,c.left),c},up(t,i,l));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Vq(e){const{width:t,height:n}=l4(e);return{width:t,height:n}}function Lq(e,t,n){const a=Ea(t),l=Na(t),r=n==="fixed",s=Vl(e,!0,r,t);let i={scrollLeft:0,scrollTop:0};const u=wa(0);if(a||!a&&!r)if((Bo(t)!=="body"||Dr(l))&&(i=Bi(t)),a){const h=Vl(t,!0,r,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else l&&(u.x=bf(l));const c=l&&!a&&!r?r4(l,i):wa(0),d=s.left+i.scrollLeft-u.x-c.x,f=s.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function bu(e){return fa(e).position==="static"}function cp(e,t){if(!Ea(e)||fa(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Na(e)===n&&(n=n.ownerDocument.body),n}function i4(e,t){const n=Fn(e);if(Ri(e))return n;if(!Ea(e)){let l=ul(e);for(;l&&!ko(l);){if(da(l)&&!bu(l))return l;l=ul(l)}return n}let a=cp(e,t);for(;a&&Eq(a)&&bu(a);)a=cp(a,t);return a&&ko(a)&&bu(a)&&!gf(a)?n:a||xq(e)||n}const Rq=async function(e){const t=this.getOffsetParent||i4,n=this.getDimensions,a=await n(e.floating);return{reference:Lq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Bq(e){return fa(e).direction==="rtl"}const Hq={convertOffsetParentRelativeRectToViewportRelativeRect:Tq,getDocumentElement:Na,getClippingRect:Aq,getOffsetParent:i4,getElementRects:Rq,getClientRects:Oq,getDimensions:Vq,getScale:ro,isElement:da,isRTL:Bq};function u4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Dq(e,t){let n=null,a;const l=Na(e);function r(){var i;clearTimeout(a),(i=n)==null||i.disconnect(),n=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),r();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:v}=c;if(i||t(),!h||!v)return;const m=ls(f),p=ls(l.clientWidth-(d+h)),y=ls(l.clientHeight-(f+v)),g=ls(d),w={rootMargin:-m+"px "+-p+"px "+-y+"px "+-g+"px",threshold:$l(0,Co(1,u))||1};let b=!0;function S(E){const O=E[0].intersectionRatio;if(O!==u){if(!b)return s();O?s(!1,O):a=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!u4(c,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(S,{...w,root:l.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return s(!0),r}function Fq(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:l=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=_f(e),d=l||r?[...c?kr(c):[],...kr(t)]:[];d.forEach(g=>{l&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const f=c&&i?Dq(c,n):null;let h=-1,v=null;s&&(v=new ResizeObserver(g=>{let[x]=g;x&&x.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),n()}),c&&!u&&v.observe(c),v.observe(t));let m,p=u?Vl(e):null;u&&y();function y(){const g=Vl(e);p&&!u4(p,g)&&n(),p=g,m=requestAnimationFrame(y)}return n(),()=>{var g;d.forEach(x=>{l&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),f==null||f(),(g=v)==null||g.disconnect(),v=null,u&&cancelAnimationFrame(m)}}const Kq=mf,c4=Sq,Wq=kq,jq=wq,d4=bq,f4=(e,t,n)=>{const a=new Map,l={platform:Hq,...n},r={...l.platform,_c:a};return _q(e,t,{...l,platform:r})},qq=pe({style:{type:X([String,Object,Array]),default:()=>({})}}),Uq=T({name:"ElVisuallyHidden"}),Yq=T({...Uq,props:qq,setup(e){const t=e,n=C(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(a,l)=>(_(),M("span",tt(a.$attrs,{style:o(n)}),[Q(a.$slots,"default")],16))}});var Gq=ve(Yq,[["__file","visual-hidden.vue"]]);pe({});const Xq=e=>{if(!ut)return;if(!e)return e;const t=$n(e);return t||(Sn(e)?t:e)},Zq=({middleware:e,placement:t,strategy:n})=>{const a=A(),l=A(),r=A(),s=A(),i=A({}),u={x:r,y:s,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!ut)return;const d=Xq(a),f=$n(l);if(!d||!f)return;const h=await f4(d,f,{placement:o(t),strategy:o(n),middleware:o(e)});fo(u).forEach(v=>{u[v].value=h[v]})};return Xe(()=>{cn(()=>{c()})}),{...u,update:c,referenceRef:a,contentRef:l}},Jq=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const a=o(e);return a?d4({element:a,padding:t}).fn(n):{}}}),Qq=T({name:"ElTooltipV2Content"}),eU=T({...Qq,props:{...df,...Zm},setup(e){const t=e,{triggerRef:n,contentId:a}=Se(Vi),l=A(t.placement),r=A(t.strategy),s=A(null),{referenceRef:i,contentRef:u,middlewareData:c,x:d,y:f,update:h}=Zq({placement:l,strategy:r,middleware:C(()=>{const w=[c4(t.offset)];return t.showArrow&&w.push(Jq({arrowRef:s})),w})}),v=Io().nextZIndex(),m=de("tooltip-v2"),p=C(()=>l.value.split("-")[0]),y=C(()=>({position:o(r),top:`${o(f)||0}px`,left:`${o(d)||0}px`,zIndex:v})),g=C(()=>{if(!t.showArrow)return{};const{arrow:w}=o(c);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${w==null?void 0:w.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${w==null?void 0:w.y}px`||""}}),x=C(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(o(r)),t.contentClass]);return ue(s,()=>h()),ue(()=>t.placement,w=>l.value=w),Xe(()=>{ue(()=>t.reference||n.value,w=>{i.value=w||void 0},{immediate:!0})}),it(Qm,{arrowRef:s}),(w,b)=>(_(),M("div",{ref_key:"contentRef",ref:u,style:Oe(o(y)),"data-tooltip-v2-root":""},[w.nowrap?ee("v-if",!0):(_(),M("div",{key:0,"data-side":o(p),class:$(o(x))},[Q(w.$slots,"default",{contentStyle:o(y),contentClass:o(x)}),q(o(Gq),{id:o(a),role:"tooltip"},{default:G(()=>[w.ariaLabel?(_(),M(ze,{key:0},[ot(he(w.ariaLabel),1)],64)):Q(w.$slots,"default",{key:1})]),_:3},8,["id"]),Q(w.$slots,"arrow",{style:Oe(o(g)),side:o(p)})],10,["data-side"]))],4))}});var dp=ve(eU,[["__file","content.vue"]]);const tU=pe({setRef:{type:X(Function),required:!0},onlyChild:Boolean});var nU=T({props:tU,setup(e,{slots:t}){const n=A(),a=Ni(n,l=>{l?e.setRef(l.nextElementSibling):e.setRef(null)});return()=>{var l;const[r]=((l=t.default)==null?void 0:l.call(t))||[],s=e.onlyChild?fI(r.children):r.children;return q(ze,{ref:a},[s])}}});const aU=T({name:"ElTooltipV2Trigger"}),lU=T({...aU,props:{...Zm,...pf},setup(e){const t=e,{onClose:n,onOpen:a,onDelayOpen:l,triggerRef:r,contentId:s}=Se(Vi);let i=!1;const u=x=>{r.value=x},c=()=>{i=!1},d=Ht(t.onMouseEnter,l),f=Ht(t.onMouseLeave,n),h=Ht(t.onMouseDown,()=>{n(),i=!0,document.addEventListener("mouseup",c,{once:!0})}),v=Ht(t.onFocus,()=>{i||a()}),m=Ht(t.onBlur,n),p=Ht(t.onClick,x=>{x.detail===0&&n()}),y={blur:m,click:p,focus:v,mousedown:h,mouseenter:d,mouseleave:f},g=(x,w,b)=>{x&&Object.entries(w).forEach(([S,E])=>{x[b](S,E)})};return ue(r,(x,w)=>{g(x,y,"addEventListener"),g(w,y,"removeEventListener"),x&&x.setAttribute("aria-describedby",s.value)}),$t(()=>{g(r.value,y,"removeEventListener"),document.removeEventListener("mouseup",c)}),(x,w)=>x.nowrap?(_(),ae(o(nU),{key:0,"set-ref":u,"only-child":""},{default:G(()=>[Q(x.$slots,"default")]),_:3})):(_(),M("button",tt({key:1,ref_key:"triggerRef",ref:r},x.$attrs),[Q(x.$slots,"default")],16))}});var oU=ve(lU,[["__file","trigger.vue"]]);const rU=T({name:"ElTooltipV2"}),sU=T({...rU,props:rq,setup(e){const n=nn(e),a=_t(ra(n,Object.keys(cf))),l=_t(ra(n,Object.keys(df))),r=_t(ra(n,Object.keys(ff))),s=_t(ra(n,Object.keys(pf)));return(i,u)=>(_(),ae(uq,oa(Tl(r)),{default:G(({open:c})=>[q(oU,tt(s,{nowrap:""}),{default:G(()=>[Q(i.$slots,"trigger")]),_:3},16),q(o(Vo),{to:i.to,disabled:!i.teleported},{default:G(()=>[i.fullTransition?(_(),ae(tn,oa(tt({key:0},i.transitionProps)),{default:G(()=>[i.alwaysOn||c?(_(),ae(dp,oa(tt({key:0},l)),{arrow:G(({style:d,side:f})=>[i.showArrow?(_(),ae(rp,tt({key:0},a,{style:d,side:f}),null,16,["style","side"])):ee("v-if",!0)]),default:G(()=>[Q(i.$slots,"default")]),_:3},16)):ee("v-if",!0)]),_:2},1040)):(_(),M(ze,{key:1},[i.alwaysOn||c?(_(),ae(dp,oa(tt({key:0},l)),{arrow:G(({style:d,side:f})=>[i.showArrow?(_(),ae(rp,tt({key:0},a,{style:d,side:f}),null,16,["style","side"])):ee("v-if",!0)]),default:G(()=>[Q(i.$slots,"default")]),_:3},16)):ee("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var iU=ve(sU,[["__file","tooltip.vue"]]);const uU=We(iU),p4="left-check-change",v4="right-check-change",Jl=pe({data:{type:X(Array),default:()=>[]},titles:{type:X(Array),default:()=>[]},buttonTexts:{type:X(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:X(Function)},leftDefaultChecked:{type:X(Array),default:()=>[]},rightDefaultChecked:{type:X(Array),default:()=>[]},renderContent:{type:X(Function)},modelValue:{type:X(Array),default:()=>[]},format:{type:X(Object),default:()=>({})},filterable:Boolean,props:{type:X(Object),default:()=>Vt({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Ec=(e,t)=>[e,t].every(Ee)||Ee(e)&&Zt(t),cU={[Ct]:(e,t,n)=>[e,n].every(Ee)&&["left","right"].includes(t),[Ue]:e=>Ee(e),[p4]:Ec,[v4]:Ec},xc="checked-change",dU=pe({data:Jl.data,optionRender:{type:X(Function)},placeholder:String,title:String,filterable:Boolean,format:Jl.format,filterMethod:Jl.filterMethod,defaultChecked:Jl.leftDefaultChecked,props:Jl.props}),fU={[xc]:Ec},Fr=e=>{const t={label:"label",key:"key",disabled:"disabled"};return C(()=>({...t,...e.props}))},pU=(e,t,n)=>{const a=Fr(e),l=C(()=>e.data.filter(d=>Je(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),r=C(()=>l.value.filter(d=>!d[a.value.disabled])),s=C(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:v}=e.format;return h&&v?d>0?v.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),i=C(()=>{const d=t.checked.length;return d>0&&d{const d=r.value.map(f=>f[a.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?r.value.map(f=>f[a.value.key]):[]};return ue(()=>t.checked,(d,f)=>{if(u(),t.checkChangeByUser){const h=d.concat(f).filter(v=>!d.includes(v)||!f.includes(v));n(xc,d,h)}else n(xc,d),t.checkChangeByUser=!0}),ue(r,()=>{u()}),ue(()=>e.data,()=>{const d=[],f=l.value.map(h=>h[a.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),ue(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(m=>f.includes(m)))return;const h=[],v=r.value.map(m=>m[a.value.key]);d.forEach(m=>{v.includes(m)&&h.push(m)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:l,checkableData:r,checkedSummary:s,isIndeterminate:i,updateAllChecked:u,handleAllCheckedChange:c}},vU=T({name:"ElTransferPanel"}),hU=T({...vU,props:dU,emits:fU,setup(e,{expose:t,emit:n}){const a=e,l=Xt(),r=({option:w})=>w,{t:s}=ct(),i=de("transfer"),u=_t({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),c=Fr(a),{filteredData:d,checkedSummary:f,isIndeterminate:h,handleAllCheckedChange:v}=pU(a,u,n),m=C(()=>!Hn(u.query)&&Hn(d.value)),p=C(()=>!Hn(l.default()[0].children)),{checked:y,allChecked:g,query:x}=nn(u);return t({query:x}),(w,b)=>(_(),M("div",{class:$(o(i).b("panel"))},[k("p",{class:$(o(i).be("panel","header"))},[q(o(Qn),{modelValue:o(g),"onUpdate:modelValue":S=>Sn(g)?g.value=S:null,indeterminate:o(h),"validate-event":!1,onChange:o(v)},{default:G(()=>[ot(he(w.title)+" ",1),k("span",null,he(o(f)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),k("div",{class:$([o(i).be("panel","body"),o(i).is("with-footer",o(p))])},[w.filterable?(_(),ae(o(Cn),{key:0,modelValue:o(x),"onUpdate:modelValue":S=>Sn(x)?x.value=S:null,class:$(o(i).be("panel","filter")),size:"default",placeholder:w.placeholder,"prefix-icon":o(X1),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):ee("v-if",!0),qe(q(o(Yv),{modelValue:o(y),"onUpdate:modelValue":S=>Sn(y)?y.value=S:null,"validate-event":!1,class:$([o(i).is("filterable",w.filterable),o(i).be("panel","list")])},{default:G(()=>[(_(!0),M(ze,null,rt(o(d),S=>(_(),ae(o(Qn),{key:S[o(c).key],class:$(o(i).be("panel","item")),value:S[o(c).key],disabled:S[o(c).disabled],"validate-event":!1},{default:G(()=>{var E;return[q(r,{option:(E=w.optionRender)==null?void 0:E.call(w,S)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[pt,!o(m)&&!o(Hn)(w.data)]]),qe(k("div",{class:$(o(i).be("panel","empty"))},[Q(w.$slots,"empty",{},()=>[ot(he(o(m)?o(s)("el.transfer.noMatch"):o(s)("el.transfer.noData")),1)])],2),[[pt,o(m)||o(Hn)(w.data)]])],2),o(p)?(_(),M("p",{key:0,class:$(o(i).be("panel","footer"))},[Q(w.$slots,"default")],2)):ee("v-if",!0)],2))}});var fp=ve(hU,[["__file","transfer-panel.vue"]]);const mU=e=>{const t=Fr(e),n=C(()=>e.data.reduce((r,s)=>(r[s[t.value.key]]=s)&&r,{})),a=C(()=>e.data.filter(r=>!e.modelValue.includes(r[t.value.key]))),l=C(()=>e.targetOrder==="original"?e.data.filter(r=>e.modelValue.includes(r[t.value.key])):e.modelValue.reduce((r,s)=>{const i=n.value[s];return i&&r.push(i),r},[]));return{sourceData:a,targetData:l}},gU=(e,t,n)=>{const a=Fr(e),l=(i,u,c)=>{n(Ue,i),n(Ct,i,u,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=i.indexOf(u);c>-1&&i.splice(c,1)}),l(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[a.value.key]);i=e.targetOrder==="unshift"?u.concat(i):i.concat(u),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[a.value.key])).map(c=>c[a.value.key])),l(i,"right",t.leftChecked)}}},yU=(e,t)=>({onSourceCheckedChange:(l,r)=>{e.leftChecked=l,r&&t(p4,l,r)},onTargetCheckedChange:(l,r)=>{e.rightChecked=l,r&&t(v4,l,r)}}),_U=T({name:"ElTransfer"}),bU=T({..._U,props:Jl,emits:cU,setup(e,{expose:t,emit:n}){const a=e,l=Xt(),{t:r}=ct(),s=de("transfer"),{formItem:i}=mn(),u=_t({leftChecked:[],rightChecked:[]}),c=Fr(a),{sourceData:d,targetData:f}=mU(a),{onSourceCheckedChange:h,onTargetCheckedChange:v}=yU(u,n),{addToLeft:m,addToRight:p}=gU(a,u,n),y=A(),g=A(),x=I=>{switch(I){case"left":y.value.query="";break;case"right":g.value.query="";break}},w=C(()=>a.buttonTexts.length===2),b=C(()=>a.titles[0]||r("el.transfer.titles.0")),S=C(()=>a.titles[1]||r("el.transfer.titles.1")),E=C(()=>a.filterPlaceholder||r("el.transfer.filterPlaceholder"));ue(()=>a.modelValue,()=>{var I;a.validateEvent&&((I=i==null?void 0:i.validate)==null||I.call(i,"change").catch(N=>void 0))});const O=C(()=>I=>{var N;if(a.renderContent)return a.renderContent(Pe,I);const P=(((N=l.default)==null?void 0:N.call(l,{option:I}))||[]).filter(L=>L.type!==ri);return P.length?P:Pe("span",I[c.value.label]||I[c.value.key])});return t({clearQuery:x,leftPanel:y,rightPanel:g}),(I,N)=>(_(),M("div",{class:$(o(s).b())},[q(fp,{ref_key:"leftPanel",ref:y,data:o(d),"option-render":o(O),placeholder:o(E),title:o(b),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,"default-checked":I.leftDefaultChecked,props:a.props,onCheckedChange:o(h)},{empty:G(()=>[Q(I.$slots,"left-empty")]),default:G(()=>[Q(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),k("div",{class:$(o(s).e("buttons"))},[q(o(en),{type:"primary",class:$([o(s).e("button"),o(s).is("with-texts",o(w))]),disabled:o(Hn)(u.rightChecked),onClick:o(m)},{default:G(()=>[q(o(Me),null,{default:G(()=>[q(o(La))]),_:1}),o(vt)(I.buttonTexts[0])?ee("v-if",!0):(_(),M("span",{key:0},he(I.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),q(o(en),{type:"primary",class:$([o(s).e("button"),o(s).is("with-texts",o(w))]),disabled:o(Hn)(u.leftChecked),onClick:o(p)},{default:G(()=>[o(vt)(I.buttonTexts[1])?ee("v-if",!0):(_(),M("span",{key:0},he(I.buttonTexts[1]),1)),q(o(Me),null,{default:G(()=>[q(o(En))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),q(fp,{ref_key:"rightPanel",ref:g,data:o(f),"option-render":o(O),placeholder:o(E),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,title:o(S),"default-checked":I.rightDefaultChecked,props:a.props,onCheckedChange:o(v)},{empty:G(()=>[Q(I.$slots,"right-empty")]),default:G(()=>[Q(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var wU=ve(bU,[["__file","transfer.vue"]]);const CU=We(wU),so="$treeNodeId",pp=function(e,t){!t||t[so]||Object.defineProperty(t,so,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},wf=function(e,t){return e?t[e]:t[so]},Mc=(e,t,n)=>{const a=e.value.currentNode;n();const l=e.value.currentNode;a!==l&&t("current-change",l?l.data:null,l)},$c=e=>{let t=!0,n=!0,a=!0;for(let l=0,r=e.length;l0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Ee(this.data)||pp(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,l=t.key;l&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),l&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Ee(t)||pp(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ee(this.data)?n=this.data:n=os(this,"children")||[];for(let a=0,l=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Os)){if(!a){const l=this.getChildren(!0);l.includes(t.data)||(vt(n)||n<0?l.push(t.data):l.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=_t(new Os(t)),t instanceof Os&&t.initialize()}t.level=this.level+1,vt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const l=this.childNodes.indexOf(t);l>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(l,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let a=0;a{if(n){let l=this.parent;for(;l.level>0;)l.expanded=!0,l=l.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(l=>{l.canFocus=!0})};this.shouldLoadData()?this.loadData(l=>{Ee(l)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Go(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,a,l){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:s,allWithoutDisable:i}=$c(this.childNodes);!this.isLeaf&&!s&&i&&(this.checked=!1,t=!1);const u=()=>{if(n){const c=this.childNodes;for(let h=0,v=c.length;h{u(),Go(this)},{checked:t!==!1});return}else u()}const r=this.parent;!r||r.level===0||a||Go(r)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let l="children";return a&&(l=a.children||"children"),n[l]===void 0&&(n[l]=null),t&&!n[l]&&(n[l]=[]),n[l]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(r=>r.data),a={},l=[];t.forEach((r,s)=>{const i=r[so];!!i&&n.findIndex(c=>c[so]===i)>=0?a[i]={index:s,data:r}:l.push({index:s,data:r})}),this.store.lazy||n.forEach(r=>{a[r[so]]||this.removeChildByData(r)}),l.forEach(({index:r,data:s})=>{this.insertChild({data:s},r)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=r=>{this.childNodes=[],this.doCreateChildren(r,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,r)},l=()=>{this.loading=!1};this.store.load(this,a,l)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||Go(this)}};class kU{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)vn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Tc({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,a=this.lazy,l=function(r){const s=r.root?r.root.childNodes:r.childNodes;if(s.forEach(i=>{i.visible=n.call(i,t,i.data,i),l(i)}),!r.visible&&s.length){let i=!0;i=!s.some(u=>u.visible),r.root?r.root.visible=i===!1:r.visible=i===!1}t&&r.visible&&!r.isLeaf&&(!a||r.loaded)&&r.expand()};l(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof Tc)return t;const n=ht(t)?wf(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const a=this.getNode(n);a.parent.insertBefore({data:t},a)}insertAfter(t,n){const a=this.getNode(n);a.parent.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const a=ua(n)?this.root:this.getNode(n);a&&a.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(a=>{const l=n[a];l&&l.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(a=>{this.deregisterNode(a)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const a=[],l=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&a.push(i.data),l(i)})};return l(this),a}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(a){(a.root?a.root.childNodes:a.childNodes).forEach(r=>{r.indeterminate&&t.push(r.data),n(r)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const a in n)vn(n,a)&&t.push(n[a]);return t}updateChildren(t,n){const a=this.nodesMap[t];if(!a)return;const l=a.childNodes;for(let r=l.length-1;r>=0;r--){const s=l[r];this.remove(s.data)}for(let r=0,s=n.length;ru.level-c.level),r=Object.create(null),s=Object.keys(a);l.forEach(u=>u.setChecked(!1,!1));const i=u=>{u.childNodes.forEach(c=>{var d;r[c.data[t]]=!0,(d=c.childNodes)!=null&&d.length&&i(c)})};for(let u=0,c=l.length;u{y.isLeaf||y.setChecked(!1,!1),v(y)})};v(d)}}}setCheckedNodes(t,n=!1){const a=this.key,l={};t.forEach(r=>{l[(r||{})[a]]=!0}),this._setCheckedKeys(a,n,l)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const a=this.key,l={};t.forEach(r=>{l[r]=!0}),this._setCheckedKeys(a,n,l)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const a=this.getNode(n);a&&a.expand(null,this.autoExpandParent)})}setChecked(t,n,a){const l=this.getNode(t);l&&l.setChecked(!!n,a)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const a=t[this.key],l=this.nodesMap[a];this.setCurrentNode(l),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(this.currentNodeKey=t,t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const EU=T({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=de("tree"),n=Se("NodeInstance"),a=Se("RootTree");return()=>{const l=e.node,{data:r,store:s}=l;return e.renderContent?e.renderContent(Pe,{_self:n,node:l,data:r,store:s}):Q(a.ctx.slots,"default",{node:l,data:r},()=>[Pe("span",{class:t.be("node","label")},[l.label])])}}});var xU=ve(EU,[["__file","tree-node-content.vue"]]);function h4(e){const t=Se("TreeNodeMap",null),n={treeNodeExpand:a=>{e.node!==a&&e.node.collapse()},children:[]};return t&&t.children.push(n),it("TreeNodeMap",n),{broadcastExpanded:a=>{if(e.accordion)for(const l of n.children)l.treeNodeExpand(a)}}}const m4=Symbol("dragEvents");function MU({props:e,ctx:t,el$:n,dropIndicator$:a,store:l}){const r=de("tree"),s=A({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return it(m4,{treeNodeDragStart:({event:d,treeNode:f})=>{if(Je(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=f,t.emit("node-drag-start",f.node,d)},treeNodeDragOver:({event:d,treeNode:f})=>{const h=f,v=s.value.dropNode;v&&v.node.id!==h.node.id&&kn(v.$el,r.is("drop-inner"));const m=s.value.draggingNode;if(!m||!h)return;let p=!0,y=!0,g=!0,x=!0;Je(e.allowDrop)&&(p=e.allowDrop(m.node,h.node,"prev"),x=y=e.allowDrop(m.node,h.node,"inner"),g=e.allowDrop(m.node,h.node,"next")),d.dataTransfer.dropEffect=y||p||g?"move":"none",(p||y||g)&&(v==null?void 0:v.node.id)!==h.node.id&&(v&&t.emit("node-drag-leave",m.node,v.node,d),t.emit("node-drag-enter",m.node,h.node,d)),p||y||g?s.value.dropNode=h:s.value.dropNode=null,h.node.nextSibling===m.node&&(g=!1),h.node.previousSibling===m.node&&(p=!1),h.node.contains(m.node,!1)&&(y=!1),(m.node===h.node||m.node.contains(h.node))&&(p=!1,y=!1,g=!1);const w=h.$el.querySelector(`.${r.be("node","content")}`).getBoundingClientRect(),b=n.value.getBoundingClientRect();let S;const E=p?y?.25:g?.45:1:-1,O=g?y?.75:p?.55:0:1;let I=-9999;const N=d.clientY-w.top;Nw.height*O?S="after":y?S="inner":S="none";const P=h.$el.querySelector(`.${r.be("node","expand-icon")}`).getBoundingClientRect(),L=a.value;S==="before"?I=P.top-b.top:S==="after"&&(I=P.bottom-b.top),L.style.top=`${I}px`,L.style.left=`${P.right-b.left}px`,S==="inner"?jn(h.$el,r.is("drop-inner")):kn(h.$el,r.is("drop-inner")),s.value.showDropIndicator=S==="before"||S==="after",s.value.allowDrop=s.value.showDropIndicator||x,s.value.dropType=S,t.emit("node-drag-over",m.node,h.node,d)},treeNodeDragEnd:d=>{const{draggingNode:f,dropType:h,dropNode:v}=s.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f&&v){const m={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?v.node.parent.insertBefore(m,v.node):h==="after"?v.node.parent.insertAfter(m,v.node):h==="inner"&&v.node.insertChild(m),h!=="none"&&(l.value.registerNode(m),l.value.key&&f.node.eachNode(p=>{var y;(y=l.value.nodesMap[p.data[l.value.key]])==null||y.setChecked(p.checked,!l.value.checkStrictly)})),kn(v.$el,r.is("drop-inner")),t.emit("node-drag-end",f.node,v.node,h,d),h!=="none"&&t.emit("node-drop",f.node,v.node,h,d)}f&&!v&&t.emit("node-drag-end",f.node,null,h,d),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0}}),{dragState:s}}const $U=T({name:"ElTreeNode",components:{ElCollapseTransition:Ti,ElCheckbox:Qn,NodeContent:xU,ElIcon:Me,Loading:ca},props:{node:{type:Tc,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=de("tree"),{broadcastExpanded:a}=h4(e),l=Se("RootTree"),r=A(!1),s=A(!1),i=A(null),u=A(null),c=A(null),d=Se(m4),f=et();it("NodeInstance",f),e.node.expanded&&(r.value=!0,s.value=!0);const h=l.props.props.children||"children";ue(()=>{const N=e.node.data[h];return N&&[...N]},()=>{e.node.updateChildren()}),ue(()=>e.node.indeterminate,N=>{p(e.node.checked,N)}),ue(()=>e.node.checked,N=>{p(N,e.node.indeterminate)}),ue(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),ue(()=>e.node.expanded,N=>{Ne(()=>r.value=N),N&&(s.value=!0)});const v=N=>wf(l.props.nodeKey,N.data),m=N=>{const P=e.props.class;if(!P)return{};let L;if(Je(P)){const{data:R}=N;L=P(R,N)}else L=P;return Ve(L)?{[L]:!0}:L},p=(N,P)=>{(i.value!==N||u.value!==P)&&l.ctx.emit("check-change",e.node.data,N,P),i.value=N,u.value=P},y=N=>{Mc(l.store,l.ctx.emit,()=>{var P;if((P=l==null?void 0:l.props)==null?void 0:P.nodeKey){const R=v(e.node);l.store.value.setCurrentNodeKey(R)}else l.store.value.setCurrentNode(e.node)}),l.currentNode.value=e.node,l.props.expandOnClickNode&&x(),l.props.checkOnClickNode&&!e.node.disabled&&w(null,{target:{checked:!e.node.checked}}),l.ctx.emit("node-click",e.node.data,e.node,f,N)},g=N=>{l.instance.vnode.props.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),l.ctx.emit("node-contextmenu",N,e.node.data,e.node,f)},x=()=>{e.node.isLeaf||(r.value?(l.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=(N,P)=>{e.node.setChecked(P.target.checked,!l.props.checkStrictly),Ne(()=>{const L=l.store.value;l.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:l,expanded:r,childNodeRendered:s,oldChecked:i,oldIndeterminate:u,getNodeKey:v,getNodeClass:m,handleSelectChange:p,handleClick:y,handleContextMenu:g,handleExpandIconClick:x,handleCheckChange:w,handleChildNodeExpand:(N,P,L)=>{a(P),l.ctx.emit("node-expand",N,P,L)},handleDragStart:N=>{l.props.draggable&&d.treeNodeDragStart({event:N,treeNode:e})},handleDragOver:N=>{N.preventDefault(),l.props.draggable&&d.treeNodeDragOver({event:N,treeNode:{$el:c.value,node:e.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{l.props.draggable&&d.treeNodeDragEnd(N)},CaretRight:rd}}});function TU(e,t,n,a,l,r){const s=Ze("el-icon"),i=Ze("el-checkbox"),u=Ze("loading"),c=Ze("node-content"),d=Ze("el-tree-node"),f=Ze("el-collapse-transition");return qe((_(),M("div",{ref:"node$",class:$([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:Ae(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:Ae(e.handleDragStart,["stop"]),onDragover:Ae(e.handleDragOver,["stop"]),onDragend:Ae(e.handleDragEnd,["stop"]),onDrop:Ae(e.handleDrop,["stop"])},[k("div",{class:$(e.ns.be("node","content")),style:Oe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(_(),ae(s,{key:0,class:$([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Ae(e.handleExpandIconClick,["stop"])},{default:G(()=>[(_(),ae(Qe(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ee("v-if",!0),e.showCheckbox?(_(),ae(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:Ae(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):ee("v-if",!0),e.node.loading?(_(),ae(s,{key:2,class:$([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:G(()=>[q(u)]),_:1},8,["class"])):ee("v-if",!0),q(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),q(f,null,{default:G(()=>[!e.renderAfterExpand||e.childNodeRendered?qe((_(),M("div",{key:0,class:$(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(_(!0),M(ze,null,rt(e.node.childNodes,h=>(_(),ae(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded"])),[[pt,e.expanded]]):ee("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[pt,e.node.visible]])}var OU=ve($U,[["render",TU],["__file","tree-node.vue"]]);function NU({el$:e},t){const n=de("tree"),a=Ot([]),l=Ot([]);Xe(()=>{s()}),Wa(()=>{a.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),ue(l,i=>{i.forEach(u=>{u.setAttribute("tabindex","-1")})}),wt(e,"keydown",i=>{const u=i.target;if(!u.className.includes(n.b("node")))return;const c=i.code;a.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const d=a.value.indexOf(u);let f;if([Ce.up,Ce.down].includes(c)){if(i.preventDefault(),c===Ce.up){f=d===-1?0:d!==0?d-1:a.value.length-1;const v=f;for(;!t.value.getNode(a.value[f].dataset.key).canFocus;){if(f--,f===v){f=-1;break}f<0&&(f=a.value.length-1)}}else{f=d===-1?0:d=a.value.length&&(f=0)}}f!==-1&&a.value[f].focus()}[Ce.left,Ce.right].includes(c)&&(i.preventDefault(),u.click());const h=u.querySelector('[type="checkbox"]');[Ce.enter,Ce.numpadEnter,Ce.space].includes(c)&&h&&(i.preventDefault(),h.click())});const s=()=>{var i;a.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const u=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(i=a.value[0])==null||i.setAttribute("tabindex","0")}}const IU=T({name:"ElTree",components:{ElTreeNode:OU},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:St}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=ct(),a=de("tree"),l=Se(Ro,null),r=A(new kU({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));r.value.initialize();const s=A(r.value.root),i=A(null),u=A(null),c=A(null),{broadcastExpanded:d}=h4(e),{dragState:f}=MU({props:e,ctx:t,el$:u,dropIndicator$:c,store:r});NU({el$:u},r);const h=C(()=>{const{childNodes:B}=s.value,z=l?l.hasFilteredOptions!==0:!1;return(!B||B.length===0||B.every(({visible:F})=>!F))&&!z});ue(()=>e.currentNodeKey,B=>{r.value.setCurrentNodeKey(B)}),ue(()=>e.defaultCheckedKeys,B=>{r.value.setDefaultCheckedKey(B)}),ue(()=>e.defaultExpandedKeys,B=>{r.value.setDefaultExpandedKeys(B)}),ue(()=>e.data,B=>{r.value.setData(B)},{deep:!0}),ue(()=>e.checkStrictly,B=>{r.value.checkStrictly=B});const v=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");r.value.filter(B)},m=B=>wf(e.nodeKey,B.data),p=B=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const z=r.value.getNode(B);if(!z)return[];const F=[z.data];let W=z.parent;for(;W&&W!==s.value;)F.push(W.data),W=W.parent;return F.reverse()},y=(B,z)=>r.value.getCheckedNodes(B,z),g=B=>r.value.getCheckedKeys(B),x=()=>{const B=r.value.getCurrentNode();return B?B.data:null},w=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const B=x();return B?B[e.nodeKey]:null},b=(B,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");r.value.setCheckedNodes(B,z)},S=(B,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");r.value.setCheckedKeys(B,z)},E=(B,z,F)=>{r.value.setChecked(B,z,F)},O=()=>r.value.getHalfCheckedNodes(),I=()=>r.value.getHalfCheckedKeys(),N=(B,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Mc(r,t.emit,()=>{d(B),r.value.setUserCurrentNode(B,z)})},P=(B,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Mc(r,t.emit,()=>{d(),r.value.setCurrentNodeKey(B,z)})},L=B=>r.value.getNode(B),R=B=>{r.value.remove(B)},K=(B,z)=>{r.value.append(B,z)},U=(B,z)=>{r.value.insertBefore(B,z)},H=(B,z)=>{r.value.insertAfter(B,z)},V=(B,z,F)=>{d(z),t.emit("node-expand",B,z,F)},D=(B,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");r.value.updateChildren(B,z)};return it("RootTree",{ctx:t,props:e,store:r,root:s,currentNode:i,instance:et()}),it(Sa,void 0),{ns:a,store:r,root:s,currentNode:i,dragState:f,el$:u,dropIndicator$:c,isEmpty:h,filter:v,getNodeKey:m,getNodePath:p,getCheckedNodes:y,getCheckedKeys:g,getCurrentNode:x,getCurrentKey:w,setCheckedNodes:b,setCheckedKeys:S,setChecked:E,getHalfCheckedNodes:O,getHalfCheckedKeys:I,setCurrentNode:N,setCurrentKey:P,t:n,getNode:L,remove:R,append:K,insertBefore:U,insertAfter:H,handleNodeExpand:V,updateKeyChildren:D}}});function PU(e,t,n,a,l,r){const s=Ze("el-tree-node");return _(),M("div",{ref:"el$",class:$([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(_(!0),M(ze,null,rt(e.root.childNodes,i=>(_(),ae(s,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(_(),M("div",{key:0,class:$(e.ns.e("empty-block"))},[Q(e.$slots,"empty",{},()=>{var i;return[k("span",{class:$(e.ns.e("empty-text"))},he((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):ee("v-if",!0),qe(k("div",{ref:"dropIndicator$",class:$(e.ns.e("drop-indicator"))},null,2),[[pt,e.dragState.showDropIndicator]])],2)}var zU=ve(IU,[["render",PU],["__file","tree.vue"]]);const ai=We(zU),AU=(e,{attrs:t,emit:n},{select:a,tree:l,key:r})=>{const s=de("tree-select");return ue(()=>e.data,()=>{e.filterable&&Ne(()=>{var u,c;(c=l.value)==null||c.filter((u=a.value)==null?void 0:u.states.inputValue)})},{flush:"post"}),{...ra(nn(e),Object.keys(Pl.props)),...t,"onUpdate:modelValue":u=>n(Ue,u),valueKey:r,popperClass:C(()=>{const u=[s.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=l.value)==null||c.filter(u)}}},VU=T({extends:js,setup(e,t){const n=js.setup(e,t);delete n.selectOptionClick;const a=et().proxy;return Ne(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),ue(()=>t.attrs.visible,l=>{n.states.visible=l},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Oc(e){return e||e===0}function Cf(e){return Ee(e)&&e.length}function Yl(e){return Ee(e)?e:Oc(e)?[e]:[]}function Ns(e,t,n,a,l){for(let r=0;r{ue(()=>e.modelValue,()=>{e.showCheckbox&&Ne(()=>{const h=r.value;h&&!dn(h.getCheckedKeys(),Yl(e.modelValue))&&h.setCheckedKeys(Yl(e.modelValue))})},{immediate:!0,deep:!0});const i=C(()=>({value:s.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(h,v)=>{var m;const p=i.value[h];return Je(p)?p(v,(m=r.value)==null?void 0:m.getNode(u("value",v))):v[p]},c=Yl(e.modelValue).map(h=>Ns(e.data||[],v=>u("value",v)===h,v=>u("children",v),(v,m,p,y)=>y&&u("value",y))).filter(h=>Oc(h)),d=C(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return Is(e.data.concat(e.cacheData),v=>{const m=u("value",v);h.push({value:m,currentLabel:u("label",v),isDisabled:u("disabled",v)})},v=>u("children",v)),h}),f=()=>{var h;return(h=r.value)==null?void 0:h.getCheckedKeys().filter(v=>{var m;const p=(m=r.value)==null?void 0:m.getNode(v);return!Zt(p)&&Hn(p.childNodes)})};return{...ra(nn(e),Object.keys(ai.props)),...t,nodeKey:s,expandOnClickNode:C(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:C(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:v,data:m,store:p})=>h(VU,{value:u("value",m),label:u("label",m),disabled:u("disabled",m),visible:v.visible},e.renderContent?()=>e.renderContent(h,{node:v,data:m,store:p}):n.default?()=>n.default({node:v,data:m,store:p}):void 0),filterNodeMethod:(h,v,m)=>e.filterNodeMethod?e.filterNodeMethod(h,v,m):h?new RegExp(Od(h),"i").test(u("label",v)||""):!0,onNodeClick:(h,v,m)=>{var p,y,g,x;if((p=t.onNodeClick)==null||p.call(t,h,v,m),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!u("disabled",h)){const w=(y=l.value)==null?void 0:y.states.options.get(u("value",h));(g=l.value)==null||g.handleOptionSelect(w)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick();(x=l.value)==null||x.focus()}},onCheck:(h,v)=>{var m;if(!e.showCheckbox)return;const p=u("value",h),y={};Is([r.value.store.root],b=>y[b.key]=b,b=>b.childNodes);const g=v.checkedKeys,x=e.multiple?Yl(e.modelValue).filter(b=>!(b in y)&&!g.includes(b)):[],w=x.concat(g);if(e.checkStrictly)a(Ue,e.multiple?w:w.includes(p)?p:void 0);else if(e.multiple){const b=f();a(Ue,x.concat(b))}else{const b=Ns([h],O=>!Cf(u("children",O))&&!u("disabled",O),O=>u("children",O)),S=b?u("value",b):void 0,E=Oc(e.modelValue)&&!!Ns([h],O=>u("value",O)===e.modelValue,O=>u("children",O));a(Ue,S===e.modelValue||E?void 0:S)}Ne(()=>{var b;const S=Yl(e.modelValue);r.value.setCheckedKeys(S),(b=t.onCheck)==null||b.call(t,h,{checkedKeys:r.value.getCheckedKeys(),checkedNodes:r.value.getCheckedNodes(),halfCheckedKeys:r.value.getHalfCheckedKeys(),halfCheckedNodes:r.value.getHalfCheckedNodes()})}),(m=l.value)==null||m.focus()},onNodeExpand:(h,v,m)=>{var p;(p=t.onNodeExpand)==null||p.call(t,h,v,m),Ne(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const y={},g=r.value.getCheckedKeys();Is([r.value.store.root],b=>y[b.key]=b,b=>b.childNodes);const x=Yl(e.modelValue).filter(b=>!(b in y)&&!g.includes(b)),w=f();a(Ue,x.concat(w))}})},cacheOptions:d}};var RU=T({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Se(Ro);return ue(()=>e.data,()=>{var n;e.data.forEach(l=>{t.states.cachedOptions.has(l.value)||t.states.cachedOptions.set(l.value,l)});const a=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];ut&&!Array.from(a).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const BU=T({name:"ElTreeSelect",inheritAttrs:!1,props:{...Pl.props,...ai.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a}=t,l=A(),r=A(),s=C(()=>e.nodeKey||e.valueKey||"value"),i=AU(e,t,{select:l,tree:r,key:s}),{cacheOptions:u,...c}=LU(e,t,{select:l,tree:r,key:s}),d=_t({});return a(d),Xe(()=>{Object.assign(d,{...ra(r.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...ra(l.value,["focus","blur","selectedLabel"])})}),()=>Pe(Pl,_t({...i,ref:f=>l.value=f}),{...n,default:()=>[Pe(RU,{data:u.value}),Pe(ai,_t({...c,ref:f=>r.value=f}))]})}});var HU=ve(BU,[["__file","tree-select.vue"]]);const DU=We(HU),Sf=Symbol(),FU={key:-1,level:-1,data:{}};var Xo=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(Xo||{}),Nc=(e=>(e.ADD="add",e.DELETE="delete",e))(Nc||{});const g4={type:Number,default:26},KU=pe({data:{type:X(Array),default:()=>Vt([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:X(Object),default:()=>Vt({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:X(Array),default:()=>Vt([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:X(Array),default:()=>Vt([])},indent:{type:Number,default:16},itemSize:g4,icon:{type:St},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:X([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:X(Function)},perfMode:{type:Boolean,default:!0}}),WU=pe({node:{type:X(Object),default:()=>Vt(FU)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:g4}),jU=pe({node:{type:X(Object),required:!0}}),y4="node-click",_4="node-drop",b4="node-expand",w4="node-collapse",C4="current-change",S4="check",k4="check-change",E4="node-contextmenu",qU={[y4]:(e,t,n)=>e&&t&&n,[_4]:(e,t,n)=>e&&t&&n,[b4]:(e,t)=>e&&t,[w4]:(e,t)=>e&&t,[C4]:(e,t)=>e&&t,[S4]:(e,t)=>e&&t,[k4]:(e,t)=>e&&Et(t),[E4]:(e,t,n)=>e&&t&&n},UU={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Et(t)};function YU(e,t){const n=A(new Set),a=A(new Set),{emit:l}=et();ue([()=>t.value,()=>e.defaultCheckedKeys],()=>Ne(()=>{x(e.defaultCheckedKeys)}),{immediate:!0});const r=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:b}=t.value,S=n.value,E=new Set;for(let O=b-1;O>=1;--O){const I=w.get(O);I&&I.forEach(N=>{const P=N.children;if(P){let L=!0,R=!1;for(const K of P){const U=K.key;if(S.has(U))R=!0;else if(E.has(U)){L=!1,R=!0;break}else L=!1}L?S.add(N.key):R?(E.add(N.key),S.delete(N.key)):(S.delete(N.key),E.delete(N.key))}})}a.value=E},s=w=>n.value.has(w.key),i=w=>a.value.has(w.key),u=(w,b,S=!0,E=!0)=>{const O=n.value,I=(N,P)=>{O[P?Nc.ADD:Nc.DELETE](N.key);const L=N.children;!e.checkStrictly&&L&&L.forEach(R=>{R.disabled||I(R,P)})};I(w,b),E&&r(),S&&c(w,b)},c=(w,b)=>{const{checkedNodes:S,checkedKeys:E}=m(),{halfCheckedNodes:O,halfCheckedKeys:I}=p();l(S4,w.data,{checkedKeys:E,checkedNodes:S,halfCheckedKeys:I,halfCheckedNodes:O}),l(k4,w.data,b)};function d(w=!1){return m(w).checkedKeys}function f(w=!1){return m(w).checkedNodes}function h(){return p().halfCheckedKeys}function v(){return p().halfCheckedNodes}function m(w=!1){const b=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:E}=t.value;n.value.forEach(O=>{const I=E.get(O);I&&(!w||w&&I.isLeaf)&&(S.push(O),b.push(I.data))})}return{checkedKeys:S,checkedNodes:b}}function p(){const w=[],b=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;a.value.forEach(E=>{const O=S.get(E);O&&(b.push(E),w.push(O.data))})}return{halfCheckedNodes:w,halfCheckedKeys:b}}function y(w){n.value.clear(),a.value.clear(),Ne(()=>{x(w)})}function g(w,b){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&u(S,b,!1)}}function x(w){if(t!=null&&t.value){const{treeNodeMap:b}=t.value;if(e.showCheckbox&&b&&(w==null?void 0:w.length)>0){for(const S of w){const E=b.get(S);E&&!s(E)&&u(E,!0,!1,!1)}r()}}}return{updateCheckedKeys:r,toggleCheckbox:u,isChecked:s,isIndeterminate:i,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:v,setChecked:g,setCheckedKeys:y}}function GU(e,t){const n=A(new Set([])),a=A(new Set([])),l=C(()=>Je(e.filterMethod));function r(i){var u;if(!l.value)return;const c=new Set,d=a.value,f=n.value,h=[],v=((u=t.value)==null?void 0:u.treeNodes)||[],m=e.filterMethod;f.clear();function p(y){y.forEach(g=>{h.push(g),m!=null&&m(i,g.data,g)?h.forEach(w=>{c.add(w.key)}):g.isLeaf&&f.add(g.key);const x=g.children;if(x&&p(x),!g.isLeaf){if(!c.has(g.key))f.add(g.key);else if(x){let w=!0;for(const b of x)if(!f.has(b.key)){w=!1;break}w?d.add(g.key):d.delete(g.key)}}h.pop()})}return p(v),c}function s(i){return a.value.has(i.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:r,isForceHiddenExpandIcon:s}}function XU(e,t){const n=A(new Set(e.defaultExpandedKeys)),a=A(),l=Ot(),r=A();ue(()=>e.currentNodeKey,le=>{a.value=le},{immediate:!0}),ue(()=>e.data,le=>{se(le)},{immediate:!0});const{isIndeterminate:s,isChecked:i,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:v,setCheckedKeys:m}=YU(e,l),{doFilter:p,hiddenNodeKeySet:y,isForceHiddenExpandIcon:g}=GU(e,l),x=C(()=>{var le;return((le=e.props)==null?void 0:le.value)||Xo.KEY}),w=C(()=>{var le;return((le=e.props)==null?void 0:le.children)||Xo.CHILDREN}),b=C(()=>{var le;return((le=e.props)==null?void 0:le.disabled)||Xo.DISABLED}),S=C(()=>{var le;return((le=e.props)==null?void 0:le.label)||Xo.LABEL}),E=C(()=>{var le;const we=n.value,Le=y.value,De=[],Ye=((le=l.value)==null?void 0:le.treeNodes)||[],$e=[];for(let Te=Ye.length-1;Te>=0;--Te)$e.push(Ye[Te]);for(;$e.length;){const Te=$e.pop();if(!Le.has(Te.key)&&(De.push(Te),Te.children&&we.has(Te.key)))for(let ke=Te.children.length-1;ke>=0;--ke)$e.push(Te.children[ke])}return De}),O=C(()=>E.value.length>0);function I(le){const we=new Map,Le=new Map;let De=1;function Ye(Te,ke=1,He=void 0){var Ge;const at=[];for(const nt of Te){const be=L(nt),je={level:ke,key:be,data:nt};je.label=K(nt),je.parent=He;const ft=P(nt);je.disabled=R(nt),je.isLeaf=!ft||ft.length===0,ft&&ft.length&&(je.children=Ye(ft,ke+1,je)),at.push(je),we.set(be,je),Le.has(ke)||Le.set(ke,[]),(Ge=Le.get(ke))==null||Ge.push(je)}return ke>De&&(De=ke),at}const $e=Ye(le);return{treeNodeMap:we,levelTreeNodeMap:Le,maxLevel:De,treeNodes:$e}}function N(le){const we=p(le);we&&(n.value=we)}function P(le){return le[w.value]}function L(le){return le?le[x.value]:""}function R(le){return le[b.value]}function K(le){return le[S.value]}function U(le){n.value.has(le.key)?W(le):F(le)}function H(le){const we=new Set,Le=l.value.treeNodeMap;le.forEach(De=>{let Ye=Le.get(De);for(;Ye&&!we.has(Ye.key);)we.add(Ye.key),Ye=Ye.parent}),n.value=we}function V(le,we){t(y4,le.data,le,we),B(le),e.expandOnClickNode&&U(le),e.showCheckbox&&e.checkOnClickNode&&!le.disabled&&u(le,!i(le),!0)}function D(le,we){t(_4,le.data,le,we)}function B(le){ne(le)||(a.value=le.key,t(C4,le.data,le))}function z(le,we){u(le,we)}function F(le){const we=n.value;if(l.value&&e.accordion){const{treeNodeMap:Le}=l.value;we.forEach(De=>{const Ye=Le.get(De);le&&le.level===(Ye==null?void 0:Ye.level)&&we.delete(De)})}we.add(le.key),t(b4,le.data,le)}function W(le){n.value.delete(le.key),t(w4,le.data,le)}function Z(le){return n.value.has(le.key)}function j(le){return!!le.disabled}function ne(le){const we=a.value;return we!==void 0&&we===le.key}function oe(){var le,we;if(a.value)return(we=(le=l.value)==null?void 0:le.treeNodeMap.get(a.value))==null?void 0:we.data}function ce(){return a.value}function te(le){a.value=le}function se(le){Ne(()=>l.value=I(le))}function fe(le){var we;const Le=ht(le)?L(le):le;return(we=l.value)==null?void 0:we.treeNodeMap.get(Le)}function xe(le,we="auto"){const Le=fe(le);Le&&r.value&&r.value.scrollToItem(E.value.indexOf(Le),we)}function me(le){var we;(we=r.value)==null||we.scrollTo(le)}return{tree:l,flattenTree:E,isNotEmpty:O,listRef:r,getKey:L,getChildren:P,toggleExpand:U,toggleCheckbox:u,isExpanded:Z,isChecked:i,isIndeterminate:s,isDisabled:j,isCurrent:ne,isForceHiddenExpandIcon:g,handleNodeClick:V,handleNodeDrop:D,handleNodeCheck:z,getCurrentNode:oe,getCurrentKey:ce,setCurrentKey:te,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:v,setCheckedKeys:m,filter:N,setData:se,getNode:fe,expandNode:F,collapseNode:W,setExpandedKeys:H,scrollToNode:xe,scrollTo:me}}var ZU=T({name:"ElTreeNodeContent",props:jU,setup(e){const t=Se(Sf),n=de("tree");return()=>{const a=e.node,{data:l}=a;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:a,data:l}):Pe("span",{class:n.be("node","label")},[a==null?void 0:a.label])}}});const JU=T({name:"ElTreeNode"}),QU=T({...JU,props:WU,emits:UU,setup(e,{emit:t}){const n=e,a=Se(Sf),l=de("tree"),r=C(()=>{var v;return(v=a==null?void 0:a.props.indent)!=null?v:16}),s=C(()=>{var v;return(v=a==null?void 0:a.props.icon)!=null?v:rd}),i=v=>{const m=a==null?void 0:a.props.props.class;if(!m)return{};let p;if(Je(m)){const{data:y}=v;p=m(y,v)}else p=m;return Ve(p)?{[p]:!0}:p},u=v=>{t("click",n.node,v)},c=v=>{t("drop",n.node,v)},d=()=>{t("toggle",n.node)},f=v=>{t("check",n.node,v)},h=v=>{var m,p,y,g;(y=(p=(m=a==null?void 0:a.instance)==null?void 0:m.vnode)==null?void 0:p.props)!=null&&y.onNodeContextmenu&&(v.stopPropagation(),v.preventDefault()),a==null||a.ctx.emit(E4,v,(g=n.node)==null?void 0:g.data,n.node)};return(v,m)=>{var p,y,g;return _(),M("div",{ref:"node$",class:$([o(l).b("node"),o(l).is("expanded",v.expanded),o(l).is("current",v.current),o(l).is("focusable",!v.disabled),o(l).is("checked",!v.disabled&&v.checked),i(v.node)]),role:"treeitem",tabindex:"-1","aria-expanded":v.expanded,"aria-disabled":v.disabled,"aria-checked":v.checked,"data-key":(p=v.node)==null?void 0:p.key,onClick:Ae(u,["stop"]),onContextmenu:h,onDragover:Ae(()=>{},["prevent"]),onDragenter:Ae(()=>{},["prevent"]),onDrop:Ae(c,["stop"])},[k("div",{class:$(o(l).be("node","content")),style:Oe({paddingLeft:`${(v.node.level-1)*o(r)}px`,height:v.itemSize+"px"})},[o(s)?(_(),ae(o(Me),{key:0,class:$([o(l).is("leaf",!!((y=v.node)!=null&&y.isLeaf)),o(l).is("hidden",v.hiddenExpandIcon),{expanded:!((g=v.node)!=null&&g.isLeaf)&&v.expanded},o(l).be("node","expand-icon")]),onClick:Ae(d,["stop"])},{default:G(()=>[(_(),ae(Qe(o(s))))]),_:1},8,["class","onClick"])):ee("v-if",!0),v.showCheckbox?(_(),ae(o(Qn),{key:1,"model-value":v.checked,indeterminate:v.indeterminate,disabled:v.disabled,onChange:f,onClick:Ae(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):ee("v-if",!0),q(o(ZU),{node:v.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var eY=ve(QU,[["__file","tree-node.vue"]]);const tY=T({name:"ElTreeV2"}),nY=T({...tY,props:KU,emits:qU,setup(e,{expose:t,emit:n}){const a=e,l=Xt(),r=C(()=>a.itemSize);it(Sf,{ctx:{emit:n,slots:l},props:a,instance:et()}),it(Sa,void 0);const{t:s}=ct(),i=de("tree"),{flattenTree:u,isNotEmpty:c,listRef:d,toggleExpand:f,isExpanded:h,isIndeterminate:v,isChecked:m,isDisabled:p,isCurrent:y,isForceHiddenExpandIcon:g,handleNodeClick:x,handleNodeDrop:w,handleNodeCheck:b,toggleCheckbox:S,getCurrentNode:E,getCurrentKey:O,setCurrentKey:I,getCheckedKeys:N,getCheckedNodes:P,getHalfCheckedKeys:L,getHalfCheckedNodes:R,setChecked:K,setCheckedKeys:U,filter:H,setData:V,getNode:D,expandNode:B,collapseNode:z,setExpandedKeys:F,scrollToNode:W,scrollTo:Z}=XU(a,n);return t({toggleCheckbox:S,getCurrentNode:E,getCurrentKey:O,setCurrentKey:I,getCheckedKeys:N,getCheckedNodes:P,getHalfCheckedKeys:L,getHalfCheckedNodes:R,setChecked:K,setCheckedKeys:U,filter:H,setData:V,getNode:D,expandNode:B,collapseNode:z,setExpandedKeys:F,scrollToNode:W,scrollTo:Z}),(j,ne)=>(_(),M("div",{class:$([o(i).b(),{[o(i).m("highlight-current")]:j.highlightCurrent}]),role:"tree"},[o(c)?(_(),ae(o(sm),{key:0,ref_key:"listRef",ref:d,"class-name":o(i).b("virtual-list"),data:o(u),total:o(u).length,height:j.height,"item-size":o(r),"perf-mode":j.perfMode},{default:G(({data:oe,index:ce,style:te})=>[(_(),ae(eY,{key:oe[ce].key,style:Oe(te),node:oe[ce],expanded:o(h)(oe[ce]),"show-checkbox":j.showCheckbox,checked:o(m)(oe[ce]),indeterminate:o(v)(oe[ce]),"item-size":o(r),disabled:o(p)(oe[ce]),current:o(y)(oe[ce]),"hidden-expand-icon":o(g)(oe[ce]),onClick:o(x),onToggle:o(f),onCheck:o(b),onDrop:o(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(_(),M("div",{key:1,class:$(o(i).e("empty-block"))},[Q(j.$slots,"empty",{},()=>{var oe;return[k("span",{class:$(o(i).e("empty-text"))},he((oe=j.emptyText)!=null?oe:o(s)("el.tree.emptyText")),3)]})],2))],2))}});var aY=ve(nY,[["__file","tree.vue"]]);const lY=We(aY),x4=Symbol("uploadContextKey"),oY="ElUpload";class rY extends Error{constructor(t,n,a,l){super(t),this.name="UploadAjaxError",this.status=n,this.method=a,this.url=l}}function vp(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new rY(a,n.status,t.method,e)}function sY(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const iY=e=>{typeof XMLHttpRequest>"u"&&Gt(oY,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",r=>{const s=r;s.percent=r.total>0?r.loaded/r.total*100:0,e.onProgress(s)});const a=new FormData;if(e.data)for(const[r,s]of Object.entries(e.data))Ee(s)&&s.length?a.append(r,...s):a.append(r,s);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(vp(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(vp(n,e,t));e.onSuccess(sY(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const l=e.headers||{};if(l instanceof Headers)l.forEach((r,s)=>t.setRequestHeader(s,r));else for(const[r,s]of Object.entries(l))Zt(s)||t.setRequestHeader(r,String(s));return t.send(a),t},M4=["text","picture","picture-card"];let uY=1;const Ic=()=>Date.now()+uY++,$4=pe({action:{type:String,default:"#"},headers:{type:X(Object)},method:{type:String,default:"post"},data:{type:X([Object,Function,Promise]),default:()=>Vt({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:X(Array),default:()=>Vt([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:M4,default:"text"},httpRequest:{type:X(Function),default:iY},disabled:Boolean,limit:Number}),cY=pe({...$4,beforeUpload:{type:X(Function),default:zt},beforeRemove:{type:X(Function)},onRemove:{type:X(Function),default:zt},onChange:{type:X(Function),default:zt},onPreview:{type:X(Function),default:zt},onSuccess:{type:X(Function),default:zt},onProgress:{type:X(Function),default:zt},onError:{type:X(Function),default:zt},onExceed:{type:X(Function),default:zt},crossorigin:{type:X(String)}}),dY=pe({files:{type:X(Array),default:()=>Vt([])},disabled:{type:Boolean,default:!1},handlePreview:{type:X(Function),default:zt},listType:{type:String,values:M4,default:"text"},crossorigin:{type:X(String)}}),fY={remove:e=>!!e},pY=T({name:"ElUploadList"}),vY=T({...pY,props:dY,emits:fY,setup(e,{emit:t}){const n=e,{t:a}=ct(),l=de("upload"),r=de("icon"),s=de("list"),i=gn(),u=A(!1),c=C(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",n.disabled)]),d=f=>{t("remove",f)};return(f,h)=>(_(),ae(Mp,{tag:"ul",class:$(o(c)),name:o(s).b()},{default:G(()=>[(_(!0),M(ze,null,rt(f.files,(v,m)=>(_(),M("li",{key:v.uid||v.name,class:$([o(l).be("list","item"),o(l).is(v.status),{focusing:u.value}]),tabindex:"0",onKeydown:kt(p=>!o(i)&&d(v),["delete"]),onFocus:p=>u.value=!0,onBlur:p=>u.value=!1,onClick:p=>u.value=!1},[Q(f.$slots,"default",{file:v,index:m},()=>[f.listType==="picture"||v.status!=="uploading"&&f.listType==="picture-card"?(_(),M("img",{key:0,class:$(o(l).be("list","item-thumbnail")),src:v.url,crossorigin:f.crossorigin,alt:""},null,10,["src","crossorigin"])):ee("v-if",!0),v.status==="uploading"||f.listType!=="picture-card"?(_(),M("div",{key:1,class:$(o(l).be("list","item-info"))},[k("a",{class:$(o(l).be("list","item-name")),onClick:Ae(p=>f.handlePreview(v),["prevent"])},[q(o(Me),{class:$(o(r).m("document"))},{default:G(()=>[q(o(H1))]),_:1},8,["class"]),k("span",{class:$(o(l).be("list","item-file-name")),title:v.name},he(v.name),11,["title"])],10,["onClick"]),v.status==="uploading"?(_(),ae(o(Zh),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(v.percentage),style:Oe(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ee("v-if",!0)],2)):ee("v-if",!0),k("label",{class:$(o(l).be("list","item-status-label"))},[f.listType==="text"?(_(),ae(o(Me),{key:0,class:$([o(r).m("upload-success"),o(r).m("circle-check")])},{default:G(()=>[q(o(wi))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(_(),ae(o(Me),{key:1,class:$([o(r).m("upload-success"),o(r).m("check")])},{default:G(()=>[q(o(zo))]),_:1},8,["class"])):ee("v-if",!0)],2),o(i)?ee("v-if",!0):(_(),ae(o(Me),{key:2,class:$(o(r).m("close")),onClick:p=>d(v)},{default:G(()=>[q(o(Xn))]),_:2},1032,["class","onClick"])),ee(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ee(" This is a bug which needs to be fixed "),ee(" TODO: Fix the incorrect navigation interaction "),o(i)?ee("v-if",!0):(_(),M("i",{key:3,class:$(o(r).m("close-tip"))},he(o(a)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(_(),M("span",{key:4,class:$(o(l).be("list","item-actions"))},[k("span",{class:$(o(l).be("list","item-preview")),onClick:p=>f.handlePreview(v)},[q(o(Me),{class:$(o(r).m("zoom-in"))},{default:G(()=>[q(o(cd))]),_:1},8,["class"])],10,["onClick"]),o(i)?ee("v-if",!0):(_(),M("span",{key:0,class:$(o(l).be("list","item-delete")),onClick:p=>d(v)},[q(o(Me),{class:$(o(r).m("delete"))},{default:G(()=>[q(o(B1))]),_:1},8,["class"])],10,["onClick"]))],2)):ee("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),Q(f.$slots,"append")]),_:3},8,["class","name"]))}});var hp=ve(vY,[["__file","upload-list.vue"]]);const hY=pe({disabled:{type:Boolean,default:!1}}),mY={file:e=>Ee(e)},T4="ElUploadDrag",gY=T({name:T4}),yY=T({...gY,props:hY,emits:mY,setup(e,{emit:t}){Se(x4)||Gt(T4,"usage: ");const a=de("upload"),l=A(!1),r=gn(),s=u=>{if(r.value)return;l.value=!1,u.stopPropagation();const c=Array.from(u.dataTransfer.files);t("file",c)},i=()=>{r.value||(l.value=!0)};return(u,c)=>(_(),M("div",{class:$([o(a).b("dragger"),o(a).is("dragover",l.value)]),onDrop:Ae(s,["prevent"]),onDragover:Ae(i,["prevent"]),onDragleave:Ae(d=>l.value=!1,["prevent"])},[Q(u.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var _Y=ve(yY,[["__file","upload-dragger.vue"]]);const bY=pe({...$4,beforeUpload:{type:X(Function),default:zt},onRemove:{type:X(Function),default:zt},onStart:{type:X(Function),default:zt},onSuccess:{type:X(Function),default:zt},onProgress:{type:X(Function),default:zt},onError:{type:X(Function),default:zt},onExceed:{type:X(Function),default:zt}}),wY=T({name:"ElUploadContent",inheritAttrs:!1}),CY=T({...wY,props:bY,setup(e,{expose:t}){const n=e,a=de("upload"),l=gn(),r=Ot({}),s=Ot(),i=p=>{if(p.length===0)return;const{autoUpload:y,limit:g,fileList:x,multiple:w,onStart:b,onExceed:S}=n;if(g&&x.length+p.length>g){S(p,x);return}w||(p=p.slice(0,1));for(const E of p){const O=E;O.uid=Ic(),b(O),y&&u(O)}},u=async p=>{if(s.value.value="",!n.beforeUpload)return d(p);let y,g={};try{const w=n.data,b=n.beforeUpload(p);g=ku(n.data)?Rs(n.data):n.data,y=await b,ku(n.data)&&dn(w,g)&&(g=Rs(n.data))}catch{y=!1}if(y===!1){n.onRemove(p);return}let x=p;y instanceof Blob&&(y instanceof File?x=y:x=new File([y],p.name,{type:p.type})),d(Object.assign(x,{uid:p.uid}),g)},c=async(p,y)=>Je(p)?p(y):p,d=async(p,y)=>{const{headers:g,data:x,method:w,withCredentials:b,name:S,action:E,onProgress:O,onSuccess:I,onError:N,httpRequest:P}=n;try{y=await c(y??x,p)}catch{n.onRemove(p);return}const{uid:L}=p,R={headers:g||{},withCredentials:b,file:p,data:y,method:w,filename:S,action:E,onProgress:U=>{O(U,p)},onSuccess:U=>{I(U,p),delete r.value[L]},onError:U=>{N(U,p),delete r.value[L]}},K=P(R);r.value[L]=K,K instanceof Promise&&K.then(R.onSuccess,R.onError)},f=p=>{const y=p.target.files;y&&i(Array.from(y))},h=()=>{l.value||(s.value.value="",s.value.click())},v=()=>{h()};return t({abort:p=>{T1(r.value).filter(p?([g])=>String(p.uid)===g:()=>!0).forEach(([g,x])=>{x instanceof XMLHttpRequest&&x.abort(),delete r.value[g]})},upload:u}),(p,y)=>(_(),M("div",{class:$([o(a).b(),o(a).m(p.listType),o(a).is("drag",p.drag),o(a).is("disabled",o(l))]),tabindex:o(l)?"-1":"0",onClick:h,onKeydown:kt(Ae(v,["self"]),["enter","space"])},[p.drag?(_(),ae(_Y,{key:0,disabled:o(l),onFile:i},{default:G(()=>[Q(p.$slots,"default")]),_:3},8,["disabled"])):Q(p.$slots,"default",{key:1}),k("input",{ref_key:"inputRef",ref:s,class:$(o(a).e("input")),name:p.name,disabled:o(l),multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:Ae(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var mp=ve(CY,[["__file","upload-content.vue"]]);const gp="ElUpload",yp=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},SY=(e,t)=>{const n=w1(e,"fileList",void 0,{passive:!0}),a=v=>n.value.find(m=>m.uid===v.uid);function l(v){var m;(m=t.value)==null||m.abort(v)}function r(v=["ready","uploading","success","fail"]){n.value=n.value.filter(m=>!v.includes(m.status))}function s(v){n.value=n.value.filter(m=>m.uid!==v.uid)}const i=(v,m)=>{const p=a(m);p&&(console.error(v),p.status="fail",s(p),e.onError(v,p,n.value),e.onChange(p,n.value))},u=(v,m)=>{const p=a(m);p&&(e.onProgress(v,p,n.value),p.status="uploading",p.percentage=Math.round(v.percent))},c=(v,m)=>{const p=a(m);p&&(p.status="success",p.response=v,e.onSuccess(v,p,n.value),e.onChange(p,n.value))},d=v=>{Zt(v.uid)&&(v.uid=Ic());const m={name:v.name,percentage:0,status:"ready",size:v.size,raw:v,uid:v.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(v)}catch(p){p.message,e.onError(p,m,n.value)}n.value=[...n.value,m],e.onChange(m,n.value)},f=async v=>{const m=v instanceof File?a(v):v;m||Gt(gp,"file to be removed not found");const p=y=>{l(y),s(y),e.onRemove(y,n.value),yp(y)};e.beforeRemove?await e.beforeRemove(m,n.value)!==!1&&p(m):p(m)};function h(){n.value.filter(({status:v})=>v==="ready").forEach(({raw:v})=>{var m;return v&&((m=t.value)==null?void 0:m.upload(v))})}return ue(()=>e.listType,v=>{v!=="picture-card"&&v!=="picture"||(n.value=n.value.map(m=>{const{raw:p,url:y}=m;if(!y&&p)try{m.url=URL.createObjectURL(p)}catch(g){e.onError(g,m,n.value)}return m}))}),ue(n,v=>{for(const m of v)m.uid||(m.uid=Ic()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:l,clearFiles:r,handleError:i,handleProgress:u,handleStart:d,handleSuccess:c,handleRemove:f,submit:h,revokeFileObjectURL:yp}},kY=T({name:"ElUpload"}),EY=T({...kY,props:cY,setup(e,{expose:t}){const n=e,a=gn(),l=Ot(),{abort:r,submit:s,clearFiles:i,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:v,revokeFileObjectURL:m}=SY(n,l),p=C(()=>n.listType==="picture-card"),y=C(()=>({...n,fileList:u.value,onStart:c,onProgress:v,onSuccess:h,onError:d,onRemove:f}));return $t(()=>{u.value.forEach(m)}),it(x4,{accept:yt(n,"accept")}),t({abort:r,submit:s,clearFiles:i,handleStart:c,handleRemove:f}),(g,x)=>(_(),M("div",null,[o(p)&&g.showFileList?(_(),ae(hp,{key:0,disabled:o(a),"list-type":g.listType,files:o(u),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:o(f)},Yn({append:G(()=>[q(mp,tt({ref_key:"uploadRef",ref:l},o(y)),{default:G(()=>[g.$slots.trigger?Q(g.$slots,"trigger",{key:0}):ee("v-if",!0),!g.$slots.trigger&&g.$slots.default?Q(g.$slots,"default",{key:1}):ee("v-if",!0)]),_:3},16)]),_:2},[g.$slots.file?{name:"default",fn:G(({file:w,index:b})=>[Q(g.$slots,"file",{file:w,index:b})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ee("v-if",!0),!o(p)||o(p)&&!g.showFileList?(_(),ae(mp,tt({key:1,ref_key:"uploadRef",ref:l},o(y)),{default:G(()=>[g.$slots.trigger?Q(g.$slots,"trigger",{key:0}):ee("v-if",!0),!g.$slots.trigger&&g.$slots.default?Q(g.$slots,"default",{key:1}):ee("v-if",!0)]),_:3},16)):ee("v-if",!0),g.$slots.trigger?Q(g.$slots,"default",{key:2}):ee("v-if",!0),Q(g.$slots,"tip"),!o(p)&&g.showFileList?(_(),ae(hp,{key:3,disabled:o(a),"list-type":g.listType,files:o(u),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:o(f)},Yn({_:2},[g.$slots.file?{name:"default",fn:G(({file:w,index:b})=>[Q(g.$slots,"file",{file:w,index:b})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ee("v-if",!0)]))}});var xY=ve(EY,[["__file","upload.vue"]]);const MY=We(xY),$Y=pe({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:X([String,Array]),default:"Element Plus"},font:{type:X(Object)},gap:{type:X(Array),default:()=>[100,100]},offset:{type:X(Array)}});function TY(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function OY(e){return Object.keys(e).map(t=>`${TY(t)}: ${e[t]};`).join(" ")}function NY(){return window.devicePixelRatio||1}const IY=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},O4=3;function wu(e,t,n=1){const a=document.createElement("canvas"),l=a.getContext("2d"),r=e*n,s=t*n;return a.setAttribute("width",`${r}px`),a.setAttribute("height",`${s}px`),l.save(),[l,a,r,s]}function PY(){function e(t,n,a,l,r,s,i,u){const[c,d,f,h]=wu(l,r,a);if(t instanceof HTMLImageElement)c.drawImage(t,0,0,f,h);else{const{color:W,fontSize:Z,fontStyle:j,fontWeight:ne,fontFamily:oe,textAlign:ce,textBaseline:te}=s,se=Number(Z)*a;c.font=`${j} normal ${ne} ${se}px/${r}px ${oe}`,c.fillStyle=W,c.textAlign=ce,c.textBaseline=te;const fe=Ee(t)?t:[t];fe==null||fe.forEach((xe,me)=>{c.fillText(xe??"",f/2,me*(se+O4*a))})}const v=Math.PI/180*Number(n),m=Math.max(l,r),[p,y,g]=wu(m,m,a);p.translate(g/2,g/2),p.rotate(v),f>0&&h>0&&p.drawImage(d,-f/2,-h/2);function x(W,Z){const j=W*Math.cos(v)-Z*Math.sin(v),ne=W*Math.sin(v)+Z*Math.cos(v);return[j,ne]}let w=0,b=0,S=0,E=0;const O=f/2,I=h/2;[[0-O,0-I],[0+O,0-I],[0+O,0+I],[0-O,0+I]].forEach(([W,Z])=>{const[j,ne]=x(W,Z);w=Math.min(w,j),b=Math.max(b,j),S=Math.min(S,ne),E=Math.max(E,ne)});const P=w+g/2,L=S+g/2,R=b-w,K=E-S,U=i*a,H=u*a,V=(R+U)*2,D=K+H,[B,z]=wu(V,D);function F(W=0,Z=0){B.drawImage(y,P,L,R,K,W,Z,R,K)}return F(),F(R+U,-K/2-H/2),F(R+U,+K/2+H/2),[z.toDataURL(),V/a,D/a]}return e}const zY=T({name:"ElWatermark"}),AY=T({...zY,props:$Y,setup(e){const t=e,n={position:"relative"},a=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.color)!=null?L:"rgba(0,0,0,.15)"}),l=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.fontSize)!=null?L:16}),r=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.fontWeight)!=null?L:"normal"}),s=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.fontStyle)!=null?L:"normal"}),i=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.fontFamily)!=null?L:"sans-serif"}),u=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.textAlign)!=null?L:"center"}),c=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.textBaseline)!=null?L:"hanging"}),d=C(()=>t.gap[0]),f=C(()=>t.gap[1]),h=C(()=>d.value/2),v=C(()=>f.value/2),m=C(()=>{var P,L;return(L=(P=t.offset)==null?void 0:P[0])!=null?L:h.value}),p=C(()=>{var P,L;return(L=(P=t.offset)==null?void 0:P[1])!=null?L:v.value}),y=()=>{const P={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let L=m.value-h.value,R=p.value-v.value;return L>0&&(P.left=`${L}px`,P.width=`calc(100% - ${L}px)`,L=0),R>0&&(P.top=`${R}px`,P.height=`calc(100% - ${R}px)`,R=0),P.backgroundPosition=`${L}px ${R}px`,P},g=Ot(null),x=Ot(),w=A(!1),b=()=>{x.value&&(x.value.remove(),x.value=void 0)},S=(P,L)=>{var R;g.value&&x.value&&(w.value=!0,x.value.setAttribute("style",OY({...y(),backgroundImage:`url('${P}')`,backgroundSize:`${Math.floor(L)}px`})),(R=g.value)==null||R.append(x.value),setTimeout(()=>{w.value=!1}))},E=P=>{let L=120,R=64;const K=t.image,U=t.content,H=t.width,V=t.height;if(!K&&P.measureText){P.font=`${Number(l.value)}px ${i.value}`;const D=Ee(U)?U:[U],B=D.map(z=>{const F=P.measureText(z);return[F.width,F.fontBoundingBoxAscent!==void 0?F.fontBoundingBoxAscent+F.fontBoundingBoxDescent:F.actualBoundingBoxAscent+F.actualBoundingBoxDescent]});L=Math.ceil(Math.max(...B.map(z=>z[0]))),R=Math.ceil(Math.max(...B.map(z=>z[1])))*D.length+(D.length-1)*O4}return[H??L,V??R]},O=PY(),I=()=>{const L=document.createElement("canvas").getContext("2d"),R=t.image,K=t.content,U=t.rotate;if(L){x.value||(x.value=document.createElement("div"));const H=NY(),[V,D]=E(L),B=z=>{const[F,W]=O(z||"",U,H,V,D,{color:a.value,fontSize:l.value,fontStyle:s.value,fontWeight:r.value,fontFamily:i.value,textAlign:u.value,textBaseline:c.value},d.value,f.value);S(F,W)};if(R){const z=new Image;z.onload=()=>{B(z)},z.onerror=()=>{B(K)},z.crossOrigin="anonymous",z.referrerPolicy="no-referrer",z.src=R}else B(K)}};return Xe(()=>{I()}),ue(()=>t,()=>{I()},{deep:!0,flush:"post"}),$t(()=>{b()}),b1(g,P=>{w.value||P.forEach(L=>{IY(L,x.value)&&(b(),I())})},{attributes:!0,subtree:!0,childList:!0}),(P,L)=>(_(),M("div",{ref_key:"containerRef",ref:g,style:Oe([n])},[Q(P.$slots,"default")],4))}});var VY=ve(AY,[["__file","watermark.vue"]]);const LY=We(VY),RY=pe({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:X(Object)},targetAreaClickable:{type:Boolean,default:!0}}),BY=(e,t,n,a,l)=>{const r=A(null),s=()=>{let f;return Ve(e.value)?f=document.querySelector(e.value):Je(e.value)?f=e.value():f=e.value,f},i=()=>{const f=s();if(!f||!t.value){r.value=null;return}HY(f)||f.scrollIntoView(l.value);const{left:h,top:v,width:m,height:p}=f.getBoundingClientRect();r.value={left:h,top:v,width:m,height:p,radius:0}};Xe(()=>{ue([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),$t(()=>{window.removeEventListener("resize",i)});const u=f=>{var h;return(h=Ee(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?h:6},c=C(()=>{var f;if(!r.value)return r.value;const h=u(0),v=u(1),m=((f=n.value)==null?void 0:f.radius)||2;return{left:r.value.left-h,top:r.value.top-v,width:r.value.width+h*2,height:r.value.height+v*2,radius:m}}),d=C(()=>{const f=s();return!a.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var h,v,m,p;return window.DOMRect.fromRect({width:((h=c.value)==null?void 0:h.width)||0,height:((v=c.value)==null?void 0:v.height)||0,x:((m=c.value)==null?void 0:m.left)||0,y:((p=c.value)==null?void 0:p.top)||0})}}});return{mergedPosInfo:c,triggerTarget:d}},Hi=Symbol("ElTour");function HY(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:l,bottom:r,left:s}=e.getBoundingClientRect();return a>=0&&s>=0&&l<=t&&r<=n}const DY=(e,t,n,a,l,r,s,i)=>{const u=A(),c=A(),d=A({}),f={x:u,y:c,placement:a,strategy:l,middlewareData:d},h=C(()=>{const g=[c4(o(r)),jq(),Wq(),FY()];return o(i)&&o(n)&&g.push(d4({element:o(n)})),g}),v=async()=>{if(!ut)return;const g=o(e),x=o(t);if(!g||!x)return;const w=await f4(g,x,{placement:o(a),strategy:o(l),middleware:o(h)});fo(f).forEach(b=>{f[b].value=w[b]})},m=C(()=>{if(!o(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:o(s)};const{overflow:g}=o(d);return{position:o(l),zIndex:o(s),top:o(c)!=null?`${o(c)}px`:"",left:o(u)!=null?`${o(u)}px`:"",maxWidth:g!=null&&g.maxWidth?`${g==null?void 0:g.maxWidth}px`:""}}),p=C(()=>{if(!o(i))return{};const{arrow:g}=o(d);return{left:(g==null?void 0:g.x)!=null?`${g==null?void 0:g.x}px`:"",top:(g==null?void 0:g.y)!=null?`${g==null?void 0:g.y}px`:""}});let y;return Xe(()=>{const g=o(e),x=o(t);g&&x&&(y=Fq(g,x,v)),cn(()=>{v()})}),$t(()=>{y&&y()}),{update:v,contentStyle:m,arrowStyle:p}},FY=()=>({name:"overflow",async fn(e){const t=await Kq(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),KY=T({name:"ElTourMask",inheritAttrs:!1}),WY=T({...KY,props:RY,setup(e){const t=e,{ns:n}=Se(Hi),a=C(()=>{var i,u;return(u=(i=t.pos)==null?void 0:i.radius)!=null?u:2}),l=C(()=>{const i=a.value,u=`a${i},${i} 0 0 1`;return{topRight:`${u} ${i},${i}`,bottomRight:`${u} ${-i},${i}`,bottomLeft:`${u} ${-i},${-i}`,topLeft:`${u} ${i},${-i}`}}),r=C(()=>{const i=window.innerWidth,u=window.innerHeight,c=l.value,d=`M${i},0 L0,0 L0,${u} L${i},${u} L${i},0 Z`,f=a.value;return t.pos?`${d} M${t.pos.left+f},${t.pos.top} h${t.pos.width-f*2} ${c.topRight} v${t.pos.height-f*2} ${c.bottomRight} h${-t.pos.width+f*2} ${c.bottomLeft} v${-t.pos.height+f*2} ${c.topLeft} z`:d}),s=C(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return Fd(yt(t,"visible"),{ns:n}),(i,u)=>i.visible?(_(),M("div",tt({key:0,class:o(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:i.zIndex,pointerEvents:i.pos&&i.targetAreaClickable?"none":"auto"}},i.$attrs),[(_(),M("svg",{style:{width:"100%",height:"100%"}},[k("path",{class:$(o(n).e("hollow")),style:Oe(o(s)),d:o(r)},null,14,["d"])]))],16)):ee("v-if",!0)}});var jY=ve(WY,[["__file","mask.vue"]]);const qY=["absolute","fixed"],UY=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],kf=pe({placement:{type:X(String),values:UY,default:"bottom"},reference:{type:X(Object),default:null},strategy:{type:X(String),values:qY,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),YY={close:()=>!0},GY=T({name:"ElTourContent"}),XY=T({...GY,props:kf,emits:YY,setup(e,{emit:t}){const n=e,a=A(n.placement),l=A(n.strategy),r=A(null),s=A(null);ue(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:i,arrowStyle:u}=DY(yt(n,"reference"),r,s,a,l,yt(n,"offset"),yt(n,"zIndex"),yt(n,"showArrow")),c=C(()=>a.value.split("-")[0]),{ns:d}=Se(Hi),f=()=>{t("close")},h=v=>{v.detail.focusReason==="pointer"&&v.preventDefault()};return(v,m)=>(_(),M("div",{ref_key:"contentRef",ref:r,style:Oe(o(i)),class:$(o(d).e("content")),"data-side":o(c),tabindex:"-1"},[q(o(Ao),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:f,onFocusoutPrevented:h},{default:G(()=>[Q(v.$slots,"default")]),_:3},8,["focus-trap-el"]),v.showArrow?(_(),M("span",{key:0,ref_key:"arrowRef",ref:s,style:Oe(o(u)),class:$(o(d).e("arrow"))},null,6)):ee("v-if",!0)],14,["data-side"]))}});var ZY=ve(XY,[["__file","content.vue"]]),JY=T({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var l,r;const s=(l=t.default)==null?void 0:l.call(t),i=[];let u=0;function c(d){Ee(d)&&d.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(i.push(f),u+=1)})}return s.length&&c(ll((r=s[0])==null?void 0:r.children)),a!==u&&(a=u,n("update-total",u)),i.length?i[e.current]:null}}});const QY=pe({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:St},placement:kf.placement,contentStyle:{type:X([Object])},mask:{type:X([Boolean,Object]),default:!0},gap:{type:X(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:X([Boolean,Object]),default:()=>({block:"center"})},type:{type:X(String)},appendTo:{type:X([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),eG={[Ue]:e=>Et(e),"update:current":e=>Ie(e),close:e=>Ie(e),finish:()=>!0,change:e=>Ie(e)},tG=T({name:"ElTour"}),nG=T({...tG,props:QY,emits:eG,setup(e,{emit:t}){const n=e,a=de("tour"),l=A(0),r=A(),s=w1(n,"current",t,{passive:!0}),i=C(()=>{var N;return(N=r.value)==null?void 0:N.target}),u=C(()=>[a.b(),y.value==="primary"?a.m("primary"):""]),c=C(()=>{var N;return((N=r.value)==null?void 0:N.placement)||n.placement}),d=C(()=>{var N,P;return(P=(N=r.value)==null?void 0:N.contentStyle)!=null?P:n.contentStyle}),f=C(()=>{var N,P;return(P=(N=r.value)==null?void 0:N.mask)!=null?P:n.mask}),h=C(()=>!!f.value&&n.modelValue),v=C(()=>Et(f.value)?void 0:f.value),m=C(()=>{var N,P;return!!i.value&&((P=(N=r.value)==null?void 0:N.showArrow)!=null?P:n.showArrow)}),p=C(()=>{var N,P;return(P=(N=r.value)==null?void 0:N.scrollIntoViewOptions)!=null?P:n.scrollIntoViewOptions}),y=C(()=>{var N,P;return(P=(N=r.value)==null?void 0:N.type)!=null?P:n.type}),{nextZIndex:g}=Io(),x=g(),w=C(()=>{var N;return(N=n.zIndex)!=null?N:x}),{mergedPosInfo:b,triggerTarget:S}=BY(i,yt(n,"modelValue"),yt(n,"gap"),f,p);ue(()=>n.modelValue,N=>{N||(s.value=0)});const E=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",s.value))},O=N=>{l.value=N},I=Xt();return it(Hi,{currentStep:r,current:s,total:l,showClose:yt(n,"showClose"),closeIcon:yt(n,"closeIcon"),mergedType:y,ns:a,slots:I,updateModelValue(N){t("update:modelValue",N)},onClose(){t("close",s.value)},onFinish(){t("finish")},onChange(){t("change",s.value)}}),(N,P)=>(_(),M(ze,null,[q(o(Vo),{to:N.appendTo},{default:G(()=>{var L,R;return[k("div",tt({class:o(u)},N.$attrs),[q(jY,{visible:o(h),fill:(L=o(v))==null?void 0:L.color,style:Oe((R=o(v))==null?void 0:R.style),pos:o(b),"z-index":o(w),"target-area-clickable":N.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),N.modelValue?(_(),ae(ZY,{key:o(s),reference:o(S),placement:o(c),"show-arrow":o(m),"z-index":o(w),style:Oe(o(d)),onClose:E},{default:G(()=>[q(o(JY),{current:o(s),onUpdateTotal:O},{default:G(()=>[Q(N.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):ee("v-if",!0)],16)]}),_:3},8,["to"]),ee(" just for IDE "),ee("v-if",!0)],64))}});var aG=ve(nG,[["__file","tour.vue"]]);const lG=pe({target:{type:X([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:St},showArrow:{type:Boolean,default:void 0},placement:kf.placement,mask:{type:X([Boolean,Object]),default:void 0},contentStyle:{type:X([Object])},prevButtonProps:{type:X(Object)},nextButtonProps:{type:X(Object)},scrollIntoViewOptions:{type:X([Boolean,Object]),default:void 0},type:{type:X(String)}}),oG={close:()=>!0},rG=T({name:"ElTourStep"}),sG=T({...rG,props:lG,emits:oG,setup(e,{emit:t}){const n=e,{Close:a}=dd,{t:l}=ct(),{currentStep:r,current:s,total:i,showClose:u,closeIcon:c,mergedType:d,ns:f,slots:h,updateModelValue:v,onClose:m,onFinish:p,onChange:y}=Se(Hi);ue(n,I=>{r.value=I},{immediate:!0});const g=C(()=>{var I;return(I=n.showClose)!=null?I:u.value}),x=C(()=>{var I,N;return(N=(I=n.closeIcon)!=null?I:c.value)!=null?N:a}),w=I=>{if(I)return y_(I,["children","onClick"])},b=()=>{var I,N;s.value-=1,(I=n.prevButtonProps)!=null&&I.onClick&&((N=n.prevButtonProps)==null||N.onClick()),y()},S=()=>{var I;s.value>=i.value-1?E():s.value+=1,(I=n.nextButtonProps)!=null&&I.onClick&&n.nextButtonProps.onClick(),y()},E=()=>{O(),p()},O=()=>{v(!1),m(),t("close")};return(I,N)=>(_(),M(ze,null,[o(g)?(_(),M("button",{key:0,"aria-label":"Close",class:$(o(f).e("closebtn")),type:"button",onClick:O},[q(o(Me),{class:$(o(f).e("close"))},{default:G(()=>[(_(),ae(Qe(o(x))))]),_:1},8,["class"])],2)):ee("v-if",!0),k("header",{class:$([o(f).e("header"),{"show-close":o(u)}])},[Q(I.$slots,"header",{},()=>[k("span",{role:"heading",class:$(o(f).e("title"))},he(I.title),3)])],2),k("div",{class:$(o(f).e("body"))},[Q(I.$slots,"default",{},()=>[k("span",null,he(I.description),1)])],2),k("footer",{class:$(o(f).e("footer"))},[k("div",{class:$(o(f).b("indicators"))},[o(h).indicators?(_(),ae(Qe(o(h).indicators),{key:0,current:o(s),total:o(i)},null,8,["current","total"])):(_(!0),M(ze,{key:1},rt(o(i),(P,L)=>(_(),M("span",{key:P,class:$([o(f).b("indicator"),L===o(s)?"is-active":""])},null,2))),128))],2),k("div",{class:$(o(f).b("buttons"))},[o(s)>0?(_(),ae(o(en),tt({key:0,size:"small",type:o(d)},w(I.prevButtonProps),{onClick:b}),{default:G(()=>{var P,L;return[ot(he((L=(P=I.prevButtonProps)==null?void 0:P.children)!=null?L:o(l)("el.tour.previous")),1)]}),_:1},16,["type"])):ee("v-if",!0),o(s)<=o(i)-1?(_(),ae(o(en),tt({key:1,size:"small",type:o(d)==="primary"?"default":"primary"},w(I.nextButtonProps),{onClick:S}),{default:G(()=>{var P,L;return[ot(he((L=(P=I.nextButtonProps)==null?void 0:P.children)!=null?L:o(s)===o(i)-1?o(l)("el.tour.finish"):o(l)("el.tour.next")),1)]}),_:1},16,["type"])):ee("v-if",!0)],2)],2)],64))}});var N4=ve(sG,[["__file","step.vue"]]);const iG=We(aG,{TourStep:N4}),uG=Lt(N4),cG=pe({container:{type:X([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:X(String),default:"default"},direction:{type:X(String),default:"vertical"},selectScrollTop:{type:Boolean,default:!1}}),dG={change:e=>Ve(e),click:(e,t)=>e instanceof MouseEvent&&(Ve(t)||vt(t))},I4=Symbol("anchor"),rs=e=>{if(!ut||e==="")return null;if(Ve(e))try{return document.querySelector(e)}catch{return null}return e};function fG(e){let t=0;const n=(...a)=>{t&&Il(t),t=sl(()=>{e(...a),t=0})};return n.cancel=()=>{Il(t),t=0},n}const pG=T({name:"ElAnchor"}),vG=T({...pG,props:cG,emits:dG,setup(e,{expose:t,emit:n}){const a=e,l=A(""),r=A(null),s=A(null),i=A(),u={};let c=!1,d=0;const f=de("anchor"),h=C(()=>[f.b(),a.type==="underline"?f.m("underline"):"",f.m(a.direction)]),v=I=>{u[I.href]=I.el},m=I=>{delete u[I]},p=I=>{l.value!==I&&(l.value=I,n("change",I))};let y=null;const g=I=>{if(!i.value)return;const N=rs(I);if(!N)return;y&&y(),c=!0;const P=b0(N,i.value),L=Wu(N,P),R=P.scrollHeight-P.clientHeight,K=Math.min(L-a.offset,R);y=wb(i.value,d,K,a.duration,()=>{setTimeout(()=>{c=!1},20)})},x=I=>{I&&(p(I),g(I))},w=(I,N)=>{n("click",I,N),x(N)},b=fG(()=>{i.value&&(d=w0(i.value));const I=S();c||vt(I)||p(I)}),S=()=>{if(!i.value)return;const I=w0(i.value),N=[];for(const P of Object.keys(u)){const L=rs(P);if(!L)continue;const R=b0(L,i.value),K=Wu(L,R);N.push({top:K-a.offset-a.bound,href:P})}N.sort((P,L)=>P.top-L.top);for(let P=0;PI))return L.href}},E=()=>{const I=rs(a.container);!I||mi(I)?i.value=window:i.value=I};wt(i,"scroll",b);const O=C(()=>{if(!r.value||!s.value||!l.value)return{};const I=u[l.value];if(!I)return{};const N=r.value.getBoundingClientRect(),P=s.value.getBoundingClientRect(),L=I.getBoundingClientRect();return a.direction==="horizontal"?{left:`${L.left-N.left}px`,width:`${L.width}px`,opacity:1}:{top:`${L.top-N.top+(L.height-P.height)/2}px`,opacity:1}});return Xe(()=>{E();const I=decodeURIComponent(window.location.hash);rs(I)?x(I):b()}),ue(()=>a.container,()=>{E()}),it(I4,{ns:f,direction:a.direction,currentAnchor:l,addLink:v,removeLink:m,handleClick:w}),t({scrollTo:x}),(I,N)=>(_(),M("div",{ref_key:"anchorRef",ref:r,class:$(o(h))},[I.marker?(_(),M("div",{key:0,ref_key:"markerRef",ref:s,class:$(o(f).e("marker")),style:Oe(o(O))},null,6)):ee("v-if",!0),k("div",{class:$(o(f).e("list"))},[Q(I.$slots,"default")],2)],2))}});var hG=ve(vG,[["__file","anchor.vue"]]);const mG=pe({title:String,href:String}),gG=T({name:"ElAnchorLink"}),yG=T({...gG,props:mG,setup(e){const t=e,n=A(null),{ns:a,direction:l,currentAnchor:r,addLink:s,removeLink:i,handleClick:u}=Se(I4),c=C(()=>[a.e("link"),a.is("active",r.value===t.href)]),d=f=>{u(f,t.href)};return ue(()=>t.href,(f,h)=>{Ne(()=>{h&&i(h),f&&s({href:f,el:n.value})})}),Xe(()=>{const{href:f}=t;f&&s({href:f,el:n.value})}),$t(()=>{const{href:f}=t;f&&i(f)}),(f,h)=>(_(),M("div",{class:$(o(a).e("item"))},[k("a",{ref_key:"linkRef",ref:n,class:$(o(c)),href:f.href,onClick:d},[Q(f.$slots,"default",{},()=>[ot(he(f.title),1)])],10,["href"]),f.$slots["sub-link"]&&o(l)==="vertical"?(_(),M("div",{key:0,class:$(o(a).e("list"))},[Q(f.$slots,"sub-link")],2)):ee("v-if",!0)],2))}});var P4=ve(yG,[["__file","anchor-link.vue"]]);const _G=We(hG,{AnchorLink:P4}),bG=Lt(P4),wG=pe({direction:{type:X(String),default:"horizontal"},options:{type:X(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:qt,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...rn(["ariaLabel"])}),CG={[Ue]:e=>Ve(e)||Ie(e)||Et(e),[Ct]:e=>Ve(e)||Ie(e)||Et(e)},SG=T({name:"ElSegmented"}),kG=T({...SG,props:wG,emits:CG,setup(e,{emit:t}){const n=e,a=de("segmented"),l=on(),r=jt(),s=gn(),{formItem:i}=mn(),{inputId:u,isLabeledByFormItem:c}=ea(n,{formItemContext:i}),d=A(null),f=W_(),h=_t({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),v=N=>{const P=m(N);t(Ue,P),t(Ct,P)},m=N=>ht(N)?N.value:N,p=N=>ht(N)?N.label:N,y=N=>!!(s.value||ht(N)&&N.disabled),g=N=>n.modelValue===m(N),x=N=>n.options.find(P=>m(P)===N),w=N=>[a.e("item"),a.is("selected",g(N)),a.is("disabled",y(N))],b=()=>{if(!d.value)return;const N=d.value.querySelector(".is-selected"),P=d.value.querySelector(".is-selected input");if(!N||!P){h.width=0,h.height=0,h.translateX=0,h.translateY=0,h.focusVisible=!1;return}const L=N.getBoundingClientRect();h.isInit=!0,n.direction==="vertical"?(h.height=L.height,h.translateY=N.offsetTop):(h.width=L.width,h.translateX=N.offsetLeft);try{h.focusVisible=P.matches(":focus-visible")}catch{}},S=C(()=>[a.b(),a.m(r.value),a.is("block",n.block)]),E=C(()=>({width:n.direction==="vertical"?"100%":`${h.width}px`,height:n.direction==="vertical"?`${h.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${h.translateY}px)`:`translateX(${h.translateX}px)`,display:h.isInit?"block":"none"})),O=C(()=>[a.e("item-selected"),a.is("disabled",y(x(n.modelValue))),a.is("focus-visible",h.focusVisible)]),I=C(()=>n.name||l.value);return At(d,b),ue(f,b),ue(()=>n.modelValue,()=>{var N;b(),n.validateEvent&&((N=i==null?void 0:i.validate)==null||N.call(i,"change").catch(P=>void 0))},{flush:"post"}),(N,P)=>N.options.length?(_(),M("div",{key:0,id:o(u),ref_key:"segmentedRef",ref:d,class:$(o(S)),role:"radiogroup","aria-label":o(c)?void 0:N.ariaLabel||"segmented","aria-labelledby":o(c)?o(i).labelId:void 0},[k("div",{class:$([o(a).e("group"),o(a).m(n.direction)])},[k("div",{style:Oe(o(E)),class:$(o(O))},null,6),(_(!0),M(ze,null,rt(N.options,(L,R)=>(_(),M("label",{key:R,class:$(w(L))},[k("input",{class:$(o(a).e("item-input")),type:"radio",name:o(I),disabled:y(L),checked:g(L),onChange:K=>v(L)},null,42,["name","disabled","checked","onChange"]),k("div",{class:$(o(a).e("item-label"))},[Q(N.$slots,"default",{item:L},()=>[ot(he(p(L)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):ee("v-if",!0)}});var EG=ve(kG,[["__file","segmented.vue"]]);const xG=We(EG),MG=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},$G=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const l=e.value,r=bn(t);let s=-1,i;for(let u=a-1;u>=0;--u){const c=l[u];if(c===n||c===` -`||c==="\r"){s=u;continue}if(r.includes(c)){const d=s===-1?a:s;i={pattern:l.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:s,selectionEnd:a};break}}return i},TG=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,l=t.useSelectionEnd?a:n,r=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const i=s.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";i.whiteSpace=c?"nowrap":"pre-wrap",c||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),r.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const v=Number.parseInt(u.height),m=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),p=m+Number.parseInt(u.lineHeight);v>p?i.lineHeight=`${v-m}px`:v===p?i.lineHeight=u.lineHeight:i.lineHeight="0"}else i.lineHeight=u.height;else i[h]=u[h]}),Ei()?e.scrollHeight>Number.parseInt(u.height)&&(i.overflowY="scroll"):i.overflow="hidden",s.textContent=e.value.slice(0,Math.max(0,l)),c&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,l))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,s.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(s),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},OG=pe({...pd,options:{type:X(Array),default:()=>[]},prefix:{type:X([String,Array]),default:"@",validator:e=>Ve(e)?e.length===1:e.every(t=>Ve(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:X([Boolean,Function]),default:()=>MG,validator:e=>e===!1?!0:Je(e)},placement:{type:X(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:X(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:X(Object),default:()=>({})}}),NG={[Ue]:e=>Ve(e),search:(e,t)=>Ve(e)&&Ve(t),select:(e,t)=>Ve(e.value)&&Ve(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},IG=pe({options:{type:X(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),PG={select:e=>Ve(e.value)},zG=T({name:"ElMentionDropdown"}),AG=T({...zG,props:IG,emits:PG,setup(e,{expose:t,emit:n}){const a=e,l=de("mention"),{t:r}=ct(),s=A(-1),i=A(),u=A(),c=A(),d=(w,b)=>[l.be("dropdown","item"),l.is("hovering",s.value===b),l.is("disabled",w.disabled||a.disabled)],f=w=>{w.disabled||a.disabled||n("select",w)},h=w=>{s.value=w},v=C(()=>a.disabled||a.options.every(w=>w.disabled)),m=C(()=>a.options[s.value]),p=()=>{m.value&&n("select",m.value)},y=w=>{const{options:b}=a;if(b.length===0||v.value)return;w==="next"?(s.value++,s.value===b.length&&(s.value=0)):w==="prev"&&(s.value--,s.value<0&&(s.value=b.length-1));const S=b[s.value];if(S.disabled){y(w);return}Ne(()=>g(S))},g=w=>{var b,S,E,O;const{options:I}=a,N=I.findIndex(L=>L.value===w.value),P=(b=u.value)==null?void 0:b[N];if(P){const L=(E=(S=c.value)==null?void 0:S.querySelector)==null?void 0:E.call(S,`.${l.be("dropdown","wrap")}`);L&&od(L,P)}(O=i.value)==null||O.handleScroll()};return ue(()=>a.options,()=>{v.value||a.options.length===0?s.value=-1:s.value=0},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:p,hoverOption:m}),(w,b)=>(_(),M("div",{ref_key:"dropdownRef",ref:c,class:$(o(l).b("dropdown"))},[w.$slots.header?(_(),M("div",{key:0,class:$(o(l).be("dropdown","header"))},[Q(w.$slots,"header")],2)):ee("v-if",!0),qe(q(o(Ta),{id:w.contentId,ref_key:"scrollbarRef",ref:i,tag:"ul","wrap-class":o(l).be("dropdown","wrap"),"view-class":o(l).be("dropdown","list"),role:"listbox","aria-label":w.ariaLabel,"aria-orientation":"vertical"},{default:G(()=>[(_(!0),M(ze,null,rt(w.options,(S,E)=>(_(),M("li",{id:`${w.contentId}-${E}`,ref_for:!0,ref_key:"optionRefs",ref:u,key:E,class:$(d(S,E)),role:"option","aria-disabled":S.disabled||w.disabled||void 0,"aria-selected":s.value===E,onMousemove:O=>h(E),onClick:Ae(O=>f(S),["stop"])},[Q(w.$slots,"label",{item:S,index:E},()=>{var O;return[k("span",null,he((O=S.label)!=null?O:S.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[pt,w.options.length>0&&!w.loading]]),w.loading?(_(),M("div",{key:1,class:$(o(l).be("dropdown","loading"))},[Q(w.$slots,"loading",{},()=>[ot(he(o(r)("el.mention.loading")),1)])],2)):ee("v-if",!0),w.$slots.footer?(_(),M("div",{key:2,class:$(o(l).be("dropdown","footer"))},[Q(w.$slots,"footer")],2)):ee("v-if",!0)],2))}});var VG=ve(AG,[["__file","mention-dropdown.vue"]]);const LG=T({name:"ElMention",inheritAttrs:!1}),RG=T({...LG,props:OG,emits:NG,setup(e,{expose:t,emit:n}){const a=e,l=C(()=>ra(a,Object.keys(pd))),r=de("mention"),s=gn(),i=on(),u=A(),c=A(),d=A(),f=A(!1),h=A(),v=A(),m=C(()=>a.showArrow?a.placement:`${a.placement}-start`),p=C(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=C(()=>{const{filterOption:R,options:K}=a;return!v.value||!R?K:K.filter(U=>R(v.value.pattern,U))}),g=C(()=>f.value&&(!!y.value.length||a.loading)),x=C(()=>{var R;return`${i.value}-${(R=d.value)==null?void 0:R.hoveringIndex}`}),w=R=>{n("update:modelValue",R),N()},b=R=>{var K,U,H,V;if(!(!("code"in R)||(K=u.value)!=null&&K.isComposing))switch(R.code){case Ce.left:case Ce.right:N();break;case Ce.up:case Ce.down:if(!f.value)return;R.preventDefault(),(U=d.value)==null||U.navigateOptions(R.code===Ce.up?"prev":"next");break;case Ce.enter:case Ce.numpadEnter:if(!f.value)return;R.preventDefault(),(H=d.value)!=null&&H.hoverOption?(V=d.value)==null||V.selectHoverOption():f.value=!1;break;case Ce.esc:if(!f.value)return;R.preventDefault(),f.value=!1;break;case Ce.backspace:if(a.whole&&v.value){const{splitIndex:D,selectionEnd:B,pattern:z,prefixIndex:F,prefix:W}=v.value,Z=I();if(!Z)return;const j=Z.value,ne=a.options.find(ce=>ce.value===z);if((Je(a.checkIsWhole)?a.checkIsWhole(z,W):ne)&&D!==-1&&D+1===B){R.preventDefault();const ce=j.slice(0,F)+j.slice(D+1);n(Ue,ce);const te=F;Ne(()=>{Z.selectionStart=te,Z.selectionEnd=te,L()})}}}},{wrapperRef:S}=dl(u,{beforeFocus(){return s.value},afterFocus(){N()},beforeBlur(R){var K;return(K=c.value)==null?void 0:K.isFocusInsideContent(R)},afterBlur(){f.value=!1}}),E=()=>{N()},O=R=>{if(!v.value)return;const K=I();if(!K)return;const U=K.value,{split:H}=a,V=U.slice(v.value.end),D=V.startsWith(H),B=`${R.value}${D?"":H}`,z=U.slice(0,v.value.start)+B+V;n(Ue,z),n("select",R,v.value.prefix);const F=v.value.start+B.length+(D?1:0);Ne(()=>{K.selectionStart=F,K.selectionEnd=F,K.focus(),L()})},I=()=>{var R,K;return a.type==="textarea"?(R=u.value)==null?void 0:R.textarea:(K=u.value)==null?void 0:K.input},N=()=>{setTimeout(()=>{P(),L(),Ne(()=>{var R;return(R=c.value)==null?void 0:R.updatePopper()})},0)},P=()=>{const R=I();if(!R)return;const K=TG(R),U=R.getBoundingClientRect(),H=u.value.$el.getBoundingClientRect();h.value={position:"absolute",width:0,height:`${K.height}px`,left:`${K.left+U.left-H.left}px`,top:`${K.top+U.top-H.top}px`}},L=()=>{const R=I();if(document.activeElement!==R){f.value=!1;return}const{prefix:K,split:U}=a;if(v.value=$G(R,K,U),v.value&&v.value.splitIndex===-1){f.value=!0,n("search",v.value.pattern,v.value.prefix);return}f.value=!1};return t({input:u,tooltip:c,dropdownVisible:g}),(R,K)=>(_(),M("div",{ref_key:"wrapperRef",ref:S,class:$([o(r).b(),o(r).is("disabled",o(s))])},[q(o(Cn),tt(tt(o(l),R.$attrs),{ref_key:"elInputRef",ref:u,"model-value":R.modelValue,disabled:o(s),role:o(g)?"combobox":void 0,"aria-activedescendant":o(g)?o(x)||"":void 0,"aria-controls":o(g)?o(i):void 0,"aria-expanded":o(g)||void 0,"aria-label":R.ariaLabel,"aria-autocomplete":o(g)?"none":void 0,"aria-haspopup":o(g)?"listbox":void 0,onInput:w,onKeydown:b,onMousedown:E}),Yn({_:2},[rt(R.$slots,(U,H)=>({name:H,fn:G(V=>[Q(R.$slots,H,oa(Tl(V)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),q(o(hn),{ref_key:"tooltipRef",ref:c,visible:o(g),"popper-class":[o(r).e("popper"),R.popperClass],"popper-options":R.popperOptions,placement:o(m),"fallback-placements":o(p),effect:"light",pure:"",offset:R.offset,"show-arrow":R.showArrow},{default:G(()=>[k("div",{style:Oe(h.value)},null,4)]),content:G(()=>{var U;return[q(VG,{ref_key:"dropdownRef",ref:d,options:o(y),disabled:o(s),loading:R.loading,"content-id":o(i),"aria-label":R.ariaLabel,onSelect:O,onClick:Ae((U=u.value)==null?void 0:U.focus,["stop"])},Yn({_:2},[rt(R.$slots,(H,V)=>({name:V,fn:G(D=>[Q(R.$slots,V,oa(Tl(D)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var BG=ve(RG,[["__file","mention.vue"]]);const HG=We(BG);var DG=[xb,DM,AO,Cj,DO,YO,Ov,rN,sN,en,Lv,tI,rI,SI,kI,kP,ah,OP,Qn,RI,Yv,AP,ZP,JP,Ti,kz,Mz,Bz,Hz,Dz,Fz,Kz,vV,kV,EV,LV,Th,UV,VL,LL,RL,Rh,LR,RR,Me,GR,Dh,Cn,Fh,cB,mB,VB,LB,RB,BB,jB,AH,DH,XH,xv,Zh,th,ZI,XI,rD,dD,yD,Ta,Pl,js,hH,XD,oF,rF,EF,OF,cm,DF,XF,ZF,aK,fW,pW,wj,Lj,Rj,yo,Kj,zA,Gj,eq,tq,hn,uU,CU,ai,DU,lY,MY,LY,iG,uG,_G,bG,xG,HG];const Wn="ElInfiniteScroll",FG=50,KG=200,WG=0,jG={delay:{type:Number,default:KG},distance:{type:Number,default:WG},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Ef=(e,t)=>Object.entries(jG).reduce((n,[a,l])=>{var r,s;const{type:i,default:u}=l,c=e.getAttribute(`infinite-scroll-${a}`);let d=(s=(r=t[c])!=null?r:c)!=null?s:u;return d=d==="false"?!1:d,d=i(d),n[a]=Number.isNaN(d)?u:d,n},{}),z4=e=>{const{observer:t}=e[Wn];t&&(t.disconnect(),delete e[Wn].observer)},qG=(e,t)=>{const{container:n,containerEl:a,instance:l,observer:r,lastScrollTop:s}=e[Wn],{disabled:i,distance:u}=Ef(e,l),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,h=f-s;if(e[Wn].lastScrollTop=f,r||i||h<0)return;let v=!1;if(n===e)v=d-(c+f)<=u;else{const{clientTop:m,scrollHeight:p}=e,y=Wu(e,a);v=f+c>=y+m+p-u}v&&t.call(l)};function Cu(e,t){const{containerEl:n,instance:a}=e[Wn],{disabled:l}=Ef(e,a);l||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):z4(e))}const UG={async mounted(e,t){const{instance:n,value:a}=t;Je(a)||Gt(Wn,"'v-infinite-scroll' binding value must be a function"),await Ne();const{delay:l,immediate:r}=Ef(e,n),s=ld(e,!0),i=s===window?document.documentElement:s,u=El(qG.bind(null,e,a),l);if(s){if(e[Wn]={instance:n,container:s,containerEl:i,delay:l,cb:a,onScroll:u,lastScrollTop:i.scrollTop},r){const c=new MutationObserver(El(Cu.bind(null,e,a),FG));e[Wn].observer=c,c.observe(e,{childList:!0,subtree:!0}),Cu(e,a)}s.addEventListener("scroll",u)}},unmounted(e){if(!e[Wn])return;const{container:t,onScroll:n}=e[Wn];t==null||t.removeEventListener("scroll",n),z4(e)},async updated(e){if(!e[Wn])await Ne();else{const{containerEl:t,cb:n,observer:a}=e[Wn];t.clientHeight&&a&&Cu(e,n)}}},Pc=UG;Pc.install=e=>{e.directive("InfiniteScroll",Pc)};const YG=Pc;function GG(e){let t;const n=A(!1),a=_t({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(h){a.text=h}function r(){const h=a.parent,v=f.ns;if(!h.vLoadingAddClassList){let m=h.getAttribute("loading-number");m=Number.parseInt(m)-1,m?h.setAttribute("loading-number",m.toString()):(kn(h,v.bm("parent","relative")),h.removeAttribute("loading-number")),kn(h,v.bm("parent","hidden"))}s(),d.unmount()}function s(){var h,v;(v=(h=f.$el)==null?void 0:h.parentNode)==null||v.removeChild(f.$el)}function i(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(u,400),a.visible=!1,(h=e.closed)==null||h.call(e))}function u(){if(!n.value)return;const h=a.parent;n.value=!1,h.vLoadingAddClassList=void 0,r()}const c=T({name:"ElLoading",setup(h,{expose:v}){const{ns:m,zIndex:p}=_i("loading");return v({ns:m,zIndex:p}),()=>{const y=a.spinner||a.svg,g=Pe("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[Pe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),x=a.text?Pe("p",{class:m.b("text")},[a.text]):void 0;return Pe(tn,{name:m.b("fade"),onAfterLeave:u},{default:G(()=>[qe(q("div",{style:{backgroundColor:a.background||""},class:[m.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[Pe("div",{class:m.b("spinner")},[g,x])]),[[pt,a.visible]])])})}}}),d=Q4(c),f=d.mount(document.createElement("div"));return{...nn(a),setText:l,removeElLoadingChild:s,close:i,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let ss;const zc=function(e={}){if(!ut)return;const t=XG(e);if(t.fullscreen&&ss)return ss;const n=GG({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(ss=void 0)}});ZG(t,t.parent,n),_p(t,t.parent,n),t.parent.vLoadingAddClassList=()=>_p(t,t.parent,n);let a=t.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",t.parent.setAttribute("loading-number",a),t.parent.appendChild(n.$el),Ne(()=>n.visible.value=t.visible),t.fullscreen&&(ss=n),n},XG=e=>{var t,n,a,l;let r;return Ve(e.target)?r=(t=document.querySelector(e.target))!=null?t:document.body:r=e.target||document.body,{parent:r===document.body||e.body?document.body:r,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:r===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(a=e.lock)!=null?a:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,beforeClose:e.beforeClose,closed:e.closed,target:r}},ZG=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=Aa(document.body,"position"),n.originalOverflow.value=Aa(document.body,"overflow"),l.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=Aa(document.body,"position"),await Ne();for(const r of["top","left"]){const s=r==="top"?"scrollTop":"scrollLeft";l[r]=`${e.target.getBoundingClientRect()[r]+document.body[s]+document.documentElement[s]-Number.parseInt(Aa(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])l[r]=`${e.target.getBoundingClientRect()[r]}px`}else n.originalPosition.value=Aa(t,"position");for(const[r,s]of Object.entries(l))n.$el.style[r]=s},_p=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?kn(t,a.bm("parent","relative")):jn(t,a.bm("parent","relative")),e.fullscreen&&e.lock?jn(t,a.bm("parent","hidden")):kn(t,a.bm("parent","hidden"))},Ps=Symbol("ElLoading"),bp=(e,t)=>{var n,a,l,r;const s=t.instance,i=h=>ht(t.value)?t.value[h]:void 0,u=h=>{const v=Ve(h)&&(s==null?void 0:s[h])||h;return v&&A(v)},c=h=>u(i(h)||e.getAttribute(`element-loading-${eg(h)}`)),d=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(a=i("target"))!=null?a:d?void 0:e,body:(l=i("body"))!=null?l:t.modifiers.body,lock:(r=i("lock"))!=null?r:t.modifiers.lock};e[Ps]={options:f,instance:zc(f)}},JG=(e,t)=>{for(const n of Object.keys(t))Sn(t[n])&&(t[n].value=e[n])},wp={mounted(e,t){t.value&&bp(e,t)},updated(e,t){const n=e[Ps];t.oldValue!==t.value&&(t.value&&!t.oldValue?bp(e,t):t.value&&t.oldValue?ht(t.value)&&JG(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Ps])==null||t.instance.close(),e[Ps]=null}},QG={install(e){e.directive("loading",wp),e.config.globalProperties.$loading=zc},directive:wp,service:zc},A4=["success","info","warning","error"],_n=Vt({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ut?document.body:void 0}),eX=pe({customClass:{type:String,default:_n.customClass},center:{type:Boolean,default:_n.center},dangerouslyUseHTMLString:{type:Boolean,default:_n.dangerouslyUseHTMLString},duration:{type:Number,default:_n.duration},icon:{type:St,default:_n.icon},id:{type:String,default:_n.id},message:{type:X([String,Object,Function]),default:_n.message},onClose:{type:X(Function),default:_n.onClose},showClose:{type:Boolean,default:_n.showClose},type:{type:String,values:A4,default:_n.type},plain:{type:Boolean,default:_n.plain},offset:{type:Number,default:_n.offset},zIndex:{type:Number,default:_n.zIndex},grouping:{type:Boolean,default:_n.grouping},repeatNum:{type:Number,default:_n.repeatNum}}),tX={destroy:()=>!0},sa=tg([]),nX=e=>{const t=sa.findIndex(l=>l.id===e),n=sa[t];let a;return t>0&&(a=sa[t-1]),{current:n,prev:a}},aX=e=>{const{prev:t}=nX(e);return t?t.vm.exposed.bottom.value:0},lX=(e,t)=>sa.findIndex(a=>a.id===e)>0?16:t,oX=T({name:"ElMessage"}),rX=T({...oX,props:eX,emits:tX,setup(e,{expose:t}){const n=e,{Close:a}=fd,{ns:l,zIndex:r}=_i("message"),{currentZIndex:s,nextZIndex:i}=r,u=A(),c=A(!1),d=A(0);let f;const h=C(()=>n.type?n.type==="error"?"danger":n.type:"info"),v=C(()=>{const O=n.type;return{[l.bm("icon",O)]:O&&il[O]}}),m=C(()=>n.icon||il[n.type]||""),p=C(()=>aX(n.id)),y=C(()=>lX(n.id,n.offset)+p.value),g=C(()=>d.value+y.value),x=C(()=>({top:`${y.value}px`,zIndex:s.value}));function w(){n.duration!==0&&({stop:f}=Nl(()=>{S()},n.duration))}function b(){f==null||f()}function S(){c.value=!1}function E({code:O}){O===Ce.esc&&S()}return Xe(()=>{w(),i(),c.value=!0}),ue(()=>n.repeatNum,()=>{b(),w()}),wt(document,"keydown",E),At(u,()=>{d.value=u.value.getBoundingClientRect().height}),t({visible:c,bottom:g,close:S}),(O,I)=>(_(),ae(tn,{name:o(l).b("fade"),onBeforeLeave:O.onClose,onAfterLeave:N=>O.$emit("destroy"),persisted:""},{default:G(()=>[qe(k("div",{id:O.id,ref_key:"messageRef",ref:u,class:$([o(l).b(),{[o(l).m(O.type)]:O.type},o(l).is("center",O.center),o(l).is("closable",O.showClose),o(l).is("plain",O.plain),O.customClass]),style:Oe(o(x)),role:"alert",onMouseenter:b,onMouseleave:w},[O.repeatNum>1?(_(),ae(o(Ov),{key:0,value:O.repeatNum,type:o(h),class:$(o(l).e("badge"))},null,8,["value","type","class"])):ee("v-if",!0),o(m)?(_(),ae(o(Me),{key:1,class:$([o(l).e("icon"),o(v)])},{default:G(()=>[(_(),ae(Qe(o(m))))]),_:1},8,["class"])):ee("v-if",!0),Q(O.$slots,"default",{},()=>[O.dangerouslyUseHTMLString?(_(),M(ze,{key:1},[ee(" Caution here, message could've been compromised, never use user's input as message "),k("p",{class:$(o(l).e("content")),innerHTML:O.message},null,10,["innerHTML"])],2112)):(_(),M("p",{key:0,class:$(o(l).e("content"))},he(O.message),3))]),O.showClose?(_(),ae(o(Me),{key:2,class:$(o(l).e("closeBtn")),onClick:Ae(S,["stop"])},{default:G(()=>[q(o(a))]),_:1},8,["class","onClick"])):ee("v-if",!0)],46,["id"]),[[pt,c.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var sX=ve(rX,[["__file","message.vue"]]);let iX=1;const V4=e=>{const t=!e||Ve(e)||Ft(e)||Je(e)?{message:e}:e,n={..._n,...t};if(!n.appendTo)n.appendTo=document.body;else if(Ve(n.appendTo)){let a=document.querySelector(n.appendTo);Tn(a)||(a=document.body),n.appendTo=a}return Et(aa.grouping)&&!n.grouping&&(n.grouping=aa.grouping),Ie(aa.duration)&&n.duration===3e3&&(n.duration=aa.duration),Ie(aa.offset)&&n.offset===16&&(n.offset=aa.offset),Et(aa.showClose)&&!n.showClose&&(n.showClose=aa.showClose),n},uX=e=>{const t=sa.indexOf(e);if(t===-1)return;sa.splice(t,1);const{handler:n}=e;n.close()},cX=({appendTo:e,...t},n)=>{const a=`message_${iX++}`,l=t.onClose,r=document.createElement("div"),s={...t,id:a,onClose:()=>{l==null||l(),uX(d)},onDestroy:()=>{ol(null,r)}},i=q(sX,s,Je(s.message)||Ft(s.message)?{default:Je(s.message)?s.message:()=>s.message}:null);i.appContext=n||Eo._context,ol(i,r),e.appendChild(r.firstElementChild);const u=i.component,d={id:a,vnode:i,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:i.component.props};return d},Eo=(e={},t)=>{if(!ut)return{close:()=>{}};const n=V4(e);if(n.grouping&&sa.length){const l=sa.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(Ie(aa.max)&&sa.length>=aa.max)return{close:()=>{}};const a=cX(n,t);return sa.push(a),a.handler};A4.forEach(e=>{Eo[e]=(t={},n)=>{const a=V4(t);return Eo({...a,type:e},n)}});function dX(e){for(const t of sa)(!e||e===t.props.type)&&t.handler.close()}Eo.closeAll=dX;Eo._context=null;const fX=z1(Eo,"$message"),Ac="_trap-focus-children",Sl=[],Cp=e=>{if(Sl.length===0)return;const t=Sl[Sl.length-1][Ac];if(t.length>0&&e.code===Ce.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,a=e.target===t[0],l=e.target===t[t.length-1];a&&n&&(e.preventDefault(),t[t.length-1].focus()),l&&!n&&(e.preventDefault(),t[0].focus())}},pX={beforeMount(e){e[Ac]=E0(e),Sl.push(e),Sl.length<=1&&document.addEventListener("keydown",Cp)},updated(e){Ne(()=>{e[Ac]=E0(e)})},unmounted(){Sl.shift(),Sl.length===0&&document.removeEventListener("keydown",Cp)}},vX=T({name:"ElMessageBox",directives:{TrapFocus:pX},components:{ElButton:en,ElFocusTrap:Ao,ElInput:Cn,ElOverlay:Dd,ElIcon:Me,...fd},inheritAttrs:!1,props:{buttonSize:{type:String,validator:fm},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:l,size:r}=_i("message-box",C(()=>e.buttonSize)),{t:s}=n,{nextZIndex:i}=a,u=A(!1),c=_t({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:kl(ca),cancelButtonLoadingIcon:kl(ca),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),d=C(()=>{const V=c.type;return{[l.bm("icon",V)]:V&&il[V]}}),f=on(),h=on(),v=C(()=>c.icon||il[c.type]||""),m=C(()=>!!c.message),p=A(),y=A(),g=A(),x=A(),w=A(),b=C(()=>c.confirmButtonClass);ue(()=>c.inputValue,async V=>{await Ne(),e.boxType==="prompt"&&V!==null&&R()},{immediate:!0}),ue(()=>u.value,V=>{var D,B;V&&(e.boxType!=="prompt"&&(c.autofocus?g.value=(B=(D=w.value)==null?void 0:D.$el)!=null?B:p.value:g.value=p.value),c.zIndex=i()),e.boxType==="prompt"&&(V?Ne().then(()=>{var z;x.value&&x.value.$el&&(c.autofocus?g.value=(z=K())!=null?z:p.value:g.value=p.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=C(()=>e.draggable),E=C(()=>e.overflow);Eh(p,y,S,E),Xe(async()=>{await Ne(),e.closeOnHashChange&&window.addEventListener("hashchange",O)}),$t(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){u.value&&(u.value=!1,Ne(()=>{c.action&&t("action",c.action)}))}const I=()=>{e.closeOnClickModal&&L(c.distinguishCancelAndClose?"close":"cancel")},N=Hd(I),P=V=>{if(c.inputType!=="textarea")return V.preventDefault(),L("confirm")},L=V=>{var D;e.boxType==="prompt"&&V==="confirm"&&!R()||(c.action=V,c.beforeClose?(D=c.beforeClose)==null||D.call(c,V,c,O):O())},R=()=>{if(e.boxType==="prompt"){const V=c.inputPattern;if(V&&!V.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;const D=c.inputValidator;if(Je(D)){const B=D(c.inputValue);if(B===!1)return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;if(Ve(B))return c.editorErrorMessage=B,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},K=()=>{const V=x.value.$refs;return V.input||V.textarea},U=()=>{L("close")},H=()=>{e.closeOnPressEscape&&U()};return e.lockScroll&&Fd(u),{...nn(c),ns:l,overlayEvent:N,visible:u,hasMessage:m,typeClass:d,contentId:f,inputId:h,btnSize:r,iconComponent:v,confirmButtonClasses:b,rootRef:p,focusStartRef:g,headerRef:y,inputRef:x,confirmRef:w,doClose:O,handleClose:U,onCloseRequested:H,handleWrapperClick:I,handleInputEnter:P,handleAction:L,t:s}}});function hX(e,t,n,a,l,r){const s=Ze("el-icon"),i=Ze("close"),u=Ze("el-input"),c=Ze("el-button"),d=Ze("el-focus-trap"),f=Ze("el-overlay");return _(),ae(tn,{name:"fade-in-linear",onAfterLeave:h=>e.$emit("vanish"),persisted:""},{default:G(()=>[qe(q(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:G(()=>[k("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:$(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[q(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:G(()=>[k("div",{ref:"rootRef",class:$([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Oe(e.customStyle),tabindex:"-1",onClick:Ae(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(_(),M("div",{key:0,ref:"headerRef",class:$([e.ns.e("header"),{"show-close":e.showClose}])},[k("div",{class:$(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),ae(s,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:G(()=>[(_(),ae(Qe(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),k("span",null,he(e.title),1)],2),e.showClose?(_(),M("button",{key:0,type:"button",class:$(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:kt(Ae(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[q(s,{class:$(e.ns.e("close"))},{default:G(()=>[q(i)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):ee("v-if",!0)],2)):ee("v-if",!0),k("div",{id:e.contentId,class:$(e.ns.e("content"))},[k("div",{class:$(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),ae(s,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:G(()=>[(_(),ae(Qe(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),e.hasMessage?(_(),M("div",{key:1,class:$(e.ns.e("message"))},[Q(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),ae(Qe(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),ae(Qe(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:G(()=>[ot(he(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ee("v-if",!0)],2),qe(k("div",{class:$(e.ns.e("input"))},[q(u,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":h=>e.inputValue=h,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:$({invalid:e.validateError}),onKeydown:kt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),k("div",{class:$(e.ns.e("errormsg")),style:Oe({visibility:e.editorErrorMessage?"visible":"hidden"})},he(e.editorErrorMessage),7)],2),[[pt,e.showInput]])],10,["id"]),k("div",{class:$(e.ns.e("btns"))},[e.showCancelButton?(_(),ae(c,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:$([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:h=>e.handleAction("cancel"),onKeydown:kt(Ae(h=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:G(()=>[ot(he(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):ee("v-if",!0),qe(q(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:$([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:h=>e.handleAction("confirm"),onKeydown:kt(Ae(h=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:G(()=>[ot(he(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[pt,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[pt,e.visible]])]),_:3},8,["onAfterLeave"])}var mX=ve(vX,[["render",hX],["__file","index.vue"]]);const Er=new Map,gX=e=>{let t=document.body;return e.appendTo&&(Ve(e.appendTo)&&(t=document.querySelector(e.appendTo)),Tn(e.appendTo)&&(t=e.appendTo),Tn(t)||(t=document.body)),t},yX=(e,t,n=null)=>{const a=q(mX,e,Je(e.message)||Ft(e.message)?{default:Je(e.message)?e.message:()=>e.message}:null);return a.appContext=n,ol(a,t),gX(e).appendChild(t.firstElementChild),a.component},_X=()=>document.createElement("div"),bX=(e,t)=>{const n=_X();e.onVanish=()=>{ol(null,n),Er.delete(l)},e.onAction=r=>{const s=Er.get(l);let i;e.showInput?i={value:l.inputValue,action:r}:i=r,e.callback?e.callback(i,a.proxy):r==="cancel"||r==="close"?e.distinguishCancelAndClose&&r!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(i)};const a=yX(e,n,t),l=a.proxy;for(const r in e)vn(e,r)&&!vn(l.$props,r)&&(l[r]=e[r]);return l.visible=!0,l};function Ho(e,t=null){if(!ut)return Promise.reject();let n;return Ve(e)||Ft(e)?e={message:e}:n=e.callback,new Promise((a,l)=>{const r=bX(e,t??Ho._context);Er.set(r,{options:e,callback:n,resolve:a,reject:l})})}const wX=["alert","confirm","prompt"],CX={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};wX.forEach(e=>{Ho[e]=SX(e)});function SX(e){return(t,n,a,l)=>{let r="";return ht(n)?(a=n,r=""):vt(n)?r="":r=n,Ho(Object.assign({title:r,message:t,type:"",...CX[e]},a,{boxType:e}),l)}}Ho.close=()=>{Er.forEach((e,t)=>{t.doClose()}),Er.clear()};Ho._context=null;const Qa=Ho;Qa.install=e=>{Qa._context=e._context,e.config.globalProperties.$msgbox=Qa,e.config.globalProperties.$messageBox=Qa,e.config.globalProperties.$alert=Qa.alert,e.config.globalProperties.$confirm=Qa.confirm,e.config.globalProperties.$prompt=Qa.prompt};const kX=Qa,L4=["success","info","warning","error"],EX=pe({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:St},id:{type:String,default:""},message:{type:X([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:X(Function),default:()=>{}},onClose:{type:X(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...L4,""],default:""},zIndex:Number}),xX={destroy:()=>!0},MX=T({name:"ElNotification"}),$X=T({...MX,props:EX,emits:xX,setup(e,{expose:t}){const n=e,{ns:a,zIndex:l}=_i("notification"),{nextZIndex:r,currentZIndex:s}=l,{Close:i}=dd,u=A(!1);let c;const d=C(()=>{const w=n.type;return w&&il[n.type]?a.m(w):""}),f=C(()=>n.type&&il[n.type]||n.icon),h=C(()=>n.position.endsWith("right")?"right":"left"),v=C(()=>n.position.startsWith("top")?"top":"bottom"),m=C(()=>{var w;return{[v.value]:`${n.offset}px`,zIndex:(w=n.zIndex)!=null?w:s.value}});function p(){n.duration>0&&({stop:c}=Nl(()=>{u.value&&g()},n.duration))}function y(){c==null||c()}function g(){u.value=!1}function x({code:w}){w===Ce.delete||w===Ce.backspace?y():w===Ce.esc?u.value&&g():p()}return Xe(()=>{p(),r(),u.value=!0}),wt(document,"keydown",x),t({visible:u,close:g}),(w,b)=>(_(),ae(tn,{name:o(a).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:S=>w.$emit("destroy"),persisted:""},{default:G(()=>[qe(k("div",{id:w.id,class:$([o(a).b(),w.customClass,o(h)]),style:Oe(o(m)),role:"alert",onMouseenter:y,onMouseleave:p,onClick:w.onClick},[o(f)?(_(),ae(o(Me),{key:0,class:$([o(a).e("icon"),o(d)])},{default:G(()=>[(_(),ae(Qe(o(f))))]),_:1},8,["class"])):ee("v-if",!0),k("div",{class:$(o(a).e("group"))},[k("h2",{class:$(o(a).e("title")),textContent:he(w.title)},null,10,["textContent"]),qe(k("div",{class:$(o(a).e("content")),style:Oe(w.title?void 0:{margin:0})},[Q(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(_(),M(ze,{key:1},[ee(" Caution here, message could've been compromised, never use user's input as message "),k("p",{innerHTML:w.message},null,8,["innerHTML"])],2112)):(_(),M("p",{key:0},he(w.message),1))])],6),[[pt,w.message]]),w.showClose?(_(),ae(o(Me),{key:0,class:$(o(a).e("closeBtn")),onClick:Ae(g,["stop"])},{default:G(()=>[q(o(i))]),_:1},8,["class","onClick"])):ee("v-if",!0)],2)],46,["id","onClick"]),[[pt,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var TX=ve($X,[["__file","notification.vue"]]);const li={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Vc=16;let OX=1;const xo=function(e={},t){if(!ut)return{close:()=>{}};(Ve(e)||Ft(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;li[n].forEach(({vm:d})=>{var f;a+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Vc}),a+=Vc;const l=`notification_${OX++}`,r=e.onClose,s={...e,offset:a,id:l,onClose:()=>{NX(l,n,r)}};let i=document.body;Tn(e.appendTo)?i=e.appendTo:Ve(e.appendTo)&&(i=document.querySelector(e.appendTo)),Tn(i)||(i=document.body);const u=document.createElement("div"),c=q(TX,s,Je(s.message)?s.message:Ft(s.message)?()=>s.message:null);return c.appContext=vt(t)?xo._context:t,c.props.onDestroy=()=>{ol(null,u)},ol(c,u),li[n].push({vm:c}),i.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};L4.forEach(e=>{xo[e]=(t={},n)=>((Ve(t)||Ft(t))&&(t={message:t}),xo({...t,type:e},n))});function NX(e,t,n){const a=li[t],l=a.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(l===-1)return;const{vm:r}=a[l];if(!r)return;n==null||n(r);const s=r.el.offsetHeight,i=t.split("-")[0];a.splice(l,1);const u=a.length;if(!(u<1))for(let c=l;c{t.component.exposed.visible.value=!1})}xo.closeAll=IX;xo._context=null;const PX=z1(xo,"$notify");var zX=[YG,QG,fX,kX,PX,Xh],jX=mb([...DG,...zX]);const qX={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((a,l)=>(a.size=l===t?a.max:a.min,l!==t&&(n+=a.min),a)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(a=>({min:a.min,max:a.max,size:a.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:a}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:a-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const a=0+(this.pushOtherPanes?0:n.prevPanesSize),l=100-(this.pushOtherPanes?0:n.nextPanesSize),r=Math.max(Math.min(this.getCurrentDragPercentage(e),l),a);let s=[t,t+1],i=this.panes[s[0]]||null,u=this.panes[s[1]]||null;const c=i.max<100&&r>=i.max+n.prevPanesSize,d=u.max<100&&r<=100-(u.max+this.sumNextPanesSize(t+1));if(c||d){c?(i.size=i.max,u.size=Math.max(100-i.max-n.prevPanesSize-n.nextPanesSize,0)):(i.size=Math.max(100-u.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),u.size=u.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,r);if(!f)return;({sums:n,panesToResize:s}=f),i=this.panes[s[0]]||null,u=this.panes[s[1]]||null}i!==null&&(i.size=Math.min(Math.max(r-n.prevPanesSize-n.prevReachedMinPanes,i.min),i.max)),u!==null&&(u.size=Math.min(Math.max(100-r-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,a=[n,n+1];return t{r>a[0]&&r<=n&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),e.prevPanesSize=this.sumPrevPanesSize(a[0]),a[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((l,r)=>{r>0&&r<=n&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),this.panes[a[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[a[1]].min&&(a[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,a[1]>n+1&&this.panes.forEach((l,r)=>{r>n&&r{r=n+1&&(l.size=l.min,e.nextReachedMinPanes+=l.min)}),this.panes[a[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:a}},sumPrevPanesSize(e){return this.panes.reduce((t,n,a)=>t+(at+(a>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const a=e-1,l=document.createElement("div");l.classList.add("splitpanes__splitter"),n||(l.onmousedown=r=>this.onMouseDown(r,a),typeof window<"u"&&"ontouchstart"in window&&(l.ontouchstart=r=>this.onMouseDown(r,a)),l.onclick=r=>this.onSplitterClick(r,a+1)),this.dblClickSplitter&&(l.ondblclick=r=>this.onSplitterDblClick(r,a+1)),t.parentNode.insertBefore(l,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([a,l])=>n[a]=l)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(l=>(l.className.includes("splitpanes__pane")&&t++,l===e.$el));const n=parseFloat(e.minSize),a=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(a)?100:a,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((l,r)=>l.index=r),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(l=>({min:l.min,max:l.max,size:l.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(a=>a.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((a,l)=>a.index=l),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],a=[];this.panes.forEach(l=>{l.size=Math.max(Math.min(e,l.max),l.min),t-=l.size,l.size>=l.max&&n.push(l.id),l.size<=l.min&&a.push(l.id)}),t>.1&&this.readjustSizes(t,n,a)},initialPanesSizing(){let e=100;const t=[],n=[];let a=0;this.panes.forEach(r=>{e-=r.size,r.size!==null&&a++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&n.push(r.id)});let l=100;e>.1&&(this.panes.forEach(r=>{r.size===null&&(r.size=Math.max(Math.min(e/(this.panesCount-a),r.max),r.min)),l-=r.size}),l>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,a=0;const l=[],r=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(s=>{a-=s.size,s.size>=s.max&&l.push(s.id),s.size<=s.min&&r.push(s.id)}),!(Math.abs(a)<.1)&&(this.panes.forEach(s=>{e&&e.givenSize!==null&&e.id===s.id||(s.size=Math.max(Math.min(n,s.max),s.min)),a-=s.size,s.size>=s.max&&l.push(s.id),s.size<=s.min&&r.push(s.id)}),a>.1&&this.readjustSizes(a,l,r))},readjustSizes(e,t,n){let a;e>0?a=e/(this.panesCount-t.length):a=e/(this.panesCount-n.length),this.panes.forEach((l,r)=>{if(e>0&&!t.includes(l.id)){const s=Math.max(Math.min(l.size+a,l.max),l.min),i=s-l.size;e-=i,l.size=s}else if(!n.includes(l.id)){const s=Math.max(Math.min(l.size+a,l.max),l.min),i=s-l.size;e-=i,l.size=s}l.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[l.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?a=>this.onSplitterDblClick(a,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Pe("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},AX=(e,t)=>{const n=e.__vccOpts||e;for(const[a,l]of t)n[a]=l;return n},VX={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function LX(e,t,n,a,l,r){return _(),M("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=s=>r.onPaneClick(s,e._.uid)),style:Oe(e.style)},[Q(e.$slots,"default")],4)}const UX=AX(VX,[["render",LX]]);export{fX as E,qX as M,DX as a,UX as g,jX as i}; +`||c==="\r"){s=u;continue}if(r.includes(c)){const d=s===-1?a:s;i={pattern:l.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:s,selectionEnd:a};break}}return i},TG=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,l=t.useSelectionEnd?a:n,r=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const i=s.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";i.whiteSpace=c?"nowrap":"pre-wrap",c||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),r.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const v=Number.parseInt(u.height),m=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),p=m+Number.parseInt(u.lineHeight);v>p?i.lineHeight=`${v-m}px`:v===p?i.lineHeight=u.lineHeight:i.lineHeight="0"}else i.lineHeight=u.height;else i[h]=u[h]}),Ei()?e.scrollHeight>Number.parseInt(u.height)&&(i.overflowY="scroll"):i.overflow="hidden",s.textContent=e.value.slice(0,Math.max(0,l)),c&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,l))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,s.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(s),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},OG=pe({...pd,options:{type:X(Array),default:()=>[]},prefix:{type:X([String,Array]),default:"@",validator:e=>Ve(e)?e.length===1:e.every(t=>Ve(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:X([Boolean,Function]),default:()=>MG,validator:e=>e===!1?!0:Je(e)},placement:{type:X(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:X(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:X(Object),default:()=>({})}}),NG={[Ue]:e=>Ve(e),search:(e,t)=>Ve(e)&&Ve(t),select:(e,t)=>Ve(e.value)&&Ve(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},IG=pe({options:{type:X(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),PG={select:e=>Ve(e.value)},zG=T({name:"ElMentionDropdown"}),AG=T({...zG,props:IG,emits:PG,setup(e,{expose:t,emit:n}){const a=e,l=de("mention"),{t:r}=ct(),s=A(-1),i=A(),u=A(),c=A(),d=(w,b)=>[l.be("dropdown","item"),l.is("hovering",s.value===b),l.is("disabled",w.disabled||a.disabled)],f=w=>{w.disabled||a.disabled||n("select",w)},h=w=>{s.value=w},v=C(()=>a.disabled||a.options.every(w=>w.disabled)),m=C(()=>a.options[s.value]),p=()=>{m.value&&n("select",m.value)},y=w=>{const{options:b}=a;if(b.length===0||v.value)return;w==="next"?(s.value++,s.value===b.length&&(s.value=0)):w==="prev"&&(s.value--,s.value<0&&(s.value=b.length-1));const S=b[s.value];if(S.disabled){y(w);return}Ne(()=>g(S))},g=w=>{var b,S,E,O;const{options:I}=a,N=I.findIndex(L=>L.value===w.value),P=(b=u.value)==null?void 0:b[N];if(P){const L=(E=(S=c.value)==null?void 0:S.querySelector)==null?void 0:E.call(S,`.${l.be("dropdown","wrap")}`);L&&od(L,P)}(O=i.value)==null||O.handleScroll()};return ue(()=>a.options,()=>{v.value||a.options.length===0?s.value=-1:s.value=0},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:p,hoverOption:m}),(w,b)=>(_(),M("div",{ref_key:"dropdownRef",ref:c,class:$(o(l).b("dropdown"))},[w.$slots.header?(_(),M("div",{key:0,class:$(o(l).be("dropdown","header"))},[Q(w.$slots,"header")],2)):ee("v-if",!0),qe(q(o(Ta),{id:w.contentId,ref_key:"scrollbarRef",ref:i,tag:"ul","wrap-class":o(l).be("dropdown","wrap"),"view-class":o(l).be("dropdown","list"),role:"listbox","aria-label":w.ariaLabel,"aria-orientation":"vertical"},{default:G(()=>[(_(!0),M(ze,null,rt(w.options,(S,E)=>(_(),M("li",{id:`${w.contentId}-${E}`,ref_for:!0,ref_key:"optionRefs",ref:u,key:E,class:$(d(S,E)),role:"option","aria-disabled":S.disabled||w.disabled||void 0,"aria-selected":s.value===E,onMousemove:O=>h(E),onClick:Ae(O=>f(S),["stop"])},[Q(w.$slots,"label",{item:S,index:E},()=>{var O;return[k("span",null,he((O=S.label)!=null?O:S.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[pt,w.options.length>0&&!w.loading]]),w.loading?(_(),M("div",{key:1,class:$(o(l).be("dropdown","loading"))},[Q(w.$slots,"loading",{},()=>[ot(he(o(r)("el.mention.loading")),1)])],2)):ee("v-if",!0),w.$slots.footer?(_(),M("div",{key:2,class:$(o(l).be("dropdown","footer"))},[Q(w.$slots,"footer")],2)):ee("v-if",!0)],2))}});var VG=ve(AG,[["__file","mention-dropdown.vue"]]);const LG=T({name:"ElMention",inheritAttrs:!1}),RG=T({...LG,props:OG,emits:NG,setup(e,{expose:t,emit:n}){const a=e,l=C(()=>ra(a,Object.keys(pd))),r=de("mention"),s=gn(),i=on(),u=A(),c=A(),d=A(),f=A(!1),h=A(),v=A(),m=C(()=>a.showArrow?a.placement:`${a.placement}-start`),p=C(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=C(()=>{const{filterOption:R,options:K}=a;return!v.value||!R?K:K.filter(U=>R(v.value.pattern,U))}),g=C(()=>f.value&&(!!y.value.length||a.loading)),x=C(()=>{var R;return`${i.value}-${(R=d.value)==null?void 0:R.hoveringIndex}`}),w=R=>{n("update:modelValue",R),N()},b=R=>{var K,U,H,V;if(!(!("code"in R)||(K=u.value)!=null&&K.isComposing))switch(R.code){case Ce.left:case Ce.right:N();break;case Ce.up:case Ce.down:if(!f.value)return;R.preventDefault(),(U=d.value)==null||U.navigateOptions(R.code===Ce.up?"prev":"next");break;case Ce.enter:case Ce.numpadEnter:if(!f.value)return;R.preventDefault(),(H=d.value)!=null&&H.hoverOption?(V=d.value)==null||V.selectHoverOption():f.value=!1;break;case Ce.esc:if(!f.value)return;R.preventDefault(),f.value=!1;break;case Ce.backspace:if(a.whole&&v.value){const{splitIndex:D,selectionEnd:B,pattern:z,prefixIndex:F,prefix:W}=v.value,Z=I();if(!Z)return;const j=Z.value,ne=a.options.find(ce=>ce.value===z);if((Je(a.checkIsWhole)?a.checkIsWhole(z,W):ne)&&D!==-1&&D+1===B){R.preventDefault();const ce=j.slice(0,F)+j.slice(D+1);n(Ue,ce);const te=F;Ne(()=>{Z.selectionStart=te,Z.selectionEnd=te,L()})}}}},{wrapperRef:S}=dl(u,{beforeFocus(){return s.value},afterFocus(){N()},beforeBlur(R){var K;return(K=c.value)==null?void 0:K.isFocusInsideContent(R)},afterBlur(){f.value=!1}}),E=()=>{N()},O=R=>{if(!v.value)return;const K=I();if(!K)return;const U=K.value,{split:H}=a,V=U.slice(v.value.end),D=V.startsWith(H),B=`${R.value}${D?"":H}`,z=U.slice(0,v.value.start)+B+V;n(Ue,z),n("select",R,v.value.prefix);const F=v.value.start+B.length+(D?1:0);Ne(()=>{K.selectionStart=F,K.selectionEnd=F,K.focus(),L()})},I=()=>{var R,K;return a.type==="textarea"?(R=u.value)==null?void 0:R.textarea:(K=u.value)==null?void 0:K.input},N=()=>{setTimeout(()=>{P(),L(),Ne(()=>{var R;return(R=c.value)==null?void 0:R.updatePopper()})},0)},P=()=>{const R=I();if(!R)return;const K=TG(R),U=R.getBoundingClientRect(),H=u.value.$el.getBoundingClientRect();h.value={position:"absolute",width:0,height:`${K.height}px`,left:`${K.left+U.left-H.left}px`,top:`${K.top+U.top-H.top}px`}},L=()=>{const R=I();if(document.activeElement!==R){f.value=!1;return}const{prefix:K,split:U}=a;if(v.value=$G(R,K,U),v.value&&v.value.splitIndex===-1){f.value=!0,n("search",v.value.pattern,v.value.prefix);return}f.value=!1};return t({input:u,tooltip:c,dropdownVisible:g}),(R,K)=>(_(),M("div",{ref_key:"wrapperRef",ref:S,class:$([o(r).b(),o(r).is("disabled",o(s))])},[q(o(Cn),tt(tt(o(l),R.$attrs),{ref_key:"elInputRef",ref:u,"model-value":R.modelValue,disabled:o(s),role:o(g)?"combobox":void 0,"aria-activedescendant":o(g)?o(x)||"":void 0,"aria-controls":o(g)?o(i):void 0,"aria-expanded":o(g)||void 0,"aria-label":R.ariaLabel,"aria-autocomplete":o(g)?"none":void 0,"aria-haspopup":o(g)?"listbox":void 0,onInput:w,onKeydown:b,onMousedown:E}),Yn({_:2},[rt(R.$slots,(U,H)=>({name:H,fn:G(V=>[Q(R.$slots,H,oa(Tl(V)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),q(o(hn),{ref_key:"tooltipRef",ref:c,visible:o(g),"popper-class":[o(r).e("popper"),R.popperClass],"popper-options":R.popperOptions,placement:o(m),"fallback-placements":o(p),effect:"light",pure:"",offset:R.offset,"show-arrow":R.showArrow},{default:G(()=>[k("div",{style:Oe(h.value)},null,4)]),content:G(()=>{var U;return[q(VG,{ref_key:"dropdownRef",ref:d,options:o(y),disabled:o(s),loading:R.loading,"content-id":o(i),"aria-label":R.ariaLabel,onSelect:O,onClick:Ae((U=u.value)==null?void 0:U.focus,["stop"])},Yn({_:2},[rt(R.$slots,(H,V)=>({name:V,fn:G(D=>[Q(R.$slots,V,oa(Tl(D)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var BG=ve(RG,[["__file","mention.vue"]]);const HG=We(BG);var DG=[xb,DM,AO,Cj,DO,YO,Ov,rN,sN,en,Lv,tI,rI,SI,kI,kP,ah,OP,Qn,RI,Yv,AP,ZP,JP,Ti,kz,Mz,Bz,Hz,Dz,Fz,Kz,vV,kV,EV,LV,Th,UV,VL,LL,RL,Rh,LR,RR,Me,GR,Dh,Cn,Fh,cB,mB,VB,LB,RB,BB,jB,AH,DH,XH,xv,Zh,th,ZI,XI,rD,dD,yD,Ta,Pl,js,hH,XD,oF,rF,EF,OF,cm,DF,XF,ZF,aK,fW,pW,wj,Lj,Rj,yo,Kj,zA,Gj,eq,tq,hn,uU,CU,ai,DU,lY,MY,LY,iG,uG,_G,bG,xG,HG];const Wn="ElInfiniteScroll",FG=50,KG=200,WG=0,jG={delay:{type:Number,default:KG},distance:{type:Number,default:WG},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Ef=(e,t)=>Object.entries(jG).reduce((n,[a,l])=>{var r,s;const{type:i,default:u}=l,c=e.getAttribute(`infinite-scroll-${a}`);let d=(s=(r=t[c])!=null?r:c)!=null?s:u;return d=d==="false"?!1:d,d=i(d),n[a]=Number.isNaN(d)?u:d,n},{}),z4=e=>{const{observer:t}=e[Wn];t&&(t.disconnect(),delete e[Wn].observer)},qG=(e,t)=>{const{container:n,containerEl:a,instance:l,observer:r,lastScrollTop:s}=e[Wn],{disabled:i,distance:u}=Ef(e,l),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,h=f-s;if(e[Wn].lastScrollTop=f,r||i||h<0)return;let v=!1;if(n===e)v=d-(c+f)<=u;else{const{clientTop:m,scrollHeight:p}=e,y=Wu(e,a);v=f+c>=y+m+p-u}v&&t.call(l)};function Cu(e,t){const{containerEl:n,instance:a}=e[Wn],{disabled:l}=Ef(e,a);l||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):z4(e))}const UG={async mounted(e,t){const{instance:n,value:a}=t;Je(a)||Gt(Wn,"'v-infinite-scroll' binding value must be a function"),await Ne();const{delay:l,immediate:r}=Ef(e,n),s=ld(e,!0),i=s===window?document.documentElement:s,u=El(qG.bind(null,e,a),l);if(s){if(e[Wn]={instance:n,container:s,containerEl:i,delay:l,cb:a,onScroll:u,lastScrollTop:i.scrollTop},r){const c=new MutationObserver(El(Cu.bind(null,e,a),FG));e[Wn].observer=c,c.observe(e,{childList:!0,subtree:!0}),Cu(e,a)}s.addEventListener("scroll",u)}},unmounted(e){if(!e[Wn])return;const{container:t,onScroll:n}=e[Wn];t==null||t.removeEventListener("scroll",n),z4(e)},async updated(e){if(!e[Wn])await Ne();else{const{containerEl:t,cb:n,observer:a}=e[Wn];t.clientHeight&&a&&Cu(e,n)}}},Pc=UG;Pc.install=e=>{e.directive("InfiniteScroll",Pc)};const YG=Pc;function GG(e){let t;const n=A(!1),a=_t({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(h){a.text=h}function r(){const h=a.parent,v=f.ns;if(!h.vLoadingAddClassList){let m=h.getAttribute("loading-number");m=Number.parseInt(m)-1,m?h.setAttribute("loading-number",m.toString()):(kn(h,v.bm("parent","relative")),h.removeAttribute("loading-number")),kn(h,v.bm("parent","hidden"))}s(),d.unmount()}function s(){var h,v;(v=(h=f.$el)==null?void 0:h.parentNode)==null||v.removeChild(f.$el)}function i(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(u,400),a.visible=!1,(h=e.closed)==null||h.call(e))}function u(){if(!n.value)return;const h=a.parent;n.value=!1,h.vLoadingAddClassList=void 0,r()}const c=T({name:"ElLoading",setup(h,{expose:v}){const{ns:m,zIndex:p}=_i("loading");return v({ns:m,zIndex:p}),()=>{const y=a.spinner||a.svg,g=Pe("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[Pe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),x=a.text?Pe("p",{class:m.b("text")},[a.text]):void 0;return Pe(tn,{name:m.b("fade"),onAfterLeave:u},{default:G(()=>[qe(q("div",{style:{backgroundColor:a.background||""},class:[m.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[Pe("div",{class:m.b("spinner")},[g,x])]),[[pt,a.visible]])])})}}}),d=Q4(c),f=d.mount(document.createElement("div"));return{...nn(a),setText:l,removeElLoadingChild:s,close:i,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let ss;const zc=function(e={}){if(!ut)return;const t=XG(e);if(t.fullscreen&&ss)return ss;const n=GG({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(ss=void 0)}});ZG(t,t.parent,n),_p(t,t.parent,n),t.parent.vLoadingAddClassList=()=>_p(t,t.parent,n);let a=t.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",t.parent.setAttribute("loading-number",a),t.parent.appendChild(n.$el),Ne(()=>n.visible.value=t.visible),t.fullscreen&&(ss=n),n},XG=e=>{var t,n,a,l;let r;return Ve(e.target)?r=(t=document.querySelector(e.target))!=null?t:document.body:r=e.target||document.body,{parent:r===document.body||e.body?document.body:r,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:r===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(a=e.lock)!=null?a:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,beforeClose:e.beforeClose,closed:e.closed,target:r}},ZG=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=Aa(document.body,"position"),n.originalOverflow.value=Aa(document.body,"overflow"),l.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=Aa(document.body,"position"),await Ne();for(const r of["top","left"]){const s=r==="top"?"scrollTop":"scrollLeft";l[r]=`${e.target.getBoundingClientRect()[r]+document.body[s]+document.documentElement[s]-Number.parseInt(Aa(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])l[r]=`${e.target.getBoundingClientRect()[r]}px`}else n.originalPosition.value=Aa(t,"position");for(const[r,s]of Object.entries(l))n.$el.style[r]=s},_p=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?kn(t,a.bm("parent","relative")):jn(t,a.bm("parent","relative")),e.fullscreen&&e.lock?jn(t,a.bm("parent","hidden")):kn(t,a.bm("parent","hidden"))},Ps=Symbol("ElLoading"),bp=(e,t)=>{var n,a,l,r;const s=t.instance,i=h=>ht(t.value)?t.value[h]:void 0,u=h=>{const v=Ve(h)&&(s==null?void 0:s[h])||h;return v&&A(v)},c=h=>u(i(h)||e.getAttribute(`element-loading-${eg(h)}`)),d=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(a=i("target"))!=null?a:d?void 0:e,body:(l=i("body"))!=null?l:t.modifiers.body,lock:(r=i("lock"))!=null?r:t.modifiers.lock};e[Ps]={options:f,instance:zc(f)}},JG=(e,t)=>{for(const n of Object.keys(t))Sn(t[n])&&(t[n].value=e[n])},wp={mounted(e,t){t.value&&bp(e,t)},updated(e,t){const n=e[Ps];t.oldValue!==t.value&&(t.value&&!t.oldValue?bp(e,t):t.value&&t.oldValue?ht(t.value)&&JG(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Ps])==null||t.instance.close(),e[Ps]=null}},QG={install(e){e.directive("loading",wp),e.config.globalProperties.$loading=zc},directive:wp,service:zc},A4=["success","info","warning","error"],_n=Vt({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ut?document.body:void 0}),eX=pe({customClass:{type:String,default:_n.customClass},center:{type:Boolean,default:_n.center},dangerouslyUseHTMLString:{type:Boolean,default:_n.dangerouslyUseHTMLString},duration:{type:Number,default:_n.duration},icon:{type:St,default:_n.icon},id:{type:String,default:_n.id},message:{type:X([String,Object,Function]),default:_n.message},onClose:{type:X(Function),default:_n.onClose},showClose:{type:Boolean,default:_n.showClose},type:{type:String,values:A4,default:_n.type},plain:{type:Boolean,default:_n.plain},offset:{type:Number,default:_n.offset},zIndex:{type:Number,default:_n.zIndex},grouping:{type:Boolean,default:_n.grouping},repeatNum:{type:Number,default:_n.repeatNum}}),tX={destroy:()=>!0},sa=tg([]),nX=e=>{const t=sa.findIndex(l=>l.id===e),n=sa[t];let a;return t>0&&(a=sa[t-1]),{current:n,prev:a}},aX=e=>{const{prev:t}=nX(e);return t?t.vm.exposed.bottom.value:0},lX=(e,t)=>sa.findIndex(a=>a.id===e)>0?16:t,oX=T({name:"ElMessage"}),rX=T({...oX,props:eX,emits:tX,setup(e,{expose:t}){const n=e,{Close:a}=fd,{ns:l,zIndex:r}=_i("message"),{currentZIndex:s,nextZIndex:i}=r,u=A(),c=A(!1),d=A(0);let f;const h=C(()=>n.type?n.type==="error"?"danger":n.type:"info"),v=C(()=>{const O=n.type;return{[l.bm("icon",O)]:O&&il[O]}}),m=C(()=>n.icon||il[n.type]||""),p=C(()=>aX(n.id)),y=C(()=>lX(n.id,n.offset)+p.value),g=C(()=>d.value+y.value),x=C(()=>({top:`${y.value}px`,zIndex:s.value}));function w(){n.duration!==0&&({stop:f}=Nl(()=>{S()},n.duration))}function b(){f==null||f()}function S(){c.value=!1}function E({code:O}){O===Ce.esc&&S()}return Xe(()=>{w(),i(),c.value=!0}),ue(()=>n.repeatNum,()=>{b(),w()}),wt(document,"keydown",E),At(u,()=>{d.value=u.value.getBoundingClientRect().height}),t({visible:c,bottom:g,close:S}),(O,I)=>(_(),ae(tn,{name:o(l).b("fade"),onBeforeLeave:O.onClose,onAfterLeave:N=>O.$emit("destroy"),persisted:""},{default:G(()=>[qe(k("div",{id:O.id,ref_key:"messageRef",ref:u,class:$([o(l).b(),{[o(l).m(O.type)]:O.type},o(l).is("center",O.center),o(l).is("closable",O.showClose),o(l).is("plain",O.plain),O.customClass]),style:Oe(o(x)),role:"alert",onMouseenter:b,onMouseleave:w},[O.repeatNum>1?(_(),ae(o(Ov),{key:0,value:O.repeatNum,type:o(h),class:$(o(l).e("badge"))},null,8,["value","type","class"])):ee("v-if",!0),o(m)?(_(),ae(o(Me),{key:1,class:$([o(l).e("icon"),o(v)])},{default:G(()=>[(_(),ae(Qe(o(m))))]),_:1},8,["class"])):ee("v-if",!0),Q(O.$slots,"default",{},()=>[O.dangerouslyUseHTMLString?(_(),M(ze,{key:1},[ee(" Caution here, message could've been compromised, never use user's input as message "),k("p",{class:$(o(l).e("content")),innerHTML:O.message},null,10,["innerHTML"])],2112)):(_(),M("p",{key:0,class:$(o(l).e("content"))},he(O.message),3))]),O.showClose?(_(),ae(o(Me),{key:2,class:$(o(l).e("closeBtn")),onClick:Ae(S,["stop"])},{default:G(()=>[q(o(a))]),_:1},8,["class","onClick"])):ee("v-if",!0)],46,["id"]),[[pt,c.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var sX=ve(rX,[["__file","message.vue"]]);let iX=1;const V4=e=>{const t=!e||Ve(e)||Ft(e)||Je(e)?{message:e}:e,n={..._n,...t};if(!n.appendTo)n.appendTo=document.body;else if(Ve(n.appendTo)){let a=document.querySelector(n.appendTo);Tn(a)||(a=document.body),n.appendTo=a}return Et(aa.grouping)&&!n.grouping&&(n.grouping=aa.grouping),Ie(aa.duration)&&n.duration===3e3&&(n.duration=aa.duration),Ie(aa.offset)&&n.offset===16&&(n.offset=aa.offset),Et(aa.showClose)&&!n.showClose&&(n.showClose=aa.showClose),n},uX=e=>{const t=sa.indexOf(e);if(t===-1)return;sa.splice(t,1);const{handler:n}=e;n.close()},cX=({appendTo:e,...t},n)=>{const a=`message_${iX++}`,l=t.onClose,r=document.createElement("div"),s={...t,id:a,onClose:()=>{l==null||l(),uX(d)},onDestroy:()=>{ol(null,r)}},i=q(sX,s,Je(s.message)||Ft(s.message)?{default:Je(s.message)?s.message:()=>s.message}:null);i.appContext=n||Eo._context,ol(i,r),e.appendChild(r.firstElementChild);const u=i.component,d={id:a,vnode:i,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:i.component.props};return d},Eo=(e={},t)=>{if(!ut)return{close:()=>{}};const n=V4(e);if(n.grouping&&sa.length){const l=sa.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(Ie(aa.max)&&sa.length>=aa.max)return{close:()=>{}};const a=cX(n,t);return sa.push(a),a.handler};A4.forEach(e=>{Eo[e]=(t={},n)=>{const a=V4(t);return Eo({...a,type:e},n)}});function dX(e){for(const t of sa)(!e||e===t.props.type)&&t.handler.close()}Eo.closeAll=dX;Eo._context=null;const fX=z1(Eo,"$message"),Ac="_trap-focus-children",Sl=[],Cp=e=>{if(Sl.length===0)return;const t=Sl[Sl.length-1][Ac];if(t.length>0&&e.code===Ce.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,a=e.target===t[0],l=e.target===t[t.length-1];a&&n&&(e.preventDefault(),t[t.length-1].focus()),l&&!n&&(e.preventDefault(),t[0].focus())}},pX={beforeMount(e){e[Ac]=E0(e),Sl.push(e),Sl.length<=1&&document.addEventListener("keydown",Cp)},updated(e){Ne(()=>{e[Ac]=E0(e)})},unmounted(){Sl.shift(),Sl.length===0&&document.removeEventListener("keydown",Cp)}},vX=T({name:"ElMessageBox",directives:{TrapFocus:pX},components:{ElButton:en,ElFocusTrap:Ao,ElInput:Cn,ElOverlay:Dd,ElIcon:Me,...fd},inheritAttrs:!1,props:{buttonSize:{type:String,validator:fm},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:l,size:r}=_i("message-box",C(()=>e.buttonSize)),{t:s}=n,{nextZIndex:i}=a,u=A(!1),c=_t({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:kl(ca),cancelButtonLoadingIcon:kl(ca),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),d=C(()=>{const V=c.type;return{[l.bm("icon",V)]:V&&il[V]}}),f=on(),h=on(),v=C(()=>c.icon||il[c.type]||""),m=C(()=>!!c.message),p=A(),y=A(),g=A(),x=A(),w=A(),b=C(()=>c.confirmButtonClass);ue(()=>c.inputValue,async V=>{await Ne(),e.boxType==="prompt"&&V!==null&&R()},{immediate:!0}),ue(()=>u.value,V=>{var D,B;V&&(e.boxType!=="prompt"&&(c.autofocus?g.value=(B=(D=w.value)==null?void 0:D.$el)!=null?B:p.value:g.value=p.value),c.zIndex=i()),e.boxType==="prompt"&&(V?Ne().then(()=>{var z;x.value&&x.value.$el&&(c.autofocus?g.value=(z=K())!=null?z:p.value:g.value=p.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=C(()=>e.draggable),E=C(()=>e.overflow);Eh(p,y,S,E),Xe(async()=>{await Ne(),e.closeOnHashChange&&window.addEventListener("hashchange",O)}),$t(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){u.value&&(u.value=!1,Ne(()=>{c.action&&t("action",c.action)}))}const I=()=>{e.closeOnClickModal&&L(c.distinguishCancelAndClose?"close":"cancel")},N=Hd(I),P=V=>{if(c.inputType!=="textarea")return V.preventDefault(),L("confirm")},L=V=>{var D;e.boxType==="prompt"&&V==="confirm"&&!R()||(c.action=V,c.beforeClose?(D=c.beforeClose)==null||D.call(c,V,c,O):O())},R=()=>{if(e.boxType==="prompt"){const V=c.inputPattern;if(V&&!V.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;const D=c.inputValidator;if(Je(D)){const B=D(c.inputValue);if(B===!1)return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;if(Ve(B))return c.editorErrorMessage=B,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},K=()=>{const V=x.value.$refs;return V.input||V.textarea},U=()=>{L("close")},H=()=>{e.closeOnPressEscape&&U()};return e.lockScroll&&Fd(u),{...nn(c),ns:l,overlayEvent:N,visible:u,hasMessage:m,typeClass:d,contentId:f,inputId:h,btnSize:r,iconComponent:v,confirmButtonClasses:b,rootRef:p,focusStartRef:g,headerRef:y,inputRef:x,confirmRef:w,doClose:O,handleClose:U,onCloseRequested:H,handleWrapperClick:I,handleInputEnter:P,handleAction:L,t:s}}});function hX(e,t,n,a,l,r){const s=Ze("el-icon"),i=Ze("close"),u=Ze("el-input"),c=Ze("el-button"),d=Ze("el-focus-trap"),f=Ze("el-overlay");return _(),ae(tn,{name:"fade-in-linear",onAfterLeave:h=>e.$emit("vanish"),persisted:""},{default:G(()=>[qe(q(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:G(()=>[k("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:$(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[q(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:G(()=>[k("div",{ref:"rootRef",class:$([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Oe(e.customStyle),tabindex:"-1",onClick:Ae(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(_(),M("div",{key:0,ref:"headerRef",class:$([e.ns.e("header"),{"show-close":e.showClose}])},[k("div",{class:$(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),ae(s,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:G(()=>[(_(),ae(Qe(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),k("span",null,he(e.title),1)],2),e.showClose?(_(),M("button",{key:0,type:"button",class:$(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:kt(Ae(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[q(s,{class:$(e.ns.e("close"))},{default:G(()=>[q(i)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):ee("v-if",!0)],2)):ee("v-if",!0),k("div",{id:e.contentId,class:$(e.ns.e("content"))},[k("div",{class:$(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),ae(s,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:G(()=>[(_(),ae(Qe(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),e.hasMessage?(_(),M("div",{key:1,class:$(e.ns.e("message"))},[Q(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),ae(Qe(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),ae(Qe(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:G(()=>[ot(he(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ee("v-if",!0)],2),qe(k("div",{class:$(e.ns.e("input"))},[q(u,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":h=>e.inputValue=h,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:$({invalid:e.validateError}),onKeydown:kt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),k("div",{class:$(e.ns.e("errormsg")),style:Oe({visibility:e.editorErrorMessage?"visible":"hidden"})},he(e.editorErrorMessage),7)],2),[[pt,e.showInput]])],10,["id"]),k("div",{class:$(e.ns.e("btns"))},[e.showCancelButton?(_(),ae(c,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:$([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:h=>e.handleAction("cancel"),onKeydown:kt(Ae(h=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:G(()=>[ot(he(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):ee("v-if",!0),qe(q(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:$([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:h=>e.handleAction("confirm"),onKeydown:kt(Ae(h=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:G(()=>[ot(he(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[pt,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[pt,e.visible]])]),_:3},8,["onAfterLeave"])}var mX=ve(vX,[["render",hX],["__file","index.vue"]]);const Er=new Map,gX=e=>{let t=document.body;return e.appendTo&&(Ve(e.appendTo)&&(t=document.querySelector(e.appendTo)),Tn(e.appendTo)&&(t=e.appendTo),Tn(t)||(t=document.body)),t},yX=(e,t,n=null)=>{const a=q(mX,e,Je(e.message)||Ft(e.message)?{default:Je(e.message)?e.message:()=>e.message}:null);return a.appContext=n,ol(a,t),gX(e).appendChild(t.firstElementChild),a.component},_X=()=>document.createElement("div"),bX=(e,t)=>{const n=_X();e.onVanish=()=>{ol(null,n),Er.delete(l)},e.onAction=r=>{const s=Er.get(l);let i;e.showInput?i={value:l.inputValue,action:r}:i=r,e.callback?e.callback(i,a.proxy):r==="cancel"||r==="close"?e.distinguishCancelAndClose&&r!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(i)};const a=yX(e,n,t),l=a.proxy;for(const r in e)vn(e,r)&&!vn(l.$props,r)&&(l[r]=e[r]);return l.visible=!0,l};function Ho(e,t=null){if(!ut)return Promise.reject();let n;return Ve(e)||Ft(e)?e={message:e}:n=e.callback,new Promise((a,l)=>{const r=bX(e,t??Ho._context);Er.set(r,{options:e,callback:n,resolve:a,reject:l})})}const wX=["alert","confirm","prompt"],CX={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};wX.forEach(e=>{Ho[e]=SX(e)});function SX(e){return(t,n,a,l)=>{let r="";return ht(n)?(a=n,r=""):vt(n)?r="":r=n,Ho(Object.assign({title:r,message:t,type:"",...CX[e]},a,{boxType:e}),l)}}Ho.close=()=>{Er.forEach((e,t)=>{t.doClose()}),Er.clear()};Ho._context=null;const Qa=Ho;Qa.install=e=>{Qa._context=e._context,e.config.globalProperties.$msgbox=Qa,e.config.globalProperties.$messageBox=Qa,e.config.globalProperties.$alert=Qa.alert,e.config.globalProperties.$confirm=Qa.confirm,e.config.globalProperties.$prompt=Qa.prompt};const kX=Qa,L4=["success","info","warning","error"],EX=pe({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:St},id:{type:String,default:""},message:{type:X([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:X(Function),default:()=>{}},onClose:{type:X(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...L4,""],default:""},zIndex:Number}),xX={destroy:()=>!0},MX=T({name:"ElNotification"}),$X=T({...MX,props:EX,emits:xX,setup(e,{expose:t}){const n=e,{ns:a,zIndex:l}=_i("notification"),{nextZIndex:r,currentZIndex:s}=l,{Close:i}=dd,u=A(!1);let c;const d=C(()=>{const w=n.type;return w&&il[n.type]?a.m(w):""}),f=C(()=>n.type&&il[n.type]||n.icon),h=C(()=>n.position.endsWith("right")?"right":"left"),v=C(()=>n.position.startsWith("top")?"top":"bottom"),m=C(()=>{var w;return{[v.value]:`${n.offset}px`,zIndex:(w=n.zIndex)!=null?w:s.value}});function p(){n.duration>0&&({stop:c}=Nl(()=>{u.value&&g()},n.duration))}function y(){c==null||c()}function g(){u.value=!1}function x({code:w}){w===Ce.delete||w===Ce.backspace?y():w===Ce.esc?u.value&&g():p()}return Xe(()=>{p(),r(),u.value=!0}),wt(document,"keydown",x),t({visible:u,close:g}),(w,b)=>(_(),ae(tn,{name:o(a).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:S=>w.$emit("destroy"),persisted:""},{default:G(()=>[qe(k("div",{id:w.id,class:$([o(a).b(),w.customClass,o(h)]),style:Oe(o(m)),role:"alert",onMouseenter:y,onMouseleave:p,onClick:w.onClick},[o(f)?(_(),ae(o(Me),{key:0,class:$([o(a).e("icon"),o(d)])},{default:G(()=>[(_(),ae(Qe(o(f))))]),_:1},8,["class"])):ee("v-if",!0),k("div",{class:$(o(a).e("group"))},[k("h2",{class:$(o(a).e("title")),textContent:he(w.title)},null,10,["textContent"]),qe(k("div",{class:$(o(a).e("content")),style:Oe(w.title?void 0:{margin:0})},[Q(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(_(),M(ze,{key:1},[ee(" Caution here, message could've been compromised, never use user's input as message "),k("p",{innerHTML:w.message},null,8,["innerHTML"])],2112)):(_(),M("p",{key:0},he(w.message),1))])],6),[[pt,w.message]]),w.showClose?(_(),ae(o(Me),{key:0,class:$(o(a).e("closeBtn")),onClick:Ae(g,["stop"])},{default:G(()=>[q(o(i))]),_:1},8,["class","onClick"])):ee("v-if",!0)],2)],46,["id","onClick"]),[[pt,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var TX=ve($X,[["__file","notification.vue"]]);const li={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Vc=16;let OX=1;const xo=function(e={},t){if(!ut)return{close:()=>{}};(Ve(e)||Ft(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;li[n].forEach(({vm:d})=>{var f;a+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Vc}),a+=Vc;const l=`notification_${OX++}`,r=e.onClose,s={...e,offset:a,id:l,onClose:()=>{NX(l,n,r)}};let i=document.body;Tn(e.appendTo)?i=e.appendTo:Ve(e.appendTo)&&(i=document.querySelector(e.appendTo)),Tn(i)||(i=document.body);const u=document.createElement("div"),c=q(TX,s,Je(s.message)?s.message:Ft(s.message)?()=>s.message:null);return c.appContext=vt(t)?xo._context:t,c.props.onDestroy=()=>{ol(null,u)},ol(c,u),li[n].push({vm:c}),i.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};L4.forEach(e=>{xo[e]=(t={},n)=>((Ve(t)||Ft(t))&&(t={message:t}),xo({...t,type:e},n))});function NX(e,t,n){const a=li[t],l=a.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(l===-1)return;const{vm:r}=a[l];if(!r)return;n==null||n(r);const s=r.el.offsetHeight,i=t.split("-")[0];a.splice(l,1);const u=a.length;if(!(u<1))for(let c=l;c{t.component.exposed.visible.value=!1})}xo.closeAll=IX;xo._context=null;const PX=z1(xo,"$notify");var zX=[YG,QG,fX,kX,PX,Xh],jX=mb([...DG,...zX]);const qX={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((a,l)=>(a.size=l===t?a.max:a.min,l!==t&&(n+=a.min),a)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(a=>({min:a.min,max:a.max,size:a.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:a}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:a-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const a=0+(this.pushOtherPanes?0:n.prevPanesSize),l=100-(this.pushOtherPanes?0:n.nextPanesSize),r=Math.max(Math.min(this.getCurrentDragPercentage(e),l),a);let s=[t,t+1],i=this.panes[s[0]]||null,u=this.panes[s[1]]||null;const c=i.max<100&&r>=i.max+n.prevPanesSize,d=u.max<100&&r<=100-(u.max+this.sumNextPanesSize(t+1));if(c||d){c?(i.size=i.max,u.size=Math.max(100-i.max-n.prevPanesSize-n.nextPanesSize,0)):(i.size=Math.max(100-u.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),u.size=u.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,r);if(!f)return;({sums:n,panesToResize:s}=f),i=this.panes[s[0]]||null,u=this.panes[s[1]]||null}i!==null&&(i.size=Math.min(Math.max(r-n.prevPanesSize-n.prevReachedMinPanes,i.min),i.max)),u!==null&&(u.size=Math.min(Math.max(100-r-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,a=[n,n+1];return t{r>a[0]&&r<=n&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),e.prevPanesSize=this.sumPrevPanesSize(a[0]),a[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((l,r)=>{r>0&&r<=n&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),this.panes[a[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[a[1]].min&&(a[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,a[1]>n+1&&this.panes.forEach((l,r)=>{r>n&&r{r=n+1&&(l.size=l.min,e.nextReachedMinPanes+=l.min)}),this.panes[a[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:a}},sumPrevPanesSize(e){return this.panes.reduce((t,n,a)=>t+(at+(a>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const a=e-1,l=document.createElement("div");l.classList.add("splitpanes__splitter"),n||(l.onmousedown=r=>this.onMouseDown(r,a),typeof window<"u"&&"ontouchstart"in window&&(l.ontouchstart=r=>this.onMouseDown(r,a)),l.onclick=r=>this.onSplitterClick(r,a+1)),this.dblClickSplitter&&(l.ondblclick=r=>this.onSplitterDblClick(r,a+1)),t.parentNode.insertBefore(l,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([a,l])=>n[a]=l)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(l=>(l.className.includes("splitpanes__pane")&&t++,l===e.$el));const n=parseFloat(e.minSize),a=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(a)?100:a,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((l,r)=>l.index=r),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(l=>({min:l.min,max:l.max,size:l.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(a=>a.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((a,l)=>a.index=l),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],a=[];this.panes.forEach(l=>{l.size=Math.max(Math.min(e,l.max),l.min),t-=l.size,l.size>=l.max&&n.push(l.id),l.size<=l.min&&a.push(l.id)}),t>.1&&this.readjustSizes(t,n,a)},initialPanesSizing(){let e=100;const t=[],n=[];let a=0;this.panes.forEach(r=>{e-=r.size,r.size!==null&&a++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&n.push(r.id)});let l=100;e>.1&&(this.panes.forEach(r=>{r.size===null&&(r.size=Math.max(Math.min(e/(this.panesCount-a),r.max),r.min)),l-=r.size}),l>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,a=0;const l=[],r=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(s=>{a-=s.size,s.size>=s.max&&l.push(s.id),s.size<=s.min&&r.push(s.id)}),!(Math.abs(a)<.1)&&(this.panes.forEach(s=>{e&&e.givenSize!==null&&e.id===s.id||(s.size=Math.max(Math.min(n,s.max),s.min)),a-=s.size,s.size>=s.max&&l.push(s.id),s.size<=s.min&&r.push(s.id)}),a>.1&&this.readjustSizes(a,l,r))},readjustSizes(e,t,n){let a;e>0?a=e/(this.panesCount-t.length):a=e/(this.panesCount-n.length),this.panes.forEach((l,r)=>{if(e>0&&!t.includes(l.id)){const s=Math.max(Math.min(l.size+a,l.max),l.min),i=s-l.size;e-=i,l.size=s}else if(!n.includes(l.id)){const s=Math.max(Math.min(l.size+a,l.max),l.min),i=s-l.size;e-=i,l.size=s}l.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[l.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?a=>this.onSplitterDblClick(a,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Pe("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},AX=(e,t)=>{const n=e.__vccOpts||e;for(const[a,l]of t)n[a]=l;return n},VX={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function LX(e,t,n,a,l,r){return _(),M("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=s=>r.onPaneClick(s,e._.uid)),style:Oe(e.style)},[Q(e.$slots,"default")],4)}const UX=AX(VX,[["render",LX]]);export{fX as E,qX as M,LV as a,LR as b,RR as c,Cn as d,Pl as e,js as f,rI as g,en as h,Lv as i,kz as j,Fh as k,UX as l,DX as m,jX as n}; diff --git a/assets/vue-CAgL8zVV.js b/assets/vue-CAgL8zVV.js deleted file mode 100644 index 69d98d5..0000000 --- a/assets/vue-CAgL8zVV.js +++ /dev/null @@ -1,21 +0,0 @@ -/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function xs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const X={},St=[],Ee=()=>{},Ao=()=>!1,Tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ts=e=>e.startsWith("onUpdate:"),oe=Object.assign,Es=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mo=Object.prototype.hasOwnProperty,z=(e,t)=>Mo.call(e,t),F=Array.isArray,wt=e=>Xt(e)==="[object Map]",En=e=>Xt(e)==="[object Set]",Ys=e=>Xt(e)==="[object Date]",V=e=>typeof e=="function",se=e=>typeof e=="string",Oe=e=>typeof e=="symbol",Q=e=>e!==null&&typeof e=="object",$r=e=>(Q(e)||V(e))&&V(e.then)&&V(e.catch),kr=Object.prototype.toString,Xt=e=>kr.call(e),Oo=e=>Xt(e).slice(8,-1),Br=e=>Xt(e)==="[object Object]",As=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jt=xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Po=/-(\w)/g,xe=An(e=>e.replace(Po,(t,n)=>n?n.toUpperCase():"")),Ro=/\B([A-Z])/g,rt=An(e=>e.replace(Ro,"-$1").toLowerCase()),Mn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),an=An(e=>e?`on${Mn(e)}`:""),et=(e,t)=>!Object.is(e,t),dn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},os=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Io=e=>{const t=se(e)?Number(e):NaN;return isNaN(t)?e:t};let Qs;const On=()=>Qs||(Qs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pn(e){if(F(e)){const t={};for(let n=0;n{if(n){const s=n.split(Lo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Rn(e){let t="";if(se(e))t=e;else if(F(e))for(let n=0;nEt(n,t))}const Gr=e=>!!(e&&e.__v_isRef===!0),$o=e=>se(e)?e:e==null?"":F(e)||Q(e)&&(e.toString===kr||!V(e.toString))?Gr(e)?$o(e.value):JSON.stringify(e,Jr,2):String(e),Jr=(e,t)=>Gr(t)?Jr(e,t.value):wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Gn(s,i)+" =>"]=r,n),{})}:En(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Gn(n))}:Oe(t)?Gn(t):Q(t)&&!F(t)&&!Br(t)?String(t):t,Gn=(e,t="")=>{var n;return Oe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let he;class qr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=he,!t&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Vt){let t=Vt;for(Vt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ht;){let t=Ht;for(Ht=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ti(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Rs(s),ko(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ls(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ni(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ni(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wt))return;e.globalVersion=Wt;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ls(e)){e.flags&=-3;return}const n=te,s=Ae;te=e,Ae=!0;try{ei(e);const r=e.fn(e._value);(t.version===0||et(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{te=n,Ae=s,ti(e),e.flags&=-3}}function Rs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ko(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ae=!0;const si=[];function it(){si.push(Ae),Ae=!1}function ot(){const e=si.pop();Ae=e===void 0?!0:e}function Xs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=te;te=void 0;try{t()}finally{te=n}}}let Wt=0;class Bo{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class In{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!te||!Ae||te===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==te)n=this.activeLink=new Bo(te,this),te.deps?(n.prevDep=te.depsTail,te.depsTail.nextDep=n,te.depsTail=n):te.deps=te.depsTail=n,ri(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=te.depsTail,n.nextDep=void 0,te.depsTail.nextDep=n,te.depsTail=n,te.deps===n&&(te.deps=s)}return n}trigger(t){this.version++,Wt++,this.notify(t)}notify(t){Os();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ps()}}}function ri(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ri(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const mn=new WeakMap,pt=Symbol(""),cs=Symbol(""),Ut=Symbol("");function fe(e,t,n){if(Ae&&te){let s=mn.get(e);s||mn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new In),r.map=s,r.key=n),r.track()}}function Ke(e,t,n,s,r,i){const o=mn.get(e);if(!o){Wt++;return}const l=c=>{c&&c.trigger()};if(Os(),t==="clear")o.forEach(l);else{const c=F(e),a=c&&As(n);if(c&&n==="length"){const f=Number(s);o.forEach((h,g)=>{(g==="length"||g===Ut||!Oe(g)&&g>=f)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),a&&l(o.get(Ut)),t){case"add":c?a&&l(o.get("length")):(l(o.get(pt)),wt(e)&&l(o.get(cs)));break;case"delete":c||(l(o.get(pt)),wt(e)&&l(o.get(cs)));break;case"set":wt(e)&&l(o.get(pt));break}}Ps()}function Ko(e,t){const n=mn.get(e);return n&&n.get(t)}function _t(e){const t=J(e);return t===e?t:(fe(t,"iterate",Ut),Ce(e)?t:t.map(ue))}function Fn(e){return fe(e=J(e),"iterate",Ut),e}const Wo={__proto__:null,[Symbol.iterator](){return qn(this,Symbol.iterator,ue)},concat(...e){return _t(this).concat(...e.map(t=>F(t)?_t(t):t))},entries(){return qn(this,"entries",e=>(e[1]=ue(e[1]),e))},every(e,t){return ke(this,"every",e,t,void 0,arguments)},filter(e,t){return ke(this,"filter",e,t,n=>n.map(ue),arguments)},find(e,t){return ke(this,"find",e,t,ue,arguments)},findIndex(e,t){return ke(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ke(this,"findLast",e,t,ue,arguments)},findLastIndex(e,t){return ke(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ke(this,"forEach",e,t,void 0,arguments)},includes(...e){return zn(this,"includes",e)},indexOf(...e){return zn(this,"indexOf",e)},join(e){return _t(this).join(e)},lastIndexOf(...e){return zn(this,"lastIndexOf",e)},map(e,t){return ke(this,"map",e,t,void 0,arguments)},pop(){return Ft(this,"pop")},push(...e){return Ft(this,"push",e)},reduce(e,...t){return Zs(this,"reduce",e,t)},reduceRight(e,...t){return Zs(this,"reduceRight",e,t)},shift(){return Ft(this,"shift")},some(e,t){return ke(this,"some",e,t,void 0,arguments)},splice(...e){return Ft(this,"splice",e)},toReversed(){return _t(this).toReversed()},toSorted(e){return _t(this).toSorted(e)},toSpliced(...e){return _t(this).toSpliced(...e)},unshift(...e){return Ft(this,"unshift",e)},values(){return qn(this,"values",ue)}};function qn(e,t,n){const s=Fn(e),r=s[t]();return s!==e&&!Ce(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const Uo=Array.prototype;function ke(e,t,n,s,r,i){const o=Fn(e),l=o!==e&&!Ce(e),c=o[t];if(c!==Uo[t]){const h=c.apply(e,i);return l?ue(h):h}let a=n;o!==e&&(l?a=function(h,g){return n.call(this,ue(h),g,e)}:n.length>2&&(a=function(h,g){return n.call(this,h,g,e)}));const f=c.call(o,a,s);return l&&r?r(f):f}function Zs(e,t,n,s){const r=Fn(e);let i=n;return r!==e&&(Ce(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,ue(l),c,e)}),r[t](i,...s)}function zn(e,t,n){const s=J(e);fe(s,"iterate",Ut);const r=s[t](...n);return(r===-1||r===!1)&&Ls(n[0])?(n[0]=J(n[0]),s[t](...n)):r}function Ft(e,t,n=[]){it(),Os();const s=J(e)[t].apply(e,n);return Ps(),ot(),s}const Go=xs("__proto__,__v_isRef,__isVue"),ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Oe));function Jo(e){Oe(e)||(e=String(e));const t=J(this);return fe(t,"has",e),t.hasOwnProperty(e)}class oi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?sl:ui:i?fi:ci).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=F(t);if(!r){let c;if(o&&(c=Wo[n]))return c;if(n==="hasOwnProperty")return Jo}const l=Reflect.get(t,n,re(t)?t:s);return(Oe(n)?ii.has(n):Go(n))||(r||fe(t,"get",n),i)?l:re(l)?o&&As(n)?l:l.value:Q(l)?r?Nn(l):Ln(l):l}}class li extends oi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const c=mt(i);if(!Ce(s)&&!mt(s)&&(i=J(i),s=J(s)),!F(t)&&re(i)&&!re(s))return c?!1:(i.value=s,!0)}const o=F(t)&&As(n)?Number(n)e,sn=e=>Reflect.getPrototypeOf(e);function Xo(e,t,n){return function(...s){const r=this.__v_raw,i=J(r),o=wt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,a=r[e](...s),f=n?fs:t?us:ue;return!t&&fe(i,"iterate",c?cs:pt),{next(){const{value:h,done:g}=a.next();return g?{value:h,done:g}:{value:l?[f(h[0]),f(h[1])]:f(h),done:g}},[Symbol.iterator](){return this}}}}function rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Zo(e,t){const n={get(r){const i=this.__v_raw,o=J(i),l=J(r);e||(et(r,l)&&fe(o,"get",r),fe(o,"get",l));const{has:c}=sn(o),a=t?fs:e?us:ue;if(c.call(o,r))return a(i.get(r));if(c.call(o,l))return a(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&fe(J(r),"iterate",pt),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=J(i),l=J(r);return e||(et(r,l)&&fe(o,"has",r),fe(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=J(l),a=t?fs:e?us:ue;return!e&&fe(c,"iterate",pt),l.forEach((f,h)=>r.call(i,a(f),a(h),o))}};return oe(n,e?{add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear")}:{add(r){!t&&!Ce(r)&&!mt(r)&&(r=J(r));const i=J(this);return sn(i).has.call(i,r)||(i.add(r),Ke(i,"add",r,r)),this},set(r,i){!t&&!Ce(i)&&!mt(i)&&(i=J(i));const o=J(this),{has:l,get:c}=sn(o);let a=l.call(o,r);a||(r=J(r),a=l.call(o,r));const f=c.call(o,r);return o.set(r,i),a?et(i,f)&&Ke(o,"set",r,i):Ke(o,"add",r,i),this},delete(r){const i=J(this),{has:o,get:l}=sn(i);let c=o.call(i,r);c||(r=J(r),c=o.call(i,r)),l&&l.call(i,r);const a=i.delete(r);return c&&Ke(i,"delete",r,void 0),a},clear(){const r=J(this),i=r.size!==0,o=r.clear();return i&&Ke(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Xo(r,e,t)}),n}function Is(e,t){const n=Zo(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(z(n,r)&&r in s?n:s,r,i)}const el={get:Is(!1,!1)},tl={get:Is(!1,!0)},nl={get:Is(!0,!1)};const ci=new WeakMap,fi=new WeakMap,ui=new WeakMap,sl=new WeakMap;function rl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function il(e){return e.__v_skip||!Object.isExtensible(e)?0:rl(Oo(e))}function Ln(e){return mt(e)?e:Fs(e,!1,zo,el,ci)}function ol(e){return Fs(e,!1,Qo,tl,fi)}function Nn(e){return Fs(e,!0,Yo,nl,ui)}function Fs(e,t,n,s,r){if(!Q(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=il(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function tt(e){return mt(e)?tt(e.__v_raw):!!(e&&e.__v_isReactive)}function mt(e){return!!(e&&e.__v_isReadonly)}function Ce(e){return!!(e&&e.__v_isShallow)}function Ls(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Ns(e){return!z(e,"__v_skip")&&Object.isExtensible(e)&&Kr(e,"__v_skip",!0),e}const ue=e=>Q(e)?Ln(e):e,us=e=>Q(e)?Nn(e):e;function re(e){return e?e.__v_isRef===!0:!1}function $e(e){return di(e,!1)}function ai(e){return di(e,!0)}function di(e,t){return re(e)?e:new ll(e,t)}class ll{constructor(t,n){this.dep=new In,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:J(t),this._value=n?t:ue(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ce(t)||mt(t);t=s?t:J(t),et(t,n)&&(this._rawValue=t,this._value=s?t:ue(t),this.dep.trigger())}}function Ds(e){return re(e)?e.value:e}function Ve(e){return V(e)?e():Ds(e)}const cl={get:(e,t,n)=>t==="__v_raw"?e:Ds(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return re(r)&&!re(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function hi(e){return tt(e)?e:new Proxy(e,cl)}class fl{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new In,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ul(e){return new fl(e)}function al(e){const t=F(e)?new Array(e.length):{};for(const n in e)t[n]=pi(e,n);return t}class dl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ko(J(this._object),this._key)}}class hl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function pl(e,t,n){return re(e)?e:V(e)?new hl(e):Q(e)&&arguments.length>1?pi(e,t,n):$e(e)}function pi(e,t,n){const s=e[t];return re(s)?s:new dl(e,t,n)}class gl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new In(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&te!==this)return Zr(this,!0),!0}get value(){const t=this.dep.track();return ni(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ml(e,t,n=!1){let s,r;return V(e)?s=e:(s=e.get,r=e.set),new gl(s,r,n)}const on={},yn=new WeakMap;let dt;function yl(e,t=!1,n=dt){if(n){let s=yn.get(n);s||yn.set(n,s=[]),s.push(e)}}function _l(e,t,n=X){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,a=M=>r?M:Ce(M)||r===!1||r===0?We(M,1):We(M);let f,h,g,y,C=!1,A=!1;if(re(e)?(h=()=>e.value,C=Ce(e)):tt(e)?(h=()=>a(e),C=!0):F(e)?(A=!0,C=e.some(M=>tt(M)||Ce(M)),h=()=>e.map(M=>{if(re(M))return M.value;if(tt(M))return a(M);if(V(M))return c?c(M,2):M()})):V(e)?t?h=c?()=>c(e,2):e:h=()=>{if(g){it();try{g()}finally{ot()}}const M=dt;dt=f;try{return c?c(e,3,[y]):e(y)}finally{dt=M}}:h=Ee,t&&r){const M=h,N=r===!0?1/0:r;h=()=>We(M(),N)}const W=Ms(),D=()=>{f.stop(),W&&W.active&&Es(W.effects,f)};if(i&&t){const M=t;t=(...N)=>{M(...N),D()}}let B=A?new Array(e.length).fill(on):on;const k=M=>{if(!(!(f.flags&1)||!f.dirty&&!M))if(t){const N=f.run();if(r||C||(A?N.some((q,U)=>et(q,B[U])):et(N,B))){g&&g();const q=dt;dt=f;try{const U=[N,B===on?void 0:A&&B[0]===on?[]:B,y];c?c(t,3,U):t(...U),B=N}finally{dt=q}}}else f.run()};return l&&l(k),f=new Qr(h),f.scheduler=o?()=>o(k,!1):k,y=M=>yl(M,!1,f),g=f.onStop=()=>{const M=yn.get(f);if(M){if(c)c(M,4);else for(const N of M)N();yn.delete(f)}},t?s?k(!0):B=f.run():o?o(k.bind(null,!0),!0):f.run(),D.pause=f.pause.bind(f),D.resume=f.resume.bind(f),D.stop=D,D}function We(e,t=1/0,n){if(t<=0||!Q(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,re(e))We(e.value,t,n);else if(F(e))for(let s=0;s{We(s,t,n)});else if(Br(e)){for(const s in e)We(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&We(e[s],t,n)}return e}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Zt(e,t,n,s){try{return s?e(...s):e()}catch(r){Dn(r,t,n)}}function Pe(e,t,n,s){if(V(e)){const r=Zt(e,t,n,s);return r&&$r(r)&&r.catch(i=>{Dn(i,t,n)}),r}if(F(e)){const r=[];for(let i=0;i>>1,r=pe[s],i=Gt(r);i=Gt(n)?pe.push(e):pe.splice(vl(t),0,e),e.flags|=1,mi()}}function mi(){_n||(_n=gi.then(_i))}function Sl(e){F(e)?Ct.push(...e):Ye&&e.id===-1?Ye.splice(vt+1,0,e):e.flags&1||(Ct.push(e),e.flags|=1),mi()}function er(e,t,n=je+1){for(;nGt(n)-Gt(s));if(Ct.length=0,Ye){Ye.push(...t);return}for(Ye=t,vt=0;vte.id==null?e.flags&2?-1:1/0:e.id;function _i(e){try{for(je=0;je{s._d&&pr(-1);const i=bn(t);let o;try{o=e(...r)}finally{bn(i),s._d&&pr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function $f(e,t){if(ie===null)return e;const n=Kn(ie),s=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,$t=e=>e&&(e.disabled||e.disabled===""),tr=e=>e&&(e.defer||e.defer===""),nr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,sr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,as=(e,t)=>{const n=e&&e.to;return se(n)?t?t(n):null:n},wi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,a){const{mc:f,pc:h,pbc:g,o:{insert:y,querySelector:C,createText:A,createComment:W}}=a,D=$t(t.props);let{shapeFlag:B,children:k,dynamicChildren:M}=t;if(e==null){const N=t.el=A(""),q=t.anchor=A("");y(N,n,s),y(q,n,s);const U=(S,R)=>{B&16&&(r&&r.isCE&&(r.ce._teleportTarget=S),f(k,S,R,r,i,o,l,c))},I=()=>{const S=t.target=as(t.props,C),R=Ci(S,t,A,y);S&&(o!=="svg"&&nr(S)?o="svg":o!=="mathml"&&sr(S)&&(o="mathml"),D||(U(S,R),hn(t,!1)))};D&&(U(n,q),hn(t,!0)),tr(t.props)?de(()=>{I(),t.el.__isMounted=!0},i):I()}else{if(tr(t.props)&&!e.el.__isMounted){de(()=>{wi.process(e,t,n,s,r,i,o,l,c,a),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const N=t.anchor=e.anchor,q=t.target=e.target,U=t.targetAnchor=e.targetAnchor,I=$t(e.props),S=I?n:q,R=I?N:U;if(o==="svg"||nr(q)?o="svg":(o==="mathml"||sr(q))&&(o="mathml"),M?(g(e.dynamicChildren,M,S,r,i,o,l),Ks(e,t,!0)):c||h(e,t,S,R,r,i,o,l,!1),D)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ln(t,n,N,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=as(t.props,C);P&&ln(t,P,null,a,0)}else I&&ln(t,q,U,a,1);hn(t,D)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:a,targetAnchor:f,target:h,props:g}=e;if(h&&(r(a),r(f)),i&&r(c),o&16){const y=i||!$t(g);for(let C=0;C{e.isMounted=!0}),Ii(()=>{e.isUnmounting=!0}),e}const we=[Function,Array],Ti={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:we,onEnter:we,onAfterEnter:we,onEnterCancelled:we,onBeforeLeave:we,onLeave:we,onAfterLeave:we,onLeaveCancelled:we,onBeforeAppear:we,onAppear:we,onAfterAppear:we,onAppearCancelled:we},Ei=e=>{const t=e.subTree;return t.component?Ei(t.component):t},xl={name:"BaseTransition",props:Ti,setup(e,{slots:t}){const n=Ot(),s=xi();return()=>{const r=t.default&&Hs(t.default(),!0);if(!r||!r.length)return;const i=Ai(r),o=J(e),{mode:l}=o;if(s.isLeaving)return Yn(i);const c=rr(i);if(!c)return Yn(i);let a=Jt(c,o,s,n,h=>a=h);c.type!==ge&&yt(c,a);let f=n.subTree&&rr(n.subTree);if(f&&f.type!==ge&&!ht(c,f)&&Ei(n).type!==ge){let h=Jt(f,o,s,n);if(yt(f,h),l==="out-in"&&c.type!==ge)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},Yn(i);l==="in-out"&&c.type!==ge?h.delayLeave=(g,y,C)=>{const A=Mi(s,f);A[String(f.key)]=f,g[Qe]=()=>{y(),g[Qe]=void 0,delete a.delayedLeave,f=void 0},a.delayedLeave=()=>{C(),delete a.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function Ai(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ge){t=n;break}}return t}const Tl=xl;function Mi(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Jt(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:g,onLeave:y,onAfterLeave:C,onLeaveCancelled:A,onBeforeAppear:W,onAppear:D,onAfterAppear:B,onAppearCancelled:k}=t,M=String(e.key),N=Mi(n,e),q=(S,R)=>{S&&Pe(S,s,9,R)},U=(S,R)=>{const P=R[1];q(S,R),F(S)?S.every(w=>w.length<=1)&&P():S.length<=1&&P()},I={mode:o,persisted:l,beforeEnter(S){let R=c;if(!n.isMounted)if(i)R=W||c;else return;S[Qe]&&S[Qe](!0);const P=N[M];P&&ht(e,P)&&P.el[Qe]&&P.el[Qe](),q(R,[S])},enter(S){let R=a,P=f,w=h;if(!n.isMounted)if(i)R=D||a,P=B||f,w=k||h;else return;let H=!1;const le=S[cn]=Te=>{H||(H=!0,Te?q(w,[S]):q(P,[S]),I.delayedLeave&&I.delayedLeave(),S[cn]=void 0)};R?U(R,[S,le]):le()},leave(S,R){const P=String(e.key);if(S[cn]&&S[cn](!0),n.isUnmounting)return R();q(g,[S]);let w=!1;const H=S[Qe]=le=>{w||(w=!0,R(),le?q(A,[S]):q(C,[S]),S[Qe]=void 0,N[P]===e&&delete N[P])};N[P]=e,y?U(y,[S,H]):H()},clone(S){const R=Jt(S,t,n,s,r);return r&&r(R),R}};return I}function Yn(e){if(Hn(e))return e=st(e),e.children=null,e}function rr(e){if(!Hn(e))return Si(e.type)&&e.children?Ai(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&V(n.default))return n.default()}}function yt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,yt(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 Hs(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;ivn(C,t&&(F(t)?t[A]:t),n,s,r));return}if(xt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&vn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Kn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,a=t&&t.r,f=l.refs===X?l.refs={}:l.refs,h=l.setupState,g=J(h),y=h===X?()=>!1:C=>z(g,C);if(a!=null&&a!==c&&(se(a)?(f[a]=null,y(a)&&(h[a]=null)):re(a)&&(a.value=null)),V(c))Zt(c,l,12,[o,f]);else{const C=se(c),A=re(c);if(C||A){const W=()=>{if(e.f){const D=C?y(c)?h[c]:f[c]:c.value;r?F(D)&&Es(D,i):F(D)?D.includes(i)||D.push(i):C?(f[c]=[i],y(c)&&(h[c]=f[c])):(c.value=[i],e.k&&(f[e.k]=c.value))}else C?(f[c]=o,y(c)&&(h[c]=o)):A&&(c.value=o,e.k&&(f[e.k]=o))};o?(W.id=-1,de(W,n)):W()}}}On().requestIdleCallback;On().cancelIdleCallback;const xt=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function El(e,t){Pi(e,"a",t)}function Al(e,t){Pi(e,"da",t)}function Pi(e,t,n=ce){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Vn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Hn(r.parent.vnode)&&Ml(s,t,n,r),r=r.parent}}function Ml(e,t,n,s){const r=Vn(t,e,s,!0);Fi(()=>{Es(s[t],r)},n)}function Vn(e,t,n=ce,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{it();const l=en(n),c=Pe(t,n,e,o);return l(),ot(),c});return s?r.unshift(i):r.push(i),i}}const Ge=e=>(t,n=ce)=>{(!Yt||e==="sp")&&Vn(e,(...s)=>t(...s),n)},Ol=Ge("bm"),$n=Ge("m"),Pl=Ge("bu"),Ri=Ge("u"),Ii=Ge("bum"),Fi=Ge("um"),Rl=Ge("sp"),Il=Ge("rtg"),Fl=Ge("rtc");function Ll(e,t=ce){Vn("ec",e,t)}const Vs="components",Nl="directives";function Kf(e,t){return $s(Vs,e,!0,t)||e}const Li=Symbol.for("v-ndc");function Wf(e){return se(e)?$s(Vs,e,!1)||e:e||Li}function Uf(e){return $s(Nl,e)}function $s(e,t,n=!0,s=!1){const r=ie||ce;if(r){const i=r.type;if(e===Vs){const l=Cc(i,!1);if(l&&(l===t||l===xe(t)||l===Mn(xe(t))))return i}const o=ir(r[e]||i[e],t)||ir(r.appContext[e],t);return!o&&s?i:o}}function ir(e,t){return e&&(e[t]||e[xe(t)]||e[Mn(xe(t))])}function Gf(e,t,n,s){let r;const i=n,o=F(e);if(o||se(e)){const l=o&&tt(e);let c=!1;l&&(c=!Ce(e),e=Fn(e)),r=new Array(e.length);for(let a=0,f=e.length;at(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,a=l.length;c{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function qf(e,t,n={},s,r){if(ie.ce||ie.parent&&xt(ie.parent)&&ie.parent.ce)return t!=="default"&&(n.name=t),ms(),ys(_e,null,[me("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),ms();const o=i&&Ni(i(n)),l=n.key||o&&o.key,c=ys(_e,{key:(l&&!Oe(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function Ni(e){return e.some(t=>zt(t)?!(t.type===ge||t.type===_e&&!Ni(t.children)):!0)?e:null}function zf(e,t){const n={};for(const s in e)n[an(s)]=e[s];return n}const ds=e=>e?no(e)?Kn(e):ds(e.parent):null,kt=oe(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=>ds(e.parent),$root:e=>ds(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Hi(e),$forceUpdate:e=>e.f||(e.f=()=>{js(e.update)}),$nextTick:e=>e.n||(e.n=jn.bind(e.proxy)),$watch:e=>rc.bind(e)}),Qn=(e,t)=>e!==X&&!e.__isScriptSetup&&z(e,t),Dl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Qn(s,t))return o[t]=1,s[t];if(r!==X&&z(r,t))return o[t]=2,r[t];if((a=e.propsOptions[0])&&z(a,t))return o[t]=3,i[t];if(n!==X&&z(n,t))return o[t]=4,n[t];hs&&(o[t]=0)}}const f=kt[t];let h,g;if(f)return t==="$attrs"&&fe(e.attrs,"get",""),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==X&&z(n,t))return o[t]=4,n[t];if(g=c.config.globalProperties,z(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Qn(r,t)?(r[t]=n,!0):s!==X&&z(s,t)?(s[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==X&&z(e,o)||Qn(t,o)||(l=i[0])&&z(l,o)||z(s,o)||z(kt,o)||z(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yf(){return Di().slots}function Qf(){return Di().attrs}function Di(){const e=Ot();return e.setupContext||(e.setupContext=ro(e))}function or(e){return F(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let hs=!0;function jl(e){const t=Hi(e),n=e.proxy,s=e.ctx;hs=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:a,created:f,beforeMount:h,mounted:g,beforeUpdate:y,updated:C,activated:A,deactivated:W,beforeDestroy:D,beforeUnmount:B,destroyed:k,unmounted:M,render:N,renderTracked:q,renderTriggered:U,errorCaptured:I,serverPrefetch:S,expose:R,inheritAttrs:P,components:w,directives:H,filters:le}=t;if(a&&Hl(a,s,null),o)for(const K in o){const Z=o[K];V(Z)&&(s[K]=Z.bind(n))}if(r){const K=r.call(n,n);Q(K)&&(e.data=Ln(K))}if(hs=!0,i)for(const K in i){const Z=i[K],lt=V(Z)?Z.bind(n,n):V(Z.get)?Z.get.bind(n,n):Ee,tn=!V(Z)&&V(Z.set)?Z.set.bind(n):Ee,ct=Me({get:lt,set:tn});Object.defineProperty(s,K,{enumerable:!0,configurable:!0,get:()=>ct.value,set:Re=>ct.value=Re})}if(l)for(const K in l)ji(l[K],s,n,K);if(c){const K=V(c)?c.call(n):c;Reflect.ownKeys(K).forEach(Z=>{Wl(Z,K[Z])})}f&&lr(f,e,"c");function ne(K,Z){F(Z)?Z.forEach(lt=>K(lt.bind(n))):Z&&K(Z.bind(n))}if(ne(Ol,h),ne($n,g),ne(Pl,y),ne(Ri,C),ne(El,A),ne(Al,W),ne(Ll,I),ne(Fl,q),ne(Il,U),ne(Ii,B),ne(Fi,M),ne(Rl,S),F(R))if(R.length){const K=e.exposed||(e.exposed={});R.forEach(Z=>{Object.defineProperty(K,Z,{get:()=>n[Z],set:lt=>n[Z]=lt})})}else e.exposed||(e.exposed={});N&&e.render===Ee&&(e.render=N),P!=null&&(e.inheritAttrs=P),w&&(e.components=w),H&&(e.directives=H),S&&Oi(e)}function Hl(e,t,n=Ee){F(e)&&(e=ps(e));for(const s in e){const r=e[s];let i;Q(r)?"default"in r?i=Tt(r.from||s,r.default,!0):i=Tt(r.from||s):i=Tt(r),re(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function lr(e,t,n){Pe(F(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ji(e,t,n,s){let r=s.includes(".")?Yi(n,s):()=>n[s];if(se(e)){const i=t[e];V(i)&&nt(r,i)}else if(V(e))nt(r,e.bind(n));else if(Q(e))if(F(e))e.forEach(i=>ji(i,t,n,s));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&nt(r,i,e)}}function Hi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>Sn(c,a,o,!0)),Sn(c,t,o)),Q(t)&&i.set(t,c),c}function Sn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Sn(e,i,n,!0),r&&r.forEach(o=>Sn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Vl[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Vl={data:cr,props:fr,emits:fr,methods:Dt,computed:Dt,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:Dt,directives:Dt,watch:kl,provide:cr,inject:$l};function cr(e,t){return t?e?function(){return oe(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function $l(e,t){return Dt(ps(e),ps(t))}function ps(e){if(F(e)){const t={};for(let n=0;n1)return n&&V(t)?t.call(s&&s.proxy):t}}function ks(){return!!(ce||ie||gt)}const $i={},ki=()=>Object.create($i),Bi=e=>Object.getPrototypeOf(e)===$i;function Ul(e,t,n,s=!1){const r={},i=ki();e.propsDefaults=Object.create(null),Ki(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:ol(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Gl(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=J(r),[c]=e.propsOptions;let a=!1;if((s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[g,y]=Wi(h,t,!0);oe(o,g),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!c)return Q(e)&&s.set(e,St),St;if(F(i))for(let f=0;fe[0]==="_"||e==="$stable",Bs=e=>F(e)?e.map(He):[He(e)],ql=(e,t,n)=>{if(t._n)return t;const s=wl((...r)=>Bs(t(...r)),n);return s._c=!1,s},Gi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ui(r))continue;const i=e[r];if(V(i))t[r]=ql(r,i,s);else if(i!=null){const o=Bs(i);t[r]=()=>o}}},Ji=(e,t)=>{const n=Bs(t);e.slots.default=()=>n},qi=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},zl=(e,t,n)=>{const s=e.slots=ki();if(e.vnode.shapeFlag&32){const r=t._;r?(qi(s,t,n),n&&Kr(s,"_",r,!0)):Gi(t,s)}else t&&Ji(e,t)},Yl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=X;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:qi(r,t,n):(i=!t.$stable,Gi(t,r)),o=t}else t&&(Ji(e,t),o={default:1});if(i)for(const l in r)!Ui(l)&&o[l]==null&&delete r[l]},de=ac;function Ql(e){return Xl(e)}function Xl(e,t){const n=On();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:a,setElementText:f,parentNode:h,nextSibling:g,setScopeId:y=Ee,insertStaticContent:C}=e,A=(u,d,p,b=null,m=null,_=null,E=void 0,T=null,x=!!d.dynamicChildren)=>{if(u===d)return;u&&!ht(u,d)&&(b=nn(u),Re(u,m,_,!0),u=null),d.patchFlag===-2&&(x=!1,d.dynamicChildren=null);const{type:v,ref:j,shapeFlag:O}=d;switch(v){case Bn:W(u,d,p,b);break;case ge:D(u,d,p,b);break;case Zn:u==null&&B(d,p,b,E);break;case _e:w(u,d,p,b,m,_,E,T,x);break;default:O&1?N(u,d,p,b,m,_,E,T,x):O&6?H(u,d,p,b,m,_,E,T,x):(O&64||O&128)&&v.process(u,d,p,b,m,_,E,T,x,Rt)}j!=null&&m&&vn(j,u&&u.ref,_,d||u,!d)},W=(u,d,p,b)=>{if(u==null)s(d.el=l(d.children),p,b);else{const m=d.el=u.el;d.children!==u.children&&a(m,d.children)}},D=(u,d,p,b)=>{u==null?s(d.el=c(d.children||""),p,b):d.el=u.el},B=(u,d,p,b)=>{[u.el,u.anchor]=C(u.children,d,p,b,u.el,u.anchor)},k=({el:u,anchor:d},p,b)=>{let m;for(;u&&u!==d;)m=g(u),s(u,p,b),u=m;s(d,p,b)},M=({el:u,anchor:d})=>{let p;for(;u&&u!==d;)p=g(u),r(u),u=p;r(d)},N=(u,d,p,b,m,_,E,T,x)=>{d.type==="svg"?E="svg":d.type==="math"&&(E="mathml"),u==null?q(d,p,b,m,_,E,T,x):S(u,d,m,_,E,T,x)},q=(u,d,p,b,m,_,E,T)=>{let x,v;const{props:j,shapeFlag:O,transition:L,dirs:$}=u;if(x=u.el=o(u.type,_,j&&j.is,j),O&8?f(x,u.children):O&16&&I(u.children,x,null,b,m,Xn(u,_),E,T),$&&ft(u,null,b,"created"),U(x,u,u.scopeId,E,b),j){for(const ee in j)ee!=="value"&&!jt(ee)&&i(x,ee,null,j[ee],_,b);"value"in j&&i(x,"value",null,j.value,_),(v=j.onVnodeBeforeMount)&&Ne(v,b,u)}$&&ft(u,null,b,"beforeMount");const G=Zl(m,L);G&&L.beforeEnter(x),s(x,d,p),((v=j&&j.onVnodeMounted)||G||$)&&de(()=>{v&&Ne(v,b,u),G&&L.enter(x),$&&ft(u,null,b,"mounted")},m)},U=(u,d,p,b,m)=>{if(p&&y(u,p),b)for(let _=0;_{for(let v=x;v{const T=d.el=u.el;let{patchFlag:x,dynamicChildren:v,dirs:j}=d;x|=u.patchFlag&16;const O=u.props||X,L=d.props||X;let $;if(p&&ut(p,!1),($=L.onVnodeBeforeUpdate)&&Ne($,p,d,u),j&&ft(d,u,p,"beforeUpdate"),p&&ut(p,!0),(O.innerHTML&&L.innerHTML==null||O.textContent&&L.textContent==null)&&f(T,""),v?R(u.dynamicChildren,v,T,p,b,Xn(d,m),_):E||Z(u,d,T,null,p,b,Xn(d,m),_,!1),x>0){if(x&16)P(T,O,L,p,m);else if(x&2&&O.class!==L.class&&i(T,"class",null,L.class,m),x&4&&i(T,"style",O.style,L.style,m),x&8){const G=d.dynamicProps;for(let ee=0;ee{$&&Ne($,p,d,u),j&&ft(d,u,p,"updated")},b)},R=(u,d,p,b,m,_,E)=>{for(let T=0;T{if(d!==p){if(d!==X)for(const _ in d)!jt(_)&&!(_ in p)&&i(u,_,d[_],null,m,b);for(const _ in p){if(jt(_))continue;const E=p[_],T=d[_];E!==T&&_!=="value"&&i(u,_,T,E,m,b)}"value"in p&&i(u,"value",d.value,p.value,m)}},w=(u,d,p,b,m,_,E,T,x)=>{const v=d.el=u?u.el:l(""),j=d.anchor=u?u.anchor:l("");let{patchFlag:O,dynamicChildren:L,slotScopeIds:$}=d;$&&(T=T?T.concat($):$),u==null?(s(v,p,b),s(j,p,b),I(d.children||[],p,j,m,_,E,T,x)):O>0&&O&64&&L&&u.dynamicChildren?(R(u.dynamicChildren,L,p,m,_,E,T),(d.key!=null||m&&d===m.subTree)&&Ks(u,d,!0)):Z(u,d,p,j,m,_,E,T,x)},H=(u,d,p,b,m,_,E,T,x)=>{d.slotScopeIds=T,u==null?d.shapeFlag&512?m.ctx.activate(d,p,b,E,x):le(d,p,b,m,_,E,x):Te(u,d,x)},le=(u,d,p,b,m,_,E)=>{const T=u.component=bc(u,b,m);if(Hn(u)&&(T.ctx.renderer=Rt),vc(T,!1,E),T.asyncDep){if(m&&m.registerDep(T,ne,E),!u.el){const x=T.subTree=me(ge);D(null,x,d,p)}}else ne(T,u,d,p,m,_,E)},Te=(u,d,p)=>{const b=d.component=u.component;if(fc(u,d,p))if(b.asyncDep&&!b.asyncResolved){K(b,d,p);return}else b.next=d,b.update();else d.el=u.el,b.vnode=d},ne=(u,d,p,b,m,_,E)=>{const T=()=>{if(u.isMounted){let{next:O,bu:L,u:$,parent:G,vnode:ee}=u;{const Fe=zi(u);if(Fe){O&&(O.el=ee.el,K(u,O,E)),Fe.asyncDep.then(()=>{u.isUnmounted||T()});return}}let Y=O,be;ut(u,!1),O?(O.el=ee.el,K(u,O,E)):O=ee,L&&dn(L),(be=O.props&&O.props.onVnodeBeforeUpdate)&&Ne(be,G,O,ee),ut(u,!0);const ye=dr(u),Ie=u.subTree;u.subTree=ye,A(Ie,ye,h(Ie.el),nn(Ie),u,m,_),O.el=ye.el,Y===null&&uc(u,ye.el),$&&de($,m),(be=O.props&&O.props.onVnodeUpdated)&&de(()=>Ne(be,G,O,ee),m)}else{let O;const{el:L,props:$}=d,{bm:G,m:ee,parent:Y,root:be,type:ye}=u,Ie=xt(d);ut(u,!1),G&&dn(G),!Ie&&(O=$&&$.onVnodeBeforeMount)&&Ne(O,Y,d),ut(u,!0);{be.ce&&be.ce._injectChildStyle(ye);const Fe=u.subTree=dr(u);A(null,Fe,p,b,u,m,_),d.el=Fe.el}if(ee&&de(ee,m),!Ie&&(O=$&&$.onVnodeMounted)){const Fe=d;de(()=>Ne(O,Y,Fe),m)}(d.shapeFlag&256||Y&&xt(Y.vnode)&&Y.vnode.shapeFlag&256)&&u.a&&de(u.a,m),u.isMounted=!0,d=p=b=null}};u.scope.on();const x=u.effect=new Qr(T);u.scope.off();const v=u.update=x.run.bind(x),j=u.job=x.runIfDirty.bind(x);j.i=u,j.id=u.uid,x.scheduler=()=>js(j),ut(u,!0),v()},K=(u,d,p)=>{d.component=u;const b=u.vnode.props;u.vnode=d,u.next=null,Gl(u,d.props,b,p),Yl(u,d.children,p),it(),er(u),ot()},Z=(u,d,p,b,m,_,E,T,x=!1)=>{const v=u&&u.children,j=u?u.shapeFlag:0,O=d.children,{patchFlag:L,shapeFlag:$}=d;if(L>0){if(L&128){tn(v,O,p,b,m,_,E,T,x);return}else if(L&256){lt(v,O,p,b,m,_,E,T,x);return}}$&8?(j&16&&Pt(v,m,_),O!==v&&f(p,O)):j&16?$&16?tn(v,O,p,b,m,_,E,T,x):Pt(v,m,_,!0):(j&8&&f(p,""),$&16&&I(O,p,b,m,_,E,T,x))},lt=(u,d,p,b,m,_,E,T,x)=>{u=u||St,d=d||St;const v=u.length,j=d.length,O=Math.min(v,j);let L;for(L=0;Lj?Pt(u,m,_,!0,!1,O):I(d,p,b,m,_,E,T,x,O)},tn=(u,d,p,b,m,_,E,T,x)=>{let v=0;const j=d.length;let O=u.length-1,L=j-1;for(;v<=O&&v<=L;){const $=u[v],G=d[v]=x?Xe(d[v]):He(d[v]);if(ht($,G))A($,G,p,null,m,_,E,T,x);else break;v++}for(;v<=O&&v<=L;){const $=u[O],G=d[L]=x?Xe(d[L]):He(d[L]);if(ht($,G))A($,G,p,null,m,_,E,T,x);else break;O--,L--}if(v>O){if(v<=L){const $=L+1,G=$L)for(;v<=O;)Re(u[v],m,_,!0),v++;else{const $=v,G=v,ee=new Map;for(v=G;v<=L;v++){const ve=d[v]=x?Xe(d[v]):He(d[v]);ve.key!=null&&ee.set(ve.key,v)}let Y,be=0;const ye=L-G+1;let Ie=!1,Fe=0;const It=new Array(ye);for(v=0;v=ye){Re(ve,m,_,!0);continue}let Le;if(ve.key!=null)Le=ee.get(ve.key);else for(Y=G;Y<=L;Y++)if(It[Y-G]===0&&ht(ve,d[Y])){Le=Y;break}Le===void 0?Re(ve,m,_,!0):(It[Le-G]=v+1,Le>=Fe?Fe=Le:Ie=!0,A(ve,d[Le],p,null,m,_,E,T,x),be++)}const qs=Ie?ec(It):St;for(Y=qs.length-1,v=ye-1;v>=0;v--){const ve=G+v,Le=d[ve],zs=ve+1{const{el:_,type:E,transition:T,children:x,shapeFlag:v}=u;if(v&6){ct(u.component.subTree,d,p,b);return}if(v&128){u.suspense.move(d,p,b);return}if(v&64){E.move(u,d,p,Rt);return}if(E===_e){s(_,d,p);for(let O=0;OT.enter(_),m);else{const{leave:O,delayLeave:L,afterLeave:$}=T,G=()=>s(_,d,p),ee=()=>{O(_,()=>{G(),$&&$()})};L?L(_,G,ee):ee()}else s(_,d,p)},Re=(u,d,p,b=!1,m=!1)=>{const{type:_,props:E,ref:T,children:x,dynamicChildren:v,shapeFlag:j,patchFlag:O,dirs:L,cacheIndex:$}=u;if(O===-2&&(m=!1),T!=null&&vn(T,null,p,u,!0),$!=null&&(d.renderCache[$]=void 0),j&256){d.ctx.deactivate(u);return}const G=j&1&&L,ee=!xt(u);let Y;if(ee&&(Y=E&&E.onVnodeBeforeUnmount)&&Ne(Y,d,u),j&6)Eo(u.component,p,b);else{if(j&128){u.suspense.unmount(p,b);return}G&&ft(u,null,d,"beforeUnmount"),j&64?u.type.remove(u,d,p,Rt,b):v&&!v.hasOnce&&(_!==_e||O>0&&O&64)?Pt(v,d,p,!1,!0):(_===_e&&O&384||!m&&j&16)&&Pt(x,d,p),b&&Gs(u)}(ee&&(Y=E&&E.onVnodeUnmounted)||G)&&de(()=>{Y&&Ne(Y,d,u),G&&ft(u,null,d,"unmounted")},p)},Gs=u=>{const{type:d,el:p,anchor:b,transition:m}=u;if(d===_e){To(p,b);return}if(d===Zn){M(u);return}const _=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(u.shapeFlag&1&&m&&!m.persisted){const{leave:E,delayLeave:T}=m,x=()=>E(p,_);T?T(u.el,_,x):x()}else _()},To=(u,d)=>{let p;for(;u!==d;)p=g(u),r(u),u=p;r(d)},Eo=(u,d,p)=>{const{bum:b,scope:m,job:_,subTree:E,um:T,m:x,a:v}=u;ar(x),ar(v),b&&dn(b),m.stop(),_&&(_.flags|=8,Re(E,u,d,p)),T&&de(T,d),de(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Pt=(u,d,p,b=!1,m=!1,_=0)=>{for(let E=_;E{if(u.shapeFlag&6)return nn(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const d=g(u.anchor||u.el),p=d&&d[vi];return p?g(p):d};let Un=!1;const Js=(u,d,p)=>{u==null?d._vnode&&Re(d._vnode,null,null,!0):A(d._vnode||null,u,d,null,null,null,p),d._vnode=u,Un||(Un=!0,er(),yi(),Un=!1)},Rt={p:A,um:Re,m:ct,r:Gs,mt:le,mc:I,pc:Z,pbc:R,n:nn,o:e};return{render:Js,hydrate:void 0,createApp:Kl(Js)}}function Xn({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 ut({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ks(e,t,n=!1){const s=e.children,r=t.children;if(F(s)&&F(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function zi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zi(t)}function ar(e){if(e)for(let t=0;tTt(tc);function sc(e,t){return Ws(e,null,t)}function nt(e,t,n){return Ws(e,t,n)}function Ws(e,t,n=X){const{immediate:s,deep:r,flush:i,once:o}=n,l=oe({},n),c=t&&s||!t&&i!=="post";let a;if(Yt){if(i==="sync"){const y=nc();a=y.__watcherHandles||(y.__watcherHandles=[])}else if(!c){const y=()=>{};return y.stop=Ee,y.resume=Ee,y.pause=Ee,y}}const f=ce;l.call=(y,C,A)=>Pe(y,f,C,A);let h=!1;i==="post"?l.scheduler=y=>{de(y,f&&f.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(y,C)=>{C?y():js(y)}),l.augmentJob=y=>{t&&(y.flags|=4),h&&(y.flags|=2,f&&(y.id=f.uid,y.i=f))};const g=_l(e,t,l);return Yt&&(a?a.push(g):c&&g()),g}function rc(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?Yi(s,e):()=>s[e]:e.bind(s,s);let i;V(t)?i=t:(i=t.handler,n=t);const o=en(this),l=Ws(r,i.bind(s),n);return o(),l}function Yi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xe(t)}Modifiers`]||e[`${rt(t)}Modifiers`];function oc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let r=n;const i=t.startsWith("update:"),o=i&&ic(s,t.slice(7));o&&(o.trim&&(r=n.map(f=>se(f)?f.trim():f)),o.number&&(r=n.map(os)));let l,c=s[l=an(t)]||s[l=an(xe(t))];!c&&i&&(c=s[l=an(rt(t))]),c&&Pe(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Pe(a,e,6,r)}}function Qi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!V(e)){const c=a=>{const f=Qi(a,t,!0);f&&(l=!0,oe(o,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(Q(e)&&s.set(e,null),null):(F(i)?i.forEach(c=>o[c]=null):oe(o,i),Q(e)&&s.set(e,o),o)}function kn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,rt(t))||z(e,t))}function dr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:a,renderCache:f,props:h,data:g,setupState:y,ctx:C,inheritAttrs:A}=e,W=bn(e);let D,B;try{if(n.shapeFlag&4){const M=r||s,N=M;D=He(a.call(N,M,f,h,y,g,C)),B=l}else{const M=t;D=He(M.length>1?M(h,{attrs:l,slots:o,emit:c}):M(h,null)),B=t.props?l:lc(l)}}catch(M){Bt.length=0,Dn(M,e,1),D=me(ge)}let k=D;if(B&&A!==!1){const M=Object.keys(B),{shapeFlag:N}=k;M.length&&N&7&&(i&&M.some(Ts)&&(B=cc(B,i)),k=st(k,B,!1,!0))}return n.dirs&&(k=st(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&yt(k,n.transition),D=k,bn(W),D}const lc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},cc=(e,t)=>{const n={};for(const s in e)(!Ts(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function fc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?hr(s,o,a):!!o;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function ac(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):Sl(e)}const _e=Symbol.for("v-fgt"),Bn=Symbol.for("v-txt"),ge=Symbol.for("v-cmt"),Zn=Symbol.for("v-stc"),Bt=[];let Se=null;function ms(e=!1){Bt.push(Se=e?null:[])}function dc(){Bt.pop(),Se=Bt[Bt.length-1]||null}let qt=1;function pr(e,t=!1){qt+=e,e<0&&Se&&t&&(Se.hasOnce=!0)}function Zi(e){return e.dynamicChildren=qt>0?Se||St:null,dc(),qt>0&&Se&&Se.push(e),e}function Xf(e,t,n,s,r,i){return Zi(to(e,t,n,s,r,i,!0))}function ys(e,t,n,s,r){return Zi(me(e,t,n,s,r,!0))}function zt(e){return e?e.__v_isVNode===!0:!1}function ht(e,t){return e.type===t.type&&e.key===t.key}const eo=({key:e})=>e??null,pn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?se(e)||re(e)||V(e)?{i:ie,r:e,k:t,f:!!n}:e:null);function to(e,t=null,n=null,s=0,r=null,i=e===_e?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&eo(t),ref:t&&pn(t),scopeId:bi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ie};return l?(Us(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=se(n)?8:16),qt>0&&!o&&Se&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Se.push(c),c}const me=hc;function hc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Li)&&(e=ge),zt(e)){const l=st(e,t,!0);return n&&Us(l,n),qt>0&&!i&&Se&&(l.shapeFlag&6?Se[Se.indexOf(e)]=l:Se.push(l)),l.patchFlag=-2,l}if(xc(e)&&(e=e.__vccOpts),t){t=pc(t);let{class:l,style:c}=t;l&&!se(l)&&(t.class=Rn(l)),Q(c)&&(Ls(c)&&!F(c)&&(c=oe({},c)),t.style=Pn(c))}const o=se(e)?1:Xi(e)?128:Si(e)?64:Q(e)?4:V(e)?2:0;return to(e,t,n,s,r,o,i,!0)}function pc(e){return e?Ls(e)||Bi(e)?oe({},e):e:null}function st(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,a=t?mc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&eo(a),ref:t&&t.ref?n&&i?F(i)?i.concat(pn(t)):[i,pn(t)]:pn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&st(e.ssContent),ssFallback:e.ssFallback&&st(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&yt(f,c.clone(f)),f}function gc(e=" ",t=0){return me(Bn,null,e,t)}function Zf(e="",t=!1){return t?(ms(),ys(ge,null,e)):me(ge,null,e)}function He(e){return e==null||typeof e=="boolean"?me(ge):F(e)?me(_e,null,e.slice()):zt(e)?Xe(e):me(Bn,null,String(e))}function Xe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:st(e)}function Us(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(F(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Us(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Bi(t)?t._ctx=ie:r===3&&ie&&(ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:ie},n=32):(t=String(t),s&64?(n=16,t=[gc(t)]):n=8);e.children=t,e.shapeFlag|=n}function mc(...e){const t={};for(let n=0;nce||ie;let wn,_s;{const e=On(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};wn=t("__VUE_INSTANCE_SETTERS__",n=>ce=n),_s=t("__VUE_SSR_SETTERS__",n=>Yt=n)}const en=e=>{const t=ce;return wn(e),e.scope.on(),()=>{e.scope.off(),wn(t)}},gr=()=>{ce&&ce.scope.off(),wn(null)};function no(e){return e.vnode.shapeFlag&4}let Yt=!1;function vc(e,t=!1,n=!1){t&&_s(t);const{props:s,children:r}=e.vnode,i=no(e);Ul(e,s,i,t),zl(e,r,n);const o=i?Sc(e,t):void 0;return t&&_s(!1),o}function Sc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Dl);const{setup:s}=n;if(s){it();const r=e.setupContext=s.length>1?ro(e):null,i=en(e),o=Zt(s,e,0,[e.props,r]),l=$r(o);if(ot(),i(),(l||e.sp)&&!xt(e)&&Oi(e),l){if(o.then(gr,gr),t)return o.then(c=>{mr(e,c)}).catch(c=>{Dn(c,e,0)});e.asyncDep=o}else mr(e,o)}else so(e)}function mr(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Q(t)&&(e.setupState=hi(t)),so(e)}function so(e,t,n){const s=e.type;e.render||(e.render=s.render||Ee);{const r=en(e);it();try{jl(e)}finally{ot(),r()}}}const wc={get(e,t){return fe(e,"get",""),e[t]}};function ro(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,wc),slots:e.slots,emit:e.emit,expose:t}}function Kn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hi(Ns(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kt)return kt[n](e)},has(t,n){return n in t||n in kt}})):e.proxy}function Cc(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function xc(e){return V(e)&&"__vccOpts"in e}const Me=(e,t)=>ml(e,t,Yt);function Tc(e,t,n){const s=arguments.length;return s===2?Q(t)&&!F(t)?zt(t)?me(e,null,[t]):me(e,t):me(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&zt(n)&&(n=[n]),me(e,t,n))}const Ec="3.5.13",eu=Ee;/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let bs;const yr=typeof window<"u"&&window.trustedTypes;if(yr)try{bs=yr.createPolicy("vue",{createHTML:e=>e})}catch{}const io=bs?e=>bs.createHTML(e):e=>e,Ac="http://www.w3.org/2000/svg",Mc="http://www.w3.org/1998/Math/MathML",Be=typeof document<"u"?document:null,_r=Be&&Be.createElement("template"),Oc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Be.createElementNS(Ac,e):t==="mathml"?Be.createElementNS(Mc,e):n?Be.createElement(e,{is:n}):Be.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Be.createTextNode(e),createComment:e=>Be.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Be.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{_r.innerHTML=io(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=_r.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Je="transition",Lt="animation",At=Symbol("_vtc"),oo={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},lo=oe({},Ti,oo),Pc=e=>(e.displayName="Transition",e.props=lo,e),tu=Pc((e,{slots:t})=>Tc(Tl,co(e),t)),at=(e,t=[])=>{F(e)?e.forEach(n=>n(...t)):e&&e(...t)},br=e=>e?F(e)?e.some(t=>t.length>1):e.length>1:!1;function co(e){const t={};for(const w in e)w in oo||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:a=o,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,C=Rc(r),A=C&&C[0],W=C&&C[1],{onBeforeEnter:D,onEnter:B,onEnterCancelled:k,onLeave:M,onLeaveCancelled:N,onBeforeAppear:q=D,onAppear:U=B,onAppearCancelled:I=k}=t,S=(w,H,le,Te)=>{w._enterCancelled=Te,qe(w,H?f:l),qe(w,H?a:o),le&&le()},R=(w,H)=>{w._isLeaving=!1,qe(w,h),qe(w,y),qe(w,g),H&&H()},P=w=>(H,le)=>{const Te=w?U:B,ne=()=>S(H,w,le);at(Te,[H,ne]),vr(()=>{qe(H,w?c:i),De(H,w?f:l),br(Te)||Sr(H,s,A,ne)})};return oe(t,{onBeforeEnter(w){at(D,[w]),De(w,i),De(w,o)},onBeforeAppear(w){at(q,[w]),De(w,c),De(w,a)},onEnter:P(!1),onAppear:P(!0),onLeave(w,H){w._isLeaving=!0;const le=()=>R(w,H);De(w,h),w._enterCancelled?(De(w,g),vs()):(vs(),De(w,g)),vr(()=>{w._isLeaving&&(qe(w,h),De(w,y),br(M)||Sr(w,s,W,le))}),at(M,[w,le])},onEnterCancelled(w){S(w,!1,void 0,!0),at(k,[w])},onAppearCancelled(w){S(w,!0,void 0,!0),at(I,[w])},onLeaveCancelled(w){R(w),at(N,[w])}})}function Rc(e){if(e==null)return null;if(Q(e))return[es(e.enter),es(e.leave)];{const t=es(e);return[t,t]}}function es(e){return Io(e)}function De(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[At]||(e[At]=new Set)).add(t)}function qe(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[At];n&&(n.delete(t),n.size||(e[At]=void 0))}function vr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ic=0;function Sr(e,t,n,s){const r=e._endId=++Ic,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=fo(e,t);if(!o)return s();const a=o+"end";let f=0;const h=()=>{e.removeEventListener(a,g),i()},g=y=>{y.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[C]||"").split(", "),r=s(`${Je}Delay`),i=s(`${Je}Duration`),o=wr(r,i),l=s(`${Lt}Delay`),c=s(`${Lt}Duration`),a=wr(l,c);let f=null,h=0,g=0;t===Je?o>0&&(f=Je,h=o,g=i.length):t===Lt?a>0&&(f=Lt,h=a,g=c.length):(h=Math.max(o,a),f=h>0?o>a?Je:Lt:null,g=f?f===Je?i.length:c.length:0);const y=f===Je&&/\b(transform|all)(,|$)/.test(s(`${Je}Property`).toString());return{type:f,timeout:h,propCount:g,hasTransform:y}}function wr(e,t){for(;e.lengthCr(n)+Cr(e[s])))}function Cr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vs(){return document.body.offsetHeight}function Fc(e,t,n){const s=e[At];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cn=Symbol("_vod"),uo=Symbol("_vsh"),nu={beforeMount(e,{value:t},{transition:n}){e[Cn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Nt(e,!0),s.enter(e)):s.leave(e,()=>{Nt(e,!1)}):Nt(e,t))},beforeUnmount(e,{value:t}){Nt(e,t)}};function Nt(e,t){e.style.display=t?e[Cn]:"none",e[uo]=!t}const Lc=Symbol(""),Nc=/(^|;)\s*display\s*:/;function Dc(e,t,n){const s=e.style,r=se(n);let i=!1;if(n&&!r){if(t)if(se(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&gn(s,l,"")}else for(const o in t)n[o]==null&&gn(s,o,"");for(const o in n)o==="display"&&(i=!0),gn(s,o,n[o])}else if(r){if(t!==n){const o=s[Lc];o&&(n+=";"+o),s.cssText=n,i=Nc.test(n)}}else t&&e.removeAttribute("style");Cn in e&&(e[Cn]=i?s.display:"",e[uo]&&(s.display="none"))}const xr=/\s*!important$/;function gn(e,t,n){if(F(n))n.forEach(s=>gn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=jc(e,t);xr.test(n)?e.setProperty(rt(s),n.replace(xr,""),"important"):e[s]=n}}const Tr=["Webkit","Moz","ms"],ts={};function jc(e,t){const n=ts[t];if(n)return n;let s=xe(t);if(s!=="filter"&&s in e)return ts[t]=s;s=Mn(s);for(let r=0;rns||(kc.then(()=>ns=0),ns=Date.now());function Kc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Pe(Wc(s,n.value),t,5,[s])};return n.value=e,n.attached=Bc(),n}function Wc(e,t){if(F(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Rr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Uc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Fc(e,s,o):t==="style"?Dc(e,n,s):Tn(t)?Ts(t)||Vc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gc(e,t,s,o))?(Mr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ar(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!se(s))?Mr(e,xe(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ar(e,t,s,o))};function Gc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rr(t)&&V(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rr(t)&&se(n)?!1:t in e}const ao=new WeakMap,ho=new WeakMap,xn=Symbol("_moveCb"),Ir=Symbol("_enterCb"),Jc=e=>(delete e.props.mode,e),qc=Jc({name:"TransitionGroup",props:oe({},lo,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ot(),s=xi();let r,i;return Ri(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Xc(r[0].el,n.vnode.el,o))return;r.forEach(zc),r.forEach(Yc);const l=r.filter(Qc);vs(),l.forEach(c=>{const a=c.el,f=a.style;De(a,o),f.transform=f.webkitTransform=f.transitionDuration="";const h=a[xn]=g=>{g&&g.target!==a||(!g||/transform$/.test(g.propertyName))&&(a.removeEventListener("transitionend",h),a[xn]=null,qe(a,o))};a.addEventListener("transitionend",h)})}),()=>{const o=J(e),l=co(o);let c=o.tag||_e;if(r=[],i)for(let a=0;a{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=fo(s);return i.removeChild(s),o}const Mt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?n=>dn(t,n):t};function Zc(e){e.target.composing=!0}function Fr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ue=Symbol("_assign"),ru={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Ue]=Mt(r);const i=s||r.props&&r.props.type==="number";Ze(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=os(l)),e[Ue](l)}),n&&Ze(e,"change",()=>{e.value=e.value.trim()}),t||(Ze(e,"compositionstart",Zc),Ze(e,"compositionend",Fr),Ze(e,"change",Fr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Ue]=Mt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?os(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},iu={deep:!0,created(e,t,n){e[Ue]=Mt(n),Ze(e,"change",()=>{const s=e._modelValue,r=po(e),i=e.checked,o=e[Ue];if(F(s)){const l=Ur(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const a=[...s];a.splice(l,1),o(a)}}else if(En(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(go(e,i))})},mounted:Lr,beforeUpdate(e,t,n){e[Ue]=Mt(n),Lr(e,t,n)}};function Lr(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(F(t))r=Ur(t,s.props.value)>-1;else if(En(t))r=t.has(s.props.value);else{if(t===n)return;r=Et(t,go(e,!0))}e.checked!==r&&(e.checked=r)}const ou={created(e,{value:t},n){e.checked=Et(t,n.props.value),e[Ue]=Mt(n),Ze(e,"change",()=>{e[Ue](po(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ue]=Mt(s),t!==n&&(e.checked=Et(t,s.props.value))}};function po(e){return"_value"in e?e._value:e.value}function go(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ef=["ctrl","shift","alt","meta"],tf={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)=>ef.some(n=>e[`${n}Key`]&&!t.includes(n))},lu=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=rt(r.key);if(t.some(o=>o===i||nf[o]===i))return e(r)})},sf=oe({patchProp:Uc},Oc);let Nr;function mo(){return Nr||(Nr=Ql(sf))}const fu=(...e)=>{mo().render(...e)},uu=(...e)=>{const t=mo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=of(s);if(!r)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,rf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function rf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function of(e){return se(e)?document.querySelector(e):e}/*! - * pinia v2.3.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let yo;const Wn=e=>yo=e,_o=Symbol();function Ss(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Kt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Kt||(Kt={}));function au(){const e=zr(!0),t=e.run(()=>$e({}));let n=[],s=[];const r=Ns({install(i){Wn(r),r._a=i,i.provide(_o,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const bo=()=>{};function Dr(e,t,n,s=bo){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&Ms()&&Yr(r),r}function bt(e,...t){e.slice().forEach(n=>{n(...t)})}const lf=e=>e(),jr=Symbol(),ss=Symbol();function ws(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];Ss(r)&&Ss(s)&&e.hasOwnProperty(n)&&!re(s)&&!tt(s)?e[n]=ws(r,s):e[n]=s}return e}const cf=Symbol();function ff(e){return!Ss(e)||!e.hasOwnProperty(cf)}const{assign:ze}=Object;function uf(e){return!!(re(e)&&e.effect)}function af(e,t,n,s){const{state:r,actions:i,getters:o}=t,l=n.state.value[e];let c;function a(){l||(n.state.value[e]=r?r():{});const f=al(n.state.value[e]);return ze(f,i,Object.keys(o||{}).reduce((h,g)=>(h[g]=Ns(Me(()=>{Wn(n);const y=n._s.get(e);return o[g].call(y,y)})),h),{}))}return c=vo(e,a,t,n,s,!0),c}function vo(e,t,n={},s,r,i){let o;const l=ze({actions:{}},n),c={deep:!0};let a,f,h=[],g=[],y;const C=s.state.value[e];!i&&!C&&(s.state.value[e]={}),$e({});let A;function W(I){let S;a=f=!1,typeof I=="function"?(I(s.state.value[e]),S={type:Kt.patchFunction,storeId:e,events:y}):(ws(s.state.value[e],I),S={type:Kt.patchObject,payload:I,storeId:e,events:y});const R=A=Symbol();jn().then(()=>{A===R&&(a=!0)}),f=!0,bt(h,S,s.state.value[e])}const D=i?function(){const{state:S}=n,R=S?S():{};this.$patch(P=>{ze(P,R)})}:bo;function B(){o.stop(),h=[],g=[],s._s.delete(e)}const k=(I,S="")=>{if(jr in I)return I[ss]=S,I;const R=function(){Wn(s);const P=Array.from(arguments),w=[],H=[];function le(K){w.push(K)}function Te(K){H.push(K)}bt(g,{args:P,name:R[ss],store:N,after:le,onError:Te});let ne;try{ne=I.apply(this&&this.$id===e?this:N,P)}catch(K){throw bt(H,K),K}return ne instanceof Promise?ne.then(K=>(bt(w,K),K)).catch(K=>(bt(H,K),Promise.reject(K))):(bt(w,ne),ne)};return R[jr]=!0,R[ss]=S,R},M={_p:s,$id:e,$onAction:Dr.bind(null,g),$patch:W,$reset:D,$subscribe(I,S={}){const R=Dr(h,I,S.detached,()=>P()),P=o.run(()=>nt(()=>s.state.value[e],w=>{(S.flush==="sync"?f:a)&&I({storeId:e,type:Kt.direct,events:y},w)},ze({},c,S)));return R},$dispose:B},N=Ln(M);s._s.set(e,N);const U=(s._a&&s._a.runWithContext||lf)(()=>s._e.run(()=>(o=zr()).run(()=>t({action:k}))));for(const I in U){const S=U[I];if(re(S)&&!uf(S)||tt(S))i||(C&&ff(S)&&(re(S)?S.value=C[I]:ws(S,C[I])),s.state.value[e][I]=S);else if(typeof S=="function"){const R=k(S,I);U[I]=R,l.actions[I]=S}}return ze(N,U),ze(J(N),U),Object.defineProperty(N,"$state",{get:()=>s.state.value[e],set:I=>{W(S=>{ze(S,I)})}}),s._p.forEach(I=>{ze(N,o.run(()=>I({store:N,app:s._a,pinia:s,options:l})))}),C&&i&&n.hydrate&&n.hydrate(N.$state,C),a=!0,f=!0,N}/*! #__NO_SIDE_EFFECTS__ */function du(e,t,n){let s,r;const i=typeof t=="function";typeof e=="string"?(s=e,r=i?n:t):(r=e,s=e.id);function o(l,c){const a=ks();return l=l||(a?Tt(_o,null):null),l&&Wn(l),l=yo,l._s.has(s)||(i?vo(s,t,r,l):af(s,r,l)),l._s.get(s)}return o.$id=s,o}function df(e){return Ms()?(Yr(e),!0):!1}const rs=new WeakMap,hf=(...e)=>{var t;const n=e[0],s=(t=Ot())==null?void 0:t.proxy;if(s==null&&!ks())throw new Error("injectLocal must be called in setup");return s&&rs.has(s)&&n in rs.get(s)?rs.get(s)[n]:Tt(...e)},pf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gf=Object.prototype.toString,mf=e=>gf.call(e)==="[object Object]",yf=()=>{};function _f(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}const So=e=>e();function bf(e=So){const t=$e(!0);function n(){t.value=!1}function s(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:Nn(t),pause:n,resume:s,eventFilter:r}}function Hr(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function vf(e){return Ot()}function is(e){return Array.isArray(e)?e:[e]}function Sf(...e){if(e.length!==1)return pl(...e);const t=e[0];return typeof t=="function"?Nn(ul(()=>({get:t,set:yf}))):$e(t)}function wf(e,t,n={}){const{eventFilter:s=So,...r}=n;return nt(e,_f(s,t),r)}function Cf(e,t,n={}){const{eventFilter:s,...r}=n,{eventFilter:i,pause:o,resume:l,isActive:c}=bf(s);return{stop:wf(e,t,{...r,eventFilter:i}),pause:o,resume:l,isActive:c}}function wo(e,t=!0,n){vf()?$n(e,n):t?e():jn(e)}function hu(e=!1,t={}){const{truthyValue:n=!0,falsyValue:s=!1}=t,r=re(e),i=$e(e);function o(l){if(arguments.length)return i.value=l,i.value;{const c=Ve(n);return i.value=i.value===c?Ve(s):c,i.value}}return r?o:[i,o]}function xf(e,t,n){return nt(e,t,{...n,immediate:!0})}const Qt=pf?window:void 0;function Co(e){var t;const n=Ve(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Cs(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},s=(l,c,a,f)=>(l.addEventListener(c,a,f),()=>l.removeEventListener(c,a,f)),r=Me(()=>{const l=is(Ve(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=xf(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(a=>Co(a)))!=null?c:[Qt].filter(a=>a!=null),is(Ve(r.value?e[1]:e[0])),is(Ds(r.value?e[2]:e[1])),Ve(r.value?e[3]:e[2])]},([l,c,a,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(a!=null&&a.length))return;const h=mf(f)?{...f}:f;t.push(...l.flatMap(g=>c.flatMap(y=>a.map(C=>s(g,y,C,h)))))},{flush:"post"}),o=()=>{i(),n()};return df(n),o}function Tf(){const e=$e(!1),t=Ot();return t&&$n(()=>{e.value=!0},t),e}function Ef(e){const t=Tf();return Me(()=>(t.value,!!e()))}const Af=Symbol("vueuse-ssr-width");function Mf(){const e=ks()?hf(Af,null):null;return typeof e=="number"?e:void 0}function Of(e,t={}){const{window:n=Qt,ssrWidth:s=Mf()}=t,r=Ef(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=$e(typeof s=="number"),o=ai(),l=$e(!1),c=a=>{l.value=a.matches};return sc(()=>{if(i.value){i.value=!r.value;const a=Ve(e).split(",");l.value=a.some(f=>{const h=f.includes("not all"),g=f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let C=!!(g||y);return g&&C&&(C=s>=Hr(g[1])),y&&C&&(C=s<=Hr(y[1])),h?!C:C});return}r.value&&(o.value=n.matchMedia(Ve(e)),l.value=o.value.matches)}),Cs(o,"change",c,{passive:!0}),Me(()=>l.value)}const fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},un="__vueuse_ssr_handlers__",Pf=Rf();function Rf(){return un in fn||(fn[un]=fn[un]||{}),fn[un]}function xo(e,t){return Pf[e]||t}function If(e){return Of("(prefers-color-scheme: dark)",e)}function Ff(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Lf={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Vr="vueuse-storage";function Nf(e,t,n,s={}){var r;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:a=!1,shallow:f,window:h=Qt,eventFilter:g,onError:y=P=>{console.error(P)},initOnMounted:C}=s,A=(f?ai:$e)(typeof t=="function"?t():t),W=Me(()=>Ve(e));if(!n)try{n=xo("getDefaultStorage",()=>{var P;return(P=Qt)==null?void 0:P.localStorage})()}catch(P){y(P)}if(!n)return A;const D=Ve(t),B=Ff(D),k=(r=s.serializer)!=null?r:Lf[B],{pause:M,resume:N}=Cf(A,()=>U(A.value),{flush:i,deep:o,eventFilter:g});nt(W,()=>S(),{flush:i}),h&&l&&wo(()=>{n instanceof Storage?Cs(h,"storage",S,{passive:!0}):Cs(h,Vr,R),C&&S()}),C||S();function q(P,w){if(h){const H={key:W.value,oldValue:P,newValue:w,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(Vr,{detail:H}))}}function U(P){try{const w=n.getItem(W.value);if(P==null)q(w,null),n.removeItem(W.value);else{const H=k.write(P);w!==H&&(n.setItem(W.value,H),q(w,H))}}catch(w){y(w)}}function I(P){const w=P?P.newValue:n.getItem(W.value);if(w==null)return c&&D!=null&&n.setItem(W.value,k.write(D)),D;if(!P&&a){const H=k.read(w);return typeof a=="function"?a(H,D):B==="object"&&!Array.isArray(H)?{...D,...H}:H}else return typeof w!="string"?w:k.read(w)}function S(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){A.value=D;return}if(!(P&&P.key!==W.value)){M();try{(P==null?void 0:P.newValue)!==k.write(A.value)&&(A.value=I(P))}catch(w){y(w)}finally{P?jn(N):N()}}}}function R(P){S(P.detail)}return A}const Df="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function jf(e={}){const{selector:t="html",attribute:n="class",initialValue:s="auto",window:r=Qt,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:a,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},g=If({window:r}),y=Me(()=>g.value?"dark":"light"),C=c||(o==null?Sf(s):Nf(o,s,i,{window:r,listenToStorageChanges:l})),A=Me(()=>C.value==="auto"?y.value:C.value),W=xo("updateHTMLAttrs",(M,N,q)=>{const U=typeof M=="string"?r==null?void 0:r.document.querySelector(M):Co(M);if(!U)return;const I=new Set,S=new Set;let R=null;if(N==="class"){const w=q.split(/\s/g);Object.values(h).flatMap(H=>(H||"").split(/\s/g)).filter(Boolean).forEach(H=>{w.includes(H)?I.add(H):S.add(H)})}else R={key:N,value:q};if(I.size===0&&S.size===0&&R===null)return;let P;f&&(P=r.document.createElement("style"),P.appendChild(document.createTextNode(Df)),r.document.head.appendChild(P));for(const w of I)U.classList.add(w);for(const w of S)U.classList.remove(w);R&&U.setAttribute(R.key,R.value),f&&(r.getComputedStyle(P).opacity,document.head.removeChild(P))});function D(M){var N;W(t,n,(N=h[M])!=null?N:M)}function B(M){e.onChanged?e.onChanged(M,D):D(M)}nt(A,B,{flush:"post",immediate:!0}),wo(()=>B(A.value));const k=Me({get(){return a?C.value:A.value},set(M){C.value=M}});return Object.assign(k,{store:C,system:y,state:A})}function pu(e={}){const{valueDark:t="dark",valueLight:n=""}=e,s=jf({...e,onChanged:(o,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,o==="dark",l,o):l(o)},modes:{dark:t,light:n}}),r=Me(()=>s.system.value);return Me({get(){return s.value==="dark"},set(o){const l=o?"dark":"light";r.value===l?s.value="auto":s.value=l}})}export{Bn as $,to as A,qf as B,Pn as C,Rn as D,mc as E,Yf as F,ys as G,wl as H,$f as I,Zf as J,Wf as K,gc as L,$o as M,Ee as N,_e as O,me as P,nu as Q,pl as R,Fi as S,tu as T,Qf as U,lu as V,Ii as W,Ln as X,El as Y,Ri as Z,st as _,F as a,ge as a0,kf as a1,Ol as a2,Al as a3,cu as a4,Jf as a5,Gf as a6,Ys as a7,Vf as a8,pc as a9,zt as aa,J as ab,iu as ac,al as ad,ou as ae,Tc as af,Kf as ag,Mn as ah,Pl as ai,$r as aj,ru as ak,zf as al,su as am,Ns as an,zr as ao,Br as ap,Uf as aq,an as ar,fu as as,uu as at,rt as au,ol as av,du as aw,pu as ax,hu as ay,au as az,Q as b,Me as c,se as d,Ms as e,sc as f,Ot as g,Nn as h,Tt as i,$n as j,ul as k,re as l,z as m,jn as n,Yr as o,eu as p,V as q,$e as r,ai as s,Wl as t,Ds as u,xe as v,nt as w,Bf as x,Xf as y,ms as z}; diff --git a/assets/vue-DDR9gto8.js b/assets/vue-DDR9gto8.js new file mode 100644 index 0000000..35f051a --- /dev/null +++ b/assets/vue-DDR9gto8.js @@ -0,0 +1,21 @@ +/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function xs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const X={},St=[],Ee=()=>{},Mo=()=>!1,Tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ts=e=>e.startsWith("onUpdate:"),oe=Object.assign,Es=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Oo=Object.prototype.hasOwnProperty,z=(e,t)=>Oo.call(e,t),F=Array.isArray,wt=e=>Xt(e)==="[object Map]",En=e=>Xt(e)==="[object Set]",Ys=e=>Xt(e)==="[object Date]",V=e=>typeof e=="function",se=e=>typeof e=="string",Oe=e=>typeof e=="symbol",Q=e=>e!==null&&typeof e=="object",$r=e=>(Q(e)||V(e))&&V(e.then)&&V(e.catch),kr=Object.prototype.toString,Xt=e=>kr.call(e),Po=e=>Xt(e).slice(8,-1),Br=e=>Xt(e)==="[object Object]",As=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vt=xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ro=/-(\w)/g,xe=An(e=>e.replace(Ro,(t,n)=>n?n.toUpperCase():"")),Io=/\B([A-Z])/g,rt=An(e=>e.replace(Io,"-$1").toLowerCase()),Mn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),an=An(e=>e?`on${Mn(e)}`:""),Ue=(e,t)=>!Object.is(e,t),dn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},os=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Fo=e=>{const t=se(e)?Number(e):NaN;return isNaN(t)?e:t};let Qs;const On=()=>Qs||(Qs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pn(e){if(F(e)){const t={};for(let n=0;n{if(n){const s=n.split(No);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Rn(e){let t="";if(se(e))t=e;else if(F(e))for(let n=0;nEt(n,t))}const Gr=e=>!!(e&&e.__v_isRef===!0),ko=e=>se(e)?e:e==null?"":F(e)||Q(e)&&(e.toString===kr||!V(e.toString))?Gr(e)?ko(e.value):JSON.stringify(e,Jr,2):String(e),Jr=(e,t)=>Gr(t)?Jr(e,t.value):wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Gn(s,i)+" =>"]=r,n),{})}:En(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Gn(n))}:Oe(t)?Gn(t):Q(t)&&!F(t)&&!Br(t)?String(t):t,Gn=(e,t="")=>{var n;return Oe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let he;class qr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=he,!t&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(kt){let t=kt;for(kt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$t;){let t=$t;for($t=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ti(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Rs(s),Bo(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ls(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ni(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ni(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gt))return;e.globalVersion=Gt;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ls(e)){e.flags&=-3;return}const n=te,s=Ae;te=e,Ae=!0;try{ei(e);const r=e.fn(e._value);(t.version===0||Ue(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{te=n,Ae=s,ti(e),e.flags&=-3}}function Rs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Bo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ae=!0;const si=[];function it(){si.push(Ae),Ae=!1}function ot(){const e=si.pop();Ae=e===void 0?!0:e}function Xs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=te;te=void 0;try{t()}finally{te=n}}}let Gt=0;class Ko{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class In{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!te||!Ae||te===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==te)n=this.activeLink=new Ko(te,this),te.deps?(n.prevDep=te.depsTail,te.depsTail.nextDep=n,te.depsTail=n):te.deps=te.depsTail=n,ri(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=te.depsTail,n.nextDep=void 0,te.depsTail.nextDep=n,te.depsTail=n,te.deps===n&&(te.deps=s)}return n}trigger(t){this.version++,Gt++,this.notify(t)}notify(t){Os();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ps()}}}function ri(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ri(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const mn=new WeakMap,pt=Symbol(""),cs=Symbol(""),Jt=Symbol("");function fe(e,t,n){if(Ae&&te){let s=mn.get(e);s||mn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new In),r.map=s,r.key=n),r.track()}}function Ke(e,t,n,s,r,i){const o=mn.get(e);if(!o){Gt++;return}const l=c=>{c&&c.trigger()};if(Os(),t==="clear")o.forEach(l);else{const c=F(e),a=c&&As(n);if(c&&n==="length"){const f=Number(s);o.forEach((h,g)=>{(g==="length"||g===Jt||!Oe(g)&&g>=f)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),a&&l(o.get(Jt)),t){case"add":c?a&&l(o.get("length")):(l(o.get(pt)),wt(e)&&l(o.get(cs)));break;case"delete":c||(l(o.get(pt)),wt(e)&&l(o.get(cs)));break;case"set":wt(e)&&l(o.get(pt));break}}Ps()}function Wo(e,t){const n=mn.get(e);return n&&n.get(t)}function _t(e){const t=J(e);return t===e?t:(fe(t,"iterate",Jt),Ce(e)?t:t.map(ue))}function Fn(e){return fe(e=J(e),"iterate",Jt),e}const Uo={__proto__:null,[Symbol.iterator](){return qn(this,Symbol.iterator,ue)},concat(...e){return _t(this).concat(...e.map(t=>F(t)?_t(t):t))},entries(){return qn(this,"entries",e=>(e[1]=ue(e[1]),e))},every(e,t){return ke(this,"every",e,t,void 0,arguments)},filter(e,t){return ke(this,"filter",e,t,n=>n.map(ue),arguments)},find(e,t){return ke(this,"find",e,t,ue,arguments)},findIndex(e,t){return ke(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ke(this,"findLast",e,t,ue,arguments)},findLastIndex(e,t){return ke(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ke(this,"forEach",e,t,void 0,arguments)},includes(...e){return zn(this,"includes",e)},indexOf(...e){return zn(this,"indexOf",e)},join(e){return _t(this).join(e)},lastIndexOf(...e){return zn(this,"lastIndexOf",e)},map(e,t){return ke(this,"map",e,t,void 0,arguments)},pop(){return Nt(this,"pop")},push(...e){return Nt(this,"push",e)},reduce(e,...t){return Zs(this,"reduce",e,t)},reduceRight(e,...t){return Zs(this,"reduceRight",e,t)},shift(){return Nt(this,"shift")},some(e,t){return ke(this,"some",e,t,void 0,arguments)},splice(...e){return Nt(this,"splice",e)},toReversed(){return _t(this).toReversed()},toSorted(e){return _t(this).toSorted(e)},toSpliced(...e){return _t(this).toSpliced(...e)},unshift(...e){return Nt(this,"unshift",e)},values(){return qn(this,"values",ue)}};function qn(e,t,n){const s=Fn(e),r=s[t]();return s!==e&&!Ce(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const Go=Array.prototype;function ke(e,t,n,s,r,i){const o=Fn(e),l=o!==e&&!Ce(e),c=o[t];if(c!==Go[t]){const h=c.apply(e,i);return l?ue(h):h}let a=n;o!==e&&(l?a=function(h,g){return n.call(this,ue(h),g,e)}:n.length>2&&(a=function(h,g){return n.call(this,h,g,e)}));const f=c.call(o,a,s);return l&&r?r(f):f}function Zs(e,t,n,s){const r=Fn(e);let i=n;return r!==e&&(Ce(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,ue(l),c,e)}),r[t](i,...s)}function zn(e,t,n){const s=J(e);fe(s,"iterate",Jt);const r=s[t](...n);return(r===-1||r===!1)&&Ls(n[0])?(n[0]=J(n[0]),s[t](...n)):r}function Nt(e,t,n=[]){it(),Os();const s=J(e)[t].apply(e,n);return Ps(),ot(),s}const Jo=xs("__proto__,__v_isRef,__isVue"),ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Oe));function qo(e){Oe(e)||(e=String(e));const t=J(this);return fe(t,"has",e),t.hasOwnProperty(e)}class oi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?rl:ui:i?fi:ci).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=F(t);if(!r){let c;if(o&&(c=Uo[n]))return c;if(n==="hasOwnProperty")return qo}const l=Reflect.get(t,n,re(t)?t:s);return(Oe(n)?ii.has(n):Jo(n))||(r||fe(t,"get",n),i)?l:re(l)?o&&As(n)?l:l.value:Q(l)?r?Nn(l):Ln(l):l}}class li extends oi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const c=mt(i);if(!Ce(s)&&!mt(s)&&(i=J(i),s=J(s)),!F(t)&&re(i)&&!re(s))return c?!1:(i.value=s,!0)}const o=F(t)&&As(n)?Number(n)e,sn=e=>Reflect.getPrototypeOf(e);function Zo(e,t,n){return function(...s){const r=this.__v_raw,i=J(r),o=wt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,a=r[e](...s),f=n?fs:t?us:ue;return!t&&fe(i,"iterate",c?cs:pt),{next(){const{value:h,done:g}=a.next();return g?{value:h,done:g}:{value:l?[f(h[0]),f(h[1])]:f(h),done:g}},[Symbol.iterator](){return this}}}}function rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function el(e,t){const n={get(r){const i=this.__v_raw,o=J(i),l=J(r);e||(Ue(r,l)&&fe(o,"get",r),fe(o,"get",l));const{has:c}=sn(o),a=t?fs:e?us:ue;if(c.call(o,r))return a(i.get(r));if(c.call(o,l))return a(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&fe(J(r),"iterate",pt),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=J(i),l=J(r);return e||(Ue(r,l)&&fe(o,"has",r),fe(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=J(l),a=t?fs:e?us:ue;return!e&&fe(c,"iterate",pt),l.forEach((f,h)=>r.call(i,a(f),a(h),o))}};return oe(n,e?{add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear")}:{add(r){!t&&!Ce(r)&&!mt(r)&&(r=J(r));const i=J(this);return sn(i).has.call(i,r)||(i.add(r),Ke(i,"add",r,r)),this},set(r,i){!t&&!Ce(i)&&!mt(i)&&(i=J(i));const o=J(this),{has:l,get:c}=sn(o);let a=l.call(o,r);a||(r=J(r),a=l.call(o,r));const f=c.call(o,r);return o.set(r,i),a?Ue(i,f)&&Ke(o,"set",r,i):Ke(o,"add",r,i),this},delete(r){const i=J(this),{has:o,get:l}=sn(i);let c=o.call(i,r);c||(r=J(r),c=o.call(i,r)),l&&l.call(i,r);const a=i.delete(r);return c&&Ke(i,"delete",r,void 0),a},clear(){const r=J(this),i=r.size!==0,o=r.clear();return i&&Ke(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Zo(r,e,t)}),n}function Is(e,t){const n=el(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(z(n,r)&&r in s?n:s,r,i)}const tl={get:Is(!1,!1)},nl={get:Is(!1,!0)},sl={get:Is(!0,!1)};const ci=new WeakMap,fi=new WeakMap,ui=new WeakMap,rl=new WeakMap;function il(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ol(e){return e.__v_skip||!Object.isExtensible(e)?0:il(Po(e))}function Ln(e){return mt(e)?e:Fs(e,!1,Yo,tl,ci)}function ll(e){return Fs(e,!1,Xo,nl,fi)}function Nn(e){return Fs(e,!0,Qo,sl,ui)}function Fs(e,t,n,s,r){if(!Q(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=ol(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function tt(e){return mt(e)?tt(e.__v_raw):!!(e&&e.__v_isReactive)}function mt(e){return!!(e&&e.__v_isReadonly)}function Ce(e){return!!(e&&e.__v_isShallow)}function Ls(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Ns(e){return!z(e,"__v_skip")&&Object.isExtensible(e)&&Kr(e,"__v_skip",!0),e}const ue=e=>Q(e)?Ln(e):e,us=e=>Q(e)?Nn(e):e;function re(e){return e?e.__v_isRef===!0:!1}function $e(e){return di(e,!1)}function ai(e){return di(e,!0)}function di(e,t){return re(e)?e:new cl(e,t)}class cl{constructor(t,n){this.dep=new In,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:J(t),this._value=n?t:ue(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ce(t)||mt(t);t=s?t:J(t),Ue(t,n)&&(this._rawValue=t,this._value=s?t:ue(t),this.dep.trigger())}}function Ds(e){return re(e)?e.value:e}function Ve(e){return V(e)?e():Ds(e)}const fl={get:(e,t,n)=>t==="__v_raw"?e:Ds(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return re(r)&&!re(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function hi(e){return tt(e)?e:new Proxy(e,fl)}class ul{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new In,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function al(e){return new ul(e)}function dl(e){const t=F(e)?new Array(e.length):{};for(const n in e)t[n]=pi(e,n);return t}class hl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Wo(J(this._object),this._key)}}class pl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function gl(e,t,n){return re(e)?e:V(e)?new pl(e):Q(e)&&arguments.length>1?pi(e,t,n):$e(e)}function pi(e,t,n){const s=e[t];return re(s)?s:new hl(e,t,n)}class ml{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new In(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&te!==this)return Zr(this,!0),!0}get value(){const t=this.dep.track();return ni(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function yl(e,t,n=!1){let s,r;return V(e)?s=e:(s=e.get,r=e.set),new ml(s,r,n)}const on={},yn=new WeakMap;let dt;function _l(e,t=!1,n=dt){if(n){let s=yn.get(n);s||yn.set(n,s=[]),s.push(e)}}function bl(e,t,n=X){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,a=M=>r?M:Ce(M)||r===!1||r===0?We(M,1):We(M);let f,h,g,y,C=!1,A=!1;if(re(e)?(h=()=>e.value,C=Ce(e)):tt(e)?(h=()=>a(e),C=!0):F(e)?(A=!0,C=e.some(M=>tt(M)||Ce(M)),h=()=>e.map(M=>{if(re(M))return M.value;if(tt(M))return a(M);if(V(M))return c?c(M,2):M()})):V(e)?t?h=c?()=>c(e,2):e:h=()=>{if(g){it();try{g()}finally{ot()}}const M=dt;dt=f;try{return c?c(e,3,[y]):e(y)}finally{dt=M}}:h=Ee,t&&r){const M=h,N=r===!0?1/0:r;h=()=>We(M(),N)}const W=Ms(),D=()=>{f.stop(),W&&W.active&&Es(W.effects,f)};if(i&&t){const M=t;t=(...N)=>{M(...N),D()}}let B=A?new Array(e.length).fill(on):on;const k=M=>{if(!(!(f.flags&1)||!f.dirty&&!M))if(t){const N=f.run();if(r||C||(A?N.some((q,U)=>Ue(q,B[U])):Ue(N,B))){g&&g();const q=dt;dt=f;try{const U=[N,B===on?void 0:A&&B[0]===on?[]:B,y];c?c(t,3,U):t(...U),B=N}finally{dt=q}}}else f.run()};return l&&l(k),f=new Qr(h),f.scheduler=o?()=>o(k,!1):k,y=M=>_l(M,!1,f),g=f.onStop=()=>{const M=yn.get(f);if(M){if(c)c(M,4);else for(const N of M)N();yn.delete(f)}},t?s?k(!0):B=f.run():o?o(k.bind(null,!0),!0):f.run(),D.pause=f.pause.bind(f),D.resume=f.resume.bind(f),D.stop=D,D}function We(e,t=1/0,n){if(t<=0||!Q(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,re(e))We(e.value,t,n);else if(F(e))for(let s=0;s{We(s,t,n)});else if(Br(e)){for(const s in e)We(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&We(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Zt(e,t,n,s){try{return s?e(...s):e()}catch(r){Dn(r,t,n)}}function Pe(e,t,n,s){if(V(e)){const r=Zt(e,t,n,s);return r&&$r(r)&&r.catch(i=>{Dn(i,t,n)}),r}if(F(e)){const r=[];for(let i=0;i>>1,r=pe[s],i=qt(r);i=qt(n)?pe.push(e):pe.splice(Sl(t),0,e),e.flags|=1,mi()}}function mi(){_n||(_n=gi.then(_i))}function wl(e){F(e)?Ct.push(...e):Qe&&e.id===-1?Qe.splice(vt+1,0,e):e.flags&1||(Ct.push(e),e.flags|=1),mi()}function er(e,t,n=je+1){for(;nqt(n)-qt(s));if(Ct.length=0,Qe){Qe.push(...t);return}for(Qe=t,vt=0;vte.id==null?e.flags&2?-1:1/0:e.id;function _i(e){try{for(je=0;je{s._d&&pr(-1);const i=bn(t);let o;try{o=e(...r)}finally{bn(i),s._d&&pr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function $f(e,t){if(ie===null)return e;const n=Kn(ie),s=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,Bt=e=>e&&(e.disabled||e.disabled===""),tr=e=>e&&(e.defer||e.defer===""),nr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,sr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,as=(e,t)=>{const n=e&&e.to;return se(n)?t?t(n):null:n},wi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,a){const{mc:f,pc:h,pbc:g,o:{insert:y,querySelector:C,createText:A,createComment:W}}=a,D=Bt(t.props);let{shapeFlag:B,children:k,dynamicChildren:M}=t;if(e==null){const N=t.el=A(""),q=t.anchor=A("");y(N,n,s),y(q,n,s);const U=(S,R)=>{B&16&&(r&&r.isCE&&(r.ce._teleportTarget=S),f(k,S,R,r,i,o,l,c))},I=()=>{const S=t.target=as(t.props,C),R=Ci(S,t,A,y);S&&(o!=="svg"&&nr(S)?o="svg":o!=="mathml"&&sr(S)&&(o="mathml"),D||(U(S,R),hn(t,!1)))};D&&(U(n,q),hn(t,!0)),tr(t.props)?de(()=>{I(),t.el.__isMounted=!0},i):I()}else{if(tr(t.props)&&!e.el.__isMounted){de(()=>{wi.process(e,t,n,s,r,i,o,l,c,a),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const N=t.anchor=e.anchor,q=t.target=e.target,U=t.targetAnchor=e.targetAnchor,I=Bt(e.props),S=I?n:q,R=I?N:U;if(o==="svg"||nr(q)?o="svg":(o==="mathml"||sr(q))&&(o="mathml"),M?(g(e.dynamicChildren,M,S,r,i,o,l),Ks(e,t,!0)):c||h(e,t,S,R,r,i,o,l,!1),D)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ln(t,n,N,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=as(t.props,C);P&&ln(t,P,null,a,0)}else I&&ln(t,q,U,a,1);hn(t,D)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:a,targetAnchor:f,target:h,props:g}=e;if(h&&(r(a),r(f)),i&&r(c),o&16){const y=i||!Bt(g);for(let C=0;C{e.isMounted=!0}),Ii(()=>{e.isUnmounting=!0}),e}const we=[Function,Array],Ti={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:we,onEnter:we,onAfterEnter:we,onEnterCancelled:we,onBeforeLeave:we,onLeave:we,onAfterLeave:we,onLeaveCancelled:we,onBeforeAppear:we,onAppear:we,onAfterAppear:we,onAppearCancelled:we},Ei=e=>{const t=e.subTree;return t.component?Ei(t.component):t},Tl={name:"BaseTransition",props:Ti,setup(e,{slots:t}){const n=Rt(),s=xi();return()=>{const r=t.default&&Hs(t.default(),!0);if(!r||!r.length)return;const i=Ai(r),o=J(e),{mode:l}=o;if(s.isLeaving)return Yn(i);const c=rr(i);if(!c)return Yn(i);let a=zt(c,o,s,n,h=>a=h);c.type!==ge&&yt(c,a);let f=n.subTree&&rr(n.subTree);if(f&&f.type!==ge&&!ht(c,f)&&Ei(n).type!==ge){let h=zt(f,o,s,n);if(yt(f,h),l==="out-in"&&c.type!==ge)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},Yn(i);l==="in-out"&&c.type!==ge?h.delayLeave=(g,y,C)=>{const A=Mi(s,f);A[String(f.key)]=f,g[Xe]=()=>{y(),g[Xe]=void 0,delete a.delayedLeave,f=void 0},a.delayedLeave=()=>{C(),delete a.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function Ai(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ge){t=n;break}}return t}const El=Tl;function Mi(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function zt(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:g,onLeave:y,onAfterLeave:C,onLeaveCancelled:A,onBeforeAppear:W,onAppear:D,onAfterAppear:B,onAppearCancelled:k}=t,M=String(e.key),N=Mi(n,e),q=(S,R)=>{S&&Pe(S,s,9,R)},U=(S,R)=>{const P=R[1];q(S,R),F(S)?S.every(w=>w.length<=1)&&P():S.length<=1&&P()},I={mode:o,persisted:l,beforeEnter(S){let R=c;if(!n.isMounted)if(i)R=W||c;else return;S[Xe]&&S[Xe](!0);const P=N[M];P&&ht(e,P)&&P.el[Xe]&&P.el[Xe](),q(R,[S])},enter(S){let R=a,P=f,w=h;if(!n.isMounted)if(i)R=D||a,P=B||f,w=k||h;else return;let H=!1;const le=S[cn]=Te=>{H||(H=!0,Te?q(w,[S]):q(P,[S]),I.delayedLeave&&I.delayedLeave(),S[cn]=void 0)};R?U(R,[S,le]):le()},leave(S,R){const P=String(e.key);if(S[cn]&&S[cn](!0),n.isUnmounting)return R();q(g,[S]);let w=!1;const H=S[Xe]=le=>{w||(w=!0,R(),le?q(A,[S]):q(C,[S]),S[Xe]=void 0,N[P]===e&&delete N[P])};N[P]=e,y?U(y,[S,H]):H()},clone(S){const R=zt(S,t,n,s,r);return r&&r(R),R}};return I}function Yn(e){if(Hn(e))return e=st(e),e.children=null,e}function rr(e){if(!Hn(e))return Si(e.type)&&e.children?Ai(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&V(n.default))return n.default()}}function yt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,yt(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 Hs(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;ivn(C,t&&(F(t)?t[A]:t),n,s,r));return}if(xt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&vn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Kn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,a=t&&t.r,f=l.refs===X?l.refs={}:l.refs,h=l.setupState,g=J(h),y=h===X?()=>!1:C=>z(g,C);if(a!=null&&a!==c&&(se(a)?(f[a]=null,y(a)&&(h[a]=null)):re(a)&&(a.value=null)),V(c))Zt(c,l,12,[o,f]);else{const C=se(c),A=re(c);if(C||A){const W=()=>{if(e.f){const D=C?y(c)?h[c]:f[c]:c.value;r?F(D)&&Es(D,i):F(D)?D.includes(i)||D.push(i):C?(f[c]=[i],y(c)&&(h[c]=f[c])):(c.value=[i],e.k&&(f[e.k]=c.value))}else C?(f[c]=o,y(c)&&(h[c]=o)):A&&(c.value=o,e.k&&(f[e.k]=o))};o?(W.id=-1,de(W,n)):W()}}}On().requestIdleCallback;On().cancelIdleCallback;const xt=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function Al(e,t){Pi(e,"a",t)}function Ml(e,t){Pi(e,"da",t)}function Pi(e,t,n=ce){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Vn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Hn(r.parent.vnode)&&Ol(s,t,n,r),r=r.parent}}function Ol(e,t,n,s){const r=Vn(t,e,s,!0);Fi(()=>{Es(s[t],r)},n)}function Vn(e,t,n=ce,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{it();const l=en(n),c=Pe(t,n,e,o);return l(),ot(),c});return s?r.unshift(i):r.push(i),i}}const Je=e=>(t,n=ce)=>{(!Qt||e==="sp")&&Vn(e,(...s)=>t(...s),n)},Pl=Je("bm"),$n=Je("m"),Rl=Je("bu"),Ri=Je("u"),Ii=Je("bum"),Fi=Je("um"),Il=Je("sp"),Fl=Je("rtg"),Ll=Je("rtc");function Nl(e,t=ce){Vn("ec",e,t)}const Vs="components",Dl="directives";function Kf(e,t){return $s(Vs,e,!0,t)||e}const Li=Symbol.for("v-ndc");function Wf(e){return se(e)?$s(Vs,e,!1)||e:e||Li}function Uf(e){return $s(Dl,e)}function $s(e,t,n=!0,s=!1){const r=ie||ce;if(r){const i=r.type;if(e===Vs){const l=xc(i,!1);if(l&&(l===t||l===xe(t)||l===Mn(xe(t))))return i}const o=ir(r[e]||i[e],t)||ir(r.appContext[e],t);return!o&&s?i:o}}function ir(e,t){return e&&(e[t]||e[xe(t)]||e[Mn(xe(t))])}function Gf(e,t,n,s){let r;const i=n&&n[s],o=F(e);if(o||se(e)){const l=o&&tt(e);let c=!1;l&&(c=!Ce(e),e=Fn(e)),r=new Array(e.length);for(let a=0,f=e.length;at(l,c,void 0,i&&i[c]));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,a=l.length;c{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function qf(e,t,n={},s,r){if(ie.ce||ie.parent&&xt(ie.parent)&&ie.parent.ce)return t!=="default"&&(n.name=t),ms(),ys(be,null,[ye("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),ms();const o=i&&Ni(i(n)),l=n.key||o&&o.key,c=ys(be,{key:(l&&!Oe(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function Ni(e){return e.some(t=>Yt(t)?!(t.type===ge||t.type===be&&!Ni(t.children)):!0)?e:null}function zf(e,t){const n={};for(const s in e)n[an(s)]=e[s];return n}const ds=e=>e?no(e)?Kn(e):ds(e.parent):null,Kt=oe(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=>ds(e.parent),$root:e=>ds(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Hi(e),$forceUpdate:e=>e.f||(e.f=()=>{js(e.update)}),$nextTick:e=>e.n||(e.n=jn.bind(e.proxy)),$watch:e=>ic.bind(e)}),Qn=(e,t)=>e!==X&&!e.__isScriptSetup&&z(e,t),jl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Qn(s,t))return o[t]=1,s[t];if(r!==X&&z(r,t))return o[t]=2,r[t];if((a=e.propsOptions[0])&&z(a,t))return o[t]=3,i[t];if(n!==X&&z(n,t))return o[t]=4,n[t];hs&&(o[t]=0)}}const f=Kt[t];let h,g;if(f)return t==="$attrs"&&fe(e.attrs,"get",""),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==X&&z(n,t))return o[t]=4,n[t];if(g=c.config.globalProperties,z(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Qn(r,t)?(r[t]=n,!0):s!==X&&z(s,t)?(s[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==X&&z(e,o)||Qn(t,o)||(l=i[0])&&z(l,o)||z(s,o)||z(Kt,o)||z(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yf(){return Di().slots}function Qf(){return Di().attrs}function Di(){const e=Rt();return e.setupContext||(e.setupContext=ro(e))}function or(e){return F(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Xf(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}let hs=!0;function Hl(e){const t=Hi(e),n=e.proxy,s=e.ctx;hs=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:a,created:f,beforeMount:h,mounted:g,beforeUpdate:y,updated:C,activated:A,deactivated:W,beforeDestroy:D,beforeUnmount:B,destroyed:k,unmounted:M,render:N,renderTracked:q,renderTriggered:U,errorCaptured:I,serverPrefetch:S,expose:R,inheritAttrs:P,components:w,directives:H,filters:le}=t;if(a&&Vl(a,s,null),o)for(const K in o){const Z=o[K];V(Z)&&(s[K]=Z.bind(n))}if(r){const K=r.call(n,n);Q(K)&&(e.data=Ln(K))}if(hs=!0,i)for(const K in i){const Z=i[K],lt=V(Z)?Z.bind(n,n):V(Z.get)?Z.get.bind(n,n):Ee,tn=!V(Z)&&V(Z.set)?Z.set.bind(n):Ee,ct=Me({get:lt,set:tn});Object.defineProperty(s,K,{enumerable:!0,configurable:!0,get:()=>ct.value,set:Re=>ct.value=Re})}if(l)for(const K in l)ji(l[K],s,n,K);if(c){const K=V(c)?c.call(n):c;Reflect.ownKeys(K).forEach(Z=>{Ul(Z,K[Z])})}f&&lr(f,e,"c");function ne(K,Z){F(Z)?Z.forEach(lt=>K(lt.bind(n))):Z&&K(Z.bind(n))}if(ne(Pl,h),ne($n,g),ne(Rl,y),ne(Ri,C),ne(Al,A),ne(Ml,W),ne(Nl,I),ne(Ll,q),ne(Fl,U),ne(Ii,B),ne(Fi,M),ne(Il,S),F(R))if(R.length){const K=e.exposed||(e.exposed={});R.forEach(Z=>{Object.defineProperty(K,Z,{get:()=>n[Z],set:lt=>n[Z]=lt})})}else e.exposed||(e.exposed={});N&&e.render===Ee&&(e.render=N),P!=null&&(e.inheritAttrs=P),w&&(e.components=w),H&&(e.directives=H),S&&Oi(e)}function Vl(e,t,n=Ee){F(e)&&(e=ps(e));for(const s in e){const r=e[s];let i;Q(r)?"default"in r?i=Tt(r.from||s,r.default,!0):i=Tt(r.from||s):i=Tt(r),re(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function lr(e,t,n){Pe(F(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ji(e,t,n,s){let r=s.includes(".")?Yi(n,s):()=>n[s];if(se(e)){const i=t[e];V(i)&&nt(r,i)}else if(V(e))nt(r,e.bind(n));else if(Q(e))if(F(e))e.forEach(i=>ji(i,t,n,s));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&nt(r,i,e)}}function Hi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>Sn(c,a,o,!0)),Sn(c,t,o)),Q(t)&&i.set(t,c),c}function Sn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Sn(e,i,n,!0),r&&r.forEach(o=>Sn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=$l[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const $l={data:cr,props:fr,emits:fr,methods:Ht,computed:Ht,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:Ht,directives:Ht,watch:Bl,provide:cr,inject:kl};function cr(e,t){return t?e?function(){return oe(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function kl(e,t){return Ht(ps(e),ps(t))}function ps(e){if(F(e)){const t={};for(let n=0;n1)return n&&V(t)?t.call(s&&s.proxy):t}}function ks(){return!!(ce||ie||gt)}const $i={},ki=()=>Object.create($i),Bi=e=>Object.getPrototypeOf(e)===$i;function Gl(e,t,n,s=!1){const r={},i=ki();e.propsDefaults=Object.create(null),Ki(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:ll(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Jl(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=J(r),[c]=e.propsOptions;let a=!1;if((s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[g,y]=Wi(h,t,!0);oe(o,g),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!c)return Q(e)&&s.set(e,St),St;if(F(i))for(let f=0;fe[0]==="_"||e==="$stable",Bs=e=>F(e)?e.map(He):[He(e)],zl=(e,t,n)=>{if(t._n)return t;const s=Cl((...r)=>Bs(t(...r)),n);return s._c=!1,s},Gi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ui(r))continue;const i=e[r];if(V(i))t[r]=zl(r,i,s);else if(i!=null){const o=Bs(i);t[r]=()=>o}}},Ji=(e,t)=>{const n=Bs(t);e.slots.default=()=>n},qi=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},Yl=(e,t,n)=>{const s=e.slots=ki();if(e.vnode.shapeFlag&32){const r=t._;r?(qi(s,t,n),n&&Kr(s,"_",r,!0)):Gi(t,s)}else t&&Ji(e,t)},Ql=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=X;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:qi(r,t,n):(i=!t.$stable,Gi(t,r)),o=t}else t&&(Ji(e,t),o={default:1});if(i)for(const l in r)!Ui(l)&&o[l]==null&&delete r[l]},de=dc;function Xl(e){return Zl(e)}function Zl(e,t){const n=On();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:a,setElementText:f,parentNode:h,nextSibling:g,setScopeId:y=Ee,insertStaticContent:C}=e,A=(u,d,p,b=null,m=null,_=null,E=void 0,T=null,x=!!d.dynamicChildren)=>{if(u===d)return;u&&!ht(u,d)&&(b=nn(u),Re(u,m,_,!0),u=null),d.patchFlag===-2&&(x=!1,d.dynamicChildren=null);const{type:v,ref:j,shapeFlag:O}=d;switch(v){case Bn:W(u,d,p,b);break;case ge:D(u,d,p,b);break;case Zn:u==null&&B(d,p,b,E);break;case be:w(u,d,p,b,m,_,E,T,x);break;default:O&1?N(u,d,p,b,m,_,E,T,x):O&6?H(u,d,p,b,m,_,E,T,x):(O&64||O&128)&&v.process(u,d,p,b,m,_,E,T,x,Ft)}j!=null&&m&&vn(j,u&&u.ref,_,d||u,!d)},W=(u,d,p,b)=>{if(u==null)s(d.el=l(d.children),p,b);else{const m=d.el=u.el;d.children!==u.children&&a(m,d.children)}},D=(u,d,p,b)=>{u==null?s(d.el=c(d.children||""),p,b):d.el=u.el},B=(u,d,p,b)=>{[u.el,u.anchor]=C(u.children,d,p,b,u.el,u.anchor)},k=({el:u,anchor:d},p,b)=>{let m;for(;u&&u!==d;)m=g(u),s(u,p,b),u=m;s(d,p,b)},M=({el:u,anchor:d})=>{let p;for(;u&&u!==d;)p=g(u),r(u),u=p;r(d)},N=(u,d,p,b,m,_,E,T,x)=>{d.type==="svg"?E="svg":d.type==="math"&&(E="mathml"),u==null?q(d,p,b,m,_,E,T,x):S(u,d,m,_,E,T,x)},q=(u,d,p,b,m,_,E,T)=>{let x,v;const{props:j,shapeFlag:O,transition:L,dirs:$}=u;if(x=u.el=o(u.type,_,j&&j.is,j),O&8?f(x,u.children):O&16&&I(u.children,x,null,b,m,Xn(u,_),E,T),$&&ft(u,null,b,"created"),U(x,u,u.scopeId,E,b),j){for(const ee in j)ee!=="value"&&!Vt(ee)&&i(x,ee,null,j[ee],_,b);"value"in j&&i(x,"value",null,j.value,_),(v=j.onVnodeBeforeMount)&&Ne(v,b,u)}$&&ft(u,null,b,"beforeMount");const G=ec(m,L);G&&L.beforeEnter(x),s(x,d,p),((v=j&&j.onVnodeMounted)||G||$)&&de(()=>{v&&Ne(v,b,u),G&&L.enter(x),$&&ft(u,null,b,"mounted")},m)},U=(u,d,p,b,m)=>{if(p&&y(u,p),b)for(let _=0;_{for(let v=x;v{const T=d.el=u.el;let{patchFlag:x,dynamicChildren:v,dirs:j}=d;x|=u.patchFlag&16;const O=u.props||X,L=d.props||X;let $;if(p&&ut(p,!1),($=L.onVnodeBeforeUpdate)&&Ne($,p,d,u),j&&ft(d,u,p,"beforeUpdate"),p&&ut(p,!0),(O.innerHTML&&L.innerHTML==null||O.textContent&&L.textContent==null)&&f(T,""),v?R(u.dynamicChildren,v,T,p,b,Xn(d,m),_):E||Z(u,d,T,null,p,b,Xn(d,m),_,!1),x>0){if(x&16)P(T,O,L,p,m);else if(x&2&&O.class!==L.class&&i(T,"class",null,L.class,m),x&4&&i(T,"style",O.style,L.style,m),x&8){const G=d.dynamicProps;for(let ee=0;ee{$&&Ne($,p,d,u),j&&ft(d,u,p,"updated")},b)},R=(u,d,p,b,m,_,E)=>{for(let T=0;T{if(d!==p){if(d!==X)for(const _ in d)!Vt(_)&&!(_ in p)&&i(u,_,d[_],null,m,b);for(const _ in p){if(Vt(_))continue;const E=p[_],T=d[_];E!==T&&_!=="value"&&i(u,_,T,E,m,b)}"value"in p&&i(u,"value",d.value,p.value,m)}},w=(u,d,p,b,m,_,E,T,x)=>{const v=d.el=u?u.el:l(""),j=d.anchor=u?u.anchor:l("");let{patchFlag:O,dynamicChildren:L,slotScopeIds:$}=d;$&&(T=T?T.concat($):$),u==null?(s(v,p,b),s(j,p,b),I(d.children||[],p,j,m,_,E,T,x)):O>0&&O&64&&L&&u.dynamicChildren?(R(u.dynamicChildren,L,p,m,_,E,T),(d.key!=null||m&&d===m.subTree)&&Ks(u,d,!0)):Z(u,d,p,j,m,_,E,T,x)},H=(u,d,p,b,m,_,E,T,x)=>{d.slotScopeIds=T,u==null?d.shapeFlag&512?m.ctx.activate(d,p,b,E,x):le(d,p,b,m,_,E,x):Te(u,d,x)},le=(u,d,p,b,m,_,E)=>{const T=u.component=vc(u,b,m);if(Hn(u)&&(T.ctx.renderer=Ft),Sc(T,!1,E),T.asyncDep){if(m&&m.registerDep(T,ne,E),!u.el){const x=T.subTree=ye(ge);D(null,x,d,p)}}else ne(T,u,d,p,m,_,E)},Te=(u,d,p)=>{const b=d.component=u.component;if(uc(u,d,p))if(b.asyncDep&&!b.asyncResolved){K(b,d,p);return}else b.next=d,b.update();else d.el=u.el,b.vnode=d},ne=(u,d,p,b,m,_,E)=>{const T=()=>{if(u.isMounted){let{next:O,bu:L,u:$,parent:G,vnode:ee}=u;{const Fe=zi(u);if(Fe){O&&(O.el=ee.el,K(u,O,E)),Fe.asyncDep.then(()=>{u.isUnmounted||T()});return}}let Y=O,ve;ut(u,!1),O?(O.el=ee.el,K(u,O,E)):O=ee,L&&dn(L),(ve=O.props&&O.props.onVnodeBeforeUpdate)&&Ne(ve,G,O,ee),ut(u,!0);const _e=dr(u),Ie=u.subTree;u.subTree=_e,A(Ie,_e,h(Ie.el),nn(Ie),u,m,_),O.el=_e.el,Y===null&&ac(u,_e.el),$&&de($,m),(ve=O.props&&O.props.onVnodeUpdated)&&de(()=>Ne(ve,G,O,ee),m)}else{let O;const{el:L,props:$}=d,{bm:G,m:ee,parent:Y,root:ve,type:_e}=u,Ie=xt(d);ut(u,!1),G&&dn(G),!Ie&&(O=$&&$.onVnodeBeforeMount)&&Ne(O,Y,d),ut(u,!0);{ve.ce&&ve.ce._injectChildStyle(_e);const Fe=u.subTree=dr(u);A(null,Fe,p,b,u,m,_),d.el=Fe.el}if(ee&&de(ee,m),!Ie&&(O=$&&$.onVnodeMounted)){const Fe=d;de(()=>Ne(O,Y,Fe),m)}(d.shapeFlag&256||Y&&xt(Y.vnode)&&Y.vnode.shapeFlag&256)&&u.a&&de(u.a,m),u.isMounted=!0,d=p=b=null}};u.scope.on();const x=u.effect=new Qr(T);u.scope.off();const v=u.update=x.run.bind(x),j=u.job=x.runIfDirty.bind(x);j.i=u,j.id=u.uid,x.scheduler=()=>js(j),ut(u,!0),v()},K=(u,d,p)=>{d.component=u;const b=u.vnode.props;u.vnode=d,u.next=null,Jl(u,d.props,b,p),Ql(u,d.children,p),it(),er(u),ot()},Z=(u,d,p,b,m,_,E,T,x=!1)=>{const v=u&&u.children,j=u?u.shapeFlag:0,O=d.children,{patchFlag:L,shapeFlag:$}=d;if(L>0){if(L&128){tn(v,O,p,b,m,_,E,T,x);return}else if(L&256){lt(v,O,p,b,m,_,E,T,x);return}}$&8?(j&16&&It(v,m,_),O!==v&&f(p,O)):j&16?$&16?tn(v,O,p,b,m,_,E,T,x):It(v,m,_,!0):(j&8&&f(p,""),$&16&&I(O,p,b,m,_,E,T,x))},lt=(u,d,p,b,m,_,E,T,x)=>{u=u||St,d=d||St;const v=u.length,j=d.length,O=Math.min(v,j);let L;for(L=0;Lj?It(u,m,_,!0,!1,O):I(d,p,b,m,_,E,T,x,O)},tn=(u,d,p,b,m,_,E,T,x)=>{let v=0;const j=d.length;let O=u.length-1,L=j-1;for(;v<=O&&v<=L;){const $=u[v],G=d[v]=x?Ze(d[v]):He(d[v]);if(ht($,G))A($,G,p,null,m,_,E,T,x);else break;v++}for(;v<=O&&v<=L;){const $=u[O],G=d[L]=x?Ze(d[L]):He(d[L]);if(ht($,G))A($,G,p,null,m,_,E,T,x);else break;O--,L--}if(v>O){if(v<=L){const $=L+1,G=$L)for(;v<=O;)Re(u[v],m,_,!0),v++;else{const $=v,G=v,ee=new Map;for(v=G;v<=L;v++){const Se=d[v]=x?Ze(d[v]):He(d[v]);Se.key!=null&&ee.set(Se.key,v)}let Y,ve=0;const _e=L-G+1;let Ie=!1,Fe=0;const Lt=new Array(_e);for(v=0;v<_e;v++)Lt[v]=0;for(v=$;v<=O;v++){const Se=u[v];if(ve>=_e){Re(Se,m,_,!0);continue}let Le;if(Se.key!=null)Le=ee.get(Se.key);else for(Y=G;Y<=L;Y++)if(Lt[Y-G]===0&&ht(Se,d[Y])){Le=Y;break}Le===void 0?Re(Se,m,_,!0):(Lt[Le-G]=v+1,Le>=Fe?Fe=Le:Ie=!0,A(Se,d[Le],p,null,m,_,E,T,x),ve++)}const qs=Ie?tc(Lt):St;for(Y=qs.length-1,v=_e-1;v>=0;v--){const Se=G+v,Le=d[Se],zs=Se+1{const{el:_,type:E,transition:T,children:x,shapeFlag:v}=u;if(v&6){ct(u.component.subTree,d,p,b);return}if(v&128){u.suspense.move(d,p,b);return}if(v&64){E.move(u,d,p,Ft);return}if(E===be){s(_,d,p);for(let O=0;OT.enter(_),m);else{const{leave:O,delayLeave:L,afterLeave:$}=T,G=()=>s(_,d,p),ee=()=>{O(_,()=>{G(),$&&$()})};L?L(_,G,ee):ee()}else s(_,d,p)},Re=(u,d,p,b=!1,m=!1)=>{const{type:_,props:E,ref:T,children:x,dynamicChildren:v,shapeFlag:j,patchFlag:O,dirs:L,cacheIndex:$}=u;if(O===-2&&(m=!1),T!=null&&vn(T,null,p,u,!0),$!=null&&(d.renderCache[$]=void 0),j&256){d.ctx.deactivate(u);return}const G=j&1&&L,ee=!xt(u);let Y;if(ee&&(Y=E&&E.onVnodeBeforeUnmount)&&Ne(Y,d,u),j&6)Ao(u.component,p,b);else{if(j&128){u.suspense.unmount(p,b);return}G&&ft(u,null,d,"beforeUnmount"),j&64?u.type.remove(u,d,p,Ft,b):v&&!v.hasOnce&&(_!==be||O>0&&O&64)?It(v,d,p,!1,!0):(_===be&&O&384||!m&&j&16)&&It(x,d,p),b&&Gs(u)}(ee&&(Y=E&&E.onVnodeUnmounted)||G)&&de(()=>{Y&&Ne(Y,d,u),G&&ft(u,null,d,"unmounted")},p)},Gs=u=>{const{type:d,el:p,anchor:b,transition:m}=u;if(d===be){Eo(p,b);return}if(d===Zn){M(u);return}const _=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(u.shapeFlag&1&&m&&!m.persisted){const{leave:E,delayLeave:T}=m,x=()=>E(p,_);T?T(u.el,_,x):x()}else _()},Eo=(u,d)=>{let p;for(;u!==d;)p=g(u),r(u),u=p;r(d)},Ao=(u,d,p)=>{const{bum:b,scope:m,job:_,subTree:E,um:T,m:x,a:v}=u;ar(x),ar(v),b&&dn(b),m.stop(),_&&(_.flags|=8,Re(E,u,d,p)),T&&de(T,d),de(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},It=(u,d,p,b=!1,m=!1,_=0)=>{for(let E=_;E{if(u.shapeFlag&6)return nn(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const d=g(u.anchor||u.el),p=d&&d[vi];return p?g(p):d};let Un=!1;const Js=(u,d,p)=>{u==null?d._vnode&&Re(d._vnode,null,null,!0):A(d._vnode||null,u,d,null,null,null,p),d._vnode=u,Un||(Un=!0,er(),yi(),Un=!1)},Ft={p:A,um:Re,m:ct,r:Gs,mt:le,mc:I,pc:Z,pbc:R,n:nn,o:e};return{render:Js,hydrate:void 0,createApp:Wl(Js)}}function Xn({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 ut({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ec(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ks(e,t,n=!1){const s=e.children,r=t.children;if(F(s)&&F(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function zi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zi(t)}function ar(e){if(e)for(let t=0;tTt(nc);function rc(e,t){return Ws(e,null,t)}function nt(e,t,n){return Ws(e,t,n)}function Ws(e,t,n=X){const{immediate:s,deep:r,flush:i,once:o}=n,l=oe({},n),c=t&&s||!t&&i!=="post";let a;if(Qt){if(i==="sync"){const y=sc();a=y.__watcherHandles||(y.__watcherHandles=[])}else if(!c){const y=()=>{};return y.stop=Ee,y.resume=Ee,y.pause=Ee,y}}const f=ce;l.call=(y,C,A)=>Pe(y,f,C,A);let h=!1;i==="post"?l.scheduler=y=>{de(y,f&&f.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(y,C)=>{C?y():js(y)}),l.augmentJob=y=>{t&&(y.flags|=4),h&&(y.flags|=2,f&&(y.id=f.uid,y.i=f))};const g=bl(e,t,l);return Qt&&(a?a.push(g):c&&g()),g}function ic(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?Yi(s,e):()=>s[e]:e.bind(s,s);let i;V(t)?i=t:(i=t.handler,n=t);const o=en(this),l=Ws(r,i.bind(s),n);return o(),l}function Yi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xe(t)}Modifiers`]||e[`${rt(t)}Modifiers`];function lc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let r=n;const i=t.startsWith("update:"),o=i&&oc(s,t.slice(7));o&&(o.trim&&(r=n.map(f=>se(f)?f.trim():f)),o.number&&(r=n.map(os)));let l,c=s[l=an(t)]||s[l=an(xe(t))];!c&&i&&(c=s[l=an(rt(t))]),c&&Pe(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Pe(a,e,6,r)}}function Qi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!V(e)){const c=a=>{const f=Qi(a,t,!0);f&&(l=!0,oe(o,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(Q(e)&&s.set(e,null),null):(F(i)?i.forEach(c=>o[c]=null):oe(o,i),Q(e)&&s.set(e,o),o)}function kn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,rt(t))||z(e,t))}function dr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:a,renderCache:f,props:h,data:g,setupState:y,ctx:C,inheritAttrs:A}=e,W=bn(e);let D,B;try{if(n.shapeFlag&4){const M=r||s,N=M;D=He(a.call(N,M,f,h,y,g,C)),B=l}else{const M=t;D=He(M.length>1?M(h,{attrs:l,slots:o,emit:c}):M(h,null)),B=t.props?l:cc(l)}}catch(M){Wt.length=0,Dn(M,e,1),D=ye(ge)}let k=D;if(B&&A!==!1){const M=Object.keys(B),{shapeFlag:N}=k;M.length&&N&7&&(i&&M.some(Ts)&&(B=fc(B,i)),k=st(k,B,!1,!0))}return n.dirs&&(k=st(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&yt(k,n.transition),D=k,bn(W),D}const cc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},fc=(e,t)=>{const n={};for(const s in e)(!Ts(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function uc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?hr(s,o,a):!!o;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function dc(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):wl(e)}const be=Symbol.for("v-fgt"),Bn=Symbol.for("v-txt"),ge=Symbol.for("v-cmt"),Zn=Symbol.for("v-stc"),Wt=[];let me=null;function ms(e=!1){Wt.push(me=e?null:[])}function hc(){Wt.pop(),me=Wt[Wt.length-1]||null}let At=1;function pr(e,t=!1){At+=e,e<0&&me&&t&&(me.hasOnce=!0)}function Zi(e){return e.dynamicChildren=At>0?me||St:null,hc(),At>0&&me&&me.push(e),e}function Zf(e,t,n,s,r,i){return Zi(to(e,t,n,s,r,i,!0))}function ys(e,t,n,s,r){return Zi(ye(e,t,n,s,r,!0))}function Yt(e){return e?e.__v_isVNode===!0:!1}function ht(e,t){return e.type===t.type&&e.key===t.key}const eo=({key:e})=>e??null,pn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?se(e)||re(e)||V(e)?{i:ie,r:e,k:t,f:!!n}:e:null);function to(e,t=null,n=null,s=0,r=null,i=e===be?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&eo(t),ref:t&&pn(t),scopeId:bi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ie};return l?(Us(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=se(n)?8:16),At>0&&!o&&me&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&me.push(c),c}const ye=pc;function pc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Li)&&(e=ge),Yt(e)){const l=st(e,t,!0);return n&&Us(l,n),At>0&&!i&&me&&(l.shapeFlag&6?me[me.indexOf(e)]=l:me.push(l)),l.patchFlag=-2,l}if(Tc(e)&&(e=e.__vccOpts),t){t=gc(t);let{class:l,style:c}=t;l&&!se(l)&&(t.class=Rn(l)),Q(c)&&(Ls(c)&&!F(c)&&(c=oe({},c)),t.style=Pn(c))}const o=se(e)?1:Xi(e)?128:Si(e)?64:Q(e)?4:V(e)?2:0;return to(e,t,n,s,r,o,i,!0)}function gc(e){return e?Ls(e)||Bi(e)?oe({},e):e:null}function st(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,a=t?yc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&eo(a),ref:t&&t.ref?n&&i?F(i)?i.concat(pn(t)):[i,pn(t)]:pn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==be?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&st(e.ssContent),ssFallback:e.ssFallback&&st(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&yt(f,c.clone(f)),f}function mc(e=" ",t=0){return ye(Bn,null,e,t)}function eu(e="",t=!1){return t?(ms(),ys(ge,null,e)):ye(ge,null,e)}function He(e){return e==null||typeof e=="boolean"?ye(ge):F(e)?ye(be,null,e.slice()):Yt(e)?Ze(e):ye(Bn,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:st(e)}function Us(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(F(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Us(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Bi(t)?t._ctx=ie:r===3&&ie&&(ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:ie},n=32):(t=String(t),s&64?(n=16,t=[mc(t)]):n=8);e.children=t,e.shapeFlag|=n}function yc(...e){const t={};for(let n=0;nce||ie;let wn,_s;{const e=On(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};wn=t("__VUE_INSTANCE_SETTERS__",n=>ce=n),_s=t("__VUE_SSR_SETTERS__",n=>Qt=n)}const en=e=>{const t=ce;return wn(e),e.scope.on(),()=>{e.scope.off(),wn(t)}},gr=()=>{ce&&ce.scope.off(),wn(null)};function no(e){return e.vnode.shapeFlag&4}let Qt=!1;function Sc(e,t=!1,n=!1){t&&_s(t);const{props:s,children:r}=e.vnode,i=no(e);Gl(e,s,i,t),Yl(e,r,n);const o=i?wc(e,t):void 0;return t&&_s(!1),o}function wc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jl);const{setup:s}=n;if(s){it();const r=e.setupContext=s.length>1?ro(e):null,i=en(e),o=Zt(s,e,0,[e.props,r]),l=$r(o);if(ot(),i(),(l||e.sp)&&!xt(e)&&Oi(e),l){if(o.then(gr,gr),t)return o.then(c=>{mr(e,c)}).catch(c=>{Dn(c,e,0)});e.asyncDep=o}else mr(e,o)}else so(e)}function mr(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Q(t)&&(e.setupState=hi(t)),so(e)}function so(e,t,n){const s=e.type;e.render||(e.render=s.render||Ee);{const r=en(e);it();try{Hl(e)}finally{ot(),r()}}}const Cc={get(e,t){return fe(e,"get",""),e[t]}};function ro(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Cc),slots:e.slots,emit:e.emit,expose:t}}function Kn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hi(Ns(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Kt)return Kt[n](e)},has(t,n){return n in t||n in Kt}})):e.proxy}function xc(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function Tc(e){return V(e)&&"__vccOpts"in e}const Me=(e,t)=>yl(e,t,Qt);function Ec(e,t,n){const s=arguments.length;return s===2?Q(t)&&!F(t)?Yt(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Yt(n)&&(n=[n]),ye(e,t,n))}function tu(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s0&&me&&me.push(e),!0}const Ac="3.5.13",nu=Ee;/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let bs;const yr=typeof window<"u"&&window.trustedTypes;if(yr)try{bs=yr.createPolicy("vue",{createHTML:e=>e})}catch{}const io=bs?e=>bs.createHTML(e):e=>e,Mc="http://www.w3.org/2000/svg",Oc="http://www.w3.org/1998/Math/MathML",Be=typeof document<"u"?document:null,_r=Be&&Be.createElement("template"),Pc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Be.createElementNS(Mc,e):t==="mathml"?Be.createElementNS(Oc,e):n?Be.createElement(e,{is:n}):Be.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Be.createTextNode(e),createComment:e=>Be.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Be.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{_r.innerHTML=io(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=_r.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},qe="transition",Dt="animation",Mt=Symbol("_vtc"),oo={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},lo=oe({},Ti,oo),Rc=e=>(e.displayName="Transition",e.props=lo,e),su=Rc((e,{slots:t})=>Ec(El,co(e),t)),at=(e,t=[])=>{F(e)?e.forEach(n=>n(...t)):e&&e(...t)},br=e=>e?F(e)?e.some(t=>t.length>1):e.length>1:!1;function co(e){const t={};for(const w in e)w in oo||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:a=o,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,C=Ic(r),A=C&&C[0],W=C&&C[1],{onBeforeEnter:D,onEnter:B,onEnterCancelled:k,onLeave:M,onLeaveCancelled:N,onBeforeAppear:q=D,onAppear:U=B,onAppearCancelled:I=k}=t,S=(w,H,le,Te)=>{w._enterCancelled=Te,ze(w,H?f:l),ze(w,H?a:o),le&&le()},R=(w,H)=>{w._isLeaving=!1,ze(w,h),ze(w,y),ze(w,g),H&&H()},P=w=>(H,le)=>{const Te=w?U:B,ne=()=>S(H,w,le);at(Te,[H,ne]),vr(()=>{ze(H,w?c:i),De(H,w?f:l),br(Te)||Sr(H,s,A,ne)})};return oe(t,{onBeforeEnter(w){at(D,[w]),De(w,i),De(w,o)},onBeforeAppear(w){at(q,[w]),De(w,c),De(w,a)},onEnter:P(!1),onAppear:P(!0),onLeave(w,H){w._isLeaving=!0;const le=()=>R(w,H);De(w,h),w._enterCancelled?(De(w,g),vs()):(vs(),De(w,g)),vr(()=>{w._isLeaving&&(ze(w,h),De(w,y),br(M)||Sr(w,s,W,le))}),at(M,[w,le])},onEnterCancelled(w){S(w,!1,void 0,!0),at(k,[w])},onAppearCancelled(w){S(w,!0,void 0,!0),at(I,[w])},onLeaveCancelled(w){R(w),at(N,[w])}})}function Ic(e){if(e==null)return null;if(Q(e))return[es(e.enter),es(e.leave)];{const t=es(e);return[t,t]}}function es(e){return Fo(e)}function De(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Mt]||(e[Mt]=new Set)).add(t)}function ze(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Mt];n&&(n.delete(t),n.size||(e[Mt]=void 0))}function vr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Fc=0;function Sr(e,t,n,s){const r=e._endId=++Fc,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=fo(e,t);if(!o)return s();const a=o+"end";let f=0;const h=()=>{e.removeEventListener(a,g),i()},g=y=>{y.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[C]||"").split(", "),r=s(`${qe}Delay`),i=s(`${qe}Duration`),o=wr(r,i),l=s(`${Dt}Delay`),c=s(`${Dt}Duration`),a=wr(l,c);let f=null,h=0,g=0;t===qe?o>0&&(f=qe,h=o,g=i.length):t===Dt?a>0&&(f=Dt,h=a,g=c.length):(h=Math.max(o,a),f=h>0?o>a?qe:Dt:null,g=f?f===qe?i.length:c.length:0);const y=f===qe&&/\b(transform|all)(,|$)/.test(s(`${qe}Property`).toString());return{type:f,timeout:h,propCount:g,hasTransform:y}}function wr(e,t){for(;e.lengthCr(n)+Cr(e[s])))}function Cr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vs(){return document.body.offsetHeight}function Lc(e,t,n){const s=e[Mt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cn=Symbol("_vod"),uo=Symbol("_vsh"),ru={beforeMount(e,{value:t},{transition:n}){e[Cn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):jt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),jt(e,!0),s.enter(e)):s.leave(e,()=>{jt(e,!1)}):jt(e,t))},beforeUnmount(e,{value:t}){jt(e,t)}};function jt(e,t){e.style.display=t?e[Cn]:"none",e[uo]=!t}const Nc=Symbol(""),Dc=/(^|;)\s*display\s*:/;function jc(e,t,n){const s=e.style,r=se(n);let i=!1;if(n&&!r){if(t)if(se(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&gn(s,l,"")}else for(const o in t)n[o]==null&&gn(s,o,"");for(const o in n)o==="display"&&(i=!0),gn(s,o,n[o])}else if(r){if(t!==n){const o=s[Nc];o&&(n+=";"+o),s.cssText=n,i=Dc.test(n)}}else t&&e.removeAttribute("style");Cn in e&&(e[Cn]=i?s.display:"",e[uo]&&(s.display="none"))}const xr=/\s*!important$/;function gn(e,t,n){if(F(n))n.forEach(s=>gn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Hc(e,t);xr.test(n)?e.setProperty(rt(s),n.replace(xr,""),"important"):e[s]=n}}const Tr=["Webkit","Moz","ms"],ts={};function Hc(e,t){const n=ts[t];if(n)return n;let s=xe(t);if(s!=="filter"&&s in e)return ts[t]=s;s=Mn(s);for(let r=0;rns||(Bc.then(()=>ns=0),ns=Date.now());function Wc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Pe(Uc(s,n.value),t,5,[s])};return n.value=e,n.attached=Kc(),n}function Uc(e,t){if(F(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Rr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Lc(e,s,o):t==="style"?jc(e,n,s):Tn(t)?Ts(t)||$c(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Jc(e,t,s,o))?(Mr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ar(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!se(s))?Mr(e,xe(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ar(e,t,s,o))};function Jc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rr(t)&&V(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rr(t)&&se(n)?!1:t in e}const ao=new WeakMap,ho=new WeakMap,xn=Symbol("_moveCb"),Ir=Symbol("_enterCb"),qc=e=>(delete e.props.mode,e),zc=qc({name:"TransitionGroup",props:oe({},lo,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Rt(),s=xi();let r,i;return Ri(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Zc(r[0].el,n.vnode.el,o))return;r.forEach(Yc),r.forEach(Qc);const l=r.filter(Xc);vs(),l.forEach(c=>{const a=c.el,f=a.style;De(a,o),f.transform=f.webkitTransform=f.transitionDuration="";const h=a[xn]=g=>{g&&g.target!==a||(!g||/transform$/.test(g.propertyName))&&(a.removeEventListener("transitionend",h),a[xn]=null,ze(a,o))};a.addEventListener("transitionend",h)})}),()=>{const o=J(e),l=co(o);let c=o.tag||be;if(r=[],i)for(let a=0;a{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=fo(s);return i.removeChild(s),o}const Ot=e=>{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?n=>dn(t,n):t};function ef(e){e.target.composing=!0}function Fr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ge=Symbol("_assign"),ou={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Ge]=Ot(r);const i=s||r.props&&r.props.type==="number";et(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=os(l)),e[Ge](l)}),n&&et(e,"change",()=>{e.value=e.value.trim()}),t||(et(e,"compositionstart",ef),et(e,"compositionend",Fr),et(e,"change",Fr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Ge]=Ot(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?os(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},lu={deep:!0,created(e,t,n){e[Ge]=Ot(n),et(e,"change",()=>{const s=e._modelValue,r=po(e),i=e.checked,o=e[Ge];if(F(s)){const l=Ur(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const a=[...s];a.splice(l,1),o(a)}}else if(En(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(go(e,i))})},mounted:Lr,beforeUpdate(e,t,n){e[Ge]=Ot(n),Lr(e,t,n)}};function Lr(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(F(t))r=Ur(t,s.props.value)>-1;else if(En(t))r=t.has(s.props.value);else{if(t===n)return;r=Et(t,go(e,!0))}e.checked!==r&&(e.checked=r)}const cu={created(e,{value:t},n){e.checked=Et(t,n.props.value),e[Ge]=Ot(n),et(e,"change",()=>{e[Ge](po(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ge]=Ot(s),t!==n&&(e.checked=Et(t,s.props.value))}};function po(e){return"_value"in e?e._value:e.value}function go(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const tf=["ctrl","shift","alt","meta"],nf={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)=>tf.some(n=>e[`${n}Key`]&&!t.includes(n))},fu=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=rt(r.key);if(t.some(o=>o===i||sf[o]===i))return e(r)})},rf=oe({patchProp:Gc},Pc);let Nr;function mo(){return Nr||(Nr=Xl(rf))}const au=(...e)=>{mo().render(...e)},du=(...e)=>{const t=mo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=lf(s);if(!r)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,of(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function of(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lf(e){return se(e)?document.querySelector(e):e}/*! + * pinia v2.3.1 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let yo;const Wn=e=>yo=e,_o=Symbol();function Ss(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ut;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ut||(Ut={}));function hu(){const e=zr(!0),t=e.run(()=>$e({}));let n=[],s=[];const r=Ns({install(i){Wn(r),r._a=i,i.provide(_o,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const bo=()=>{};function Dr(e,t,n,s=bo){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&Ms()&&Yr(r),r}function bt(e,...t){e.slice().forEach(n=>{n(...t)})}const cf=e=>e(),jr=Symbol(),ss=Symbol();function ws(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];Ss(r)&&Ss(s)&&e.hasOwnProperty(n)&&!re(s)&&!tt(s)?e[n]=ws(r,s):e[n]=s}return e}const ff=Symbol();function uf(e){return!Ss(e)||!e.hasOwnProperty(ff)}const{assign:Ye}=Object;function af(e){return!!(re(e)&&e.effect)}function df(e,t,n,s){const{state:r,actions:i,getters:o}=t,l=n.state.value[e];let c;function a(){l||(n.state.value[e]=r?r():{});const f=dl(n.state.value[e]);return Ye(f,i,Object.keys(o||{}).reduce((h,g)=>(h[g]=Ns(Me(()=>{Wn(n);const y=n._s.get(e);return o[g].call(y,y)})),h),{}))}return c=vo(e,a,t,n,s,!0),c}function vo(e,t,n={},s,r,i){let o;const l=Ye({actions:{}},n),c={deep:!0};let a,f,h=[],g=[],y;const C=s.state.value[e];!i&&!C&&(s.state.value[e]={}),$e({});let A;function W(I){let S;a=f=!1,typeof I=="function"?(I(s.state.value[e]),S={type:Ut.patchFunction,storeId:e,events:y}):(ws(s.state.value[e],I),S={type:Ut.patchObject,payload:I,storeId:e,events:y});const R=A=Symbol();jn().then(()=>{A===R&&(a=!0)}),f=!0,bt(h,S,s.state.value[e])}const D=i?function(){const{state:S}=n,R=S?S():{};this.$patch(P=>{Ye(P,R)})}:bo;function B(){o.stop(),h=[],g=[],s._s.delete(e)}const k=(I,S="")=>{if(jr in I)return I[ss]=S,I;const R=function(){Wn(s);const P=Array.from(arguments),w=[],H=[];function le(K){w.push(K)}function Te(K){H.push(K)}bt(g,{args:P,name:R[ss],store:N,after:le,onError:Te});let ne;try{ne=I.apply(this&&this.$id===e?this:N,P)}catch(K){throw bt(H,K),K}return ne instanceof Promise?ne.then(K=>(bt(w,K),K)).catch(K=>(bt(H,K),Promise.reject(K))):(bt(w,ne),ne)};return R[jr]=!0,R[ss]=S,R},M={_p:s,$id:e,$onAction:Dr.bind(null,g),$patch:W,$reset:D,$subscribe(I,S={}){const R=Dr(h,I,S.detached,()=>P()),P=o.run(()=>nt(()=>s.state.value[e],w=>{(S.flush==="sync"?f:a)&&I({storeId:e,type:Ut.direct,events:y},w)},Ye({},c,S)));return R},$dispose:B},N=Ln(M);s._s.set(e,N);const U=(s._a&&s._a.runWithContext||cf)(()=>s._e.run(()=>(o=zr()).run(()=>t({action:k}))));for(const I in U){const S=U[I];if(re(S)&&!af(S)||tt(S))i||(C&&uf(S)&&(re(S)?S.value=C[I]:ws(S,C[I])),s.state.value[e][I]=S);else if(typeof S=="function"){const R=k(S,I);U[I]=R,l.actions[I]=S}}return Ye(N,U),Ye(J(N),U),Object.defineProperty(N,"$state",{get:()=>s.state.value[e],set:I=>{W(S=>{Ye(S,I)})}}),s._p.forEach(I=>{Ye(N,o.run(()=>I({store:N,app:s._a,pinia:s,options:l})))}),C&&i&&n.hydrate&&n.hydrate(N.$state,C),a=!0,f=!0,N}/*! #__NO_SIDE_EFFECTS__ */function pu(e,t,n){let s,r;const i=typeof t=="function";typeof e=="string"?(s=e,r=i?n:t):(r=e,s=e.id);function o(l,c){const a=ks();return l=l||(a?Tt(_o,null):null),l&&Wn(l),l=yo,l._s.has(s)||(i?vo(s,t,r,l):df(s,r,l)),l._s.get(s)}return o.$id=s,o}function hf(e){return Ms()?(Yr(e),!0):!1}const rs=new WeakMap,pf=(...e)=>{var t;const n=e[0],s=(t=Rt())==null?void 0:t.proxy;if(s==null&&!ks())throw new Error("injectLocal must be called in setup");return s&&rs.has(s)&&n in rs.get(s)?rs.get(s)[n]:Tt(...e)},gf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const mf=Object.prototype.toString,yf=e=>mf.call(e)==="[object Object]",_f=()=>{};function bf(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}const So=e=>e();function vf(e=So){const t=$e(!0);function n(){t.value=!1}function s(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:Nn(t),pause:n,resume:s,eventFilter:r}}function Hr(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Sf(e){return Rt()}function is(e){return Array.isArray(e)?e:[e]}function wf(...e){if(e.length!==1)return gl(...e);const t=e[0];return typeof t=="function"?Nn(al(()=>({get:t,set:_f}))):$e(t)}function Cf(e,t,n={}){const{eventFilter:s=So,...r}=n;return nt(e,bf(s,t),r)}function xf(e,t,n={}){const{eventFilter:s,...r}=n,{eventFilter:i,pause:o,resume:l,isActive:c}=vf(s);return{stop:Cf(e,t,{...r,eventFilter:i}),pause:o,resume:l,isActive:c}}function wo(e,t=!0,n){Sf()?$n(e,n):t?e():jn(e)}function gu(e=!1,t={}){const{truthyValue:n=!0,falsyValue:s=!1}=t,r=re(e),i=$e(e);function o(l){if(arguments.length)return i.value=l,i.value;{const c=Ve(n);return i.value=i.value===c?Ve(s):c,i.value}}return r?o:[i,o]}function Tf(e,t,n){return nt(e,t,{...n,immediate:!0})}const Pt=gf?window:void 0;function Co(e){var t;const n=Ve(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Cs(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},s=(l,c,a,f)=>(l.addEventListener(c,a,f),()=>l.removeEventListener(c,a,f)),r=Me(()=>{const l=is(Ve(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=Tf(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(a=>Co(a)))!=null?c:[Pt].filter(a=>a!=null),is(Ve(r.value?e[1]:e[0])),is(Ds(r.value?e[2]:e[1])),Ve(r.value?e[3]:e[2])]},([l,c,a,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(a!=null&&a.length))return;const h=yf(f)?{...f}:f;t.push(...l.flatMap(g=>c.flatMap(y=>a.map(C=>s(g,y,C,h)))))},{flush:"post"}),o=()=>{i(),n()};return hf(n),o}function Ef(){const e=$e(!1),t=Rt();return t&&$n(()=>{e.value=!0},t),e}function Af(e){const t=Ef();return Me(()=>(t.value,!!e()))}const Mf=Symbol("vueuse-ssr-width");function Of(){const e=ks()?pf(Mf,null):null;return typeof e=="number"?e:void 0}function Pf(e,t={}){const{window:n=Pt,ssrWidth:s=Of()}=t,r=Af(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=$e(typeof s=="number"),o=ai(),l=$e(!1),c=a=>{l.value=a.matches};return rc(()=>{if(i.value){i.value=!r.value;const a=Ve(e).split(",");l.value=a.some(f=>{const h=f.includes("not all"),g=f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let C=!!(g||y);return g&&C&&(C=s>=Hr(g[1])),y&&C&&(C=s<=Hr(y[1])),h?!C:C});return}r.value&&(o.value=n.matchMedia(Ve(e)),l.value=o.value.matches)}),Cs(o,"change",c,{passive:!0}),Me(()=>l.value)}const fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},un="__vueuse_ssr_handlers__",Rf=If();function If(){return un in fn||(fn[un]=fn[un]||{}),fn[un]}function xo(e,t){return Rf[e]||t}function Ff(e){return Pf("(prefers-color-scheme: dark)",e)}function Lf(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Nf={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Vr="vueuse-storage";function To(e,t,n,s={}){var r;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:a=!1,shallow:f,window:h=Pt,eventFilter:g,onError:y=P=>{console.error(P)},initOnMounted:C}=s,A=(f?ai:$e)(typeof t=="function"?t():t),W=Me(()=>Ve(e));if(!n)try{n=xo("getDefaultStorage",()=>{var P;return(P=Pt)==null?void 0:P.localStorage})()}catch(P){y(P)}if(!n)return A;const D=Ve(t),B=Lf(D),k=(r=s.serializer)!=null?r:Nf[B],{pause:M,resume:N}=xf(A,()=>U(A.value),{flush:i,deep:o,eventFilter:g});nt(W,()=>S(),{flush:i}),h&&l&&wo(()=>{n instanceof Storage?Cs(h,"storage",S,{passive:!0}):Cs(h,Vr,R),C&&S()}),C||S();function q(P,w){if(h){const H={key:W.value,oldValue:P,newValue:w,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(Vr,{detail:H}))}}function U(P){try{const w=n.getItem(W.value);if(P==null)q(w,null),n.removeItem(W.value);else{const H=k.write(P);w!==H&&(n.setItem(W.value,H),q(w,H))}}catch(w){y(w)}}function I(P){const w=P?P.newValue:n.getItem(W.value);if(w==null)return c&&D!=null&&n.setItem(W.value,k.write(D)),D;if(!P&&a){const H=k.read(w);return typeof a=="function"?a(H,D):B==="object"&&!Array.isArray(H)?{...D,...H}:H}else return typeof w!="string"?w:k.read(w)}function S(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){A.value=D;return}if(!(P&&P.key!==W.value)){M();try{(P==null?void 0:P.newValue)!==k.write(A.value)&&(A.value=I(P))}catch(w){y(w)}finally{P?jn(N):N()}}}}function R(P){S(P.detail)}return A}const Df="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function jf(e={}){const{selector:t="html",attribute:n="class",initialValue:s="auto",window:r=Pt,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:a,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},g=Ff({window:r}),y=Me(()=>g.value?"dark":"light"),C=c||(o==null?wf(s):To(o,s,i,{window:r,listenToStorageChanges:l})),A=Me(()=>C.value==="auto"?y.value:C.value),W=xo("updateHTMLAttrs",(M,N,q)=>{const U=typeof M=="string"?r==null?void 0:r.document.querySelector(M):Co(M);if(!U)return;const I=new Set,S=new Set;let R=null;if(N==="class"){const w=q.split(/\s/g);Object.values(h).flatMap(H=>(H||"").split(/\s/g)).filter(Boolean).forEach(H=>{w.includes(H)?I.add(H):S.add(H)})}else R={key:N,value:q};if(I.size===0&&S.size===0&&R===null)return;let P;f&&(P=r.document.createElement("style"),P.appendChild(document.createTextNode(Df)),r.document.head.appendChild(P));for(const w of I)U.classList.add(w);for(const w of S)U.classList.remove(w);R&&U.setAttribute(R.key,R.value),f&&(r.getComputedStyle(P).opacity,document.head.removeChild(P))});function D(M){var N;W(t,n,(N=h[M])!=null?N:M)}function B(M){e.onChanged?e.onChanged(M,D):D(M)}nt(A,B,{flush:"post",immediate:!0}),wo(()=>B(A.value));const k=Me({get(){return a?C.value:A.value},set(M){C.value=M}});return Object.assign(k,{store:C,system:y,state:A})}function mu(e={}){const{valueDark:t="dark",valueLight:n=""}=e,s=jf({...e,onChanged:(o,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,o==="dark",l,o):l(o)},modes:{dark:t,light:n}}),r=Me(()=>s.system.value);return Me({get(){return s.value==="dark"},set(o){const l=o?"dark":"light";r.value===l?s.value="auto":s.value=l}})}function yu(e,t,n={}){const{window:s=Pt}=n;return To(e,t,s==null?void 0:s.localStorage,n)}export{Bn as $,to as A,qf as B,Pn as C,Rn as D,yc as E,Yf as F,ys as G,Cl as H,$f as I,eu as J,Wf as K,mc as L,ko as M,Ee as N,be as O,ye as P,ru as Q,gl as R,Fi as S,su as T,Qf as U,fu as V,Ii as W,Ln as X,Al as Y,Ri as Z,st as _,F as a,ge as a0,kf as a1,Pl as a2,Ml as a3,uu as a4,Jf as a5,Gf as a6,Ys as a7,Vf as a8,gc as a9,tu as aA,Ve as aB,gu as aC,hu as aD,Yt as aa,J as ab,lu as ac,dl as ad,cu as ae,Ec as af,Kf as ag,Mn as ah,Rl as ai,$r as aj,ou as ak,zf as al,iu as am,Ns as an,zr as ao,Br as ap,Uf as aq,an as ar,au as as,du as at,rt as au,ll as av,pu as aw,yu as ax,mu as ay,Xf as az,Q as b,Me as c,se as d,Ms as e,rc as f,Rt as g,Nn as h,Tt as i,$n as j,al as k,re as l,z as m,jn as n,Yr as o,nu as p,V as q,$e as r,ai as s,Ul as t,Ds as u,xe as v,nt as w,Bf as x,Zf as y,ms as z}; diff --git a/index.html b/index.html index 7e33608..712e2ea 100644 --- a/index.html +++ b/index.html @@ -8,13 +8,13 @@ Web Serial Debuger - 串口调试工具 - - + + - + - +